53
53
* calls that map to API methods. Sample code to get started:
54
54
*
55
55
* <pre>{@code
56
- * // This snippet has been automatically generated for illustrative purposes only.
57
- * // 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
58
61
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
59
62
* ResourceName resource =
60
63
* new ResourceName() {
110
113
* <p>To customize credentials:
111
114
*
112
115
* <pre>{@code
113
- * // This snippet has been automatically generated for illustrative purposes only.
114
- * // It may require modifications to work in your environment.
116
+ * // This snippet has been automatically generated and should be regarded as a code template only.
117
+ * // It will require modifications to work:
118
+ * // - It may require correct/in-range values for request initialization.
119
+ * // - It may require specifying regional endpoints when creating the service client as shown in
120
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
115
121
* ContainerAnalysisSettings containerAnalysisSettings =
116
122
* ContainerAnalysisSettings.newBuilder()
117
123
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
123
129
* <p>To customize the endpoint:
124
130
*
125
131
* <pre>{@code
126
- * // This snippet has been automatically generated for illustrative purposes only.
127
- * // It may require modifications to work in your environment.
132
+ * // This snippet has been automatically generated and should be regarded as a code template only.
133
+ * // It will require modifications to work:
134
+ * // - It may require correct/in-range values for request initialization.
135
+ * // - It may require specifying regional endpoints when creating the service client as shown in
136
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
128
137
* ContainerAnalysisSettings containerAnalysisSettings =
129
138
* ContainerAnalysisSettings.newBuilder().setEndpoint(myEndpoint).build();
130
139
* ContainerAnalysisClient containerAnalysisClient =
135
144
* the wire:
136
145
*
137
146
* <pre>{@code
138
- * // This snippet has been automatically generated for illustrative purposes only.
139
- * // It may require modifications to work in your environment.
147
+ * // This snippet has been automatically generated and should be regarded as a code template only.
148
+ * // It will require modifications to work:
149
+ * // - It may require correct/in-range values for request initialization.
150
+ * // - It may require specifying regional endpoints when creating the service client as shown in
151
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
140
152
* ContainerAnalysisSettings containerAnalysisSettings =
141
153
* ContainerAnalysisSettings.newBuilder()
142
154
* .setTransportChannelProvider(
@@ -218,8 +230,11 @@ public ContainerAnalysisStub getStub() {
218
230
* <p>Sample code:
219
231
*
220
232
* <pre>{@code
221
- * // This snippet has been automatically generated for illustrative purposes only.
222
- * // It may require modifications to work in your environment.
233
+ * // This snippet has been automatically generated and should be regarded as a code template only.
234
+ * // It will require modifications to work:
235
+ * // - It may require correct/in-range values for request initialization.
236
+ * // - It may require specifying regional endpoints when creating the service client as shown in
237
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
223
238
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
224
239
* ResourceName resource =
225
240
* new ResourceName() {
@@ -273,8 +288,11 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
273
288
* <p>Sample code:
274
289
*
275
290
* <pre>{@code
276
- * // This snippet has been automatically generated for illustrative purposes only.
277
- * // It may require modifications to work in your environment.
291
+ * // This snippet has been automatically generated and should be regarded as a code template only.
292
+ * // It will require modifications to work:
293
+ * // - It may require correct/in-range values for request initialization.
294
+ * // - It may require specifying regional endpoints when creating the service client as shown in
295
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
278
296
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
279
297
* String resource = ProjectName.of("[PROJECT]").toString();
280
298
* Policy policy = Policy.newBuilder().build();
@@ -307,8 +325,11 @@ public final Policy setIamPolicy(String resource, Policy policy) {
307
325
* <p>Sample code:
308
326
*
309
327
* <pre>{@code
310
- * // This snippet has been automatically generated for illustrative purposes only.
311
- * // It may require modifications to work in your environment.
328
+ * // This snippet has been automatically generated and should be regarded as a code template only.
329
+ * // It will require modifications to work:
330
+ * // - It may require correct/in-range values for request initialization.
331
+ * // - It may require specifying regional endpoints when creating the service client as shown in
332
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
312
333
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
313
334
* SetIamPolicyRequest request =
314
335
* SetIamPolicyRequest.newBuilder()
@@ -339,8 +360,11 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
339
360
* <p>Sample code:
340
361
*
341
362
* <pre>{@code
342
- * // This snippet has been automatically generated for illustrative purposes only.
343
- * // It may require modifications to work in your environment.
363
+ * // This snippet has been automatically generated and should be regarded as a code template only.
364
+ * // It will require modifications to work:
365
+ * // - It may require correct/in-range values for request initialization.
366
+ * // - It may require specifying regional endpoints when creating the service client as shown in
367
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
344
368
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
345
369
* SetIamPolicyRequest request =
346
370
* SetIamPolicyRequest.newBuilder()
@@ -370,8 +394,11 @@ public final UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
370
394
* <p>Sample code:
371
395
*
372
396
* <pre>{@code
373
- * // This snippet has been automatically generated for illustrative purposes only.
374
- * // It may require modifications to work in your environment.
397
+ * // This snippet has been automatically generated and should be regarded as a code template only.
398
+ * // It will require modifications to work:
399
+ * // - It may require correct/in-range values for request initialization.
400
+ * // - It may require specifying regional endpoints when creating the service client as shown in
401
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
375
402
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
376
403
* ResourceName resource =
377
404
* new ResourceName() {
@@ -420,8 +447,11 @@ public final Policy getIamPolicy(ResourceName resource) {
420
447
* <p>Sample code:
421
448
*
422
449
* <pre>{@code
423
- * // This snippet has been automatically generated for illustrative purposes only.
424
- * // It may require modifications to work in your environment.
450
+ * // This snippet has been automatically generated and should be regarded as a code template only.
451
+ * // It will require modifications to work:
452
+ * // - It may require correct/in-range values for request initialization.
453
+ * // - It may require specifying regional endpoints when creating the service client as shown in
454
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
425
455
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
426
456
* String resource = ProjectName.of("[PROJECT]").toString();
427
457
* Policy response = containerAnalysisClient.getIamPolicy(resource);
@@ -449,8 +479,11 @@ public final Policy getIamPolicy(String resource) {
449
479
* <p>Sample code:
450
480
*
451
481
* <pre>{@code
452
- * // This snippet has been automatically generated for illustrative purposes only.
453
- * // It may require modifications to work in your environment.
482
+ * // This snippet has been automatically generated and should be regarded as a code template only.
483
+ * // It will require modifications to work:
484
+ * // - It may require correct/in-range values for request initialization.
485
+ * // - It may require specifying regional endpoints when creating the service client as shown in
486
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
454
487
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
455
488
* GetIamPolicyRequest request =
456
489
* GetIamPolicyRequest.newBuilder()
@@ -480,8 +513,11 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
480
513
* <p>Sample code:
481
514
*
482
515
* <pre>{@code
483
- * // This snippet has been automatically generated for illustrative purposes only.
484
- * // It may require modifications to work in your environment.
516
+ * // This snippet has been automatically generated and should be regarded as a code template only.
517
+ * // It will require modifications to work:
518
+ * // - It may require correct/in-range values for request initialization.
519
+ * // - It may require specifying regional endpoints when creating the service client as shown in
520
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
485
521
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
486
522
* GetIamPolicyRequest request =
487
523
* GetIamPolicyRequest.newBuilder()
@@ -509,8 +545,11 @@ public final UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
509
545
* <p>Sample code:
510
546
*
511
547
* <pre>{@code
512
- * // This snippet has been automatically generated for illustrative purposes only.
513
- * // It may require modifications to work in your environment.
548
+ * // This snippet has been automatically generated and should be regarded as a code template only.
549
+ * // It will require modifications to work:
550
+ * // - It may require correct/in-range values for request initialization.
551
+ * // - It may require specifying regional endpoints when creating the service client as shown in
552
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
514
553
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
515
554
* ResourceName resource =
516
555
* new ResourceName() {
@@ -565,8 +604,11 @@ public final TestIamPermissionsResponse testIamPermissions(
565
604
* <p>Sample code:
566
605
*
567
606
* <pre>{@code
568
- * // This snippet has been automatically generated for illustrative purposes only.
569
- * // It may require modifications to work in your environment.
607
+ * // This snippet has been automatically generated and should be regarded as a code template only.
608
+ * // It will require modifications to work:
609
+ * // - It may require correct/in-range values for request initialization.
610
+ * // - It may require specifying regional endpoints when creating the service client as shown in
611
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
570
612
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
571
613
* String resource = ProjectName.of("[PROJECT]").toString();
572
614
* List<String> permissions = new ArrayList<>();
@@ -603,8 +645,11 @@ public final TestIamPermissionsResponse testIamPermissions(
603
645
* <p>Sample code:
604
646
*
605
647
* <pre>{@code
606
- * // This snippet has been automatically generated for illustrative purposes only.
607
- * // It may require modifications to work in your environment.
648
+ * // This snippet has been automatically generated and should be regarded as a code template only.
649
+ * // It will require modifications to work:
650
+ * // - It may require correct/in-range values for request initialization.
651
+ * // - It may require specifying regional endpoints when creating the service client as shown in
652
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
608
653
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
609
654
* TestIamPermissionsRequest request =
610
655
* TestIamPermissionsRequest.newBuilder()
@@ -633,8 +678,11 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
633
678
* <p>Sample code:
634
679
*
635
680
* <pre>{@code
636
- * // This snippet has been automatically generated for illustrative purposes only.
637
- * // It may require modifications to work in your environment.
681
+ * // This snippet has been automatically generated and should be regarded as a code template only.
682
+ * // It will require modifications to work:
683
+ * // - It may require correct/in-range values for request initialization.
684
+ * // - It may require specifying regional endpoints when creating the service client as shown in
685
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
638
686
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
639
687
* TestIamPermissionsRequest request =
640
688
* TestIamPermissionsRequest.newBuilder()
@@ -660,8 +708,11 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
660
708
* <p>Sample code:
661
709
*
662
710
* <pre>{@code
663
- * // This snippet has been automatically generated for illustrative purposes only.
664
- * // It may require modifications to work in your environment.
711
+ * // This snippet has been automatically generated and should be regarded as a code template only.
712
+ * // It will require modifications to work:
713
+ * // - It may require correct/in-range values for request initialization.
714
+ * // - It may require specifying regional endpoints when creating the service client as shown in
715
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
665
716
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
666
717
* ProjectName parent = ProjectName.of("[PROJECT]");
667
718
* String filter = "filter-1274492040";
@@ -692,8 +743,11 @@ public final VulnerabilityOccurrencesSummary getVulnerabilityOccurrencesSummary(
692
743
* <p>Sample code:
693
744
*
694
745
* <pre>{@code
695
- * // This snippet has been automatically generated for illustrative purposes only.
696
- * // It may require modifications to work in your environment.
746
+ * // This snippet has been automatically generated and should be regarded as a code template only.
747
+ * // It will require modifications to work:
748
+ * // - It may require correct/in-range values for request initialization.
749
+ * // - It may require specifying regional endpoints when creating the service client as shown in
750
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
697
751
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
698
752
* String parent = ProjectName.of("[PROJECT]").toString();
699
753
* String filter = "filter-1274492040";
@@ -724,8 +778,11 @@ public final VulnerabilityOccurrencesSummary getVulnerabilityOccurrencesSummary(
724
778
* <p>Sample code:
725
779
*
726
780
* <pre>{@code
727
- * // This snippet has been automatically generated for illustrative purposes only.
728
- * // It may require modifications to work in your environment.
781
+ * // This snippet has been automatically generated and should be regarded as a code template only.
782
+ * // It will require modifications to work:
783
+ * // - It may require correct/in-range values for request initialization.
784
+ * // - It may require specifying regional endpoints when creating the service client as shown in
785
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
729
786
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
730
787
* GetVulnerabilityOccurrencesSummaryRequest request =
731
788
* GetVulnerabilityOccurrencesSummaryRequest.newBuilder()
@@ -752,8 +809,11 @@ public final VulnerabilityOccurrencesSummary getVulnerabilityOccurrencesSummary(
752
809
* <p>Sample code:
753
810
*
754
811
* <pre>{@code
755
- * // This snippet has been automatically generated for illustrative purposes only.
756
- * // It may require modifications to work in your environment.
812
+ * // This snippet has been automatically generated and should be regarded as a code template only.
813
+ * // It will require modifications to work:
814
+ * // - It may require correct/in-range values for request initialization.
815
+ * // - It may require specifying regional endpoints when creating the service client as shown in
816
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
757
817
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
758
818
* GetVulnerabilityOccurrencesSummaryRequest request =
759
819
* GetVulnerabilityOccurrencesSummaryRequest.newBuilder()
0 commit comments