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

- [ ] 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 c806a53 commit 8b3a986
Show file tree
Hide file tree
Showing 116 changed files with 232 additions and 240 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,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
* BackupForGKESettings backupForGKESettings =
* BackupForGKESettings.newBuilder()
* .setTransportChannelProvider(
* BackupForGKESettings.defaultHttpJsonTransportProviderBuilder().build())
* .build();
* BackupForGKESettings backupForGKESettings = BackupForGKESettings.newHttpJsonBuilder().build();
* BackupForGKEClient backupForGKEClient = BackupForGKEClient.create(backupForGKESettings);
* }</pre>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkebackup_v1_generated_backupforgkeclient_create_setcredentialsprovider_sync]
// [START gkebackup_v1_generated_BackupForGKE_Create_SetCredentialsProvider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.gkebackup.v1.BackupForGKEClient;
import com.google.cloud.gkebackup.v1.BackupForGKESettings;
Expand All @@ -41,4 +41,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
BackupForGKEClient backupForGKEClient = BackupForGKEClient.create(backupForGKESettings);
}
}
// [END gkebackup_v1_generated_backupforgkeclient_create_setcredentialsprovider_sync]
// [END gkebackup_v1_generated_BackupForGKE_Create_SetCredentialsProvider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkebackup_v1_generated_backupforgkeclient_create_setcredentialsprovider1_sync]
// [START gkebackup_v1_generated_BackupForGKE_Create_SetCredentialsProvider1_sync]
import com.google.cloud.gkebackup.v1.BackupForGKEClient;
import com.google.cloud.gkebackup.v1.BackupForGKESettings;

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
BackupForGKESettings backupForGKESettings =
BackupForGKESettings.newBuilder()
.setTransportChannelProvider(
BackupForGKESettings.defaultHttpJsonTransportProviderBuilder().build())
.build();
BackupForGKESettings backupForGKESettings = BackupForGKESettings.newHttpJsonBuilder().build();
BackupForGKEClient backupForGKEClient = BackupForGKEClient.create(backupForGKESettings);
}
}
// [END gkebackup_v1_generated_backupforgkeclient_create_setcredentialsprovider1_sync]
// [END gkebackup_v1_generated_BackupForGKE_Create_SetCredentialsProvider1_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkebackup_v1_generated_backupforgkeclient_create_setendpoint_sync]
// [START gkebackup_v1_generated_BackupForGKE_Create_SetEndpoint_sync]
import com.google.cloud.gkebackup.v1.BackupForGKEClient;
import com.google.cloud.gkebackup.v1.BackupForGKESettings;
import com.google.cloud.gkebackup.v1.myEndpoint;
Expand All @@ -38,4 +38,4 @@ public static void syncCreateSetEndpoint() throws Exception {
BackupForGKEClient backupForGKEClient = BackupForGKEClient.create(backupForGKESettings);
}
}
// [END gkebackup_v1_generated_backupforgkeclient_create_setendpoint_sync]
// [END gkebackup_v1_generated_BackupForGKE_Create_SetEndpoint_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkebackup_v1_generated_backupforgkeclient_createbackup_async]
// [START gkebackup_v1_generated_BackupForGKE_CreateBackup_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.gkebackup.v1.Backup;
import com.google.cloud.gkebackup.v1.BackupForGKEClient;
Expand Down Expand Up @@ -49,4 +49,4 @@ public static void asyncCreateBackup() throws Exception {
}
}
}
// [END gkebackup_v1_generated_backupforgkeclient_createbackup_async]
// [END gkebackup_v1_generated_BackupForGKE_CreateBackup_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkebackup_v1_generated_backupforgkeclient_createbackup_lro_async]
// [START gkebackup_v1_generated_BackupForGKE_CreateBackup_LRO_async]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.gkebackup.v1.Backup;
import com.google.cloud.gkebackup.v1.BackupForGKEClient;
Expand Down Expand Up @@ -50,4 +50,4 @@ public static void asyncCreateBackupLRO() throws Exception {
}
}
}
// [END gkebackup_v1_generated_backupforgkeclient_createbackup_lro_async]
// [END gkebackup_v1_generated_BackupForGKE_CreateBackup_LRO_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkebackup_v1_generated_backupforgkeclient_createbackup_sync]
// [START gkebackup_v1_generated_BackupForGKE_CreateBackup_sync]
import com.google.cloud.gkebackup.v1.Backup;
import com.google.cloud.gkebackup.v1.BackupForGKEClient;
import com.google.cloud.gkebackup.v1.BackupPlanName;
Expand Down Expand Up @@ -45,4 +45,4 @@ public static void syncCreateBackup() throws Exception {
}
}
}
// [END gkebackup_v1_generated_backupforgkeclient_createbackup_sync]
// [END gkebackup_v1_generated_BackupForGKE_CreateBackup_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkebackup_v1_generated_backupforgkeclient_createbackup_backupplannamebackupstring_sync]
// [START gkebackup_v1_generated_BackupForGKE_CreateBackup_BackupplannameBackupString_sync]
import com.google.cloud.gkebackup.v1.Backup;
import com.google.cloud.gkebackup.v1.BackupForGKEClient;
import com.google.cloud.gkebackup.v1.BackupPlanName;
Expand All @@ -41,4 +41,4 @@ public static void syncCreateBackupBackupplannameBackupString() throws Exception
}
}
}
// [END gkebackup_v1_generated_backupforgkeclient_createbackup_backupplannamebackupstring_sync]
// [END gkebackup_v1_generated_BackupForGKE_CreateBackup_BackupplannameBackupString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkebackup_v1_generated_backupforgkeclient_createbackup_stringbackupstring_sync]
// [START gkebackup_v1_generated_BackupForGKE_CreateBackup_StringBackupString_sync]
import com.google.cloud.gkebackup.v1.Backup;
import com.google.cloud.gkebackup.v1.BackupForGKEClient;
import com.google.cloud.gkebackup.v1.BackupPlanName;
Expand All @@ -41,4 +41,4 @@ public static void syncCreateBackupStringBackupString() throws Exception {
}
}
}
// [END gkebackup_v1_generated_backupforgkeclient_createbackup_stringbackupstring_sync]
// [END gkebackup_v1_generated_BackupForGKE_CreateBackup_StringBackupString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkebackup_v1_generated_backupforgkeclient_createbackupplan_async]
// [START gkebackup_v1_generated_BackupForGKE_CreateBackupPlan_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.gkebackup.v1.BackupForGKEClient;
import com.google.cloud.gkebackup.v1.BackupPlan;
Expand Down Expand Up @@ -50,4 +50,4 @@ public static void asyncCreateBackupPlan() throws Exception {
}
}
}
// [END gkebackup_v1_generated_backupforgkeclient_createbackupplan_async]
// [END gkebackup_v1_generated_BackupForGKE_CreateBackupPlan_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkebackup_v1_generated_backupforgkeclient_createbackupplan_lro_async]
// [START gkebackup_v1_generated_BackupForGKE_CreateBackupPlan_LRO_async]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.gkebackup.v1.BackupForGKEClient;
import com.google.cloud.gkebackup.v1.BackupPlan;
Expand Down Expand Up @@ -50,4 +50,4 @@ public static void asyncCreateBackupPlanLRO() throws Exception {
}
}
}
// [END gkebackup_v1_generated_backupforgkeclient_createbackupplan_lro_async]
// [END gkebackup_v1_generated_BackupForGKE_CreateBackupPlan_LRO_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkebackup_v1_generated_backupforgkeclient_createbackupplan_sync]
// [START gkebackup_v1_generated_BackupForGKE_CreateBackupPlan_sync]
import com.google.cloud.gkebackup.v1.BackupForGKEClient;
import com.google.cloud.gkebackup.v1.BackupPlan;
import com.google.cloud.gkebackup.v1.CreateBackupPlanRequest;
Expand Down Expand Up @@ -45,4 +45,4 @@ public static void syncCreateBackupPlan() throws Exception {
}
}
}
// [END gkebackup_v1_generated_backupforgkeclient_createbackupplan_sync]
// [END gkebackup_v1_generated_BackupForGKE_CreateBackupPlan_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkebackup_v1_generated_backupforgkeclient_createbackupplan_locationnamebackupplanstring_sync]
// [START gkebackup_v1_generated_BackupForGKE_CreateBackupPlan_LocationnameBackupplanString_sync]
import com.google.cloud.gkebackup.v1.BackupForGKEClient;
import com.google.cloud.gkebackup.v1.BackupPlan;
import com.google.cloud.gkebackup.v1.LocationName;
Expand All @@ -42,4 +42,4 @@ public static void syncCreateBackupPlanLocationnameBackupplanString() throws Exc
}
}
}
// [END gkebackup_v1_generated_backupforgkeclient_createbackupplan_locationnamebackupplanstring_sync]
// [END gkebackup_v1_generated_BackupForGKE_CreateBackupPlan_LocationnameBackupplanString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkebackup_v1_generated_backupforgkeclient_createbackupplan_stringbackupplanstring_sync]
// [START gkebackup_v1_generated_BackupForGKE_CreateBackupPlan_StringBackupplanString_sync]
import com.google.cloud.gkebackup.v1.BackupForGKEClient;
import com.google.cloud.gkebackup.v1.BackupPlan;
import com.google.cloud.gkebackup.v1.LocationName;
Expand All @@ -42,4 +42,4 @@ public static void syncCreateBackupPlanStringBackupplanString() throws Exception
}
}
}
// [END gkebackup_v1_generated_backupforgkeclient_createbackupplan_stringbackupplanstring_sync]
// [END gkebackup_v1_generated_BackupForGKE_CreateBackupPlan_StringBackupplanString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkebackup_v1_generated_backupforgkeclient_createrestore_async]
// [START gkebackup_v1_generated_BackupForGKE_CreateRestore_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.gkebackup.v1.BackupForGKEClient;
import com.google.cloud.gkebackup.v1.CreateRestoreRequest;
Expand Down Expand Up @@ -49,4 +49,4 @@ public static void asyncCreateRestore() throws Exception {
}
}
}
// [END gkebackup_v1_generated_backupforgkeclient_createrestore_async]
// [END gkebackup_v1_generated_BackupForGKE_CreateRestore_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkebackup_v1_generated_backupforgkeclient_createrestore_lro_async]
// [START gkebackup_v1_generated_BackupForGKE_CreateRestore_LRO_async]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.gkebackup.v1.BackupForGKEClient;
import com.google.cloud.gkebackup.v1.CreateRestoreRequest;
Expand Down Expand Up @@ -50,4 +50,4 @@ public static void asyncCreateRestoreLRO() throws Exception {
}
}
}
// [END gkebackup_v1_generated_backupforgkeclient_createrestore_lro_async]
// [END gkebackup_v1_generated_BackupForGKE_CreateRestore_LRO_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkebackup_v1_generated_backupforgkeclient_createrestore_sync]
// [START gkebackup_v1_generated_BackupForGKE_CreateRestore_sync]
import com.google.cloud.gkebackup.v1.BackupForGKEClient;
import com.google.cloud.gkebackup.v1.CreateRestoreRequest;
import com.google.cloud.gkebackup.v1.Restore;
Expand Down Expand Up @@ -45,4 +45,4 @@ public static void syncCreateRestore() throws Exception {
}
}
}
// [END gkebackup_v1_generated_backupforgkeclient_createrestore_sync]
// [END gkebackup_v1_generated_BackupForGKE_CreateRestore_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkebackup_v1_generated_backupforgkeclient_createrestore_restoreplannamerestorestring_sync]
// [START gkebackup_v1_generated_BackupForGKE_CreateRestore_RestoreplannameRestoreString_sync]
import com.google.cloud.gkebackup.v1.BackupForGKEClient;
import com.google.cloud.gkebackup.v1.Restore;
import com.google.cloud.gkebackup.v1.RestorePlanName;
Expand All @@ -41,4 +41,4 @@ public static void syncCreateRestoreRestoreplannameRestoreString() throws Except
}
}
}
// [END gkebackup_v1_generated_backupforgkeclient_createrestore_restoreplannamerestorestring_sync]
// [END gkebackup_v1_generated_BackupForGKE_CreateRestore_RestoreplannameRestoreString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkebackup_v1_generated_backupforgkeclient_createrestore_stringrestorestring_sync]
// [START gkebackup_v1_generated_BackupForGKE_CreateRestore_StringRestoreString_sync]
import com.google.cloud.gkebackup.v1.BackupForGKEClient;
import com.google.cloud.gkebackup.v1.Restore;
import com.google.cloud.gkebackup.v1.RestorePlanName;
Expand All @@ -41,4 +41,4 @@ public static void syncCreateRestoreStringRestoreString() throws Exception {
}
}
}
// [END gkebackup_v1_generated_backupforgkeclient_createrestore_stringrestorestring_sync]
// [END gkebackup_v1_generated_BackupForGKE_CreateRestore_StringRestoreString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkebackup_v1_generated_backupforgkeclient_createrestoreplan_async]
// [START gkebackup_v1_generated_BackupForGKE_CreateRestorePlan_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.gkebackup.v1.BackupForGKEClient;
import com.google.cloud.gkebackup.v1.CreateRestorePlanRequest;
Expand Down Expand Up @@ -50,4 +50,4 @@ public static void asyncCreateRestorePlan() throws Exception {
}
}
}
// [END gkebackup_v1_generated_backupforgkeclient_createrestoreplan_async]
// [END gkebackup_v1_generated_BackupForGKE_CreateRestorePlan_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkebackup_v1_generated_backupforgkeclient_createrestoreplan_lro_async]
// [START gkebackup_v1_generated_BackupForGKE_CreateRestorePlan_LRO_async]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.gkebackup.v1.BackupForGKEClient;
import com.google.cloud.gkebackup.v1.CreateRestorePlanRequest;
Expand Down Expand Up @@ -50,4 +50,4 @@ public static void asyncCreateRestorePlanLRO() throws Exception {
}
}
}
// [END gkebackup_v1_generated_backupforgkeclient_createrestoreplan_lro_async]
// [END gkebackup_v1_generated_BackupForGKE_CreateRestorePlan_LRO_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkebackup_v1_generated_backupforgkeclient_createrestoreplan_sync]
// [START gkebackup_v1_generated_BackupForGKE_CreateRestorePlan_sync]
import com.google.cloud.gkebackup.v1.BackupForGKEClient;
import com.google.cloud.gkebackup.v1.CreateRestorePlanRequest;
import com.google.cloud.gkebackup.v1.LocationName;
Expand Down Expand Up @@ -45,4 +45,4 @@ public static void syncCreateRestorePlan() throws Exception {
}
}
}
// [END gkebackup_v1_generated_backupforgkeclient_createrestoreplan_sync]
// [END gkebackup_v1_generated_BackupForGKE_CreateRestorePlan_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkebackup_v1_generated_backupforgkeclient_createrestoreplan_locationnamerestoreplanstring_sync]
// [START gkebackup_v1_generated_BackupForGKE_CreateRestorePlan_LocationnameRestoreplanString_sync]
import com.google.cloud.gkebackup.v1.BackupForGKEClient;
import com.google.cloud.gkebackup.v1.LocationName;
import com.google.cloud.gkebackup.v1.RestorePlan;
Expand All @@ -42,4 +42,4 @@ public static void syncCreateRestorePlanLocationnameRestoreplanString() throws E
}
}
}
// [END gkebackup_v1_generated_backupforgkeclient_createrestoreplan_locationnamerestoreplanstring_sync]
// [END gkebackup_v1_generated_BackupForGKE_CreateRestorePlan_LocationnameRestoreplanString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkebackup_v1_generated_backupforgkeclient_createrestoreplan_stringrestoreplanstring_sync]
// [START gkebackup_v1_generated_BackupForGKE_CreateRestorePlan_StringRestoreplanString_sync]
import com.google.cloud.gkebackup.v1.BackupForGKEClient;
import com.google.cloud.gkebackup.v1.LocationName;
import com.google.cloud.gkebackup.v1.RestorePlan;
Expand All @@ -42,4 +42,4 @@ public static void syncCreateRestorePlanStringRestoreplanString() throws Excepti
}
}
}
// [END gkebackup_v1_generated_backupforgkeclient_createrestoreplan_stringrestoreplanstring_sync]
// [END gkebackup_v1_generated_BackupForGKE_CreateRestorePlan_StringRestoreplanString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkebackup_v1_generated_backupforgkeclient_deletebackup_async]
// [START gkebackup_v1_generated_BackupForGKE_DeleteBackup_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.gkebackup.v1.BackupForGKEClient;
import com.google.cloud.gkebackup.v1.BackupName;
Expand Down Expand Up @@ -49,4 +49,4 @@ public static void asyncDeleteBackup() throws Exception {
}
}
}
// [END gkebackup_v1_generated_backupforgkeclient_deletebackup_async]
// [END gkebackup_v1_generated_BackupForGKE_DeleteBackup_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkebackup_v1_generated_backupforgkeclient_deletebackup_lro_async]
// [START gkebackup_v1_generated_BackupForGKE_DeleteBackup_LRO_async]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.gkebackup.v1.BackupForGKEClient;
import com.google.cloud.gkebackup.v1.BackupName;
Expand Down Expand Up @@ -51,4 +51,4 @@ public static void asyncDeleteBackupLRO() throws Exception {
}
}
}
// [END gkebackup_v1_generated_backupforgkeclient_deletebackup_lro_async]
// [END gkebackup_v1_generated_BackupForGKE_DeleteBackup_LRO_async]
Loading

0 comments on commit 8b3a986

Please sign in to comment.