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

- [ ] 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 01284e7 commit 5c4a9ee
Show file tree
Hide file tree
Showing 79 changed files with 158 additions and 164 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,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
* LivestreamServiceSettings livestreamServiceSettings =
* LivestreamServiceSettings.newBuilder()
* .setTransportChannelProvider(
* LivestreamServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
* .build();
* LivestreamServiceSettings.newHttpJsonBuilder().build();
* LivestreamServiceClient livestreamServiceClient =
* LivestreamServiceClient.create(livestreamServiceSettings);
* }</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.video.livestream.v1.samples;

// [START livestream_v1_generated_livestreamserviceclient_create_setcredentialsprovider_sync]
// [START livestream_v1_generated_LivestreamService_Create_SetCredentialsProvider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.video.livestream.v1.LivestreamServiceClient;
import com.google.cloud.video.livestream.v1.LivestreamServiceSettings;
Expand All @@ -42,4 +42,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
LivestreamServiceClient.create(livestreamServiceSettings);
}
}
// [END livestream_v1_generated_livestreamserviceclient_create_setcredentialsprovider_sync]
// [END livestream_v1_generated_LivestreamService_Create_SetCredentialsProvider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.video.livestream.v1.samples;

// [START livestream_v1_generated_livestreamserviceclient_create_setcredentialsprovider1_sync]
// [START livestream_v1_generated_LivestreamService_Create_SetCredentialsProvider1_sync]
import com.google.cloud.video.livestream.v1.LivestreamServiceClient;
import com.google.cloud.video.livestream.v1.LivestreamServiceSettings;

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
LivestreamServiceSettings livestreamServiceSettings =
LivestreamServiceSettings.newBuilder()
.setTransportChannelProvider(
LivestreamServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
.build();
LivestreamServiceSettings.newHttpJsonBuilder().build();
LivestreamServiceClient livestreamServiceClient =
LivestreamServiceClient.create(livestreamServiceSettings);
}
}
// [END livestream_v1_generated_livestreamserviceclient_create_setcredentialsprovider1_sync]
// [END livestream_v1_generated_LivestreamService_Create_SetCredentialsProvider1_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.video.livestream.v1.samples;

// [START livestream_v1_generated_livestreamserviceclient_create_setendpoint_sync]
// [START livestream_v1_generated_LivestreamService_Create_SetEndpoint_sync]
import com.google.cloud.video.livestream.v1.LivestreamServiceClient;
import com.google.cloud.video.livestream.v1.LivestreamServiceSettings;
import com.google.cloud.video.livestream.v1.myEndpoint;
Expand All @@ -39,4 +39,4 @@ public static void syncCreateSetEndpoint() throws Exception {
LivestreamServiceClient.create(livestreamServiceSettings);
}
}
// [END livestream_v1_generated_livestreamserviceclient_create_setendpoint_sync]
// [END livestream_v1_generated_LivestreamService_Create_SetEndpoint_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.video.livestream.v1.samples;

// [START livestream_v1_generated_livestreamserviceclient_createchannel_async]
// [START livestream_v1_generated_LivestreamService_CreateChannel_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.video.livestream.v1.Channel;
import com.google.cloud.video.livestream.v1.CreateChannelRequest;
Expand Down Expand Up @@ -51,4 +51,4 @@ public static void asyncCreateChannel() throws Exception {
}
}
}
// [END livestream_v1_generated_livestreamserviceclient_createchannel_async]
// [END livestream_v1_generated_LivestreamService_CreateChannel_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.video.livestream.v1.samples;

// [START livestream_v1_generated_livestreamserviceclient_createchannel_lro_async]
// [START livestream_v1_generated_LivestreamService_CreateChannel_LRO_async]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.video.livestream.v1.Channel;
import com.google.cloud.video.livestream.v1.CreateChannelRequest;
Expand Down Expand Up @@ -51,4 +51,4 @@ public static void asyncCreateChannelLRO() throws Exception {
}
}
}
// [END livestream_v1_generated_livestreamserviceclient_createchannel_lro_async]
// [END livestream_v1_generated_LivestreamService_CreateChannel_LRO_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.video.livestream.v1.samples;

// [START livestream_v1_generated_livestreamserviceclient_createchannel_sync]
// [START livestream_v1_generated_LivestreamService_CreateChannel_sync]
import com.google.cloud.video.livestream.v1.Channel;
import com.google.cloud.video.livestream.v1.CreateChannelRequest;
import com.google.cloud.video.livestream.v1.LivestreamServiceClient;
Expand Down Expand Up @@ -46,4 +46,4 @@ public static void syncCreateChannel() throws Exception {
}
}
}
// [END livestream_v1_generated_livestreamserviceclient_createchannel_sync]
// [END livestream_v1_generated_LivestreamService_CreateChannel_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.video.livestream.v1.samples;

// [START livestream_v1_generated_livestreamserviceclient_createchannel_locationnamechannelstring_sync]
// [START livestream_v1_generated_LivestreamService_CreateChannel_LocationnameChannelString_sync]
import com.google.cloud.video.livestream.v1.Channel;
import com.google.cloud.video.livestream.v1.LivestreamServiceClient;
import com.google.cloud.video.livestream.v1.LocationName;
Expand All @@ -42,4 +42,4 @@ public static void syncCreateChannelLocationnameChannelString() throws Exception
}
}
}
// [END livestream_v1_generated_livestreamserviceclient_createchannel_locationnamechannelstring_sync]
// [END livestream_v1_generated_LivestreamService_CreateChannel_LocationnameChannelString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.video.livestream.v1.samples;

// [START livestream_v1_generated_livestreamserviceclient_createchannel_stringchannelstring_sync]
// [START livestream_v1_generated_LivestreamService_CreateChannel_StringChannelString_sync]
import com.google.cloud.video.livestream.v1.Channel;
import com.google.cloud.video.livestream.v1.LivestreamServiceClient;
import com.google.cloud.video.livestream.v1.LocationName;
Expand All @@ -42,4 +42,4 @@ public static void syncCreateChannelStringChannelString() throws Exception {
}
}
}
// [END livestream_v1_generated_livestreamserviceclient_createchannel_stringchannelstring_sync]
// [END livestream_v1_generated_LivestreamService_CreateChannel_StringChannelString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.video.livestream.v1.samples;

// [START livestream_v1_generated_livestreamserviceclient_createevent_async]
// [START livestream_v1_generated_LivestreamService_CreateEvent_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.video.livestream.v1.ChannelName;
import com.google.cloud.video.livestream.v1.CreateEventRequest;
Expand Down Expand Up @@ -49,4 +49,4 @@ public static void asyncCreateEvent() throws Exception {
}
}
}
// [END livestream_v1_generated_livestreamserviceclient_createevent_async]
// [END livestream_v1_generated_LivestreamService_CreateEvent_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.video.livestream.v1.samples;

// [START livestream_v1_generated_livestreamserviceclient_createevent_sync]
// [START livestream_v1_generated_LivestreamService_CreateEvent_sync]
import com.google.cloud.video.livestream.v1.ChannelName;
import com.google.cloud.video.livestream.v1.CreateEventRequest;
import com.google.cloud.video.livestream.v1.Event;
Expand Down Expand Up @@ -46,4 +46,4 @@ public static void syncCreateEvent() throws Exception {
}
}
}
// [END livestream_v1_generated_livestreamserviceclient_createevent_sync]
// [END livestream_v1_generated_LivestreamService_CreateEvent_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.video.livestream.v1.samples;

// [START livestream_v1_generated_livestreamserviceclient_createevent_channelnameeventstring_sync]
// [START livestream_v1_generated_LivestreamService_CreateEvent_ChannelnameEventString_sync]
import com.google.cloud.video.livestream.v1.ChannelName;
import com.google.cloud.video.livestream.v1.Event;
import com.google.cloud.video.livestream.v1.LivestreamServiceClient;
Expand All @@ -41,4 +41,4 @@ public static void syncCreateEventChannelnameEventString() throws Exception {
}
}
}
// [END livestream_v1_generated_livestreamserviceclient_createevent_channelnameeventstring_sync]
// [END livestream_v1_generated_LivestreamService_CreateEvent_ChannelnameEventString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.video.livestream.v1.samples;

// [START livestream_v1_generated_livestreamserviceclient_createevent_stringeventstring_sync]
// [START livestream_v1_generated_LivestreamService_CreateEvent_StringEventString_sync]
import com.google.cloud.video.livestream.v1.ChannelName;
import com.google.cloud.video.livestream.v1.Event;
import com.google.cloud.video.livestream.v1.LivestreamServiceClient;
Expand All @@ -41,4 +41,4 @@ public static void syncCreateEventStringEventString() throws Exception {
}
}
}
// [END livestream_v1_generated_livestreamserviceclient_createevent_stringeventstring_sync]
// [END livestream_v1_generated_LivestreamService_CreateEvent_StringEventString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.video.livestream.v1.samples;

// [START livestream_v1_generated_livestreamserviceclient_createinput_async]
// [START livestream_v1_generated_LivestreamService_CreateInput_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.video.livestream.v1.CreateInputRequest;
import com.google.cloud.video.livestream.v1.Input;
Expand Down Expand Up @@ -51,4 +51,4 @@ public static void asyncCreateInput() throws Exception {
}
}
}
// [END livestream_v1_generated_livestreamserviceclient_createinput_async]
// [END livestream_v1_generated_LivestreamService_CreateInput_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.video.livestream.v1.samples;

// [START livestream_v1_generated_livestreamserviceclient_createinput_lro_async]
// [START livestream_v1_generated_LivestreamService_CreateInput_LRO_async]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.video.livestream.v1.CreateInputRequest;
import com.google.cloud.video.livestream.v1.Input;
Expand Down Expand Up @@ -51,4 +51,4 @@ public static void asyncCreateInputLRO() throws Exception {
}
}
}
// [END livestream_v1_generated_livestreamserviceclient_createinput_lro_async]
// [END livestream_v1_generated_LivestreamService_CreateInput_LRO_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.video.livestream.v1.samples;

// [START livestream_v1_generated_livestreamserviceclient_createinput_sync]
// [START livestream_v1_generated_LivestreamService_CreateInput_sync]
import com.google.cloud.video.livestream.v1.CreateInputRequest;
import com.google.cloud.video.livestream.v1.Input;
import com.google.cloud.video.livestream.v1.LivestreamServiceClient;
Expand Down Expand Up @@ -46,4 +46,4 @@ public static void syncCreateInput() throws Exception {
}
}
}
// [END livestream_v1_generated_livestreamserviceclient_createinput_sync]
// [END livestream_v1_generated_LivestreamService_CreateInput_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.video.livestream.v1.samples;

// [START livestream_v1_generated_livestreamserviceclient_createinput_locationnameinputstring_sync]
// [START livestream_v1_generated_LivestreamService_CreateInput_LocationnameInputString_sync]
import com.google.cloud.video.livestream.v1.Input;
import com.google.cloud.video.livestream.v1.LivestreamServiceClient;
import com.google.cloud.video.livestream.v1.LocationName;
Expand All @@ -41,4 +41,4 @@ public static void syncCreateInputLocationnameInputString() throws Exception {
}
}
}
// [END livestream_v1_generated_livestreamserviceclient_createinput_locationnameinputstring_sync]
// [END livestream_v1_generated_LivestreamService_CreateInput_LocationnameInputString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.video.livestream.v1.samples;

// [START livestream_v1_generated_livestreamserviceclient_createinput_stringinputstring_sync]
// [START livestream_v1_generated_LivestreamService_CreateInput_StringInputString_sync]
import com.google.cloud.video.livestream.v1.Input;
import com.google.cloud.video.livestream.v1.LivestreamServiceClient;
import com.google.cloud.video.livestream.v1.LocationName;
Expand All @@ -41,4 +41,4 @@ public static void syncCreateInputStringInputString() throws Exception {
}
}
}
// [END livestream_v1_generated_livestreamserviceclient_createinput_stringinputstring_sync]
// [END livestream_v1_generated_LivestreamService_CreateInput_StringInputString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.video.livestream.v1.samples;

// [START livestream_v1_generated_livestreamserviceclient_deletechannel_async]
// [START livestream_v1_generated_LivestreamService_DeleteChannel_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.video.livestream.v1.ChannelName;
import com.google.cloud.video.livestream.v1.DeleteChannelRequest;
Expand Down Expand Up @@ -49,4 +49,4 @@ public static void asyncDeleteChannel() throws Exception {
}
}
}
// [END livestream_v1_generated_livestreamserviceclient_deletechannel_async]
// [END livestream_v1_generated_LivestreamService_DeleteChannel_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.video.livestream.v1.samples;

// [START livestream_v1_generated_livestreamserviceclient_deletechannel_lro_async]
// [START livestream_v1_generated_LivestreamService_DeleteChannel_LRO_async]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.video.livestream.v1.ChannelName;
import com.google.cloud.video.livestream.v1.DeleteChannelRequest;
Expand Down Expand Up @@ -50,4 +50,4 @@ public static void asyncDeleteChannelLRO() throws Exception {
}
}
}
// [END livestream_v1_generated_livestreamserviceclient_deletechannel_lro_async]
// [END livestream_v1_generated_LivestreamService_DeleteChannel_LRO_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.video.livestream.v1.samples;

// [START livestream_v1_generated_livestreamserviceclient_deletechannel_sync]
// [START livestream_v1_generated_LivestreamService_DeleteChannel_sync]
import com.google.cloud.video.livestream.v1.ChannelName;
import com.google.cloud.video.livestream.v1.DeleteChannelRequest;
import com.google.cloud.video.livestream.v1.LivestreamServiceClient;
Expand Down Expand Up @@ -45,4 +45,4 @@ public static void syncDeleteChannel() throws Exception {
}
}
}
// [END livestream_v1_generated_livestreamserviceclient_deletechannel_sync]
// [END livestream_v1_generated_LivestreamService_DeleteChannel_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.video.livestream.v1.samples;

// [START livestream_v1_generated_livestreamserviceclient_deletechannel_channelname_sync]
// [START livestream_v1_generated_LivestreamService_DeleteChannel_Channelname_sync]
import com.google.cloud.video.livestream.v1.ChannelName;
import com.google.cloud.video.livestream.v1.LivestreamServiceClient;
import com.google.protobuf.Empty;
Expand All @@ -39,4 +39,4 @@ public static void syncDeleteChannelChannelname() throws Exception {
}
}
}
// [END livestream_v1_generated_livestreamserviceclient_deletechannel_channelname_sync]
// [END livestream_v1_generated_LivestreamService_DeleteChannel_Channelname_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.video.livestream.v1.samples;

// [START livestream_v1_generated_livestreamserviceclient_deletechannel_string_sync]
// [START livestream_v1_generated_LivestreamService_DeleteChannel_String_sync]
import com.google.cloud.video.livestream.v1.ChannelName;
import com.google.cloud.video.livestream.v1.LivestreamServiceClient;
import com.google.protobuf.Empty;
Expand All @@ -39,4 +39,4 @@ public static void syncDeleteChannelString() throws Exception {
}
}
}
// [END livestream_v1_generated_livestreamserviceclient_deletechannel_string_sync]
// [END livestream_v1_generated_LivestreamService_DeleteChannel_String_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.video.livestream.v1.samples;

// [START livestream_v1_generated_livestreamserviceclient_deleteevent_async]
// [START livestream_v1_generated_LivestreamService_DeleteEvent_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.video.livestream.v1.DeleteEventRequest;
import com.google.cloud.video.livestream.v1.EventName;
Expand Down Expand Up @@ -47,4 +47,4 @@ public static void asyncDeleteEvent() throws Exception {
}
}
}
// [END livestream_v1_generated_livestreamserviceclient_deleteevent_async]
// [END livestream_v1_generated_LivestreamService_DeleteEvent_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.video.livestream.v1.samples;

// [START livestream_v1_generated_livestreamserviceclient_deleteevent_sync]
// [START livestream_v1_generated_LivestreamService_DeleteEvent_sync]
import com.google.cloud.video.livestream.v1.DeleteEventRequest;
import com.google.cloud.video.livestream.v1.EventName;
import com.google.cloud.video.livestream.v1.LivestreamServiceClient;
Expand Down Expand Up @@ -44,4 +44,4 @@ public static void syncDeleteEvent() throws Exception {
}
}
}
// [END livestream_v1_generated_livestreamserviceclient_deleteevent_sync]
// [END livestream_v1_generated_LivestreamService_DeleteEvent_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.video.livestream.v1.samples;

// [START livestream_v1_generated_livestreamserviceclient_deleteevent_eventname_sync]
// [START livestream_v1_generated_LivestreamService_DeleteEvent_Eventname_sync]
import com.google.cloud.video.livestream.v1.EventName;
import com.google.cloud.video.livestream.v1.LivestreamServiceClient;
import com.google.protobuf.Empty;
Expand All @@ -39,4 +39,4 @@ public static void syncDeleteEventEventname() throws Exception {
}
}
}
// [END livestream_v1_generated_livestreamserviceclient_deleteevent_eventname_sync]
// [END livestream_v1_generated_LivestreamService_DeleteEvent_Eventname_sync]
Loading

0 comments on commit 5c4a9ee

Please sign in to comment.