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 (RevisionsClient revisionsClient = RevisionsClient.create()) {
5154 * RevisionName name = RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]");
5255 * Revision response = revisionsClient.getRevision(name);
8285 * <p>To customize credentials:
8386 *
8487 * <pre>{@code
85- * // This snippet has been automatically generated for illustrative purposes only.
86- * // It may require modifications to work in your environment.
88+ * // This snippet has been automatically generated and should be regarded as a code template only.
89+ * // It will require modifications to work:
90+ * // - It may require correct/in-range values for request initialization.
91+ * // - It may require specifying regional endpoints when creating the service client as shown in
92+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8793 * RevisionsSettings revisionsSettings =
8894 * RevisionsSettings.newBuilder()
8995 * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
94100 * <p>To customize the endpoint:
95101 *
96102 * <pre>{@code
97- * // This snippet has been automatically generated for illustrative purposes only.
98- * // It may require modifications to work in your environment.
103+ * // This snippet has been automatically generated and should be regarded as a code template only.
104+ * // It will require modifications to work:
105+ * // - It may require correct/in-range values for request initialization.
106+ * // - It may require specifying regional endpoints when creating the service client as shown in
107+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
99108 * RevisionsSettings revisionsSettings =
100109 * RevisionsSettings.newBuilder().setEndpoint(myEndpoint).build();
101110 * RevisionsClient revisionsClient = RevisionsClient.create(revisionsSettings);
105114 * the wire:
106115 *
107116 * <pre>{@code
108- * // This snippet has been automatically generated for illustrative purposes only.
109- * // It may require modifications to work in your environment.
117+ * // This snippet has been automatically generated and should be regarded as a code template only.
118+ * // It will require modifications to work:
119+ * // - It may require correct/in-range values for request initialization.
120+ * // - It may require specifying regional endpoints when creating the service client as shown in
121+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
110122 * RevisionsSettings revisionsSettings =
111123 * RevisionsSettings.newBuilder()
112124 * .setTransportChannelProvider(
@@ -197,8 +209,11 @@ public final OperationsClient getHttpJsonOperationsClient() {
197209 * <p>Sample code:
198210 *
199211 * <pre>{@code
200- * // This snippet has been automatically generated for illustrative purposes only.
201- * // It may require modifications to work in your environment.
212+ * // This snippet has been automatically generated and should be regarded as a code template only.
213+ * // It will require modifications to work:
214+ * // - It may require correct/in-range values for request initialization.
215+ * // - It may require specifying regional endpoints when creating the service client as shown in
216+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
202217 * try (RevisionsClient revisionsClient = RevisionsClient.create()) {
203218 * RevisionName name = RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]");
204219 * Revision response = revisionsClient.getRevision(name);
@@ -222,8 +237,11 @@ public final Revision getRevision(RevisionName name) {
222237 * <p>Sample code:
223238 *
224239 * <pre>{@code
225- * // This snippet has been automatically generated for illustrative purposes only.
226- * // It may require modifications to work in your environment.
240+ * // This snippet has been automatically generated and should be regarded as a code template only.
241+ * // It will require modifications to work:
242+ * // - It may require correct/in-range values for request initialization.
243+ * // - It may require specifying regional endpoints when creating the service client as shown in
244+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
227245 * try (RevisionsClient revisionsClient = RevisionsClient.create()) {
228246 * String name =
229247 * RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString();
@@ -247,8 +265,11 @@ public final Revision getRevision(String name) {
247265 * <p>Sample code:
248266 *
249267 * <pre>{@code
250- * // This snippet has been automatically generated for illustrative purposes only.
251- * // It may require modifications to work in your environment.
268+ * // This snippet has been automatically generated and should be regarded as a code template only.
269+ * // It will require modifications to work:
270+ * // - It may require correct/in-range values for request initialization.
271+ * // - It may require specifying regional endpoints when creating the service client as shown in
272+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
252273 * try (RevisionsClient revisionsClient = RevisionsClient.create()) {
253274 * GetRevisionRequest request =
254275 * GetRevisionRequest.newBuilder()
@@ -273,8 +294,11 @@ public final Revision getRevision(GetRevisionRequest request) {
273294 * <p>Sample code:
274295 *
275296 * <pre>{@code
276- * // This snippet has been automatically generated for illustrative purposes only.
277- * // It may require modifications to work in your environment.
297+ * // This snippet has been automatically generated and should be regarded as a code template only.
298+ * // It will require modifications to work:
299+ * // - It may require correct/in-range values for request initialization.
300+ * // - It may require specifying regional endpoints when creating the service client as shown in
301+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
278302 * try (RevisionsClient revisionsClient = RevisionsClient.create()) {
279303 * GetRevisionRequest request =
280304 * GetRevisionRequest.newBuilder()
@@ -298,8 +322,11 @@ public final UnaryCallable<GetRevisionRequest, Revision> getRevisionCallable() {
298322 * <p>Sample code:
299323 *
300324 * <pre>{@code
301- * // This snippet has been automatically generated for illustrative purposes only.
302- * // It may require modifications to work in your environment.
325+ * // This snippet has been automatically generated and should be regarded as a code template only.
326+ * // It will require modifications to work:
327+ * // - It may require correct/in-range values for request initialization.
328+ * // - It may require specifying regional endpoints when creating the service client as shown in
329+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
303330 * try (RevisionsClient revisionsClient = RevisionsClient.create()) {
304331 * ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
305332 * for (Revision element : revisionsClient.listRevisions(parent).iterateAll()) {
@@ -328,8 +355,11 @@ public final ListRevisionsPagedResponse listRevisions(ServiceName parent) {
328355 * <p>Sample code:
329356 *
330357 * <pre>{@code
331- * // This snippet has been automatically generated for illustrative purposes only.
332- * // It may require modifications to work in your environment.
358+ * // This snippet has been automatically generated and should be regarded as a code template only.
359+ * // It will require modifications to work:
360+ * // - It may require correct/in-range values for request initialization.
361+ * // - It may require specifying regional endpoints when creating the service client as shown in
362+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
333363 * try (RevisionsClient revisionsClient = RevisionsClient.create()) {
334364 * String parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
335365 * for (Revision element : revisionsClient.listRevisions(parent).iterateAll()) {
@@ -355,8 +385,11 @@ public final ListRevisionsPagedResponse listRevisions(String parent) {
355385 * <p>Sample code:
356386 *
357387 * <pre>{@code
358- * // This snippet has been automatically generated for illustrative purposes only.
359- * // It may require modifications to work in your environment.
388+ * // This snippet has been automatically generated and should be regarded as a code template only.
389+ * // It will require modifications to work:
390+ * // - It may require correct/in-range values for request initialization.
391+ * // - It may require specifying regional endpoints when creating the service client as shown in
392+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
360393 * try (RevisionsClient revisionsClient = RevisionsClient.create()) {
361394 * ListRevisionsRequest request =
362395 * ListRevisionsRequest.newBuilder()
@@ -385,8 +418,11 @@ public final ListRevisionsPagedResponse listRevisions(ListRevisionsRequest reque
385418 * <p>Sample code:
386419 *
387420 * <pre>{@code
388- * // This snippet has been automatically generated for illustrative purposes only.
389- * // It may require modifications to work in your environment.
421+ * // This snippet has been automatically generated and should be regarded as a code template only.
422+ * // It will require modifications to work:
423+ * // - It may require correct/in-range values for request initialization.
424+ * // - It may require specifying regional endpoints when creating the service client as shown in
425+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
390426 * try (RevisionsClient revisionsClient = RevisionsClient.create()) {
391427 * ListRevisionsRequest request =
392428 * ListRevisionsRequest.newBuilder()
@@ -415,8 +451,11 @@ public final ListRevisionsPagedResponse listRevisions(ListRevisionsRequest reque
415451 * <p>Sample code:
416452 *
417453 * <pre>{@code
418- * // This snippet has been automatically generated for illustrative purposes only.
419- * // It may require modifications to work in your environment.
454+ * // This snippet has been automatically generated and should be regarded as a code template only.
455+ * // It will require modifications to work:
456+ * // - It may require correct/in-range values for request initialization.
457+ * // - It may require specifying regional endpoints when creating the service client as shown in
458+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
420459 * try (RevisionsClient revisionsClient = RevisionsClient.create()) {
421460 * ListRevisionsRequest request =
422461 * ListRevisionsRequest.newBuilder()
@@ -451,8 +490,11 @@ public final UnaryCallable<ListRevisionsRequest, ListRevisionsResponse> listRevi
451490 * <p>Sample code:
452491 *
453492 * <pre>{@code
454- * // This snippet has been automatically generated for illustrative purposes only.
455- * // It may require modifications to work in your environment.
493+ * // This snippet has been automatically generated and should be regarded as a code template only.
494+ * // It will require modifications to work:
495+ * // - It may require correct/in-range values for request initialization.
496+ * // - It may require specifying regional endpoints when creating the service client as shown in
497+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
456498 * try (RevisionsClient revisionsClient = RevisionsClient.create()) {
457499 * RevisionName name = RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]");
458500 * Revision response = revisionsClient.deleteRevisionAsync(name).get();
@@ -476,8 +518,11 @@ public final OperationFuture<Revision, Revision> deleteRevisionAsync(RevisionNam
476518 * <p>Sample code:
477519 *
478520 * <pre>{@code
479- * // This snippet has been automatically generated for illustrative purposes only.
480- * // It may require modifications to work in your environment.
521+ * // This snippet has been automatically generated and should be regarded as a code template only.
522+ * // It will require modifications to work:
523+ * // - It may require correct/in-range values for request initialization.
524+ * // - It may require specifying regional endpoints when creating the service client as shown in
525+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
481526 * try (RevisionsClient revisionsClient = RevisionsClient.create()) {
482527 * String name =
483528 * RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString();
@@ -501,8 +546,11 @@ public final OperationFuture<Revision, Revision> deleteRevisionAsync(String name
501546 * <p>Sample code:
502547 *
503548 * <pre>{@code
504- * // This snippet has been automatically generated for illustrative purposes only.
505- * // It may require modifications to work in your environment.
549+ * // This snippet has been automatically generated and should be regarded as a code template only.
550+ * // It will require modifications to work:
551+ * // - It may require correct/in-range values for request initialization.
552+ * // - It may require specifying regional endpoints when creating the service client as shown in
553+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
506554 * try (RevisionsClient revisionsClient = RevisionsClient.create()) {
507555 * DeleteRevisionRequest request =
508556 * DeleteRevisionRequest.newBuilder()
@@ -530,8 +578,11 @@ public final OperationFuture<Revision, Revision> deleteRevisionAsync(
530578 * <p>Sample code:
531579 *
532580 * <pre>{@code
533- * // This snippet has been automatically generated for illustrative purposes only.
534- * // It may require modifications to work in your environment.
581+ * // This snippet has been automatically generated and should be regarded as a code template only.
582+ * // It will require modifications to work:
583+ * // - It may require correct/in-range values for request initialization.
584+ * // - It may require specifying regional endpoints when creating the service client as shown in
585+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
535586 * try (RevisionsClient revisionsClient = RevisionsClient.create()) {
536587 * DeleteRevisionRequest request =
537588 * DeleteRevisionRequest.newBuilder()
@@ -559,8 +610,11 @@ public final OperationFuture<Revision, Revision> deleteRevisionAsync(
559610 * <p>Sample code:
560611 *
561612 * <pre>{@code
562- * // This snippet has been automatically generated for illustrative purposes only.
563- * // It may require modifications to work in your environment.
613+ * // This snippet has been automatically generated and should be regarded as a code template only.
614+ * // It will require modifications to work:
615+ * // - It may require correct/in-range values for request initialization.
616+ * // - It may require specifying regional endpoints when creating the service client as shown in
617+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
564618 * try (RevisionsClient revisionsClient = RevisionsClient.create()) {
565619 * DeleteRevisionRequest request =
566620 * DeleteRevisionRequest.newBuilder()
0 commit comments