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

- [ ] 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 d9abbe6 commit 7fba1d6
Show file tree
Hide file tree
Showing 94 changed files with 188 additions and 222 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,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
* BinauthzManagementServiceV1Beta1Settings binauthzManagementServiceV1Beta1Settings =
* BinauthzManagementServiceV1Beta1Settings.newBuilder()
* .setTransportChannelProvider(
* BinauthzManagementServiceV1Beta1Settings.defaultHttpJsonTransportProviderBuilder()
* .build())
* .build();
* BinauthzManagementServiceV1Beta1Settings.newHttpJsonBuilder().build();
* BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create(binauthzManagementServiceV1Beta1Settings);
* }</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,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
* SystemPolicyV1Beta1Settings systemPolicyV1Beta1Settings =
* SystemPolicyV1Beta1Settings.newBuilder()
* .setTransportChannelProvider(
* SystemPolicyV1Beta1Settings.defaultHttpJsonTransportProviderBuilder().build())
* .build();
* SystemPolicyV1Beta1Settings.newHttpJsonBuilder().build();
* SystemPolicyV1Beta1Client systemPolicyV1Beta1Client =
* SystemPolicyV1Beta1Client.create(systemPolicyV1Beta1Settings);
* }</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +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
* BinauthzManagementServiceV1Settings binauthzManagementServiceV1Settings =
* BinauthzManagementServiceV1Settings.newBuilder()
* .setTransportChannelProvider(
* BinauthzManagementServiceV1Settings.defaultHttpJsonTransportProviderBuilder()
* .build())
* .build();
* BinauthzManagementServiceV1Settings.newHttpJsonBuilder().build();
* BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create(binauthzManagementServiceV1Settings);
* }</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,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
* SystemPolicyV1Settings systemPolicyV1Settings =
* SystemPolicyV1Settings.newBuilder()
* .setTransportChannelProvider(
* SystemPolicyV1Settings.defaultHttpJsonTransportProviderBuilder().build())
* .build();
* SystemPolicyV1Settings.newHttpJsonBuilder().build();
* SystemPolicyV1Client systemPolicyV1Client = SystemPolicyV1Client.create(systemPolicyV1Settings);
* }</pre>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,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
* ValidationHelperV1Settings validationHelperV1Settings =
* ValidationHelperV1Settings.newBuilder()
* .setTransportChannelProvider(
* ValidationHelperV1Settings.defaultHttpJsonTransportProviderBuilder().build())
* .build();
* ValidationHelperV1Settings.newHttpJsonBuilder().build();
* ValidationHelperV1Client validationHelperV1Client =
* ValidationHelperV1Client.create(validationHelperV1Settings);
* }</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_create_setcredentialsprovider_sync]
// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_Create_SetCredentialsProvider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client;
import com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Settings;
Expand All @@ -42,4 +42,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
BinauthzManagementServiceV1Beta1Client.create(binauthzManagementServiceV1Beta1Settings);
}
}
// [END binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_create_setcredentialsprovider_sync]
// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_Create_SetCredentialsProvider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_create_setcredentialsprovider1_sync]
// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_Create_SetCredentialsProvider1_sync]
import com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client;
import com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Settings;

Expand All @@ -33,13 +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
BinauthzManagementServiceV1Beta1Settings binauthzManagementServiceV1Beta1Settings =
BinauthzManagementServiceV1Beta1Settings.newBuilder()
.setTransportChannelProvider(
BinauthzManagementServiceV1Beta1Settings.defaultHttpJsonTransportProviderBuilder()
.build())
.build();
BinauthzManagementServiceV1Beta1Settings.newHttpJsonBuilder().build();
BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
BinauthzManagementServiceV1Beta1Client.create(binauthzManagementServiceV1Beta1Settings);
}
}
// [END binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_create_setcredentialsprovider1_sync]
// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_Create_SetCredentialsProvider1_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_create_setendpoint_sync]
// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_Create_SetEndpoint_sync]
import com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client;
import com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Settings;
import com.google.cloud.binaryauthorization.v1beta1.myEndpoint;
Expand All @@ -39,4 +39,4 @@ public static void syncCreateSetEndpoint() throws Exception {
BinauthzManagementServiceV1Beta1Client.create(binauthzManagementServiceV1Beta1Settings);
}
}
// [END binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_create_setendpoint_sync]
// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_Create_SetEndpoint_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_createattestor_async]
// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_CreateAttestor_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.binaryauthorization.v1beta1.Attestor;
import com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client;
Expand Down Expand Up @@ -50,4 +50,4 @@ public static void asyncCreateAttestor() throws Exception {
}
}
}
// [END binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_createattestor_async]
// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_CreateAttestor_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_createattestor_sync]
// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_CreateAttestor_sync]
import com.google.cloud.binaryauthorization.v1beta1.Attestor;
import com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client;
import com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest;
Expand Down Expand Up @@ -46,4 +46,4 @@ public static void syncCreateAttestor() throws Exception {
}
}
}
// [END binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_createattestor_sync]
// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_CreateAttestor_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_createattestor_projectnamestringattestor_sync]
// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_CreateAttestor_ProjectnameStringAttestor_sync]
import com.google.cloud.binaryauthorization.v1beta1.Attestor;
import com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client;
import com.google.cloud.binaryauthorization.v1beta1.ProjectName;
Expand All @@ -43,4 +43,4 @@ public static void syncCreateAttestorProjectnameStringAttestor() throws Exceptio
}
}
}
// [END binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_createattestor_projectnamestringattestor_sync]
// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_CreateAttestor_ProjectnameStringAttestor_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_createattestor_stringstringattestor_sync]
// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_CreateAttestor_StringStringAttestor_sync]
import com.google.cloud.binaryauthorization.v1beta1.Attestor;
import com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client;
import com.google.cloud.binaryauthorization.v1beta1.ProjectName;
Expand All @@ -43,4 +43,4 @@ public static void syncCreateAttestorStringStringAttestor() throws Exception {
}
}
}
// [END binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_createattestor_stringstringattestor_sync]
// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_CreateAttestor_StringStringAttestor_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_deleteattestor_async]
// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_DeleteAttestor_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.binaryauthorization.v1beta1.AttestorName;
import com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client;
Expand Down Expand Up @@ -48,4 +48,4 @@ public static void asyncDeleteAttestor() throws Exception {
}
}
}
// [END binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_deleteattestor_async]
// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_DeleteAttestor_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_deleteattestor_sync]
// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_DeleteAttestor_sync]
import com.google.cloud.binaryauthorization.v1beta1.AttestorName;
import com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client;
import com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest;
Expand Down Expand Up @@ -44,4 +44,4 @@ public static void syncDeleteAttestor() throws Exception {
}
}
}
// [END binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_deleteattestor_sync]
// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_DeleteAttestor_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_deleteattestor_attestorname_sync]
// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_DeleteAttestor_Attestorname_sync]
import com.google.cloud.binaryauthorization.v1beta1.AttestorName;
import com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client;
import com.google.protobuf.Empty;
Expand All @@ -40,4 +40,4 @@ public static void syncDeleteAttestorAttestorname() throws Exception {
}
}
}
// [END binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_deleteattestor_attestorname_sync]
// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_DeleteAttestor_Attestorname_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_deleteattestor_string_sync]
// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_DeleteAttestor_String_sync]
import com.google.cloud.binaryauthorization.v1beta1.AttestorName;
import com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client;
import com.google.protobuf.Empty;
Expand All @@ -40,4 +40,4 @@ public static void syncDeleteAttestorString() throws Exception {
}
}
}
// [END binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_deleteattestor_string_sync]
// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_DeleteAttestor_String_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_getattestor_async]
// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_GetAttestor_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.binaryauthorization.v1beta1.Attestor;
import com.google.cloud.binaryauthorization.v1beta1.AttestorName;
Expand Down Expand Up @@ -48,4 +48,4 @@ public static void asyncGetAttestor() throws Exception {
}
}
}
// [END binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_getattestor_async]
// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_GetAttestor_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_getattestor_sync]
// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_GetAttestor_sync]
import com.google.cloud.binaryauthorization.v1beta1.Attestor;
import com.google.cloud.binaryauthorization.v1beta1.AttestorName;
import com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client;
Expand Down Expand Up @@ -44,4 +44,4 @@ public static void syncGetAttestor() throws Exception {
}
}
}
// [END binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_getattestor_sync]
// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_GetAttestor_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_getattestor_attestorname_sync]
// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_GetAttestor_Attestorname_sync]
import com.google.cloud.binaryauthorization.v1beta1.Attestor;
import com.google.cloud.binaryauthorization.v1beta1.AttestorName;
import com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client;
Expand All @@ -40,4 +40,4 @@ public static void syncGetAttestorAttestorname() throws Exception {
}
}
}
// [END binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_getattestor_attestorname_sync]
// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_GetAttestor_Attestorname_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_getattestor_string_sync]
// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_GetAttestor_String_sync]
import com.google.cloud.binaryauthorization.v1beta1.Attestor;
import com.google.cloud.binaryauthorization.v1beta1.AttestorName;
import com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client;
Expand All @@ -40,4 +40,4 @@ public static void syncGetAttestorString() throws Exception {
}
}
}
// [END binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_getattestor_string_sync]
// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_GetAttestor_String_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_getpolicy_async]
// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_GetPolicy_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client;
import com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest;
Expand Down Expand Up @@ -48,4 +48,4 @@ public static void asyncGetPolicy() throws Exception {
}
}
}
// [END binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_getpolicy_async]
// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_GetPolicy_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_getpolicy_sync]
// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_GetPolicy_sync]
import com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client;
import com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest;
import com.google.cloud.binaryauthorization.v1beta1.Policy;
Expand Down Expand Up @@ -44,4 +44,4 @@ public static void syncGetPolicy() throws Exception {
}
}
}
// [END binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_getpolicy_sync]
// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_GetPolicy_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_getpolicy_policyname_sync]
// [START binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_GetPolicy_Policyname_sync]
import com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client;
import com.google.cloud.binaryauthorization.v1beta1.Policy;
import com.google.cloud.binaryauthorization.v1beta1.PolicyName;
Expand All @@ -40,4 +40,4 @@ public static void syncGetPolicyPolicyname() throws Exception {
}
}
}
// [END binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_getpolicy_policyname_sync]
// [END binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_GetPolicy_Policyname_sync]
Loading

0 comments on commit 7fba1d6

Please sign in to comment.