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

- [ ] 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] committed Nov 8, 2022
1 parent 1d39944 commit a6fa497
Show file tree
Hide file tree
Showing 98 changed files with 196 additions and 202 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,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
* BareMetalSolutionSettings bareMetalSolutionSettings =
* BareMetalSolutionSettings.newBuilder()
* .setTransportChannelProvider(
* BareMetalSolutionSettings.defaultHttpJsonTransportProviderBuilder().build())
* .build();
* BareMetalSolutionSettings.newHttpJsonBuilder().build();
* BareMetalSolutionClient bareMetalSolutionClient =
* BareMetalSolutionClient.create(bareMetalSolutionSettings);
* }</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.baremetalsolution.v2.samples;

// [START baremetalsolution_v2_generated_baremetalsolutionclient_create_setcredentialsprovider_sync]
// [START baremetalsolution_v2_generated_BareMetalSolution_Create_SetCredentialsProvider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient;
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionSettings;
Expand All @@ -42,4 +42,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
BareMetalSolutionClient.create(bareMetalSolutionSettings);
}
}
// [END baremetalsolution_v2_generated_baremetalsolutionclient_create_setcredentialsprovider_sync]
// [END baremetalsolution_v2_generated_BareMetalSolution_Create_SetCredentialsProvider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.baremetalsolution.v2.samples;

// [START baremetalsolution_v2_generated_baremetalsolutionclient_create_setcredentialsprovider1_sync]
// [START baremetalsolution_v2_generated_BareMetalSolution_Create_SetCredentialsProvider1_sync]
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient;
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionSettings;

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
BareMetalSolutionSettings bareMetalSolutionSettings =
BareMetalSolutionSettings.newBuilder()
.setTransportChannelProvider(
BareMetalSolutionSettings.defaultHttpJsonTransportProviderBuilder().build())
.build();
BareMetalSolutionSettings.newHttpJsonBuilder().build();
BareMetalSolutionClient bareMetalSolutionClient =
BareMetalSolutionClient.create(bareMetalSolutionSettings);
}
}
// [END baremetalsolution_v2_generated_baremetalsolutionclient_create_setcredentialsprovider1_sync]
// [END baremetalsolution_v2_generated_BareMetalSolution_Create_SetCredentialsProvider1_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.baremetalsolution.v2.samples;

// [START baremetalsolution_v2_generated_baremetalsolutionclient_create_setendpoint_sync]
// [START baremetalsolution_v2_generated_BareMetalSolution_Create_SetEndpoint_sync]
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient;
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionSettings;
import com.google.cloud.baremetalsolution.v2.myEndpoint;
Expand All @@ -39,4 +39,4 @@ public static void syncCreateSetEndpoint() throws Exception {
BareMetalSolutionClient.create(bareMetalSolutionSettings);
}
}
// [END baremetalsolution_v2_generated_baremetalsolutionclient_create_setendpoint_sync]
// [END baremetalsolution_v2_generated_BareMetalSolution_Create_SetEndpoint_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.baremetalsolution.v2.samples;

// [START baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_async]
// [START baremetalsolution_v2_generated_BareMetalSolution_DetachLun_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient;
import com.google.cloud.baremetalsolution.v2.DetachLunRequest;
Expand Down Expand Up @@ -48,4 +48,4 @@ public static void asyncDetachLun() throws Exception {
}
}
}
// [END baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_async]
// [END baremetalsolution_v2_generated_BareMetalSolution_DetachLun_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.baremetalsolution.v2.samples;

// [START baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_lro_async]
// [START baremetalsolution_v2_generated_BareMetalSolution_DetachLun_LRO_async]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient;
import com.google.cloud.baremetalsolution.v2.DetachLunRequest;
Expand Down Expand Up @@ -50,4 +50,4 @@ public static void asyncDetachLunLRO() throws Exception {
}
}
}
// [END baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_lro_async]
// [END baremetalsolution_v2_generated_BareMetalSolution_DetachLun_LRO_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.baremetalsolution.v2.samples;

// [START baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_sync]
// [START baremetalsolution_v2_generated_BareMetalSolution_DetachLun_sync]
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient;
import com.google.cloud.baremetalsolution.v2.DetachLunRequest;
import com.google.cloud.baremetalsolution.v2.Instance;
Expand Down Expand Up @@ -45,4 +45,4 @@ public static void syncDetachLun() throws Exception {
}
}
}
// [END baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_sync]
// [END baremetalsolution_v2_generated_BareMetalSolution_DetachLun_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.baremetalsolution.v2.samples;

// [START baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_instancenamelunname_sync]
// [START baremetalsolution_v2_generated_BareMetalSolution_DetachLun_InstancenameLunname_sync]
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient;
import com.google.cloud.baremetalsolution.v2.Instance;
import com.google.cloud.baremetalsolution.v2.InstanceName;
Expand All @@ -41,4 +41,4 @@ public static void syncDetachLunInstancenameLunname() throws Exception {
}
}
}
// [END baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_instancenamelunname_sync]
// [END baremetalsolution_v2_generated_BareMetalSolution_DetachLun_InstancenameLunname_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.baremetalsolution.v2.samples;

// [START baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_instancenamestring_sync]
// [START baremetalsolution_v2_generated_BareMetalSolution_DetachLun_InstancenameString_sync]
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient;
import com.google.cloud.baremetalsolution.v2.Instance;
import com.google.cloud.baremetalsolution.v2.InstanceName;
Expand All @@ -41,4 +41,4 @@ public static void syncDetachLunInstancenameString() throws Exception {
}
}
}
// [END baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_instancenamestring_sync]
// [END baremetalsolution_v2_generated_BareMetalSolution_DetachLun_InstancenameString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.baremetalsolution.v2.samples;

// [START baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_stringlunname_sync]
// [START baremetalsolution_v2_generated_BareMetalSolution_DetachLun_StringLunname_sync]
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient;
import com.google.cloud.baremetalsolution.v2.Instance;
import com.google.cloud.baremetalsolution.v2.InstanceName;
Expand All @@ -41,4 +41,4 @@ public static void syncDetachLunStringLunname() throws Exception {
}
}
}
// [END baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_stringlunname_sync]
// [END baremetalsolution_v2_generated_BareMetalSolution_DetachLun_StringLunname_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.baremetalsolution.v2.samples;

// [START baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_stringstring_sync]
// [START baremetalsolution_v2_generated_BareMetalSolution_DetachLun_StringString_sync]
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient;
import com.google.cloud.baremetalsolution.v2.Instance;
import com.google.cloud.baremetalsolution.v2.InstanceName;
Expand All @@ -41,4 +41,4 @@ public static void syncDetachLunStringString() throws Exception {
}
}
}
// [END baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_stringstring_sync]
// [END baremetalsolution_v2_generated_BareMetalSolution_DetachLun_StringString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.baremetalsolution.v2.samples;

// [START baremetalsolution_v2_generated_baremetalsolutionclient_getinstance_async]
// [START baremetalsolution_v2_generated_BareMetalSolution_GetInstance_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient;
import com.google.cloud.baremetalsolution.v2.GetInstanceRequest;
Expand Down Expand Up @@ -47,4 +47,4 @@ public static void asyncGetInstance() throws Exception {
}
}
}
// [END baremetalsolution_v2_generated_baremetalsolutionclient_getinstance_async]
// [END baremetalsolution_v2_generated_BareMetalSolution_GetInstance_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.baremetalsolution.v2.samples;

// [START baremetalsolution_v2_generated_baremetalsolutionclient_getinstance_sync]
// [START baremetalsolution_v2_generated_BareMetalSolution_GetInstance_sync]
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient;
import com.google.cloud.baremetalsolution.v2.GetInstanceRequest;
import com.google.cloud.baremetalsolution.v2.Instance;
Expand All @@ -43,4 +43,4 @@ public static void syncGetInstance() throws Exception {
}
}
}
// [END baremetalsolution_v2_generated_baremetalsolutionclient_getinstance_sync]
// [END baremetalsolution_v2_generated_BareMetalSolution_GetInstance_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.baremetalsolution.v2.samples;

// [START baremetalsolution_v2_generated_baremetalsolutionclient_getinstance_instancename_sync]
// [START baremetalsolution_v2_generated_BareMetalSolution_GetInstance_Instancename_sync]
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient;
import com.google.cloud.baremetalsolution.v2.Instance;
import com.google.cloud.baremetalsolution.v2.InstanceName;
Expand All @@ -39,4 +39,4 @@ public static void syncGetInstanceInstancename() throws Exception {
}
}
}
// [END baremetalsolution_v2_generated_baremetalsolutionclient_getinstance_instancename_sync]
// [END baremetalsolution_v2_generated_BareMetalSolution_GetInstance_Instancename_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.baremetalsolution.v2.samples;

// [START baremetalsolution_v2_generated_baremetalsolutionclient_getinstance_string_sync]
// [START baremetalsolution_v2_generated_BareMetalSolution_GetInstance_String_sync]
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient;
import com.google.cloud.baremetalsolution.v2.Instance;
import com.google.cloud.baremetalsolution.v2.InstanceName;
Expand All @@ -39,4 +39,4 @@ public static void syncGetInstanceString() throws Exception {
}
}
}
// [END baremetalsolution_v2_generated_baremetalsolutionclient_getinstance_string_sync]
// [END baremetalsolution_v2_generated_BareMetalSolution_GetInstance_String_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.baremetalsolution.v2.samples;

// [START baremetalsolution_v2_generated_baremetalsolutionclient_getlun_async]
// [START baremetalsolution_v2_generated_BareMetalSolution_GetLun_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient;
import com.google.cloud.baremetalsolution.v2.GetLunRequest;
Expand Down Expand Up @@ -46,4 +46,4 @@ public static void asyncGetLun() throws Exception {
}
}
}
// [END baremetalsolution_v2_generated_baremetalsolutionclient_getlun_async]
// [END baremetalsolution_v2_generated_BareMetalSolution_GetLun_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.baremetalsolution.v2.samples;

// [START baremetalsolution_v2_generated_baremetalsolutionclient_getlun_sync]
// [START baremetalsolution_v2_generated_BareMetalSolution_GetLun_sync]
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient;
import com.google.cloud.baremetalsolution.v2.GetLunRequest;
import com.google.cloud.baremetalsolution.v2.Lun;
Expand All @@ -43,4 +43,4 @@ public static void syncGetLun() throws Exception {
}
}
}
// [END baremetalsolution_v2_generated_baremetalsolutionclient_getlun_sync]
// [END baremetalsolution_v2_generated_BareMetalSolution_GetLun_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.baremetalsolution.v2.samples;

// [START baremetalsolution_v2_generated_baremetalsolutionclient_getlun_lunname_sync]
// [START baremetalsolution_v2_generated_BareMetalSolution_GetLun_Lunname_sync]
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient;
import com.google.cloud.baremetalsolution.v2.Lun;
import com.google.cloud.baremetalsolution.v2.LunName;
Expand All @@ -39,4 +39,4 @@ public static void syncGetLunLunname() throws Exception {
}
}
}
// [END baremetalsolution_v2_generated_baremetalsolutionclient_getlun_lunname_sync]
// [END baremetalsolution_v2_generated_BareMetalSolution_GetLun_Lunname_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.baremetalsolution.v2.samples;

// [START baremetalsolution_v2_generated_baremetalsolutionclient_getlun_string_sync]
// [START baremetalsolution_v2_generated_BareMetalSolution_GetLun_String_sync]
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient;
import com.google.cloud.baremetalsolution.v2.Lun;
import com.google.cloud.baremetalsolution.v2.LunName;
Expand All @@ -39,4 +39,4 @@ public static void syncGetLunString() throws Exception {
}
}
}
// [END baremetalsolution_v2_generated_baremetalsolutionclient_getlun_string_sync]
// [END baremetalsolution_v2_generated_BareMetalSolution_GetLun_String_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.baremetalsolution.v2.samples;

// [START baremetalsolution_v2_generated_baremetalsolutionclient_getnetwork_async]
// [START baremetalsolution_v2_generated_BareMetalSolution_GetNetwork_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient;
import com.google.cloud.baremetalsolution.v2.GetNetworkRequest;
Expand Down Expand Up @@ -46,4 +46,4 @@ public static void asyncGetNetwork() throws Exception {
}
}
}
// [END baremetalsolution_v2_generated_baremetalsolutionclient_getnetwork_async]
// [END baremetalsolution_v2_generated_BareMetalSolution_GetNetwork_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.baremetalsolution.v2.samples;

// [START baremetalsolution_v2_generated_baremetalsolutionclient_getnetwork_sync]
// [START baremetalsolution_v2_generated_BareMetalSolution_GetNetwork_sync]
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient;
import com.google.cloud.baremetalsolution.v2.GetNetworkRequest;
import com.google.cloud.baremetalsolution.v2.Network;
Expand All @@ -43,4 +43,4 @@ public static void syncGetNetwork() throws Exception {
}
}
}
// [END baremetalsolution_v2_generated_baremetalsolutionclient_getnetwork_sync]
// [END baremetalsolution_v2_generated_BareMetalSolution_GetNetwork_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.baremetalsolution.v2.samples;

// [START baremetalsolution_v2_generated_baremetalsolutionclient_getnetwork_networkname_sync]
// [START baremetalsolution_v2_generated_BareMetalSolution_GetNetwork_Networkname_sync]
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient;
import com.google.cloud.baremetalsolution.v2.Network;
import com.google.cloud.baremetalsolution.v2.NetworkName;
Expand All @@ -39,4 +39,4 @@ public static void syncGetNetworkNetworkname() throws Exception {
}
}
}
// [END baremetalsolution_v2_generated_baremetalsolutionclient_getnetwork_networkname_sync]
// [END baremetalsolution_v2_generated_BareMetalSolution_GetNetwork_Networkname_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.baremetalsolution.v2.samples;

// [START baremetalsolution_v2_generated_baremetalsolutionclient_getnetwork_string_sync]
// [START baremetalsolution_v2_generated_BareMetalSolution_GetNetwork_String_sync]
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient;
import com.google.cloud.baremetalsolution.v2.Network;
import com.google.cloud.baremetalsolution.v2.NetworkName;
Expand All @@ -39,4 +39,4 @@ public static void syncGetNetworkString() throws Exception {
}
}
}
// [END baremetalsolution_v2_generated_baremetalsolutionclient_getnetwork_string_sync]
// [END baremetalsolution_v2_generated_BareMetalSolution_GetNetwork_String_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.baremetalsolution.v2.samples;

// [START baremetalsolution_v2_generated_baremetalsolutionclient_getnfsshare_async]
// [START baremetalsolution_v2_generated_BareMetalSolution_GetNfsShare_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient;
import com.google.cloud.baremetalsolution.v2.GetNfsShareRequest;
Expand Down Expand Up @@ -47,4 +47,4 @@ public static void asyncGetNfsShare() throws Exception {
}
}
}
// [END baremetalsolution_v2_generated_baremetalsolutionclient_getnfsshare_async]
// [END baremetalsolution_v2_generated_BareMetalSolution_GetNfsShare_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.baremetalsolution.v2.samples;

// [START baremetalsolution_v2_generated_baremetalsolutionclient_getnfsshare_sync]
// [START baremetalsolution_v2_generated_BareMetalSolution_GetNfsShare_sync]
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient;
import com.google.cloud.baremetalsolution.v2.GetNfsShareRequest;
import com.google.cloud.baremetalsolution.v2.NFSShareName;
Expand All @@ -43,4 +43,4 @@ public static void syncGetNfsShare() throws Exception {
}
}
}
// [END baremetalsolution_v2_generated_baremetalsolutionclient_getnfsshare_sync]
// [END baremetalsolution_v2_generated_BareMetalSolution_GetNfsShare_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.baremetalsolution.v2.samples;

// [START baremetalsolution_v2_generated_baremetalsolutionclient_getnfsshare_nfssharename_sync]
// [START baremetalsolution_v2_generated_BareMetalSolution_GetNfsShare_Nfssharename_sync]
import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient;
import com.google.cloud.baremetalsolution.v2.NFSShareName;
import com.google.cloud.baremetalsolution.v2.NfsShare;
Expand All @@ -39,4 +39,4 @@ public static void syncGetNfsShareNfssharename() throws Exception {
}
}
}
// [END baremetalsolution_v2_generated_baremetalsolutionclient_getnfsshare_nfssharename_sync]
// [END baremetalsolution_v2_generated_BareMetalSolution_GetNfsShare_Nfssharename_sync]
Loading

0 comments on commit a6fa497

Please sign in to comment.