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

- [ ] 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 bb41d35 commit e7b0167
Show file tree
Hide file tree
Showing 61 changed files with 122 additions and 128 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,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
* SecretManagerServiceSettings secretManagerServiceSettings =
* SecretManagerServiceSettings.newBuilder()
* .setTransportChannelProvider(
* SecretManagerServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
* .build();
* SecretManagerServiceSettings.newHttpJsonBuilder().build();
* SecretManagerServiceClient secretManagerServiceClient =
* SecretManagerServiceClient.create(secretManagerServiceSettings);
* }</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START secretmanager_v1_generated_secretmanagerserviceclient_accesssecretversion_async]
// [START secretmanager_v1_generated_SecretManagerService_AccessSecretVersion_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.secretmanager.v1.AccessSecretVersionRequest;
import com.google.cloud.secretmanager.v1.AccessSecretVersionResponse;
Expand Down Expand Up @@ -48,4 +48,4 @@ public static void asyncAccessSecretVersion() throws Exception {
}
}
}
// [END secretmanager_v1_generated_secretmanagerserviceclient_accesssecretversion_async]
// [END secretmanager_v1_generated_SecretManagerService_AccessSecretVersion_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START secretmanager_v1_generated_secretmanagerserviceclient_accesssecretversion_sync]
// [START secretmanager_v1_generated_SecretManagerService_AccessSecretVersion_sync]
import com.google.cloud.secretmanager.v1.AccessSecretVersionRequest;
import com.google.cloud.secretmanager.v1.AccessSecretVersionResponse;
import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
Expand Down Expand Up @@ -45,4 +45,4 @@ public static void syncAccessSecretVersion() throws Exception {
}
}
}
// [END secretmanager_v1_generated_secretmanagerserviceclient_accesssecretversion_sync]
// [END secretmanager_v1_generated_SecretManagerService_AccessSecretVersion_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START secretmanager_v1_generated_secretmanagerserviceclient_accesssecretversion_secretversionname_sync]
// [START secretmanager_v1_generated_SecretManagerService_AccessSecretVersion_Secretversionname_sync]
import com.google.cloud.secretmanager.v1.AccessSecretVersionResponse;
import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
import com.google.cloud.secretmanager.v1.SecretVersionName;
Expand All @@ -40,4 +40,4 @@ public static void syncAccessSecretVersionSecretversionname() throws Exception {
}
}
}
// [END secretmanager_v1_generated_secretmanagerserviceclient_accesssecretversion_secretversionname_sync]
// [END secretmanager_v1_generated_SecretManagerService_AccessSecretVersion_Secretversionname_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START secretmanager_v1_generated_secretmanagerserviceclient_accesssecretversion_string_sync]
// [START secretmanager_v1_generated_SecretManagerService_AccessSecretVersion_String_sync]
import com.google.cloud.secretmanager.v1.AccessSecretVersionResponse;
import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
import com.google.cloud.secretmanager.v1.SecretVersionName;
Expand All @@ -40,4 +40,4 @@ public static void syncAccessSecretVersionString() throws Exception {
}
}
}
// [END secretmanager_v1_generated_secretmanagerserviceclient_accesssecretversion_string_sync]
// [END secretmanager_v1_generated_SecretManagerService_AccessSecretVersion_String_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START secretmanager_v1_generated_secretmanagerserviceclient_addsecretversion_async]
// [START secretmanager_v1_generated_SecretManagerService_AddSecretVersion_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.secretmanager.v1.AddSecretVersionRequest;
import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
Expand Down Expand Up @@ -50,4 +50,4 @@ public static void asyncAddSecretVersion() throws Exception {
}
}
}
// [END secretmanager_v1_generated_secretmanagerserviceclient_addsecretversion_async]
// [END secretmanager_v1_generated_SecretManagerService_AddSecretVersion_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START secretmanager_v1_generated_secretmanagerserviceclient_addsecretversion_sync]
// [START secretmanager_v1_generated_SecretManagerService_AddSecretVersion_sync]
import com.google.cloud.secretmanager.v1.AddSecretVersionRequest;
import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
import com.google.cloud.secretmanager.v1.SecretName;
Expand Down Expand Up @@ -46,4 +46,4 @@ public static void syncAddSecretVersion() throws Exception {
}
}
}
// [END secretmanager_v1_generated_secretmanagerserviceclient_addsecretversion_sync]
// [END secretmanager_v1_generated_SecretManagerService_AddSecretVersion_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START secretmanager_v1_generated_secretmanagerserviceclient_addsecretversion_secretnamesecretpayload_sync]
// [START secretmanager_v1_generated_SecretManagerService_AddSecretVersion_SecretnameSecretpayload_sync]
import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
import com.google.cloud.secretmanager.v1.SecretName;
import com.google.cloud.secretmanager.v1.SecretPayload;
Expand All @@ -42,4 +42,4 @@ public static void syncAddSecretVersionSecretnameSecretpayload() throws Exceptio
}
}
}
// [END secretmanager_v1_generated_secretmanagerserviceclient_addsecretversion_secretnamesecretpayload_sync]
// [END secretmanager_v1_generated_SecretManagerService_AddSecretVersion_SecretnameSecretpayload_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START secretmanager_v1_generated_secretmanagerserviceclient_addsecretversion_stringsecretpayload_sync]
// [START secretmanager_v1_generated_SecretManagerService_AddSecretVersion_StringSecretpayload_sync]
import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
import com.google.cloud.secretmanager.v1.SecretName;
import com.google.cloud.secretmanager.v1.SecretPayload;
Expand All @@ -42,4 +42,4 @@ public static void syncAddSecretVersionStringSecretpayload() throws Exception {
}
}
}
// [END secretmanager_v1_generated_secretmanagerserviceclient_addsecretversion_stringsecretpayload_sync]
// [END secretmanager_v1_generated_SecretManagerService_AddSecretVersion_StringSecretpayload_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START secretmanager_v1_generated_secretmanagerserviceclient_create_setcredentialsprovider_sync]
// [START secretmanager_v1_generated_SecretManagerService_Create_SetCredentialsProvider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
import com.google.cloud.secretmanager.v1.SecretManagerServiceSettings;
Expand All @@ -42,4 +42,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
SecretManagerServiceClient.create(secretManagerServiceSettings);
}
}
// [END secretmanager_v1_generated_secretmanagerserviceclient_create_setcredentialsprovider_sync]
// [END secretmanager_v1_generated_SecretManagerService_Create_SetCredentialsProvider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START secretmanager_v1_generated_secretmanagerserviceclient_create_setcredentialsprovider1_sync]
// [START secretmanager_v1_generated_SecretManagerService_Create_SetCredentialsProvider1_sync]
import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
import com.google.cloud.secretmanager.v1.SecretManagerServiceSettings;

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
SecretManagerServiceSettings secretManagerServiceSettings =
SecretManagerServiceSettings.newBuilder()
.setTransportChannelProvider(
SecretManagerServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
.build();
SecretManagerServiceSettings.newHttpJsonBuilder().build();
SecretManagerServiceClient secretManagerServiceClient =
SecretManagerServiceClient.create(secretManagerServiceSettings);
}
}
// [END secretmanager_v1_generated_secretmanagerserviceclient_create_setcredentialsprovider1_sync]
// [END secretmanager_v1_generated_SecretManagerService_Create_SetCredentialsProvider1_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START secretmanager_v1_generated_secretmanagerserviceclient_create_setendpoint_sync]
// [START secretmanager_v1_generated_SecretManagerService_Create_SetEndpoint_sync]
import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
import com.google.cloud.secretmanager.v1.SecretManagerServiceSettings;
import com.google.cloud.secretmanager.v1.myEndpoint;
Expand All @@ -39,4 +39,4 @@ public static void syncCreateSetEndpoint() throws Exception {
SecretManagerServiceClient.create(secretManagerServiceSettings);
}
}
// [END secretmanager_v1_generated_secretmanagerserviceclient_create_setendpoint_sync]
// [END secretmanager_v1_generated_SecretManagerService_Create_SetEndpoint_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START secretmanager_v1_generated_secretmanagerserviceclient_createsecret_async]
// [START secretmanager_v1_generated_SecretManagerService_CreateSecret_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.secretmanager.v1.CreateSecretRequest;
import com.google.cloud.secretmanager.v1.ProjectName;
Expand Down Expand Up @@ -50,4 +50,4 @@ public static void asyncCreateSecret() throws Exception {
}
}
}
// [END secretmanager_v1_generated_secretmanagerserviceclient_createsecret_async]
// [END secretmanager_v1_generated_SecretManagerService_CreateSecret_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START secretmanager_v1_generated_secretmanagerserviceclient_createsecret_sync]
// [START secretmanager_v1_generated_SecretManagerService_CreateSecret_sync]
import com.google.cloud.secretmanager.v1.CreateSecretRequest;
import com.google.cloud.secretmanager.v1.ProjectName;
import com.google.cloud.secretmanager.v1.Secret;
Expand Down Expand Up @@ -46,4 +46,4 @@ public static void syncCreateSecret() throws Exception {
}
}
}
// [END secretmanager_v1_generated_secretmanagerserviceclient_createsecret_sync]
// [END secretmanager_v1_generated_SecretManagerService_CreateSecret_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START secretmanager_v1_generated_secretmanagerserviceclient_createsecret_projectnamestringsecret_sync]
// [START secretmanager_v1_generated_SecretManagerService_CreateSecret_ProjectnameStringSecret_sync]
import com.google.cloud.secretmanager.v1.ProjectName;
import com.google.cloud.secretmanager.v1.Secret;
import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
Expand All @@ -42,4 +42,4 @@ public static void syncCreateSecretProjectnameStringSecret() throws Exception {
}
}
}
// [END secretmanager_v1_generated_secretmanagerserviceclient_createsecret_projectnamestringsecret_sync]
// [END secretmanager_v1_generated_SecretManagerService_CreateSecret_ProjectnameStringSecret_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START secretmanager_v1_generated_secretmanagerserviceclient_createsecret_stringstringsecret_sync]
// [START secretmanager_v1_generated_SecretManagerService_CreateSecret_StringStringSecret_sync]
import com.google.cloud.secretmanager.v1.ProjectName;
import com.google.cloud.secretmanager.v1.Secret;
import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
Expand All @@ -42,4 +42,4 @@ public static void syncCreateSecretStringStringSecret() throws Exception {
}
}
}
// [END secretmanager_v1_generated_secretmanagerserviceclient_createsecret_stringstringsecret_sync]
// [END secretmanager_v1_generated_SecretManagerService_CreateSecret_StringStringSecret_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START secretmanager_v1_generated_secretmanagerserviceclient_deletesecret_async]
// [START secretmanager_v1_generated_SecretManagerService_DeleteSecret_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.secretmanager.v1.DeleteSecretRequest;
import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
Expand Down Expand Up @@ -49,4 +49,4 @@ public static void asyncDeleteSecret() throws Exception {
}
}
}
// [END secretmanager_v1_generated_secretmanagerserviceclient_deletesecret_async]
// [END secretmanager_v1_generated_SecretManagerService_DeleteSecret_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START secretmanager_v1_generated_secretmanagerserviceclient_deletesecret_sync]
// [START secretmanager_v1_generated_SecretManagerService_DeleteSecret_sync]
import com.google.cloud.secretmanager.v1.DeleteSecretRequest;
import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
import com.google.cloud.secretmanager.v1.SecretName;
Expand Down Expand Up @@ -45,4 +45,4 @@ public static void syncDeleteSecret() throws Exception {
}
}
}
// [END secretmanager_v1_generated_secretmanagerserviceclient_deletesecret_sync]
// [END secretmanager_v1_generated_SecretManagerService_DeleteSecret_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START secretmanager_v1_generated_secretmanagerserviceclient_deletesecret_secretname_sync]
// [START secretmanager_v1_generated_SecretManagerService_DeleteSecret_Secretname_sync]
import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
import com.google.cloud.secretmanager.v1.SecretName;
import com.google.protobuf.Empty;
Expand All @@ -40,4 +40,4 @@ public static void syncDeleteSecretSecretname() throws Exception {
}
}
}
// [END secretmanager_v1_generated_secretmanagerserviceclient_deletesecret_secretname_sync]
// [END secretmanager_v1_generated_SecretManagerService_DeleteSecret_Secretname_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START secretmanager_v1_generated_secretmanagerserviceclient_deletesecret_string_sync]
// [START secretmanager_v1_generated_SecretManagerService_DeleteSecret_String_sync]
import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
import com.google.cloud.secretmanager.v1.SecretName;
import com.google.protobuf.Empty;
Expand All @@ -40,4 +40,4 @@ public static void syncDeleteSecretString() throws Exception {
}
}
}
// [END secretmanager_v1_generated_secretmanagerserviceclient_deletesecret_string_sync]
// [END secretmanager_v1_generated_SecretManagerService_DeleteSecret_String_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START secretmanager_v1_generated_secretmanagerserviceclient_destroysecretversion_async]
// [START secretmanager_v1_generated_SecretManagerService_DestroySecretVersion_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.secretmanager.v1.DestroySecretVersionRequest;
import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
Expand Down Expand Up @@ -49,4 +49,4 @@ public static void asyncDestroySecretVersion() throws Exception {
}
}
}
// [END secretmanager_v1_generated_secretmanagerserviceclient_destroysecretversion_async]
// [END secretmanager_v1_generated_SecretManagerService_DestroySecretVersion_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START secretmanager_v1_generated_secretmanagerserviceclient_destroysecretversion_sync]
// [START secretmanager_v1_generated_SecretManagerService_DestroySecretVersion_sync]
import com.google.cloud.secretmanager.v1.DestroySecretVersionRequest;
import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
import com.google.cloud.secretmanager.v1.SecretVersion;
Expand Down Expand Up @@ -45,4 +45,4 @@ public static void syncDestroySecretVersion() throws Exception {
}
}
}
// [END secretmanager_v1_generated_secretmanagerserviceclient_destroysecretversion_sync]
// [END secretmanager_v1_generated_SecretManagerService_DestroySecretVersion_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START secretmanager_v1_generated_secretmanagerserviceclient_destroysecretversion_secretversionname_sync]
// [START secretmanager_v1_generated_SecretManagerService_DestroySecretVersion_Secretversionname_sync]
import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
import com.google.cloud.secretmanager.v1.SecretVersion;
import com.google.cloud.secretmanager.v1.SecretVersionName;
Expand All @@ -40,4 +40,4 @@ public static void syncDestroySecretVersionSecretversionname() throws Exception
}
}
}
// [END secretmanager_v1_generated_secretmanagerserviceclient_destroysecretversion_secretversionname_sync]
// [END secretmanager_v1_generated_SecretManagerService_DestroySecretVersion_Secretversionname_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START secretmanager_v1_generated_secretmanagerserviceclient_destroysecretversion_string_sync]
// [START secretmanager_v1_generated_SecretManagerService_DestroySecretVersion_String_sync]
import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
import com.google.cloud.secretmanager.v1.SecretVersion;
import com.google.cloud.secretmanager.v1.SecretVersionName;
Expand All @@ -40,4 +40,4 @@ public static void syncDestroySecretVersionString() throws Exception {
}
}
}
// [END secretmanager_v1_generated_secretmanagerserviceclient_destroysecretversion_string_sync]
// [END secretmanager_v1_generated_SecretManagerService_DestroySecretVersion_String_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START secretmanager_v1_generated_secretmanagerserviceclient_disablesecretversion_async]
// [START secretmanager_v1_generated_SecretManagerService_DisableSecretVersion_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.secretmanager.v1.DisableSecretVersionRequest;
import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
Expand Down Expand Up @@ -49,4 +49,4 @@ public static void asyncDisableSecretVersion() throws Exception {
}
}
}
// [END secretmanager_v1_generated_secretmanagerserviceclient_disablesecretversion_async]
// [END secretmanager_v1_generated_SecretManagerService_DisableSecretVersion_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START secretmanager_v1_generated_secretmanagerserviceclient_disablesecretversion_sync]
// [START secretmanager_v1_generated_SecretManagerService_DisableSecretVersion_sync]
import com.google.cloud.secretmanager.v1.DisableSecretVersionRequest;
import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
import com.google.cloud.secretmanager.v1.SecretVersion;
Expand Down Expand Up @@ -45,4 +45,4 @@ public static void syncDisableSecretVersion() throws Exception {
}
}
}
// [END secretmanager_v1_generated_secretmanagerserviceclient_disablesecretversion_sync]
// [END secretmanager_v1_generated_SecretManagerService_DisableSecretVersion_sync]
Loading

0 comments on commit e7b0167

Please sign in to comment.