From 3a644d87c575fe74a2be717bd36ef185bf64c06a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 9 Sep 2022 15:00:31 +0000 Subject: [PATCH 1/6] chore(main): release 2.5.7-SNAPSHOT (#948) :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-speech-bom/pom.xml | 16 ++++++++-------- google-cloud-speech/pom.xml | 4 ++-- grpc-google-cloud-speech-v1/pom.xml | 4 ++-- grpc-google-cloud-speech-v1beta1/pom.xml | 4 ++-- grpc-google-cloud-speech-v1p1beta1/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-speech-v1/pom.xml | 4 ++-- proto-google-cloud-speech-v1beta1/pom.xml | 4 ++-- proto-google-cloud-speech-v1p1beta1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 14 +++++++------- 11 files changed, 38 insertions(+), 38 deletions(-) diff --git a/google-cloud-speech-bom/pom.xml b/google-cloud-speech-bom/pom.xml index b5589e6cb..ad9b91638 100644 --- a/google-cloud-speech-bom/pom.xml +++ b/google-cloud-speech-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-speech-bom - 2.5.6 + 2.5.7-SNAPSHOT pom com.google.cloud @@ -53,37 +53,37 @@ com.google.cloud google-cloud-speech - 2.5.6 + 2.5.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1 - 2.5.6 + 2.5.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1beta1 - 0.89.6 + 0.89.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 0.89.6 + 0.89.7-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1 - 2.5.6 + 2.5.7-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1beta1 - 0.89.6 + 0.89.7-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 0.89.6 + 0.89.7-SNAPSHOT diff --git a/google-cloud-speech/pom.xml b/google-cloud-speech/pom.xml index cb1c8d094..7c4197490 100644 --- a/google-cloud-speech/pom.xml +++ b/google-cloud-speech/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-speech - 2.5.6 + 2.5.7-SNAPSHOT jar Google Cloud Speech https://github.com/googleapis/java-speech @@ -13,7 +13,7 @@ com.google.cloud google-cloud-speech-parent - 2.5.6 + 2.5.7-SNAPSHOT google-cloud-speech diff --git a/grpc-google-cloud-speech-v1/pom.xml b/grpc-google-cloud-speech-v1/pom.xml index 0b7024950..fb02cc876 100644 --- a/grpc-google-cloud-speech-v1/pom.xml +++ b/grpc-google-cloud-speech-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-speech-v1 - 2.5.6 + 2.5.7-SNAPSHOT grpc-google-cloud-speech-v1 GRPC library for grpc-google-cloud-speech-v1 com.google.cloud google-cloud-speech-parent - 2.5.6 + 2.5.7-SNAPSHOT diff --git a/grpc-google-cloud-speech-v1beta1/pom.xml b/grpc-google-cloud-speech-v1beta1/pom.xml index a932f5e3f..6f434c4c5 100644 --- a/grpc-google-cloud-speech-v1beta1/pom.xml +++ b/grpc-google-cloud-speech-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-speech-v1beta1 - 0.89.6 + 0.89.7-SNAPSHOT grpc-google-cloud-speech-v1beta1 GRPC library for grpc-google-cloud-speech-v1beta1 com.google.cloud google-cloud-speech-parent - 2.5.6 + 2.5.7-SNAPSHOT diff --git a/grpc-google-cloud-speech-v1p1beta1/pom.xml b/grpc-google-cloud-speech-v1p1beta1/pom.xml index b06f01734..86becc5a9 100644 --- a/grpc-google-cloud-speech-v1p1beta1/pom.xml +++ b/grpc-google-cloud-speech-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 0.89.6 + 0.89.7-SNAPSHOT grpc-google-cloud-speech-v1p1beta1 GRPC library for grpc-google-cloud-speech-v1p1beta1 com.google.cloud google-cloud-speech-parent - 2.5.6 + 2.5.7-SNAPSHOT diff --git a/pom.xml b/pom.xml index edcbe4272..4238e0cab 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-speech-parent pom - 2.5.6 + 2.5.7-SNAPSHOT Google Cloud speech Parent https://github.com/googleapis/java-speech @@ -149,37 +149,37 @@ com.google.api.grpc proto-google-cloud-speech-v1 - 2.5.6 + 2.5.7-SNAPSHOT com.google.cloud google-cloud-speech - 2.5.6 + 2.5.7-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1beta1 - 0.89.6 + 0.89.7-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 0.89.6 + 0.89.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1 - 2.5.6 + 2.5.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1beta1 - 0.89.6 + 0.89.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 0.89.6 + 0.89.7-SNAPSHOT diff --git a/proto-google-cloud-speech-v1/pom.xml b/proto-google-cloud-speech-v1/pom.xml index 5c3d71495..35f7f8bea 100644 --- a/proto-google-cloud-speech-v1/pom.xml +++ b/proto-google-cloud-speech-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-speech-v1 - 2.5.6 + 2.5.7-SNAPSHOT proto-google-cloud-speech-v1 PROTO library for proto-google-cloud-speech-v1 com.google.cloud google-cloud-speech-parent - 2.5.6 + 2.5.7-SNAPSHOT diff --git a/proto-google-cloud-speech-v1beta1/pom.xml b/proto-google-cloud-speech-v1beta1/pom.xml index 053d15245..79d3e701a 100644 --- a/proto-google-cloud-speech-v1beta1/pom.xml +++ b/proto-google-cloud-speech-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-speech-v1beta1 - 0.89.6 + 0.89.7-SNAPSHOT proto-google-cloud-speech-v1beta1 PROTO library for proto-google-cloud-speech-v1beta1 com.google.cloud google-cloud-speech-parent - 2.5.6 + 2.5.7-SNAPSHOT diff --git a/proto-google-cloud-speech-v1p1beta1/pom.xml b/proto-google-cloud-speech-v1p1beta1/pom.xml index 82239fdc0..c24560ead 100644 --- a/proto-google-cloud-speech-v1p1beta1/pom.xml +++ b/proto-google-cloud-speech-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 0.89.6 + 0.89.7-SNAPSHOT proto-google-cloud-speech-v1p1beta1 PROTO library for proto-google-cloud-speech-v1p1beta1 com.google.cloud google-cloud-speech-parent - 2.5.6 + 2.5.7-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index aeec9972e..4a0056855 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-speech - 2.5.6 + 2.5.7-SNAPSHOT diff --git a/versions.txt b/versions.txt index 2fe4e79f4..afcc16299 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-speech:2.5.6:2.5.6 -grpc-google-cloud-speech-v1:2.5.6:2.5.6 -grpc-google-cloud-speech-v1beta1:0.89.6:0.89.6 -grpc-google-cloud-speech-v1p1beta1:0.89.6:0.89.6 -proto-google-cloud-speech-v1:2.5.6:2.5.6 -proto-google-cloud-speech-v1beta1:0.89.6:0.89.6 -proto-google-cloud-speech-v1p1beta1:0.89.6:0.89.6 +google-cloud-speech:2.5.6:2.5.7-SNAPSHOT +grpc-google-cloud-speech-v1:2.5.6:2.5.7-SNAPSHOT +grpc-google-cloud-speech-v1beta1:0.89.6:0.89.7-SNAPSHOT +grpc-google-cloud-speech-v1p1beta1:0.89.6:0.89.7-SNAPSHOT +proto-google-cloud-speech-v1:2.5.6:2.5.7-SNAPSHOT +proto-google-cloud-speech-v1beta1:0.89.6:0.89.7-SNAPSHOT +proto-google-cloud-speech-v1p1beta1:0.89.6:0.89.7-SNAPSHOT From 5403f199e2844295ea729168a02da86e20986f13 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Sep 2022 17:06:12 +0200 Subject: [PATCH 2/6] chore(deps): update dependency com.google.cloud:google-cloud-speech to v2.5.6 (#949) 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-speech](https://togithub.com/googleapis/java-speech) | `2.5.5` -> `2.5.6` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-speech/2.5.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-speech/2.5.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-speech/2.5.6/compatibility-slim/2.5.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-speech/2.5.6/confidence-slim/2.5.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### 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**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **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. ⚠ **Warning**: custom changes will be lost. --- 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-speech). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 02ac93ead..03e160219 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-speech - 2.5.5 + 2.5.6 ``` @@ -62,13 +62,13 @@ implementation 'com.google.cloud:google-cloud-speech' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-speech:2.5.5' +implementation 'com.google.cloud:google-cloud-speech:2.5.6' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "2.5.5" +libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "2.5.6" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index e8b9d531c..d00b19622 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-speech - 2.5.5 + 2.5.6 From 9f708032300c99779cefe53c11d3208a6e5acff0 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:14:14 +0000 Subject: [PATCH 3/6] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#945) - [ ] 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 --- .../cloud/speech/v1/AdaptationClient.java | 308 +++++++++++++----- .../cloud/speech/v1/AdaptationSettings.java | 12 +- .../google/cloud/speech/v1/SpeechClient.java | 84 +++-- .../cloud/speech/v1/SpeechSettings.java | 12 +- .../google/cloud/speech/v1/package-info.java | 14 +- .../v1/stub/AdaptationStubSettings.java | 12 +- .../v1/stub/HttpJsonAdaptationStub.java | 8 +- .../speech/v1/stub/HttpJsonSpeechStub.java | 6 +- .../speech/v1/stub/SpeechStubSettings.java | 12 +- .../speech/v1p1beta1/AdaptationClient.java | 308 +++++++++++++----- .../speech/v1p1beta1/AdaptationSettings.java | 12 +- .../cloud/speech/v1p1beta1/SpeechClient.java | 84 +++-- .../speech/v1p1beta1/SpeechSettings.java | 12 +- .../cloud/speech/v1p1beta1/package-info.java | 14 +- .../stub/AdaptationStubSettings.java | 12 +- .../stub/HttpJsonAdaptationStub.java | 8 +- .../v1p1beta1/stub/HttpJsonSpeechStub.java | 6 +- .../v1p1beta1/stub/SpeechStubSettings.java | 12 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../AsyncCreateCustomClass.java | 7 +- .../SyncCreateCustomClass.java | 7 +- ...tomClassLocationnameCustomclassString.java | 7 +- ...ateCustomClassStringCustomclassString.java | 7 +- .../createphraseset/AsyncCreatePhraseSet.java | 7 +- .../createphraseset/SyncCreatePhraseSet.java | 7 +- ...ePhraseSetLocationnamePhrasesetString.java | 7 +- ...cCreatePhraseSetStringPhrasesetString.java | 7 +- .../AsyncDeleteCustomClass.java | 7 +- .../SyncDeleteCustomClass.java | 7 +- .../SyncDeleteCustomClassCustomclassname.java | 7 +- .../SyncDeleteCustomClassString.java | 7 +- .../deletephraseset/AsyncDeletePhraseSet.java | 7 +- .../deletephraseset/SyncDeletePhraseSet.java | 7 +- .../SyncDeletePhraseSetPhrasesetname.java | 7 +- .../SyncDeletePhraseSetString.java | 7 +- .../getcustomclass/AsyncGetCustomClass.java | 7 +- .../getcustomclass/SyncGetCustomClass.java | 7 +- .../SyncGetCustomClassCustomclassname.java | 7 +- .../SyncGetCustomClassString.java | 7 +- .../getphraseset/AsyncGetPhraseSet.java | 7 +- .../getphraseset/SyncGetPhraseSet.java | 7 +- .../SyncGetPhraseSetPhrasesetname.java | 7 +- .../getphraseset/SyncGetPhraseSetString.java | 7 +- .../AsyncListCustomClasses.java | 7 +- .../AsyncListCustomClassesPaged.java | 7 +- .../SyncListCustomClasses.java | 7 +- .../SyncListCustomClassesLocationname.java | 7 +- .../SyncListCustomClassesString.java | 7 +- .../listphraseset/AsyncListPhraseSet.java | 7 +- .../AsyncListPhraseSetPaged.java | 7 +- .../listphraseset/SyncListPhraseSet.java | 7 +- .../SyncListPhraseSetLocationname.java | 7 +- .../SyncListPhraseSetString.java | 7 +- .../AsyncUpdateCustomClass.java | 7 +- .../SyncUpdateCustomClass.java | 7 +- ...UpdateCustomClassCustomclassFieldmask.java | 7 +- .../updatephraseset/AsyncUpdatePhraseSet.java | 7 +- .../updatephraseset/SyncUpdatePhraseSet.java | 7 +- ...SyncUpdatePhraseSetPhrasesetFieldmask.java | 7 +- .../createphraseset/SyncCreatePhraseSet.java | 12 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../AsyncLongRunningRecognize.java | 7 +- .../AsyncLongRunningRecognizeLRO.java | 7 +- .../SyncLongRunningRecognize.java | 7 +- ...nizeRecognitionconfigRecognitionaudio.java | 7 +- .../recognize/AsyncRecognize.java | 7 +- .../speechclient/recognize/SyncRecognize.java | 7 +- ...nizeRecognitionconfigRecognitionaudio.java | 7 +- .../AsyncStreamingRecognize.java | 7 +- .../recognize/SyncRecognize.java | 12 +- .../createphraseset/SyncCreatePhraseSet.java | 12 +- .../recognize/SyncRecognize.java | 12 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../AsyncCreateCustomClass.java | 7 +- .../SyncCreateCustomClass.java | 7 +- ...tomClassLocationnameCustomclassString.java | 7 +- ...ateCustomClassStringCustomclassString.java | 7 +- .../createphraseset/AsyncCreatePhraseSet.java | 7 +- .../createphraseset/SyncCreatePhraseSet.java | 7 +- ...ePhraseSetLocationnamePhrasesetString.java | 7 +- ...cCreatePhraseSetStringPhrasesetString.java | 7 +- .../AsyncDeleteCustomClass.java | 7 +- .../SyncDeleteCustomClass.java | 7 +- .../SyncDeleteCustomClassCustomclassname.java | 7 +- .../SyncDeleteCustomClassString.java | 7 +- .../deletephraseset/AsyncDeletePhraseSet.java | 7 +- .../deletephraseset/SyncDeletePhraseSet.java | 7 +- .../SyncDeletePhraseSetPhrasesetname.java | 7 +- .../SyncDeletePhraseSetString.java | 7 +- .../getcustomclass/AsyncGetCustomClass.java | 7 +- .../getcustomclass/SyncGetCustomClass.java | 7 +- .../SyncGetCustomClassCustomclassname.java | 7 +- .../SyncGetCustomClassString.java | 7 +- .../getphraseset/AsyncGetPhraseSet.java | 7 +- .../getphraseset/SyncGetPhraseSet.java | 7 +- .../SyncGetPhraseSetPhrasesetname.java | 7 +- .../getphraseset/SyncGetPhraseSetString.java | 7 +- .../AsyncListCustomClasses.java | 7 +- .../AsyncListCustomClassesPaged.java | 7 +- .../SyncListCustomClasses.java | 7 +- .../SyncListCustomClassesLocationname.java | 7 +- .../SyncListCustomClassesString.java | 7 +- .../listphraseset/AsyncListPhraseSet.java | 7 +- .../AsyncListPhraseSetPaged.java | 7 +- .../listphraseset/SyncListPhraseSet.java | 7 +- .../SyncListPhraseSetLocationname.java | 7 +- .../SyncListPhraseSetString.java | 7 +- .../AsyncUpdateCustomClass.java | 7 +- .../SyncUpdateCustomClass.java | 7 +- ...UpdateCustomClassCustomclassFieldmask.java | 7 +- .../updatephraseset/AsyncUpdatePhraseSet.java | 7 +- .../updatephraseset/SyncUpdatePhraseSet.java | 7 +- ...SyncUpdatePhraseSetPhrasesetFieldmask.java | 7 +- .../createphraseset/SyncCreatePhraseSet.java | 12 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../AsyncLongRunningRecognize.java | 7 +- .../AsyncLongRunningRecognizeLRO.java | 7 +- .../SyncLongRunningRecognize.java | 7 +- ...nizeRecognitionconfigRecognitionaudio.java | 7 +- .../recognize/AsyncRecognize.java | 7 +- .../speechclient/recognize/SyncRecognize.java | 7 +- ...nizeRecognitionconfigRecognitionaudio.java | 7 +- .../AsyncStreamingRecognize.java | 7 +- .../recognize/SyncRecognize.java | 12 +- .../createphraseset/SyncCreatePhraseSet.java | 12 +- .../recognize/SyncRecognize.java | 12 +- 134 files changed, 1232 insertions(+), 556 deletions(-) diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java index 39b4f486b..575bff7c1 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java @@ -42,8 +42,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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  *   PhraseSet phraseSet = PhraseSet.newBuilder().build();
@@ -81,8 +84,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
  * AdaptationSettings adaptationSettings =
  *     AdaptationSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -93,8 +99,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
  * AdaptationSettings adaptationSettings =
  *     AdaptationSettings.newBuilder().setEndpoint(myEndpoint).build();
  * AdaptationClient adaptationClient = AdaptationClient.create(adaptationSettings);
@@ -104,8 +113,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
  * AdaptationSettings adaptationSettings =
  *     AdaptationSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -173,8 +185,11 @@ public AdaptationStub 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   PhraseSet phraseSet = PhraseSet.newBuilder().build();
@@ -217,8 +232,11 @@ public final PhraseSet createPhraseSet(
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   PhraseSet phraseSet = PhraseSet.newBuilder().build();
@@ -260,8 +278,11 @@ public final PhraseSet createPhraseSet(String parent, PhraseSet phraseSet, Strin
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   CreatePhraseSetRequest request =
    *       CreatePhraseSetRequest.newBuilder()
@@ -289,8 +310,11 @@ public final PhraseSet createPhraseSet(CreatePhraseSetRequest 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   CreatePhraseSetRequest request =
    *       CreatePhraseSetRequest.newBuilder()
@@ -315,8 +339,11 @@ public final UnaryCallable createPhraseSetCal
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   PhraseSetName name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]");
    *   PhraseSet response = adaptationClient.getPhraseSet(name);
@@ -345,8 +372,11 @@ public final PhraseSet getPhraseSet(PhraseSetName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   String name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString();
    *   PhraseSet response = adaptationClient.getPhraseSet(name);
@@ -374,8 +404,11 @@ public final PhraseSet getPhraseSet(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   GetPhraseSetRequest request =
    *       GetPhraseSetRequest.newBuilder()
@@ -399,8 +432,11 @@ public final PhraseSet getPhraseSet(GetPhraseSetRequest 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   GetPhraseSetRequest request =
    *       GetPhraseSetRequest.newBuilder()
@@ -423,8 +459,11 @@ public final UnaryCallable getPhraseSetCallable(
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (PhraseSet element : adaptationClient.listPhraseSet(parent).iterateAll()) {
@@ -457,8 +496,11 @@ public final ListPhraseSetPagedResponse listPhraseSet(LocationName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (PhraseSet element : adaptationClient.listPhraseSet(parent).iterateAll()) {
@@ -488,8 +530,11 @@ public final ListPhraseSetPagedResponse listPhraseSet(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   ListPhraseSetRequest request =
    *       ListPhraseSetRequest.newBuilder()
@@ -517,8 +562,11 @@ public final ListPhraseSetPagedResponse listPhraseSet(ListPhraseSetRequest reque
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   ListPhraseSetRequest request =
    *       ListPhraseSetRequest.newBuilder()
@@ -547,8 +595,11 @@ public final ListPhraseSetPagedResponse listPhraseSet(ListPhraseSetRequest reque
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   ListPhraseSetRequest request =
    *       ListPhraseSetRequest.newBuilder()
@@ -582,8 +633,11 @@ public final UnaryCallable listPhra
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   PhraseSet phraseSet = PhraseSet.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -618,8 +672,11 @@ public final PhraseSet updatePhraseSet(PhraseSet phraseSet, FieldMask updateMask
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   UpdatePhraseSetRequest request =
    *       UpdatePhraseSetRequest.newBuilder()
@@ -644,8 +701,11 @@ public final PhraseSet updatePhraseSet(UpdatePhraseSetRequest 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   UpdatePhraseSetRequest request =
    *       UpdatePhraseSetRequest.newBuilder()
@@ -669,8 +729,11 @@ public final UnaryCallable updatePhraseSetCal
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   PhraseSetName name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]");
    *   adaptationClient.deletePhraseSet(name);
@@ -694,8 +757,11 @@ public final void deletePhraseSet(PhraseSetName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   String name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString();
    *   adaptationClient.deletePhraseSet(name);
@@ -718,8 +784,11 @@ public final void deletePhraseSet(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   DeletePhraseSetRequest request =
    *       DeletePhraseSetRequest.newBuilder()
@@ -743,8 +812,11 @@ public final void deletePhraseSet(DeletePhraseSetRequest 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   DeletePhraseSetRequest request =
    *       DeletePhraseSetRequest.newBuilder()
@@ -767,8 +839,11 @@ public final UnaryCallable deletePhraseSetCallabl
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   CustomClass customClass = CustomClass.newBuilder().build();
@@ -809,8 +884,11 @@ public final CustomClass createCustomClass(
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   CustomClass customClass = CustomClass.newBuilder().build();
@@ -851,8 +929,11 @@ public final CustomClass createCustomClass(
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   CreateCustomClassRequest request =
    *       CreateCustomClassRequest.newBuilder()
@@ -878,8 +959,11 @@ public final CustomClass createCustomClass(CreateCustomClassRequest 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   CreateCustomClassRequest request =
    *       CreateCustomClassRequest.newBuilder()
@@ -905,8 +989,11 @@ public final UnaryCallable createCustomCl
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   CustomClassName name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]");
    *   CustomClass response = adaptationClient.getCustomClass(name);
@@ -930,8 +1017,11 @@ public final CustomClass getCustomClass(CustomClassName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   String name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString();
    *   CustomClass response = adaptationClient.getCustomClass(name);
@@ -954,8 +1044,11 @@ public final CustomClass getCustomClass(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   GetCustomClassRequest request =
    *       GetCustomClassRequest.newBuilder()
@@ -979,8 +1072,11 @@ public final CustomClass getCustomClass(GetCustomClassRequest 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   GetCustomClassRequest request =
    *       GetCustomClassRequest.newBuilder()
@@ -1003,8 +1099,11 @@ public final UnaryCallable getCustomClassCal
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (CustomClass element : adaptationClient.listCustomClasses(parent).iterateAll()) {
@@ -1037,8 +1136,11 @@ public final ListCustomClassesPagedResponse listCustomClasses(LocationName paren
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (CustomClass element : adaptationClient.listCustomClasses(parent).iterateAll()) {
@@ -1069,8 +1171,11 @@ public final ListCustomClassesPagedResponse listCustomClasses(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   ListCustomClassesRequest request =
    *       ListCustomClassesRequest.newBuilder()
@@ -1098,8 +1203,11 @@ public final ListCustomClassesPagedResponse listCustomClasses(ListCustomClassesR
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   ListCustomClassesRequest request =
    *       ListCustomClassesRequest.newBuilder()
@@ -1128,8 +1236,11 @@ public final ListCustomClassesPagedResponse listCustomClasses(ListCustomClassesR
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   ListCustomClassesRequest request =
    *       ListCustomClassesRequest.newBuilder()
@@ -1165,8 +1276,11 @@ public final ListCustomClassesPagedResponse listCustomClasses(ListCustomClassesR
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   CustomClass customClass = CustomClass.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1202,8 +1316,11 @@ public final CustomClass updateCustomClass(CustomClass customClass, FieldMask up
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   UpdateCustomClassRequest request =
    *       UpdateCustomClassRequest.newBuilder()
@@ -1228,8 +1345,11 @@ public final CustomClass updateCustomClass(UpdateCustomClassRequest 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   UpdateCustomClassRequest request =
    *       UpdateCustomClassRequest.newBuilder()
@@ -1254,8 +1374,11 @@ public final UnaryCallable updateCustomCl
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   CustomClassName name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]");
    *   adaptationClient.deleteCustomClass(name);
@@ -1286,8 +1409,11 @@ public final void deleteCustomClass(CustomClassName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   String name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString();
    *   adaptationClient.deleteCustomClass(name);
@@ -1315,8 +1441,11 @@ public final void deleteCustomClass(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   DeleteCustomClassRequest request =
    *       DeleteCustomClassRequest.newBuilder()
@@ -1340,8 +1469,11 @@ public final void deleteCustomClass(DeleteCustomClassRequest 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   DeleteCustomClassRequest request =
    *       DeleteCustomClassRequest.newBuilder()
diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java
index 950ea3f3a..32b9b4b83 100644
--- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java
+++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java
@@ -55,16 +55,16 @@
  * 

For example, to set the total timeout of createPhraseSet 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
  * AdaptationSettings.Builder adaptationSettingsBuilder = AdaptationSettings.newBuilder();
  * adaptationSettingsBuilder
  *     .createPhraseSetSettings()
  *     .setRetrySettings(
- *         adaptationSettingsBuilder
- *             .createPhraseSetSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         adaptationSettingsBuilder.createPhraseSetSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * AdaptationSettings adaptationSettings = adaptationSettingsBuilder.build();
diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java
index f8b084a93..e3b2dd0af 100644
--- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java
+++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java
@@ -38,8 +38,11 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (SpeechClient speechClient = SpeechClient.create()) {
  *   RecognitionConfig config = RecognitionConfig.newBuilder().build();
  *   RecognitionAudio audio = RecognitionAudio.newBuilder().build();
@@ -76,8 +79,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
  * SpeechSettings speechSettings =
  *     SpeechSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -88,8 +94,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
  * SpeechSettings speechSettings = SpeechSettings.newBuilder().setEndpoint(myEndpoint).build();
  * SpeechClient speechClient = SpeechClient.create(speechSettings);
  * }
@@ -98,8 +107,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
  * SpeechSettings speechSettings =
  *     SpeechSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -191,8 +203,11 @@ public final OperationsClient getHttpJsonOperationsClient() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (SpeechClient speechClient = SpeechClient.create()) {
    *   RecognitionConfig config = RecognitionConfig.newBuilder().build();
    *   RecognitionAudio audio = RecognitionAudio.newBuilder().build();
@@ -219,8 +234,11 @@ public final RecognizeResponse recognize(RecognitionConfig config, RecognitionAu
    * 

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 (SpeechClient speechClient = SpeechClient.create()) {
    *   RecognizeRequest request =
    *       RecognizeRequest.newBuilder()
@@ -246,8 +264,11 @@ public final RecognizeResponse recognize(RecognizeRequest 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 (SpeechClient speechClient = SpeechClient.create()) {
    *   RecognizeRequest request =
    *       RecognizeRequest.newBuilder()
@@ -274,8 +295,11 @@ public final UnaryCallable recognizeCallabl
    * 

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 (SpeechClient speechClient = SpeechClient.create()) {
    *   RecognitionConfig config = RecognitionConfig.newBuilder().build();
    *   RecognitionAudio audio = RecognitionAudio.newBuilder().build();
@@ -306,8 +330,11 @@ public final UnaryCallable recognizeCallabl
    * 

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 (SpeechClient speechClient = SpeechClient.create()) {
    *   LongRunningRecognizeRequest request =
    *       LongRunningRecognizeRequest.newBuilder()
@@ -337,8 +364,11 @@ public final UnaryCallable recognizeCallabl
    * 

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 (SpeechClient speechClient = SpeechClient.create()) {
    *   LongRunningRecognizeRequest request =
    *       LongRunningRecognizeRequest.newBuilder()
@@ -369,8 +399,11 @@ public final UnaryCallable recognizeCallabl
    * 

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 (SpeechClient speechClient = SpeechClient.create()) {
    *   LongRunningRecognizeRequest request =
    *       LongRunningRecognizeRequest.newBuilder()
@@ -397,8 +430,11 @@ public final UnaryCallable recognizeCallabl
    * 

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 (SpeechClient speechClient = SpeechClient.create()) {
    *   BidiStream bidiStream =
    *       speechClient.streamingRecognizeCallable().call();
diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java
index 8dcb2260a..ca66acbea 100644
--- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java
+++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java
@@ -53,16 +53,16 @@
  * 

For example, to set the total timeout of recognize 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
  * SpeechSettings.Builder speechSettingsBuilder = SpeechSettings.newBuilder();
  * speechSettingsBuilder
  *     .recognizeSettings()
  *     .setRetrySettings(
- *         speechSettingsBuilder
- *             .recognizeSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         speechSettingsBuilder.recognizeSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * SpeechSettings speechSettings = speechSettingsBuilder.build();
diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java
index 37312786b..65f64943f 100644
--- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java
+++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java
@@ -26,8 +26,11 @@
  * 

Sample for SpeechClient: * *

{@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 (SpeechClient speechClient = SpeechClient.create()) {
  *   RecognitionConfig config = RecognitionConfig.newBuilder().build();
  *   RecognitionAudio audio = RecognitionAudio.newBuilder().build();
@@ -42,8 +45,11 @@
  * 

Sample for AdaptationClient: * *

{@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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  *   PhraseSet phraseSet = PhraseSet.newBuilder().build();
diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java
index 8bff48218..876ab1e3a 100644
--- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java
+++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java
@@ -85,16 +85,16 @@
  * 

For example, to set the total timeout of createPhraseSet 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
  * AdaptationStubSettings.Builder adaptationSettingsBuilder = AdaptationStubSettings.newBuilder();
  * adaptationSettingsBuilder
  *     .createPhraseSetSettings()
  *     .setRetrySettings(
- *         adaptationSettingsBuilder
- *             .createPhraseSetSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         adaptationSettingsBuilder.createPhraseSetSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * AdaptationStubSettings adaptationSettings = adaptationSettingsBuilder.build();
diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java
index 57b6354cb..acc891cc9 100644
--- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java
+++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java
@@ -93,7 +93,7 @@ public class HttpJsonAdaptationStub extends AdaptationStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearParent().build()))
+                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -199,7 +199,7 @@ public class HttpJsonAdaptationStub extends AdaptationStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("phraseSet", request.getPhraseSet()))
+                                  .toBody("phraseSet", request.getPhraseSet(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -268,7 +268,7 @@ public class HttpJsonAdaptationStub extends AdaptationStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearParent().build()))
+                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -374,7 +374,7 @@ public class HttpJsonAdaptationStub extends AdaptationStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("customClass", request.getCustomClass()))
+                                  .toBody("customClass", request.getCustomClass(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java
index e4a54b26b..8432fb0b5 100644
--- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java
+++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java
@@ -86,7 +86,8 @@ public class HttpJsonSpeechStub extends SpeechStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -120,7 +121,8 @@ public class HttpJsonSpeechStub extends SpeechStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java
index a60e60640..dff8b9126 100644
--- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java
+++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java
@@ -74,16 +74,16 @@
  * 

For example, to set the total timeout of recognize 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
  * SpeechStubSettings.Builder speechSettingsBuilder = SpeechStubSettings.newBuilder();
  * speechSettingsBuilder
  *     .recognizeSettings()
  *     .setRetrySettings(
- *         speechSettingsBuilder
- *             .recognizeSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         speechSettingsBuilder.recognizeSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * SpeechStubSettings speechSettings = speechSettingsBuilder.build();
diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java
index 8c37f7e1f..99136ef2c 100644
--- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java
+++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java
@@ -43,8 +43,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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  *   PhraseSet phraseSet = PhraseSet.newBuilder().build();
@@ -82,8 +85,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
  * AdaptationSettings adaptationSettings =
  *     AdaptationSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -94,8 +100,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
  * AdaptationSettings adaptationSettings =
  *     AdaptationSettings.newBuilder().setEndpoint(myEndpoint).build();
  * AdaptationClient adaptationClient = AdaptationClient.create(adaptationSettings);
@@ -105,8 +114,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
  * AdaptationSettings adaptationSettings =
  *     AdaptationSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -175,8 +187,11 @@ public AdaptationStub 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   PhraseSet phraseSet = PhraseSet.newBuilder().build();
@@ -219,8 +234,11 @@ public final PhraseSet createPhraseSet(
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   PhraseSet phraseSet = PhraseSet.newBuilder().build();
@@ -262,8 +280,11 @@ public final PhraseSet createPhraseSet(String parent, PhraseSet phraseSet, Strin
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   CreatePhraseSetRequest request =
    *       CreatePhraseSetRequest.newBuilder()
@@ -291,8 +312,11 @@ public final PhraseSet createPhraseSet(CreatePhraseSetRequest 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   CreatePhraseSetRequest request =
    *       CreatePhraseSetRequest.newBuilder()
@@ -317,8 +341,11 @@ public final UnaryCallable createPhraseSetCal
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   PhraseSetName name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]");
    *   PhraseSet response = adaptationClient.getPhraseSet(name);
@@ -347,8 +374,11 @@ public final PhraseSet getPhraseSet(PhraseSetName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   String name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString();
    *   PhraseSet response = adaptationClient.getPhraseSet(name);
@@ -376,8 +406,11 @@ public final PhraseSet getPhraseSet(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   GetPhraseSetRequest request =
    *       GetPhraseSetRequest.newBuilder()
@@ -401,8 +434,11 @@ public final PhraseSet getPhraseSet(GetPhraseSetRequest 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   GetPhraseSetRequest request =
    *       GetPhraseSetRequest.newBuilder()
@@ -425,8 +461,11 @@ public final UnaryCallable getPhraseSetCallable(
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (PhraseSet element : adaptationClient.listPhraseSet(parent).iterateAll()) {
@@ -459,8 +498,11 @@ public final ListPhraseSetPagedResponse listPhraseSet(LocationName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (PhraseSet element : adaptationClient.listPhraseSet(parent).iterateAll()) {
@@ -490,8 +532,11 @@ public final ListPhraseSetPagedResponse listPhraseSet(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   ListPhraseSetRequest request =
    *       ListPhraseSetRequest.newBuilder()
@@ -519,8 +564,11 @@ public final ListPhraseSetPagedResponse listPhraseSet(ListPhraseSetRequest reque
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   ListPhraseSetRequest request =
    *       ListPhraseSetRequest.newBuilder()
@@ -549,8 +597,11 @@ public final ListPhraseSetPagedResponse listPhraseSet(ListPhraseSetRequest reque
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   ListPhraseSetRequest request =
    *       ListPhraseSetRequest.newBuilder()
@@ -584,8 +635,11 @@ public final UnaryCallable listPhra
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   PhraseSet phraseSet = PhraseSet.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -620,8 +674,11 @@ public final PhraseSet updatePhraseSet(PhraseSet phraseSet, FieldMask updateMask
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   UpdatePhraseSetRequest request =
    *       UpdatePhraseSetRequest.newBuilder()
@@ -646,8 +703,11 @@ public final PhraseSet updatePhraseSet(UpdatePhraseSetRequest 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   UpdatePhraseSetRequest request =
    *       UpdatePhraseSetRequest.newBuilder()
@@ -671,8 +731,11 @@ public final UnaryCallable updatePhraseSetCal
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   PhraseSetName name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]");
    *   adaptationClient.deletePhraseSet(name);
@@ -696,8 +759,11 @@ public final void deletePhraseSet(PhraseSetName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   String name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString();
    *   adaptationClient.deletePhraseSet(name);
@@ -720,8 +786,11 @@ public final void deletePhraseSet(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   DeletePhraseSetRequest request =
    *       DeletePhraseSetRequest.newBuilder()
@@ -745,8 +814,11 @@ public final void deletePhraseSet(DeletePhraseSetRequest 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   DeletePhraseSetRequest request =
    *       DeletePhraseSetRequest.newBuilder()
@@ -769,8 +841,11 @@ public final UnaryCallable deletePhraseSetCallabl
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   CustomClass customClass = CustomClass.newBuilder().build();
@@ -811,8 +886,11 @@ public final CustomClass createCustomClass(
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   CustomClass customClass = CustomClass.newBuilder().build();
@@ -853,8 +931,11 @@ public final CustomClass createCustomClass(
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   CreateCustomClassRequest request =
    *       CreateCustomClassRequest.newBuilder()
@@ -880,8 +961,11 @@ public final CustomClass createCustomClass(CreateCustomClassRequest 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   CreateCustomClassRequest request =
    *       CreateCustomClassRequest.newBuilder()
@@ -907,8 +991,11 @@ public final UnaryCallable createCustomCl
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   CustomClassName name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]");
    *   CustomClass response = adaptationClient.getCustomClass(name);
@@ -932,8 +1019,11 @@ public final CustomClass getCustomClass(CustomClassName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   String name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString();
    *   CustomClass response = adaptationClient.getCustomClass(name);
@@ -956,8 +1046,11 @@ public final CustomClass getCustomClass(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   GetCustomClassRequest request =
    *       GetCustomClassRequest.newBuilder()
@@ -981,8 +1074,11 @@ public final CustomClass getCustomClass(GetCustomClassRequest 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   GetCustomClassRequest request =
    *       GetCustomClassRequest.newBuilder()
@@ -1005,8 +1101,11 @@ public final UnaryCallable getCustomClassCal
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (CustomClass element : adaptationClient.listCustomClasses(parent).iterateAll()) {
@@ -1039,8 +1138,11 @@ public final ListCustomClassesPagedResponse listCustomClasses(LocationName paren
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (CustomClass element : adaptationClient.listCustomClasses(parent).iterateAll()) {
@@ -1071,8 +1173,11 @@ public final ListCustomClassesPagedResponse listCustomClasses(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   ListCustomClassesRequest request =
    *       ListCustomClassesRequest.newBuilder()
@@ -1100,8 +1205,11 @@ public final ListCustomClassesPagedResponse listCustomClasses(ListCustomClassesR
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   ListCustomClassesRequest request =
    *       ListCustomClassesRequest.newBuilder()
@@ -1130,8 +1238,11 @@ public final ListCustomClassesPagedResponse listCustomClasses(ListCustomClassesR
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   ListCustomClassesRequest request =
    *       ListCustomClassesRequest.newBuilder()
@@ -1167,8 +1278,11 @@ public final ListCustomClassesPagedResponse listCustomClasses(ListCustomClassesR
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   CustomClass customClass = CustomClass.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1204,8 +1318,11 @@ public final CustomClass updateCustomClass(CustomClass customClass, FieldMask up
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   UpdateCustomClassRequest request =
    *       UpdateCustomClassRequest.newBuilder()
@@ -1230,8 +1347,11 @@ public final CustomClass updateCustomClass(UpdateCustomClassRequest 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   UpdateCustomClassRequest request =
    *       UpdateCustomClassRequest.newBuilder()
@@ -1256,8 +1376,11 @@ public final UnaryCallable updateCustomCl
    * 

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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   CustomClassName name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]");
    *   adaptationClient.deleteCustomClass(name);
@@ -1288,8 +1411,11 @@ public final void deleteCustomClass(CustomClassName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   String name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString();
    *   adaptationClient.deleteCustomClass(name);
@@ -1317,8 +1443,11 @@ public final void deleteCustomClass(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   DeleteCustomClassRequest request =
    *       DeleteCustomClassRequest.newBuilder()
@@ -1342,8 +1471,11 @@ public final void deleteCustomClass(DeleteCustomClassRequest 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
    *   DeleteCustomClassRequest request =
    *       DeleteCustomClassRequest.newBuilder()
diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java
index 65f40a764..17f556ab9 100644
--- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java
+++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java
@@ -55,16 +55,16 @@
  * 

For example, to set the total timeout of createPhraseSet 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
  * AdaptationSettings.Builder adaptationSettingsBuilder = AdaptationSettings.newBuilder();
  * adaptationSettingsBuilder
  *     .createPhraseSetSettings()
  *     .setRetrySettings(
- *         adaptationSettingsBuilder
- *             .createPhraseSetSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         adaptationSettingsBuilder.createPhraseSetSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * AdaptationSettings adaptationSettings = adaptationSettingsBuilder.build();
diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java
index 91472ad97..ee1bf00d4 100644
--- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java
+++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java
@@ -38,8 +38,11 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (SpeechClient speechClient = SpeechClient.create()) {
  *   RecognitionConfig config = RecognitionConfig.newBuilder().build();
  *   RecognitionAudio audio = RecognitionAudio.newBuilder().build();
@@ -76,8 +79,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
  * SpeechSettings speechSettings =
  *     SpeechSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -88,8 +94,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
  * SpeechSettings speechSettings = SpeechSettings.newBuilder().setEndpoint(myEndpoint).build();
  * SpeechClient speechClient = SpeechClient.create(speechSettings);
  * }
@@ -98,8 +107,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
  * SpeechSettings speechSettings =
  *     SpeechSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -192,8 +204,11 @@ public final OperationsClient getHttpJsonOperationsClient() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (SpeechClient speechClient = SpeechClient.create()) {
    *   RecognitionConfig config = RecognitionConfig.newBuilder().build();
    *   RecognitionAudio audio = RecognitionAudio.newBuilder().build();
@@ -220,8 +235,11 @@ public final RecognizeResponse recognize(RecognitionConfig config, RecognitionAu
    * 

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 (SpeechClient speechClient = SpeechClient.create()) {
    *   RecognizeRequest request =
    *       RecognizeRequest.newBuilder()
@@ -247,8 +265,11 @@ public final RecognizeResponse recognize(RecognizeRequest 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 (SpeechClient speechClient = SpeechClient.create()) {
    *   RecognizeRequest request =
    *       RecognizeRequest.newBuilder()
@@ -275,8 +296,11 @@ public final UnaryCallable recognizeCallabl
    * 

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 (SpeechClient speechClient = SpeechClient.create()) {
    *   RecognitionConfig config = RecognitionConfig.newBuilder().build();
    *   RecognitionAudio audio = RecognitionAudio.newBuilder().build();
@@ -307,8 +331,11 @@ public final UnaryCallable recognizeCallabl
    * 

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 (SpeechClient speechClient = SpeechClient.create()) {
    *   LongRunningRecognizeRequest request =
    *       LongRunningRecognizeRequest.newBuilder()
@@ -338,8 +365,11 @@ public final UnaryCallable recognizeCallabl
    * 

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 (SpeechClient speechClient = SpeechClient.create()) {
    *   LongRunningRecognizeRequest request =
    *       LongRunningRecognizeRequest.newBuilder()
@@ -370,8 +400,11 @@ public final UnaryCallable recognizeCallabl
    * 

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 (SpeechClient speechClient = SpeechClient.create()) {
    *   LongRunningRecognizeRequest request =
    *       LongRunningRecognizeRequest.newBuilder()
@@ -398,8 +431,11 @@ public final UnaryCallable recognizeCallabl
    * 

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 (SpeechClient speechClient = SpeechClient.create()) {
    *   BidiStream bidiStream =
    *       speechClient.streamingRecognizeCallable().call();
diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java
index 57cc1b81f..53498fa31 100644
--- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java
+++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java
@@ -53,16 +53,16 @@
  * 

For example, to set the total timeout of recognize 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
  * SpeechSettings.Builder speechSettingsBuilder = SpeechSettings.newBuilder();
  * speechSettingsBuilder
  *     .recognizeSettings()
  *     .setRetrySettings(
- *         speechSettingsBuilder
- *             .recognizeSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         speechSettingsBuilder.recognizeSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * SpeechSettings speechSettings = speechSettingsBuilder.build();
diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java
index 53c929db9..e1d58a669 100644
--- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java
+++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java
@@ -24,8 +24,11 @@
  * 

Sample for SpeechClient: * *

{@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 (SpeechClient speechClient = SpeechClient.create()) {
  *   RecognitionConfig config = RecognitionConfig.newBuilder().build();
  *   RecognitionAudio audio = RecognitionAudio.newBuilder().build();
@@ -40,8 +43,11 @@
  * 

Sample for AdaptationClient: * *

{@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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  *   PhraseSet phraseSet = PhraseSet.newBuilder().build();
diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java
index 4b78381bc..cc2dc2efe 100644
--- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java
+++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java
@@ -85,16 +85,16 @@
  * 

For example, to set the total timeout of createPhraseSet 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
  * AdaptationStubSettings.Builder adaptationSettingsBuilder = AdaptationStubSettings.newBuilder();
  * adaptationSettingsBuilder
  *     .createPhraseSetSettings()
  *     .setRetrySettings(
- *         adaptationSettingsBuilder
- *             .createPhraseSetSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         adaptationSettingsBuilder.createPhraseSetSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * AdaptationStubSettings adaptationSettings = adaptationSettingsBuilder.build();
diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java
index 1aae35000..0f5e1743c 100644
--- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java
+++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java
@@ -93,7 +93,7 @@ public class HttpJsonAdaptationStub extends AdaptationStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearParent().build()))
+                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -199,7 +199,7 @@ public class HttpJsonAdaptationStub extends AdaptationStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("phraseSet", request.getPhraseSet()))
+                                  .toBody("phraseSet", request.getPhraseSet(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -268,7 +268,7 @@ public class HttpJsonAdaptationStub extends AdaptationStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearParent().build()))
+                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -374,7 +374,7 @@ public class HttpJsonAdaptationStub extends AdaptationStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("customClass", request.getCustomClass()))
+                                  .toBody("customClass", request.getCustomClass(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java
index 734bccaaa..ea83c8d98 100644
--- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java
+++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java
@@ -86,7 +86,8 @@ public class HttpJsonSpeechStub extends SpeechStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -120,7 +121,8 @@ public class HttpJsonSpeechStub extends SpeechStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java
index 0dd3efd4c..c8187b4bd 100644
--- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java
+++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java
@@ -74,16 +74,16 @@
  * 

For example, to set the total timeout of recognize 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
  * SpeechStubSettings.Builder speechSettingsBuilder = SpeechStubSettings.newBuilder();
  * speechSettingsBuilder
  *     .recognizeSettings()
  *     .setRetrySettings(
- *         speechSettingsBuilder
- *             .recognizeSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         speechSettingsBuilder.recognizeSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * SpeechStubSettings speechSettings = speechSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider.java
index 18da537a9..b2bcdf720 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/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
     AdaptationSettings adaptationSettings =
         AdaptationSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java
index 2300cfecb..1bab8005d 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/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
     AdaptationSettings adaptationSettings =
         AdaptationSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetEndpoint.java
index 0f1b86915..bd27d2fce 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/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
     AdaptationSettings adaptationSettings =
         AdaptationSettings.newBuilder().setEndpoint(myEndpoint).build();
     AdaptationClient adaptationClient = AdaptationClient.create(adaptationSettings);
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java
index 30822996f..40bd825d2 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateCustomClass() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       CreateCustomClassRequest request =
           CreateCustomClassRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClass.java
index f9d090cbe..3d8f3f2c0 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClass.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClass.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateCustomClass() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       CreateCustomClassRequest request =
           CreateCustomClassRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java
index c7bd66d09..2203cbf4e 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateCustomClassLocationnameCustomclassString() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       CustomClass customClass = CustomClass.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java
index c60dc243a..4ba5f80f6 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateCustomClassStringCustomclassString() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       CustomClass customClass = CustomClass.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java
index 3478c5b41..52d59f186 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreatePhraseSet() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       CreatePhraseSetRequest request =
           CreatePhraseSetRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSet.java
index 3409c0f37..6512403a0 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSet.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSet.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreatePhraseSet() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       CreatePhraseSetRequest request =
           CreatePhraseSetRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java
index 77c352b8f..8cbc56272 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreatePhraseSetLocationnamePhrasesetString() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       PhraseSet phraseSet = PhraseSet.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java
index 25ae14bbe..ca700e324 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreatePhraseSetStringPhrasesetString() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       PhraseSet phraseSet = PhraseSet.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java
index dd2e0969b..0d0fd62e6 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteCustomClass() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       DeleteCustomClassRequest request =
           DeleteCustomClassRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java
index c98d9b047..86e206193 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteCustomClass() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       DeleteCustomClassRequest request =
           DeleteCustomClassRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java
index 09e3de09a..a40dfb49e 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteCustomClassCustomclassname() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       CustomClassName name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]");
       adaptationClient.deleteCustomClass(name);
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java
index 3642c68fc..784c891bc 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteCustomClassString() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       String name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString();
       adaptationClient.deleteCustomClass(name);
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java
index f9ef90b6a..a78c39816 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeletePhraseSet() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       DeletePhraseSetRequest request =
           DeletePhraseSetRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java
index 9f56b1835..367673ef3 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeletePhraseSet() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       DeletePhraseSetRequest request =
           DeletePhraseSetRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java
index 9675f36ac..c3c1427d1 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeletePhraseSetPhrasesetname() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       PhraseSetName name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]");
       adaptationClient.deletePhraseSet(name);
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java
index 75d4255a7..bf8bb5a39 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeletePhraseSetString() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       String name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString();
       adaptationClient.deletePhraseSet(name);
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/AsyncGetCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/AsyncGetCustomClass.java
index bcaf36835..cd328b12e 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/AsyncGetCustomClass.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/AsyncGetCustomClass.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetCustomClass() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       GetCustomClassRequest request =
           GetCustomClassRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClass.java
index 94460f74e..191aa960d 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClass.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClass.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetCustomClass() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       GetCustomClassRequest request =
           GetCustomClassRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java
index 5b543ef03..a233a5292 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetCustomClassCustomclassname() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       CustomClassName name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]");
       CustomClass response = adaptationClient.getCustomClass(name);
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassString.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassString.java
index 2bc7ede85..47c1cd435 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassString.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetCustomClassString() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       String name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString();
       CustomClass response = adaptationClient.getCustomClass(name);
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/AsyncGetPhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/AsyncGetPhraseSet.java
index e97863c3e..20bfd9e54 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/AsyncGetPhraseSet.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/AsyncGetPhraseSet.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetPhraseSet() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       GetPhraseSetRequest request =
           GetPhraseSetRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSet.java
index 0e64d7c69..9399c9f20 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSet.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSet.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetPhraseSet() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       GetPhraseSetRequest request =
           GetPhraseSetRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java
index d47d57012..eb9726fb2 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetPhraseSetPhrasesetname() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       PhraseSetName name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]");
       PhraseSet response = adaptationClient.getPhraseSet(name);
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetString.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetString.java
index ac4a08cc2..670685629 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetString.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetPhraseSetString() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       String name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString();
       PhraseSet response = adaptationClient.getPhraseSet(name);
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java
index 3c694cce6..8fd934090 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListCustomClasses() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       ListCustomClassesRequest request =
           ListCustomClassesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java
index fd2e3c850..34e934e7a 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListCustomClassesPaged() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       ListCustomClassesRequest request =
           ListCustomClassesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClasses.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClasses.java
index 3c4d12892..09c326f4d 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClasses.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClasses.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListCustomClasses() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       ListCustomClassesRequest request =
           ListCustomClassesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java
index d17876bf6..5289bee23 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListCustomClassesLocationname() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       for (CustomClass element : adaptationClient.listCustomClasses(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java
index 786bf34d6..42bba433c 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListCustomClassesString() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       for (CustomClass element : adaptationClient.listCustomClasses(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSet.java
index f9d8d48a2..fe7003398 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSet.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSet.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListPhraseSet() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       ListPhraseSetRequest request =
           ListPhraseSetRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java
index 1aa353fdf..e9b49a546 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListPhraseSetPaged() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       ListPhraseSetRequest request =
           ListPhraseSetRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSet.java
index ad30818cb..aaac2ba57 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSet.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSet.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListPhraseSet() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       ListPhraseSetRequest request =
           ListPhraseSetRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java
index 8ebced751..9948db0c2 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListPhraseSetLocationname() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       for (PhraseSet element : adaptationClient.listPhraseSet(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetString.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetString.java
index 0a6757793..abfbf9874 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetString.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListPhraseSetString() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       for (PhraseSet element : adaptationClient.listPhraseSet(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java
index b758b5ff1..5c8900251 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateCustomClass() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       UpdateCustomClassRequest request =
           UpdateCustomClassRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java
index dfb766bd2..a1535b85a 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateCustomClass() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       UpdateCustomClassRequest request =
           UpdateCustomClassRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java
index b60d79d41..faa475759 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateCustomClassCustomclassFieldmask() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       CustomClass customClass = CustomClass.newBuilder().build();
       FieldMask updateMask = FieldMask.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java
index d1bcf662f..1c8c11ab4 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdatePhraseSet() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       UpdatePhraseSetRequest request =
           UpdatePhraseSetRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java
index 66e5d7ffe..5a7c4c335 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdatePhraseSet() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       UpdatePhraseSetRequest request =
           UpdatePhraseSetRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java
index f15db63de..939e3c359 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdatePhraseSetPhrasesetFieldmask() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       PhraseSet phraseSet = PhraseSet.newBuilder().build();
       FieldMask updateMask = FieldMask.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java
index 2822e5873..af61f9983 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreatePhraseSet() 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
     AdaptationSettings.Builder adaptationSettingsBuilder = AdaptationSettings.newBuilder();
     adaptationSettingsBuilder
         .createPhraseSetSettings()
         .setRetrySettings(
-            adaptationSettingsBuilder
-                .createPhraseSetSettings()
-                .getRetrySettings()
-                .toBuilder()
+            adaptationSettingsBuilder.createPhraseSetSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     AdaptationSettings adaptationSettings = adaptationSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider.java
index 594fba98e..4d001abc7 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/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
     SpeechSettings speechSettings =
         SpeechSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider1.java
index f4163009e..5057116df 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/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
     SpeechSettings speechSettings =
         SpeechSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetEndpoint.java
index 39c177cfe..dffc532af 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/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
     SpeechSettings speechSettings = SpeechSettings.newBuilder().setEndpoint(myEndpoint).build();
     SpeechClient speechClient = SpeechClient.create(speechSettings);
   }
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java
index 98babdc9d..4674a8bf4 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncLongRunningRecognize() 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 (SpeechClient speechClient = SpeechClient.create()) {
       LongRunningRecognizeRequest request =
           LongRunningRecognizeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java
index b8979c467..e68f8d9de 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java
@@ -33,8 +33,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncLongRunningRecognizeLRO() 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 (SpeechClient speechClient = SpeechClient.create()) {
       LongRunningRecognizeRequest request =
           LongRunningRecognizeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java
index 6cfb4326e..17f2879d8 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncLongRunningRecognize() 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 (SpeechClient speechClient = SpeechClient.create()) {
       LongRunningRecognizeRequest request =
           LongRunningRecognizeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java
index 34b76edde..04feacdf3 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncLongRunningRecognizeRecognitionconfigRecognitionaudio() 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 (SpeechClient speechClient = SpeechClient.create()) {
       RecognitionConfig config = RecognitionConfig.newBuilder().build();
       RecognitionAudio audio = RecognitionAudio.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/AsyncRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/AsyncRecognize.java
index f46fdbf07..b905afd81 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/AsyncRecognize.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/AsyncRecognize.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncRecognize() 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 (SpeechClient speechClient = SpeechClient.create()) {
       RecognizeRequest request =
           RecognizeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognize.java
index 0b292ea22..77ea09fdc 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognize.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognize.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRecognize() 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 (SpeechClient speechClient = SpeechClient.create()) {
       RecognizeRequest request =
           RecognizeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java
index 0fd7928d9..886ab8017 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRecognizeRecognitionconfigRecognitionaudio() 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 (SpeechClient speechClient = SpeechClient.create()) {
       RecognitionConfig config = RecognitionConfig.newBuilder().build();
       RecognitionAudio audio = RecognitionAudio.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/streamingrecognize/AsyncStreamingRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/streamingrecognize/AsyncStreamingRecognize.java
index d2ac554e0..99388791a 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/streamingrecognize/AsyncStreamingRecognize.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/streamingrecognize/AsyncStreamingRecognize.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncStreamingRecognize() 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 (SpeechClient speechClient = SpeechClient.create()) {
       BidiStream bidiStream =
           speechClient.streamingRecognizeCallable().call();
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java
index 479121da3..6c7ac4c96 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRecognize() 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
     SpeechSettings.Builder speechSettingsBuilder = SpeechSettings.newBuilder();
     speechSettingsBuilder
         .recognizeSettings()
         .setRetrySettings(
-            speechSettingsBuilder
-                .recognizeSettings()
-                .getRetrySettings()
-                .toBuilder()
+            speechSettingsBuilder.recognizeSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     SpeechSettings speechSettings = speechSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java
index 841517611..ba671b79b 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreatePhraseSet() 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
     AdaptationStubSettings.Builder adaptationSettingsBuilder = AdaptationStubSettings.newBuilder();
     adaptationSettingsBuilder
         .createPhraseSetSettings()
         .setRetrySettings(
-            adaptationSettingsBuilder
-                .createPhraseSetSettings()
-                .getRetrySettings()
-                .toBuilder()
+            adaptationSettingsBuilder.createPhraseSetSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     AdaptationStubSettings adaptationSettings = adaptationSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java
index 15f526f49..af6790d8c 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRecognize() 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
     SpeechStubSettings.Builder speechSettingsBuilder = SpeechStubSettings.newBuilder();
     speechSettingsBuilder
         .recognizeSettings()
         .setRetrySettings(
-            speechSettingsBuilder
-                .recognizeSettings()
-                .getRetrySettings()
-                .toBuilder()
+            speechSettingsBuilder.recognizeSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     SpeechStubSettings speechSettings = speechSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider.java
index e1dc30461..bd5664309 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/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
     AdaptationSettings adaptationSettings =
         AdaptationSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java
index 9a2da57cd..40dc533c4 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/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
     AdaptationSettings adaptationSettings =
         AdaptationSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetEndpoint.java
index d9d26ebfc..7e99d78cb 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/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
     AdaptationSettings adaptationSettings =
         AdaptationSettings.newBuilder().setEndpoint(myEndpoint).build();
     AdaptationClient adaptationClient = AdaptationClient.create(adaptationSettings);
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java
index 3a8bcaccf..1a57cc821 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateCustomClass() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       CreateCustomClassRequest request =
           CreateCustomClassRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClass.java
index 5704d71d0..2be35900c 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClass.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClass.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateCustomClass() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       CreateCustomClassRequest request =
           CreateCustomClassRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java
index 59f887842..8ed1a4df7 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateCustomClassLocationnameCustomclassString() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       CustomClass customClass = CustomClass.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java
index 8c959c265..590bb5f11 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateCustomClassStringCustomclassString() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       CustomClass customClass = CustomClass.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java
index 91219418e..578035281 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreatePhraseSet() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       CreatePhraseSetRequest request =
           CreatePhraseSetRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSet.java
index 501dbda50..c2f19902a 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSet.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSet.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreatePhraseSet() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       CreatePhraseSetRequest request =
           CreatePhraseSetRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java
index ba61fbbc0..112bc4290 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreatePhraseSetLocationnamePhrasesetString() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       PhraseSet phraseSet = PhraseSet.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java
index 08e33dd35..affa84e49 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreatePhraseSetStringPhrasesetString() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       PhraseSet phraseSet = PhraseSet.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java
index 7e64b2f25..dc0d07516 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteCustomClass() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       DeleteCustomClassRequest request =
           DeleteCustomClassRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java
index 8f7babd66..5df45e9c5 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteCustomClass() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       DeleteCustomClassRequest request =
           DeleteCustomClassRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java
index f7fd054e1..724356848 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteCustomClassCustomclassname() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       CustomClassName name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]");
       adaptationClient.deleteCustomClass(name);
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java
index 91157db0f..7e7156e46 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteCustomClassString() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       String name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString();
       adaptationClient.deleteCustomClass(name);
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java
index 8696865e2..1f2090dd1 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeletePhraseSet() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       DeletePhraseSetRequest request =
           DeletePhraseSetRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java
index f88a6fd31..ad1e94c7c 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeletePhraseSet() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       DeletePhraseSetRequest request =
           DeletePhraseSetRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java
index efd68e0ae..8ce8766e5 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeletePhraseSetPhrasesetname() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       PhraseSetName name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]");
       adaptationClient.deletePhraseSet(name);
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java
index 7266f0313..b4f5722e1 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeletePhraseSetString() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       String name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString();
       adaptationClient.deletePhraseSet(name);
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/AsyncGetCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/AsyncGetCustomClass.java
index aaf48b8da..2ed74756b 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/AsyncGetCustomClass.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/AsyncGetCustomClass.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetCustomClass() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       GetCustomClassRequest request =
           GetCustomClassRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClass.java
index 4709ffb1b..c64a6bef5 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClass.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClass.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetCustomClass() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       GetCustomClassRequest request =
           GetCustomClassRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java
index 950d377d8..a755bb8d2 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetCustomClassCustomclassname() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       CustomClassName name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]");
       CustomClass response = adaptationClient.getCustomClass(name);
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassString.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassString.java
index 528e779ba..e4b6e7500 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassString.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetCustomClassString() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       String name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString();
       CustomClass response = adaptationClient.getCustomClass(name);
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/AsyncGetPhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/AsyncGetPhraseSet.java
index 7a26330fa..7c3917202 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/AsyncGetPhraseSet.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/AsyncGetPhraseSet.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetPhraseSet() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       GetPhraseSetRequest request =
           GetPhraseSetRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSet.java
index 20118bc73..5a74538b1 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSet.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSet.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetPhraseSet() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       GetPhraseSetRequest request =
           GetPhraseSetRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java
index a1942ecd8..f441e0cb1 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetPhraseSetPhrasesetname() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       PhraseSetName name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]");
       PhraseSet response = adaptationClient.getPhraseSet(name);
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetString.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetString.java
index c70b6dd96..19b5e9a5e 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetString.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetPhraseSetString() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       String name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString();
       PhraseSet response = adaptationClient.getPhraseSet(name);
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java
index 307143202..064a5e84c 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListCustomClasses() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       ListCustomClassesRequest request =
           ListCustomClassesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java
index c1d6e465d..8c3746eb2 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListCustomClassesPaged() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       ListCustomClassesRequest request =
           ListCustomClassesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClasses.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClasses.java
index d70357791..e27771c35 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClasses.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClasses.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListCustomClasses() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       ListCustomClassesRequest request =
           ListCustomClassesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java
index f0d125c16..c3713e764 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListCustomClassesLocationname() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       for (CustomClass element : adaptationClient.listCustomClasses(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java
index 82f22addf..b562359e7 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListCustomClassesString() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       for (CustomClass element : adaptationClient.listCustomClasses(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSet.java
index 625206cd1..ddd8ac9c5 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSet.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSet.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListPhraseSet() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       ListPhraseSetRequest request =
           ListPhraseSetRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java
index 46ee4673a..fdce15bfc 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListPhraseSetPaged() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       ListPhraseSetRequest request =
           ListPhraseSetRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSet.java
index a2e415197..aece2277d 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSet.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSet.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListPhraseSet() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       ListPhraseSetRequest request =
           ListPhraseSetRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java
index 71a53d244..c42079976 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListPhraseSetLocationname() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       for (PhraseSet element : adaptationClient.listPhraseSet(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetString.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetString.java
index a356e65c1..19588c874 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetString.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListPhraseSetString() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       for (PhraseSet element : adaptationClient.listPhraseSet(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java
index 2df83bb8e..eff9cbd66 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateCustomClass() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       UpdateCustomClassRequest request =
           UpdateCustomClassRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java
index 84cc5ba9e..5639710d7 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateCustomClass() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       UpdateCustomClassRequest request =
           UpdateCustomClassRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java
index ddaa53113..ca713b4d0 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateCustomClassCustomclassFieldmask() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       CustomClass customClass = CustomClass.newBuilder().build();
       FieldMask updateMask = FieldMask.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java
index 1e7794dce..0aaa9f205 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdatePhraseSet() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       UpdatePhraseSetRequest request =
           UpdatePhraseSetRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java
index 9bd389616..0d825ca2e 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdatePhraseSet() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       UpdatePhraseSetRequest request =
           UpdatePhraseSetRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java
index 0d90c1c72..f28127f99 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdatePhraseSetPhrasesetFieldmask() 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
       PhraseSet phraseSet = PhraseSet.newBuilder().build();
       FieldMask updateMask = FieldMask.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java
index 980b5fb83..c8667aa60 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreatePhraseSet() 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
     AdaptationSettings.Builder adaptationSettingsBuilder = AdaptationSettings.newBuilder();
     adaptationSettingsBuilder
         .createPhraseSetSettings()
         .setRetrySettings(
-            adaptationSettingsBuilder
-                .createPhraseSetSettings()
-                .getRetrySettings()
-                .toBuilder()
+            adaptationSettingsBuilder.createPhraseSetSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     AdaptationSettings adaptationSettings = adaptationSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider.java
index ece01cd0a..465bcd69e 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/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
     SpeechSettings speechSettings =
         SpeechSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider1.java
index 593286a34..456dd01a4 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/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
     SpeechSettings speechSettings =
         SpeechSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetEndpoint.java
index 645f05da5..2108d127e 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/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
     SpeechSettings speechSettings = SpeechSettings.newBuilder().setEndpoint(myEndpoint).build();
     SpeechClient speechClient = SpeechClient.create(speechSettings);
   }
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java
index 7449660dd..6fbb74bd8 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncLongRunningRecognize() 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 (SpeechClient speechClient = SpeechClient.create()) {
       LongRunningRecognizeRequest request =
           LongRunningRecognizeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java
index caa207ae4..832a218ac 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java
@@ -33,8 +33,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncLongRunningRecognizeLRO() 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 (SpeechClient speechClient = SpeechClient.create()) {
       LongRunningRecognizeRequest request =
           LongRunningRecognizeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java
index 5ae28afd0..5884a7620 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncLongRunningRecognize() 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 (SpeechClient speechClient = SpeechClient.create()) {
       LongRunningRecognizeRequest request =
           LongRunningRecognizeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java
index 7e0ad5198..1ddada3bf 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncLongRunningRecognizeRecognitionconfigRecognitionaudio() 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 (SpeechClient speechClient = SpeechClient.create()) {
       RecognitionConfig config = RecognitionConfig.newBuilder().build();
       RecognitionAudio audio = RecognitionAudio.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/AsyncRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/AsyncRecognize.java
index da119711c..c99be3b3e 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/AsyncRecognize.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/AsyncRecognize.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncRecognize() 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 (SpeechClient speechClient = SpeechClient.create()) {
       RecognizeRequest request =
           RecognizeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognize.java
index 110a6e443..3491c66b1 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognize.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognize.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRecognize() 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 (SpeechClient speechClient = SpeechClient.create()) {
       RecognizeRequest request =
           RecognizeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java
index 3302e5fa1..02951bb47 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRecognizeRecognitionconfigRecognitionaudio() 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 (SpeechClient speechClient = SpeechClient.create()) {
       RecognitionConfig config = RecognitionConfig.newBuilder().build();
       RecognitionAudio audio = RecognitionAudio.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/streamingrecognize/AsyncStreamingRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/streamingrecognize/AsyncStreamingRecognize.java
index 8d3d9cf57..b910bb2bd 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/streamingrecognize/AsyncStreamingRecognize.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/streamingrecognize/AsyncStreamingRecognize.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncStreamingRecognize() 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 (SpeechClient speechClient = SpeechClient.create()) {
       BidiStream bidiStream =
           speechClient.streamingRecognizeCallable().call();
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java
index d12a32039..7611b369a 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRecognize() 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
     SpeechSettings.Builder speechSettingsBuilder = SpeechSettings.newBuilder();
     speechSettingsBuilder
         .recognizeSettings()
         .setRetrySettings(
-            speechSettingsBuilder
-                .recognizeSettings()
-                .getRetrySettings()
-                .toBuilder()
+            speechSettingsBuilder.recognizeSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     SpeechSettings speechSettings = speechSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java
index 6f76a27b5..baa910f35 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreatePhraseSet() 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
     AdaptationStubSettings.Builder adaptationSettingsBuilder = AdaptationStubSettings.newBuilder();
     adaptationSettingsBuilder
         .createPhraseSetSettings()
         .setRetrySettings(
-            adaptationSettingsBuilder
-                .createPhraseSetSettings()
-                .getRetrySettings()
-                .toBuilder()
+            adaptationSettingsBuilder.createPhraseSetSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     AdaptationStubSettings adaptationSettings = adaptationSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java
index 153aea750..e045c1b25 100644
--- a/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java
+++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRecognize() 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
     SpeechStubSettings.Builder speechSettingsBuilder = SpeechStubSettings.newBuilder();
     speechSettingsBuilder
         .recognizeSettings()
         .setRetrySettings(
-            speechSettingsBuilder
-                .recognizeSettings()
-                .getRetrySettings()
-                .toBuilder()
+            speechSettingsBuilder.recognizeSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     SpeechStubSettings speechSettings = speechSettingsBuilder.build();

From 52a5d83f8540db33509a01761bdaec1e1266d4d2 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:10:23 +0000
Subject: [PATCH 4/6] chore: Generated snippets should not be owned by samples
 reviewers (#1575) (#950)

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 de9173d95..625929230 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 30fdb7b9c..db2d8ad17 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 a618141430c6944348b096db20f6b8f7c657eb1d Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate 
Date: Thu, 15 Sep 2022 14:28:20 +0200
Subject: [PATCH 5/6] deps: update dependency
 com.google.cloud:google-cloud-shared-dependencies to v3.0.3 (#951)
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-speech). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 4238e0cab..7fa633e4e 100644 --- a/pom.xml +++ b/pom.xml @@ -185,7 +185,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.0.2 + 3.0.3 pom import From 9c95ae9628612ff5fb14fe87cfd3f01266634ecc Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 15 Sep 2022 13:04:15 +0000 Subject: [PATCH 6/6] chore(main): release 2.5.7 (#952) :robot: I have created a release *beep* *boop* --- ## [2.5.7](https://github.com/googleapis/java-speech/compare/v2.5.6...v2.5.7) (2022-09-15) ### Dependencies * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#951](https://github.com/googleapis/java-speech/issues/951)) ([a618141](https://github.com/googleapis/java-speech/commit/a618141430c6944348b096db20f6b8f7c657eb1d)) --- 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-speech-bom/pom.xml | 16 ++++++++-------- google-cloud-speech/pom.xml | 4 ++-- grpc-google-cloud-speech-v1/pom.xml | 4 ++-- grpc-google-cloud-speech-v1beta1/pom.xml | 4 ++-- grpc-google-cloud-speech-v1p1beta1/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-speech-v1/pom.xml | 4 ++-- proto-google-cloud-speech-v1beta1/pom.xml | 4 ++-- proto-google-cloud-speech-v1p1beta1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 14 +++++++------- 12 files changed, 45 insertions(+), 38 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d9e8acf1..9e51227c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.5.7](https://github.com/googleapis/java-speech/compare/v2.5.6...v2.5.7) (2022-09-15) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#951](https://github.com/googleapis/java-speech/issues/951)) ([a618141](https://github.com/googleapis/java-speech/commit/a618141430c6944348b096db20f6b8f7c657eb1d)) + ## [2.5.6](https://github.com/googleapis/java-speech/compare/v2.5.5...v2.5.6) (2022-09-09) diff --git a/google-cloud-speech-bom/pom.xml b/google-cloud-speech-bom/pom.xml index ad9b91638..6a4a7e7c5 100644 --- a/google-cloud-speech-bom/pom.xml +++ b/google-cloud-speech-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-speech-bom - 2.5.7-SNAPSHOT + 2.5.7 pom com.google.cloud @@ -53,37 +53,37 @@ com.google.cloud google-cloud-speech - 2.5.7-SNAPSHOT + 2.5.7 com.google.api.grpc grpc-google-cloud-speech-v1 - 2.5.7-SNAPSHOT + 2.5.7 com.google.api.grpc grpc-google-cloud-speech-v1beta1 - 0.89.7-SNAPSHOT + 0.89.7 com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 0.89.7-SNAPSHOT + 0.89.7 com.google.api.grpc proto-google-cloud-speech-v1 - 2.5.7-SNAPSHOT + 2.5.7 com.google.api.grpc proto-google-cloud-speech-v1beta1 - 0.89.7-SNAPSHOT + 0.89.7 com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 0.89.7-SNAPSHOT + 0.89.7 diff --git a/google-cloud-speech/pom.xml b/google-cloud-speech/pom.xml index 7c4197490..d71f9ffd8 100644 --- a/google-cloud-speech/pom.xml +++ b/google-cloud-speech/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-speech - 2.5.7-SNAPSHOT + 2.5.7 jar Google Cloud Speech https://github.com/googleapis/java-speech @@ -13,7 +13,7 @@ com.google.cloud google-cloud-speech-parent - 2.5.7-SNAPSHOT + 2.5.7 google-cloud-speech diff --git a/grpc-google-cloud-speech-v1/pom.xml b/grpc-google-cloud-speech-v1/pom.xml index fb02cc876..c16319482 100644 --- a/grpc-google-cloud-speech-v1/pom.xml +++ b/grpc-google-cloud-speech-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-speech-v1 - 2.5.7-SNAPSHOT + 2.5.7 grpc-google-cloud-speech-v1 GRPC library for grpc-google-cloud-speech-v1 com.google.cloud google-cloud-speech-parent - 2.5.7-SNAPSHOT + 2.5.7 diff --git a/grpc-google-cloud-speech-v1beta1/pom.xml b/grpc-google-cloud-speech-v1beta1/pom.xml index 6f434c4c5..a593e2159 100644 --- a/grpc-google-cloud-speech-v1beta1/pom.xml +++ b/grpc-google-cloud-speech-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-speech-v1beta1 - 0.89.7-SNAPSHOT + 0.89.7 grpc-google-cloud-speech-v1beta1 GRPC library for grpc-google-cloud-speech-v1beta1 com.google.cloud google-cloud-speech-parent - 2.5.7-SNAPSHOT + 2.5.7 diff --git a/grpc-google-cloud-speech-v1p1beta1/pom.xml b/grpc-google-cloud-speech-v1p1beta1/pom.xml index 86becc5a9..55d1f6ef5 100644 --- a/grpc-google-cloud-speech-v1p1beta1/pom.xml +++ b/grpc-google-cloud-speech-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 0.89.7-SNAPSHOT + 0.89.7 grpc-google-cloud-speech-v1p1beta1 GRPC library for grpc-google-cloud-speech-v1p1beta1 com.google.cloud google-cloud-speech-parent - 2.5.7-SNAPSHOT + 2.5.7 diff --git a/pom.xml b/pom.xml index 7fa633e4e..e62989f58 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-speech-parent pom - 2.5.7-SNAPSHOT + 2.5.7 Google Cloud speech Parent https://github.com/googleapis/java-speech @@ -149,37 +149,37 @@ com.google.api.grpc proto-google-cloud-speech-v1 - 2.5.7-SNAPSHOT + 2.5.7 com.google.cloud google-cloud-speech - 2.5.7-SNAPSHOT + 2.5.7 com.google.api.grpc proto-google-cloud-speech-v1beta1 - 0.89.7-SNAPSHOT + 0.89.7 com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 0.89.7-SNAPSHOT + 0.89.7 com.google.api.grpc grpc-google-cloud-speech-v1 - 2.5.7-SNAPSHOT + 2.5.7 com.google.api.grpc grpc-google-cloud-speech-v1beta1 - 0.89.7-SNAPSHOT + 0.89.7 com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 0.89.7-SNAPSHOT + 0.89.7 diff --git a/proto-google-cloud-speech-v1/pom.xml b/proto-google-cloud-speech-v1/pom.xml index 35f7f8bea..76beb0aef 100644 --- a/proto-google-cloud-speech-v1/pom.xml +++ b/proto-google-cloud-speech-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-speech-v1 - 2.5.7-SNAPSHOT + 2.5.7 proto-google-cloud-speech-v1 PROTO library for proto-google-cloud-speech-v1 com.google.cloud google-cloud-speech-parent - 2.5.7-SNAPSHOT + 2.5.7 diff --git a/proto-google-cloud-speech-v1beta1/pom.xml b/proto-google-cloud-speech-v1beta1/pom.xml index 79d3e701a..48f482a1b 100644 --- a/proto-google-cloud-speech-v1beta1/pom.xml +++ b/proto-google-cloud-speech-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-speech-v1beta1 - 0.89.7-SNAPSHOT + 0.89.7 proto-google-cloud-speech-v1beta1 PROTO library for proto-google-cloud-speech-v1beta1 com.google.cloud google-cloud-speech-parent - 2.5.7-SNAPSHOT + 2.5.7 diff --git a/proto-google-cloud-speech-v1p1beta1/pom.xml b/proto-google-cloud-speech-v1p1beta1/pom.xml index c24560ead..15a34377e 100644 --- a/proto-google-cloud-speech-v1p1beta1/pom.xml +++ b/proto-google-cloud-speech-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 0.89.7-SNAPSHOT + 0.89.7 proto-google-cloud-speech-v1p1beta1 PROTO library for proto-google-cloud-speech-v1p1beta1 com.google.cloud google-cloud-speech-parent - 2.5.7-SNAPSHOT + 2.5.7 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 4a0056855..72f155dea 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-speech - 2.5.7-SNAPSHOT + 2.5.7 diff --git a/versions.txt b/versions.txt index afcc16299..b48a22211 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-speech:2.5.6:2.5.7-SNAPSHOT -grpc-google-cloud-speech-v1:2.5.6:2.5.7-SNAPSHOT -grpc-google-cloud-speech-v1beta1:0.89.6:0.89.7-SNAPSHOT -grpc-google-cloud-speech-v1p1beta1:0.89.6:0.89.7-SNAPSHOT -proto-google-cloud-speech-v1:2.5.6:2.5.7-SNAPSHOT -proto-google-cloud-speech-v1beta1:0.89.6:0.89.7-SNAPSHOT -proto-google-cloud-speech-v1p1beta1:0.89.6:0.89.7-SNAPSHOT +google-cloud-speech:2.5.7:2.5.7 +grpc-google-cloud-speech-v1:2.5.7:2.5.7 +grpc-google-cloud-speech-v1beta1:0.89.7:0.89.7 +grpc-google-cloud-speech-v1p1beta1:0.89.7:0.89.7 +proto-google-cloud-speech-v1:2.5.7:2.5.7 +proto-google-cloud-speech-v1beta1:0.89.7:0.89.7 +proto-google-cloud-speech-v1p1beta1:0.89.7:0.89.7