Skip to content

Commit 51d7f43

Browse files
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#206)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 472750037 Source-Link: googleapis/googleapis@88f2ea3 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9
1 parent 5c43f5e commit 51d7f43

14 files changed

+167
-91
lines changed

java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/QuotaControllerClient.java

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,11 @@
3535
* calls that map to API methods. Sample code to get started:
3636
*
3737
* <pre>{@code
38-
* // This snippet has been automatically generated for illustrative purposes only.
39-
* // It may require modifications to work in your environment.
38+
* // This snippet has been automatically generated and should be regarded as a code template only.
39+
* // It will require modifications to work:
40+
* // - It may require correct/in-range values for request initialization.
41+
* // - It may require specifying regional endpoints when creating the service client as shown in
42+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4043
* try (QuotaControllerClient quotaControllerClient = QuotaControllerClient.create()) {
4144
* AllocateQuotaRequest request =
4245
* AllocateQuotaRequest.newBuilder()
@@ -78,8 +81,11 @@
7881
* <p>To customize credentials:
7982
*
8083
* <pre>{@code
81-
* // This snippet has been automatically generated for illustrative purposes only.
82-
* // It may require modifications to work in your environment.
84+
* // This snippet has been automatically generated and should be regarded as a code template only.
85+
* // It will require modifications to work:
86+
* // - It may require correct/in-range values for request initialization.
87+
* // - It may require specifying regional endpoints when creating the service client as shown in
88+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8389
* QuotaControllerSettings quotaControllerSettings =
8490
* QuotaControllerSettings.newBuilder()
8591
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -91,8 +97,11 @@
9197
* <p>To customize the endpoint:
9298
*
9399
* <pre>{@code
94-
* // This snippet has been automatically generated for illustrative purposes only.
95-
* // It may require modifications to work in your environment.
100+
* // This snippet has been automatically generated and should be regarded as a code template only.
101+
* // It will require modifications to work:
102+
* // - It may require correct/in-range values for request initialization.
103+
* // - It may require specifying regional endpoints when creating the service client as shown in
104+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
96105
* QuotaControllerSettings quotaControllerSettings =
97106
* QuotaControllerSettings.newBuilder().setEndpoint(myEndpoint).build();
98107
* QuotaControllerClient quotaControllerClient =
@@ -103,8 +112,11 @@
103112
* the wire:
104113
*
105114
* <pre>{@code
106-
* // This snippet has been automatically generated for illustrative purposes only.
107-
* // It may require modifications to work in your environment.
115+
* // This snippet has been automatically generated and should be regarded as a code template only.
116+
* // It will require modifications to work:
117+
* // - It may require correct/in-range values for request initialization.
118+
* // - It may require specifying regional endpoints when creating the service client as shown in
119+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
108120
* QuotaControllerSettings quotaControllerSettings =
109121
* QuotaControllerSettings.newBuilder()
110122
* .setTransportChannelProvider(
@@ -181,8 +193,11 @@ public QuotaControllerStub getStub() {
181193
* <p>Sample code:
182194
*
183195
* <pre>{@code
184-
* // This snippet has been automatically generated for illustrative purposes only.
185-
* // It may require modifications to work in your environment.
196+
* // This snippet has been automatically generated and should be regarded as a code template only.
197+
* // It will require modifications to work:
198+
* // - It may require correct/in-range values for request initialization.
199+
* // - It may require specifying regional endpoints when creating the service client as shown in
200+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
186201
* try (QuotaControllerClient quotaControllerClient = QuotaControllerClient.create()) {
187202
* AllocateQuotaRequest request =
188203
* AllocateQuotaRequest.newBuilder()
@@ -216,8 +231,11 @@ public final AllocateQuotaResponse allocateQuota(AllocateQuotaRequest request) {
216231
* <p>Sample code:
217232
*
218233
* <pre>{@code
219-
* // This snippet has been automatically generated for illustrative purposes only.
220-
* // It may require modifications to work in your environment.
234+
* // This snippet has been automatically generated and should be regarded as a code template only.
235+
* // It will require modifications to work:
236+
* // - It may require correct/in-range values for request initialization.
237+
* // - It may require specifying regional endpoints when creating the service client as shown in
238+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
221239
* try (QuotaControllerClient quotaControllerClient = QuotaControllerClient.create()) {
222240
* AllocateQuotaRequest request =
223241
* AllocateQuotaRequest.newBuilder()

java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/QuotaControllerSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@
5151
* <p>For example, to set the total timeout of allocateQuota to 30 seconds:
5252
*
5353
* <pre>{@code
54-
* // This snippet has been automatically generated for illustrative purposes only.
55-
* // It may require modifications to work in your environment.
54+
* // This snippet has been automatically generated and should be regarded as a code template only.
55+
* // It will require modifications to work:
56+
* // - It may require correct/in-range values for request initialization.
57+
* // - It may require specifying regional endpoints when creating the service client as shown in
58+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5659
* QuotaControllerSettings.Builder quotaControllerSettingsBuilder =
5760
* QuotaControllerSettings.newBuilder();
5861
* quotaControllerSettingsBuilder
5962
* .allocateQuotaSettings()
6063
* .setRetrySettings(
61-
* quotaControllerSettingsBuilder
62-
* .allocateQuotaSettings()
63-
* .getRetrySettings()
64-
* .toBuilder()
64+
* quotaControllerSettingsBuilder.allocateQuotaSettings().getRetrySettings().toBuilder()
6565
* .setTotalTimeout(Duration.ofSeconds(30))
6666
* .build());
6767
* QuotaControllerSettings quotaControllerSettings = quotaControllerSettingsBuilder.build();

java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/ServiceControllerClient.java

Lines changed: 40 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,11 @@
3535
* calls that map to API methods. Sample code to get started:
3636
*
3737
* <pre>{@code
38-
* // This snippet has been automatically generated for illustrative purposes only.
39-
* // It may require modifications to work in your environment.
38+
* // This snippet has been automatically generated and should be regarded as a code template only.
39+
* // It will require modifications to work:
40+
* // - It may require correct/in-range values for request initialization.
41+
* // - It may require specifying regional endpoints when creating the service client as shown in
42+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4043
* try (ServiceControllerClient serviceControllerClient = ServiceControllerClient.create()) {
4144
* CheckRequest request =
4245
* CheckRequest.newBuilder()
@@ -78,8 +81,11 @@
7881
* <p>To customize credentials:
7982
*
8083
* <pre>{@code
81-
* // This snippet has been automatically generated for illustrative purposes only.
82-
* // It may require modifications to work in your environment.
84+
* // This snippet has been automatically generated and should be regarded as a code template only.
85+
* // It will require modifications to work:
86+
* // - It may require correct/in-range values for request initialization.
87+
* // - It may require specifying regional endpoints when creating the service client as shown in
88+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8389
* ServiceControllerSettings serviceControllerSettings =
8490
* ServiceControllerSettings.newBuilder()
8591
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -91,8 +97,11 @@
9197
* <p>To customize the endpoint:
9298
*
9399
* <pre>{@code
94-
* // This snippet has been automatically generated for illustrative purposes only.
95-
* // It may require modifications to work in your environment.
100+
* // This snippet has been automatically generated and should be regarded as a code template only.
101+
* // It will require modifications to work:
102+
* // - It may require correct/in-range values for request initialization.
103+
* // - It may require specifying regional endpoints when creating the service client as shown in
104+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
96105
* ServiceControllerSettings serviceControllerSettings =
97106
* ServiceControllerSettings.newBuilder().setEndpoint(myEndpoint).build();
98107
* ServiceControllerClient serviceControllerClient =
@@ -103,8 +112,11 @@
103112
* the wire:
104113
*
105114
* <pre>{@code
106-
* // This snippet has been automatically generated for illustrative purposes only.
107-
* // It may require modifications to work in your environment.
115+
* // This snippet has been automatically generated and should be regarded as a code template only.
116+
* // It will require modifications to work:
117+
* // - It may require correct/in-range values for request initialization.
118+
* // - It may require specifying regional endpoints when creating the service client as shown in
119+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
108120
* ServiceControllerSettings serviceControllerSettings =
109121
* ServiceControllerSettings.newBuilder()
110122
* .setTransportChannelProvider(
@@ -186,8 +198,11 @@ public ServiceControllerStub getStub() {
186198
* <p>Sample code:
187199
*
188200
* <pre>{@code
189-
* // This snippet has been automatically generated for illustrative purposes only.
190-
* // It may require modifications to work in your environment.
201+
* // This snippet has been automatically generated and should be regarded as a code template only.
202+
* // It will require modifications to work:
203+
* // - It may require correct/in-range values for request initialization.
204+
* // - It may require specifying regional endpoints when creating the service client as shown in
205+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
191206
* try (ServiceControllerClient serviceControllerClient = ServiceControllerClient.create()) {
192207
* CheckRequest request =
193208
* CheckRequest.newBuilder()
@@ -226,8 +241,11 @@ public final CheckResponse check(CheckRequest request) {
226241
* <p>Sample code:
227242
*
228243
* <pre>{@code
229-
* // This snippet has been automatically generated for illustrative purposes only.
230-
* // It may require modifications to work in your environment.
244+
* // This snippet has been automatically generated and should be regarded as a code template only.
245+
* // It will require modifications to work:
246+
* // - It may require correct/in-range values for request initialization.
247+
* // - It may require specifying regional endpoints when creating the service client as shown in
248+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
231249
* try (ServiceControllerClient serviceControllerClient = ServiceControllerClient.create()) {
232250
* CheckRequest request =
233251
* CheckRequest.newBuilder()
@@ -264,8 +282,11 @@ public final UnaryCallable<CheckRequest, CheckResponse> checkCallable() {
264282
* <p>Sample code:
265283
*
266284
* <pre>{@code
267-
* // This snippet has been automatically generated for illustrative purposes only.
268-
* // It may require modifications to work in your environment.
285+
* // This snippet has been automatically generated and should be regarded as a code template only.
286+
* // It will require modifications to work:
287+
* // - It may require correct/in-range values for request initialization.
288+
* // - It may require specifying regional endpoints when creating the service client as shown in
289+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
269290
* try (ServiceControllerClient serviceControllerClient = ServiceControllerClient.create()) {
270291
* ReportRequest request =
271292
* ReportRequest.newBuilder()
@@ -303,8 +324,11 @@ public final ReportResponse report(ReportRequest request) {
303324
* <p>Sample code:
304325
*
305326
* <pre>{@code
306-
* // This snippet has been automatically generated for illustrative purposes only.
307-
* // It may require modifications to work in your environment.
327+
* // This snippet has been automatically generated and should be regarded as a code template only.
328+
* // It will require modifications to work:
329+
* // - It may require correct/in-range values for request initialization.
330+
* // - It may require specifying regional endpoints when creating the service client as shown in
331+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
308332
* try (ServiceControllerClient serviceControllerClient = ServiceControllerClient.create()) {
309333
* ReportRequest request =
310334
* ReportRequest.newBuilder()

java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/ServiceControllerSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@
5151
* <p>For example, to set the total timeout of check to 30 seconds:
5252
*
5353
* <pre>{@code
54-
* // This snippet has been automatically generated for illustrative purposes only.
55-
* // It may require modifications to work in your environment.
54+
* // This snippet has been automatically generated and should be regarded as a code template only.
55+
* // It will require modifications to work:
56+
* // - It may require correct/in-range values for request initialization.
57+
* // - It may require specifying regional endpoints when creating the service client as shown in
58+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5659
* ServiceControllerSettings.Builder serviceControllerSettingsBuilder =
5760
* ServiceControllerSettings.newBuilder();
5861
* serviceControllerSettingsBuilder
5962
* .checkSettings()
6063
* .setRetrySettings(
61-
* serviceControllerSettingsBuilder
62-
* .checkSettings()
63-
* .getRetrySettings()
64-
* .toBuilder()
64+
* serviceControllerSettingsBuilder.checkSettings().getRetrySettings().toBuilder()
6565
* .setTotalTimeout(Duration.ofSeconds(30))
6666
* .build());
6767
* ServiceControllerSettings serviceControllerSettings = serviceControllerSettingsBuilder.build();

java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/package-info.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@
2727
* <p>Sample for QuotaControllerClient:
2828
*
2929
* <pre>{@code
30-
* // This snippet has been automatically generated for illustrative purposes only.
31-
* // It may require modifications to work in your environment.
30+
* // This snippet has been automatically generated and should be regarded as a code template only.
31+
* // It will require modifications to work:
32+
* // - It may require correct/in-range values for request initialization.
33+
* // - It may require specifying regional endpoints when creating the service client as shown in
34+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3235
* try (QuotaControllerClient quotaControllerClient = QuotaControllerClient.create()) {
3336
* AllocateQuotaRequest request =
3437
* AllocateQuotaRequest.newBuilder()
@@ -50,8 +53,11 @@
5053
* <p>Sample for ServiceControllerClient:
5154
*
5255
* <pre>{@code
53-
* // This snippet has been automatically generated for illustrative purposes only.
54-
* // It may require modifications to work in your environment.
56+
* // This snippet has been automatically generated and should be regarded as a code template only.
57+
* // It will require modifications to work:
58+
* // - It may require correct/in-range values for request initialization.
59+
* // - It may require specifying regional endpoints when creating the service client as shown in
60+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5561
* try (ServiceControllerClient serviceControllerClient = ServiceControllerClient.create()) {
5662
* CheckRequest request =
5763
* CheckRequest.newBuilder()

java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/HttpJsonQuotaControllerStub.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ public class HttpJsonQuotaControllerStub extends QuotaControllerStub {
7878
.setRequestBodyExtractor(
7979
request ->
8080
ProtoRestSerializer.create()
81-
.toBody("*", request.toBuilder().clearServiceName().build()))
81+
.toBody(
82+
"*", request.toBuilder().clearServiceName().build(), false))
8283
.build())
8384
.setResponseParser(
8485
ProtoMessageResponseParser.<AllocateQuotaResponse>newBuilder()

java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/HttpJsonServiceControllerStub.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public class HttpJsonServiceControllerStub extends ServiceControllerStub {
7676
.setRequestBodyExtractor(
7777
request ->
7878
ProtoRestSerializer.create()
79-
.toBody("*", request.toBuilder().clearServiceName().build()))
79+
.toBody("*", request.toBuilder().clearServiceName().build(), false))
8080
.build())
8181
.setResponseParser(
8282
ProtoMessageResponseParser.<CheckResponse>newBuilder()
@@ -111,7 +111,7 @@ public class HttpJsonServiceControllerStub extends ServiceControllerStub {
111111
.setRequestBodyExtractor(
112112
request ->
113113
ProtoRestSerializer.create()
114-
.toBody("*", request.toBuilder().clearServiceName().build()))
114+
.toBody("*", request.toBuilder().clearServiceName().build(), false))
115115
.build())
116116
.setResponseParser(
117117
ProtoMessageResponseParser.<ReportResponse>newBuilder()

java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/QuotaControllerStubSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,17 @@
6363
* <p>For example, to set the total timeout of allocateQuota to 30 seconds:
6464
*
6565
* <pre>{@code
66-
* // This snippet has been automatically generated for illustrative purposes only.
67-
* // It may require modifications to work in your environment.
66+
* // This snippet has been automatically generated and should be regarded as a code template only.
67+
* // It will require modifications to work:
68+
* // - It may require correct/in-range values for request initialization.
69+
* // - It may require specifying regional endpoints when creating the service client as shown in
70+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6871
* QuotaControllerStubSettings.Builder quotaControllerSettingsBuilder =
6972
* QuotaControllerStubSettings.newBuilder();
7073
* quotaControllerSettingsBuilder
7174
* .allocateQuotaSettings()
7275
* .setRetrySettings(
73-
* quotaControllerSettingsBuilder
74-
* .allocateQuotaSettings()
75-
* .getRetrySettings()
76-
* .toBuilder()
76+
* quotaControllerSettingsBuilder.allocateQuotaSettings().getRetrySettings().toBuilder()
7777
* .setTotalTimeout(Duration.ofSeconds(30))
7878
* .build());
7979
* QuotaControllerStubSettings quotaControllerSettings = quotaControllerSettingsBuilder.build();

java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/ServiceControllerStubSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,17 @@
6666
* <p>For example, to set the total timeout of check to 30 seconds:
6767
*
6868
* <pre>{@code
69-
* // This snippet has been automatically generated for illustrative purposes only.
70-
* // It may require modifications to work in your environment.
69+
* // This snippet has been automatically generated and should be regarded as a code template only.
70+
* // It will require modifications to work:
71+
* // - It may require correct/in-range values for request initialization.
72+
* // - It may require specifying regional endpoints when creating the service client as shown in
73+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7174
* ServiceControllerStubSettings.Builder serviceControllerSettingsBuilder =
7275
* ServiceControllerStubSettings.newBuilder();
7376
* serviceControllerSettingsBuilder
7477
* .checkSettings()
7578
* .setRetrySettings(
76-
* serviceControllerSettingsBuilder
77-
* .checkSettings()
78-
* .getRetrySettings()
79-
* .toBuilder()
79+
* serviceControllerSettingsBuilder.checkSettings().getRetrySettings().toBuilder()
8080
* .setTotalTimeout(Duration.ofSeconds(30))
8181
* .build());
8282
* ServiceControllerStubSettings serviceControllerSettings =

0 commit comments

Comments
 (0)