Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, gener…
Browse files Browse the repository at this point in the history
…ator_java versions (#685)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 472750037

Source-Link: googleapis/googleapis@88f2ea3

Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Sep 8, 2022
1 parent 180adb7 commit 3865b68
Show file tree
Hide file tree
Showing 10 changed files with 80 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@
* calls that map to API methods. Sample code to get started:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying 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()) {
* BidiStream<StreamingTranslateSpeechRequest, StreamingTranslateSpeechResponse> bidiStream =
Expand Down Expand Up @@ -78,8 +81,11 @@
* <p>To customize credentials:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require 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))
Expand All @@ -91,8 +97,11 @@
* <p>To customize the endpoint:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require 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 =
Expand All @@ -103,8 +112,11 @@
* the wire:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require 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(
Expand Down Expand Up @@ -177,8 +189,11 @@ public SpeechTranslationServiceStub getStub() {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying 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()) {
* BidiStream<StreamingTranslateSpeechRequest, StreamingTranslateSpeechResponse> bidiStream =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@
* <p>For example, to set the total timeout of streamingTranslateSpeech to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@
* <p>Sample for SpeechTranslationServiceClient:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying 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()) {
* BidiStream<StreamingTranslateSpeechRequest, StreamingTranslateSpeechResponse> bidiStream =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,11 @@
* <p>For example, to set the total timeout of streamingTranslateSpeech to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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))
Expand All @@ -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]
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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(
Expand All @@ -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]
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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()) {
BidiStream<StreamingTranslateSpeechRequest, StreamingTranslateSpeechResponse> bidiStream =
Expand All @@ -45,5 +47,4 @@ public static void asyncStreamingTranslateSpeech() throws Exception {
}
}
}
// [END
// mediatranslation_v1beta1_generated_speechtranslationserviceclient_streamingtranslatespeech_async]
// [END mediatranslation_v1beta1_generated_speechtranslationserviceclient_streamingtranslatespeech_async]
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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
Expand All @@ -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]
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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
Expand All @@ -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]

0 comments on commit 3865b68

Please sign in to comment.