{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String projectId = "projectId-894832108";
* String id = "id3355";
@@ -124,8 +127,11 @@
* To customize credentials:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* CloudBuildSettings cloudBuildSettings =
* CloudBuildSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -136,8 +142,11 @@
* To customize the endpoint:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* CloudBuildSettings cloudBuildSettings =
* CloudBuildSettings.newBuilder().setEndpoint(myEndpoint).build();
* CloudBuildClient cloudBuildClient = CloudBuildClient.create(cloudBuildSettings);
@@ -147,8 +156,11 @@
* the wire:
*
* {@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* CloudBuildSettings cloudBuildSettings =
* CloudBuildSettings.newBuilder()
* .setTransportChannelProvider(
@@ -242,8 +254,11 @@ public final OperationsClient getHttpJsonOperationsClient() {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String projectId = "projectId-894832108";
* Build build = Build.newBuilder().build();
@@ -272,8 +287,11 @@ public final OperationFuture createBuildAsync(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* CreateBuildRequest request =
* CreateBuildRequest.newBuilder()
@@ -303,8 +321,11 @@ public final OperationFuture createBuildAsync(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* CreateBuildRequest request =
* CreateBuildRequest.newBuilder()
@@ -334,8 +355,11 @@ public final OperationFuture createBuildAsync(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* CreateBuildRequest request =
* CreateBuildRequest.newBuilder()
@@ -363,8 +387,11 @@ public final UnaryCallable createBuildCallable()
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String projectId = "projectId-894832108";
* String id = "id3355";
@@ -392,8 +419,11 @@ public final Build getBuild(String projectId, String id) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* GetBuildRequest request =
* GetBuildRequest.newBuilder()
@@ -422,8 +452,11 @@ public final Build getBuild(GetBuildRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* GetBuildRequest request =
* GetBuildRequest.newBuilder()
@@ -451,8 +484,11 @@ public final UnaryCallable getBuildCallable() {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String projectId = "projectId-894832108";
* String filter = "filter-1274492040";
@@ -482,8 +518,11 @@ public final ListBuildsPagedResponse listBuilds(String projectId, String filter)
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ListBuildsRequest request =
* ListBuildsRequest.newBuilder()
@@ -516,8 +555,11 @@ public final ListBuildsPagedResponse listBuilds(ListBuildsRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ListBuildsRequest request =
* ListBuildsRequest.newBuilder()
@@ -549,8 +591,11 @@ public final UnaryCallable listBuild
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ListBuildsRequest request =
* ListBuildsRequest.newBuilder()
@@ -586,8 +631,11 @@ public final UnaryCallable listBuildsCall
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String projectId = "projectId-894832108";
* String id = "id3355";
@@ -612,8 +660,11 @@ public final Build cancelBuild(String projectId, String id) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* CancelBuildRequest request =
* CancelBuildRequest.newBuilder()
@@ -639,8 +690,11 @@ public final Build cancelBuild(CancelBuildRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* CancelBuildRequest request =
* CancelBuildRequest.newBuilder()
@@ -695,8 +749,11 @@ public final UnaryCallable cancelBuildCallable() {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String projectId = "projectId-894832108";
* String id = "id3355";
@@ -752,8 +809,11 @@ public final OperationFuture retryBuildAsync(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* RetryBuildRequest request =
* RetryBuildRequest.newBuilder()
@@ -810,8 +870,11 @@ public final OperationFuture retryBuildAsync(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* RetryBuildRequest request =
* RetryBuildRequest.newBuilder()
@@ -868,8 +931,11 @@ public final OperationFuture retryBuildAsync(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* RetryBuildRequest request =
* RetryBuildRequest.newBuilder()
@@ -898,8 +964,11 @@ public final UnaryCallable retryBuildCallable() {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String name = "name3373707";
* ApprovalResult approvalResult = ApprovalResult.newBuilder().build();
@@ -930,8 +999,11 @@ public final OperationFuture approveBuildAsync(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ApproveBuildRequest request =
* ApproveBuildRequest.newBuilder()
@@ -961,8 +1033,11 @@ public final OperationFuture approveBuildAsync(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ApproveBuildRequest request =
* ApproveBuildRequest.newBuilder()
@@ -992,8 +1067,11 @@ public final OperationFuture approveBuildAsync(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ApproveBuildRequest request =
* ApproveBuildRequest.newBuilder()
@@ -1019,8 +1097,11 @@ public final UnaryCallable approveBuildCallable(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String projectId = "projectId-894832108";
* BuildTrigger trigger = BuildTrigger.newBuilder().build();
@@ -1047,8 +1128,11 @@ public final BuildTrigger createBuildTrigger(String projectId, BuildTrigger trig
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* CreateBuildTriggerRequest request =
* CreateBuildTriggerRequest.newBuilder()
@@ -1076,8 +1160,11 @@ public final BuildTrigger createBuildTrigger(CreateBuildTriggerRequest request)
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* CreateBuildTriggerRequest request =
* CreateBuildTriggerRequest.newBuilder()
@@ -1105,8 +1192,11 @@ public final UnaryCallable createBuildT
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String projectId = "projectId-894832108";
* String triggerId = "triggerId-648752909";
@@ -1133,8 +1223,11 @@ public final BuildTrigger getBuildTrigger(String projectId, String triggerId) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* GetBuildTriggerRequest request =
* GetBuildTriggerRequest.newBuilder()
@@ -1162,8 +1255,11 @@ public final BuildTrigger getBuildTrigger(GetBuildTriggerRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* GetBuildTriggerRequest request =
* GetBuildTriggerRequest.newBuilder()
@@ -1191,8 +1287,11 @@ public final UnaryCallable getBuildTrigger
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String projectId = "projectId-894832108";
* for (BuildTrigger element : cloudBuildClient.listBuildTriggers(projectId).iterateAll()) {
@@ -1219,8 +1318,11 @@ public final ListBuildTriggersPagedResponse listBuildTriggers(String projectId)
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ListBuildTriggersRequest request =
* ListBuildTriggersRequest.newBuilder()
@@ -1251,8 +1353,11 @@ public final ListBuildTriggersPagedResponse listBuildTriggers(ListBuildTriggersR
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ListBuildTriggersRequest request =
* ListBuildTriggersRequest.newBuilder()
@@ -1284,8 +1389,11 @@ public final ListBuildTriggersPagedResponse listBuildTriggers(ListBuildTriggersR
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ListBuildTriggersRequest request =
* ListBuildTriggersRequest.newBuilder()
@@ -1324,8 +1432,11 @@ public final ListBuildTriggersPagedResponse listBuildTriggers(ListBuildTriggersR
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String projectId = "projectId-894832108";
* String triggerId = "triggerId-648752909";
@@ -1355,8 +1466,11 @@ public final void deleteBuildTrigger(String projectId, String triggerId) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* DeleteBuildTriggerRequest request =
* DeleteBuildTriggerRequest.newBuilder()
@@ -1384,8 +1498,11 @@ public final void deleteBuildTrigger(DeleteBuildTriggerRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* DeleteBuildTriggerRequest request =
* DeleteBuildTriggerRequest.newBuilder()
@@ -1412,8 +1529,11 @@ public final UnaryCallable deleteBuildTriggerC
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String projectId = "projectId-894832108";
* String triggerId = "triggerId-648752909";
@@ -1447,8 +1567,11 @@ public final BuildTrigger updateBuildTrigger(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* UpdateBuildTriggerRequest request =
* UpdateBuildTriggerRequest.newBuilder()
@@ -1476,8 +1599,11 @@ public final BuildTrigger updateBuildTrigger(UpdateBuildTriggerRequest request)
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* UpdateBuildTriggerRequest request =
* UpdateBuildTriggerRequest.newBuilder()
@@ -1503,8 +1629,11 @@ public final UnaryCallable updateBuildT
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String projectId = "projectId-894832108";
* String triggerId = "triggerId-648752909";
@@ -1536,8 +1665,11 @@ public final OperationFuture runBuildTriggerAsync
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* RunBuildTriggerRequest request =
* RunBuildTriggerRequest.newBuilder()
@@ -1565,8 +1697,11 @@ public final OperationFuture runBuildTriggerAsync
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* RunBuildTriggerRequest request =
* RunBuildTriggerRequest.newBuilder()
@@ -1594,8 +1729,11 @@ public final OperationFuture runBuildTriggerAsync
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* RunBuildTriggerRequest request =
* RunBuildTriggerRequest.newBuilder()
@@ -1622,8 +1760,11 @@ public final UnaryCallable runBuildTriggerCal
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ReceiveTriggerWebhookRequest request =
* ReceiveTriggerWebhookRequest.newBuilder()
@@ -1653,8 +1794,11 @@ public final ReceiveTriggerWebhookResponse receiveTriggerWebhook(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ReceiveTriggerWebhookRequest request =
* ReceiveTriggerWebhookRequest.newBuilder()
@@ -1683,8 +1827,11 @@ public final ReceiveTriggerWebhookResponse receiveTriggerWebhook(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* WorkerPool workerPool = WorkerPool.newBuilder().build();
@@ -1720,8 +1867,11 @@ public final OperationFuture crea
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* WorkerPool workerPool = WorkerPool.newBuilder().build();
@@ -1757,8 +1907,11 @@ public final OperationFuture crea
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* CreateWorkerPoolRequest request =
* CreateWorkerPoolRequest.newBuilder()
@@ -1786,8 +1939,11 @@ public final OperationFuture crea
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* CreateWorkerPoolRequest request =
* CreateWorkerPoolRequest.newBuilder()
@@ -1816,8 +1972,11 @@ public final OperationFuture crea
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* CreateWorkerPoolRequest request =
* CreateWorkerPoolRequest.newBuilder()
@@ -1843,8 +2002,11 @@ public final UnaryCallable createWorkerPoolC
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* WorkerPoolName name = WorkerPoolName.of("[PROJECT]", "[LOCATION]", "[WORKER_POOL]");
* WorkerPool response = cloudBuildClient.getWorkerPool(name);
@@ -1868,8 +2030,11 @@ public final WorkerPool getWorkerPool(WorkerPoolName name) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String name = WorkerPoolName.of("[PROJECT]", "[LOCATION]", "[WORKER_POOL]").toString();
* WorkerPool response = cloudBuildClient.getWorkerPool(name);
@@ -1892,8 +2057,11 @@ public final WorkerPool getWorkerPool(String name) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* GetWorkerPoolRequest request =
* GetWorkerPoolRequest.newBuilder()
@@ -1917,8 +2085,11 @@ public final WorkerPool getWorkerPool(GetWorkerPoolRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* GetWorkerPoolRequest request =
* GetWorkerPoolRequest.newBuilder()
@@ -1941,8 +2112,11 @@ public final UnaryCallable getWorkerPoolCallab
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* WorkerPoolName name = WorkerPoolName.of("[PROJECT]", "[LOCATION]", "[WORKER_POOL]");
* cloudBuildClient.deleteWorkerPoolAsync(name).get();
@@ -1967,8 +2141,11 @@ public final OperationFuture deleteWor
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String name = WorkerPoolName.of("[PROJECT]", "[LOCATION]", "[WORKER_POOL]").toString();
* cloudBuildClient.deleteWorkerPoolAsync(name).get();
@@ -1992,8 +2169,11 @@ public final OperationFuture deleteWor
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* DeleteWorkerPoolRequest request =
* DeleteWorkerPoolRequest.newBuilder()
@@ -2021,8 +2201,11 @@ public final OperationFuture deleteWor
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* DeleteWorkerPoolRequest request =
* DeleteWorkerPoolRequest.newBuilder()
@@ -2050,8 +2233,11 @@ public final OperationFuture deleteWor
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* DeleteWorkerPoolRequest request =
* DeleteWorkerPoolRequest.newBuilder()
@@ -2077,8 +2263,11 @@ public final UnaryCallable deleteWorkerPoolC
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* WorkerPool workerPool = WorkerPool.newBuilder().build();
* FieldMask updateMask = FieldMask.newBuilder().build();
@@ -2109,8 +2298,11 @@ public final OperationFuture upda
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* UpdateWorkerPoolRequest request =
* UpdateWorkerPoolRequest.newBuilder()
@@ -2137,8 +2329,11 @@ public final OperationFuture upda
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* UpdateWorkerPoolRequest request =
* UpdateWorkerPoolRequest.newBuilder()
@@ -2166,8 +2361,11 @@ public final OperationFuture upda
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* UpdateWorkerPoolRequest request =
* UpdateWorkerPoolRequest.newBuilder()
@@ -2192,8 +2390,11 @@ public final UnaryCallable updateWorkerPoolC
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* for (WorkerPool element : cloudBuildClient.listWorkerPools(parent).iterateAll()) {
@@ -2221,8 +2422,11 @@ public final ListWorkerPoolsPagedResponse listWorkerPools(LocationName parent) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* for (WorkerPool element : cloudBuildClient.listWorkerPools(parent).iterateAll()) {
@@ -2247,8 +2451,11 @@ public final ListWorkerPoolsPagedResponse listWorkerPools(String parent) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ListWorkerPoolsRequest request =
* ListWorkerPoolsRequest.newBuilder()
@@ -2276,8 +2483,11 @@ public final ListWorkerPoolsPagedResponse listWorkerPools(ListWorkerPoolsRequest
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ListWorkerPoolsRequest request =
* ListWorkerPoolsRequest.newBuilder()
@@ -2306,8 +2516,11 @@ public final ListWorkerPoolsPagedResponse listWorkerPools(ListWorkerPoolsRequest
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ListWorkerPoolsRequest request =
* ListWorkerPoolsRequest.newBuilder()
diff --git a/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildSettings.java b/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildSettings.java
index b7e9d24e..ce32e376 100644
--- a/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildSettings.java
+++ b/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildSettings.java
@@ -87,16 +87,16 @@
* For example, to set the total timeout of getBuild to 30 seconds:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* CloudBuildSettings.Builder cloudBuildSettingsBuilder = CloudBuildSettings.newBuilder();
* cloudBuildSettingsBuilder
* .getBuildSettings()
* .setRetrySettings(
- * cloudBuildSettingsBuilder
- * .getBuildSettings()
- * .getRetrySettings()
- * .toBuilder()
+ * cloudBuildSettingsBuilder.getBuildSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* CloudBuildSettings cloudBuildSettings = cloudBuildSettingsBuilder.build();
diff --git a/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/package-info.java b/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/package-info.java
index 12351c3f..6bb314aa 100644
--- a/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/package-info.java
+++ b/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/package-info.java
@@ -30,8 +30,11 @@
* Sample for CloudBuildClient:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String projectId = "projectId-894832108";
* String id = "id3355";
diff --git a/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java b/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java
index d9d92243..7c7f1446 100644
--- a/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java
+++ b/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java
@@ -107,16 +107,16 @@
* For example, to set the total timeout of getBuild to 30 seconds:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* CloudBuildStubSettings.Builder cloudBuildSettingsBuilder = CloudBuildStubSettings.newBuilder();
* cloudBuildSettingsBuilder
* .getBuildSettings()
* .setRetrySettings(
- * cloudBuildSettingsBuilder
- * .getBuildSettings()
- * .getRetrySettings()
- * .toBuilder()
+ * cloudBuildSettingsBuilder.getBuildSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* CloudBuildStubSettings cloudBuildSettings = cloudBuildSettingsBuilder.build();
diff --git a/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/HttpJsonCloudBuildStub.java b/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/HttpJsonCloudBuildStub.java
index 0fd6b501..9ecc4e78 100644
--- a/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/HttpJsonCloudBuildStub.java
+++ b/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/HttpJsonCloudBuildStub.java
@@ -123,7 +123,8 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub {
})
.setRequestBodyExtractor(
request ->
- ProtoRestSerializer.create().toBody("build", request.getBuild()))
+ ProtoRestSerializer.create()
+ .toBody("build", request.getBuild(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -244,7 +245,8 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub {
.clearId()
.clearName()
.clearProjectId()
- .build()))
+ .build(),
+ false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -290,7 +292,8 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub {
.clearId()
.clearName()
.clearProjectId()
- .build()))
+ .build(),
+ false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -330,7 +333,7 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("*", request.toBuilder().clearName().build()))
+ .toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -370,7 +373,8 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub {
})
.setRequestBodyExtractor(
request ->
- ProtoRestSerializer.create().toBody("trigger", request.getTrigger()))
+ ProtoRestSerializer.create()
+ .toBody("trigger", request.getTrigger(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -521,7 +525,8 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub {
})
.setRequestBodyExtractor(
request ->
- ProtoRestSerializer.create().toBody("trigger", request.getTrigger()))
+ ProtoRestSerializer.create()
+ .toBody("trigger", request.getTrigger(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -559,7 +564,8 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub {
})
.setRequestBodyExtractor(
request ->
- ProtoRestSerializer.create().toBody("source", request.getSource()))
+ ProtoRestSerializer.create()
+ .toBody("source", request.getSource(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -602,7 +608,8 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub {
return fields;
})
.setRequestBodyExtractor(
- request -> ProtoRestSerializer.create().toBody("body", request.getBody()))
+ request ->
+ ProtoRestSerializer.create().toBody("body", request.getBody(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -642,7 +649,7 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("workerPool", request.getWorkerPool()))
+ .toBody("workerPool", request.getWorkerPool(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -759,7 +766,7 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("workerPool", request.getWorkerPool()))
+ .toBody("workerPool", request.getWorkerPool(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
diff --git a/grpc-google-cloud-build-v1/pom.xml b/grpc-google-cloud-build-v1/pom.xml
index 2d06bb32..3f33002e 100644
--- a/grpc-google-cloud-build-v1/pom.xml
+++ b/grpc-google-cloud-build-v1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-cloud-build-v1
- 3.5.3
+ 3.5.4
grpc-google-cloud-build-v1
GRPC library for grpc-google-cloud-build-v1
com.google.cloud
google-cloud-build-parent
- 3.5.3
+ 3.5.4
diff --git a/pom.xml b/pom.xml
index 225db0ea..8eae6242 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-build-parent
pom
- 3.5.3
+ 3.5.4
Google Cloud Build Parent
https://github.com/googleapis/java-cloudbuild
@@ -62,23 +62,23 @@
com.google.api.grpc
proto-google-cloud-build-v1
- 3.5.3
+ 3.5.4
com.google.cloud
google-cloud-build
- 3.5.3
+ 3.5.4
com.google.api.grpc
grpc-google-cloud-build-v1
- 3.5.3
+ 3.5.4
com.google.cloud
google-cloud-shared-dependencies
- 3.0.2
+ 3.0.3
pom
import
diff --git a/proto-google-cloud-build-v1/pom.xml b/proto-google-cloud-build-v1/pom.xml
index f4589a4a..94c85c5e 100644
--- a/proto-google-cloud-build-v1/pom.xml
+++ b/proto-google-cloud-build-v1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-build-v1
- 3.5.3
+ 3.5.4
proto-google-cloud-build-v1
PROTO library for proto-google-cloud-build-v1
com.google.cloud
google-cloud-build-parent
- 3.5.3
+ 3.5.4
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 46d67f2a..43c6d832 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -29,7 +29,7 @@
com.google.cloud
google-cloud-build
- 3.5.2
+ 3.5.3
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 2af1c66b..7db950f5 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -28,7 +28,7 @@
com.google.cloud
google-cloud-build
- 3.5.2
+ 3.5.3
diff --git a/versions.txt b/versions.txt
index da0374b0..69de327c 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,6 +1,6 @@
# Format:
# module:released-version:current-version
-google-cloud-build:3.5.3:3.5.3
-grpc-google-cloud-build-v1:3.5.3:3.5.3
-proto-google-cloud-build-v1:3.5.3:3.5.3
+google-cloud-build:3.5.4:3.5.4
+grpc-google-cloud-build-v1:3.5.4:3.5.4
+proto-google-cloud-build-v1:3.5.4:3.5.4