Skip to content

Commit 84f2ed2

Browse files
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#926)
- [ ] 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 905c9e4 commit 84f2ed2

File tree

5 files changed

+120
-57
lines changed

5 files changed

+120
-57
lines changed

java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/ContainerAnalysisClient.java

Lines changed: 100 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@
5353
* calls that map to API methods. Sample code to get started:
5454
*
5555
* <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
5861
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
5962
* ResourceName resource =
6063
* new ResourceName() {
@@ -110,8 +113,11 @@
110113
* <p>To customize credentials:
111114
*
112115
* <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
115121
* ContainerAnalysisSettings containerAnalysisSettings =
116122
* ContainerAnalysisSettings.newBuilder()
117123
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -123,8 +129,11 @@
123129
* <p>To customize the endpoint:
124130
*
125131
* <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
128137
* ContainerAnalysisSettings containerAnalysisSettings =
129138
* ContainerAnalysisSettings.newBuilder().setEndpoint(myEndpoint).build();
130139
* ContainerAnalysisClient containerAnalysisClient =
@@ -135,8 +144,11 @@
135144
* the wire:
136145
*
137146
* <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
140152
* ContainerAnalysisSettings containerAnalysisSettings =
141153
* ContainerAnalysisSettings.newBuilder()
142154
* .setTransportChannelProvider(
@@ -218,8 +230,11 @@ public ContainerAnalysisStub getStub() {
218230
* <p>Sample code:
219231
*
220232
* <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
223238
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
224239
* ResourceName resource =
225240
* new ResourceName() {
@@ -273,8 +288,11 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
273288
* <p>Sample code:
274289
*
275290
* <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
278296
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
279297
* String resource = ProjectName.of("[PROJECT]").toString();
280298
* Policy policy = Policy.newBuilder().build();
@@ -307,8 +325,11 @@ public final Policy setIamPolicy(String resource, Policy policy) {
307325
* <p>Sample code:
308326
*
309327
* <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
312333
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
313334
* SetIamPolicyRequest request =
314335
* SetIamPolicyRequest.newBuilder()
@@ -339,8 +360,11 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
339360
* <p>Sample code:
340361
*
341362
* <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
344368
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
345369
* SetIamPolicyRequest request =
346370
* SetIamPolicyRequest.newBuilder()
@@ -370,8 +394,11 @@ public final UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
370394
* <p>Sample code:
371395
*
372396
* <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
375402
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
376403
* ResourceName resource =
377404
* new ResourceName() {
@@ -420,8 +447,11 @@ public final Policy getIamPolicy(ResourceName resource) {
420447
* <p>Sample code:
421448
*
422449
* <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
425455
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
426456
* String resource = ProjectName.of("[PROJECT]").toString();
427457
* Policy response = containerAnalysisClient.getIamPolicy(resource);
@@ -449,8 +479,11 @@ public final Policy getIamPolicy(String resource) {
449479
* <p>Sample code:
450480
*
451481
* <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
454487
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
455488
* GetIamPolicyRequest request =
456489
* GetIamPolicyRequest.newBuilder()
@@ -480,8 +513,11 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
480513
* <p>Sample code:
481514
*
482515
* <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
485521
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
486522
* GetIamPolicyRequest request =
487523
* GetIamPolicyRequest.newBuilder()
@@ -509,8 +545,11 @@ public final UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
509545
* <p>Sample code:
510546
*
511547
* <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
514553
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
515554
* ResourceName resource =
516555
* new ResourceName() {
@@ -565,8 +604,11 @@ public final TestIamPermissionsResponse testIamPermissions(
565604
* <p>Sample code:
566605
*
567606
* <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
570612
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
571613
* String resource = ProjectName.of("[PROJECT]").toString();
572614
* List<String> permissions = new ArrayList<>();
@@ -603,8 +645,11 @@ public final TestIamPermissionsResponse testIamPermissions(
603645
* <p>Sample code:
604646
*
605647
* <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
608653
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
609654
* TestIamPermissionsRequest request =
610655
* TestIamPermissionsRequest.newBuilder()
@@ -633,8 +678,11 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
633678
* <p>Sample code:
634679
*
635680
* <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
638686
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
639687
* TestIamPermissionsRequest request =
640688
* TestIamPermissionsRequest.newBuilder()
@@ -660,8 +708,11 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
660708
* <p>Sample code:
661709
*
662710
* <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
665716
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
666717
* ProjectName parent = ProjectName.of("[PROJECT]");
667718
* String filter = "filter-1274492040";
@@ -692,8 +743,11 @@ public final VulnerabilityOccurrencesSummary getVulnerabilityOccurrencesSummary(
692743
* <p>Sample code:
693744
*
694745
* <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
697751
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
698752
* String parent = ProjectName.of("[PROJECT]").toString();
699753
* String filter = "filter-1274492040";
@@ -724,8 +778,11 @@ public final VulnerabilityOccurrencesSummary getVulnerabilityOccurrencesSummary(
724778
* <p>Sample code:
725779
*
726780
* <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
729786
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
730787
* GetVulnerabilityOccurrencesSummaryRequest request =
731788
* GetVulnerabilityOccurrencesSummaryRequest.newBuilder()
@@ -752,8 +809,11 @@ public final VulnerabilityOccurrencesSummary getVulnerabilityOccurrencesSummary(
752809
* <p>Sample code:
753810
*
754811
* <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
757817
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
758818
* GetVulnerabilityOccurrencesSummaryRequest request =
759819
* GetVulnerabilityOccurrencesSummaryRequest.newBuilder()

java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/ContainerAnalysisSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@
5858
* <p>For example, to set the total timeout of setIamPolicy to 30 seconds:
5959
*
6060
* <pre>{@code
61-
* // This snippet has been automatically generated for illustrative purposes only.
62-
* // It may require modifications to work in your environment.
61+
* // This snippet has been automatically generated and should be regarded as a code template only.
62+
* // It will require modifications to work:
63+
* // - It may require correct/in-range values for request initialization.
64+
* // - It may require specifying regional endpoints when creating the service client as shown in
65+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6366
* ContainerAnalysisSettings.Builder containerAnalysisSettingsBuilder =
6467
* ContainerAnalysisSettings.newBuilder();
6568
* containerAnalysisSettingsBuilder
6669
* .setIamPolicySettings()
6770
* .setRetrySettings(
68-
* containerAnalysisSettingsBuilder
69-
* .setIamPolicySettings()
70-
* .getRetrySettings()
71-
* .toBuilder()
71+
* containerAnalysisSettingsBuilder.setIamPolicySettings().getRetrySettings().toBuilder()
7272
* .setTotalTimeout(Duration.ofSeconds(30))
7373
* .build());
7474
* ContainerAnalysisSettings containerAnalysisSettings = containerAnalysisSettingsBuilder.build();

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@
3636
* <p>Sample for ContainerAnalysisClient:
3737
*
3838
* <pre>{@code
39-
* // This snippet has been automatically generated for illustrative purposes only.
40-
* // It may require modifications to work in your environment.
39+
* // This snippet has been automatically generated and should be regarded as a code template only.
40+
* // It will require modifications to work:
41+
* // - It may require correct/in-range values for request initialization.
42+
* // - It may require specifying regional endpoints when creating the service client as shown in
43+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4144
* try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
4245
* ResourceName resource =
4346
* new ResourceName() {

0 commit comments

Comments
 (0)