diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index de9173d9..62592923 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:d4b80feffe1579818cdc39466152e9de95789a193408506cd4a1ffbe8804dc00 -# created: 2022-07-13T13:53:17.676447481Z + digest: sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93 diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 30fdb7b9..db2d8ad1 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -8,3 +8,6 @@ # The java-samples-reviewers team is the default owner for samples changes samples/**/*.java @googleapis/java-samples-reviewers + +# Generated snippets should not be owned by samples reviewers +samples/snippets/generated/ @googleapis/yoshi-java diff --git a/CHANGELOG.md b/CHANGELOG.md index ba51cff7..b41b00c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.4.4](https://github.com/googleapis/java-texttospeech/compare/v2.4.3...v2.4.4) (2022-09-15) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#740](https://github.com/googleapis/java-texttospeech/issues/740)) ([18b55e6](https://github.com/googleapis/java-texttospeech/commit/18b55e645014fb78543ba70344fa6b9276ae666f)) + ## [2.4.3](https://github.com/googleapis/java-texttospeech/compare/v2.4.2...v2.4.3) (2022-09-09) diff --git a/google-cloud-texttospeech-bom/pom.xml b/google-cloud-texttospeech-bom/pom.xml index 0239b6ce..4b8d8484 100644 --- a/google-cloud-texttospeech-bom/pom.xml +++ b/google-cloud-texttospeech-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-texttospeech-bom - 2.4.3 + 2.4.4 pom com.google.cloud @@ -52,27 +52,27 @@ com.google.cloud google-cloud-texttospeech - 2.4.3 + 2.4.4 com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.93.3 + 0.93.4 com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 2.4.3 + 2.4.4 com.google.api.grpc proto-google-cloud-texttospeech-v1 - 2.4.3 + 2.4.4 com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.93.3 + 0.93.4 diff --git a/google-cloud-texttospeech/pom.xml b/google-cloud-texttospeech/pom.xml index fdf453d8..7bf79ef3 100644 --- a/google-cloud-texttospeech/pom.xml +++ b/google-cloud-texttospeech/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-texttospeech - 2.4.3 + 2.4.4 jar Google Cloud Text-to-Speech https://github.com/googleapis/java-texttospeech @@ -11,7 +11,7 @@ com.google.cloud google-cloud-texttospeech-parent - 2.4.3 + 2.4.4 google-cloud-texttospeech diff --git a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java index 857b22db..a0768907 100644 --- a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java +++ b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java @@ -32,8 +32,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 (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
  *   String languageCode = "languageCode-2092349083";
  *   ListVoicesResponse response = textToSpeechClient.listVoices(languageCode);
@@ -69,8 +72,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
  * TextToSpeechSettings textToSpeechSettings =
  *     TextToSpeechSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -81,8 +87,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
  * TextToSpeechSettings textToSpeechSettings =
  *     TextToSpeechSettings.newBuilder().setEndpoint(myEndpoint).build();
  * TextToSpeechClient textToSpeechClient = TextToSpeechClient.create(textToSpeechSettings);
@@ -92,8 +101,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
  * TextToSpeechSettings textToSpeechSettings =
  *     TextToSpeechSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -160,8 +172,11 @@ public TextToSpeechStub 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 (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
    *   String languageCode = "languageCode-2092349083";
    *   ListVoicesResponse response = textToSpeechClient.listVoices(languageCode);
@@ -189,8 +204,11 @@ public final ListVoicesResponse listVoices(String languageCode) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
    *   ListVoicesRequest request =
    *       ListVoicesRequest.newBuilder().setLanguageCode("languageCode-2092349083").build();
@@ -212,8 +230,11 @@ public final ListVoicesResponse listVoices(ListVoicesRequest 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 (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
    *   ListVoicesRequest request =
    *       ListVoicesRequest.newBuilder().setLanguageCode("languageCode-2092349083").build();
@@ -235,8 +256,11 @@ public final UnaryCallable listVoicesCall
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
    *   SynthesisInput input = SynthesisInput.newBuilder().build();
    *   VoiceSelectionParams voice = VoiceSelectionParams.newBuilder().build();
@@ -269,8 +293,11 @@ public final SynthesizeSpeechResponse synthesizeSpeech(
    * 

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
    *   SynthesizeSpeechRequest request =
    *       SynthesizeSpeechRequest.newBuilder()
diff --git a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechSettings.java b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechSettings.java
index 62223287..597a342e 100644
--- a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechSettings.java
+++ b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechSettings.java
@@ -50,16 +50,16 @@
  * 

For example, to set the total timeout of listVoices 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
  * TextToSpeechSettings.Builder textToSpeechSettingsBuilder = TextToSpeechSettings.newBuilder();
  * textToSpeechSettingsBuilder
  *     .listVoicesSettings()
  *     .setRetrySettings(
- *         textToSpeechSettingsBuilder
- *             .listVoicesSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         textToSpeechSettingsBuilder.listVoicesSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * TextToSpeechSettings textToSpeechSettings = textToSpeechSettingsBuilder.build();
diff --git a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/package-info.java b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/package-info.java
index d5ebc477..a36a7d15 100644
--- a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/package-info.java
+++ b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/package-info.java
@@ -26,8 +26,11 @@
  * 

Sample for TextToSpeechClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
  *   String languageCode = "languageCode-2092349083";
  *   ListVoicesResponse response = textToSpeechClient.listVoices(languageCode);
diff --git a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/HttpJsonTextToSpeechStub.java b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/HttpJsonTextToSpeechStub.java
index 90dac73e..3ab1aefb 100644
--- a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/HttpJsonTextToSpeechStub.java
+++ b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/HttpJsonTextToSpeechStub.java
@@ -111,7 +111,8 @@ public class HttpJsonTextToSpeechStub extends TextToSpeechStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java
index f3bb2985..38a86b38 100644
--- a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java
+++ b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java
@@ -65,17 +65,17 @@
  * 

For example, to set the total timeout of listVoices 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
  * TextToSpeechStubSettings.Builder textToSpeechSettingsBuilder =
  *     TextToSpeechStubSettings.newBuilder();
  * textToSpeechSettingsBuilder
  *     .listVoicesSettings()
  *     .setRetrySettings(
- *         textToSpeechSettingsBuilder
- *             .listVoicesSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         textToSpeechSettingsBuilder.listVoicesSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * TextToSpeechStubSettings textToSpeechSettings = textToSpeechSettingsBuilder.build();
diff --git a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java
index 6e65afe2..d9487e3d 100644
--- a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java
+++ b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java
@@ -33,8 +33,11 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
  *   String languageCode = "languageCode-2092349083";
  *   ListVoicesResponse response = textToSpeechClient.listVoices(languageCode);
@@ -70,8 +73,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
  * TextToSpeechSettings textToSpeechSettings =
  *     TextToSpeechSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -82,8 +88,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
  * TextToSpeechSettings textToSpeechSettings =
  *     TextToSpeechSettings.newBuilder().setEndpoint(myEndpoint).build();
  * TextToSpeechClient textToSpeechClient = TextToSpeechClient.create(textToSpeechSettings);
@@ -93,8 +102,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
  * TextToSpeechSettings textToSpeechSettings =
  *     TextToSpeechSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -162,8 +174,11 @@ public TextToSpeechStub 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 (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
    *   String languageCode = "languageCode-2092349083";
    *   ListVoicesResponse response = textToSpeechClient.listVoices(languageCode);
@@ -191,8 +206,11 @@ public final ListVoicesResponse listVoices(String languageCode) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
    *   ListVoicesRequest request =
    *       ListVoicesRequest.newBuilder().setLanguageCode("languageCode-2092349083").build();
@@ -214,8 +232,11 @@ public final ListVoicesResponse listVoices(ListVoicesRequest 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 (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
    *   ListVoicesRequest request =
    *       ListVoicesRequest.newBuilder().setLanguageCode("languageCode-2092349083").build();
@@ -237,8 +258,11 @@ public final UnaryCallable listVoicesCall
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
    *   SynthesisInput input = SynthesisInput.newBuilder().build();
    *   VoiceSelectionParams voice = VoiceSelectionParams.newBuilder().build();
@@ -271,8 +295,11 @@ public final SynthesizeSpeechResponse synthesizeSpeech(
    * 

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
    *   SynthesizeSpeechRequest request =
    *       SynthesizeSpeechRequest.newBuilder()
diff --git a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings.java b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings.java
index beee9277..53268a43 100644
--- a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings.java
+++ b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings.java
@@ -50,16 +50,16 @@
  * 

For example, to set the total timeout of listVoices 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
  * TextToSpeechSettings.Builder textToSpeechSettingsBuilder = TextToSpeechSettings.newBuilder();
  * textToSpeechSettingsBuilder
  *     .listVoicesSettings()
  *     .setRetrySettings(
- *         textToSpeechSettingsBuilder
- *             .listVoicesSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         textToSpeechSettingsBuilder.listVoicesSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * TextToSpeechSettings textToSpeechSettings = textToSpeechSettingsBuilder.build();
diff --git a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/package-info.java b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/package-info.java
index 266a021a..d5ec0797 100644
--- a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/package-info.java
+++ b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/package-info.java
@@ -26,8 +26,11 @@
  * 

Sample for TextToSpeechClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
  *   String languageCode = "languageCode-2092349083";
  *   ListVoicesResponse response = textToSpeechClient.listVoices(languageCode);
diff --git a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/HttpJsonTextToSpeechStub.java b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/HttpJsonTextToSpeechStub.java
index 08d24793..a53e031d 100644
--- a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/HttpJsonTextToSpeechStub.java
+++ b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/HttpJsonTextToSpeechStub.java
@@ -111,7 +111,8 @@ public class HttpJsonTextToSpeechStub extends TextToSpeechStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java
index 5984309b..63b4039a 100644
--- a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java
+++ b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java
@@ -65,17 +65,17 @@
  * 

For example, to set the total timeout of listVoices 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
  * TextToSpeechStubSettings.Builder textToSpeechSettingsBuilder =
  *     TextToSpeechStubSettings.newBuilder();
  * textToSpeechSettingsBuilder
  *     .listVoicesSettings()
  *     .setRetrySettings(
- *         textToSpeechSettingsBuilder
- *             .listVoicesSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         textToSpeechSettingsBuilder.listVoicesSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * TextToSpeechStubSettings textToSpeechSettings = textToSpeechSettingsBuilder.build();
diff --git a/grpc-google-cloud-texttospeech-v1/pom.xml b/grpc-google-cloud-texttospeech-v1/pom.xml
index 5061e39f..22146fc9 100644
--- a/grpc-google-cloud-texttospeech-v1/pom.xml
+++ b/grpc-google-cloud-texttospeech-v1/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   grpc-google-cloud-texttospeech-v1
-  2.4.3
+  2.4.4
   grpc-google-cloud-texttospeech-v1
   GRPC library for grpc-google-cloud-texttospeech-v1
   
     com.google.cloud
     google-cloud-texttospeech-parent
-    2.4.3
+    2.4.4
   
   
     
diff --git a/grpc-google-cloud-texttospeech-v1beta1/pom.xml b/grpc-google-cloud-texttospeech-v1beta1/pom.xml
index 11adfb15..2eb3b37c 100644
--- a/grpc-google-cloud-texttospeech-v1beta1/pom.xml
+++ b/grpc-google-cloud-texttospeech-v1beta1/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   grpc-google-cloud-texttospeech-v1beta1
-  0.93.3
+  0.93.4
   grpc-google-cloud-texttospeech-v1beta1
   GRPC library for grpc-google-cloud-texttospeech-v1beta1
   
     com.google.cloud
     google-cloud-texttospeech-parent
-    2.4.3
+    2.4.4
   
   
     
diff --git a/pom.xml b/pom.xml
index 9e1ff43f..388ee575 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
   com.google.cloud
   google-cloud-texttospeech-parent
   pom
-  2.4.3
+  2.4.4
   Google Cloud Text-to-Speech Parent
   https://github.com/googleapis/java-texttospeech
   
@@ -61,33 +61,33 @@
       
         com.google.api.grpc
         proto-google-cloud-texttospeech-v1
-        2.4.3
+        2.4.4
       
       
         com.google.api.grpc
         proto-google-cloud-texttospeech-v1beta1
-        0.93.3
+        0.93.4
       
       
         com.google.api.grpc
         grpc-google-cloud-texttospeech-v1beta1
-        0.93.3
+        0.93.4
       
       
         com.google.api.grpc
         grpc-google-cloud-texttospeech-v1
-        2.4.3
+        2.4.4
       
       
         com.google.cloud
         google-cloud-texttospeech
-        2.4.3
+        2.4.4
       
 
       
         com.google.cloud
         google-cloud-shared-dependencies
-        3.0.2
+        3.0.3
         pom
         import
       
diff --git a/proto-google-cloud-texttospeech-v1/pom.xml b/proto-google-cloud-texttospeech-v1/pom.xml
index bec6ad38..2e672d17 100644
--- a/proto-google-cloud-texttospeech-v1/pom.xml
+++ b/proto-google-cloud-texttospeech-v1/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   proto-google-cloud-texttospeech-v1
-  2.4.3
+  2.4.4
   proto-google-cloud-texttospeech-v1
   PROTO library for proto-google-cloud-texttospeech-v1
   
     com.google.cloud
     google-cloud-texttospeech-parent
-    2.4.3
+    2.4.4
   
   
     
diff --git a/proto-google-cloud-texttospeech-v1beta1/pom.xml b/proto-google-cloud-texttospeech-v1beta1/pom.xml
index 7a693043..a106b7e4 100644
--- a/proto-google-cloud-texttospeech-v1beta1/pom.xml
+++ b/proto-google-cloud-texttospeech-v1beta1/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   proto-google-cloud-texttospeech-v1beta1
-  0.93.3
+  0.93.4
   proto-google-cloud-texttospeech-v1beta1
   PROTO library for proto-google-cloud-texttospeech-v1beta1
   
     com.google.cloud
     google-cloud-texttospeech-parent
-    2.4.3
+    2.4.4
   
   
     
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 8973f33d..8380b678 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -28,7 +28,7 @@
     
       com.google.cloud
       google-cloud-texttospeech
-      2.4.3
+      2.4.4
     
     
     
diff --git a/samples/snippets/generated/com/google/cloud/texttospeech/v1/stub/texttospeechstubsettings/listvoices/SyncListVoices.java b/samples/snippets/generated/com/google/cloud/texttospeech/v1/stub/texttospeechstubsettings/listvoices/SyncListVoices.java
index d00d45cd..38564591 100644
--- a/samples/snippets/generated/com/google/cloud/texttospeech/v1/stub/texttospeechstubsettings/listvoices/SyncListVoices.java
+++ b/samples/snippets/generated/com/google/cloud/texttospeech/v1/stub/texttospeechstubsettings/listvoices/SyncListVoices.java
@@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListVoices() 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
     TextToSpeechStubSettings.Builder textToSpeechSettingsBuilder =
         TextToSpeechStubSettings.newBuilder();
     textToSpeechSettingsBuilder
         .listVoicesSettings()
         .setRetrySettings(
-            textToSpeechSettingsBuilder
-                .listVoicesSettings()
-                .getRetrySettings()
-                .toBuilder()
+            textToSpeechSettingsBuilder.listVoicesSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     TextToSpeechStubSettings textToSpeechSettings = textToSpeechSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/create/SyncCreateSetCredentialsProvider.java
index 044014d5..e8fff19e 100644
--- a/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/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
     TextToSpeechSettings textToSpeechSettings =
         TextToSpeechSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/create/SyncCreateSetCredentialsProvider1.java
index a39a792a..ffdb9fc5 100644
--- a/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/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
     TextToSpeechSettings textToSpeechSettings =
         TextToSpeechSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/create/SyncCreateSetEndpoint.java
index fedbd0d6..469edfd0 100644
--- a/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/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
     TextToSpeechSettings textToSpeechSettings =
         TextToSpeechSettings.newBuilder().setEndpoint(myEndpoint).build();
     TextToSpeechClient textToSpeechClient = TextToSpeechClient.create(textToSpeechSettings);
diff --git a/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/listvoices/AsyncListVoices.java b/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/listvoices/AsyncListVoices.java
index 0f3a4007..b4cbf584 100644
--- a/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/listvoices/AsyncListVoices.java
+++ b/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/listvoices/AsyncListVoices.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListVoices() 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 (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
       ListVoicesRequest request =
           ListVoicesRequest.newBuilder().setLanguageCode("languageCode-2092349083").build();
diff --git a/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/listvoices/SyncListVoices.java b/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/listvoices/SyncListVoices.java
index 3e34ca25..e11e8933 100644
--- a/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/listvoices/SyncListVoices.java
+++ b/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/listvoices/SyncListVoices.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListVoices() 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 (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
       ListVoicesRequest request =
           ListVoicesRequest.newBuilder().setLanguageCode("languageCode-2092349083").build();
diff --git a/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/listvoices/SyncListVoicesString.java b/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/listvoices/SyncListVoicesString.java
index 02ce237f..ba17ff32 100644
--- a/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/listvoices/SyncListVoicesString.java
+++ b/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/listvoices/SyncListVoicesString.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListVoicesString() 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 (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
       String languageCode = "languageCode-2092349083";
       ListVoicesResponse response = textToSpeechClient.listVoices(languageCode);
diff --git a/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/synthesizespeech/AsyncSynthesizeSpeech.java b/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/synthesizespeech/AsyncSynthesizeSpeech.java
index e15de8aa..1f7163bb 100644
--- a/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/synthesizespeech/AsyncSynthesizeSpeech.java
+++ b/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/synthesizespeech/AsyncSynthesizeSpeech.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSynthesizeSpeech() 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 (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
       SynthesizeSpeechRequest request =
           SynthesizeSpeechRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/synthesizespeech/SyncSynthesizeSpeech.java b/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/synthesizespeech/SyncSynthesizeSpeech.java
index 1d127eb3..7076daec 100644
--- a/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/synthesizespeech/SyncSynthesizeSpeech.java
+++ b/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/synthesizespeech/SyncSynthesizeSpeech.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSynthesizeSpeech() 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 (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
       SynthesizeSpeechRequest request =
           SynthesizeSpeechRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/synthesizespeech/SyncSynthesizeSpeechSynthesisinputVoiceselectionparamsAudioconfig.java b/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/synthesizespeech/SyncSynthesizeSpeechSynthesisinputVoiceselectionparamsAudioconfig.java
index f8044224..9253bf7d 100644
--- a/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/synthesizespeech/SyncSynthesizeSpeechSynthesisinputVoiceselectionparamsAudioconfig.java
+++ b/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechclient/synthesizespeech/SyncSynthesizeSpeechSynthesisinputVoiceselectionparamsAudioconfig.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
 
   public static void syncSynthesizeSpeechSynthesisinputVoiceselectionparamsAudioconfig()
       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 (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
       SynthesisInput input = SynthesisInput.newBuilder().build();
       VoiceSelectionParams voice = VoiceSelectionParams.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechsettings/listvoices/SyncListVoices.java b/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechsettings/listvoices/SyncListVoices.java
index c81b5f3e..daa8f85c 100644
--- a/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechsettings/listvoices/SyncListVoices.java
+++ b/samples/snippets/generated/com/google/cloud/texttospeech/v1/texttospeechsettings/listvoices/SyncListVoices.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListVoices() 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
     TextToSpeechSettings.Builder textToSpeechSettingsBuilder = TextToSpeechSettings.newBuilder();
     textToSpeechSettingsBuilder
         .listVoicesSettings()
         .setRetrySettings(
-            textToSpeechSettingsBuilder
-                .listVoicesSettings()
-                .getRetrySettings()
-                .toBuilder()
+            textToSpeechSettingsBuilder.listVoicesSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     TextToSpeechSettings textToSpeechSettings = textToSpeechSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/stub/texttospeechstubsettings/listvoices/SyncListVoices.java b/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/stub/texttospeechstubsettings/listvoices/SyncListVoices.java
index a9d70ec5..7dae7066 100644
--- a/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/stub/texttospeechstubsettings/listvoices/SyncListVoices.java
+++ b/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/stub/texttospeechstubsettings/listvoices/SyncListVoices.java
@@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListVoices() 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
     TextToSpeechStubSettings.Builder textToSpeechSettingsBuilder =
         TextToSpeechStubSettings.newBuilder();
     textToSpeechSettingsBuilder
         .listVoicesSettings()
         .setRetrySettings(
-            textToSpeechSettingsBuilder
-                .listVoicesSettings()
-                .getRetrySettings()
-                .toBuilder()
+            textToSpeechSettingsBuilder.listVoicesSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     TextToSpeechStubSettings textToSpeechSettings = textToSpeechSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/create/SyncCreateSetCredentialsProvider.java
index 8d96df85..adca0528 100644
--- a/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/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
     TextToSpeechSettings textToSpeechSettings =
         TextToSpeechSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/create/SyncCreateSetCredentialsProvider1.java
index fd63bdd7..a988d2d1 100644
--- a/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/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
     TextToSpeechSettings textToSpeechSettings =
         TextToSpeechSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/create/SyncCreateSetEndpoint.java
index 41869be5..c716c51b 100644
--- a/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/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
     TextToSpeechSettings textToSpeechSettings =
         TextToSpeechSettings.newBuilder().setEndpoint(myEndpoint).build();
     TextToSpeechClient textToSpeechClient = TextToSpeechClient.create(textToSpeechSettings);
diff --git a/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/listvoices/AsyncListVoices.java b/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/listvoices/AsyncListVoices.java
index abc0e5a3..623607c8 100644
--- a/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/listvoices/AsyncListVoices.java
+++ b/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/listvoices/AsyncListVoices.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListVoices() 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 (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
       ListVoicesRequest request =
           ListVoicesRequest.newBuilder().setLanguageCode("languageCode-2092349083").build();
diff --git a/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/listvoices/SyncListVoices.java b/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/listvoices/SyncListVoices.java
index 20c17769..00bcb00b 100644
--- a/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/listvoices/SyncListVoices.java
+++ b/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/listvoices/SyncListVoices.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListVoices() 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 (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
       ListVoicesRequest request =
           ListVoicesRequest.newBuilder().setLanguageCode("languageCode-2092349083").build();
diff --git a/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/listvoices/SyncListVoicesString.java b/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/listvoices/SyncListVoicesString.java
index 778e2d8c..11ef2800 100644
--- a/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/listvoices/SyncListVoicesString.java
+++ b/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/listvoices/SyncListVoicesString.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListVoicesString() 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 (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
       String languageCode = "languageCode-2092349083";
       ListVoicesResponse response = textToSpeechClient.listVoices(languageCode);
diff --git a/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/synthesizespeech/AsyncSynthesizeSpeech.java b/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/synthesizespeech/AsyncSynthesizeSpeech.java
index 29cb05af..62940ed0 100644
--- a/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/synthesizespeech/AsyncSynthesizeSpeech.java
+++ b/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/synthesizespeech/AsyncSynthesizeSpeech.java
@@ -33,8 +33,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSynthesizeSpeech() 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 (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
       SynthesizeSpeechRequest request =
           SynthesizeSpeechRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/synthesizespeech/SyncSynthesizeSpeech.java b/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/synthesizespeech/SyncSynthesizeSpeech.java
index 70d1c39a..6599f282 100644
--- a/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/synthesizespeech/SyncSynthesizeSpeech.java
+++ b/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/synthesizespeech/SyncSynthesizeSpeech.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSynthesizeSpeech() 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 (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
       SynthesizeSpeechRequest request =
           SynthesizeSpeechRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/synthesizespeech/SyncSynthesizeSpeechSynthesisinputVoiceselectionparamsAudioconfig.java b/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/synthesizespeech/SyncSynthesizeSpeechSynthesisinputVoiceselectionparamsAudioconfig.java
index 476647bb..d132c1ac 100644
--- a/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/synthesizespeech/SyncSynthesizeSpeechSynthesisinputVoiceselectionparamsAudioconfig.java
+++ b/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechclient/synthesizespeech/SyncSynthesizeSpeechSynthesisinputVoiceselectionparamsAudioconfig.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
 
   public static void syncSynthesizeSpeechSynthesisinputVoiceselectionparamsAudioconfig()
       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 (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
       SynthesisInput input = SynthesisInput.newBuilder().build();
       VoiceSelectionParams voice = VoiceSelectionParams.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechsettings/listvoices/SyncListVoices.java b/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechsettings/listvoices/SyncListVoices.java
index 21c84d04..6642548f 100644
--- a/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechsettings/listvoices/SyncListVoices.java
+++ b/samples/snippets/generated/com/google/cloud/texttospeech/v1beta1/texttospeechsettings/listvoices/SyncListVoices.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListVoices() 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
     TextToSpeechSettings.Builder textToSpeechSettingsBuilder = TextToSpeechSettings.newBuilder();
     textToSpeechSettingsBuilder
         .listVoicesSettings()
         .setRetrySettings(
-            textToSpeechSettingsBuilder
-                .listVoicesSettings()
-                .getRetrySettings()
-                .toBuilder()
+            textToSpeechSettingsBuilder.listVoicesSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     TextToSpeechSettings textToSpeechSettings = textToSpeechSettingsBuilder.build();
diff --git a/versions.txt b/versions.txt
index 0e367f56..95ad7c75 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,8 +1,8 @@
 # Format:
 # module:released-version:current-version
 
-google-cloud-texttospeech:2.4.3:2.4.3
-grpc-google-cloud-texttospeech-v1beta1:0.93.3:0.93.3
-grpc-google-cloud-texttospeech-v1:2.4.3:2.4.3
-proto-google-cloud-texttospeech-v1:2.4.3:2.4.3
-proto-google-cloud-texttospeech-v1beta1:0.93.3:0.93.3
+google-cloud-texttospeech:2.4.4:2.4.4
+grpc-google-cloud-texttospeech-v1beta1:0.93.4:0.93.4
+grpc-google-cloud-texttospeech-v1:2.4.4:2.4.4
+proto-google-cloud-texttospeech-v1:2.4.4:2.4.4
+proto-google-cloud-texttospeech-v1beta1:0.93.4:0.93.4