Skip to content

Commit 8be4c4f

Browse files
chore: Set rest_numeric_enums = False for all gapic rules explicitly (#309)
- [ ] 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 91b1932 commit 8be4c4f

File tree

8 files changed

+16
-24
lines changed

8 files changed

+16
-24
lines changed

java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClient.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,7 @@
111111
* // - It may require correct/in-range values for request initialization.
112112
* // - It may require specifying regional endpoints when creating the service client as shown in
113113
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
114-
* IamCheckerSettings iamCheckerSettings =
115-
* IamCheckerSettings.newBuilder()
116-
* .setTransportChannelProvider(
117-
* IamCheckerSettings.defaultHttpJsonTransportProviderBuilder().build())
118-
* .build();
114+
* IamCheckerSettings iamCheckerSettings = IamCheckerSettings.newHttpJsonBuilder().build();
119115
* IamCheckerClient iamCheckerClient = IamCheckerClient.create(iamCheckerSettings);
120116
* }</pre>
121117
*
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

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

19-
// [START policytroubleshooter_v1_generated_iamcheckerclient_create_setcredentialsprovider_sync]
19+
// [START policytroubleshooter_v1_generated_IamChecker_Create_SetCredentialsProvider_sync]
2020
import com.google.api.gax.core.FixedCredentialsProvider;
2121
import com.google.cloud.policytroubleshooter.v1.IamCheckerClient;
2222
import com.google.cloud.policytroubleshooter.v1.IamCheckerSettings;
@@ -41,4 +41,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
4141
IamCheckerClient iamCheckerClient = IamCheckerClient.create(iamCheckerSettings);
4242
}
4343
}
44-
// [END policytroubleshooter_v1_generated_iamcheckerclient_create_setcredentialsprovider_sync]
44+
// [END policytroubleshooter_v1_generated_IamChecker_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.policytroubleshooter.v1.samples;
1818

19-
// [START policytroubleshooter_v1_generated_iamcheckerclient_create_setcredentialsprovider1_sync]
19+
// [START policytroubleshooter_v1_generated_IamChecker_Create_SetCredentialsProvider1_sync]
2020
import com.google.cloud.policytroubleshooter.v1.IamCheckerClient;
2121
import com.google.cloud.policytroubleshooter.v1.IamCheckerSettings;
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-
IamCheckerSettings iamCheckerSettings =
36-
IamCheckerSettings.newBuilder()
37-
.setTransportChannelProvider(
38-
IamCheckerSettings.defaultHttpJsonTransportProviderBuilder().build())
39-
.build();
35+
IamCheckerSettings iamCheckerSettings = IamCheckerSettings.newHttpJsonBuilder().build();
4036
IamCheckerClient iamCheckerClient = IamCheckerClient.create(iamCheckerSettings);
4137
}
4238
}
43-
// [END policytroubleshooter_v1_generated_iamcheckerclient_create_setcredentialsprovider1_sync]
39+
// [END policytroubleshooter_v1_generated_IamChecker_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.policytroubleshooter.v1.samples;
1818

19-
// [START policytroubleshooter_v1_generated_iamcheckerclient_create_setendpoint_sync]
19+
// [START policytroubleshooter_v1_generated_IamChecker_Create_SetEndpoint_sync]
2020
import com.google.cloud.policytroubleshooter.v1.IamCheckerClient;
2121
import com.google.cloud.policytroubleshooter.v1.IamCheckerSettings;
2222
import com.google.cloud.policytroubleshooter.v1.myEndpoint;
@@ -38,4 +38,4 @@ public static void syncCreateSetEndpoint() throws Exception {
3838
IamCheckerClient iamCheckerClient = IamCheckerClient.create(iamCheckerSettings);
3939
}
4040
}
41-
// [END policytroubleshooter_v1_generated_iamcheckerclient_create_setendpoint_sync]
41+
// [END policytroubleshooter_v1_generated_IamChecker_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.policytroubleshooter.v1.samples;
1818

19-
// [START policytroubleshooter_v1_generated_iamcheckerclient_troubleshootiampolicy_async]
19+
// [START policytroubleshooter_v1_generated_IamChecker_TroubleshootIamPolicy_async]
2020
import com.google.api.core.ApiFuture;
2121
import com.google.cloud.policytroubleshooter.v1.IamCheckerClient;
2222
import com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest;
@@ -47,4 +47,4 @@ public static void asyncTroubleshootIamPolicy() throws Exception {
4747
}
4848
}
4949
}
50-
// [END policytroubleshooter_v1_generated_iamcheckerclient_troubleshootiampolicy_async]
50+
// [END policytroubleshooter_v1_generated_IamChecker_TroubleshootIamPolicy_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.policytroubleshooter.v1.samples;
1818

19-
// [START policytroubleshooter_v1_generated_iamcheckerclient_troubleshootiampolicy_sync]
19+
// [START policytroubleshooter_v1_generated_IamChecker_TroubleshootIamPolicy_sync]
2020
import com.google.cloud.policytroubleshooter.v1.IamCheckerClient;
2121
import com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest;
2222
import com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse;
@@ -43,4 +43,4 @@ public static void syncTroubleshootIamPolicy() throws Exception {
4343
}
4444
}
4545
}
46-
// [END policytroubleshooter_v1_generated_iamcheckerclient_troubleshootiampolicy_sync]
46+
// [END policytroubleshooter_v1_generated_IamChecker_TroubleshootIamPolicy_sync]

java-policy-troubleshooter/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckersettings/troubleshootiampolicy/SyncTroubleshootIamPolicy.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

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

19-
// [START policytroubleshooter_v1_generated_iamcheckersettings_troubleshootiampolicy_sync]
19+
// [START policytroubleshooter_v1_generated_IamCheckerSettings_TroubleshootIamPolicy_sync]
2020
import com.google.cloud.policytroubleshooter.v1.IamCheckerSettings;
2121
import java.time.Duration;
2222

@@ -42,4 +42,4 @@ public static void syncTroubleshootIamPolicy() throws Exception {
4242
IamCheckerSettings iamCheckerSettings = iamCheckerSettingsBuilder.build();
4343
}
4444
}
45-
// [END policytroubleshooter_v1_generated_iamcheckersettings_troubleshootiampolicy_sync]
45+
// [END policytroubleshooter_v1_generated_IamCheckerSettings_TroubleshootIamPolicy_sync]

java-policy-troubleshooter/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/stub/iamcheckerstubsettings/troubleshootiampolicy/SyncTroubleshootIamPolicy.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
package com.google.cloud.policytroubleshooter.v1.stub.samples;
1818

19-
// [START policytroubleshooter_v1_generated_iamcheckerstubsettings_troubleshootiampolicy_sync]
19+
// [START policytroubleshooter_v1_generated_IamCheckerStubSettings_TroubleshootIamPolicy_sync]
2020
import com.google.cloud.policytroubleshooter.v1.stub.IamCheckerStubSettings;
2121
import java.time.Duration;
2222

@@ -42,4 +42,4 @@ public static void syncTroubleshootIamPolicy() throws Exception {
4242
IamCheckerStubSettings iamCheckerSettings = iamCheckerSettingsBuilder.build();
4343
}
4444
}
45-
// [END policytroubleshooter_v1_generated_iamcheckerstubsettings_troubleshootiampolicy_sync]
45+
// [END policytroubleshooter_v1_generated_IamCheckerStubSettings_TroubleshootIamPolicy_sync]

0 commit comments

Comments
 (0)