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
#741)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 485623855

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

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/c4ddd6d651da69658a4762c5eafff5cd8f0e25c5
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzRkZGQ2ZDY1MWRhNjk2NThhNDc2MmM1ZWFmZmY1Y2Q4ZjBlMjVjNSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Nov 8, 2022
1 parent 910bf06 commit 30d1ea2
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,7 @@
* // - 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(
* SpeechTranslationServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
* .build();
* SpeechTranslationServiceSettings.newHttpJsonBuilder().build();
* SpeechTranslationServiceClient speechTranslationServiceClient =
* SpeechTranslationServiceClient.create(speechTranslationServiceSettings);
* }</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START mediatranslation_v1beta1_generated_speechtranslationserviceclient_create_setcredentialsprovider_sync]
// [START mediatranslation_v1beta1_generated_SpeechTranslationService_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 @@ -42,4 +42,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
SpeechTranslationServiceClient.create(speechTranslationServiceSettings);
}
}
// [END mediatranslation_v1beta1_generated_speechtranslationserviceclient_create_setcredentialsprovider_sync]
// [END mediatranslation_v1beta1_generated_SpeechTranslationService_Create_SetCredentialsProvider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START mediatranslation_v1beta1_generated_speechtranslationserviceclient_create_setcredentialsprovider1_sync]
// [START mediatranslation_v1beta1_generated_SpeechTranslationService_Create_SetCredentialsProvider1_sync]
import com.google.cloud.mediatranslation.v1beta1.SpeechTranslationServiceClient;
import com.google.cloud.mediatranslation.v1beta1.SpeechTranslationServiceSettings;

Expand All @@ -33,12 +33,9 @@ public static void syncCreateSetCredentialsProvider1() throws Exception {
// - 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(
SpeechTranslationServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
.build();
SpeechTranslationServiceSettings.newHttpJsonBuilder().build();
SpeechTranslationServiceClient speechTranslationServiceClient =
SpeechTranslationServiceClient.create(speechTranslationServiceSettings);
}
}
// [END mediatranslation_v1beta1_generated_speechtranslationserviceclient_create_setcredentialsprovider1_sync]
// [END mediatranslation_v1beta1_generated_SpeechTranslationService_Create_SetCredentialsProvider1_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START mediatranslation_v1beta1_generated_speechtranslationserviceclient_create_setendpoint_sync]
// [START mediatranslation_v1beta1_generated_SpeechTranslationService_Create_SetEndpoint_sync]
import com.google.cloud.mediatranslation.v1beta1.SpeechTranslationServiceClient;
import com.google.cloud.mediatranslation.v1beta1.SpeechTranslationServiceSettings;
import com.google.cloud.mediatranslation.v1beta1.myEndpoint;
Expand All @@ -39,4 +39,4 @@ public static void syncCreateSetEndpoint() throws Exception {
SpeechTranslationServiceClient.create(speechTranslationServiceSettings);
}
}
// [END mediatranslation_v1beta1_generated_speechtranslationserviceclient_create_setendpoint_sync]
// [END mediatranslation_v1beta1_generated_SpeechTranslationService_Create_SetEndpoint_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START mediatranslation_v1beta1_generated_speechtranslationserviceclient_streamingtranslatespeech_async]
// [START mediatranslation_v1beta1_generated_SpeechTranslationService_StreamingTranslateSpeech_async]
import com.google.api.gax.rpc.BidiStream;
import com.google.cloud.mediatranslation.v1beta1.SpeechTranslationServiceClient;
import com.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechRequest;
Expand Down Expand Up @@ -47,4 +47,4 @@ public static void asyncStreamingTranslateSpeech() throws Exception {
}
}
}
// [END mediatranslation_v1beta1_generated_speechtranslationserviceclient_streamingtranslatespeech_async]
// [END mediatranslation_v1beta1_generated_SpeechTranslationService_StreamingTranslateSpeech_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +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 Down Expand Up @@ -47,4 +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,7 +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 Down Expand Up @@ -47,4 +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 30d1ea2

Please sign in to comment.