diff --git a/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceClient.java b/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceClient.java index ec37e77f7cf7..9ede6daba773 100644 --- a/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceClient.java +++ b/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceClient.java @@ -118,10 +118,7 @@ * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * SpeechTranslationServiceSettings speechTranslationServiceSettings = - * SpeechTranslationServiceSettings.newBuilder() - * .setTransportChannelProvider( - * SpeechTranslationServiceSettings.defaultHttpJsonTransportProviderBuilder().build()) - * .build(); + * SpeechTranslationServiceSettings.newHttpJsonBuilder().build(); * SpeechTranslationServiceClient speechTranslationServiceClient = * SpeechTranslationServiceClient.create(speechTranslationServiceSettings); * } diff --git a/java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/create/SyncCreateSetCredentialsProvider.java b/java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationservice/create/SyncCreateSetCredentialsProvider.java similarity index 89% rename from java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/create/SyncCreateSetCredentialsProvider.java rename to java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationservice/create/SyncCreateSetCredentialsProvider.java index 22ded9e9cc0b..0f381f9f62df 100644 --- a/java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationservice/create/SyncCreateSetCredentialsProvider.java @@ -16,7 +16,7 @@ package com.google.cloud.mediatranslation.v1beta1.samples; -// [START mediatranslation_v1beta1_generated_speechtranslationserviceclient_create_setcredentialsprovider_sync] +// [START mediatranslation_v1beta1_generated_SpeechTranslationService_Create_SetCredentialsProvider_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.mediatranslation.v1beta1.SpeechTranslationServiceClient; import com.google.cloud.mediatranslation.v1beta1.SpeechTranslationServiceSettings; @@ -42,4 +42,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception { SpeechTranslationServiceClient.create(speechTranslationServiceSettings); } } -// [END mediatranslation_v1beta1_generated_speechtranslationserviceclient_create_setcredentialsprovider_sync] +// [END mediatranslation_v1beta1_generated_SpeechTranslationService_Create_SetCredentialsProvider_sync] diff --git a/java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/create/SyncCreateSetCredentialsProvider1.java b/java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationservice/create/SyncCreateSetCredentialsProvider1.java similarity index 79% rename from java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/create/SyncCreateSetCredentialsProvider1.java rename to java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationservice/create/SyncCreateSetCredentialsProvider1.java index 6d70644bbbe5..0976589759f2 100644 --- a/java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationservice/create/SyncCreateSetCredentialsProvider1.java @@ -16,7 +16,7 @@ package com.google.cloud.mediatranslation.v1beta1.samples; -// [START mediatranslation_v1beta1_generated_speechtranslationserviceclient_create_setcredentialsprovider1_sync] +// [START mediatranslation_v1beta1_generated_SpeechTranslationService_Create_SetCredentialsProvider1_sync] import com.google.cloud.mediatranslation.v1beta1.SpeechTranslationServiceClient; import com.google.cloud.mediatranslation.v1beta1.SpeechTranslationServiceSettings; @@ -33,12 +33,9 @@ public static void syncCreateSetCredentialsProvider1() throws Exception { // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library SpeechTranslationServiceSettings speechTranslationServiceSettings = - SpeechTranslationServiceSettings.newBuilder() - .setTransportChannelProvider( - SpeechTranslationServiceSettings.defaultHttpJsonTransportProviderBuilder().build()) - .build(); + SpeechTranslationServiceSettings.newHttpJsonBuilder().build(); SpeechTranslationServiceClient speechTranslationServiceClient = SpeechTranslationServiceClient.create(speechTranslationServiceSettings); } } -// [END mediatranslation_v1beta1_generated_speechtranslationserviceclient_create_setcredentialsprovider1_sync] +// [END mediatranslation_v1beta1_generated_SpeechTranslationService_Create_SetCredentialsProvider1_sync] diff --git a/java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/create/SyncCreateSetEndpoint.java b/java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationservice/create/SyncCreateSetEndpoint.java similarity index 90% rename from java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/create/SyncCreateSetEndpoint.java rename to java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationservice/create/SyncCreateSetEndpoint.java index f83591c05b0c..64172800f1f5 100644 --- a/java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/create/SyncCreateSetEndpoint.java +++ b/java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationservice/create/SyncCreateSetEndpoint.java @@ -16,7 +16,7 @@ package com.google.cloud.mediatranslation.v1beta1.samples; -// [START mediatranslation_v1beta1_generated_speechtranslationserviceclient_create_setendpoint_sync] +// [START mediatranslation_v1beta1_generated_SpeechTranslationService_Create_SetEndpoint_sync] import com.google.cloud.mediatranslation.v1beta1.SpeechTranslationServiceClient; import com.google.cloud.mediatranslation.v1beta1.SpeechTranslationServiceSettings; import com.google.cloud.mediatranslation.v1beta1.myEndpoint; @@ -39,4 +39,4 @@ public static void syncCreateSetEndpoint() throws Exception { SpeechTranslationServiceClient.create(speechTranslationServiceSettings); } } -// [END mediatranslation_v1beta1_generated_speechtranslationserviceclient_create_setendpoint_sync] +// [END mediatranslation_v1beta1_generated_SpeechTranslationService_Create_SetEndpoint_sync] diff --git a/java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/streamingtranslatespeech/AsyncStreamingTranslateSpeech.java b/java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationservice/streamingtranslatespeech/AsyncStreamingTranslateSpeech.java similarity index 91% rename from java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/streamingtranslatespeech/AsyncStreamingTranslateSpeech.java rename to java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationservice/streamingtranslatespeech/AsyncStreamingTranslateSpeech.java index 308965ccef8b..bbb8d9c95922 100644 --- a/java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/streamingtranslatespeech/AsyncStreamingTranslateSpeech.java +++ b/java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationservice/streamingtranslatespeech/AsyncStreamingTranslateSpeech.java @@ -16,7 +16,7 @@ package com.google.cloud.mediatranslation.v1beta1.samples; -// [START mediatranslation_v1beta1_generated_speechtranslationserviceclient_streamingtranslatespeech_async] +// [START mediatranslation_v1beta1_generated_SpeechTranslationService_StreamingTranslateSpeech_async] import com.google.api.gax.rpc.BidiStream; import com.google.cloud.mediatranslation.v1beta1.SpeechTranslationServiceClient; import com.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechRequest; @@ -47,4 +47,4 @@ public static void asyncStreamingTranslateSpeech() throws Exception { } } } -// [END mediatranslation_v1beta1_generated_speechtranslationserviceclient_streamingtranslatespeech_async] +// [END mediatranslation_v1beta1_generated_SpeechTranslationService_StreamingTranslateSpeech_async] diff --git a/java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationservicesettings/streamingtranslatespeech/SyncStreamingTranslateSpeech.java b/java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationservicesettings/streamingtranslatespeech/SyncStreamingTranslateSpeech.java index e6be04a9f6aa..4a1dc9e89142 100644 --- a/java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationservicesettings/streamingtranslatespeech/SyncStreamingTranslateSpeech.java +++ b/java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationservicesettings/streamingtranslatespeech/SyncStreamingTranslateSpeech.java @@ -16,7 +16,7 @@ package com.google.cloud.mediatranslation.v1beta1.samples; -// [START mediatranslation_v1beta1_generated_speechtranslationservicesettings_streamingtranslatespeech_sync] +// [START mediatranslation_v1beta1_generated_SpeechTranslationServiceSettings_StreamingTranslateSpeech_sync] import com.google.cloud.mediatranslation.v1beta1.SpeechTranslationServiceSettings; import java.time.Duration; @@ -47,4 +47,4 @@ public static void syncStreamingTranslateSpeech() throws Exception { speechTranslationServiceSettingsBuilder.build(); } } -// [END mediatranslation_v1beta1_generated_speechtranslationservicesettings_streamingtranslatespeech_sync] +// [END mediatranslation_v1beta1_generated_SpeechTranslationServiceSettings_StreamingTranslateSpeech_sync] diff --git a/java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/stub/speechtranslationservicestubsettings/streamingtranslatespeech/SyncStreamingTranslateSpeech.java b/java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/stub/speechtranslationservicestubsettings/streamingtranslatespeech/SyncStreamingTranslateSpeech.java index 98b7fb3dc46c..2c789664b7d6 100644 --- a/java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/stub/speechtranslationservicestubsettings/streamingtranslatespeech/SyncStreamingTranslateSpeech.java +++ b/java-mediatranslation/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/stub/speechtranslationservicestubsettings/streamingtranslatespeech/SyncStreamingTranslateSpeech.java @@ -16,7 +16,7 @@ package com.google.cloud.mediatranslation.v1beta1.stub.samples; -// [START mediatranslation_v1beta1_generated_speechtranslationservicestubsettings_streamingtranslatespeech_sync] +// [START mediatranslation_v1beta1_generated_SpeechTranslationServiceStubSettings_StreamingTranslateSpeech_sync] import com.google.cloud.mediatranslation.v1beta1.stub.SpeechTranslationServiceStubSettings; import java.time.Duration; @@ -47,4 +47,4 @@ public static void syncStreamingTranslateSpeech() throws Exception { speechTranslationServiceSettingsBuilder.build(); } } -// [END mediatranslation_v1beta1_generated_speechtranslationservicestubsettings_streamingtranslatespeech_sync] +// [END mediatranslation_v1beta1_generated_SpeechTranslationServiceStubSettings_StreamingTranslateSpeech_sync]