From 3865b68e102ad08bc895b8c09d2f557f76b9adbf Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 8 Sep 2022 20:40:34 +0000 Subject: [PATCH] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#685) - [ ] 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 --- .../SpeechTranslationServiceClient.java | 35 +++++++++++++------ .../SpeechTranslationServiceSettings.java | 7 ++-- .../v1beta1/package-info.java | 7 ++-- .../SpeechTranslationServiceStubSettings.java | 7 ++-- .../SyncCreateSetCredentialsProvider.java | 13 +++---- .../SyncCreateSetCredentialsProvider1.java | 13 +++---- .../create/SyncCreateSetEndpoint.java | 7 ++-- .../AsyncStreamingTranslateSpeech.java | 13 +++---- .../SyncStreamingTranslateSpeech.java | 13 +++---- .../SyncStreamingTranslateSpeech.java | 13 +++---- 10 files changed, 80 insertions(+), 48 deletions(-) diff --git a/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceClient.java b/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceClient.java index 10b6dd3d..ec37e77f 100644 --- a/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceClient.java +++ b/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceClient.java @@ -33,8 +33,11 @@ * calls that map to API methods. Sample code to get started: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SpeechTranslationServiceClient speechTranslationServiceClient = * SpeechTranslationServiceClient.create()) { * BidiStreambidiStream = @@ -78,8 +81,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 * SpeechTranslationServiceSettings speechTranslationServiceSettings = * SpeechTranslationServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -91,8 +97,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 * SpeechTranslationServiceSettings speechTranslationServiceSettings = * SpeechTranslationServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * SpeechTranslationServiceClient speechTranslationServiceClient = @@ -103,8 +112,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 * SpeechTranslationServiceSettings speechTranslationServiceSettings = * SpeechTranslationServiceSettings.newBuilder() * .setTransportChannelProvider( @@ -177,8 +189,11 @@ public SpeechTranslationServiceStub 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 (SpeechTranslationServiceClient speechTranslationServiceClient = * SpeechTranslationServiceClient.create()) { * BidiStreambidiStream = diff --git a/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceSettings.java b/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceSettings.java index 4e5fc6ff..6a500698 100644 --- a/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceSettings.java +++ b/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceSettings.java @@ -52,8 +52,11 @@ * For example, to set the total timeout of streamingTranslateSpeech 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 * SpeechTranslationServiceSettings.Builder speechTranslationServiceSettingsBuilder = * SpeechTranslationServiceSettings.newBuilder(); * speechTranslationServiceSettingsBuilder diff --git a/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/package-info.java b/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/package-info.java index 2f13c286..3c7bf6e6 100644 --- a/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/package-info.java +++ b/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/package-info.java @@ -24,8 +24,11 @@ *Sample for SpeechTranslationServiceClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SpeechTranslationServiceClient speechTranslationServiceClient = * SpeechTranslationServiceClient.create()) { * BidiStreambidiStream = diff --git a/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/stub/SpeechTranslationServiceStubSettings.java b/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/stub/SpeechTranslationServiceStubSettings.java index 8bd813b0..da31d6e7 100644 --- a/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/stub/SpeechTranslationServiceStubSettings.java +++ b/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/stub/SpeechTranslationServiceStubSettings.java @@ -65,8 +65,11 @@ * For example, to set the total timeout of streamingTranslateSpeech 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 * SpeechTranslationServiceStubSettings.Builder speechTranslationServiceSettingsBuilder = * SpeechTranslationServiceStubSettings.newBuilder(); * speechTranslationServiceSettingsBuilder diff --git a/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/create/SyncCreateSetCredentialsProvider.java index e61cf285..22ded9e9 100644 --- a/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -16,8 +16,7 @@ package com.google.cloud.mediatranslation.v1beta1.samples; -// [START -// mediatranslation_v1beta1_generated_speechtranslationserviceclient_create_setcredentialsprovider_sync] +// [START mediatranslation_v1beta1_generated_speechtranslationserviceclient_create_setcredentialsprovider_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.mediatranslation.v1beta1.SpeechTranslationServiceClient; import com.google.cloud.mediatranslation.v1beta1.SpeechTranslationServiceSettings; @@ -30,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 SpeechTranslationServiceSettings speechTranslationServiceSettings = SpeechTranslationServiceSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -40,5 +42,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception { SpeechTranslationServiceClient.create(speechTranslationServiceSettings); } } -// [END -// mediatranslation_v1beta1_generated_speechtranslationserviceclient_create_setcredentialsprovider_sync] +// [END mediatranslation_v1beta1_generated_speechtranslationserviceclient_create_setcredentialsprovider_sync] diff --git a/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/create/SyncCreateSetCredentialsProvider1.java index 062fbaaa..6d70644b 100644 --- a/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -16,8 +16,7 @@ package com.google.cloud.mediatranslation.v1beta1.samples; -// [START -// mediatranslation_v1beta1_generated_speechtranslationserviceclient_create_setcredentialsprovider1_sync] +// [START mediatranslation_v1beta1_generated_speechtranslationserviceclient_create_setcredentialsprovider1_sync] import com.google.cloud.mediatranslation.v1beta1.SpeechTranslationServiceClient; import com.google.cloud.mediatranslation.v1beta1.SpeechTranslationServiceSettings; @@ -28,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 SpeechTranslationServiceSettings speechTranslationServiceSettings = SpeechTranslationServiceSettings.newBuilder() .setTransportChannelProvider( @@ -39,5 +41,4 @@ public static void syncCreateSetCredentialsProvider1() throws Exception { SpeechTranslationServiceClient.create(speechTranslationServiceSettings); } } -// [END -// mediatranslation_v1beta1_generated_speechtranslationserviceclient_create_setcredentialsprovider1_sync] +// [END mediatranslation_v1beta1_generated_speechtranslationserviceclient_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/create/SyncCreateSetEndpoint.java index ac22aa1e..f83591c0 100644 --- a/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/create/SyncCreateSetEndpoint.java +++ b/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/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 SpeechTranslationServiceSettings speechTranslationServiceSettings = SpeechTranslationServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); SpeechTranslationServiceClient speechTranslationServiceClient = diff --git a/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/streamingtranslatespeech/AsyncStreamingTranslateSpeech.java b/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/streamingtranslatespeech/AsyncStreamingTranslateSpeech.java index da6e7618..308965cc 100644 --- a/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/streamingtranslatespeech/AsyncStreamingTranslateSpeech.java +++ b/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationserviceclient/streamingtranslatespeech/AsyncStreamingTranslateSpeech.java @@ -16,8 +16,7 @@ package com.google.cloud.mediatranslation.v1beta1.samples; -// [START -// mediatranslation_v1beta1_generated_speechtranslationserviceclient_streamingtranslatespeech_async] +// [START mediatranslation_v1beta1_generated_speechtranslationserviceclient_streamingtranslatespeech_async] import com.google.api.gax.rpc.BidiStream; import com.google.cloud.mediatranslation.v1beta1.SpeechTranslationServiceClient; import com.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechRequest; @@ -30,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncStreamingTranslateSpeech() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (SpeechTranslationServiceClient speechTranslationServiceClient = SpeechTranslationServiceClient.create()) { BidiStreambidiStream = @@ -45,5 +47,4 @@ public static void asyncStreamingTranslateSpeech() throws Exception { } } } -// [END -// mediatranslation_v1beta1_generated_speechtranslationserviceclient_streamingtranslatespeech_async] +// [END mediatranslation_v1beta1_generated_speechtranslationserviceclient_streamingtranslatespeech_async] diff --git a/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationservicesettings/streamingtranslatespeech/SyncStreamingTranslateSpeech.java b/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationservicesettings/streamingtranslatespeech/SyncStreamingTranslateSpeech.java index 5bcffe35..e6be04a9 100644 --- a/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationservicesettings/streamingtranslatespeech/SyncStreamingTranslateSpeech.java +++ b/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/speechtranslationservicesettings/streamingtranslatespeech/SyncStreamingTranslateSpeech.java @@ -16,8 +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; @@ -28,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncStreamingTranslateSpeech() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require 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.Builder speechTranslationServiceSettingsBuilder = SpeechTranslationServiceSettings.newBuilder(); speechTranslationServiceSettingsBuilder @@ -45,5 +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/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/stub/speechtranslationservicestubsettings/streamingtranslatespeech/SyncStreamingTranslateSpeech.java b/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/stub/speechtranslationservicestubsettings/streamingtranslatespeech/SyncStreamingTranslateSpeech.java index 158675ee..98b7fb3d 100644 --- a/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/stub/speechtranslationservicestubsettings/streamingtranslatespeech/SyncStreamingTranslateSpeech.java +++ b/samples/snippets/generated/com/google/cloud/mediatranslation/v1beta1/stub/speechtranslationservicestubsettings/streamingtranslatespeech/SyncStreamingTranslateSpeech.java @@ -16,8 +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; @@ -28,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncStreamingTranslateSpeech() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library SpeechTranslationServiceStubSettings.Builder speechTranslationServiceSettingsBuilder = SpeechTranslationServiceStubSettings.newBuilder(); speechTranslationServiceSettingsBuilder @@ -45,5 +47,4 @@ public static void syncStreamingTranslateSpeech() throws Exception { speechTranslationServiceSettingsBuilder.build(); } } -// [END -// mediatranslation_v1beta1_generated_speechtranslationservicestubsettings_streamingtranslatespeech_sync] +// [END mediatranslation_v1beta1_generated_speechtranslationservicestubsettings_streamingtranslatespeech_sync]