From 18e80b5a3dd5322d1d1615135da9e2b3a9d8b9a9 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] 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/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java index 39b4f486b40b..575bff7c15ac 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java +++ b/java-speech/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 UnaryCallablecreatePhraseSetCal * 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 UnaryCallablegetPhraseSetCallable( * 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 UnaryCallablelistPhra * 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 UnaryCallableupdatePhraseSetCal * 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 UnaryCallabledeletePhraseSetCallabl * 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 UnaryCallablecreateCustomCl * 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 UnaryCallablegetCustomClassCal * 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 UnaryCallableupdateCustomCl * 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/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java index 950ea3f3adef..32b9b4b83f47 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java +++ b/java-speech/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/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java index f8b084a9375c..e3b2dd0af331 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java +++ b/java-speech/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 UnaryCallablerecognizeCallabl * 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 UnaryCallablerecognizeCallabl * 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 UnaryCallablerecognizeCallabl * 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 UnaryCallablerecognizeCallabl * 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 UnaryCallablerecognizeCallabl * 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()) { * BidiStreambidiStream = * speechClient.streamingRecognizeCallable().call(); diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java index 8dcb2260a999..ca66acbea098 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java +++ b/java-speech/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/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java index 37312786bf27..65f64943f1e4 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java +++ b/java-speech/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/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java index 8bff48218143..876ab1e3a393 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java +++ b/java-speech/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/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java index 57b6354cba9a..acc891cc94de 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java +++ b/java-speech/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/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java index e4a54b26b1b1..8432fb0b5acb 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java +++ b/java-speech/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/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java index a60e60640167..dff8b9126236 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java +++ b/java-speech/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/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java index 8c37f7e1fdff..99136ef2cd56 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java +++ b/java-speech/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 UnaryCallablecreatePhraseSetCal * 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 UnaryCallablegetPhraseSetCallable( * 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 UnaryCallablelistPhra * 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 UnaryCallableupdatePhraseSetCal * 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 UnaryCallabledeletePhraseSetCallabl * 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 UnaryCallablecreateCustomCl * 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 UnaryCallablegetCustomClassCal * 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 UnaryCallableupdateCustomCl * 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/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java index 65f40a764e40..17f556ab93eb 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java +++ b/java-speech/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/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java index 91472ad9734d..ee1bf00d4884 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java +++ b/java-speech/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 UnaryCallablerecognizeCallabl * 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 UnaryCallablerecognizeCallabl * 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 UnaryCallablerecognizeCallabl * 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 UnaryCallablerecognizeCallabl * 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 UnaryCallablerecognizeCallabl * 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()) { * BidiStreambidiStream = * speechClient.streamingRecognizeCallable().call(); diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java index 57cc1b81f77a..53498fa31a7e 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java +++ b/java-speech/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/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java index 53c929db98dd..e1d58a669454 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java +++ b/java-speech/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/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java index 4b78381bca30..cc2dc2efee2b 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java +++ b/java-speech/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/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java index 1aae35000f9a..0f5e1743cfdb 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java +++ b/java-speech/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/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java index 734bccaaa13a..ea83c8d98b21 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java +++ b/java-speech/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/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java index 0dd3efd4c814..c8187b4bd3b9 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider.java index 18da537a9e9d..b2bcdf720b7f 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java index 2300cfecb0f4..1bab8005d019 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetEndpoint.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetEndpoint.java index 0f1b869159d2..bd27d2fcec3c 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetEndpoint.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java index 30822996f7c4..40bd825d213d 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClass.java index f9d090cbe86c..3d8f3f2c0f31 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClass.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java index c7bd66d093c2..2203cbf4e00f 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java index c60dc243aa37..4ba5f80f6f6d 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java index 3478c5b4113b..52d59f186ef3 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSet.java index 3409c0f37474..6512403a09dd 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSet.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java index 77c352b8f4fa..8cbc5627275c 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java index 25ae14bbe0f3..ca700e324514 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java index dd2e0969b512..0d0fd62e6a07 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java index c98d9b0477f5..86e20619366a 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java index 09e3de09a4cc..a40dfb49e8ce 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java index 3642c68fca52..784c891bc532 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java index f9ef90b6a95a..a78c39816344 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java index 9f56b18351f9..367673ef3c2b 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java index 9675f36ace3e..c3c1427d133d 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java index 75d4255a72fd..bf8bb5a391a5 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/AsyncGetCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/AsyncGetCustomClass.java index bcaf36835b72..cd328b12ee82 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/AsyncGetCustomClass.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClass.java index 94460f74eab5..191aa960d608 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClass.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java index 5b543ef03a39..a233a5292c83 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassString.java index 2bc7ede85818..47c1cd4352f9 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassString.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/AsyncGetPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/AsyncGetPhraseSet.java index e97863c3e675..20bfd9e54da1 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/AsyncGetPhraseSet.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSet.java index 0e64d7c69d99..9399c9f20d73 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSet.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java index d47d570124ec..eb9726fb2052 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetString.java index ac4a08cc227b..67068562983b 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetString.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java index 3c694cce6f85..8fd934090797 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java index fd2e3c850e1b..34e934e7a73c 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClasses.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClasses.java index 3c4d128925d9..09c326f4d220 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClasses.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java index d17876bf6d96..5289bee23bb5 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java index 786bf34d642e..42bba433c3dc 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSet.java index f9d8d48a2116..fe7003398fac 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSet.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java index 1aa353fdf6c1..e9b49a546e26 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSet.java index ad30818cbc34..aaac2ba57d8b 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSet.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java index 8ebced751480..9948db0c2fa5 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetString.java index 0a67577939b0..abfbf98740be 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetString.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java index b758b5ff146b..5c89002514c1 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java index dfb766bd2514..a1535b85a5f7 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java index b60d79d410bb..faa4757595d1 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java index d1bcf662f312..1c8c11ab45e9 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java index 66e5d7ffe401..5a7c4c3357cd 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java index f15db63de827..939e3c359d0f 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java index 2822e587343a..af61f9983d36 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider.java index 594fba98ee57..4d001abc7c00 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider1.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider1.java index f4163009e859..5057116dfad9 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetEndpoint.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetEndpoint.java index 39c177cfed89..dffc532af6ee 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetEndpoint.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java index 98babdc9d8e6..4674a8bf43b4 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java index b8979c467bc4..e68f8d9dec30 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java index 6cfb4326e626..17f2879d8711 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java index 34b76edde850..04feacdf3446 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/AsyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/AsyncRecognize.java index f46fdbf078c2..b905afd8134c 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/AsyncRecognize.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognize.java index 0b292ea22110..77ea09fdcb29 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognize.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java index 0fd7928d9dbd..886ab8017225 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/streamingrecognize/AsyncStreamingRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/streamingrecognize/AsyncStreamingRecognize.java index d2ac554e0a0a..99388791a7a3 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/streamingrecognize/AsyncStreamingRecognize.java +++ b/java-speech/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()) { BidiStreambidiStream = speechClient.streamingRecognizeCallable().call(); diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java index 479121da3614..6c7ac4c9601e 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java index 841517611c18..ba671b79bc53 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java index 15f526f49feb..af6790d8c8bf 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider.java index e1dc30461590..bd56643098c5 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java index 9a2da57cd40d..40dc533c48fd 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetEndpoint.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetEndpoint.java index d9d26ebfcd39..7e99d78cb982 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetEndpoint.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java index 3a8bcaccf232..1a57cc82156b 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClass.java index 5704d71d08b3..2be35900c160 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClass.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java index 59f8878427ce..8ed1a4df7997 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java index 8c959c2656fd..590bb5f11c91 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java index 91219418e3b7..57803528152b 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSet.java index 501dbda50e21..c2f19902a694 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSet.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java index ba61fbbc010f..112bc429067a 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java index 08e33dd35075..affa84e49e19 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java index 7e64b2f25a1a..dc0d07516a46 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java index 8f7babd660e4..5df45e9c584a 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java index f7fd054e1364..72435684800e 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java index 91157db0ff2e..7e7156e465d0 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java index 8696865e24e0..1f2090dd100e 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java index f88a6fd3174b..ad1e94c7c5fd 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java index efd68e0ae6d9..8ce8766e5751 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java index 7266f031326d..b4f5722e1e10 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/AsyncGetCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/AsyncGetCustomClass.java index aaf48b8dabff..2ed74756b1bb 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/AsyncGetCustomClass.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClass.java index 4709ffb1b6e8..c64a6bef5189 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClass.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java index 950d377d8a1d..a755bb8d2a11 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassString.java index 528e779ba0c7..e4b6e750001c 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassString.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/AsyncGetPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/AsyncGetPhraseSet.java index 7a26330fa8a5..7c39172024d7 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/AsyncGetPhraseSet.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSet.java index 20118bc7306b..5a74538b1781 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSet.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java index a1942ecd8d58..f441e0cb1feb 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetString.java index c70b6dd96b1d..19b5e9a5e0f1 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetString.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java index 307143202a7f..064a5e84c973 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java index c1d6e465d1b0..8c3746eb2d89 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClasses.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClasses.java index d7035779159d..e27771c35830 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClasses.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java index f0d125c16d44..c3713e7649d1 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java index 82f22addfa20..b562359e71d1 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSet.java index 625206cd14de..ddd8ac9c5a6e 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSet.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java index 46ee4673a591..fdce15bfc4e7 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSet.java index a2e415197b6b..aece2277d57d 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSet.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java index 71a53d2441c3..c420799768e8 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetString.java index a356e65c18b2..19588c874862 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetString.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java index 2df83bb8e71c..eff9cbd66cc1 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java index 84cc5ba9e406..5639710d7d67 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java index ddaa53113a3b..ca713b4d0f53 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java index 1e7794dcefa5..0aaa9f205846 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java index 9bd3896166d1..0d825ca2e2d5 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java index 0d90c1c72310..f28127f9920c 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java index 980b5fb83e94..c8667aa60ea9 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider.java index ece01cd0a8d8..465bcd69e24b 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider1.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider1.java index 593286a347bb..456dd01a4ba0 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetEndpoint.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetEndpoint.java index 645f05da522e..2108d127e850 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetEndpoint.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java index 7449660ddc88..6fbb74bd893a 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java index caa207ae4e2a..832a218aceb8 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java index 5ae28afd09eb..5884a7620500 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java index 7e0ad5198b58..1ddada3bfb44 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/AsyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/AsyncRecognize.java index da119711ccd3..c99be3b3ebdd 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/AsyncRecognize.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognize.java index 110a6e443fef..3491c66b136a 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognize.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java index 3302e5fa18d0..02951bb47eb3 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/streamingrecognize/AsyncStreamingRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/streamingrecognize/AsyncStreamingRecognize.java index 8d3d9cf57805..b910bb2bd363 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/streamingrecognize/AsyncStreamingRecognize.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java index d12a3203923a..7611b369a133 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java index 6f76a27b57d1..baa910f35a95 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java +++ b/java-speech/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/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java index 153aea7508c3..e045c1b25446 100644 --- a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java +++ b/java-speech/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();