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

- [ ] 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] committed Nov 8, 2022
1 parent 0e34cba commit a937abe
Show file tree
Hide file tree
Showing 160 changed files with 320 additions and 344 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,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
* LookupServiceSettings lookupServiceSettings =
* LookupServiceSettings.newBuilder()
* .setTransportChannelProvider(
* LookupServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
* .build();
* LookupServiceSettings.newHttpJsonBuilder().build();
* LookupServiceClient lookupServiceClient = LookupServiceClient.create(lookupServiceSettings);
* }</pre>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,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
* RegistrationServiceSettings registrationServiceSettings =
* RegistrationServiceSettings.newBuilder()
* .setTransportChannelProvider(
* RegistrationServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
* .build();
* RegistrationServiceSettings.newHttpJsonBuilder().build();
* RegistrationServiceClient registrationServiceClient =
* RegistrationServiceClient.create(registrationServiceSettings);
* }</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,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
* LookupServiceSettings lookupServiceSettings =
* LookupServiceSettings.newBuilder()
* .setTransportChannelProvider(
* LookupServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
* .build();
* LookupServiceSettings.newHttpJsonBuilder().build();
* LookupServiceClient lookupServiceClient = LookupServiceClient.create(lookupServiceSettings);
* }</pre>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,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
* RegistrationServiceSettings registrationServiceSettings =
* RegistrationServiceSettings.newBuilder()
* .setTransportChannelProvider(
* RegistrationServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
* .build();
* RegistrationServiceSettings.newHttpJsonBuilder().build();
* RegistrationServiceClient registrationServiceClient =
* RegistrationServiceClient.create(registrationServiceSettings);
* }</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START servicedirectory_v1_generated_lookupserviceclient_create_setcredentialsprovider_sync]
// [START servicedirectory_v1_generated_LookupService_Create_SetCredentialsProvider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.servicedirectory.v1.LookupServiceClient;
import com.google.cloud.servicedirectory.v1.LookupServiceSettings;
Expand All @@ -41,4 +41,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
LookupServiceClient lookupServiceClient = LookupServiceClient.create(lookupServiceSettings);
}
}
// [END servicedirectory_v1_generated_lookupserviceclient_create_setcredentialsprovider_sync]
// [END servicedirectory_v1_generated_LookupService_Create_SetCredentialsProvider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START servicedirectory_v1_generated_lookupserviceclient_create_setcredentialsprovider1_sync]
// [START servicedirectory_v1_generated_LookupService_Create_SetCredentialsProvider1_sync]
import com.google.cloud.servicedirectory.v1.LookupServiceClient;
import com.google.cloud.servicedirectory.v1.LookupServiceSettings;

Expand All @@ -33,11 +33,8 @@ 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
LookupServiceSettings lookupServiceSettings =
LookupServiceSettings.newBuilder()
.setTransportChannelProvider(
LookupServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
.build();
LookupServiceSettings.newHttpJsonBuilder().build();
LookupServiceClient lookupServiceClient = LookupServiceClient.create(lookupServiceSettings);
}
}
// [END servicedirectory_v1_generated_lookupserviceclient_create_setcredentialsprovider1_sync]
// [END servicedirectory_v1_generated_LookupService_Create_SetCredentialsProvider1_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START servicedirectory_v1_generated_lookupserviceclient_create_setendpoint_sync]
// [START servicedirectory_v1_generated_LookupService_Create_SetEndpoint_sync]
import com.google.cloud.servicedirectory.v1.LookupServiceClient;
import com.google.cloud.servicedirectory.v1.LookupServiceSettings;
import com.google.cloud.servicedirectory.v1.myEndpoint;
Expand All @@ -38,4 +38,4 @@ public static void syncCreateSetEndpoint() throws Exception {
LookupServiceClient lookupServiceClient = LookupServiceClient.create(lookupServiceSettings);
}
}
// [END servicedirectory_v1_generated_lookupserviceclient_create_setendpoint_sync]
// [END servicedirectory_v1_generated_LookupService_Create_SetEndpoint_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START servicedirectory_v1_generated_lookupserviceclient_resolveservice_async]
// [START servicedirectory_v1_generated_LookupService_ResolveService_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.servicedirectory.v1.LookupServiceClient;
import com.google.cloud.servicedirectory.v1.ResolveServiceRequest;
Expand Down Expand Up @@ -50,4 +50,4 @@ public static void asyncResolveService() throws Exception {
}
}
}
// [END servicedirectory_v1_generated_lookupserviceclient_resolveservice_async]
// [END servicedirectory_v1_generated_LookupService_ResolveService_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START servicedirectory_v1_generated_lookupserviceclient_resolveservice_sync]
// [START servicedirectory_v1_generated_LookupService_ResolveService_sync]
import com.google.cloud.servicedirectory.v1.LookupServiceClient;
import com.google.cloud.servicedirectory.v1.ResolveServiceRequest;
import com.google.cloud.servicedirectory.v1.ResolveServiceResponse;
Expand Down Expand Up @@ -46,4 +46,4 @@ public static void syncResolveService() throws Exception {
}
}
}
// [END servicedirectory_v1_generated_lookupserviceclient_resolveservice_sync]
// [END servicedirectory_v1_generated_LookupService_ResolveService_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START servicedirectory_v1_generated_lookupservicesettings_resolveservice_sync]
// [START servicedirectory_v1_generated_LookupServiceSettings_ResolveService_sync]
import com.google.cloud.servicedirectory.v1.LookupServiceSettings;
import java.time.Duration;

Expand All @@ -42,4 +42,4 @@ public static void syncResolveService() throws Exception {
LookupServiceSettings lookupServiceSettings = lookupServiceSettingsBuilder.build();
}
}
// [END servicedirectory_v1_generated_lookupservicesettings_resolveservice_sync]
// [END servicedirectory_v1_generated_LookupServiceSettings_ResolveService_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START servicedirectory_v1_generated_registrationserviceclient_create_setcredentialsprovider_sync]
// [START servicedirectory_v1_generated_RegistrationService_Create_SetCredentialsProvider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.servicedirectory.v1.RegistrationServiceClient;
import com.google.cloud.servicedirectory.v1.RegistrationServiceSettings;
Expand All @@ -42,4 +42,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
RegistrationServiceClient.create(registrationServiceSettings);
}
}
// [END servicedirectory_v1_generated_registrationserviceclient_create_setcredentialsprovider_sync]
// [END servicedirectory_v1_generated_RegistrationService_Create_SetCredentialsProvider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START servicedirectory_v1_generated_registrationserviceclient_create_setcredentialsprovider1_sync]
// [START servicedirectory_v1_generated_RegistrationService_Create_SetCredentialsProvider1_sync]
import com.google.cloud.servicedirectory.v1.RegistrationServiceClient;
import com.google.cloud.servicedirectory.v1.RegistrationServiceSettings;

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
RegistrationServiceSettings registrationServiceSettings =
RegistrationServiceSettings.newBuilder()
.setTransportChannelProvider(
RegistrationServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
.build();
RegistrationServiceSettings.newHttpJsonBuilder().build();
RegistrationServiceClient registrationServiceClient =
RegistrationServiceClient.create(registrationServiceSettings);
}
}
// [END servicedirectory_v1_generated_registrationserviceclient_create_setcredentialsprovider1_sync]
// [END servicedirectory_v1_generated_RegistrationService_Create_SetCredentialsProvider1_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START servicedirectory_v1_generated_registrationserviceclient_create_setendpoint_sync]
// [START servicedirectory_v1_generated_RegistrationService_Create_SetEndpoint_sync]
import com.google.cloud.servicedirectory.v1.RegistrationServiceClient;
import com.google.cloud.servicedirectory.v1.RegistrationServiceSettings;
import com.google.cloud.servicedirectory.v1.myEndpoint;
Expand All @@ -39,4 +39,4 @@ public static void syncCreateSetEndpoint() throws Exception {
RegistrationServiceClient.create(registrationServiceSettings);
}
}
// [END servicedirectory_v1_generated_registrationserviceclient_create_setendpoint_sync]
// [END servicedirectory_v1_generated_RegistrationService_Create_SetEndpoint_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

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

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

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

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

// [START servicedirectory_v1_generated_registrationserviceclient_createendpoint_servicenameendpointstring_sync]
// [START servicedirectory_v1_generated_RegistrationService_CreateEndpoint_ServicenameEndpointString_sync]
import com.google.cloud.servicedirectory.v1.Endpoint;
import com.google.cloud.servicedirectory.v1.RegistrationServiceClient;
import com.google.cloud.servicedirectory.v1.ServiceName;
Expand All @@ -41,4 +41,4 @@ public static void syncCreateEndpointServicenameEndpointString() throws Exceptio
}
}
}
// [END servicedirectory_v1_generated_registrationserviceclient_createendpoint_servicenameendpointstring_sync]
// [END servicedirectory_v1_generated_RegistrationService_CreateEndpoint_ServicenameEndpointString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START servicedirectory_v1_generated_registrationserviceclient_createendpoint_stringendpointstring_sync]
// [START servicedirectory_v1_generated_RegistrationService_CreateEndpoint_StringEndpointString_sync]
import com.google.cloud.servicedirectory.v1.Endpoint;
import com.google.cloud.servicedirectory.v1.RegistrationServiceClient;
import com.google.cloud.servicedirectory.v1.ServiceName;
Expand All @@ -42,4 +42,4 @@ public static void syncCreateEndpointStringEndpointString() throws Exception {
}
}
}
// [END servicedirectory_v1_generated_registrationserviceclient_createendpoint_stringendpointstring_sync]
// [END servicedirectory_v1_generated_RegistrationService_CreateEndpoint_StringEndpointString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START servicedirectory_v1_generated_registrationserviceclient_createnamespace_async]
// [START servicedirectory_v1_generated_RegistrationService_CreateNamespace_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.servicedirectory.v1.CreateNamespaceRequest;
import com.google.cloud.servicedirectory.v1.LocationName;
Expand Down Expand Up @@ -49,4 +49,4 @@ public static void asyncCreateNamespace() throws Exception {
}
}
}
// [END servicedirectory_v1_generated_registrationserviceclient_createnamespace_async]
// [END servicedirectory_v1_generated_RegistrationService_CreateNamespace_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START servicedirectory_v1_generated_registrationserviceclient_createnamespace_sync]
// [START servicedirectory_v1_generated_RegistrationService_CreateNamespace_sync]
import com.google.cloud.servicedirectory.v1.CreateNamespaceRequest;
import com.google.cloud.servicedirectory.v1.LocationName;
import com.google.cloud.servicedirectory.v1.Namespace;
Expand Down Expand Up @@ -45,4 +45,4 @@ public static void syncCreateNamespace() throws Exception {
}
}
}
// [END servicedirectory_v1_generated_registrationserviceclient_createnamespace_sync]
// [END servicedirectory_v1_generated_RegistrationService_CreateNamespace_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START servicedirectory_v1_generated_registrationserviceclient_createnamespace_locationnamenamespacestring_sync]
// [START servicedirectory_v1_generated_RegistrationService_CreateNamespace_LocationnameNamespaceString_sync]
import com.google.cloud.servicedirectory.v1.LocationName;
import com.google.cloud.servicedirectory.v1.Namespace;
import com.google.cloud.servicedirectory.v1.RegistrationServiceClient;
Expand All @@ -42,4 +42,4 @@ public static void syncCreateNamespaceLocationnameNamespaceString() throws Excep
}
}
}
// [END servicedirectory_v1_generated_registrationserviceclient_createnamespace_locationnamenamespacestring_sync]
// [END servicedirectory_v1_generated_RegistrationService_CreateNamespace_LocationnameNamespaceString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START servicedirectory_v1_generated_registrationserviceclient_createnamespace_stringnamespacestring_sync]
// [START servicedirectory_v1_generated_RegistrationService_CreateNamespace_StringNamespaceString_sync]
import com.google.cloud.servicedirectory.v1.LocationName;
import com.google.cloud.servicedirectory.v1.Namespace;
import com.google.cloud.servicedirectory.v1.RegistrationServiceClient;
Expand All @@ -42,4 +42,4 @@ public static void syncCreateNamespaceStringNamespaceString() throws Exception {
}
}
}
// [END servicedirectory_v1_generated_registrationserviceclient_createnamespace_stringnamespacestring_sync]
// [END servicedirectory_v1_generated_RegistrationService_CreateNamespace_StringNamespaceString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START servicedirectory_v1_generated_registrationserviceclient_createservice_async]
// [START servicedirectory_v1_generated_RegistrationService_CreateService_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.servicedirectory.v1.CreateServiceRequest;
import com.google.cloud.servicedirectory.v1.NamespaceName;
Expand Down Expand Up @@ -49,4 +49,4 @@ public static void asyncCreateService() throws Exception {
}
}
}
// [END servicedirectory_v1_generated_registrationserviceclient_createservice_async]
// [END servicedirectory_v1_generated_RegistrationService_CreateService_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START servicedirectory_v1_generated_registrationserviceclient_createservice_sync]
// [START servicedirectory_v1_generated_RegistrationService_CreateService_sync]
import com.google.cloud.servicedirectory.v1.CreateServiceRequest;
import com.google.cloud.servicedirectory.v1.NamespaceName;
import com.google.cloud.servicedirectory.v1.RegistrationServiceClient;
Expand Down Expand Up @@ -45,4 +45,4 @@ public static void syncCreateService() throws Exception {
}
}
}
// [END servicedirectory_v1_generated_registrationserviceclient_createservice_sync]
// [END servicedirectory_v1_generated_RegistrationService_CreateService_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START servicedirectory_v1_generated_registrationserviceclient_createservice_namespacenameservicestring_sync]
// [START servicedirectory_v1_generated_RegistrationService_CreateService_NamespacenameServiceString_sync]
import com.google.cloud.servicedirectory.v1.NamespaceName;
import com.google.cloud.servicedirectory.v1.RegistrationServiceClient;
import com.google.cloud.servicedirectory.v1.Service;
Expand All @@ -41,4 +41,4 @@ public static void syncCreateServiceNamespacenameServiceString() throws Exceptio
}
}
}
// [END servicedirectory_v1_generated_registrationserviceclient_createservice_namespacenameservicestring_sync]
// [END servicedirectory_v1_generated_RegistrationService_CreateService_NamespacenameServiceString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START servicedirectory_v1_generated_registrationserviceclient_createservice_stringservicestring_sync]
// [START servicedirectory_v1_generated_RegistrationService_CreateService_StringServiceString_sync]
import com.google.cloud.servicedirectory.v1.NamespaceName;
import com.google.cloud.servicedirectory.v1.RegistrationServiceClient;
import com.google.cloud.servicedirectory.v1.Service;
Expand All @@ -41,4 +41,4 @@ public static void syncCreateServiceStringServiceString() throws Exception {
}
}
}
// [END servicedirectory_v1_generated_registrationserviceclient_createservice_stringservicestring_sync]
// [END servicedirectory_v1_generated_RegistrationService_CreateService_StringServiceString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START servicedirectory_v1_generated_registrationserviceclient_deleteendpoint_async]
// [START servicedirectory_v1_generated_RegistrationService_DeleteEndpoint_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.servicedirectory.v1.DeleteEndpointRequest;
import com.google.cloud.servicedirectory.v1.EndpointName;
Expand Down Expand Up @@ -50,4 +50,4 @@ public static void asyncDeleteEndpoint() throws Exception {
}
}
}
// [END servicedirectory_v1_generated_registrationserviceclient_deleteendpoint_async]
// [END servicedirectory_v1_generated_RegistrationService_DeleteEndpoint_async]
Loading

0 comments on commit a937abe

Please sign in to comment.