From 6ecff4cd84f69a25c19fe571dfc8ecd4dc617005 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 9 Sep 2022 15:08:43 +0000 Subject: [PATCH] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#786) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 472750037 Source-Link: https://github.com/googleapis/googleapis/commit/88f2ea3f53b9712f2e04f28f06210f6f77fa7e24 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9 --- java-cloudbuild/README.md | 6 +- .../cloudbuild/v1/CloudBuildClient.java | 497 +++++++++++++----- .../cloudbuild/v1/CloudBuildSettings.java | 12 +- .../devtools/cloudbuild/v1/package-info.java | 7 +- .../v1/stub/CloudBuildStubSettings.java | 12 +- .../v1/stub/HttpJsonCloudBuildStub.java | 27 +- 6 files changed, 392 insertions(+), 169 deletions(-) diff --git a/java-cloudbuild/README.md b/java-cloudbuild/README.md index a9072da42dd8..d49d947e1308 100644 --- a/java-cloudbuild/README.md +++ b/java-cloudbuild/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-build - 3.5.2 + 3.5.3 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-build:3.5.2' +implementation 'com.google.cloud:google-cloud-build:3.5.3' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.5.2" +libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.5.3" ``` ## Authentication diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClient.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClient.java index e138c8dcb3a2..b251a5314e22 100644 --- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClient.java +++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClient.java @@ -86,8 +86,11 @@ * calls that map to API methods. Sample code to get started: * *
{@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/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildSettings.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildSettings.java
index b7e9d24e8a0c..ce32e376c995 100644
--- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildSettings.java
+++ b/java-cloudbuild/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/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/package-info.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/package-info.java
index 12351c3fad55..6bb314aa1d80 100644
--- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/package-info.java
+++ b/java-cloudbuild/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/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java
index d9d92243c1ae..7c7f1446504a 100644
--- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java
+++ b/java-cloudbuild/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/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/HttpJsonCloudBuildStub.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/HttpJsonCloudBuildStub.java
index 0fd6b501e18b..9ecc4e7855bc 100644
--- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/HttpJsonCloudBuildStub.java
+++ b/java-cloudbuild/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()