From 51d7f438c6259244a69ce921c516acdf80b57e17 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:26:36 +0000 Subject: [PATCH] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#206) - [ ] 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 --- .../v1/QuotaControllerClient.java | 42 ++++++++++---- .../v1/QuotaControllerSettings.java | 12 ++-- .../v1/ServiceControllerClient.java | 56 +++++++++++++------ .../v1/ServiceControllerSettings.java | 12 ++-- .../api/servicecontrol/v1/package-info.java | 14 +++-- .../v1/stub/HttpJsonQuotaControllerStub.java | 3 +- .../stub/HttpJsonServiceControllerStub.java | 4 +- .../v1/stub/QuotaControllerStubSettings.java | 12 ++-- .../stub/ServiceControllerStubSettings.java | 12 ++-- .../v2/ServiceControllerClient.java | 56 +++++++++++++------ .../v2/ServiceControllerSettings.java | 12 ++-- .../api/servicecontrol/v2/package-info.java | 7 ++- .../stub/HttpJsonServiceControllerStub.java | 4 +- .../stub/ServiceControllerStubSettings.java | 12 ++-- 14 files changed, 167 insertions(+), 91 deletions(-) diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/QuotaControllerClient.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/QuotaControllerClient.java index 1ac6255b48b0..bea89947c98b 100644 --- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/QuotaControllerClient.java +++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/QuotaControllerClient.java @@ -35,8 +35,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 (QuotaControllerClient quotaControllerClient = QuotaControllerClient.create()) {
  *   AllocateQuotaRequest request =
  *       AllocateQuotaRequest.newBuilder()
@@ -78,8 +81,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
  * QuotaControllerSettings quotaControllerSettings =
  *     QuotaControllerSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -91,8 +97,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
  * QuotaControllerSettings quotaControllerSettings =
  *     QuotaControllerSettings.newBuilder().setEndpoint(myEndpoint).build();
  * QuotaControllerClient quotaControllerClient =
@@ -103,8 +112,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
  * QuotaControllerSettings quotaControllerSettings =
  *     QuotaControllerSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -181,8 +193,11 @@ public QuotaControllerStub getStub() {
    * 

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 (QuotaControllerClient quotaControllerClient = QuotaControllerClient.create()) {
    *   AllocateQuotaRequest request =
    *       AllocateQuotaRequest.newBuilder()
@@ -216,8 +231,11 @@ public final AllocateQuotaResponse allocateQuota(AllocateQuotaRequest 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 (QuotaControllerClient quotaControllerClient = QuotaControllerClient.create()) {
    *   AllocateQuotaRequest request =
    *       AllocateQuotaRequest.newBuilder()
diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/QuotaControllerSettings.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/QuotaControllerSettings.java
index bb43838312b4..52735edd0b36 100644
--- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/QuotaControllerSettings.java
+++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/QuotaControllerSettings.java
@@ -51,17 +51,17 @@
  * 

For example, to set the total timeout of allocateQuota 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
  * QuotaControllerSettings.Builder quotaControllerSettingsBuilder =
  *     QuotaControllerSettings.newBuilder();
  * quotaControllerSettingsBuilder
  *     .allocateQuotaSettings()
  *     .setRetrySettings(
- *         quotaControllerSettingsBuilder
- *             .allocateQuotaSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         quotaControllerSettingsBuilder.allocateQuotaSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * QuotaControllerSettings quotaControllerSettings = quotaControllerSettingsBuilder.build();
diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/ServiceControllerClient.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/ServiceControllerClient.java
index b82e693a70b8..8a28abaae88e 100644
--- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/ServiceControllerClient.java
+++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/ServiceControllerClient.java
@@ -35,8 +35,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 (ServiceControllerClient serviceControllerClient = ServiceControllerClient.create()) {
  *   CheckRequest request =
  *       CheckRequest.newBuilder()
@@ -78,8 +81,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
  * ServiceControllerSettings serviceControllerSettings =
  *     ServiceControllerSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -91,8 +97,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
  * ServiceControllerSettings serviceControllerSettings =
  *     ServiceControllerSettings.newBuilder().setEndpoint(myEndpoint).build();
  * ServiceControllerClient serviceControllerClient =
@@ -103,8 +112,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
  * ServiceControllerSettings serviceControllerSettings =
  *     ServiceControllerSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -186,8 +198,11 @@ public ServiceControllerStub getStub() {
    * 

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 (ServiceControllerClient serviceControllerClient = ServiceControllerClient.create()) {
    *   CheckRequest request =
    *       CheckRequest.newBuilder()
@@ -226,8 +241,11 @@ public final CheckResponse check(CheckRequest 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 (ServiceControllerClient serviceControllerClient = ServiceControllerClient.create()) {
    *   CheckRequest request =
    *       CheckRequest.newBuilder()
@@ -264,8 +282,11 @@ public final UnaryCallable checkCallable() {
    * 

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 (ServiceControllerClient serviceControllerClient = ServiceControllerClient.create()) {
    *   ReportRequest request =
    *       ReportRequest.newBuilder()
@@ -303,8 +324,11 @@ public final ReportResponse report(ReportRequest 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 (ServiceControllerClient serviceControllerClient = ServiceControllerClient.create()) {
    *   ReportRequest request =
    *       ReportRequest.newBuilder()
diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/ServiceControllerSettings.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/ServiceControllerSettings.java
index 8f7c77af3fe0..01cc00077540 100644
--- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/ServiceControllerSettings.java
+++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/ServiceControllerSettings.java
@@ -51,17 +51,17 @@
  * 

For example, to set the total timeout of check 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
  * ServiceControllerSettings.Builder serviceControllerSettingsBuilder =
  *     ServiceControllerSettings.newBuilder();
  * serviceControllerSettingsBuilder
  *     .checkSettings()
  *     .setRetrySettings(
- *         serviceControllerSettingsBuilder
- *             .checkSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         serviceControllerSettingsBuilder.checkSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * ServiceControllerSettings serviceControllerSettings = serviceControllerSettingsBuilder.build();
diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/package-info.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/package-info.java
index 6303e5c3845f..1e80204f915b 100644
--- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/package-info.java
+++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/package-info.java
@@ -27,8 +27,11 @@
  * 

Sample for QuotaControllerClient: * *

{@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 (QuotaControllerClient quotaControllerClient = QuotaControllerClient.create()) {
  *   AllocateQuotaRequest request =
  *       AllocateQuotaRequest.newBuilder()
@@ -50,8 +53,11 @@
  * 

Sample for ServiceControllerClient: * *

{@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 (ServiceControllerClient serviceControllerClient = ServiceControllerClient.create()) {
  *   CheckRequest request =
  *       CheckRequest.newBuilder()
diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/HttpJsonQuotaControllerStub.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/HttpJsonQuotaControllerStub.java
index 7d3ba151153e..1a6bf54ce788 100644
--- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/HttpJsonQuotaControllerStub.java
+++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/HttpJsonQuotaControllerStub.java
@@ -78,7 +78,8 @@ public class HttpJsonQuotaControllerStub extends QuotaControllerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearServiceName().build()))
+                                  .toBody(
+                                      "*", request.toBuilder().clearServiceName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/HttpJsonServiceControllerStub.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/HttpJsonServiceControllerStub.java
index 91caf6f92727..b6bec0296374 100644
--- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/HttpJsonServiceControllerStub.java
+++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/HttpJsonServiceControllerStub.java
@@ -76,7 +76,7 @@ public class HttpJsonServiceControllerStub extends ServiceControllerStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearServiceName().build()))
+                              .toBody("*", request.toBuilder().clearServiceName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -111,7 +111,7 @@ public class HttpJsonServiceControllerStub extends ServiceControllerStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearServiceName().build()))
+                              .toBody("*", request.toBuilder().clearServiceName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/QuotaControllerStubSettings.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/QuotaControllerStubSettings.java
index 1beec9f6c521..45587a82aae8 100644
--- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/QuotaControllerStubSettings.java
+++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/QuotaControllerStubSettings.java
@@ -63,17 +63,17 @@
  * 

For example, to set the total timeout of allocateQuota 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
  * QuotaControllerStubSettings.Builder quotaControllerSettingsBuilder =
  *     QuotaControllerStubSettings.newBuilder();
  * quotaControllerSettingsBuilder
  *     .allocateQuotaSettings()
  *     .setRetrySettings(
- *         quotaControllerSettingsBuilder
- *             .allocateQuotaSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         quotaControllerSettingsBuilder.allocateQuotaSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * QuotaControllerStubSettings quotaControllerSettings = quotaControllerSettingsBuilder.build();
diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/ServiceControllerStubSettings.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/ServiceControllerStubSettings.java
index d8b05eec74b0..692fe64b9366 100644
--- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/ServiceControllerStubSettings.java
+++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/ServiceControllerStubSettings.java
@@ -66,17 +66,17 @@
  * 

For example, to set the total timeout of check 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
  * ServiceControllerStubSettings.Builder serviceControllerSettingsBuilder =
  *     ServiceControllerStubSettings.newBuilder();
  * serviceControllerSettingsBuilder
  *     .checkSettings()
  *     .setRetrySettings(
- *         serviceControllerSettingsBuilder
- *             .checkSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         serviceControllerSettingsBuilder.checkSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * ServiceControllerStubSettings serviceControllerSettings =
diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/ServiceControllerClient.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/ServiceControllerClient.java
index 6987abbbc758..f5f5f1c72dc6 100644
--- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/ServiceControllerClient.java
+++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/ServiceControllerClient.java
@@ -38,8 +38,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 (ServiceControllerClient serviceControllerClient = ServiceControllerClient.create()) {
  *   CheckRequest request =
  *       CheckRequest.newBuilder()
@@ -83,8 +86,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
  * ServiceControllerSettings serviceControllerSettings =
  *     ServiceControllerSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -96,8 +102,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
  * ServiceControllerSettings serviceControllerSettings =
  *     ServiceControllerSettings.newBuilder().setEndpoint(myEndpoint).build();
  * ServiceControllerClient serviceControllerClient =
@@ -108,8 +117,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
  * ServiceControllerSettings serviceControllerSettings =
  *     ServiceControllerSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -195,8 +207,11 @@ public ServiceControllerStub getStub() {
    * 

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 (ServiceControllerClient serviceControllerClient = ServiceControllerClient.create()) {
    *   CheckRequest request =
    *       CheckRequest.newBuilder()
@@ -241,8 +256,11 @@ public final CheckResponse check(CheckRequest 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 (ServiceControllerClient serviceControllerClient = ServiceControllerClient.create()) {
    *   CheckRequest request =
    *       CheckRequest.newBuilder()
@@ -282,8 +300,11 @@ public final UnaryCallable checkCallable() {
    * 

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 (ServiceControllerClient serviceControllerClient = ServiceControllerClient.create()) {
    *   ReportRequest request =
    *       ReportRequest.newBuilder()
@@ -322,8 +343,11 @@ public final ReportResponse report(ReportRequest 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 (ServiceControllerClient serviceControllerClient = ServiceControllerClient.create()) {
    *   ReportRequest request =
    *       ReportRequest.newBuilder()
diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/ServiceControllerSettings.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/ServiceControllerSettings.java
index 7aa34a2ac936..80c1e12d94f9 100644
--- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/ServiceControllerSettings.java
+++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/ServiceControllerSettings.java
@@ -51,17 +51,17 @@
  * 

For example, to set the total timeout of check 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
  * ServiceControllerSettings.Builder serviceControllerSettingsBuilder =
  *     ServiceControllerSettings.newBuilder();
  * serviceControllerSettingsBuilder
  *     .checkSettings()
  *     .setRetrySettings(
- *         serviceControllerSettingsBuilder
- *             .checkSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         serviceControllerSettingsBuilder.checkSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * ServiceControllerSettings serviceControllerSettings = serviceControllerSettingsBuilder.build();
diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/package-info.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/package-info.java
index 900cedcf5103..16b469b2c09b 100644
--- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/package-info.java
+++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/package-info.java
@@ -32,8 +32,11 @@
  * 

Sample for ServiceControllerClient: * *

{@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 (ServiceControllerClient serviceControllerClient = ServiceControllerClient.create()) {
  *   CheckRequest request =
  *       CheckRequest.newBuilder()
diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/stub/HttpJsonServiceControllerStub.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/stub/HttpJsonServiceControllerStub.java
index ff00dc8a0f74..0385b816978b 100644
--- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/stub/HttpJsonServiceControllerStub.java
+++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/stub/HttpJsonServiceControllerStub.java
@@ -76,7 +76,7 @@ public class HttpJsonServiceControllerStub extends ServiceControllerStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearServiceName().build()))
+                              .toBody("*", request.toBuilder().clearServiceName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -111,7 +111,7 @@ public class HttpJsonServiceControllerStub extends ServiceControllerStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearServiceName().build()))
+                              .toBody("*", request.toBuilder().clearServiceName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/stub/ServiceControllerStubSettings.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/stub/ServiceControllerStubSettings.java
index edc8408d1445..d973c05bdf72 100644
--- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/stub/ServiceControllerStubSettings.java
+++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/stub/ServiceControllerStubSettings.java
@@ -66,17 +66,17 @@
  * 

For example, to set the total timeout of check 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
  * ServiceControllerStubSettings.Builder serviceControllerSettingsBuilder =
  *     ServiceControllerStubSettings.newBuilder();
  * serviceControllerSettingsBuilder
  *     .checkSettings()
  *     .setRetrySettings(
- *         serviceControllerSettingsBuilder
- *             .checkSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         serviceControllerSettingsBuilder.checkSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * ServiceControllerStubSettings serviceControllerSettings =