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

- [ ] 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 26644b0 commit 6ca11b3
Show file tree
Hide file tree
Showing 135 changed files with 270 additions and 284 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
* AwsClustersSettings awsClustersSettings =
* AwsClustersSettings.newBuilder()
* .setTransportChannelProvider(
* AwsClustersSettings.defaultHttpJsonTransportProviderBuilder().build())
* .build();
* AwsClustersSettings awsClustersSettings = AwsClustersSettings.newHttpJsonBuilder().build();
* AwsClustersClient awsClustersClient = AwsClustersClient.create(awsClustersSettings);
* }</pre>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,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
* AzureClustersSettings azureClustersSettings =
* AzureClustersSettings.newBuilder()
* .setTransportChannelProvider(
* AzureClustersSettings.defaultHttpJsonTransportProviderBuilder().build())
* .build();
* AzureClustersSettings.newHttpJsonBuilder().build();
* AzureClustersClient azureClustersClient = AzureClustersClient.create(azureClustersSettings);
* }</pre>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkemulticloud_v1_generated_awsclustersclient_create_setcredentialsprovider_sync]
// [START gkemulticloud_v1_generated_AwsClusters_Create_SetCredentialsProvider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.gkemulticloud.v1.AwsClustersClient;
import com.google.cloud.gkemulticloud.v1.AwsClustersSettings;
Expand All @@ -41,4 +41,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
AwsClustersClient awsClustersClient = AwsClustersClient.create(awsClustersSettings);
}
}
// [END gkemulticloud_v1_generated_awsclustersclient_create_setcredentialsprovider_sync]
// [END gkemulticloud_v1_generated_AwsClusters_Create_SetCredentialsProvider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkemulticloud_v1_generated_awsclustersclient_create_setcredentialsprovider1_sync]
// [START gkemulticloud_v1_generated_AwsClusters_Create_SetCredentialsProvider1_sync]
import com.google.cloud.gkemulticloud.v1.AwsClustersClient;
import com.google.cloud.gkemulticloud.v1.AwsClustersSettings;

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
AwsClustersSettings awsClustersSettings =
AwsClustersSettings.newBuilder()
.setTransportChannelProvider(
AwsClustersSettings.defaultHttpJsonTransportProviderBuilder().build())
.build();
AwsClustersSettings awsClustersSettings = AwsClustersSettings.newHttpJsonBuilder().build();
AwsClustersClient awsClustersClient = AwsClustersClient.create(awsClustersSettings);
}
}
// [END gkemulticloud_v1_generated_awsclustersclient_create_setcredentialsprovider1_sync]
// [END gkemulticloud_v1_generated_AwsClusters_Create_SetCredentialsProvider1_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkemulticloud_v1_generated_awsclustersclient_create_setendpoint_sync]
// [START gkemulticloud_v1_generated_AwsClusters_Create_SetEndpoint_sync]
import com.google.cloud.gkemulticloud.v1.AwsClustersClient;
import com.google.cloud.gkemulticloud.v1.AwsClustersSettings;
import com.google.cloud.gkemulticloud.v1.myEndpoint;
Expand All @@ -38,4 +38,4 @@ public static void syncCreateSetEndpoint() throws Exception {
AwsClustersClient awsClustersClient = AwsClustersClient.create(awsClustersSettings);
}
}
// [END gkemulticloud_v1_generated_awsclustersclient_create_setendpoint_sync]
// [END gkemulticloud_v1_generated_AwsClusters_Create_SetEndpoint_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkemulticloud_v1_generated_awsclustersclient_createawscluster_async]
// [START gkemulticloud_v1_generated_AwsClusters_CreateAwsCluster_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.gkemulticloud.v1.AwsCluster;
import com.google.cloud.gkemulticloud.v1.AwsClustersClient;
Expand Down Expand Up @@ -51,4 +51,4 @@ public static void asyncCreateAwsCluster() throws Exception {
}
}
}
// [END gkemulticloud_v1_generated_awsclustersclient_createawscluster_async]
// [END gkemulticloud_v1_generated_AwsClusters_CreateAwsCluster_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkemulticloud_v1_generated_awsclustersclient_createawscluster_lro_async]
// [START gkemulticloud_v1_generated_AwsClusters_CreateAwsCluster_LRO_async]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.gkemulticloud.v1.AwsCluster;
import com.google.cloud.gkemulticloud.v1.AwsClustersClient;
Expand Down Expand Up @@ -51,4 +51,4 @@ public static void asyncCreateAwsClusterLRO() throws Exception {
}
}
}
// [END gkemulticloud_v1_generated_awsclustersclient_createawscluster_lro_async]
// [END gkemulticloud_v1_generated_AwsClusters_CreateAwsCluster_LRO_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkemulticloud_v1_generated_awsclustersclient_createawscluster_sync]
// [START gkemulticloud_v1_generated_AwsClusters_CreateAwsCluster_sync]
import com.google.cloud.gkemulticloud.v1.AwsCluster;
import com.google.cloud.gkemulticloud.v1.AwsClustersClient;
import com.google.cloud.gkemulticloud.v1.CreateAwsClusterRequest;
Expand Down Expand Up @@ -46,4 +46,4 @@ public static void syncCreateAwsCluster() throws Exception {
}
}
}
// [END gkemulticloud_v1_generated_awsclustersclient_createawscluster_sync]
// [END gkemulticloud_v1_generated_AwsClusters_CreateAwsCluster_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkemulticloud_v1_generated_awsclustersclient_createawscluster_locationnameawsclusterstring_sync]
// [START gkemulticloud_v1_generated_AwsClusters_CreateAwsCluster_LocationnameAwsclusterString_sync]
import com.google.cloud.gkemulticloud.v1.AwsCluster;
import com.google.cloud.gkemulticloud.v1.AwsClustersClient;
import com.google.cloud.gkemulticloud.v1.LocationName;
Expand All @@ -42,4 +42,4 @@ public static void syncCreateAwsClusterLocationnameAwsclusterString() throws Exc
}
}
}
// [END gkemulticloud_v1_generated_awsclustersclient_createawscluster_locationnameawsclusterstring_sync]
// [END gkemulticloud_v1_generated_AwsClusters_CreateAwsCluster_LocationnameAwsclusterString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkemulticloud_v1_generated_awsclustersclient_createawscluster_stringawsclusterstring_sync]
// [START gkemulticloud_v1_generated_AwsClusters_CreateAwsCluster_StringAwsclusterString_sync]
import com.google.cloud.gkemulticloud.v1.AwsCluster;
import com.google.cloud.gkemulticloud.v1.AwsClustersClient;
import com.google.cloud.gkemulticloud.v1.LocationName;
Expand All @@ -42,4 +42,4 @@ public static void syncCreateAwsClusterStringAwsclusterString() throws Exception
}
}
}
// [END gkemulticloud_v1_generated_awsclustersclient_createawscluster_stringawsclusterstring_sync]
// [END gkemulticloud_v1_generated_AwsClusters_CreateAwsCluster_StringAwsclusterString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkemulticloud_v1_generated_awsclustersclient_createawsnodepool_async]
// [START gkemulticloud_v1_generated_AwsClusters_CreateAwsNodePool_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.gkemulticloud.v1.AwsClusterName;
import com.google.cloud.gkemulticloud.v1.AwsClustersClient;
Expand Down Expand Up @@ -51,4 +51,4 @@ public static void asyncCreateAwsNodePool() throws Exception {
}
}
}
// [END gkemulticloud_v1_generated_awsclustersclient_createawsnodepool_async]
// [END gkemulticloud_v1_generated_AwsClusters_CreateAwsNodePool_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkemulticloud_v1_generated_awsclustersclient_createawsnodepool_lro_async]
// [START gkemulticloud_v1_generated_AwsClusters_CreateAwsNodePool_LRO_async]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.gkemulticloud.v1.AwsClusterName;
import com.google.cloud.gkemulticloud.v1.AwsClustersClient;
Expand Down Expand Up @@ -51,4 +51,4 @@ public static void asyncCreateAwsNodePoolLRO() throws Exception {
}
}
}
// [END gkemulticloud_v1_generated_awsclustersclient_createawsnodepool_lro_async]
// [END gkemulticloud_v1_generated_AwsClusters_CreateAwsNodePool_LRO_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkemulticloud_v1_generated_awsclustersclient_createawsnodepool_sync]
// [START gkemulticloud_v1_generated_AwsClusters_CreateAwsNodePool_sync]
import com.google.cloud.gkemulticloud.v1.AwsClusterName;
import com.google.cloud.gkemulticloud.v1.AwsClustersClient;
import com.google.cloud.gkemulticloud.v1.AwsNodePool;
Expand Down Expand Up @@ -46,4 +46,4 @@ public static void syncCreateAwsNodePool() throws Exception {
}
}
}
// [END gkemulticloud_v1_generated_awsclustersclient_createawsnodepool_sync]
// [END gkemulticloud_v1_generated_AwsClusters_CreateAwsNodePool_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkemulticloud_v1_generated_awsclustersclient_createawsnodepool_awsclusternameawsnodepoolstring_sync]
// [START gkemulticloud_v1_generated_AwsClusters_CreateAwsNodePool_AwsclusternameAwsnodepoolString_sync]
import com.google.cloud.gkemulticloud.v1.AwsClusterName;
import com.google.cloud.gkemulticloud.v1.AwsClustersClient;
import com.google.cloud.gkemulticloud.v1.AwsNodePool;
Expand All @@ -42,4 +42,4 @@ public static void syncCreateAwsNodePoolAwsclusternameAwsnodepoolString() throws
}
}
}
// [END gkemulticloud_v1_generated_awsclustersclient_createawsnodepool_awsclusternameawsnodepoolstring_sync]
// [END gkemulticloud_v1_generated_AwsClusters_CreateAwsNodePool_AwsclusternameAwsnodepoolString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkemulticloud_v1_generated_awsclustersclient_createawsnodepool_stringawsnodepoolstring_sync]
// [START gkemulticloud_v1_generated_AwsClusters_CreateAwsNodePool_StringAwsnodepoolString_sync]
import com.google.cloud.gkemulticloud.v1.AwsClusterName;
import com.google.cloud.gkemulticloud.v1.AwsClustersClient;
import com.google.cloud.gkemulticloud.v1.AwsNodePool;
Expand All @@ -42,4 +42,4 @@ public static void syncCreateAwsNodePoolStringAwsnodepoolString() throws Excepti
}
}
}
// [END gkemulticloud_v1_generated_awsclustersclient_createawsnodepool_stringawsnodepoolstring_sync]
// [END gkemulticloud_v1_generated_AwsClusters_CreateAwsNodePool_StringAwsnodepoolString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkemulticloud_v1_generated_awsclustersclient_deleteawscluster_async]
// [START gkemulticloud_v1_generated_AwsClusters_DeleteAwsCluster_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.gkemulticloud.v1.AwsClusterName;
import com.google.cloud.gkemulticloud.v1.AwsClustersClient;
Expand Down Expand Up @@ -50,4 +50,4 @@ public static void asyncDeleteAwsCluster() throws Exception {
}
}
}
// [END gkemulticloud_v1_generated_awsclustersclient_deleteawscluster_async]
// [END gkemulticloud_v1_generated_AwsClusters_DeleteAwsCluster_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkemulticloud_v1_generated_awsclustersclient_deleteawscluster_lro_async]
// [START gkemulticloud_v1_generated_AwsClusters_DeleteAwsCluster_LRO_async]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.gkemulticloud.v1.AwsClusterName;
import com.google.cloud.gkemulticloud.v1.AwsClustersClient;
Expand Down Expand Up @@ -51,4 +51,4 @@ public static void asyncDeleteAwsClusterLRO() throws Exception {
}
}
}
// [END gkemulticloud_v1_generated_awsclustersclient_deleteawscluster_lro_async]
// [END gkemulticloud_v1_generated_AwsClusters_DeleteAwsCluster_LRO_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkemulticloud_v1_generated_awsclustersclient_deleteawscluster_sync]
// [START gkemulticloud_v1_generated_AwsClusters_DeleteAwsCluster_sync]
import com.google.cloud.gkemulticloud.v1.AwsClusterName;
import com.google.cloud.gkemulticloud.v1.AwsClustersClient;
import com.google.cloud.gkemulticloud.v1.DeleteAwsClusterRequest;
Expand Down Expand Up @@ -46,4 +46,4 @@ public static void syncDeleteAwsCluster() throws Exception {
}
}
}
// [END gkemulticloud_v1_generated_awsclustersclient_deleteawscluster_sync]
// [END gkemulticloud_v1_generated_AwsClusters_DeleteAwsCluster_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkemulticloud_v1_generated_awsclustersclient_deleteawscluster_awsclustername_sync]
// [START gkemulticloud_v1_generated_AwsClusters_DeleteAwsCluster_Awsclustername_sync]
import com.google.cloud.gkemulticloud.v1.AwsClusterName;
import com.google.cloud.gkemulticloud.v1.AwsClustersClient;
import com.google.protobuf.Empty;
Expand All @@ -39,4 +39,4 @@ public static void syncDeleteAwsClusterAwsclustername() throws Exception {
}
}
}
// [END gkemulticloud_v1_generated_awsclustersclient_deleteawscluster_awsclustername_sync]
// [END gkemulticloud_v1_generated_AwsClusters_DeleteAwsCluster_Awsclustername_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkemulticloud_v1_generated_awsclustersclient_deleteawscluster_string_sync]
// [START gkemulticloud_v1_generated_AwsClusters_DeleteAwsCluster_String_sync]
import com.google.cloud.gkemulticloud.v1.AwsClusterName;
import com.google.cloud.gkemulticloud.v1.AwsClustersClient;
import com.google.protobuf.Empty;
Expand All @@ -39,4 +39,4 @@ public static void syncDeleteAwsClusterString() throws Exception {
}
}
}
// [END gkemulticloud_v1_generated_awsclustersclient_deleteawscluster_string_sync]
// [END gkemulticloud_v1_generated_AwsClusters_DeleteAwsCluster_String_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkemulticloud_v1_generated_awsclustersclient_deleteawsnodepool_async]
// [START gkemulticloud_v1_generated_AwsClusters_DeleteAwsNodePool_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.gkemulticloud.v1.AwsClustersClient;
import com.google.cloud.gkemulticloud.v1.AwsNodePoolName;
Expand Down Expand Up @@ -52,4 +52,4 @@ public static void asyncDeleteAwsNodePool() throws Exception {
}
}
}
// [END gkemulticloud_v1_generated_awsclustersclient_deleteawsnodepool_async]
// [END gkemulticloud_v1_generated_AwsClusters_DeleteAwsNodePool_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkemulticloud_v1_generated_awsclustersclient_deleteawsnodepool_lro_async]
// [START gkemulticloud_v1_generated_AwsClusters_DeleteAwsNodePool_LRO_async]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.gkemulticloud.v1.AwsClustersClient;
import com.google.cloud.gkemulticloud.v1.AwsNodePoolName;
Expand Down Expand Up @@ -53,4 +53,4 @@ public static void asyncDeleteAwsNodePoolLRO() throws Exception {
}
}
}
// [END gkemulticloud_v1_generated_awsclustersclient_deleteawsnodepool_lro_async]
// [END gkemulticloud_v1_generated_AwsClusters_DeleteAwsNodePool_LRO_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkemulticloud_v1_generated_awsclustersclient_deleteawsnodepool_sync]
// [START gkemulticloud_v1_generated_AwsClusters_DeleteAwsNodePool_sync]
import com.google.cloud.gkemulticloud.v1.AwsClustersClient;
import com.google.cloud.gkemulticloud.v1.AwsNodePoolName;
import com.google.cloud.gkemulticloud.v1.DeleteAwsNodePoolRequest;
Expand Down Expand Up @@ -48,4 +48,4 @@ public static void syncDeleteAwsNodePool() throws Exception {
}
}
}
// [END gkemulticloud_v1_generated_awsclustersclient_deleteawsnodepool_sync]
// [END gkemulticloud_v1_generated_AwsClusters_DeleteAwsNodePool_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkemulticloud_v1_generated_awsclustersclient_deleteawsnodepool_awsnodepoolname_sync]
// [START gkemulticloud_v1_generated_AwsClusters_DeleteAwsNodePool_Awsnodepoolname_sync]
import com.google.cloud.gkemulticloud.v1.AwsClustersClient;
import com.google.cloud.gkemulticloud.v1.AwsNodePoolName;
import com.google.protobuf.Empty;
Expand All @@ -40,4 +40,4 @@ public static void syncDeleteAwsNodePoolAwsnodepoolname() throws Exception {
}
}
}
// [END gkemulticloud_v1_generated_awsclustersclient_deleteawsnodepool_awsnodepoolname_sync]
// [END gkemulticloud_v1_generated_AwsClusters_DeleteAwsNodePool_Awsnodepoolname_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkemulticloud_v1_generated_awsclustersclient_deleteawsnodepool_string_sync]
// [START gkemulticloud_v1_generated_AwsClusters_DeleteAwsNodePool_String_sync]
import com.google.cloud.gkemulticloud.v1.AwsClustersClient;
import com.google.cloud.gkemulticloud.v1.AwsNodePoolName;
import com.google.protobuf.Empty;
Expand All @@ -41,4 +41,4 @@ public static void syncDeleteAwsNodePoolString() throws Exception {
}
}
}
// [END gkemulticloud_v1_generated_awsclustersclient_deleteawsnodepool_string_sync]
// [END gkemulticloud_v1_generated_AwsClusters_DeleteAwsNodePool_String_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START gkemulticloud_v1_generated_awsclustersclient_generateawsaccesstoken_async]
// [START gkemulticloud_v1_generated_AwsClusters_GenerateAwsAccessToken_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.gkemulticloud.v1.AwsClusterName;
import com.google.cloud.gkemulticloud.v1.AwsClustersClient;
Expand Down Expand Up @@ -48,4 +48,4 @@ public static void asyncGenerateAwsAccessToken() throws Exception {
}
}
}
// [END gkemulticloud_v1_generated_awsclustersclient_generateawsaccesstoken_async]
// [END gkemulticloud_v1_generated_AwsClusters_GenerateAwsAccessToken_async]
Loading

0 comments on commit 6ca11b3

Please sign in to comment.