| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d594cb2 commit ebe19b3
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -42,8 +42,11 @@ | |||
| 42 | 42 | * calls that map to API methods. Sample code to get started: | |
| 43 | 43 | * | |
| 44 | 44 | * <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 | ||
| 47 | 50 | * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { | |
| 48 | 51 | * ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); | |
| 49 | 52 | * List<String> delegates = new ArrayList<>(); | |
@@ -83,8 +86,11 @@ | |||
| 83 | 86 | * <p>To customize credentials: | |
| 84 | 87 | * | |
| 85 | 88 | * <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 | ||
| 88 | 94 | * IamCredentialsSettings iamCredentialsSettings = | |
| 89 | 95 | * IamCredentialsSettings.newBuilder() | |
| 90 | 96 | * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) | |
@@ -95,8 +101,11 @@ | |||
| 95 | 101 | * <p>To customize the endpoint: | |
| 96 | 102 | * | |
| 97 | 103 | * <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 | ||
| 100 | 109 | * IamCredentialsSettings iamCredentialsSettings = | |
| 101 | 110 | * IamCredentialsSettings.newBuilder().setEndpoint(myEndpoint).build(); | |
| 102 | 111 | * IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create(iamCredentialsSettings); | |
@@ -106,8 +115,11 @@ | |||
| 106 | 115 | * the wire: | |
| 107 | 116 | * | |
| 108 | 117 | * <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 | ||
| 111 | 123 | * IamCredentialsSettings iamCredentialsSettings = | |
| 112 | 124 | * IamCredentialsSettings.newBuilder() | |
| 113 | 125 | * .setTransportChannelProvider( | |
@@ -175,8 +187,11 @@ public IamCredentialsStub getStub() { | |||
| 175 | 187 | * <p>Sample code: | |
| 176 | 188 | * | |
| 177 | 189 | * <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 | ||
| 180 | 195 | * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { | |
| 181 | 196 | * ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); | |
| 182 | 197 | * List<String> delegates = new ArrayList<>(); | |
@@ -226,8 +241,11 @@ public final GenerateAccessTokenResponse generateAccessToken( | |||
| 226 | 241 | * <p>Sample code: | |
| 227 | 242 | * | |
| 228 | 243 | * <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 | ||
| 231 | 249 | * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { | |
| 232 | 250 | * String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString(); | |
| 233 | 251 | * List<String> delegates = new ArrayList<>(); | |
@@ -277,8 +295,11 @@ public final GenerateAccessTokenResponse generateAccessToken( | |||
| 277 | 295 | * <p>Sample code: | |
| 278 | 296 | * | |
| 279 | 297 | * <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 | ||
| 282 | 303 | * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { | |
| 283 | 304 | * GenerateAccessTokenRequest request = | |
| 284 | 305 | * GenerateAccessTokenRequest.newBuilder() | |
@@ -305,8 +326,11 @@ public final GenerateAccessTokenResponse generateAccessToken(GenerateAccessToken | |||
| 305 | 326 | * <p>Sample code: | |
| 306 | 327 | * | |
| 307 | 328 | * <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 | ||
| 310 | 334 | * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { | |
| 311 | 335 | * GenerateAccessTokenRequest request = | |
| 312 | 336 | * GenerateAccessTokenRequest.newBuilder() | |
@@ -334,8 +358,11 @@ public final GenerateAccessTokenResponse generateAccessToken(GenerateAccessToken | |||
| 334 | 358 | * <p>Sample code: | |
| 335 | 359 | * | |
| 336 | 360 | * <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 | ||
| 339 | 366 | * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { | |
| 340 | 367 | * ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); | |
| 341 | 368 | * List<String> delegates = new ArrayList<>(); | |
@@ -383,8 +410,11 @@ public final GenerateIdTokenResponse generateIdToken( | |||
| 383 | 410 | * <p>Sample code: | |
| 384 | 411 | * | |
| 385 | 412 | * <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 | ||
| 388 | 418 | * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { | |
| 389 | 419 | * String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString(); | |
| 390 | 420 | * List<String> delegates = new ArrayList<>(); | |
@@ -432,8 +462,11 @@ public final GenerateIdTokenResponse generateIdToken( | |||
| 432 | 462 | * <p>Sample code: | |
| 433 | 463 | * | |
| 434 | 464 | * <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 | ||
| 437 | 470 | * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { | |
| 438 | 471 | * GenerateIdTokenRequest request = | |
| 439 | 472 | * GenerateIdTokenRequest.newBuilder() | |
@@ -460,8 +493,11 @@ public final GenerateIdTokenResponse generateIdToken(GenerateIdTokenRequest requ | |||
| 460 | 493 | * <p>Sample code: | |
| 461 | 494 | * | |
| 462 | 495 | * <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 | ||
| 465 | 501 | * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { | |
| 466 | 502 | * GenerateIdTokenRequest request = | |
| 467 | 503 | * GenerateIdTokenRequest.newBuilder() | |
@@ -489,8 +525,11 @@ public final GenerateIdTokenResponse generateIdToken(GenerateIdTokenRequest requ | |||
| 489 | 525 | * <p>Sample code: | |
| 490 | 526 | * | |
| 491 | 527 | * <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 | ||
| 494 | 533 | * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { | |
| 495 | 534 | * ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); | |
| 496 | 535 | * List<String> delegates = new ArrayList<>(); | |
@@ -532,8 +571,11 @@ public final SignBlobResponse signBlob( | |||
| 532 | 571 | * <p>Sample code: | |
| 533 | 572 | * | |
| 534 | 573 | * <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 | ||
| 537 | 579 | * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { | |
| 538 | 580 | * String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString(); | |
| 539 | 581 | * List<String> delegates = new ArrayList<>(); | |
@@ -574,8 +616,11 @@ public final SignBlobResponse signBlob(String name, List<String> delegates, Byte | |||
| 574 | 616 | * <p>Sample code: | |
| 575 | 617 | * | |
| 576 | 618 | * <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 | ||
| 579 | 624 | * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { | |
| 580 | 625 | * SignBlobRequest request = | |
| 581 | 626 | * SignBlobRequest.newBuilder() | |
@@ -601,8 +646,11 @@ public final SignBlobResponse signBlob(SignBlobRequest request) { | |||
| 601 | 646 | * <p>Sample code: | |
| 602 | 647 | * | |
| 603 | 648 | * <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 | ||
| 606 | 654 | * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { | |
| 607 | 655 | * SignBlobRequest request = | |
| 608 | 656 | * SignBlobRequest.newBuilder() | |
@@ -628,8 +676,11 @@ public final UnaryCallable<SignBlobRequest, SignBlobResponse> signBlobCallable() | |||
| 628 | 676 | * <p>Sample code: | |
| 629 | 677 | * | |
| 630 | 678 | * <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 | ||
| 633 | 684 | * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { | |
| 634 | 685 | * ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); | |
| 635 | 686 | * List<String> delegates = new ArrayList<>(); | |
@@ -671,8 +722,11 @@ public final SignJwtResponse signJwt( | |||
| 671 | 722 | * <p>Sample code: | |
| 672 | 723 | * | |
| 673 | 724 | * <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 | ||
| 676 | 730 | * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { | |
| 677 | 731 | * String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString(); | |
| 678 | 732 | * List<String> delegates = new ArrayList<>(); | |
@@ -713,8 +767,11 @@ public final SignJwtResponse signJwt(String name, List<String> delegates, String | |||
| 713 | 767 | * <p>Sample code: | |
| 714 | 768 | * | |
| 715 | 769 | * <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 | ||
| 718 | 775 | * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { | |
| 719 | 776 | * SignJwtRequest request = | |
| 720 | 777 | * SignJwtRequest.newBuilder() | |
@@ -740,8 +797,11 @@ public final SignJwtResponse signJwt(SignJwtRequest request) { | |||
| 740 | 797 | * <p>Sample code: | |
| 741 | 798 | * | |
| 742 | 799 | * <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 | ||
| 745 | 805 | * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { | |
| 746 | 806 | * SignJwtRequest request = | |
| 747 | 807 | * SignJwtRequest.newBuilder() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -51,8 +51,11 @@ | |||
| 51 | 51 | * <p>For example, to set the total timeout of generateAccessToken to 30 seconds: | |
| 52 | 52 | * | |
| 53 | 53 | * <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 | ||
| 56 | 59 | * IamCredentialsSettings.Builder iamCredentialsSettingsBuilder = | |
| 57 | 60 | * IamCredentialsSettings.newBuilder(); | |
| 58 | 61 | * iamCredentialsSettingsBuilder | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,8 +31,11 @@ | |||
| 31 | 31 | * <p>Sample for IamCredentialsClient: | |
| 32 | 32 | * | |
| 33 | 33 | * <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 | ||
| 36 | 39 | * try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) { | |
| 37 | 40 | * ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); | |
| 38 | 41 | * List<String> delegates = new ArrayList<>(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments