Skip to content

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: googleapis/googleapis-gen@230a558
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9
  • Loading branch information
gcf-owl-bot[bot] authored and averikitsch committed Nov 4, 2022
1 parent f1ac372 commit cf3c024
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 32 deletions.
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 cf3c024

Please sign in to comment.