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 (#735)

- [ ] 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 9, 2022
1 parent e7416ef commit 62eb6ab
Show file tree
Hide file tree
Showing 32 changed files with 252 additions and 130 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,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 (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
* String languageCode = "languageCode-2092349083";
* ListVoicesResponse response = textToSpeechClient.listVoices(languageCode);
Expand Down Expand Up @@ -69,8 +72,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
* TextToSpeechSettings textToSpeechSettings =
* TextToSpeechSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
Expand All @@ -81,8 +87,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
* TextToSpeechSettings textToSpeechSettings =
* TextToSpeechSettings.newBuilder().setEndpoint(myEndpoint).build();
* TextToSpeechClient textToSpeechClient = TextToSpeechClient.create(textToSpeechSettings);
Expand All @@ -92,8 +101,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
* TextToSpeechSettings textToSpeechSettings =
* TextToSpeechSettings.newBuilder()
* .setTransportChannelProvider(
Expand Down Expand Up @@ -160,8 +172,11 @@ public TextToSpeechStub 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 (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
* String languageCode = "languageCode-2092349083";
* ListVoicesResponse response = textToSpeechClient.listVoices(languageCode);
Expand Down Expand Up @@ -189,8 +204,11 @@ public final ListVoicesResponse listVoices(String languageCode) {
* <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 (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
* ListVoicesRequest request =
* ListVoicesRequest.newBuilder().setLanguageCode("languageCode-2092349083").build();
Expand All @@ -212,8 +230,11 @@ public final ListVoicesResponse listVoices(ListVoicesRequest request) {
* <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 (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
* ListVoicesRequest request =
* ListVoicesRequest.newBuilder().setLanguageCode("languageCode-2092349083").build();
Expand All @@ -235,8 +256,11 @@ public final UnaryCallable<ListVoicesRequest, ListVoicesResponse> listVoicesCall
* <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 (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
* SynthesisInput input = SynthesisInput.newBuilder().build();
* VoiceSelectionParams voice = VoiceSelectionParams.newBuilder().build();
Expand Down Expand Up @@ -269,8 +293,11 @@ public final SynthesizeSpeechResponse synthesizeSpeech(
* <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 (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
* SynthesizeSpeechRequest request =
* SynthesizeSpeechRequest.newBuilder()
Expand All @@ -296,8 +323,11 @@ public final SynthesizeSpeechResponse synthesizeSpeech(SynthesizeSpeechRequest r
* <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 (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
* SynthesizeSpeechRequest request =
* SynthesizeSpeechRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@
* <p>For example, to set the total timeout of listVoices 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
* TextToSpeechSettings.Builder textToSpeechSettingsBuilder = TextToSpeechSettings.newBuilder();
* textToSpeechSettingsBuilder
* .listVoicesSettings()
* .setRetrySettings(
* textToSpeechSettingsBuilder
* .listVoicesSettings()
* .getRetrySettings()
* .toBuilder()
* textToSpeechSettingsBuilder.listVoicesSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* TextToSpeechSettings textToSpeechSettings = textToSpeechSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@
* <p>Sample for TextToSpeechClient:
*
* <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 (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
* String languageCode = "languageCode-2092349083";
* ListVoicesResponse response = textToSpeechClient.listVoices(languageCode);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ public class HttpJsonTextToSpeechStub extends TextToSpeechStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<SynthesizeSpeechResponse>newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,17 @@
* <p>For example, to set the total timeout of listVoices 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
* TextToSpeechStubSettings.Builder textToSpeechSettingsBuilder =
* TextToSpeechStubSettings.newBuilder();
* textToSpeechSettingsBuilder
* .listVoicesSettings()
* .setRetrySettings(
* textToSpeechSettingsBuilder
* .listVoicesSettings()
* .getRetrySettings()
* .toBuilder()
* textToSpeechSettingsBuilder.listVoicesSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* TextToSpeechStubSettings textToSpeechSettings = textToSpeechSettingsBuilder.build();
Expand Down
Loading

0 comments on commit 62eb6ab

Please sign in to comment.