Skip to content

Commit 5a7826b

Browse files
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#339)
- [ ] 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 d60163b commit 5a7826b

File tree

146 files changed

+1454
-609
lines changed

Some content is hidden

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

146 files changed

+1454
-609
lines changed

java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceClient.java

Lines changed: 700 additions & 280 deletions
Large diffs are not rendered by default.

java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,17 @@
6868
* <p>For example, to set the total timeout of getCustomer to 30 seconds:
6969
*
7070
* <pre>{@code
71-
* // This snippet has been automatically generated for illustrative purposes only.
72-
* // It may require modifications to work in your environment.
71+
* // This snippet has been automatically generated and should be regarded as a code template only.
72+
* // It will require modifications to work:
73+
* // - It may require correct/in-range values for request initialization.
74+
* // - It may require specifying regional endpoints when creating the service client as shown in
75+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7376
* CloudChannelServiceSettings.Builder cloudChannelServiceSettingsBuilder =
7477
* CloudChannelServiceSettings.newBuilder();
7578
* cloudChannelServiceSettingsBuilder
7679
* .getCustomerSettings()
7780
* .setRetrySettings(
78-
* cloudChannelServiceSettingsBuilder
79-
* .getCustomerSettings()
80-
* .getRetrySettings()
81-
* .toBuilder()
81+
* cloudChannelServiceSettingsBuilder.getCustomerSettings().getRetrySettings().toBuilder()
8282
* .setTotalTimeout(Duration.ofSeconds(30))
8383
* .build());
8484
* CloudChannelServiceSettings cloudChannelServiceSettings =

java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/package-info.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@
4242
* <p>Sample for CloudChannelServiceClient:
4343
*
4444
* <pre>{@code
45-
* // This snippet has been automatically generated for illustrative purposes only.
46-
* // It may require modifications to work in your environment.
45+
* // This snippet has been automatically generated and should be regarded as a code template only.
46+
* // It will require modifications to work:
47+
* // - It may require correct/in-range values for request initialization.
48+
* // - It may require specifying regional endpoints when creating the service client as shown in
49+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4750
* try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
4851
* CustomerName name = CustomerName.of("[ACCOUNT]", "[CUSTOMER]");
4952
* Customer response = cloudChannelServiceClient.getCustomer(name);

java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelServiceStubSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,17 +163,17 @@
163163
* <p>For example, to set the total timeout of getCustomer to 30 seconds:
164164
*
165165
* <pre>{@code
166-
* // This snippet has been automatically generated for illustrative purposes only.
167-
* // It may require modifications to work in your environment.
166+
* // This snippet has been automatically generated and should be regarded as a code template only.
167+
* // It will require modifications to work:
168+
* // - It may require correct/in-range values for request initialization.
169+
* // - It may require specifying regional endpoints when creating the service client as shown in
170+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
168171
* CloudChannelServiceStubSettings.Builder cloudChannelServiceSettingsBuilder =
169172
* CloudChannelServiceStubSettings.newBuilder();
170173
* cloudChannelServiceSettingsBuilder
171174
* .getCustomerSettings()
172175
* .setRetrySettings(
173-
* cloudChannelServiceSettingsBuilder
174-
* .getCustomerSettings()
175-
* .getRetrySettings()
176-
* .toBuilder()
176+
* cloudChannelServiceSettingsBuilder.getCustomerSettings().getRetrySettings().toBuilder()
177177
* .setTotalTimeout(Duration.ofSeconds(30))
178178
* .build());
179179
* CloudChannelServiceStubSettings cloudChannelServiceSettings =

java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/HttpJsonCloudChannelServiceStub.java

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
245245
.setRequestBodyExtractor(
246246
request ->
247247
ProtoRestSerializer.create()
248-
.toBody("*", request.toBuilder().clearParent().build()))
248+
.toBody("*", request.toBuilder().clearParent().build(), false))
249249
.build())
250250
.setResponseParser(
251251
ProtoMessageResponseParser.<CheckCloudIdentityAccountsExistResponse>newBuilder()
@@ -283,7 +283,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
283283
.setRequestBodyExtractor(
284284
request ->
285285
ProtoRestSerializer.create()
286-
.toBody("customer", request.getCustomer()))
286+
.toBody("customer", request.getCustomer(), false))
287287
.build())
288288
.setResponseParser(
289289
ProtoMessageResponseParser.<Customer>newBuilder()
@@ -323,7 +323,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
323323
.setRequestBodyExtractor(
324324
request ->
325325
ProtoRestSerializer.create()
326-
.toBody("customer", request.getCustomer()))
326+
.toBody("customer", request.getCustomer(), false))
327327
.build())
328328
.setResponseParser(
329329
ProtoMessageResponseParser.<Customer>newBuilder()
@@ -395,7 +395,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
395395
.setRequestBodyExtractor(
396396
request ->
397397
ProtoRestSerializer.create()
398-
.toBody("*", request.toBuilder().clearParent().build()))
398+
.toBody("*", request.toBuilder().clearParent().build(), false))
399399
.build())
400400
.setResponseParser(
401401
ProtoMessageResponseParser.<Customer>newBuilder()
@@ -432,7 +432,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
432432
.setRequestBodyExtractor(
433433
request ->
434434
ProtoRestSerializer.create()
435-
.toBody("*", request.toBuilder().clearCustomer().build()))
435+
.toBody("*", request.toBuilder().clearCustomer().build(), false))
436436
.build())
437437
.setResponseParser(
438438
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -508,7 +508,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
508508
.setRequestBodyExtractor(
509509
request ->
510510
ProtoRestSerializer.create()
511-
.toBody("*", request.toBuilder().clearParent().build()))
511+
.toBody("*", request.toBuilder().clearParent().build(), false))
512512
.build())
513513
.setResponseParser(
514514
ProtoMessageResponseParser.<ListTransferableSkusResponse>newBuilder()
@@ -547,7 +547,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
547547
.setRequestBodyExtractor(
548548
request ->
549549
ProtoRestSerializer.create()
550-
.toBody("*", request.toBuilder().clearParent().build()))
550+
.toBody("*", request.toBuilder().clearParent().build(), false))
551551
.build())
552552
.setResponseParser(
553553
ProtoMessageResponseParser.<ListTransferableOffersResponse>newBuilder()
@@ -616,7 +616,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
616616
.setRequestBodyExtractor(
617617
request ->
618618
ProtoRestSerializer.create()
619-
.toBody("*", request.toBuilder().clearParent().build()))
619+
.toBody("*", request.toBuilder().clearParent().build(), false))
620620
.build())
621621
.setResponseParser(
622622
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -655,7 +655,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
655655
.setRequestBodyExtractor(
656656
request ->
657657
ProtoRestSerializer.create()
658-
.toBody("*", request.toBuilder().clearName().build()))
658+
.toBody("*", request.toBuilder().clearName().build(), false))
659659
.build())
660660
.setResponseParser(
661661
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -695,7 +695,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
695695
.setRequestBodyExtractor(
696696
request ->
697697
ProtoRestSerializer.create()
698-
.toBody("*", request.toBuilder().clearName().build()))
698+
.toBody("*", request.toBuilder().clearName().build(), false))
699699
.build())
700700
.setResponseParser(
701701
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -734,7 +734,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
734734
.setRequestBodyExtractor(
735735
request ->
736736
ProtoRestSerializer.create()
737-
.toBody("*", request.toBuilder().clearName().build()))
737+
.toBody("*", request.toBuilder().clearName().build(), false))
738738
.build())
739739
.setResponseParser(
740740
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -773,7 +773,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
773773
.setRequestBodyExtractor(
774774
request ->
775775
ProtoRestSerializer.create()
776-
.toBody("*", request.toBuilder().clearName().build()))
776+
.toBody("*", request.toBuilder().clearName().build(), false))
777777
.build())
778778
.setResponseParser(
779779
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -812,7 +812,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
812812
.setRequestBodyExtractor(
813813
request ->
814814
ProtoRestSerializer.create()
815-
.toBody("*", request.toBuilder().clearName().build()))
815+
.toBody("*", request.toBuilder().clearName().build(), false))
816816
.build())
817817
.setResponseParser(
818818
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -851,7 +851,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
851851
.setRequestBodyExtractor(
852852
request ->
853853
ProtoRestSerializer.create()
854-
.toBody("*", request.toBuilder().clearName().build()))
854+
.toBody("*", request.toBuilder().clearName().build(), false))
855855
.build())
856856
.setResponseParser(
857857
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -890,7 +890,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
890890
.setRequestBodyExtractor(
891891
request ->
892892
ProtoRestSerializer.create()
893-
.toBody("*", request.toBuilder().clearName().build()))
893+
.toBody("*", request.toBuilder().clearName().build(), false))
894894
.build())
895895
.setResponseParser(
896896
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -929,7 +929,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
929929
.setRequestBodyExtractor(
930930
request ->
931931
ProtoRestSerializer.create()
932-
.toBody("*", request.toBuilder().clearParent().build()))
932+
.toBody("*", request.toBuilder().clearParent().build(), false))
933933
.build())
934934
.setResponseParser(
935935
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -969,7 +969,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
969969
.setRequestBodyExtractor(
970970
request ->
971971
ProtoRestSerializer.create()
972-
.toBody("*", request.toBuilder().clearParent().build()))
972+
.toBody("*", request.toBuilder().clearParent().build(), false))
973973
.build())
974974
.setResponseParser(
975975
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -1083,7 +1083,8 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
10831083
.setRequestBodyExtractor(
10841084
request ->
10851085
ProtoRestSerializer.create()
1086-
.toBody("channelPartnerLink", request.getChannelPartnerLink()))
1086+
.toBody(
1087+
"channelPartnerLink", request.getChannelPartnerLink(), false))
10871088
.build())
10881089
.setResponseParser(
10891090
ProtoMessageResponseParser.<ChannelPartnerLink>newBuilder()
@@ -1120,7 +1121,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
11201121
.setRequestBodyExtractor(
11211122
request ->
11221123
ProtoRestSerializer.create()
1123-
.toBody("*", request.toBuilder().clearName().build()))
1124+
.toBody("*", request.toBuilder().clearName().build(), false))
11241125
.build())
11251126
.setResponseParser(
11261127
ProtoMessageResponseParser.<ChannelPartnerLink>newBuilder()
@@ -1237,7 +1238,8 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
12371238
ProtoRestSerializer.create()
12381239
.toBody(
12391240
"customerRepricingConfig",
1240-
request.getCustomerRepricingConfig()))
1241+
request.getCustomerRepricingConfig(),
1242+
false))
12411243
.build())
12421244
.setResponseParser(
12431245
ProtoMessageResponseParser.<CustomerRepricingConfig>newBuilder()
@@ -1281,7 +1283,8 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
12811283
ProtoRestSerializer.create()
12821284
.toBody(
12831285
"customerRepricingConfig",
1284-
request.getCustomerRepricingConfig()))
1286+
request.getCustomerRepricingConfig(),
1287+
false))
12851288
.build())
12861289
.setResponseParser(
12871290
ProtoMessageResponseParser.<CustomerRepricingConfig>newBuilder()
@@ -1438,7 +1441,8 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
14381441
ProtoRestSerializer.create()
14391442
.toBody(
14401443
"channelPartnerRepricingConfig",
1441-
request.getChannelPartnerRepricingConfig()))
1444+
request.getChannelPartnerRepricingConfig(),
1445+
false))
14421446
.build())
14431447
.setResponseParser(
14441448
ProtoMessageResponseParser.<ChannelPartnerRepricingConfig>newBuilder()
@@ -1484,7 +1488,8 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
14841488
ProtoRestSerializer.create()
14851489
.toBody(
14861490
"channelPartnerRepricingConfig",
1487-
request.getChannelPartnerRepricingConfig()))
1491+
request.getChannelPartnerRepricingConfig(),
1492+
false))
14881493
.build())
14891494
.setResponseParser(
14901495
ProtoMessageResponseParser.<ChannelPartnerRepricingConfig>newBuilder()
@@ -1789,7 +1794,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
17891794
.setRequestBodyExtractor(
17901795
request ->
17911796
ProtoRestSerializer.create()
1792-
.toBody("*", request.toBuilder().clearAccount().build()))
1797+
.toBody("*", request.toBuilder().clearAccount().build(), false))
17931798
.build())
17941799
.setResponseParser(
17951800
ProtoMessageResponseParser.<RegisterSubscriberResponse>newBuilder()
@@ -1827,7 +1832,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
18271832
.setRequestBodyExtractor(
18281833
request ->
18291834
ProtoRestSerializer.create()
1830-
.toBody("*", request.toBuilder().clearAccount().build()))
1835+
.toBody("*", request.toBuilder().clearAccount().build(), false))
18311836
.build())
18321837
.setResponseParser(
18331838
ProtoMessageResponseParser.<UnregisterSubscriberResponse>newBuilder()

java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelserviceclient/activateentitlement/AsyncActivateEntitlement.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
2929
}
3030

3131
public static void asyncActivateEntitlement() throws Exception {
32-
// This snippet has been automatically generated for illustrative purposes only.
33-
// It may require modifications to work in your environment.
32+
// This snippet has been automatically generated and should be regarded as a code template only.
33+
// It will require modifications to work:
34+
// - It may require correct/in-range values for request initialization.
35+
// - It may require specifying regional endpoints when creating the service client as shown in
36+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3437
try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
3538
ActivateEntitlementRequest request =
3639
ActivateEntitlementRequest.newBuilder()

java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelserviceclient/activateentitlement/AsyncActivateEntitlementLRO.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
3030
}
3131

3232
public static void asyncActivateEntitlementLRO() throws Exception {
33-
// This snippet has been automatically generated for illustrative purposes only.
34-
// It may require modifications to work in your environment.
33+
// This snippet has been automatically generated and should be regarded as a code template only.
34+
// It will require modifications to work:
35+
// - It may require correct/in-range values for request initialization.
36+
// - It may require specifying regional endpoints when creating the service client as shown in
37+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3538
try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
3639
ActivateEntitlementRequest request =
3740
ActivateEntitlementRequest.newBuilder()

0 commit comments

Comments
 (0)