|
45 | 45 | * calls that map to API methods. Sample code to get started: |
46 | 46 | * |
47 | 47 | * <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 |
50 | 53 | * try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) { |
51 | 54 | * ThreatType threatType = ThreatType.forNumber(0); |
52 | 55 | * ByteString versionToken = ByteString.EMPTY; |
|
86 | 89 | * <p>To customize credentials: |
87 | 90 | * |
88 | 91 | * <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 |
91 | 97 | * WebRiskServiceSettings webRiskServiceSettings = |
92 | 98 | * WebRiskServiceSettings.newBuilder() |
93 | 99 | * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) |
|
98 | 104 | * <p>To customize the endpoint: |
99 | 105 | * |
100 | 106 | * <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 |
103 | 112 | * WebRiskServiceSettings webRiskServiceSettings = |
104 | 113 | * WebRiskServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); |
105 | 114 | * WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create(webRiskServiceSettings); |
|
109 | 118 | * the wire: |
110 | 119 | * |
111 | 120 | * <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 |
114 | 126 | * WebRiskServiceSettings webRiskServiceSettings = |
115 | 127 | * WebRiskServiceSettings.newBuilder() |
116 | 128 | * .setTransportChannelProvider( |
@@ -182,8 +194,11 @@ public WebRiskServiceStub getStub() { |
182 | 194 | * <p>Sample code: |
183 | 195 | * |
184 | 196 | * <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 |
187 | 202 | * try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) { |
188 | 203 | * ThreatType threatType = ThreatType.forNumber(0); |
189 | 204 | * ByteString versionToken = ByteString.EMPTY; |
@@ -227,8 +242,11 @@ public final ComputeThreatListDiffResponse computeThreatListDiff( |
227 | 242 | * <p>Sample code: |
228 | 243 | * |
229 | 244 | * <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 |
232 | 250 | * try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) { |
233 | 251 | * ComputeThreatListDiffRequest request = |
234 | 252 | * ComputeThreatListDiffRequest.newBuilder() |
@@ -259,8 +277,11 @@ public final ComputeThreatListDiffResponse computeThreatListDiff( |
259 | 277 | * <p>Sample code: |
260 | 278 | * |
261 | 279 | * <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 |
264 | 285 | * try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) { |
265 | 286 | * ComputeThreatListDiffRequest request = |
266 | 287 | * ComputeThreatListDiffRequest.newBuilder() |
@@ -290,8 +311,11 @@ public final ComputeThreatListDiffResponse computeThreatListDiff( |
290 | 311 | * <p>Sample code: |
291 | 312 | * |
292 | 313 | * <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 |
295 | 319 | * try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) { |
296 | 320 | * String uri = "uri116076"; |
297 | 321 | * List<ThreatType> threatTypes = new ArrayList<>(); |
@@ -320,8 +344,11 @@ public final SearchUrisResponse searchUris(String uri, List<ThreatType> threatTy |
320 | 344 | * <p>Sample code: |
321 | 345 | * |
322 | 346 | * <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 |
325 | 352 | * try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) { |
326 | 353 | * SearchUrisRequest request = |
327 | 354 | * SearchUrisRequest.newBuilder() |
@@ -349,8 +376,11 @@ public final SearchUrisResponse searchUris(SearchUrisRequest request) { |
349 | 376 | * <p>Sample code: |
350 | 377 | * |
351 | 378 | * <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 |
354 | 384 | * try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) { |
355 | 385 | * SearchUrisRequest request = |
356 | 386 | * SearchUrisRequest.newBuilder() |
@@ -378,8 +408,11 @@ public final UnaryCallable<SearchUrisRequest, SearchUrisResponse> searchUrisCall |
378 | 408 | * <p>Sample code: |
379 | 409 | * |
380 | 410 | * <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 |
383 | 416 | * try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) { |
384 | 417 | * ByteString hashPrefix = ByteString.EMPTY; |
385 | 418 | * List<ThreatType> threatTypes = new ArrayList<>(); |
@@ -413,8 +446,11 @@ public final SearchHashesResponse searchHashes( |
413 | 446 | * <p>Sample code: |
414 | 447 | * |
415 | 448 | * <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 |
418 | 454 | * try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) { |
419 | 455 | * SearchHashesRequest request = |
420 | 456 | * SearchHashesRequest.newBuilder() |
@@ -442,8 +478,11 @@ public final SearchHashesResponse searchHashes(SearchHashesRequest request) { |
442 | 478 | * <p>Sample code: |
443 | 479 | * |
444 | 480 | * <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 |
447 | 486 | * try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) { |
448 | 487 | * SearchHashesRequest request = |
449 | 488 | * SearchHashesRequest.newBuilder() |
@@ -472,8 +511,11 @@ public final UnaryCallable<SearchHashesRequest, SearchHashesResponse> searchHash |
472 | 511 | * <p>Sample code: |
473 | 512 | * |
474 | 513 | * <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 |
477 | 519 | * try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) { |
478 | 520 | * ProjectName parent = ProjectName.of("[PROJECT]"); |
479 | 521 | * Submission submission = Submission.newBuilder().build(); |
@@ -506,8 +548,11 @@ public final Submission createSubmission(ProjectName parent, Submission submissi |
506 | 548 | * <p>Sample code: |
507 | 549 | * |
508 | 550 | * <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 |
511 | 556 | * try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) { |
512 | 557 | * String parent = ProjectName.of("[PROJECT]").toString(); |
513 | 558 | * Submission submission = Submission.newBuilder().build(); |
@@ -537,8 +582,11 @@ public final Submission createSubmission(String parent, Submission submission) { |
537 | 582 | * <p>Sample code: |
538 | 583 | * |
539 | 584 | * <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 |
542 | 590 | * try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) { |
543 | 591 | * CreateSubmissionRequest request = |
544 | 592 | * CreateSubmissionRequest.newBuilder() |
@@ -567,8 +615,11 @@ public final Submission createSubmission(CreateSubmissionRequest request) { |
567 | 615 | * <p>Sample code: |
568 | 616 | * |
569 | 617 | * <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 |
572 | 623 | * try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) { |
573 | 624 | * CreateSubmissionRequest request = |
574 | 625 | * CreateSubmissionRequest.newBuilder() |
|
0 commit comments