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<>();
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))
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);
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()
0 commit comments