Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit d51d8d0

Browse files
chore: Set rest_numeric_enums = False for all gapic rules explicitly (#295)
- [ ] 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
1 parent c84c078 commit d51d8d0

File tree

42 files changed

+84
-92
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+84
-92
lines changed

google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClient.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,7 @@
136136
* // - It may require correct/in-range values for request initialization.
137137
* // - It may require specifying regional endpoints when creating the service client as shown in
138138
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
139-
* GSuiteAddOnsSettings gSuiteAddOnsSettings =
140-
* GSuiteAddOnsSettings.newBuilder()
141-
* .setTransportChannelProvider(
142-
* GSuiteAddOnsSettings.defaultHttpJsonTransportProviderBuilder().build())
143-
* .build();
139+
* GSuiteAddOnsSettings gSuiteAddOnsSettings = GSuiteAddOnsSettings.newHttpJsonBuilder().build();
144140
* GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create(gSuiteAddOnsSettings);
145141
* }</pre>
146142
*
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
package com.google.cloud.gsuiteaddons.v1.samples;
1818

19-
// [START gsuiteaddons_v1_generated_gsuiteaddonsclient_create_setcredentialsprovider_sync]
19+
// [START gsuiteaddons_v1_generated_GSuiteAddOns_Create_SetCredentialsProvider_sync]
2020
import com.google.api.gax.core.FixedCredentialsProvider;
2121
import com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient;
2222
import com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsSettings;
@@ -41,4 +41,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
4141
GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create(gSuiteAddOnsSettings);
4242
}
4343
}
44-
// [END gsuiteaddons_v1_generated_gsuiteaddonsclient_create_setcredentialsprovider_sync]
44+
// [END gsuiteaddons_v1_generated_GSuiteAddOns_Create_SetCredentialsProvider_sync]
Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
package com.google.cloud.gsuiteaddons.v1.samples;
1818

19-
// [START gsuiteaddons_v1_generated_gsuiteaddonsclient_create_setcredentialsprovider1_sync]
19+
// [START gsuiteaddons_v1_generated_GSuiteAddOns_Create_SetCredentialsProvider1_sync]
2020
import com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient;
2121
import com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsSettings;
2222

@@ -32,12 +32,8 @@ public static void syncCreateSetCredentialsProvider1() throws Exception {
3232
// - It may require correct/in-range values for request initialization.
3333
// - It may require specifying regional endpoints when creating the service client as shown in
3434
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
35-
GSuiteAddOnsSettings gSuiteAddOnsSettings =
36-
GSuiteAddOnsSettings.newBuilder()
37-
.setTransportChannelProvider(
38-
GSuiteAddOnsSettings.defaultHttpJsonTransportProviderBuilder().build())
39-
.build();
35+
GSuiteAddOnsSettings gSuiteAddOnsSettings = GSuiteAddOnsSettings.newHttpJsonBuilder().build();
4036
GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create(gSuiteAddOnsSettings);
4137
}
4238
}
43-
// [END gsuiteaddons_v1_generated_gsuiteaddonsclient_create_setcredentialsprovider1_sync]
39+
// [END gsuiteaddons_v1_generated_GSuiteAddOns_Create_SetCredentialsProvider1_sync]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
package com.google.cloud.gsuiteaddons.v1.samples;
1818

19-
// [START gsuiteaddons_v1_generated_gsuiteaddonsclient_create_setendpoint_sync]
19+
// [START gsuiteaddons_v1_generated_GSuiteAddOns_Create_SetEndpoint_sync]
2020
import com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient;
2121
import com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsSettings;
2222
import com.google.cloud.gsuiteaddons.v1.myEndpoint;
@@ -38,4 +38,4 @@ public static void syncCreateSetEndpoint() throws Exception {
3838
GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create(gSuiteAddOnsSettings);
3939
}
4040
}
41-
// [END gsuiteaddons_v1_generated_gsuiteaddonsclient_create_setendpoint_sync]
41+
// [END gsuiteaddons_v1_generated_GSuiteAddOns_Create_SetEndpoint_sync]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
package com.google.cloud.gsuiteaddons.v1.samples;
1818

19-
// [START gsuiteaddons_v1_generated_gsuiteaddonsclient_createdeployment_async]
19+
// [START gsuiteaddons_v1_generated_GSuiteAddOns_CreateDeployment_async]
2020
import com.google.api.core.ApiFuture;
2121
import com.google.cloud.gsuiteaddons.v1.CreateDeploymentRequest;
2222
import com.google.cloud.gsuiteaddons.v1.Deployment;
@@ -49,4 +49,4 @@ public static void asyncCreateDeployment() throws Exception {
4949
}
5050
}
5151
}
52-
// [END gsuiteaddons_v1_generated_gsuiteaddonsclient_createdeployment_async]
52+
// [END gsuiteaddons_v1_generated_GSuiteAddOns_CreateDeployment_async]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
package com.google.cloud.gsuiteaddons.v1.samples;
1818

19-
// [START gsuiteaddons_v1_generated_gsuiteaddonsclient_createdeployment_sync]
19+
// [START gsuiteaddons_v1_generated_GSuiteAddOns_CreateDeployment_sync]
2020
import com.google.cloud.gsuiteaddons.v1.CreateDeploymentRequest;
2121
import com.google.cloud.gsuiteaddons.v1.Deployment;
2222
import com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient;
@@ -45,4 +45,4 @@ public static void syncCreateDeployment() throws Exception {
4545
}
4646
}
4747
}
48-
// [END gsuiteaddons_v1_generated_gsuiteaddonsclient_createdeployment_sync]
48+
// [END gsuiteaddons_v1_generated_GSuiteAddOns_CreateDeployment_sync]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
package com.google.cloud.gsuiteaddons.v1.samples;
1818

19-
// [START gsuiteaddons_v1_generated_gsuiteaddonsclient_createdeployment_projectnamedeploymentstring_sync]
19+
// [START gsuiteaddons_v1_generated_GSuiteAddOns_CreateDeployment_ProjectnameDeploymentString_sync]
2020
import com.google.cloud.gsuiteaddons.v1.Deployment;
2121
import com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient;
2222
import com.google.cloud.gsuiteaddons.v1.ProjectName;
@@ -41,4 +41,4 @@ public static void syncCreateDeploymentProjectnameDeploymentString() throws Exce
4141
}
4242
}
4343
}
44-
// [END gsuiteaddons_v1_generated_gsuiteaddonsclient_createdeployment_projectnamedeploymentstring_sync]
44+
// [END gsuiteaddons_v1_generated_GSuiteAddOns_CreateDeployment_ProjectnameDeploymentString_sync]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
package com.google.cloud.gsuiteaddons.v1.samples;
1818

19-
// [START gsuiteaddons_v1_generated_gsuiteaddonsclient_createdeployment_stringdeploymentstring_sync]
19+
// [START gsuiteaddons_v1_generated_GSuiteAddOns_CreateDeployment_StringDeploymentString_sync]
2020
import com.google.cloud.gsuiteaddons.v1.Deployment;
2121
import com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient;
2222
import com.google.cloud.gsuiteaddons.v1.ProjectName;
@@ -41,4 +41,4 @@ public static void syncCreateDeploymentStringDeploymentString() throws Exception
4141
}
4242
}
4343
}
44-
// [END gsuiteaddons_v1_generated_gsuiteaddonsclient_createdeployment_stringdeploymentstring_sync]
44+
// [END gsuiteaddons_v1_generated_GSuiteAddOns_CreateDeployment_StringDeploymentString_sync]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
package com.google.cloud.gsuiteaddons.v1.samples;
1818

19-
// [START gsuiteaddons_v1_generated_gsuiteaddonsclient_deletedeployment_async]
19+
// [START gsuiteaddons_v1_generated_GSuiteAddOns_DeleteDeployment_async]
2020
import com.google.api.core.ApiFuture;
2121
import com.google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest;
2222
import com.google.cloud.gsuiteaddons.v1.DeploymentName;
@@ -47,4 +47,4 @@ public static void asyncDeleteDeployment() throws Exception {
4747
}
4848
}
4949
}
50-
// [END gsuiteaddons_v1_generated_gsuiteaddonsclient_deletedeployment_async]
50+
// [END gsuiteaddons_v1_generated_GSuiteAddOns_DeleteDeployment_async]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
package com.google.cloud.gsuiteaddons.v1.samples;
1818

19-
// [START gsuiteaddons_v1_generated_gsuiteaddonsclient_deletedeployment_sync]
19+
// [START gsuiteaddons_v1_generated_GSuiteAddOns_DeleteDeployment_sync]
2020
import com.google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest;
2121
import com.google.cloud.gsuiteaddons.v1.DeploymentName;
2222
import com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient;
@@ -44,4 +44,4 @@ public static void syncDeleteDeployment() throws Exception {
4444
}
4545
}
4646
}
47-
// [END gsuiteaddons_v1_generated_gsuiteaddonsclient_deletedeployment_sync]
47+
// [END gsuiteaddons_v1_generated_GSuiteAddOns_DeleteDeployment_sync]

0 commit comments

Comments
 (0)