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

- [ ] 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 e58d25b commit ce51729
Show file tree
Hide file tree
Showing 25 changed files with 50 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,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
* IDSSettings iDSSettings =
* IDSSettings.newBuilder()
* .setTransportChannelProvider(
* IDSSettings.defaultHttpJsonTransportProviderBuilder().build())
* .build();
* IDSSettings iDSSettings = IDSSettings.newHttpJsonBuilder().build();
* IDSClient iDSClient = IDSClient.create(iDSSettings);
* }</pre>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START ids_v1_generated_idsclient_create_setcredentialsprovider_sync]
// [START ids_v1_generated_IDS_Create_SetCredentialsProvider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.ids.v1.IDSClient;
import com.google.cloud.ids.v1.IDSSettings;
Expand All @@ -41,4 +41,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
IDSClient iDSClient = IDSClient.create(iDSSettings);
}
}
// [END ids_v1_generated_idsclient_create_setcredentialsprovider_sync]
// [END ids_v1_generated_IDS_Create_SetCredentialsProvider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START ids_v1_generated_idsclient_create_setcredentialsprovider1_sync]
// [START ids_v1_generated_IDS_Create_SetCredentialsProvider1_sync]
import com.google.cloud.ids.v1.IDSClient;
import com.google.cloud.ids.v1.IDSSettings;

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
IDSSettings iDSSettings =
IDSSettings.newBuilder()
.setTransportChannelProvider(
IDSSettings.defaultHttpJsonTransportProviderBuilder().build())
.build();
IDSSettings iDSSettings = IDSSettings.newHttpJsonBuilder().build();
IDSClient iDSClient = IDSClient.create(iDSSettings);
}
}
// [END ids_v1_generated_idsclient_create_setcredentialsprovider1_sync]
// [END ids_v1_generated_IDS_Create_SetCredentialsProvider1_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START ids_v1_generated_idsclient_create_setendpoint_sync]
// [START ids_v1_generated_IDS_Create_SetEndpoint_sync]
import com.google.cloud.ids.v1.IDSClient;
import com.google.cloud.ids.v1.IDSSettings;
import com.google.cloud.ids.v1.myEndpoint;
Expand All @@ -37,4 +37,4 @@ public static void syncCreateSetEndpoint() throws Exception {
IDSClient iDSClient = IDSClient.create(iDSSettings);
}
}
// [END ids_v1_generated_idsclient_create_setendpoint_sync]
// [END ids_v1_generated_IDS_Create_SetEndpoint_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START ids_v1_generated_idsclient_createendpoint_async]
// [START ids_v1_generated_IDS_CreateEndpoint_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.ids.v1.CreateEndpointRequest;
import com.google.cloud.ids.v1.Endpoint;
Expand Down Expand Up @@ -50,4 +50,4 @@ public static void asyncCreateEndpoint() throws Exception {
}
}
}
// [END ids_v1_generated_idsclient_createendpoint_async]
// [END ids_v1_generated_IDS_CreateEndpoint_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START ids_v1_generated_idsclient_createendpoint_lro_async]
// [START ids_v1_generated_IDS_CreateEndpoint_LRO_async]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.ids.v1.CreateEndpointRequest;
import com.google.cloud.ids.v1.Endpoint;
Expand Down Expand Up @@ -51,4 +51,4 @@ public static void asyncCreateEndpointLRO() throws Exception {
}
}
}
// [END ids_v1_generated_idsclient_createendpoint_lro_async]
// [END ids_v1_generated_IDS_CreateEndpoint_LRO_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START ids_v1_generated_idsclient_createendpoint_sync]
// [START ids_v1_generated_IDS_CreateEndpoint_sync]
import com.google.cloud.ids.v1.CreateEndpointRequest;
import com.google.cloud.ids.v1.Endpoint;
import com.google.cloud.ids.v1.IDSClient;
Expand Down Expand Up @@ -46,4 +46,4 @@ public static void syncCreateEndpoint() throws Exception {
}
}
}
// [END ids_v1_generated_idsclient_createendpoint_sync]
// [END ids_v1_generated_IDS_CreateEndpoint_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START ids_v1_generated_idsclient_createendpoint_locationnameendpointstring_sync]
// [START ids_v1_generated_IDS_CreateEndpoint_LocationnameEndpointString_sync]
import com.google.cloud.ids.v1.Endpoint;
import com.google.cloud.ids.v1.IDSClient;
import com.google.cloud.ids.v1.LocationName;
Expand All @@ -41,4 +41,4 @@ public static void syncCreateEndpointLocationnameEndpointString() throws Excepti
}
}
}
// [END ids_v1_generated_idsclient_createendpoint_locationnameendpointstring_sync]
// [END ids_v1_generated_IDS_CreateEndpoint_LocationnameEndpointString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START ids_v1_generated_idsclient_createendpoint_stringendpointstring_sync]
// [START ids_v1_generated_IDS_CreateEndpoint_StringEndpointString_sync]
import com.google.cloud.ids.v1.Endpoint;
import com.google.cloud.ids.v1.IDSClient;
import com.google.cloud.ids.v1.LocationName;
Expand All @@ -41,4 +41,4 @@ public static void syncCreateEndpointStringEndpointString() throws Exception {
}
}
}
// [END ids_v1_generated_idsclient_createendpoint_stringendpointstring_sync]
// [END ids_v1_generated_IDS_CreateEndpoint_StringEndpointString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START ids_v1_generated_idsclient_deleteendpoint_async]
// [START ids_v1_generated_IDS_DeleteEndpoint_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.ids.v1.DeleteEndpointRequest;
import com.google.cloud.ids.v1.EndpointName;
Expand Down Expand Up @@ -47,4 +47,4 @@ public static void asyncDeleteEndpoint() throws Exception {
}
}
}
// [END ids_v1_generated_idsclient_deleteendpoint_async]
// [END ids_v1_generated_IDS_DeleteEndpoint_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START ids_v1_generated_idsclient_deleteendpoint_lro_async]
// [START ids_v1_generated_IDS_DeleteEndpoint_LRO_async]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.ids.v1.DeleteEndpointRequest;
import com.google.cloud.ids.v1.EndpointName;
Expand Down Expand Up @@ -49,4 +49,4 @@ public static void asyncDeleteEndpointLRO() throws Exception {
}
}
}
// [END ids_v1_generated_idsclient_deleteendpoint_lro_async]
// [END ids_v1_generated_IDS_DeleteEndpoint_LRO_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START ids_v1_generated_idsclient_deleteendpoint_sync]
// [START ids_v1_generated_IDS_DeleteEndpoint_sync]
import com.google.cloud.ids.v1.DeleteEndpointRequest;
import com.google.cloud.ids.v1.EndpointName;
import com.google.cloud.ids.v1.IDSClient;
Expand Down Expand Up @@ -44,4 +44,4 @@ public static void syncDeleteEndpoint() throws Exception {
}
}
}
// [END ids_v1_generated_idsclient_deleteendpoint_sync]
// [END ids_v1_generated_IDS_DeleteEndpoint_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START ids_v1_generated_idsclient_deleteendpoint_endpointname_sync]
// [START ids_v1_generated_IDS_DeleteEndpoint_Endpointname_sync]
import com.google.cloud.ids.v1.EndpointName;
import com.google.cloud.ids.v1.IDSClient;
import com.google.protobuf.Empty;
Expand All @@ -39,4 +39,4 @@ public static void syncDeleteEndpointEndpointname() throws Exception {
}
}
}
// [END ids_v1_generated_idsclient_deleteendpoint_endpointname_sync]
// [END ids_v1_generated_IDS_DeleteEndpoint_Endpointname_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START ids_v1_generated_idsclient_deleteendpoint_string_sync]
// [START ids_v1_generated_IDS_DeleteEndpoint_String_sync]
import com.google.cloud.ids.v1.EndpointName;
import com.google.cloud.ids.v1.IDSClient;
import com.google.protobuf.Empty;
Expand All @@ -39,4 +39,4 @@ public static void syncDeleteEndpointString() throws Exception {
}
}
}
// [END ids_v1_generated_idsclient_deleteendpoint_string_sync]
// [END ids_v1_generated_IDS_DeleteEndpoint_String_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START ids_v1_generated_idsclient_getendpoint_async]
// [START ids_v1_generated_IDS_GetEndpoint_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.ids.v1.Endpoint;
import com.google.cloud.ids.v1.EndpointName;
Expand Down Expand Up @@ -46,4 +46,4 @@ public static void asyncGetEndpoint() throws Exception {
}
}
}
// [END ids_v1_generated_idsclient_getendpoint_async]
// [END ids_v1_generated_IDS_GetEndpoint_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START ids_v1_generated_idsclient_getendpoint_sync]
// [START ids_v1_generated_IDS_GetEndpoint_sync]
import com.google.cloud.ids.v1.Endpoint;
import com.google.cloud.ids.v1.EndpointName;
import com.google.cloud.ids.v1.GetEndpointRequest;
Expand All @@ -43,4 +43,4 @@ public static void syncGetEndpoint() throws Exception {
}
}
}
// [END ids_v1_generated_idsclient_getendpoint_sync]
// [END ids_v1_generated_IDS_GetEndpoint_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START ids_v1_generated_idsclient_getendpoint_endpointname_sync]
// [START ids_v1_generated_IDS_GetEndpoint_Endpointname_sync]
import com.google.cloud.ids.v1.Endpoint;
import com.google.cloud.ids.v1.EndpointName;
import com.google.cloud.ids.v1.IDSClient;
Expand All @@ -39,4 +39,4 @@ public static void syncGetEndpointEndpointname() throws Exception {
}
}
}
// [END ids_v1_generated_idsclient_getendpoint_endpointname_sync]
// [END ids_v1_generated_IDS_GetEndpoint_Endpointname_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START ids_v1_generated_idsclient_getendpoint_string_sync]
// [START ids_v1_generated_IDS_GetEndpoint_String_sync]
import com.google.cloud.ids.v1.Endpoint;
import com.google.cloud.ids.v1.EndpointName;
import com.google.cloud.ids.v1.IDSClient;
Expand All @@ -39,4 +39,4 @@ public static void syncGetEndpointString() throws Exception {
}
}
}
// [END ids_v1_generated_idsclient_getendpoint_string_sync]
// [END ids_v1_generated_IDS_GetEndpoint_String_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START ids_v1_generated_idsclient_listendpoints_async]
// [START ids_v1_generated_IDS_ListEndpoints_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.ids.v1.Endpoint;
import com.google.cloud.ids.v1.IDSClient;
Expand Down Expand Up @@ -52,4 +52,4 @@ public static void asyncListEndpoints() throws Exception {
}
}
}
// [END ids_v1_generated_idsclient_listendpoints_async]
// [END ids_v1_generated_IDS_ListEndpoints_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START ids_v1_generated_idsclient_listendpoints_paged_async]
// [START ids_v1_generated_IDS_ListEndpoints_Paged_async]
import com.google.cloud.ids.v1.Endpoint;
import com.google.cloud.ids.v1.IDSClient;
import com.google.cloud.ids.v1.ListEndpointsRequest;
Expand Down Expand Up @@ -60,4 +60,4 @@ public static void asyncListEndpointsPaged() throws Exception {
}
}
}
// [END ids_v1_generated_idsclient_listendpoints_paged_async]
// [END ids_v1_generated_IDS_ListEndpoints_Paged_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START ids_v1_generated_idsclient_listendpoints_sync]
// [START ids_v1_generated_IDS_ListEndpoints_sync]
import com.google.cloud.ids.v1.Endpoint;
import com.google.cloud.ids.v1.IDSClient;
import com.google.cloud.ids.v1.ListEndpointsRequest;
Expand Down Expand Up @@ -49,4 +49,4 @@ public static void syncListEndpoints() throws Exception {
}
}
}
// [END ids_v1_generated_idsclient_listendpoints_sync]
// [END ids_v1_generated_IDS_ListEndpoints_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START ids_v1_generated_idsclient_listendpoints_locationname_sync]
// [START ids_v1_generated_IDS_ListEndpoints_Locationname_sync]
import com.google.cloud.ids.v1.Endpoint;
import com.google.cloud.ids.v1.IDSClient;
import com.google.cloud.ids.v1.LocationName;
Expand All @@ -41,4 +41,4 @@ public static void syncListEndpointsLocationname() throws Exception {
}
}
}
// [END ids_v1_generated_idsclient_listendpoints_locationname_sync]
// [END ids_v1_generated_IDS_ListEndpoints_Locationname_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START ids_v1_generated_idsclient_listendpoints_string_sync]
// [START ids_v1_generated_IDS_ListEndpoints_String_sync]
import com.google.cloud.ids.v1.Endpoint;
import com.google.cloud.ids.v1.IDSClient;
import com.google.cloud.ids.v1.LocationName;
Expand All @@ -41,4 +41,4 @@ public static void syncListEndpointsString() throws Exception {
}
}
}
// [END ids_v1_generated_idsclient_listendpoints_string_sync]
// [END ids_v1_generated_IDS_ListEndpoints_String_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START ids_v1_generated_idssettings_getendpoint_sync]
// [START ids_v1_generated_IDSSettings_GetEndpoint_sync]
import com.google.cloud.ids.v1.IDSSettings;
import java.time.Duration;

Expand All @@ -42,4 +42,4 @@ public static void syncGetEndpoint() throws Exception {
IDSSettings iDSSettings = iDSSettingsBuilder.build();
}
}
// [END ids_v1_generated_idssettings_getendpoint_sync]
// [END ids_v1_generated_IDSSettings_GetEndpoint_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START ids_v1_generated_idsstubsettings_getendpoint_sync]
// [START ids_v1_generated_IDSStubSettings_GetEndpoint_sync]
import com.google.cloud.ids.v1.stub.IDSStubSettings;
import java.time.Duration;

Expand All @@ -42,4 +42,4 @@ public static void syncGetEndpoint() throws Exception {
IDSStubSettings iDSSettings = iDSSettingsBuilder.build();
}
}
// [END ids_v1_generated_idsstubsettings_getendpoint_sync]
// [END ids_v1_generated_IDSStubSettings_GetEndpoint_sync]

0 comments on commit ce51729

Please sign in to comment.