Skip to content

Commit a1e70b7

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

File tree

41 files changed

+341
-137
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+341
-137
lines changed

java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/WebRiskServiceClient.java

+85-34
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@
4545
* calls that map to API methods. Sample code to get started:
4646
*
4747
* <pre>{@code
48-
* // This snippet has been automatically generated for illustrative purposes only.
49-
* // It may require modifications to work in your environment.
48+
* // This snippet has been automatically generated and should be regarded as a code template only.
49+
* // It will require modifications to work:
50+
* // - It may require correct/in-range values for request initialization.
51+
* // - It may require specifying regional endpoints when creating the service client as shown in
52+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5053
* try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) {
5154
* ThreatType threatType = ThreatType.forNumber(0);
5255
* ByteString versionToken = ByteString.EMPTY;
@@ -86,8 +89,11 @@
8689
* <p>To customize credentials:
8790
*
8891
* <pre>{@code
89-
* // This snippet has been automatically generated for illustrative purposes only.
90-
* // It may require modifications to work in your environment.
92+
* // This snippet has been automatically generated and should be regarded as a code template only.
93+
* // It will require modifications to work:
94+
* // - It may require correct/in-range values for request initialization.
95+
* // - It may require specifying regional endpoints when creating the service client as shown in
96+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9197
* WebRiskServiceSettings webRiskServiceSettings =
9298
* WebRiskServiceSettings.newBuilder()
9399
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -98,8 +104,11 @@
98104
* <p>To customize the endpoint:
99105
*
100106
* <pre>{@code
101-
* // This snippet has been automatically generated for illustrative purposes only.
102-
* // It may require modifications to work in your environment.
107+
* // This snippet has been automatically generated and should be regarded as a code template only.
108+
* // It will require modifications to work:
109+
* // - It may require correct/in-range values for request initialization.
110+
* // - It may require specifying regional endpoints when creating the service client as shown in
111+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
103112
* WebRiskServiceSettings webRiskServiceSettings =
104113
* WebRiskServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
105114
* WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create(webRiskServiceSettings);
@@ -109,8 +118,11 @@
109118
* the wire:
110119
*
111120
* <pre>{@code
112-
* // This snippet has been automatically generated for illustrative purposes only.
113-
* // It may require modifications to work in your environment.
121+
* // This snippet has been automatically generated and should be regarded as a code template only.
122+
* // It will require modifications to work:
123+
* // - It may require correct/in-range values for request initialization.
124+
* // - It may require specifying regional endpoints when creating the service client as shown in
125+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
114126
* WebRiskServiceSettings webRiskServiceSettings =
115127
* WebRiskServiceSettings.newBuilder()
116128
* .setTransportChannelProvider(
@@ -182,8 +194,11 @@ public WebRiskServiceStub getStub() {
182194
* <p>Sample code:
183195
*
184196
* <pre>{@code
185-
* // This snippet has been automatically generated for illustrative purposes only.
186-
* // It may require modifications to work in your environment.
197+
* // This snippet has been automatically generated and should be regarded as a code template only.
198+
* // It will require modifications to work:
199+
* // - It may require correct/in-range values for request initialization.
200+
* // - It may require specifying regional endpoints when creating the service client as shown in
201+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
187202
* try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) {
188203
* ThreatType threatType = ThreatType.forNumber(0);
189204
* ByteString versionToken = ByteString.EMPTY;
@@ -227,8 +242,11 @@ public final ComputeThreatListDiffResponse computeThreatListDiff(
227242
* <p>Sample code:
228243
*
229244
* <pre>{@code
230-
* // This snippet has been automatically generated for illustrative purposes only.
231-
* // It may require modifications to work in your environment.
245+
* // This snippet has been automatically generated and should be regarded as a code template only.
246+
* // It will require modifications to work:
247+
* // - It may require correct/in-range values for request initialization.
248+
* // - It may require specifying regional endpoints when creating the service client as shown in
249+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
232250
* try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) {
233251
* ComputeThreatListDiffRequest request =
234252
* ComputeThreatListDiffRequest.newBuilder()
@@ -259,8 +277,11 @@ public final ComputeThreatListDiffResponse computeThreatListDiff(
259277
* <p>Sample code:
260278
*
261279
* <pre>{@code
262-
* // This snippet has been automatically generated for illustrative purposes only.
263-
* // It may require modifications to work in your environment.
280+
* // This snippet has been automatically generated and should be regarded as a code template only.
281+
* // It will require modifications to work:
282+
* // - It may require correct/in-range values for request initialization.
283+
* // - It may require specifying regional endpoints when creating the service client as shown in
284+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
264285
* try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) {
265286
* ComputeThreatListDiffRequest request =
266287
* ComputeThreatListDiffRequest.newBuilder()
@@ -290,8 +311,11 @@ public final ComputeThreatListDiffResponse computeThreatListDiff(
290311
* <p>Sample code:
291312
*
292313
* <pre>{@code
293-
* // This snippet has been automatically generated for illustrative purposes only.
294-
* // It may require modifications to work in your environment.
314+
* // This snippet has been automatically generated and should be regarded as a code template only.
315+
* // It will require modifications to work:
316+
* // - It may require correct/in-range values for request initialization.
317+
* // - It may require specifying regional endpoints when creating the service client as shown in
318+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
295319
* try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) {
296320
* String uri = "uri116076";
297321
* List<ThreatType> threatTypes = new ArrayList<>();
@@ -320,8 +344,11 @@ public final SearchUrisResponse searchUris(String uri, List<ThreatType> threatTy
320344
* <p>Sample code:
321345
*
322346
* <pre>{@code
323-
* // This snippet has been automatically generated for illustrative purposes only.
324-
* // It may require modifications to work in your environment.
347+
* // This snippet has been automatically generated and should be regarded as a code template only.
348+
* // It will require modifications to work:
349+
* // - It may require correct/in-range values for request initialization.
350+
* // - It may require specifying regional endpoints when creating the service client as shown in
351+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
325352
* try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) {
326353
* SearchUrisRequest request =
327354
* SearchUrisRequest.newBuilder()
@@ -349,8 +376,11 @@ public final SearchUrisResponse searchUris(SearchUrisRequest request) {
349376
* <p>Sample code:
350377
*
351378
* <pre>{@code
352-
* // This snippet has been automatically generated for illustrative purposes only.
353-
* // It may require modifications to work in your environment.
379+
* // This snippet has been automatically generated and should be regarded as a code template only.
380+
* // It will require modifications to work:
381+
* // - It may require correct/in-range values for request initialization.
382+
* // - It may require specifying regional endpoints when creating the service client as shown in
383+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
354384
* try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) {
355385
* SearchUrisRequest request =
356386
* SearchUrisRequest.newBuilder()
@@ -378,8 +408,11 @@ public final UnaryCallable<SearchUrisRequest, SearchUrisResponse> searchUrisCall
378408
* <p>Sample code:
379409
*
380410
* <pre>{@code
381-
* // This snippet has been automatically generated for illustrative purposes only.
382-
* // It may require modifications to work in your environment.
411+
* // This snippet has been automatically generated and should be regarded as a code template only.
412+
* // It will require modifications to work:
413+
* // - It may require correct/in-range values for request initialization.
414+
* // - It may require specifying regional endpoints when creating the service client as shown in
415+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
383416
* try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) {
384417
* ByteString hashPrefix = ByteString.EMPTY;
385418
* List<ThreatType> threatTypes = new ArrayList<>();
@@ -413,8 +446,11 @@ public final SearchHashesResponse searchHashes(
413446
* <p>Sample code:
414447
*
415448
* <pre>{@code
416-
* // This snippet has been automatically generated for illustrative purposes only.
417-
* // It may require modifications to work in your environment.
449+
* // This snippet has been automatically generated and should be regarded as a code template only.
450+
* // It will require modifications to work:
451+
* // - It may require correct/in-range values for request initialization.
452+
* // - It may require specifying regional endpoints when creating the service client as shown in
453+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
418454
* try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) {
419455
* SearchHashesRequest request =
420456
* SearchHashesRequest.newBuilder()
@@ -442,8 +478,11 @@ public final SearchHashesResponse searchHashes(SearchHashesRequest request) {
442478
* <p>Sample code:
443479
*
444480
* <pre>{@code
445-
* // This snippet has been automatically generated for illustrative purposes only.
446-
* // It may require modifications to work in your environment.
481+
* // This snippet has been automatically generated and should be regarded as a code template only.
482+
* // It will require modifications to work:
483+
* // - It may require correct/in-range values for request initialization.
484+
* // - It may require specifying regional endpoints when creating the service client as shown in
485+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
447486
* try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) {
448487
* SearchHashesRequest request =
449488
* SearchHashesRequest.newBuilder()
@@ -472,8 +511,11 @@ public final UnaryCallable<SearchHashesRequest, SearchHashesResponse> searchHash
472511
* <p>Sample code:
473512
*
474513
* <pre>{@code
475-
* // This snippet has been automatically generated for illustrative purposes only.
476-
* // It may require modifications to work in your environment.
514+
* // This snippet has been automatically generated and should be regarded as a code template only.
515+
* // It will require modifications to work:
516+
* // - It may require correct/in-range values for request initialization.
517+
* // - It may require specifying regional endpoints when creating the service client as shown in
518+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
477519
* try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) {
478520
* ProjectName parent = ProjectName.of("[PROJECT]");
479521
* Submission submission = Submission.newBuilder().build();
@@ -506,8 +548,11 @@ public final Submission createSubmission(ProjectName parent, Submission submissi
506548
* <p>Sample code:
507549
*
508550
* <pre>{@code
509-
* // This snippet has been automatically generated for illustrative purposes only.
510-
* // It may require modifications to work in your environment.
551+
* // This snippet has been automatically generated and should be regarded as a code template only.
552+
* // It will require modifications to work:
553+
* // - It may require correct/in-range values for request initialization.
554+
* // - It may require specifying regional endpoints when creating the service client as shown in
555+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
511556
* try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) {
512557
* String parent = ProjectName.of("[PROJECT]").toString();
513558
* Submission submission = Submission.newBuilder().build();
@@ -537,8 +582,11 @@ public final Submission createSubmission(String parent, Submission submission) {
537582
* <p>Sample code:
538583
*
539584
* <pre>{@code
540-
* // This snippet has been automatically generated for illustrative purposes only.
541-
* // It may require modifications to work in your environment.
585+
* // This snippet has been automatically generated and should be regarded as a code template only.
586+
* // It will require modifications to work:
587+
* // - It may require correct/in-range values for request initialization.
588+
* // - It may require specifying regional endpoints when creating the service client as shown in
589+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
542590
* try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) {
543591
* CreateSubmissionRequest request =
544592
* CreateSubmissionRequest.newBuilder()
@@ -567,8 +615,11 @@ public final Submission createSubmission(CreateSubmissionRequest request) {
567615
* <p>Sample code:
568616
*
569617
* <pre>{@code
570-
* // This snippet has been automatically generated for illustrative purposes only.
571-
* // It may require modifications to work in your environment.
618+
* // This snippet has been automatically generated and should be regarded as a code template only.
619+
* // It will require modifications to work:
620+
* // - It may require correct/in-range values for request initialization.
621+
* // - It may require specifying regional endpoints when creating the service client as shown in
622+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
572623
* try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) {
573624
* CreateSubmissionRequest request =
574625
* CreateSubmissionRequest.newBuilder()

java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/WebRiskServiceSettings.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,11 @@
5858
* <p>For example, to set the total timeout of computeThreatListDiff 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
* WebRiskServiceSettings.Builder webRiskServiceSettingsBuilder =
6467
* WebRiskServiceSettings.newBuilder();
6568
* webRiskServiceSettingsBuilder

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

+5-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@
2525
* <p>Sample for WebRiskServiceClient:
2626
*
2727
* <pre>{@code
28-
* // This snippet has been automatically generated for illustrative purposes only.
29-
* // It may require modifications to work in your environment.
28+
* // This snippet has been automatically generated and should be regarded as a code template only.
29+
* // It will require modifications to work:
30+
* // - It may require correct/in-range values for request initialization.
31+
* // - It may require specifying regional endpoints when creating the service client as shown in
32+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3033
* try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) {
3134
* ThreatType threatType = ThreatType.forNumber(0);
3235
* ByteString versionToken = ByteString.EMPTY;

java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/HttpJsonWebRiskServiceStub.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public class HttpJsonWebRiskServiceStub extends WebRiskServiceStub {
192192
.setRequestBodyExtractor(
193193
request ->
194194
ProtoRestSerializer.create()
195-
.toBody("submission", request.getSubmission()))
195+
.toBody("submission", request.getSubmission(), false))
196196
.build())
197197
.setResponseParser(
198198
ProtoMessageResponseParser.<Submission>newBuilder()

java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/WebRiskServiceStubSettings.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,11 @@
6969
* <p>For example, to set the total timeout of computeThreatListDiff to 30 seconds:
7070
*
7171
* <pre>{@code
72-
* // This snippet has been automatically generated for illustrative purposes only.
73-
* // It may require modifications to work in your environment.
72+
* // This snippet has been automatically generated and should be regarded as a code template only.
73+
* // It will require modifications to work:
74+
* // - It may require correct/in-range values for request initialization.
75+
* // - It may require specifying regional endpoints when creating the service client as shown in
76+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7477
* WebRiskServiceStubSettings.Builder webRiskServiceSettingsBuilder =
7578
* WebRiskServiceStubSettings.newBuilder();
7679
* webRiskServiceSettingsBuilder

0 commit comments

Comments
 (0)