|
36 | 36 | * calls that map to API methods. Sample code to get started:
|
37 | 37 | *
|
38 | 38 | * <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 |
41 | 44 | * try (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
|
42 | 45 | * PhishingProtectionServiceV1Beta1Client.create()) {
|
43 | 46 | * ProjectName parent = ProjectName.of("[PROJECT]");
|
|
77 | 80 | * <p>To customize credentials:
|
78 | 81 | *
|
79 | 82 | * <pre>{@code
|
80 |
| - * // This snippet has been automatically generated for illustrative purposes only. |
81 |
| - * // It may require modifications to work in your environment. |
| 83 | + * // This snippet has been automatically generated and should be regarded as a code template only. |
| 84 | + * // It will require modifications to work: |
| 85 | + * // - It may require correct/in-range values for request initialization. |
| 86 | + * // - It may require specifying regional endpoints when creating the service client as shown in |
| 87 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library |
82 | 88 | * PhishingProtectionServiceV1Beta1Settings phishingProtectionServiceV1Beta1Settings =
|
83 | 89 | * PhishingProtectionServiceV1Beta1Settings.newBuilder()
|
84 | 90 | * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
|
|
90 | 96 | * <p>To customize the endpoint:
|
91 | 97 | *
|
92 | 98 | * <pre>{@code
|
93 |
| - * // This snippet has been automatically generated for illustrative purposes only. |
94 |
| - * // It may require modifications to work in your environment. |
| 99 | + * // This snippet has been automatically generated and should be regarded as a code template only. |
| 100 | + * // It will require modifications to work: |
| 101 | + * // - It may require correct/in-range values for request initialization. |
| 102 | + * // - It may require specifying regional endpoints when creating the service client as shown in |
| 103 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library |
95 | 104 | * PhishingProtectionServiceV1Beta1Settings phishingProtectionServiceV1Beta1Settings =
|
96 | 105 | * PhishingProtectionServiceV1Beta1Settings.newBuilder().setEndpoint(myEndpoint).build();
|
97 | 106 | * PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
|
|
102 | 111 | * the wire:
|
103 | 112 | *
|
104 | 113 | * <pre>{@code
|
105 |
| - * // This snippet has been automatically generated for illustrative purposes only. |
106 |
| - * // It may require modifications to work in your environment. |
| 114 | + * // This snippet has been automatically generated and should be regarded as a code template only. |
| 115 | + * // It will require modifications to work: |
| 116 | + * // - It may require correct/in-range values for request initialization. |
| 117 | + * // - It may require specifying regional endpoints when creating the service client as shown in |
| 118 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library |
107 | 119 | * PhishingProtectionServiceV1Beta1Settings phishingProtectionServiceV1Beta1Settings =
|
108 | 120 | * PhishingProtectionServiceV1Beta1Settings.newBuilder()
|
109 | 121 | * .setTransportChannelProvider(
|
@@ -184,8 +196,11 @@ public PhishingProtectionServiceV1Beta1Stub getStub() {
|
184 | 196 | * <p>Sample code:
|
185 | 197 | *
|
186 | 198 | * <pre>{@code
|
187 |
| - * // This snippet has been automatically generated for illustrative purposes only. |
188 |
| - * // It may require modifications to work in your environment. |
| 199 | + * // This snippet has been automatically generated and should be regarded as a code template only. |
| 200 | + * // It will require modifications to work: |
| 201 | + * // - It may require correct/in-range values for request initialization. |
| 202 | + * // - It may require specifying regional endpoints when creating the service client as shown in |
| 203 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library |
189 | 204 | * try (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
|
190 | 205 | * PhishingProtectionServiceV1Beta1Client.create()) {
|
191 | 206 | * ProjectName parent = ProjectName.of("[PROJECT]");
|
@@ -221,8 +236,11 @@ public final ReportPhishingResponse reportPhishing(ProjectName parent, String ur
|
221 | 236 | * <p>Sample code:
|
222 | 237 | *
|
223 | 238 | * <pre>{@code
|
224 |
| - * // This snippet has been automatically generated for illustrative purposes only. |
225 |
| - * // It may require modifications to work in your environment. |
| 239 | + * // This snippet has been automatically generated and should be regarded as a code template only. |
| 240 | + * // It will require modifications to work: |
| 241 | + * // - It may require correct/in-range values for request initialization. |
| 242 | + * // - It may require specifying regional endpoints when creating the service client as shown in |
| 243 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library |
226 | 244 | * try (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
|
227 | 245 | * PhishingProtectionServiceV1Beta1Client.create()) {
|
228 | 246 | * String parent = ProjectName.of("[PROJECT]").toString();
|
@@ -255,8 +273,11 @@ public final ReportPhishingResponse reportPhishing(String parent, String uri) {
|
255 | 273 | * <p>Sample code:
|
256 | 274 | *
|
257 | 275 | * <pre>{@code
|
258 |
| - * // This snippet has been automatically generated for illustrative purposes only. |
259 |
| - * // It may require modifications to work in your environment. |
| 276 | + * // This snippet has been automatically generated and should be regarded as a code template only. |
| 277 | + * // It will require modifications to work: |
| 278 | + * // - It may require correct/in-range values for request initialization. |
| 279 | + * // - It may require specifying regional endpoints when creating the service client as shown in |
| 280 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library |
260 | 281 | * try (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
|
261 | 282 | * PhishingProtectionServiceV1Beta1Client.create()) {
|
262 | 283 | * ReportPhishingRequest request =
|
@@ -288,8 +309,11 @@ public final ReportPhishingResponse reportPhishing(ReportPhishingRequest request
|
288 | 309 | * <p>Sample code:
|
289 | 310 | *
|
290 | 311 | * <pre>{@code
|
291 |
| - * // This snippet has been automatically generated for illustrative purposes only. |
292 |
| - * // It may require modifications to work in your environment. |
| 312 | + * // This snippet has been automatically generated and should be regarded as a code template only. |
| 313 | + * // It will require modifications to work: |
| 314 | + * // - It may require correct/in-range values for request initialization. |
| 315 | + * // - It may require specifying regional endpoints when creating the service client as shown in |
| 316 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library |
293 | 317 | * try (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
|
294 | 318 | * PhishingProtectionServiceV1Beta1Client.create()) {
|
295 | 319 | * ReportPhishingRequest request =
|
|
0 commit comments