Skip to content

Commit

Permalink
chore: Set rest_numeric_enums = False for all gapic rules explicitly (
Browse files Browse the repository at this point in the history
#811)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 485623855

Source-Link: https://github.com/googleapis/googleapis/commit/807125e7953e32535710924fe4bf0362ac93754d

Source-Link: https://github.com/googleapis/googleapis-gen/commit/c4ddd6d651da69658a4762c5eafff5cd8f0e25c5
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzRkZGQ2ZDY1MWRhNjk2NThhNDc2MmM1ZWFmZmY1Y2Q4ZjBlMjVjNSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Nov 8, 2022
1 parent c9228d9 commit 346bff6
Show file tree
Hide file tree
Showing 24 changed files with 48 additions and 64 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,7 @@
* // - 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(
* TextToSpeechSettings.defaultHttpJsonTransportProviderBuilder().build())
* .build();
* TextToSpeechSettings textToSpeechSettings = TextToSpeechSettings.newHttpJsonBuilder().build();
* TextToSpeechClient textToSpeechClient = TextToSpeechClient.create(textToSpeechSettings);
* }</pre>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,7 @@
* // - 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(
* TextToSpeechSettings.defaultHttpJsonTransportProviderBuilder().build())
* .build();
* TextToSpeechSettings textToSpeechSettings = TextToSpeechSettings.newHttpJsonBuilder().build();
* TextToSpeechClient textToSpeechClient = TextToSpeechClient.create(textToSpeechSettings);
* }</pre>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.texttospeech.v1.stub.samples;

// [START texttospeech_v1_generated_texttospeechstubsettings_listvoices_sync]
// [START texttospeech_v1_generated_TextToSpeechStubSettings_ListVoices_sync]
import com.google.cloud.texttospeech.v1.stub.TextToSpeechStubSettings;
import java.time.Duration;

Expand All @@ -43,4 +43,4 @@ public static void syncListVoices() throws Exception {
TextToSpeechStubSettings textToSpeechSettings = textToSpeechSettingsBuilder.build();
}
}
// [END texttospeech_v1_generated_texttospeechstubsettings_listvoices_sync]
// [END texttospeech_v1_generated_TextToSpeechStubSettings_ListVoices_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.texttospeech.v1.samples;

// [START texttospeech_v1_generated_texttospeechclient_create_setcredentialsprovider_sync]
// [START texttospeech_v1_generated_TextToSpeech_Create_SetCredentialsProvider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.texttospeech.v1.TextToSpeechClient;
import com.google.cloud.texttospeech.v1.TextToSpeechSettings;
Expand All @@ -41,4 +41,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
TextToSpeechClient textToSpeechClient = TextToSpeechClient.create(textToSpeechSettings);
}
}
// [END texttospeech_v1_generated_texttospeechclient_create_setcredentialsprovider_sync]
// [END texttospeech_v1_generated_TextToSpeech_Create_SetCredentialsProvider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.texttospeech.v1.samples;

// [START texttospeech_v1_generated_texttospeechclient_create_setcredentialsprovider1_sync]
// [START texttospeech_v1_generated_TextToSpeech_Create_SetCredentialsProvider1_sync]
import com.google.cloud.texttospeech.v1.TextToSpeechClient;
import com.google.cloud.texttospeech.v1.TextToSpeechSettings;

Expand All @@ -32,12 +32,8 @@ public static void syncCreateSetCredentialsProvider1() throws Exception {
// - 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(
TextToSpeechSettings.defaultHttpJsonTransportProviderBuilder().build())
.build();
TextToSpeechSettings textToSpeechSettings = TextToSpeechSettings.newHttpJsonBuilder().build();
TextToSpeechClient textToSpeechClient = TextToSpeechClient.create(textToSpeechSettings);
}
}
// [END texttospeech_v1_generated_texttospeechclient_create_setcredentialsprovider1_sync]
// [END texttospeech_v1_generated_TextToSpeech_Create_SetCredentialsProvider1_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.texttospeech.v1.samples;

// [START texttospeech_v1_generated_texttospeechclient_create_setendpoint_sync]
// [START texttospeech_v1_generated_TextToSpeech_Create_SetEndpoint_sync]
import com.google.cloud.texttospeech.v1.TextToSpeechClient;
import com.google.cloud.texttospeech.v1.TextToSpeechSettings;
import com.google.cloud.texttospeech.v1.myEndpoint;
Expand All @@ -38,4 +38,4 @@ public static void syncCreateSetEndpoint() throws Exception {
TextToSpeechClient textToSpeechClient = TextToSpeechClient.create(textToSpeechSettings);
}
}
// [END texttospeech_v1_generated_texttospeechclient_create_setendpoint_sync]
// [END texttospeech_v1_generated_TextToSpeech_Create_SetEndpoint_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.texttospeech.v1.samples;

// [START texttospeech_v1_generated_texttospeechclient_listvoices_async]
// [START texttospeech_v1_generated_TextToSpeech_ListVoices_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.texttospeech.v1.ListVoicesRequest;
import com.google.cloud.texttospeech.v1.ListVoicesResponse;
Expand Down Expand Up @@ -44,4 +44,4 @@ public static void asyncListVoices() throws Exception {
}
}
}
// [END texttospeech_v1_generated_texttospeechclient_listvoices_async]
// [END texttospeech_v1_generated_TextToSpeech_ListVoices_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.texttospeech.v1.samples;

// [START texttospeech_v1_generated_texttospeechclient_listvoices_sync]
// [START texttospeech_v1_generated_TextToSpeech_ListVoices_sync]
import com.google.cloud.texttospeech.v1.ListVoicesRequest;
import com.google.cloud.texttospeech.v1.ListVoicesResponse;
import com.google.cloud.texttospeech.v1.TextToSpeechClient;
Expand All @@ -40,4 +40,4 @@ public static void syncListVoices() throws Exception {
}
}
}
// [END texttospeech_v1_generated_texttospeechclient_listvoices_sync]
// [END texttospeech_v1_generated_TextToSpeech_ListVoices_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.texttospeech.v1.samples;

// [START texttospeech_v1_generated_texttospeechclient_listvoices_string_sync]
// [START texttospeech_v1_generated_TextToSpeech_ListVoices_String_sync]
import com.google.cloud.texttospeech.v1.ListVoicesResponse;
import com.google.cloud.texttospeech.v1.TextToSpeechClient;

Expand All @@ -38,4 +38,4 @@ public static void syncListVoicesString() throws Exception {
}
}
}
// [END texttospeech_v1_generated_texttospeechclient_listvoices_string_sync]
// [END texttospeech_v1_generated_TextToSpeech_ListVoices_String_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.texttospeech.v1.samples;

// [START texttospeech_v1_generated_texttospeechclient_synthesizespeech_async]
// [START texttospeech_v1_generated_TextToSpeech_SynthesizeSpeech_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.texttospeech.v1.AudioConfig;
import com.google.cloud.texttospeech.v1.SynthesisInput;
Expand Down Expand Up @@ -51,4 +51,4 @@ public static void asyncSynthesizeSpeech() throws Exception {
}
}
}
// [END texttospeech_v1_generated_texttospeechclient_synthesizespeech_async]
// [END texttospeech_v1_generated_TextToSpeech_SynthesizeSpeech_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.texttospeech.v1.samples;

// [START texttospeech_v1_generated_texttospeechclient_synthesizespeech_sync]
// [START texttospeech_v1_generated_TextToSpeech_SynthesizeSpeech_sync]
import com.google.cloud.texttospeech.v1.AudioConfig;
import com.google.cloud.texttospeech.v1.SynthesisInput;
import com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest;
Expand Down Expand Up @@ -47,4 +47,4 @@ public static void syncSynthesizeSpeech() throws Exception {
}
}
}
// [END texttospeech_v1_generated_texttospeechclient_synthesizespeech_sync]
// [END texttospeech_v1_generated_TextToSpeech_SynthesizeSpeech_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.texttospeech.v1.samples;

// [START texttospeech_v1_generated_texttospeechclient_synthesizespeech_synthesisinputvoiceselectionparamsaudioconfig_sync]
// [START texttospeech_v1_generated_TextToSpeech_SynthesizeSpeech_SynthesisinputVoiceselectionparamsAudioconfig_sync]
import com.google.cloud.texttospeech.v1.AudioConfig;
import com.google.cloud.texttospeech.v1.SynthesisInput;
import com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse;
Expand Down Expand Up @@ -45,4 +45,4 @@ public static void syncSynthesizeSpeechSynthesisinputVoiceselectionparamsAudioco
}
}
}
// [END texttospeech_v1_generated_texttospeechclient_synthesizespeech_synthesisinputvoiceselectionparamsaudioconfig_sync]
// [END texttospeech_v1_generated_TextToSpeech_SynthesizeSpeech_SynthesisinputVoiceselectionparamsAudioconfig_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.texttospeech.v1.samples;

// [START texttospeech_v1_generated_texttospeechsettings_listvoices_sync]
// [START texttospeech_v1_generated_TextToSpeechSettings_ListVoices_sync]
import com.google.cloud.texttospeech.v1.TextToSpeechSettings;
import java.time.Duration;

Expand All @@ -42,4 +42,4 @@ public static void syncListVoices() throws Exception {
TextToSpeechSettings textToSpeechSettings = textToSpeechSettingsBuilder.build();
}
}
// [END texttospeech_v1_generated_texttospeechsettings_listvoices_sync]
// [END texttospeech_v1_generated_TextToSpeechSettings_ListVoices_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.texttospeech.v1beta1.stub.samples;

// [START texttospeech_v1beta1_generated_texttospeechstubsettings_listvoices_sync]
// [START texttospeech_v1beta1_generated_TextToSpeechStubSettings_ListVoices_sync]
import com.google.cloud.texttospeech.v1beta1.stub.TextToSpeechStubSettings;
import java.time.Duration;

Expand All @@ -43,4 +43,4 @@ public static void syncListVoices() throws Exception {
TextToSpeechStubSettings textToSpeechSettings = textToSpeechSettingsBuilder.build();
}
}
// [END texttospeech_v1beta1_generated_texttospeechstubsettings_listvoices_sync]
// [END texttospeech_v1beta1_generated_TextToSpeechStubSettings_ListVoices_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.texttospeech.v1beta1.samples;

// [START texttospeech_v1beta1_generated_texttospeechclient_create_setcredentialsprovider_sync]
// [START texttospeech_v1beta1_generated_TextToSpeech_Create_SetCredentialsProvider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.texttospeech.v1beta1.TextToSpeechClient;
import com.google.cloud.texttospeech.v1beta1.TextToSpeechSettings;
Expand All @@ -41,4 +41,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
TextToSpeechClient textToSpeechClient = TextToSpeechClient.create(textToSpeechSettings);
}
}
// [END texttospeech_v1beta1_generated_texttospeechclient_create_setcredentialsprovider_sync]
// [END texttospeech_v1beta1_generated_TextToSpeech_Create_SetCredentialsProvider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.texttospeech.v1beta1.samples;

// [START texttospeech_v1beta1_generated_texttospeechclient_create_setcredentialsprovider1_sync]
// [START texttospeech_v1beta1_generated_TextToSpeech_Create_SetCredentialsProvider1_sync]
import com.google.cloud.texttospeech.v1beta1.TextToSpeechClient;
import com.google.cloud.texttospeech.v1beta1.TextToSpeechSettings;

Expand All @@ -32,12 +32,8 @@ public static void syncCreateSetCredentialsProvider1() throws Exception {
// - 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(
TextToSpeechSettings.defaultHttpJsonTransportProviderBuilder().build())
.build();
TextToSpeechSettings textToSpeechSettings = TextToSpeechSettings.newHttpJsonBuilder().build();
TextToSpeechClient textToSpeechClient = TextToSpeechClient.create(textToSpeechSettings);
}
}
// [END texttospeech_v1beta1_generated_texttospeechclient_create_setcredentialsprovider1_sync]
// [END texttospeech_v1beta1_generated_TextToSpeech_Create_SetCredentialsProvider1_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.texttospeech.v1beta1.samples;

// [START texttospeech_v1beta1_generated_texttospeechclient_create_setendpoint_sync]
// [START texttospeech_v1beta1_generated_TextToSpeech_Create_SetEndpoint_sync]
import com.google.cloud.texttospeech.v1beta1.TextToSpeechClient;
import com.google.cloud.texttospeech.v1beta1.TextToSpeechSettings;
import com.google.cloud.texttospeech.v1beta1.myEndpoint;
Expand All @@ -38,4 +38,4 @@ public static void syncCreateSetEndpoint() throws Exception {
TextToSpeechClient textToSpeechClient = TextToSpeechClient.create(textToSpeechSettings);
}
}
// [END texttospeech_v1beta1_generated_texttospeechclient_create_setendpoint_sync]
// [END texttospeech_v1beta1_generated_TextToSpeech_Create_SetEndpoint_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.texttospeech.v1beta1.samples;

// [START texttospeech_v1beta1_generated_texttospeechclient_listvoices_async]
// [START texttospeech_v1beta1_generated_TextToSpeech_ListVoices_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.texttospeech.v1beta1.ListVoicesRequest;
import com.google.cloud.texttospeech.v1beta1.ListVoicesResponse;
Expand Down Expand Up @@ -44,4 +44,4 @@ public static void asyncListVoices() throws Exception {
}
}
}
// [END texttospeech_v1beta1_generated_texttospeechclient_listvoices_async]
// [END texttospeech_v1beta1_generated_TextToSpeech_ListVoices_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.texttospeech.v1beta1.samples;

// [START texttospeech_v1beta1_generated_texttospeechclient_listvoices_sync]
// [START texttospeech_v1beta1_generated_TextToSpeech_ListVoices_sync]
import com.google.cloud.texttospeech.v1beta1.ListVoicesRequest;
import com.google.cloud.texttospeech.v1beta1.ListVoicesResponse;
import com.google.cloud.texttospeech.v1beta1.TextToSpeechClient;
Expand All @@ -40,4 +40,4 @@ public static void syncListVoices() throws Exception {
}
}
}
// [END texttospeech_v1beta1_generated_texttospeechclient_listvoices_sync]
// [END texttospeech_v1beta1_generated_TextToSpeech_ListVoices_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.texttospeech.v1beta1.samples;

// [START texttospeech_v1beta1_generated_texttospeechclient_listvoices_string_sync]
// [START texttospeech_v1beta1_generated_TextToSpeech_ListVoices_String_sync]
import com.google.cloud.texttospeech.v1beta1.ListVoicesResponse;
import com.google.cloud.texttospeech.v1beta1.TextToSpeechClient;

Expand All @@ -38,4 +38,4 @@ public static void syncListVoicesString() throws Exception {
}
}
}
// [END texttospeech_v1beta1_generated_texttospeechclient_listvoices_string_sync]
// [END texttospeech_v1beta1_generated_TextToSpeech_ListVoices_String_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.texttospeech.v1beta1.samples;

// [START texttospeech_v1beta1_generated_texttospeechclient_synthesizespeech_async]
// [START texttospeech_v1beta1_generated_TextToSpeech_SynthesizeSpeech_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.texttospeech.v1beta1.AudioConfig;
import com.google.cloud.texttospeech.v1beta1.SynthesisInput;
Expand Down Expand Up @@ -53,4 +53,4 @@ public static void asyncSynthesizeSpeech() throws Exception {
}
}
}
// [END texttospeech_v1beta1_generated_texttospeechclient_synthesizespeech_async]
// [END texttospeech_v1beta1_generated_TextToSpeech_SynthesizeSpeech_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.texttospeech.v1beta1.samples;

// [START texttospeech_v1beta1_generated_texttospeechclient_synthesizespeech_sync]
// [START texttospeech_v1beta1_generated_TextToSpeech_SynthesizeSpeech_sync]
import com.google.cloud.texttospeech.v1beta1.AudioConfig;
import com.google.cloud.texttospeech.v1beta1.SynthesisInput;
import com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest;
Expand Down Expand Up @@ -49,4 +49,4 @@ public static void syncSynthesizeSpeech() throws Exception {
}
}
}
// [END texttospeech_v1beta1_generated_texttospeechclient_synthesizespeech_sync]
// [END texttospeech_v1beta1_generated_TextToSpeech_SynthesizeSpeech_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.texttospeech.v1beta1.samples;

// [START texttospeech_v1beta1_generated_texttospeechclient_synthesizespeech_synthesisinputvoiceselectionparamsaudioconfig_sync]
// [START texttospeech_v1beta1_generated_TextToSpeech_SynthesizeSpeech_SynthesisinputVoiceselectionparamsAudioconfig_sync]
import com.google.cloud.texttospeech.v1beta1.AudioConfig;
import com.google.cloud.texttospeech.v1beta1.SynthesisInput;
import com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse;
Expand Down Expand Up @@ -45,4 +45,4 @@ public static void syncSynthesizeSpeechSynthesisinputVoiceselectionparamsAudioco
}
}
}
// [END texttospeech_v1beta1_generated_texttospeechclient_synthesizespeech_synthesisinputvoiceselectionparamsaudioconfig_sync]
// [END texttospeech_v1beta1_generated_TextToSpeech_SynthesizeSpeech_SynthesisinputVoiceselectionparamsAudioconfig_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.texttospeech.v1beta1.samples;

// [START texttospeech_v1beta1_generated_texttospeechsettings_listvoices_sync]
// [START texttospeech_v1beta1_generated_TextToSpeechSettings_ListVoices_sync]
import com.google.cloud.texttospeech.v1beta1.TextToSpeechSettings;
import java.time.Duration;

Expand All @@ -42,4 +42,4 @@ public static void syncListVoices() throws Exception {
TextToSpeechSettings textToSpeechSettings = textToSpeechSettingsBuilder.build();
}
}
// [END texttospeech_v1beta1_generated_texttospeechsettings_listvoices_sync]
// [END texttospeech_v1beta1_generated_TextToSpeechSettings_ListVoices_sync]

0 comments on commit 346bff6

Please sign in to comment.