Skip to content

Commit ebe19b3

Browse files
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#719)
- [ ] 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 d594cb2 commit ebe19b3

File tree

5 files changed

+119
-50
lines changed

5 files changed

+119
-50
lines changed

java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java

Lines changed: 100 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@
4242
* calls that map to API methods. Sample code to get started:
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 (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
4851
* ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
4952
* List<String> delegates = new ArrayList<>();
@@ -83,8 +86,11 @@
8386
* <p>To customize credentials:
8487
*
8588
* <pre>{@code
86-
* // This snippet has been automatically generated for illustrative purposes only.
87-
* // It may require modifications to work in your environment.
89+
* // This snippet has been automatically generated and should be regarded as a code template only.
90+
* // It will require modifications to work:
91+
* // - It may require correct/in-range values for request initialization.
92+
* // - It may require specifying regional endpoints when creating the service client as shown in
93+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8894
* IamCredentialsSettings iamCredentialsSettings =
8995
* IamCredentialsSettings.newBuilder()
9096
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -95,8 +101,11 @@
95101
* <p>To customize the endpoint:
96102
*
97103
* <pre>{@code
98-
* // This snippet has been automatically generated for illustrative purposes only.
99-
* // It may require modifications to work in your environment.
104+
* // This snippet has been automatically generated and should be regarded as a code template only.
105+
* // It will require modifications to work:
106+
* // - It may require correct/in-range values for request initialization.
107+
* // - It may require specifying regional endpoints when creating the service client as shown in
108+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
100109
* IamCredentialsSettings iamCredentialsSettings =
101110
* IamCredentialsSettings.newBuilder().setEndpoint(myEndpoint).build();
102111
* IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create(iamCredentialsSettings);
@@ -106,8 +115,11 @@
106115
* the wire:
107116
*
108117
* <pre>{@code
109-
* // This snippet has been automatically generated for illustrative purposes only.
110-
* // It may require modifications to work in your environment.
118+
* // This snippet has been automatically generated and should be regarded as a code template only.
119+
* // It will require modifications to work:
120+
* // - It may require correct/in-range values for request initialization.
121+
* // - It may require specifying regional endpoints when creating the service client as shown in
122+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
111123
* IamCredentialsSettings iamCredentialsSettings =
112124
* IamCredentialsSettings.newBuilder()
113125
* .setTransportChannelProvider(
@@ -175,8 +187,11 @@ public IamCredentialsStub getStub() {
175187
* <p>Sample code:
176188
*
177189
* <pre>{@code
178-
* // This snippet has been automatically generated for illustrative purposes only.
179-
* // It may require modifications to work in your environment.
190+
* // This snippet has been automatically generated and should be regarded as a code template only.
191+
* // It will require modifications to work:
192+
* // - It may require correct/in-range values for request initialization.
193+
* // - It may require specifying regional endpoints when creating the service client as shown in
194+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
180195
* try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
181196
* ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
182197
* List<String> delegates = new ArrayList<>();
@@ -226,8 +241,11 @@ public final GenerateAccessTokenResponse generateAccessToken(
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 (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
232250
* String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString();
233251
* List<String> delegates = new ArrayList<>();
@@ -277,8 +295,11 @@ public final GenerateAccessTokenResponse generateAccessToken(
277295
* <p>Sample code:
278296
*
279297
* <pre>{@code
280-
* // This snippet has been automatically generated for illustrative purposes only.
281-
* // It may require modifications to work in your environment.
298+
* // This snippet has been automatically generated and should be regarded as a code template only.
299+
* // It will require modifications to work:
300+
* // - It may require correct/in-range values for request initialization.
301+
* // - It may require specifying regional endpoints when creating the service client as shown in
302+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
282303
* try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
283304
* GenerateAccessTokenRequest request =
284305
* GenerateAccessTokenRequest.newBuilder()
@@ -305,8 +326,11 @@ public final GenerateAccessTokenResponse generateAccessToken(GenerateAccessToken
305326
* <p>Sample code:
306327
*
307328
* <pre>{@code
308-
* // This snippet has been automatically generated for illustrative purposes only.
309-
* // It may require modifications to work in your environment.
329+
* // This snippet has been automatically generated and should be regarded as a code template only.
330+
* // It will require modifications to work:
331+
* // - It may require correct/in-range values for request initialization.
332+
* // - It may require specifying regional endpoints when creating the service client as shown in
333+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
310334
* try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
311335
* GenerateAccessTokenRequest request =
312336
* GenerateAccessTokenRequest.newBuilder()
@@ -334,8 +358,11 @@ public final GenerateAccessTokenResponse generateAccessToken(GenerateAccessToken
334358
* <p>Sample code:
335359
*
336360
* <pre>{@code
337-
* // This snippet has been automatically generated for illustrative purposes only.
338-
* // It may require modifications to work in your environment.
361+
* // This snippet has been automatically generated and should be regarded as a code template only.
362+
* // It will require modifications to work:
363+
* // - It may require correct/in-range values for request initialization.
364+
* // - It may require specifying regional endpoints when creating the service client as shown in
365+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
339366
* try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
340367
* ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
341368
* List<String> delegates = new ArrayList<>();
@@ -383,8 +410,11 @@ public final GenerateIdTokenResponse generateIdToken(
383410
* <p>Sample code:
384411
*
385412
* <pre>{@code
386-
* // This snippet has been automatically generated for illustrative purposes only.
387-
* // It may require modifications to work in your environment.
413+
* // This snippet has been automatically generated and should be regarded as a code template only.
414+
* // It will require modifications to work:
415+
* // - It may require correct/in-range values for request initialization.
416+
* // - It may require specifying regional endpoints when creating the service client as shown in
417+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
388418
* try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
389419
* String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString();
390420
* List<String> delegates = new ArrayList<>();
@@ -432,8 +462,11 @@ public final GenerateIdTokenResponse generateIdToken(
432462
* <p>Sample code:
433463
*
434464
* <pre>{@code
435-
* // This snippet has been automatically generated for illustrative purposes only.
436-
* // It may require modifications to work in your environment.
465+
* // This snippet has been automatically generated and should be regarded as a code template only.
466+
* // It will require modifications to work:
467+
* // - It may require correct/in-range values for request initialization.
468+
* // - It may require specifying regional endpoints when creating the service client as shown in
469+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
437470
* try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
438471
* GenerateIdTokenRequest request =
439472
* GenerateIdTokenRequest.newBuilder()
@@ -460,8 +493,11 @@ public final GenerateIdTokenResponse generateIdToken(GenerateIdTokenRequest requ
460493
* <p>Sample code:
461494
*
462495
* <pre>{@code
463-
* // This snippet has been automatically generated for illustrative purposes only.
464-
* // It may require modifications to work in your environment.
496+
* // This snippet has been automatically generated and should be regarded as a code template only.
497+
* // It will require modifications to work:
498+
* // - It may require correct/in-range values for request initialization.
499+
* // - It may require specifying regional endpoints when creating the service client as shown in
500+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
465501
* try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
466502
* GenerateIdTokenRequest request =
467503
* GenerateIdTokenRequest.newBuilder()
@@ -489,8 +525,11 @@ public final GenerateIdTokenResponse generateIdToken(GenerateIdTokenRequest requ
489525
* <p>Sample code:
490526
*
491527
* <pre>{@code
492-
* // This snippet has been automatically generated for illustrative purposes only.
493-
* // It may require modifications to work in your environment.
528+
* // This snippet has been automatically generated and should be regarded as a code template only.
529+
* // It will require modifications to work:
530+
* // - It may require correct/in-range values for request initialization.
531+
* // - It may require specifying regional endpoints when creating the service client as shown in
532+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
494533
* try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
495534
* ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
496535
* List<String> delegates = new ArrayList<>();
@@ -532,8 +571,11 @@ public final SignBlobResponse signBlob(
532571
* <p>Sample code:
533572
*
534573
* <pre>{@code
535-
* // This snippet has been automatically generated for illustrative purposes only.
536-
* // It may require modifications to work in your environment.
574+
* // This snippet has been automatically generated and should be regarded as a code template only.
575+
* // It will require modifications to work:
576+
* // - It may require correct/in-range values for request initialization.
577+
* // - It may require specifying regional endpoints when creating the service client as shown in
578+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
537579
* try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
538580
* String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString();
539581
* List<String> delegates = new ArrayList<>();
@@ -574,8 +616,11 @@ public final SignBlobResponse signBlob(String name, List<String> delegates, Byte
574616
* <p>Sample code:
575617
*
576618
* <pre>{@code
577-
* // This snippet has been automatically generated for illustrative purposes only.
578-
* // It may require modifications to work in your environment.
619+
* // This snippet has been automatically generated and should be regarded as a code template only.
620+
* // It will require modifications to work:
621+
* // - It may require correct/in-range values for request initialization.
622+
* // - It may require specifying regional endpoints when creating the service client as shown in
623+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
579624
* try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
580625
* SignBlobRequest request =
581626
* SignBlobRequest.newBuilder()
@@ -601,8 +646,11 @@ public final SignBlobResponse signBlob(SignBlobRequest request) {
601646
* <p>Sample code:
602647
*
603648
* <pre>{@code
604-
* // This snippet has been automatically generated for illustrative purposes only.
605-
* // It may require modifications to work in your environment.
649+
* // This snippet has been automatically generated and should be regarded as a code template only.
650+
* // It will require modifications to work:
651+
* // - It may require correct/in-range values for request initialization.
652+
* // - It may require specifying regional endpoints when creating the service client as shown in
653+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
606654
* try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
607655
* SignBlobRequest request =
608656
* SignBlobRequest.newBuilder()
@@ -628,8 +676,11 @@ public final UnaryCallable<SignBlobRequest, SignBlobResponse> signBlobCallable()
628676
* <p>Sample code:
629677
*
630678
* <pre>{@code
631-
* // This snippet has been automatically generated for illustrative purposes only.
632-
* // It may require modifications to work in your environment.
679+
* // This snippet has been automatically generated and should be regarded as a code template only.
680+
* // It will require modifications to work:
681+
* // - It may require correct/in-range values for request initialization.
682+
* // - It may require specifying regional endpoints when creating the service client as shown in
683+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
633684
* try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
634685
* ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
635686
* List<String> delegates = new ArrayList<>();
@@ -671,8 +722,11 @@ public final SignJwtResponse signJwt(
671722
* <p>Sample code:
672723
*
673724
* <pre>{@code
674-
* // This snippet has been automatically generated for illustrative purposes only.
675-
* // It may require modifications to work in your environment.
725+
* // This snippet has been automatically generated and should be regarded as a code template only.
726+
* // It will require modifications to work:
727+
* // - It may require correct/in-range values for request initialization.
728+
* // - It may require specifying regional endpoints when creating the service client as shown in
729+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
676730
* try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
677731
* String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString();
678732
* List<String> delegates = new ArrayList<>();
@@ -713,8 +767,11 @@ public final SignJwtResponse signJwt(String name, List<String> delegates, String
713767
* <p>Sample code:
714768
*
715769
* <pre>{@code
716-
* // This snippet has been automatically generated for illustrative purposes only.
717-
* // It may require modifications to work in your environment.
770+
* // This snippet has been automatically generated and should be regarded as a code template only.
771+
* // It will require modifications to work:
772+
* // - It may require correct/in-range values for request initialization.
773+
* // - It may require specifying regional endpoints when creating the service client as shown in
774+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
718775
* try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
719776
* SignJwtRequest request =
720777
* SignJwtRequest.newBuilder()
@@ -740,8 +797,11 @@ public final SignJwtResponse signJwt(SignJwtRequest request) {
740797
* <p>Sample code:
741798
*
742799
* <pre>{@code
743-
* // This snippet has been automatically generated for illustrative purposes only.
744-
* // It may require modifications to work in your environment.
800+
* // This snippet has been automatically generated and should be regarded as a code template only.
801+
* // It will require modifications to work:
802+
* // - It may require correct/in-range values for request initialization.
803+
* // - It may require specifying regional endpoints when creating the service client as shown in
804+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
745805
* try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
746806
* SignJwtRequest request =
747807
* SignJwtRequest.newBuilder()

java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@
5151
* <p>For example, to set the total timeout of generateAccessToken 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
* IamCredentialsSettings.Builder iamCredentialsSettingsBuilder =
5760
* IamCredentialsSettings.newBuilder();
5861
* iamCredentialsSettingsBuilder

java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/package-info.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@
3131
* <p>Sample for IamCredentialsClient:
3232
*
3333
* <pre>{@code
34-
* // This snippet has been automatically generated for illustrative purposes only.
35-
* // It may require modifications to work in your environment.
34+
* // This snippet has been automatically generated and should be regarded as a code template only.
35+
* // It will require modifications to work:
36+
* // - It may require correct/in-range values for request initialization.
37+
* // - It may require specifying regional endpoints when creating the service client as shown in
38+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3639
* try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
3740
* ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
3841
* List<String> delegates = new ArrayList<>();

0 commit comments

Comments
 (0)