From 67e4ea19c3913492dae2d93f8c2d1f8764293a43 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 8 Sep 2022 21:10:21 +0000 Subject: [PATCH 1/6] chore(main): release 2.3.4-SNAPSHOT (#887) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-language-bom/pom.xml | 12 ++++++------ google-cloud-language/pom.xml | 4 ++-- grpc-google-cloud-language-v1/pom.xml | 4 ++-- grpc-google-cloud-language-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-language-v1/pom.xml | 4 ++-- proto-google-cloud-language-v1beta2/pom.xml | 4 ++-- versions.txt | 10 +++++----- 8 files changed, 27 insertions(+), 27 deletions(-) diff --git a/google-cloud-language-bom/pom.xml b/google-cloud-language-bom/pom.xml index a1acd9c8..47f7ae4f 100644 --- a/google-cloud-language-bom/pom.xml +++ b/google-cloud-language-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-language-bom - 2.3.3 + 2.3.4-SNAPSHOT pom com.google.cloud @@ -52,27 +52,27 @@ com.google.cloud google-cloud-language - 2.3.3 + 2.3.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v1 - 2.3.3 + 2.3.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.90.3 + 0.90.4-SNAPSHOT com.google.api.grpc proto-google-cloud-language-v1 - 2.3.3 + 2.3.4-SNAPSHOT com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.90.3 + 0.90.4-SNAPSHOT diff --git a/google-cloud-language/pom.xml b/google-cloud-language/pom.xml index 0cb4cf9e..2e0d629d 100644 --- a/google-cloud-language/pom.xml +++ b/google-cloud-language/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-language - 2.3.3 + 2.3.4-SNAPSHOT jar Google Cloud Natural Language https://github.com/googleapis/java-language @@ -11,7 +11,7 @@ com.google.cloud google-cloud-language-parent - 2.3.3 + 2.3.4-SNAPSHOT google-cloud-language diff --git a/grpc-google-cloud-language-v1/pom.xml b/grpc-google-cloud-language-v1/pom.xml index f622b479..fcedf2bd 100644 --- a/grpc-google-cloud-language-v1/pom.xml +++ b/grpc-google-cloud-language-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-language-v1 - 2.3.3 + 2.3.4-SNAPSHOT grpc-google-cloud-language-v1 GRPC library for grpc-google-cloud-language-v1 com.google.cloud google-cloud-language-parent - 2.3.3 + 2.3.4-SNAPSHOT diff --git a/grpc-google-cloud-language-v1beta2/pom.xml b/grpc-google-cloud-language-v1beta2/pom.xml index f719a69b..04877ca0 100644 --- a/grpc-google-cloud-language-v1beta2/pom.xml +++ b/grpc-google-cloud-language-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.90.3 + 0.90.4-SNAPSHOT grpc-google-cloud-language-v1beta2 GRPC library for grpc-google-cloud-language-v1beta2 com.google.cloud google-cloud-language-parent - 2.3.3 + 2.3.4-SNAPSHOT diff --git a/pom.xml b/pom.xml index 197b1090..59dc98e9 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-language-parent pom - 2.3.3 + 2.3.4-SNAPSHOT Google Cloud Natural Language Parent https://github.com/googleapis/java-language @@ -61,27 +61,27 @@ com.google.api.grpc proto-google-cloud-language-v1 - 2.3.3 + 2.3.4-SNAPSHOT com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.90.3 + 0.90.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v1 - 2.3.3 + 2.3.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.90.3 + 0.90.4-SNAPSHOT com.google.cloud google-cloud-language - 2.3.3 + 2.3.4-SNAPSHOT diff --git a/proto-google-cloud-language-v1/pom.xml b/proto-google-cloud-language-v1/pom.xml index 5bd65cf2..5a9496a8 100644 --- a/proto-google-cloud-language-v1/pom.xml +++ b/proto-google-cloud-language-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-language-v1 - 2.3.3 + 2.3.4-SNAPSHOT proto-google-cloud-language-v1 PROTO library for proto-google-cloud-language-v1 com.google.cloud google-cloud-language-parent - 2.3.3 + 2.3.4-SNAPSHOT diff --git a/proto-google-cloud-language-v1beta2/pom.xml b/proto-google-cloud-language-v1beta2/pom.xml index b20282c7..c59ad13f 100644 --- a/proto-google-cloud-language-v1beta2/pom.xml +++ b/proto-google-cloud-language-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.90.3 + 0.90.4-SNAPSHOT proto-google-cloud-language-v1beta2 PROTO library for proto-google-cloud-language-v1beta2 com.google.cloud google-cloud-language-parent - 2.3.3 + 2.3.4-SNAPSHOT diff --git a/versions.txt b/versions.txt index 887e360a..541f667e 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-language:2.3.3:2.3.3 -grpc-google-cloud-language-v1:2.3.3:2.3.3 -grpc-google-cloud-language-v1beta2:0.90.3:0.90.3 -proto-google-cloud-language-v1:2.3.3:2.3.3 -proto-google-cloud-language-v1beta2:0.90.3:0.90.3 +google-cloud-language:2.3.3:2.3.4-SNAPSHOT +grpc-google-cloud-language-v1:2.3.3:2.3.4-SNAPSHOT +grpc-google-cloud-language-v1beta2:0.90.3:0.90.4-SNAPSHOT +proto-google-cloud-language-v1:2.3.3:2.3.4-SNAPSHOT +proto-google-cloud-language-v1beta2:0.90.3:0.90.4-SNAPSHOT From 8ebb344252b0f1dfda48ac0d14dd86ccf3d8b94d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Sep 2022 05:40:23 +0200 Subject: [PATCH 2/6] chore(deps): update dependency com.google.cloud:google-cloud-language to v2.3.3 (#888) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-language](https://togithub.com/googleapis/java-language) | `2.3.2` -> `2.3.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-language/2.3.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-language/2.3.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-language/2.3.3/compatibility-slim/2.3.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-language/2.3.3/confidence-slim/2.3.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-language ### [`v2.3.3`](https://togithub.com/googleapis/java-language/blob/HEAD/CHANGELOG.md#​233-httpsgithubcomgoogleapisjava-languagecomparev232v233-2022-09-08) [Compare Source](https://togithub.com/googleapis/java-language/compare/v2.3.2...v2.3.3) ##### Dependencies - Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#​885](https://togithub.com/googleapis/java-language/issues/885)) ([cd8a4d0](https://togithub.com/googleapis/java-language/commit/cd8a4d03904a15cd8994b73f179f5bff391c97fe))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-language). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f6a8ac38..eed70ac9 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-language - 2.3.2 + 2.3.3 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-language' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-language:2.3.2' +implementation 'com.google.cloud:google-cloud-language:2.3.3' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.3.2" +libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.3.3" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index ad2c5a93..b04d2dce 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-language - 2.3.2 + 2.3.3 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index db48c087..7e94ca17 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-language - 2.3.2 + 2.3.3 From 32a11e182f0dea0afd882253da90715551c4fddf 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:32:21 +0000 Subject: [PATCH 3/6] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#884) - [ ] 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 --- .../language/v1/LanguageServiceClient.java | 189 +++++++++++++----- .../language/v1/LanguageServiceSettings.java | 12 +- .../cloud/language/v1/package-info.java | 7 +- .../v1/stub/HttpJsonLanguageServiceStub.java | 18 +- .../v1/stub/LanguageServiceStubSettings.java | 12 +- .../v1beta2/LanguageServiceClient.java | 189 +++++++++++++----- .../v1beta2/LanguageServiceSettings.java | 12 +- .../cloud/language/v1beta2/package-info.java | 7 +- .../stub/HttpJsonLanguageServiceStub.java | 18 +- .../stub/LanguageServiceStubSettings.java | 12 +- .../analyzeentities/AsyncAnalyzeEntities.java | 7 +- .../analyzeentities/SyncAnalyzeEntities.java | 7 +- .../SyncAnalyzeEntitiesDocument.java | 7 +- ...ncAnalyzeEntitiesDocumentEncodingtype.java | 7 +- .../AsyncAnalyzeEntitySentiment.java | 7 +- .../SyncAnalyzeEntitySentiment.java | 7 +- .../SyncAnalyzeEntitySentimentDocument.java | 7 +- ...zeEntitySentimentDocumentEncodingtype.java | 7 +- .../AsyncAnalyzeSentiment.java | 7 +- .../SyncAnalyzeSentiment.java | 7 +- .../SyncAnalyzeSentimentDocument.java | 7 +- ...cAnalyzeSentimentDocumentEncodingtype.java | 7 +- .../analyzesyntax/AsyncAnalyzeSyntax.java | 7 +- .../analyzesyntax/SyncAnalyzeSyntax.java | 7 +- .../SyncAnalyzeSyntaxDocument.java | 7 +- ...SyncAnalyzeSyntaxDocumentEncodingtype.java | 7 +- .../annotatetext/AsyncAnnotateText.java | 7 +- .../annotatetext/SyncAnnotateText.java | 7 +- ...xtDocumentAnnotatetextrequestfeatures.java | 7 +- ...notatetextrequestfeaturesEncodingtype.java | 7 +- .../classifytext/AsyncClassifyText.java | 7 +- .../classifytext/SyncClassifyText.java | 7 +- .../SyncClassifyTextDocument.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../SyncAnalyzeSentiment.java | 12 +- .../SyncAnalyzeSentiment.java | 12 +- .../analyzeentities/AsyncAnalyzeEntities.java | 7 +- .../analyzeentities/SyncAnalyzeEntities.java | 7 +- .../SyncAnalyzeEntitiesDocument.java | 7 +- ...ncAnalyzeEntitiesDocumentEncodingtype.java | 7 +- .../AsyncAnalyzeEntitySentiment.java | 7 +- .../SyncAnalyzeEntitySentiment.java | 7 +- .../SyncAnalyzeEntitySentimentDocument.java | 7 +- ...zeEntitySentimentDocumentEncodingtype.java | 7 +- .../AsyncAnalyzeSentiment.java | 7 +- .../SyncAnalyzeSentiment.java | 7 +- .../SyncAnalyzeSentimentDocument.java | 7 +- ...cAnalyzeSentimentDocumentEncodingtype.java | 7 +- .../analyzesyntax/AsyncAnalyzeSyntax.java | 7 +- .../analyzesyntax/SyncAnalyzeSyntax.java | 7 +- .../SyncAnalyzeSyntaxDocument.java | 7 +- ...SyncAnalyzeSyntaxDocumentEncodingtype.java | 7 +- .../annotatetext/AsyncAnnotateText.java | 7 +- .../annotatetext/SyncAnnotateText.java | 7 +- ...xtDocumentAnnotatetextrequestfeatures.java | 7 +- ...notatetextrequestfeaturesEncodingtype.java | 7 +- .../classifytext/AsyncClassifyText.java | 7 +- .../classifytext/SyncClassifyText.java | 7 +- .../SyncClassifyTextDocument.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../SyncAnalyzeSentiment.java | 12 +- .../SyncAnalyzeSentiment.java | 12 +- 66 files changed, 612 insertions(+), 276 deletions(-) diff --git a/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceClient.java b/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceClient.java index 02f76dc1..e4d00fdd 100644 --- a/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceClient.java +++ b/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceClient.java @@ -33,8 +33,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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
  *   Document document = Document.newBuilder().build();
  *   AnalyzeSentimentResponse response = languageServiceClient.analyzeSentiment(document);
@@ -71,8 +74,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
  * LanguageServiceSettings languageServiceSettings =
  *     LanguageServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -84,8 +90,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
  * LanguageServiceSettings languageServiceSettings =
  *     LanguageServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * LanguageServiceClient languageServiceClient =
@@ -96,8 +105,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
  * LanguageServiceSettings languageServiceSettings =
  *     LanguageServiceSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -166,8 +178,11 @@ public LanguageServiceStub 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   Document document = Document.newBuilder().build();
    *   AnalyzeSentimentResponse response = languageServiceClient.analyzeSentiment(document);
@@ -190,8 +205,11 @@ public final AnalyzeSentimentResponse analyzeSentiment(Document document) {
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   Document document = Document.newBuilder().build();
    *   EncodingType encodingType = EncodingType.forNumber(0);
@@ -221,8 +239,11 @@ public final AnalyzeSentimentResponse analyzeSentiment(
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   AnalyzeSentimentRequest request =
    *       AnalyzeSentimentRequest.newBuilder()
@@ -247,8 +268,11 @@ public final AnalyzeSentimentResponse analyzeSentiment(AnalyzeSentimentRequest r
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   AnalyzeSentimentRequest request =
    *       AnalyzeSentimentRequest.newBuilder()
@@ -275,8 +299,11 @@ public final AnalyzeSentimentResponse analyzeSentiment(AnalyzeSentimentRequest r
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   Document document = Document.newBuilder().build();
    *   AnalyzeEntitiesResponse response = languageServiceClient.analyzeEntities(document);
@@ -300,8 +327,11 @@ public final AnalyzeEntitiesResponse analyzeEntities(Document document) {
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   Document document = Document.newBuilder().build();
    *   EncodingType encodingType = EncodingType.forNumber(0);
@@ -332,8 +362,11 @@ public final AnalyzeEntitiesResponse analyzeEntities(
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   AnalyzeEntitiesRequest request =
    *       AnalyzeEntitiesRequest.newBuilder()
@@ -359,8 +392,11 @@ public final AnalyzeEntitiesResponse analyzeEntities(AnalyzeEntitiesRequest requ
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   AnalyzeEntitiesRequest request =
    *       AnalyzeEntitiesRequest.newBuilder()
@@ -388,8 +424,11 @@ public final AnalyzeEntitiesResponse analyzeEntities(AnalyzeEntitiesRequest requ
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   Document document = Document.newBuilder().build();
    *   AnalyzeEntitySentimentResponse response =
@@ -415,8 +454,11 @@ public final AnalyzeEntitySentimentResponse analyzeEntitySentiment(Document docu
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   Document document = Document.newBuilder().build();
    *   EncodingType encodingType = EncodingType.forNumber(0);
@@ -448,8 +490,11 @@ public final AnalyzeEntitySentimentResponse analyzeEntitySentiment(
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   AnalyzeEntitySentimentRequest request =
    *       AnalyzeEntitySentimentRequest.newBuilder()
@@ -478,8 +523,11 @@ public final AnalyzeEntitySentimentResponse analyzeEntitySentiment(
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   AnalyzeEntitySentimentRequest request =
    *       AnalyzeEntitySentimentRequest.newBuilder()
@@ -506,8 +554,11 @@ public final AnalyzeEntitySentimentResponse analyzeEntitySentiment(
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   Document document = Document.newBuilder().build();
    *   AnalyzeSyntaxResponse response = languageServiceClient.analyzeSyntax(document);
@@ -530,8 +581,11 @@ public final AnalyzeSyntaxResponse analyzeSyntax(Document document) {
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   Document document = Document.newBuilder().build();
    *   EncodingType encodingType = EncodingType.forNumber(0);
@@ -560,8 +614,11 @@ public final AnalyzeSyntaxResponse analyzeSyntax(Document document, EncodingType
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   AnalyzeSyntaxRequest request =
    *       AnalyzeSyntaxRequest.newBuilder()
@@ -587,8 +644,11 @@ public final AnalyzeSyntaxResponse analyzeSyntax(AnalyzeSyntaxRequest 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   AnalyzeSyntaxRequest request =
    *       AnalyzeSyntaxRequest.newBuilder()
@@ -613,8 +673,11 @@ public final UnaryCallable analyzeS
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   Document document = Document.newBuilder().build();
    *   ClassifyTextResponse response = languageServiceClient.classifyText(document);
@@ -636,8 +699,11 @@ public final ClassifyTextResponse classifyText(Document document) {
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   ClassifyTextRequest request =
    *       ClassifyTextRequest.newBuilder().setDocument(Document.newBuilder().build()).build();
@@ -659,8 +725,11 @@ public final ClassifyTextResponse classifyText(ClassifyTextRequest 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   ClassifyTextRequest request =
    *       ClassifyTextRequest.newBuilder().setDocument(Document.newBuilder().build()).build();
@@ -683,8 +752,11 @@ public final UnaryCallable classifyTe
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   Document document = Document.newBuilder().build();
    *   AnnotateTextRequest.Features features = AnnotateTextRequest.Features.newBuilder().build();
@@ -711,8 +783,11 @@ public final AnnotateTextResponse annotateText(
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   Document document = Document.newBuilder().build();
    *   AnnotateTextRequest.Features features = AnnotateTextRequest.Features.newBuilder().build();
@@ -746,8 +821,11 @@ public final AnnotateTextResponse annotateText(
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   AnnotateTextRequest request =
    *       AnnotateTextRequest.newBuilder()
@@ -774,8 +852,11 @@ public final AnnotateTextResponse annotateText(AnnotateTextRequest 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   AnnotateTextRequest request =
    *       AnnotateTextRequest.newBuilder()
diff --git a/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceSettings.java b/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceSettings.java
index 30e6a07e..ddb085e7 100644
--- a/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceSettings.java
+++ b/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceSettings.java
@@ -50,17 +50,17 @@
  * 

For example, to set the total timeout of analyzeSentiment 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
  * LanguageServiceSettings.Builder languageServiceSettingsBuilder =
  *     LanguageServiceSettings.newBuilder();
  * languageServiceSettingsBuilder
  *     .analyzeSentimentSettings()
  *     .setRetrySettings(
- *         languageServiceSettingsBuilder
- *             .analyzeSentimentSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         languageServiceSettingsBuilder.analyzeSentimentSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * LanguageServiceSettings languageServiceSettings = languageServiceSettingsBuilder.build();
diff --git a/google-cloud-language/src/main/java/com/google/cloud/language/v1/package-info.java b/google-cloud-language/src/main/java/com/google/cloud/language/v1/package-info.java
index 6f13ad8e..5d1efcb4 100644
--- a/google-cloud-language/src/main/java/com/google/cloud/language/v1/package-info.java
+++ b/google-cloud-language/src/main/java/com/google/cloud/language/v1/package-info.java
@@ -25,8 +25,11 @@
  * 

Sample for LanguageServiceClient: * *

{@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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
  *   Document document = Document.newBuilder().build();
  *   AnalyzeSentimentResponse response = languageServiceClient.analyzeSentiment(document);
diff --git a/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/HttpJsonLanguageServiceStub.java b/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/HttpJsonLanguageServiceStub.java
index a7472b01..7956fe99 100644
--- a/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/HttpJsonLanguageServiceStub.java
+++ b/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/HttpJsonLanguageServiceStub.java
@@ -85,7 +85,8 @@ public class HttpJsonLanguageServiceStub extends LanguageServiceStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -119,7 +120,8 @@ public class HttpJsonLanguageServiceStub extends LanguageServiceStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -155,7 +157,8 @@ public class HttpJsonLanguageServiceStub extends LanguageServiceStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -189,7 +192,8 @@ public class HttpJsonLanguageServiceStub extends LanguageServiceStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -223,7 +227,8 @@ public class HttpJsonLanguageServiceStub extends LanguageServiceStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -257,7 +262,8 @@ public class HttpJsonLanguageServiceStub extends LanguageServiceStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStubSettings.java b/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStubSettings.java
index 8ac845b3..2b662592 100644
--- a/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStubSettings.java
+++ b/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStubSettings.java
@@ -73,17 +73,17 @@
  * 

For example, to set the total timeout of analyzeSentiment 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
  * LanguageServiceStubSettings.Builder languageServiceSettingsBuilder =
  *     LanguageServiceStubSettings.newBuilder();
  * languageServiceSettingsBuilder
  *     .analyzeSentimentSettings()
  *     .setRetrySettings(
- *         languageServiceSettingsBuilder
- *             .analyzeSentimentSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         languageServiceSettingsBuilder.analyzeSentimentSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * LanguageServiceStubSettings languageServiceSettings = languageServiceSettingsBuilder.build();
diff --git a/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/LanguageServiceClient.java b/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/LanguageServiceClient.java
index dd0d7a07..e887f23b 100644
--- a/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/LanguageServiceClient.java
+++ b/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/LanguageServiceClient.java
@@ -34,8 +34,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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
  *   Document document = Document.newBuilder().build();
  *   AnalyzeSentimentResponse response = languageServiceClient.analyzeSentiment(document);
@@ -72,8 +75,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
  * LanguageServiceSettings languageServiceSettings =
  *     LanguageServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -85,8 +91,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
  * LanguageServiceSettings languageServiceSettings =
  *     LanguageServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * LanguageServiceClient languageServiceClient =
@@ -97,8 +106,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
  * LanguageServiceSettings languageServiceSettings =
  *     LanguageServiceSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -168,8 +180,11 @@ public LanguageServiceStub 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   Document document = Document.newBuilder().build();
    *   AnalyzeSentimentResponse response = languageServiceClient.analyzeSentiment(document);
@@ -192,8 +207,11 @@ public final AnalyzeSentimentResponse analyzeSentiment(Document document) {
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   Document document = Document.newBuilder().build();
    *   EncodingType encodingType = EncodingType.forNumber(0);
@@ -224,8 +242,11 @@ public final AnalyzeSentimentResponse analyzeSentiment(
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   AnalyzeSentimentRequest request =
    *       AnalyzeSentimentRequest.newBuilder()
@@ -250,8 +271,11 @@ public final AnalyzeSentimentResponse analyzeSentiment(AnalyzeSentimentRequest r
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   AnalyzeSentimentRequest request =
    *       AnalyzeSentimentRequest.newBuilder()
@@ -278,8 +302,11 @@ public final AnalyzeSentimentResponse analyzeSentiment(AnalyzeSentimentRequest r
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   Document document = Document.newBuilder().build();
    *   AnalyzeEntitiesResponse response = languageServiceClient.analyzeEntities(document);
@@ -303,8 +330,11 @@ public final AnalyzeEntitiesResponse analyzeEntities(Document document) {
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   Document document = Document.newBuilder().build();
    *   EncodingType encodingType = EncodingType.forNumber(0);
@@ -335,8 +365,11 @@ public final AnalyzeEntitiesResponse analyzeEntities(
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   AnalyzeEntitiesRequest request =
    *       AnalyzeEntitiesRequest.newBuilder()
@@ -362,8 +395,11 @@ public final AnalyzeEntitiesResponse analyzeEntities(AnalyzeEntitiesRequest requ
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   AnalyzeEntitiesRequest request =
    *       AnalyzeEntitiesRequest.newBuilder()
@@ -391,8 +427,11 @@ public final AnalyzeEntitiesResponse analyzeEntities(AnalyzeEntitiesRequest requ
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   Document document = Document.newBuilder().build();
    *   AnalyzeEntitySentimentResponse response =
@@ -418,8 +457,11 @@ public final AnalyzeEntitySentimentResponse analyzeEntitySentiment(Document docu
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   Document document = Document.newBuilder().build();
    *   EncodingType encodingType = EncodingType.forNumber(0);
@@ -451,8 +493,11 @@ public final AnalyzeEntitySentimentResponse analyzeEntitySentiment(
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   AnalyzeEntitySentimentRequest request =
    *       AnalyzeEntitySentimentRequest.newBuilder()
@@ -481,8 +526,11 @@ public final AnalyzeEntitySentimentResponse analyzeEntitySentiment(
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   AnalyzeEntitySentimentRequest request =
    *       AnalyzeEntitySentimentRequest.newBuilder()
@@ -509,8 +557,11 @@ public final AnalyzeEntitySentimentResponse analyzeEntitySentiment(
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   Document document = Document.newBuilder().build();
    *   AnalyzeSyntaxResponse response = languageServiceClient.analyzeSyntax(document);
@@ -533,8 +584,11 @@ public final AnalyzeSyntaxResponse analyzeSyntax(Document document) {
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   Document document = Document.newBuilder().build();
    *   EncodingType encodingType = EncodingType.forNumber(0);
@@ -563,8 +617,11 @@ public final AnalyzeSyntaxResponse analyzeSyntax(Document document, EncodingType
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   AnalyzeSyntaxRequest request =
    *       AnalyzeSyntaxRequest.newBuilder()
@@ -590,8 +647,11 @@ public final AnalyzeSyntaxResponse analyzeSyntax(AnalyzeSyntaxRequest 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   AnalyzeSyntaxRequest request =
    *       AnalyzeSyntaxRequest.newBuilder()
@@ -616,8 +676,11 @@ public final UnaryCallable analyzeS
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   Document document = Document.newBuilder().build();
    *   ClassifyTextResponse response = languageServiceClient.classifyText(document);
@@ -639,8 +702,11 @@ public final ClassifyTextResponse classifyText(Document document) {
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   ClassifyTextRequest request =
    *       ClassifyTextRequest.newBuilder().setDocument(Document.newBuilder().build()).build();
@@ -662,8 +728,11 @@ public final ClassifyTextResponse classifyText(ClassifyTextRequest 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   ClassifyTextRequest request =
    *       ClassifyTextRequest.newBuilder().setDocument(Document.newBuilder().build()).build();
@@ -686,8 +755,11 @@ public final UnaryCallable classifyTe
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   Document document = Document.newBuilder().build();
    *   AnnotateTextRequest.Features features = AnnotateTextRequest.Features.newBuilder().build();
@@ -714,8 +786,11 @@ public final AnnotateTextResponse annotateText(
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   Document document = Document.newBuilder().build();
    *   AnnotateTextRequest.Features features = AnnotateTextRequest.Features.newBuilder().build();
@@ -749,8 +824,11 @@ public final AnnotateTextResponse annotateText(
    * 

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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   AnnotateTextRequest request =
    *       AnnotateTextRequest.newBuilder()
@@ -777,8 +855,11 @@ public final AnnotateTextResponse annotateText(AnnotateTextRequest 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
    *   AnnotateTextRequest request =
    *       AnnotateTextRequest.newBuilder()
diff --git a/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/LanguageServiceSettings.java b/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/LanguageServiceSettings.java
index 1bef411b..5d2d0dbb 100644
--- a/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/LanguageServiceSettings.java
+++ b/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/LanguageServiceSettings.java
@@ -50,17 +50,17 @@
  * 

For example, to set the total timeout of analyzeSentiment 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
  * LanguageServiceSettings.Builder languageServiceSettingsBuilder =
  *     LanguageServiceSettings.newBuilder();
  * languageServiceSettingsBuilder
  *     .analyzeSentimentSettings()
  *     .setRetrySettings(
- *         languageServiceSettingsBuilder
- *             .analyzeSentimentSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         languageServiceSettingsBuilder.analyzeSentimentSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * LanguageServiceSettings languageServiceSettings = languageServiceSettingsBuilder.build();
diff --git a/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/package-info.java b/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/package-info.java
index 00cfffea..8d011841 100644
--- a/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/package-info.java
+++ b/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/package-info.java
@@ -25,8 +25,11 @@
  * 

Sample for LanguageServiceClient: * *

{@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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
  *   Document document = Document.newBuilder().build();
  *   AnalyzeSentimentResponse response = languageServiceClient.analyzeSentiment(document);
diff --git a/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/HttpJsonLanguageServiceStub.java b/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/HttpJsonLanguageServiceStub.java
index 1630211e..f177a261 100644
--- a/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/HttpJsonLanguageServiceStub.java
+++ b/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/HttpJsonLanguageServiceStub.java
@@ -85,7 +85,8 @@ public class HttpJsonLanguageServiceStub extends LanguageServiceStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -119,7 +120,8 @@ public class HttpJsonLanguageServiceStub extends LanguageServiceStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -156,7 +158,8 @@ public class HttpJsonLanguageServiceStub extends LanguageServiceStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -190,7 +193,8 @@ public class HttpJsonLanguageServiceStub extends LanguageServiceStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -224,7 +228,8 @@ public class HttpJsonLanguageServiceStub extends LanguageServiceStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -258,7 +263,8 @@ public class HttpJsonLanguageServiceStub extends LanguageServiceStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/LanguageServiceStubSettings.java b/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/LanguageServiceStubSettings.java
index 721185c0..ea0e4565 100644
--- a/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/LanguageServiceStubSettings.java
+++ b/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/LanguageServiceStubSettings.java
@@ -73,17 +73,17 @@
  * 

For example, to set the total timeout of analyzeSentiment 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
  * LanguageServiceStubSettings.Builder languageServiceSettingsBuilder =
  *     LanguageServiceStubSettings.newBuilder();
  * languageServiceSettingsBuilder
  *     .analyzeSentimentSettings()
  *     .setRetrySettings(
- *         languageServiceSettingsBuilder
- *             .analyzeSentimentSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         languageServiceSettingsBuilder.analyzeSentimentSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * LanguageServiceStubSettings languageServiceSettings = languageServiceSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentities/AsyncAnalyzeEntities.java b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentities/AsyncAnalyzeEntities.java
index c5dcde02..f35e1201 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentities/AsyncAnalyzeEntities.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentities/AsyncAnalyzeEntities.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncAnalyzeEntities() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       AnalyzeEntitiesRequest request =
           AnalyzeEntitiesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentities/SyncAnalyzeEntities.java b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentities/SyncAnalyzeEntities.java
index 647da31d..1b641f00 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentities/SyncAnalyzeEntities.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentities/SyncAnalyzeEntities.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeEntities() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       AnalyzeEntitiesRequest request =
           AnalyzeEntitiesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentities/SyncAnalyzeEntitiesDocument.java b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentities/SyncAnalyzeEntitiesDocument.java
index 6979956c..7c06cfc8 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentities/SyncAnalyzeEntitiesDocument.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentities/SyncAnalyzeEntitiesDocument.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeEntitiesDocument() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       Document document = Document.newBuilder().build();
       AnalyzeEntitiesResponse response = languageServiceClient.analyzeEntities(document);
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentities/SyncAnalyzeEntitiesDocumentEncodingtype.java b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentities/SyncAnalyzeEntitiesDocumentEncodingtype.java
index c0c55004..c249d1b4 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentities/SyncAnalyzeEntitiesDocumentEncodingtype.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentities/SyncAnalyzeEntitiesDocumentEncodingtype.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeEntitiesDocumentEncodingtype() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       Document document = Document.newBuilder().build();
       EncodingType encodingType = EncodingType.forNumber(0);
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentitysentiment/AsyncAnalyzeEntitySentiment.java b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentitysentiment/AsyncAnalyzeEntitySentiment.java
index 0b0c3d03..771ae366 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentitysentiment/AsyncAnalyzeEntitySentiment.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentitysentiment/AsyncAnalyzeEntitySentiment.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncAnalyzeEntitySentiment() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       AnalyzeEntitySentimentRequest request =
           AnalyzeEntitySentimentRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentitysentiment/SyncAnalyzeEntitySentiment.java b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentitysentiment/SyncAnalyzeEntitySentiment.java
index 81ea2d78..00e55c62 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentitysentiment/SyncAnalyzeEntitySentiment.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentitysentiment/SyncAnalyzeEntitySentiment.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeEntitySentiment() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       AnalyzeEntitySentimentRequest request =
           AnalyzeEntitySentimentRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentitysentiment/SyncAnalyzeEntitySentimentDocument.java b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentitysentiment/SyncAnalyzeEntitySentimentDocument.java
index a5c73d8a..fc6505eb 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentitysentiment/SyncAnalyzeEntitySentimentDocument.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentitysentiment/SyncAnalyzeEntitySentimentDocument.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeEntitySentimentDocument() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       Document document = Document.newBuilder().build();
       AnalyzeEntitySentimentResponse response =
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentitysentiment/SyncAnalyzeEntitySentimentDocumentEncodingtype.java b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentitysentiment/SyncAnalyzeEntitySentimentDocumentEncodingtype.java
index f31ef23e..4bd8bbd3 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentitysentiment/SyncAnalyzeEntitySentimentDocumentEncodingtype.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzeentitysentiment/SyncAnalyzeEntitySentimentDocumentEncodingtype.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeEntitySentimentDocumentEncodingtype() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       Document document = Document.newBuilder().build();
       EncodingType encodingType = EncodingType.forNumber(0);
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesentiment/AsyncAnalyzeSentiment.java b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesentiment/AsyncAnalyzeSentiment.java
index 0e5cd648..1224abdd 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesentiment/AsyncAnalyzeSentiment.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesentiment/AsyncAnalyzeSentiment.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncAnalyzeSentiment() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       AnalyzeSentimentRequest request =
           AnalyzeSentimentRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesentiment/SyncAnalyzeSentiment.java b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesentiment/SyncAnalyzeSentiment.java
index 8b19f3ee..fc5b5f9f 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesentiment/SyncAnalyzeSentiment.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesentiment/SyncAnalyzeSentiment.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeSentiment() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       AnalyzeSentimentRequest request =
           AnalyzeSentimentRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesentiment/SyncAnalyzeSentimentDocument.java b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesentiment/SyncAnalyzeSentimentDocument.java
index faaf05a0..5fc0ab6b 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesentiment/SyncAnalyzeSentimentDocument.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesentiment/SyncAnalyzeSentimentDocument.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeSentimentDocument() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       Document document = Document.newBuilder().build();
       AnalyzeSentimentResponse response = languageServiceClient.analyzeSentiment(document);
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesentiment/SyncAnalyzeSentimentDocumentEncodingtype.java b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesentiment/SyncAnalyzeSentimentDocumentEncodingtype.java
index 3b2c8764..9baa8e4f 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesentiment/SyncAnalyzeSentimentDocumentEncodingtype.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesentiment/SyncAnalyzeSentimentDocumentEncodingtype.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeSentimentDocumentEncodingtype() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       Document document = Document.newBuilder().build();
       EncodingType encodingType = EncodingType.forNumber(0);
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesyntax/AsyncAnalyzeSyntax.java b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesyntax/AsyncAnalyzeSyntax.java
index d5a7a3f5..ea72f04b 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesyntax/AsyncAnalyzeSyntax.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesyntax/AsyncAnalyzeSyntax.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncAnalyzeSyntax() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       AnalyzeSyntaxRequest request =
           AnalyzeSyntaxRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesyntax/SyncAnalyzeSyntax.java b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesyntax/SyncAnalyzeSyntax.java
index 52acf866..34e80427 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesyntax/SyncAnalyzeSyntax.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesyntax/SyncAnalyzeSyntax.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeSyntax() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       AnalyzeSyntaxRequest request =
           AnalyzeSyntaxRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesyntax/SyncAnalyzeSyntaxDocument.java b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesyntax/SyncAnalyzeSyntaxDocument.java
index 8fdcce26..282e8557 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesyntax/SyncAnalyzeSyntaxDocument.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesyntax/SyncAnalyzeSyntaxDocument.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeSyntaxDocument() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       Document document = Document.newBuilder().build();
       AnalyzeSyntaxResponse response = languageServiceClient.analyzeSyntax(document);
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesyntax/SyncAnalyzeSyntaxDocumentEncodingtype.java b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesyntax/SyncAnalyzeSyntaxDocumentEncodingtype.java
index 3f461876..fdeab0b6 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesyntax/SyncAnalyzeSyntaxDocumentEncodingtype.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/analyzesyntax/SyncAnalyzeSyntaxDocumentEncodingtype.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeSyntaxDocumentEncodingtype() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       Document document = Document.newBuilder().build();
       EncodingType encodingType = EncodingType.forNumber(0);
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/annotatetext/AsyncAnnotateText.java b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/annotatetext/AsyncAnnotateText.java
index e68d89cd..8bcc06e7 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/annotatetext/AsyncAnnotateText.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/annotatetext/AsyncAnnotateText.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncAnnotateText() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       AnnotateTextRequest request =
           AnnotateTextRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/annotatetext/SyncAnnotateText.java b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/annotatetext/SyncAnnotateText.java
index 197561c1..47245674 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/annotatetext/SyncAnnotateText.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/annotatetext/SyncAnnotateText.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnnotateText() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       AnnotateTextRequest request =
           AnnotateTextRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/annotatetext/SyncAnnotateTextDocumentAnnotatetextrequestfeatures.java b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/annotatetext/SyncAnnotateTextDocumentAnnotatetextrequestfeatures.java
index 8415a8f0..b78e84ad 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/annotatetext/SyncAnnotateTextDocumentAnnotatetextrequestfeatures.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/annotatetext/SyncAnnotateTextDocumentAnnotatetextrequestfeatures.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnnotateTextDocumentAnnotatetextrequestfeatures() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       Document document = Document.newBuilder().build();
       AnnotateTextRequest.Features features = AnnotateTextRequest.Features.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/annotatetext/SyncAnnotateTextDocumentAnnotatetextrequestfeaturesEncodingtype.java b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/annotatetext/SyncAnnotateTextDocumentAnnotatetextrequestfeaturesEncodingtype.java
index 477c4b81..261a6b4d 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/annotatetext/SyncAnnotateTextDocumentAnnotatetextrequestfeaturesEncodingtype.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/annotatetext/SyncAnnotateTextDocumentAnnotatetextrequestfeaturesEncodingtype.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
 
   public static void syncAnnotateTextDocumentAnnotatetextrequestfeaturesEncodingtype()
       throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       Document document = Document.newBuilder().build();
       AnnotateTextRequest.Features features = AnnotateTextRequest.Features.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/classifytext/AsyncClassifyText.java b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/classifytext/AsyncClassifyText.java
index f32f5513..def8f6a5 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/classifytext/AsyncClassifyText.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/classifytext/AsyncClassifyText.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncClassifyText() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       ClassifyTextRequest request =
           ClassifyTextRequest.newBuilder().setDocument(Document.newBuilder().build()).build();
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/classifytext/SyncClassifyText.java b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/classifytext/SyncClassifyText.java
index 71cc2b42..5e68d26b 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/classifytext/SyncClassifyText.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/classifytext/SyncClassifyText.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncClassifyText() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       ClassifyTextRequest request =
           ClassifyTextRequest.newBuilder().setDocument(Document.newBuilder().build()).build();
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/classifytext/SyncClassifyTextDocument.java b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/classifytext/SyncClassifyTextDocument.java
index dc264b7b..93665252 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/classifytext/SyncClassifyTextDocument.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/classifytext/SyncClassifyTextDocument.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncClassifyTextDocument() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       Document document = Document.newBuilder().build();
       ClassifyTextResponse response = languageServiceClient.classifyText(document);
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/create/SyncCreateSetCredentialsProvider.java
index 5affb679..8e0ac427 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/create/SyncCreateSetCredentialsProvider.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider() throws Exception {
-    // 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
     LanguageServiceSettings languageServiceSettings =
         LanguageServiceSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/create/SyncCreateSetCredentialsProvider1.java
index 5557835f..3ad70bd4 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/create/SyncCreateSetCredentialsProvider1.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider1() throws Exception {
-    // 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
     LanguageServiceSettings languageServiceSettings =
         LanguageServiceSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/create/SyncCreateSetEndpoint.java
index e24ecbe8..bc6d0712 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageserviceclient/create/SyncCreateSetEndpoint.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetEndpoint() throws Exception {
-    // 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
     LanguageServiceSettings languageServiceSettings =
         LanguageServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
     LanguageServiceClient languageServiceClient =
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/languageservicesettings/analyzesentiment/SyncAnalyzeSentiment.java b/samples/snippets/generated/com/google/cloud/language/v1/languageservicesettings/analyzesentiment/SyncAnalyzeSentiment.java
index 00da3016..b1989ce7 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/languageservicesettings/analyzesentiment/SyncAnalyzeSentiment.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/languageservicesettings/analyzesentiment/SyncAnalyzeSentiment.java
@@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeSentiment() throws Exception {
-    // 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
     LanguageServiceSettings.Builder languageServiceSettingsBuilder =
         LanguageServiceSettings.newBuilder();
     languageServiceSettingsBuilder
         .analyzeSentimentSettings()
         .setRetrySettings(
-            languageServiceSettingsBuilder
-                .analyzeSentimentSettings()
-                .getRetrySettings()
-                .toBuilder()
+            languageServiceSettingsBuilder.analyzeSentimentSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     LanguageServiceSettings languageServiceSettings = languageServiceSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/language/v1/stub/languageservicestubsettings/analyzesentiment/SyncAnalyzeSentiment.java b/samples/snippets/generated/com/google/cloud/language/v1/stub/languageservicestubsettings/analyzesentiment/SyncAnalyzeSentiment.java
index bee72673..08acbeda 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1/stub/languageservicestubsettings/analyzesentiment/SyncAnalyzeSentiment.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1/stub/languageservicestubsettings/analyzesentiment/SyncAnalyzeSentiment.java
@@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeSentiment() throws Exception {
-    // 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
     LanguageServiceStubSettings.Builder languageServiceSettingsBuilder =
         LanguageServiceStubSettings.newBuilder();
     languageServiceSettingsBuilder
         .analyzeSentimentSettings()
         .setRetrySettings(
-            languageServiceSettingsBuilder
-                .analyzeSentimentSettings()
-                .getRetrySettings()
-                .toBuilder()
+            languageServiceSettingsBuilder.analyzeSentimentSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     LanguageServiceStubSettings languageServiceSettings = languageServiceSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentities/AsyncAnalyzeEntities.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentities/AsyncAnalyzeEntities.java
index 428a0a5a..1a1f9409 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentities/AsyncAnalyzeEntities.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentities/AsyncAnalyzeEntities.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncAnalyzeEntities() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       AnalyzeEntitiesRequest request =
           AnalyzeEntitiesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentities/SyncAnalyzeEntities.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentities/SyncAnalyzeEntities.java
index a9f9c8e9..901012a5 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentities/SyncAnalyzeEntities.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentities/SyncAnalyzeEntities.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeEntities() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       AnalyzeEntitiesRequest request =
           AnalyzeEntitiesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentities/SyncAnalyzeEntitiesDocument.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentities/SyncAnalyzeEntitiesDocument.java
index 51684990..f08af4b7 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentities/SyncAnalyzeEntitiesDocument.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentities/SyncAnalyzeEntitiesDocument.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeEntitiesDocument() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       Document document = Document.newBuilder().build();
       AnalyzeEntitiesResponse response = languageServiceClient.analyzeEntities(document);
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentities/SyncAnalyzeEntitiesDocumentEncodingtype.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentities/SyncAnalyzeEntitiesDocumentEncodingtype.java
index 5683d97c..89bc7669 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentities/SyncAnalyzeEntitiesDocumentEncodingtype.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentities/SyncAnalyzeEntitiesDocumentEncodingtype.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeEntitiesDocumentEncodingtype() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       Document document = Document.newBuilder().build();
       EncodingType encodingType = EncodingType.forNumber(0);
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentitysentiment/AsyncAnalyzeEntitySentiment.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentitysentiment/AsyncAnalyzeEntitySentiment.java
index fa5214d0..3b053866 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentitysentiment/AsyncAnalyzeEntitySentiment.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentitysentiment/AsyncAnalyzeEntitySentiment.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncAnalyzeEntitySentiment() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       AnalyzeEntitySentimentRequest request =
           AnalyzeEntitySentimentRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentitysentiment/SyncAnalyzeEntitySentiment.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentitysentiment/SyncAnalyzeEntitySentiment.java
index 0c934d0b..baf5711f 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentitysentiment/SyncAnalyzeEntitySentiment.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentitysentiment/SyncAnalyzeEntitySentiment.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeEntitySentiment() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       AnalyzeEntitySentimentRequest request =
           AnalyzeEntitySentimentRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentitysentiment/SyncAnalyzeEntitySentimentDocument.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentitysentiment/SyncAnalyzeEntitySentimentDocument.java
index d2aaf663..2df99ec2 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentitysentiment/SyncAnalyzeEntitySentimentDocument.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentitysentiment/SyncAnalyzeEntitySentimentDocument.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeEntitySentimentDocument() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       Document document = Document.newBuilder().build();
       AnalyzeEntitySentimentResponse response =
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentitysentiment/SyncAnalyzeEntitySentimentDocumentEncodingtype.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentitysentiment/SyncAnalyzeEntitySentimentDocumentEncodingtype.java
index 42c2975a..3bfbf272 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentitysentiment/SyncAnalyzeEntitySentimentDocumentEncodingtype.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzeentitysentiment/SyncAnalyzeEntitySentimentDocumentEncodingtype.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeEntitySentimentDocumentEncodingtype() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       Document document = Document.newBuilder().build();
       EncodingType encodingType = EncodingType.forNumber(0);
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesentiment/AsyncAnalyzeSentiment.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesentiment/AsyncAnalyzeSentiment.java
index 4ec820fc..aeb1e8ae 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesentiment/AsyncAnalyzeSentiment.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesentiment/AsyncAnalyzeSentiment.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncAnalyzeSentiment() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       AnalyzeSentimentRequest request =
           AnalyzeSentimentRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesentiment/SyncAnalyzeSentiment.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesentiment/SyncAnalyzeSentiment.java
index 19ee4b84..4c5f7e4e 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesentiment/SyncAnalyzeSentiment.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesentiment/SyncAnalyzeSentiment.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeSentiment() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       AnalyzeSentimentRequest request =
           AnalyzeSentimentRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesentiment/SyncAnalyzeSentimentDocument.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesentiment/SyncAnalyzeSentimentDocument.java
index 6948b78e..bbc5d8c2 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesentiment/SyncAnalyzeSentimentDocument.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesentiment/SyncAnalyzeSentimentDocument.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeSentimentDocument() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       Document document = Document.newBuilder().build();
       AnalyzeSentimentResponse response = languageServiceClient.analyzeSentiment(document);
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesentiment/SyncAnalyzeSentimentDocumentEncodingtype.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesentiment/SyncAnalyzeSentimentDocumentEncodingtype.java
index c3047b32..cb710a70 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesentiment/SyncAnalyzeSentimentDocumentEncodingtype.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesentiment/SyncAnalyzeSentimentDocumentEncodingtype.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeSentimentDocumentEncodingtype() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       Document document = Document.newBuilder().build();
       EncodingType encodingType = EncodingType.forNumber(0);
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesyntax/AsyncAnalyzeSyntax.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesyntax/AsyncAnalyzeSyntax.java
index 5503e6f9..f5eee930 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesyntax/AsyncAnalyzeSyntax.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesyntax/AsyncAnalyzeSyntax.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncAnalyzeSyntax() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       AnalyzeSyntaxRequest request =
           AnalyzeSyntaxRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesyntax/SyncAnalyzeSyntax.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesyntax/SyncAnalyzeSyntax.java
index 688674a0..9254f4a5 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesyntax/SyncAnalyzeSyntax.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesyntax/SyncAnalyzeSyntax.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeSyntax() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       AnalyzeSyntaxRequest request =
           AnalyzeSyntaxRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesyntax/SyncAnalyzeSyntaxDocument.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesyntax/SyncAnalyzeSyntaxDocument.java
index a705cede..2332236d 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesyntax/SyncAnalyzeSyntaxDocument.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesyntax/SyncAnalyzeSyntaxDocument.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeSyntaxDocument() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       Document document = Document.newBuilder().build();
       AnalyzeSyntaxResponse response = languageServiceClient.analyzeSyntax(document);
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesyntax/SyncAnalyzeSyntaxDocumentEncodingtype.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesyntax/SyncAnalyzeSyntaxDocumentEncodingtype.java
index d420702b..ebc18f5a 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesyntax/SyncAnalyzeSyntaxDocumentEncodingtype.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/analyzesyntax/SyncAnalyzeSyntaxDocumentEncodingtype.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeSyntaxDocumentEncodingtype() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       Document document = Document.newBuilder().build();
       EncodingType encodingType = EncodingType.forNumber(0);
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/annotatetext/AsyncAnnotateText.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/annotatetext/AsyncAnnotateText.java
index ebf89288..3d38a4d9 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/annotatetext/AsyncAnnotateText.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/annotatetext/AsyncAnnotateText.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncAnnotateText() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       AnnotateTextRequest request =
           AnnotateTextRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/annotatetext/SyncAnnotateText.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/annotatetext/SyncAnnotateText.java
index 78134bec..078c2aec 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/annotatetext/SyncAnnotateText.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/annotatetext/SyncAnnotateText.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnnotateText() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       AnnotateTextRequest request =
           AnnotateTextRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/annotatetext/SyncAnnotateTextDocumentAnnotatetextrequestfeatures.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/annotatetext/SyncAnnotateTextDocumentAnnotatetextrequestfeatures.java
index 733b06cb..fdefd09b 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/annotatetext/SyncAnnotateTextDocumentAnnotatetextrequestfeatures.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/annotatetext/SyncAnnotateTextDocumentAnnotatetextrequestfeatures.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnnotateTextDocumentAnnotatetextrequestfeatures() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       Document document = Document.newBuilder().build();
       AnnotateTextRequest.Features features = AnnotateTextRequest.Features.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/annotatetext/SyncAnnotateTextDocumentAnnotatetextrequestfeaturesEncodingtype.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/annotatetext/SyncAnnotateTextDocumentAnnotatetextrequestfeaturesEncodingtype.java
index 290af5fb..8087f31b 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/annotatetext/SyncAnnotateTextDocumentAnnotatetextrequestfeaturesEncodingtype.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/annotatetext/SyncAnnotateTextDocumentAnnotatetextrequestfeaturesEncodingtype.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
 
   public static void syncAnnotateTextDocumentAnnotatetextrequestfeaturesEncodingtype()
       throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       Document document = Document.newBuilder().build();
       AnnotateTextRequest.Features features = AnnotateTextRequest.Features.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/classifytext/AsyncClassifyText.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/classifytext/AsyncClassifyText.java
index 273de85b..ab9f2a1f 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/classifytext/AsyncClassifyText.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/classifytext/AsyncClassifyText.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncClassifyText() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       ClassifyTextRequest request =
           ClassifyTextRequest.newBuilder().setDocument(Document.newBuilder().build()).build();
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/classifytext/SyncClassifyText.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/classifytext/SyncClassifyText.java
index c6576356..11f02cd0 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/classifytext/SyncClassifyText.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/classifytext/SyncClassifyText.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncClassifyText() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       ClassifyTextRequest request =
           ClassifyTextRequest.newBuilder().setDocument(Document.newBuilder().build()).build();
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/classifytext/SyncClassifyTextDocument.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/classifytext/SyncClassifyTextDocument.java
index 49d3ea34..94af5ca8 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/classifytext/SyncClassifyTextDocument.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/classifytext/SyncClassifyTextDocument.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncClassifyTextDocument() throws Exception {
-    // 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 (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
       Document document = Document.newBuilder().build();
       ClassifyTextResponse response = languageServiceClient.classifyText(document);
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/create/SyncCreateSetCredentialsProvider.java
index 93b53187..bddd0d4f 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/create/SyncCreateSetCredentialsProvider.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider() throws Exception {
-    // 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
     LanguageServiceSettings languageServiceSettings =
         LanguageServiceSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/create/SyncCreateSetCredentialsProvider1.java
index f156c764..5da25c5b 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/create/SyncCreateSetCredentialsProvider1.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider1() throws Exception {
-    // 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
     LanguageServiceSettings languageServiceSettings =
         LanguageServiceSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/create/SyncCreateSetEndpoint.java
index 39c2bd73..b8feb4d3 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageserviceclient/create/SyncCreateSetEndpoint.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetEndpoint() throws Exception {
-    // 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
     LanguageServiceSettings languageServiceSettings =
         LanguageServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
     LanguageServiceClient languageServiceClient =
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageservicesettings/analyzesentiment/SyncAnalyzeSentiment.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageservicesettings/analyzesentiment/SyncAnalyzeSentiment.java
index d5d64abf..95c191fe 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/languageservicesettings/analyzesentiment/SyncAnalyzeSentiment.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/languageservicesettings/analyzesentiment/SyncAnalyzeSentiment.java
@@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeSentiment() throws Exception {
-    // 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
     LanguageServiceSettings.Builder languageServiceSettingsBuilder =
         LanguageServiceSettings.newBuilder();
     languageServiceSettingsBuilder
         .analyzeSentimentSettings()
         .setRetrySettings(
-            languageServiceSettingsBuilder
-                .analyzeSentimentSettings()
-                .getRetrySettings()
-                .toBuilder()
+            languageServiceSettingsBuilder.analyzeSentimentSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     LanguageServiceSettings languageServiceSettings = languageServiceSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/language/v1beta2/stub/languageservicestubsettings/analyzesentiment/SyncAnalyzeSentiment.java b/samples/snippets/generated/com/google/cloud/language/v1beta2/stub/languageservicestubsettings/analyzesentiment/SyncAnalyzeSentiment.java
index 90bf72ce..bd35369f 100644
--- a/samples/snippets/generated/com/google/cloud/language/v1beta2/stub/languageservicestubsettings/analyzesentiment/SyncAnalyzeSentiment.java
+++ b/samples/snippets/generated/com/google/cloud/language/v1beta2/stub/languageservicestubsettings/analyzesentiment/SyncAnalyzeSentiment.java
@@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAnalyzeSentiment() throws Exception {
-    // 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
     LanguageServiceStubSettings.Builder languageServiceSettingsBuilder =
         LanguageServiceStubSettings.newBuilder();
     languageServiceSettingsBuilder
         .analyzeSentimentSettings()
         .setRetrySettings(
-            languageServiceSettingsBuilder
-                .analyzeSentimentSettings()
-                .getRetrySettings()
-                .toBuilder()
+            languageServiceSettingsBuilder.analyzeSentimentSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     LanguageServiceStubSettings languageServiceSettings = languageServiceSettingsBuilder.build();

From 148b733ea0573cdb4c5fa1182ecb17058ae4e057 Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Sat, 10 Sep 2022 02:08:14 +0000
Subject: [PATCH 4/6] chore: Generated snippets should not be owned by samples
 reviewers (#1575) (#889)

Source-Link: https://github.com/googleapis/synthtool/commit/2e9ac19d5b8181af77cdc5337cf922517813cc49
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93
---
 .github/.OwlBot.lock.yaml | 3 +--
 .github/CODEOWNERS        | 3 +++
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index de9173d9..62592923 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -13,5 +13,4 @@
 # limitations under the License.
 docker:
   image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
-  digest: sha256:d4b80feffe1579818cdc39466152e9de95789a193408506cd4a1ffbe8804dc00
-# created: 2022-07-13T13:53:17.676447481Z
+  digest: sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 30fdb7b9..db2d8ad1 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -8,3 +8,6 @@
 
 # The java-samples-reviewers team is the default owner for samples changes
 samples/**/*.java       @googleapis/java-samples-reviewers
+
+# Generated snippets should not be owned by samples reviewers
+samples/snippets/generated/       @googleapis/yoshi-java

From 93599989f1b8ba59bf32c0542a1c537a3bac6a67 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate 
Date: Thu, 15 Sep 2022 14:14:21 +0200
Subject: [PATCH 5/6] deps: update dependency
 com.google.cloud:google-cloud-shared-dependencies to v3.0.3 (#890)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.2` -> `3.0.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/compatibility-slim/3.0.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/confidence-slim/3.0.2)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

googleapis/java-shared-dependencies ### [`v3.0.3`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​303-httpsgithubcomgoogleapisjava-shared-dependenciescomparev302v303-2022-09-14) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.2...v3.0.3) ##### Dependencies - Google-cloud-core 2.8.12 ([#​799](https://togithub.com/googleapis/java-shared-dependencies/issues/799)) ([1b3db8d](https://togithub.com/googleapis/java-shared-dependencies/commit/1b3db8d1e17c49ebae79fc96164fa9058e1df6e3)) - Moving gson to first-party-dependencies ([#​800](https://togithub.com/googleapis/java-shared-dependencies/issues/800)) ([a41fcc1](https://togithub.com/googleapis/java-shared-dependencies/commit/a41fcc11d32e02e5af2837561792e3919f6d4b3f)) - Update dependency com.google.protobuf:protobuf-bom to v3.21.6 ([#​797](https://togithub.com/googleapis/java-shared-dependencies/issues/797)) ([bc5fdc9](https://togithub.com/googleapis/java-shared-dependencies/commit/bc5fdc9b3af7973c28f063a9ac156fe2af562814)) - Update gax.version to v2.19.1 ([#​798](https://togithub.com/googleapis/java-shared-dependencies/issues/798)) ([84e5487](https://togithub.com/googleapis/java-shared-dependencies/commit/84e5487b2e3dce4bb60badecebde788c3cb702b8)) - Update google.core.version to v2.8.11 ([#​793](https://togithub.com/googleapis/java-shared-dependencies/issues/793)) ([63c1297](https://togithub.com/googleapis/java-shared-dependencies/commit/63c129722aa0b821031ff5b4c11004adf7b12044))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-language). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 59dc98e9..be5c8566 100644 --- a/pom.xml +++ b/pom.xml @@ -87,7 +87,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.0.2 + 3.0.3 pom import From 5d54464673e4ee375e1aed69aaa20452f9baafe7 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 15 Sep 2022 12:30:15 +0000 Subject: [PATCH 6/6] chore(main): release 2.3.4 (#891) :robot: I have created a release *beep* *boop* --- ## [2.3.4](https://github.com/googleapis/java-language/compare/v2.3.3...v2.3.4) (2022-09-15) ### Dependencies * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#890](https://github.com/googleapis/java-language/issues/890)) ([9359998](https://github.com/googleapis/java-language/commit/93599989f1b8ba59bf32c0542a1c537a3bac6a67)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-language-bom/pom.xml | 12 ++++++------ google-cloud-language/pom.xml | 4 ++-- grpc-google-cloud-language-v1/pom.xml | 4 ++-- grpc-google-cloud-language-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-language-v1/pom.xml | 4 ++-- proto-google-cloud-language-v1beta2/pom.xml | 4 ++-- versions.txt | 10 +++++----- 9 files changed, 34 insertions(+), 27 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 394623f3..f99a7690 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.3.4](https://github.com/googleapis/java-language/compare/v2.3.3...v2.3.4) (2022-09-15) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#890](https://github.com/googleapis/java-language/issues/890)) ([9359998](https://github.com/googleapis/java-language/commit/93599989f1b8ba59bf32c0542a1c537a3bac6a67)) + ## [2.3.3](https://github.com/googleapis/java-language/compare/v2.3.2...v2.3.3) (2022-09-08) diff --git a/google-cloud-language-bom/pom.xml b/google-cloud-language-bom/pom.xml index 47f7ae4f..765879ac 100644 --- a/google-cloud-language-bom/pom.xml +++ b/google-cloud-language-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-language-bom - 2.3.4-SNAPSHOT + 2.3.4 pom com.google.cloud @@ -52,27 +52,27 @@ com.google.cloud google-cloud-language - 2.3.4-SNAPSHOT + 2.3.4 com.google.api.grpc grpc-google-cloud-language-v1 - 2.3.4-SNAPSHOT + 2.3.4 com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.90.4-SNAPSHOT + 0.90.4 com.google.api.grpc proto-google-cloud-language-v1 - 2.3.4-SNAPSHOT + 2.3.4 com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.90.4-SNAPSHOT + 0.90.4 diff --git a/google-cloud-language/pom.xml b/google-cloud-language/pom.xml index 2e0d629d..13e3b32b 100644 --- a/google-cloud-language/pom.xml +++ b/google-cloud-language/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-language - 2.3.4-SNAPSHOT + 2.3.4 jar Google Cloud Natural Language https://github.com/googleapis/java-language @@ -11,7 +11,7 @@ com.google.cloud google-cloud-language-parent - 2.3.4-SNAPSHOT + 2.3.4 google-cloud-language diff --git a/grpc-google-cloud-language-v1/pom.xml b/grpc-google-cloud-language-v1/pom.xml index fcedf2bd..555a08b2 100644 --- a/grpc-google-cloud-language-v1/pom.xml +++ b/grpc-google-cloud-language-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-language-v1 - 2.3.4-SNAPSHOT + 2.3.4 grpc-google-cloud-language-v1 GRPC library for grpc-google-cloud-language-v1 com.google.cloud google-cloud-language-parent - 2.3.4-SNAPSHOT + 2.3.4 diff --git a/grpc-google-cloud-language-v1beta2/pom.xml b/grpc-google-cloud-language-v1beta2/pom.xml index 04877ca0..9261d500 100644 --- a/grpc-google-cloud-language-v1beta2/pom.xml +++ b/grpc-google-cloud-language-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.90.4-SNAPSHOT + 0.90.4 grpc-google-cloud-language-v1beta2 GRPC library for grpc-google-cloud-language-v1beta2 com.google.cloud google-cloud-language-parent - 2.3.4-SNAPSHOT + 2.3.4 diff --git a/pom.xml b/pom.xml index be5c8566..3bda1579 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-language-parent pom - 2.3.4-SNAPSHOT + 2.3.4 Google Cloud Natural Language Parent https://github.com/googleapis/java-language @@ -61,27 +61,27 @@ com.google.api.grpc proto-google-cloud-language-v1 - 2.3.4-SNAPSHOT + 2.3.4 com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.90.4-SNAPSHOT + 0.90.4 com.google.api.grpc grpc-google-cloud-language-v1 - 2.3.4-SNAPSHOT + 2.3.4 com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.90.4-SNAPSHOT + 0.90.4 com.google.cloud google-cloud-language - 2.3.4-SNAPSHOT + 2.3.4 diff --git a/proto-google-cloud-language-v1/pom.xml b/proto-google-cloud-language-v1/pom.xml index 5a9496a8..d6a336f6 100644 --- a/proto-google-cloud-language-v1/pom.xml +++ b/proto-google-cloud-language-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-language-v1 - 2.3.4-SNAPSHOT + 2.3.4 proto-google-cloud-language-v1 PROTO library for proto-google-cloud-language-v1 com.google.cloud google-cloud-language-parent - 2.3.4-SNAPSHOT + 2.3.4 diff --git a/proto-google-cloud-language-v1beta2/pom.xml b/proto-google-cloud-language-v1beta2/pom.xml index c59ad13f..61f12968 100644 --- a/proto-google-cloud-language-v1beta2/pom.xml +++ b/proto-google-cloud-language-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.90.4-SNAPSHOT + 0.90.4 proto-google-cloud-language-v1beta2 PROTO library for proto-google-cloud-language-v1beta2 com.google.cloud google-cloud-language-parent - 2.3.4-SNAPSHOT + 2.3.4 diff --git a/versions.txt b/versions.txt index 541f667e..7559c6cb 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-language:2.3.3:2.3.4-SNAPSHOT -grpc-google-cloud-language-v1:2.3.3:2.3.4-SNAPSHOT -grpc-google-cloud-language-v1beta2:0.90.3:0.90.4-SNAPSHOT -proto-google-cloud-language-v1:2.3.3:2.3.4-SNAPSHOT -proto-google-cloud-language-v1beta2:0.90.3:0.90.4-SNAPSHOT +google-cloud-language:2.3.4:2.3.4 +grpc-google-cloud-language-v1:2.3.4:2.3.4 +grpc-google-cloud-language-v1beta2:0.90.4:0.90.4 +proto-google-cloud-language-v1:2.3.4:2.3.4 +proto-google-cloud-language-v1beta2:0.90.4:0.90.4