diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java index 040bca01808f..36003dab7396 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java @@ -54,8 +54,11 @@ * calls that map to API methods. Sample code to get started: * *
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (DocumentProcessorServiceClient documentProcessorServiceClient =
  *     DocumentProcessorServiceClient.create()) {
  *   ResourceName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
@@ -93,8 +96,11 @@
  * 

To customize credentials: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * DocumentProcessorServiceSettings documentProcessorServiceSettings =
  *     DocumentProcessorServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -106,8 +112,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * DocumentProcessorServiceSettings documentProcessorServiceSettings =
  *     DocumentProcessorServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * DocumentProcessorServiceClient documentProcessorServiceClient =
@@ -118,8 +127,11 @@
  * the wire:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * DocumentProcessorServiceSettings documentProcessorServiceSettings =
  *     DocumentProcessorServiceSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -215,8 +227,11 @@ public final OperationsClient getHttpJsonOperationsClient() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ResourceName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
@@ -246,8 +261,11 @@ public final ProcessResponse processDocument(ResourceName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String name = HumanReviewConfigName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString();
@@ -276,8 +294,11 @@ public final ProcessResponse processDocument(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ProcessRequest request =
@@ -304,8 +325,11 @@ public final ProcessResponse processDocument(ProcessRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ProcessRequest request =
@@ -333,8 +357,11 @@ public final UnaryCallable processDocumentCalla
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ResourceName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
@@ -364,8 +391,11 @@ public final UnaryCallable processDocumentCalla
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String name = HumanReviewConfigName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString();
@@ -394,8 +424,11 @@ public final UnaryCallable processDocumentCalla
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   BatchProcessRequest request =
@@ -426,8 +459,11 @@ public final UnaryCallable processDocumentCalla
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   BatchProcessRequest request =
@@ -459,8 +495,11 @@ public final UnaryCallable processDocumentCalla
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   BatchProcessRequest request =
@@ -489,8 +528,11 @@ public final UnaryCallable batchProcessDocuments
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -520,8 +562,11 @@ public final FetchProcessorTypesResponse fetchProcessorTypes(LocationName parent
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -549,8 +594,11 @@ public final FetchProcessorTypesResponse fetchProcessorTypes(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   FetchProcessorTypesRequest request =
@@ -577,8 +625,11 @@ public final FetchProcessorTypesResponse fetchProcessorTypes(FetchProcessorTypes
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   FetchProcessorTypesRequest request =
@@ -604,8 +655,11 @@ public final FetchProcessorTypesResponse fetchProcessorTypes(FetchProcessorTypes
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -636,8 +690,11 @@ public final ListProcessorTypesPagedResponse listProcessorTypes(LocationName par
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -666,8 +723,11 @@ public final ListProcessorTypesPagedResponse listProcessorTypes(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ListProcessorTypesRequest request =
@@ -698,8 +758,11 @@ public final ListProcessorTypesPagedResponse listProcessorTypes(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ListProcessorTypesRequest request =
@@ -729,8 +792,11 @@ public final ListProcessorTypesPagedResponse listProcessorTypes(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ListProcessorTypesRequest request =
@@ -767,8 +833,11 @@ public final ListProcessorTypesPagedResponse listProcessorTypes(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -797,8 +866,11 @@ public final ListProcessorsPagedResponse listProcessors(LocationName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -824,8 +896,11 @@ public final ListProcessorsPagedResponse listProcessors(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ListProcessorsRequest request =
@@ -855,8 +930,11 @@ public final ListProcessorsPagedResponse listProcessors(ListProcessorsRequest re
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ListProcessorsRequest request =
@@ -886,8 +964,11 @@ public final ListProcessorsPagedResponse listProcessors(ListProcessorsRequest re
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ListProcessorsRequest request =
@@ -924,8 +1005,11 @@ public final ListProcessorsPagedResponse listProcessors(ListProcessorsRequest re
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ProcessorName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
@@ -949,8 +1033,11 @@ public final Processor getProcessor(ProcessorName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString();
@@ -973,8 +1060,11 @@ public final Processor getProcessor(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   GetProcessorRequest request =
@@ -999,8 +1089,11 @@ public final Processor getProcessor(GetProcessorRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   GetProcessorRequest request =
@@ -1025,8 +1118,11 @@ public final UnaryCallable getProcessorCallable(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ProcessorVersionName name =
@@ -1053,8 +1149,11 @@ public final ProcessorVersion getProcessorVersion(ProcessorVersionName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String name =
@@ -1080,8 +1179,11 @@ public final ProcessorVersion getProcessorVersion(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   GetProcessorVersionRequest request =
@@ -1109,8 +1211,11 @@ public final ProcessorVersion getProcessorVersion(GetProcessorVersionRequest req
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   GetProcessorVersionRequest request =
@@ -1139,8 +1244,11 @@ public final ProcessorVersion getProcessorVersion(GetProcessorVersionRequest req
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ProcessorName parent = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
@@ -1170,8 +1278,11 @@ public final ListProcessorVersionsPagedResponse listProcessorVersions(ProcessorN
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String parent = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString();
@@ -1199,8 +1310,11 @@ public final ListProcessorVersionsPagedResponse listProcessorVersions(String par
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ListProcessorVersionsRequest request =
@@ -1231,8 +1345,11 @@ public final ListProcessorVersionsPagedResponse listProcessorVersions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ListProcessorVersionsRequest request =
@@ -1262,8 +1379,11 @@ public final ListProcessorVersionsPagedResponse listProcessorVersions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ListProcessorVersionsRequest request =
@@ -1300,8 +1420,11 @@ public final ListProcessorVersionsPagedResponse listProcessorVersions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ProcessorVersionName name =
@@ -1329,8 +1452,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String name =
@@ -1357,8 +1483,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   DeleteProcessorVersionRequest request =
@@ -1387,8 +1516,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   DeleteProcessorVersionRequest request =
@@ -1420,8 +1552,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   DeleteProcessorVersionRequest request =
@@ -1450,8 +1585,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ProcessorVersionName name =
@@ -1480,8 +1618,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String name =
@@ -1509,8 +1650,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   DeployProcessorVersionRequest request =
@@ -1540,8 +1684,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   DeployProcessorVersionRequest request =
@@ -1575,8 +1722,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   DeployProcessorVersionRequest request =
@@ -1605,8 +1755,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ProcessorVersionName name =
@@ -1635,8 +1788,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String name =
@@ -1664,8 +1820,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   UndeployProcessorVersionRequest request =
@@ -1695,8 +1854,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   UndeployProcessorVersionRequest request =
@@ -1730,8 +1892,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   UndeployProcessorVersionRequest request =
@@ -1761,8 +1926,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -1794,8 +1962,11 @@ public final Processor createProcessor(LocationName parent, Processor processor)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -1824,8 +1995,11 @@ public final Processor createProcessor(String parent, Processor processor) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   CreateProcessorRequest request =
@@ -1852,8 +2026,11 @@ public final Processor createProcessor(CreateProcessorRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   CreateProcessorRequest request =
@@ -1880,8 +2057,11 @@ public final UnaryCallable createProcessorCal
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ProcessorName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
@@ -1907,8 +2087,11 @@ public final OperationFuture deleteProcessorAsyn
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString();
@@ -1932,8 +2115,11 @@ public final OperationFuture deleteProcessorAsyn
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   DeleteProcessorRequest request =
@@ -1960,8 +2146,11 @@ public final OperationFuture deleteProcessorAsyn
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   DeleteProcessorRequest request =
@@ -1988,8 +2177,11 @@ public final OperationFuture deleteProcessorAsyn
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   DeleteProcessorRequest request =
@@ -2014,8 +2206,11 @@ public final UnaryCallable deleteProcessorCal
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   EnableProcessorRequest request =
@@ -2042,8 +2237,11 @@ public final UnaryCallable deleteProcessorCal
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   EnableProcessorRequest request =
@@ -2070,8 +2268,11 @@ public final UnaryCallable deleteProcessorCal
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   EnableProcessorRequest request =
@@ -2096,8 +2297,11 @@ public final UnaryCallable enableProcessorCal
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   DisableProcessorRequest request =
@@ -2124,8 +2328,11 @@ public final UnaryCallable enableProcessorCal
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   DisableProcessorRequest request =
@@ -2152,8 +2359,11 @@ public final UnaryCallable enableProcessorCal
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   DisableProcessorRequest request =
@@ -2181,8 +2391,11 @@ public final UnaryCallable disableProcessorC
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   SetDefaultProcessorVersionRequest request =
@@ -2217,8 +2430,11 @@ public final UnaryCallable disableProcessorC
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   SetDefaultProcessorVersionRequest request =
@@ -2257,8 +2473,11 @@ public final UnaryCallable disableProcessorC
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   SetDefaultProcessorVersionRequest request =
@@ -2289,8 +2508,11 @@ public final UnaryCallable disableProcessorC
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   HumanReviewConfigName humanReviewConfig =
@@ -2321,8 +2543,11 @@ public final UnaryCallable disableProcessorC
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String humanReviewConfig =
@@ -2351,8 +2576,11 @@ public final UnaryCallable disableProcessorC
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ReviewDocumentRequest request =
@@ -2383,8 +2611,11 @@ public final UnaryCallable disableProcessorC
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ReviewDocumentRequest request =
@@ -2415,8 +2646,11 @@ public final UnaryCallable disableProcessorC
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ReviewDocumentRequest request =
@@ -2444,8 +2678,11 @@ public final UnaryCallable reviewDocumentCalla
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ListLocationsRequest request =
@@ -2475,8 +2712,11 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ListLocationsRequest request =
@@ -2507,8 +2747,11 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ListLocationsRequest request =
@@ -2545,8 +2788,11 @@ public final UnaryCallable listLoca
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
@@ -2568,8 +2814,11 @@ public final Location getLocation(GetLocationRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceSettings.java
index 26bdd5e1aff1..710abecd6b1e 100644
--- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceSettings.java
+++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceSettings.java
@@ -63,8 +63,11 @@
  * 

For example, to set the total timeout of processDocument to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * DocumentProcessorServiceSettings.Builder documentProcessorServiceSettingsBuilder =
  *     DocumentProcessorServiceSettings.newBuilder();
  * documentProcessorServiceSettingsBuilder
diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/package-info.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/package-info.java
index 42bc2d8a0ab5..202ef6b6e687 100644
--- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/package-info.java
+++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/package-info.java
@@ -29,8 +29,11 @@
  * 

Sample for DocumentProcessorServiceClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (DocumentProcessorServiceClient documentProcessorServiceClient =
  *     DocumentProcessorServiceClient.create()) {
  *   ResourceName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java
index 837e38a2c733..248357936c1c 100644
--- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java
+++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java
@@ -124,8 +124,11 @@
  * 

For example, to set the total timeout of processDocument to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * DocumentProcessorServiceStubSettings.Builder documentProcessorServiceSettingsBuilder =
  *     DocumentProcessorServiceStubSettings.newBuilder();
  * documentProcessorServiceSettingsBuilder
diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/HttpJsonDocumentProcessorServiceStub.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/HttpJsonDocumentProcessorServiceStub.java
index 4a45ee5db83a..b28b45c5d6d5 100644
--- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/HttpJsonDocumentProcessorServiceStub.java
+++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/HttpJsonDocumentProcessorServiceStub.java
@@ -151,7 +151,7 @@ public class HttpJsonDocumentProcessorServiceStub extends DocumentProcessorServi
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -190,7 +190,7 @@ public class HttpJsonDocumentProcessorServiceStub extends DocumentProcessorServi
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -478,7 +478,7 @@ public class HttpJsonDocumentProcessorServiceStub extends DocumentProcessorServi
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -518,7 +518,7 @@ public class HttpJsonDocumentProcessorServiceStub extends DocumentProcessorServi
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -558,7 +558,7 @@ public class HttpJsonDocumentProcessorServiceStub extends DocumentProcessorServi
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("processor", request.getProcessor()))
+                                  .toBody("processor", request.getProcessor(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -632,7 +632,7 @@ public class HttpJsonDocumentProcessorServiceStub extends DocumentProcessorServi
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -672,7 +672,7 @@ public class HttpJsonDocumentProcessorServiceStub extends DocumentProcessorServi
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -712,7 +712,7 @@ public class HttpJsonDocumentProcessorServiceStub extends DocumentProcessorServi
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearProcessor().build()))
+                                  .toBody("*", request.toBuilder().clearProcessor().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -754,7 +754,9 @@ public class HttpJsonDocumentProcessorServiceStub extends DocumentProcessorServi
                           request ->
                               ProtoRestSerializer.create()
                                   .toBody(
-                                      "*", request.toBuilder().clearHumanReviewConfig().build()))
+                                      "*",
+                                      request.toBuilder().clearHumanReviewConfig().build(),
+                                      false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/DocumentUnderstandingServiceClient.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/DocumentUnderstandingServiceClient.java
index cb7fc0a28c2a..317ee2c8f4d9 100644
--- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/DocumentUnderstandingServiceClient.java
+++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/DocumentUnderstandingServiceClient.java
@@ -40,8 +40,11 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
  *     DocumentUnderstandingServiceClient.create()) {
  *   List requests = new ArrayList<>();
@@ -80,8 +83,11 @@
  * 

To customize credentials: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * DocumentUnderstandingServiceSettings documentUnderstandingServiceSettings =
  *     DocumentUnderstandingServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -93,8 +99,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * DocumentUnderstandingServiceSettings documentUnderstandingServiceSettings =
  *     DocumentUnderstandingServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
@@ -176,8 +185,11 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
    *     DocumentUnderstandingServiceClient.create()) {
    *   List requests = new ArrayList<>();
@@ -203,8 +215,11 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
    *     DocumentUnderstandingServiceClient.create()) {
    *   BatchProcessDocumentsRequest request =
@@ -232,8 +247,11 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
    *     DocumentUnderstandingServiceClient.create()) {
    *   BatchProcessDocumentsRequest request =
@@ -263,8 +281,11 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
    *     DocumentUnderstandingServiceClient.create()) {
    *   BatchProcessDocumentsRequest request =
diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/DocumentUnderstandingServiceSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/DocumentUnderstandingServiceSettings.java
index 1bb96e4f6398..3b1e22ee3bdc 100644
--- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/DocumentUnderstandingServiceSettings.java
+++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/DocumentUnderstandingServiceSettings.java
@@ -51,8 +51,11 @@
  * 

For example, to set the total timeout of batchProcessDocuments to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * DocumentUnderstandingServiceSettings.Builder documentUnderstandingServiceSettingsBuilder =
  *     DocumentUnderstandingServiceSettings.newBuilder();
  * documentUnderstandingServiceSettingsBuilder
diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/package-info.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/package-info.java
index ed5c85893c06..01d48dd1cc89 100644
--- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/package-info.java
+++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/package-info.java
@@ -26,8 +26,11 @@
  * 

Sample for DocumentUnderstandingServiceClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
  *     DocumentUnderstandingServiceClient.create()) {
  *   List requests = new ArrayList<>();
diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/stub/DocumentUnderstandingServiceStubSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/stub/DocumentUnderstandingServiceStubSettings.java
index a25100a524f7..18a0dc7ca816 100644
--- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/stub/DocumentUnderstandingServiceStubSettings.java
+++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/stub/DocumentUnderstandingServiceStubSettings.java
@@ -66,8 +66,11 @@
  * 

For example, to set the total timeout of batchProcessDocuments to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * DocumentUnderstandingServiceStubSettings.Builder documentUnderstandingServiceSettingsBuilder =
  *     DocumentUnderstandingServiceStubSettings.newBuilder();
  * documentUnderstandingServiceSettingsBuilder
diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceClient.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceClient.java
index 9b6bfdad5e2c..61123d23d2db 100644
--- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceClient.java
+++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceClient.java
@@ -40,8 +40,11 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
  *     DocumentUnderstandingServiceClient.create()) {
  *   ProcessDocumentRequest request =
@@ -90,8 +93,11 @@
  * 

To customize credentials: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * DocumentUnderstandingServiceSettings documentUnderstandingServiceSettings =
  *     DocumentUnderstandingServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -103,8 +109,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * DocumentUnderstandingServiceSettings documentUnderstandingServiceSettings =
  *     DocumentUnderstandingServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
@@ -187,8 +196,11 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
    *     DocumentUnderstandingServiceClient.create()) {
    *   List requests = new ArrayList<>();
@@ -215,8 +227,11 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
    *     DocumentUnderstandingServiceClient.create()) {
    *   BatchProcessDocumentsRequest request =
@@ -245,8 +260,11 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
    *     DocumentUnderstandingServiceClient.create()) {
    *   BatchProcessDocumentsRequest request =
@@ -277,8 +295,11 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
    *     DocumentUnderstandingServiceClient.create()) {
    *   BatchProcessDocumentsRequest request =
@@ -305,8 +326,11 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
    *     DocumentUnderstandingServiceClient.create()) {
    *   ProcessDocumentRequest request =
@@ -339,8 +363,11 @@ public final Document processDocument(ProcessDocumentRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
    *     DocumentUnderstandingServiceClient.create()) {
    *   ProcessDocumentRequest request =
diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceSettings.java
index 8f9cc461a866..7785cbec70e1 100644
--- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceSettings.java
+++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceSettings.java
@@ -51,8 +51,11 @@
  * 

For example, to set the total timeout of processDocument to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * DocumentUnderstandingServiceSettings.Builder documentUnderstandingServiceSettingsBuilder =
  *     DocumentUnderstandingServiceSettings.newBuilder();
  * documentUnderstandingServiceSettingsBuilder
diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/package-info.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/package-info.java
index f1e6ff31b47c..5fc428cb6467 100644
--- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/package-info.java
+++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/package-info.java
@@ -26,8 +26,11 @@
  * 

Sample for DocumentUnderstandingServiceClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
  *     DocumentUnderstandingServiceClient.create()) {
  *   ProcessDocumentRequest request =
diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/stub/DocumentUnderstandingServiceStubSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/stub/DocumentUnderstandingServiceStubSettings.java
index 40c0492cbc2c..c3ba5ccc4af3 100644
--- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/stub/DocumentUnderstandingServiceStubSettings.java
+++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/stub/DocumentUnderstandingServiceStubSettings.java
@@ -68,8 +68,11 @@
  * 

For example, to set the total timeout of processDocument to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * DocumentUnderstandingServiceStubSettings.Builder documentUnderstandingServiceSettingsBuilder =
  *     DocumentUnderstandingServiceStubSettings.newBuilder();
  * documentUnderstandingServiceSettingsBuilder
diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java
index 07771d3f6502..f20c65c13c0f 100644
--- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java
+++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java
@@ -54,8 +54,11 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (DocumentProcessorServiceClient documentProcessorServiceClient =
  *     DocumentProcessorServiceClient.create()) {
  *   ResourceName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
@@ -93,8 +96,11 @@
  * 

To customize credentials: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * DocumentProcessorServiceSettings documentProcessorServiceSettings =
  *     DocumentProcessorServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -106,8 +112,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * DocumentProcessorServiceSettings documentProcessorServiceSettings =
  *     DocumentProcessorServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * DocumentProcessorServiceClient documentProcessorServiceClient =
@@ -118,8 +127,11 @@
  * the wire:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * DocumentProcessorServiceSettings documentProcessorServiceSettings =
  *     DocumentProcessorServiceSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -216,8 +228,11 @@ public final OperationsClient getHttpJsonOperationsClient() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ResourceName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
@@ -248,8 +263,11 @@ public final ProcessResponse processDocument(ResourceName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String name = HumanReviewConfigName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString();
@@ -279,8 +297,11 @@ public final ProcessResponse processDocument(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ProcessRequest request =
@@ -308,8 +329,11 @@ public final ProcessResponse processDocument(ProcessRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ProcessRequest request =
@@ -338,8 +362,11 @@ public final UnaryCallable processDocumentCalla
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ResourceName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
@@ -370,8 +397,11 @@ public final UnaryCallable processDocumentCalla
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String name = HumanReviewConfigName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString();
@@ -401,8 +431,11 @@ public final UnaryCallable processDocumentCalla
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   BatchProcessRequest request =
@@ -435,8 +468,11 @@ public final UnaryCallable processDocumentCalla
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   BatchProcessRequest request =
@@ -470,8 +506,11 @@ public final UnaryCallable processDocumentCalla
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   BatchProcessRequest request =
@@ -502,8 +541,11 @@ public final UnaryCallable batchProcessDocuments
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -533,8 +575,11 @@ public final FetchProcessorTypesResponse fetchProcessorTypes(LocationName parent
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -562,8 +607,11 @@ public final FetchProcessorTypesResponse fetchProcessorTypes(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   FetchProcessorTypesRequest request =
@@ -590,8 +638,11 @@ public final FetchProcessorTypesResponse fetchProcessorTypes(FetchProcessorTypes
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   FetchProcessorTypesRequest request =
@@ -617,8 +668,11 @@ public final FetchProcessorTypesResponse fetchProcessorTypes(FetchProcessorTypes
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -649,8 +703,11 @@ public final ListProcessorTypesPagedResponse listProcessorTypes(LocationName par
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -679,8 +736,11 @@ public final ListProcessorTypesPagedResponse listProcessorTypes(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ListProcessorTypesRequest request =
@@ -711,8 +771,11 @@ public final ListProcessorTypesPagedResponse listProcessorTypes(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ListProcessorTypesRequest request =
@@ -742,8 +805,11 @@ public final ListProcessorTypesPagedResponse listProcessorTypes(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ListProcessorTypesRequest request =
@@ -780,8 +846,11 @@ public final ListProcessorTypesPagedResponse listProcessorTypes(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -810,8 +879,11 @@ public final ListProcessorsPagedResponse listProcessors(LocationName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -837,8 +909,11 @@ public final ListProcessorsPagedResponse listProcessors(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ListProcessorsRequest request =
@@ -868,8 +943,11 @@ public final ListProcessorsPagedResponse listProcessors(ListProcessorsRequest re
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ListProcessorsRequest request =
@@ -899,8 +977,11 @@ public final ListProcessorsPagedResponse listProcessors(ListProcessorsRequest re
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ListProcessorsRequest request =
@@ -937,8 +1018,11 @@ public final ListProcessorsPagedResponse listProcessors(ListProcessorsRequest re
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ProcessorName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
@@ -962,8 +1046,11 @@ public final Processor getProcessor(ProcessorName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString();
@@ -986,8 +1073,11 @@ public final Processor getProcessor(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   GetProcessorRequest request =
@@ -1012,8 +1102,11 @@ public final Processor getProcessor(GetProcessorRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   GetProcessorRequest request =
@@ -1038,8 +1131,11 @@ public final UnaryCallable getProcessorCallable(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ProcessorVersionName name =
@@ -1066,8 +1162,11 @@ public final ProcessorVersion getProcessorVersion(ProcessorVersionName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String name =
@@ -1093,8 +1192,11 @@ public final ProcessorVersion getProcessorVersion(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   GetProcessorVersionRequest request =
@@ -1122,8 +1224,11 @@ public final ProcessorVersion getProcessorVersion(GetProcessorVersionRequest req
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   GetProcessorVersionRequest request =
@@ -1152,8 +1257,11 @@ public final ProcessorVersion getProcessorVersion(GetProcessorVersionRequest req
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ProcessorName parent = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
@@ -1183,8 +1291,11 @@ public final ListProcessorVersionsPagedResponse listProcessorVersions(ProcessorN
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String parent = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString();
@@ -1212,8 +1323,11 @@ public final ListProcessorVersionsPagedResponse listProcessorVersions(String par
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ListProcessorVersionsRequest request =
@@ -1244,8 +1358,11 @@ public final ListProcessorVersionsPagedResponse listProcessorVersions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ListProcessorVersionsRequest request =
@@ -1275,8 +1392,11 @@ public final ListProcessorVersionsPagedResponse listProcessorVersions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ListProcessorVersionsRequest request =
@@ -1313,8 +1433,11 @@ public final ListProcessorVersionsPagedResponse listProcessorVersions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ProcessorVersionName name =
@@ -1342,8 +1465,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String name =
@@ -1370,8 +1496,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   DeleteProcessorVersionRequest request =
@@ -1400,8 +1529,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   DeleteProcessorVersionRequest request =
@@ -1433,8 +1565,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   DeleteProcessorVersionRequest request =
@@ -1463,8 +1598,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ProcessorVersionName name =
@@ -1493,8 +1631,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String name =
@@ -1522,8 +1663,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   DeployProcessorVersionRequest request =
@@ -1553,8 +1697,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   DeployProcessorVersionRequest request =
@@ -1588,8 +1735,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   DeployProcessorVersionRequest request =
@@ -1618,8 +1768,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ProcessorVersionName name =
@@ -1648,8 +1801,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String name =
@@ -1677,8 +1833,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   UndeployProcessorVersionRequest request =
@@ -1708,8 +1867,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   UndeployProcessorVersionRequest request =
@@ -1743,8 +1905,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   UndeployProcessorVersionRequest request =
@@ -1774,8 +1939,11 @@ public final OperationFuture deleteProces
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -1807,8 +1975,11 @@ public final Processor createProcessor(LocationName parent, Processor processor)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -1837,8 +2008,11 @@ public final Processor createProcessor(String parent, Processor processor) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   CreateProcessorRequest request =
@@ -1865,8 +2039,11 @@ public final Processor createProcessor(CreateProcessorRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   CreateProcessorRequest request =
@@ -1893,8 +2070,11 @@ public final UnaryCallable createProcessorCal
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ProcessorName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
@@ -1920,8 +2100,11 @@ public final OperationFuture deleteProcessorAsyn
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString();
@@ -1945,8 +2128,11 @@ public final OperationFuture deleteProcessorAsyn
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   DeleteProcessorRequest request =
@@ -1973,8 +2159,11 @@ public final OperationFuture deleteProcessorAsyn
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   DeleteProcessorRequest request =
@@ -2001,8 +2190,11 @@ public final OperationFuture deleteProcessorAsyn
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   DeleteProcessorRequest request =
@@ -2027,8 +2219,11 @@ public final UnaryCallable deleteProcessorCal
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   EnableProcessorRequest request =
@@ -2055,8 +2250,11 @@ public final UnaryCallable deleteProcessorCal
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   EnableProcessorRequest request =
@@ -2083,8 +2281,11 @@ public final UnaryCallable deleteProcessorCal
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   EnableProcessorRequest request =
@@ -2109,8 +2310,11 @@ public final UnaryCallable enableProcessorCal
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   DisableProcessorRequest request =
@@ -2137,8 +2341,11 @@ public final UnaryCallable enableProcessorCal
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   DisableProcessorRequest request =
@@ -2165,8 +2372,11 @@ public final UnaryCallable enableProcessorCal
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   DisableProcessorRequest request =
@@ -2194,8 +2404,11 @@ public final UnaryCallable disableProcessorC
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   SetDefaultProcessorVersionRequest request =
@@ -2230,8 +2443,11 @@ public final UnaryCallable disableProcessorC
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   SetDefaultProcessorVersionRequest request =
@@ -2270,8 +2486,11 @@ public final UnaryCallable disableProcessorC
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   SetDefaultProcessorVersionRequest request =
@@ -2302,8 +2521,11 @@ public final UnaryCallable disableProcessorC
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   HumanReviewConfigName humanReviewConfig =
@@ -2334,8 +2556,11 @@ public final UnaryCallable disableProcessorC
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   String humanReviewConfig =
@@ -2364,8 +2589,11 @@ public final UnaryCallable disableProcessorC
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ReviewDocumentRequest request =
@@ -2397,8 +2625,11 @@ public final UnaryCallable disableProcessorC
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ReviewDocumentRequest request =
@@ -2430,8 +2661,11 @@ public final UnaryCallable disableProcessorC
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ReviewDocumentRequest request =
@@ -2460,8 +2694,11 @@ public final UnaryCallable reviewDocumentCalla
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ListLocationsRequest request =
@@ -2491,8 +2728,11 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ListLocationsRequest request =
@@ -2523,8 +2763,11 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   ListLocationsRequest request =
@@ -2561,8 +2804,11 @@ public final UnaryCallable listLoca
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
@@ -2584,8 +2830,11 @@ public final Location getLocation(GetLocationRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DocumentProcessorServiceClient documentProcessorServiceClient =
    *     DocumentProcessorServiceClient.create()) {
    *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceSettings.java
index e0416c552a97..02d5311a19d1 100644
--- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceSettings.java
+++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceSettings.java
@@ -63,8 +63,11 @@
  * 

For example, to set the total timeout of processDocument to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * DocumentProcessorServiceSettings.Builder documentProcessorServiceSettingsBuilder =
  *     DocumentProcessorServiceSettings.newBuilder();
  * documentProcessorServiceSettingsBuilder
diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/package-info.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/package-info.java
index fddb83a67f41..2aec29b232dc 100644
--- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/package-info.java
+++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/package-info.java
@@ -29,8 +29,11 @@
  * 

Sample for DocumentProcessorServiceClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (DocumentProcessorServiceClient documentProcessorServiceClient =
  *     DocumentProcessorServiceClient.create()) {
  *   ResourceName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java
index 9c2f60a28b84..7b16e6f3400d 100644
--- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java
+++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java
@@ -124,8 +124,11 @@
  * 

For example, to set the total timeout of processDocument to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * DocumentProcessorServiceStubSettings.Builder documentProcessorServiceSettingsBuilder =
  *     DocumentProcessorServiceStubSettings.newBuilder();
  * documentProcessorServiceSettingsBuilder
diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/HttpJsonDocumentProcessorServiceStub.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/HttpJsonDocumentProcessorServiceStub.java
index 48dd1579bcb8..0e2527fcd1be 100644
--- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/HttpJsonDocumentProcessorServiceStub.java
+++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/HttpJsonDocumentProcessorServiceStub.java
@@ -151,7 +151,7 @@ public class HttpJsonDocumentProcessorServiceStub extends DocumentProcessorServi
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -190,7 +190,7 @@ public class HttpJsonDocumentProcessorServiceStub extends DocumentProcessorServi
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -479,7 +479,7 @@ public class HttpJsonDocumentProcessorServiceStub extends DocumentProcessorServi
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -519,7 +519,7 @@ public class HttpJsonDocumentProcessorServiceStub extends DocumentProcessorServi
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -559,7 +559,7 @@ public class HttpJsonDocumentProcessorServiceStub extends DocumentProcessorServi
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("processor", request.getProcessor()))
+                                  .toBody("processor", request.getProcessor(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -633,7 +633,7 @@ public class HttpJsonDocumentProcessorServiceStub extends DocumentProcessorServi
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -673,7 +673,7 @@ public class HttpJsonDocumentProcessorServiceStub extends DocumentProcessorServi
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -713,7 +713,7 @@ public class HttpJsonDocumentProcessorServiceStub extends DocumentProcessorServi
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearProcessor().build()))
+                                  .toBody("*", request.toBuilder().clearProcessor().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -755,7 +755,9 @@ public class HttpJsonDocumentProcessorServiceStub extends DocumentProcessorServi
                           request ->
                               ProtoRestSerializer.create()
                                   .toBody(
-                                      "*", request.toBuilder().clearHumanReviewConfig().build()))
+                                      "*",
+                                      request.toBuilder().clearHumanReviewConfig().build(),
+                                      false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/batchprocessdocuments/AsyncBatchProcessDocuments.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/batchprocessdocuments/AsyncBatchProcessDocuments.java
index 18ab39b8fec0..74ca809c8b53 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/batchprocessdocuments/AsyncBatchProcessDocuments.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/batchprocessdocuments/AsyncBatchProcessDocuments.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncBatchProcessDocuments() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       BatchProcessRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/batchprocessdocuments/AsyncBatchProcessDocumentsLRO.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/batchprocessdocuments/AsyncBatchProcessDocumentsLRO.java
index 3ad5a46c5c68..cfc22f066f5e 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/batchprocessdocuments/AsyncBatchProcessDocumentsLRO.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/batchprocessdocuments/AsyncBatchProcessDocumentsLRO.java
@@ -33,8 +33,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncBatchProcessDocumentsLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       BatchProcessRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocuments.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocuments.java
index 0f9ba56c575c..4166121bdda7 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocuments.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocuments.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncBatchProcessDocuments() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       BatchProcessRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsResourcename.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsResourcename.java
index 49a7e1402170..625f2a452757 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsResourcename.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsResourcename.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncBatchProcessDocumentsResourcename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ResourceName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsString.java
index 1ca1b97c89dd..8d12037120a6 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsString.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncBatchProcessDocumentsString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String name = HumanReviewConfigName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString();
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/create/SyncCreateSetCredentialsProvider.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/create/SyncCreateSetCredentialsProvider.java
index c2bd29e78d5b..b042ef87a155 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/create/SyncCreateSetCredentialsProvider.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/create/SyncCreateSetCredentialsProvider.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     DocumentProcessorServiceSettings documentProcessorServiceSettings =
         DocumentProcessorServiceSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/create/SyncCreateSetCredentialsProvider1.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/create/SyncCreateSetCredentialsProvider1.java
index a32650995e6c..ee456e0c1d71 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/create/SyncCreateSetCredentialsProvider1.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider1() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     DocumentProcessorServiceSettings documentProcessorServiceSettings =
         DocumentProcessorServiceSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/create/SyncCreateSetEndpoint.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/create/SyncCreateSetEndpoint.java
index 0808638e02df..c3cc556d0a0f 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/create/SyncCreateSetEndpoint.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/create/SyncCreateSetEndpoint.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetEndpoint() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     DocumentProcessorServiceSettings documentProcessorServiceSettings =
         DocumentProcessorServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
     DocumentProcessorServiceClient documentProcessorServiceClient =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/createprocessor/AsyncCreateProcessor.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/createprocessor/AsyncCreateProcessor.java
index 183f21a2e6fb..a161694e2fa1 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/createprocessor/AsyncCreateProcessor.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/createprocessor/AsyncCreateProcessor.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateProcessor() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       CreateProcessorRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/createprocessor/SyncCreateProcessor.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/createprocessor/SyncCreateProcessor.java
index 600406b2a791..b760997fa5b1 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/createprocessor/SyncCreateProcessor.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/createprocessor/SyncCreateProcessor.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateProcessor() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       CreateProcessorRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/createprocessor/SyncCreateProcessorLocationnameProcessor.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/createprocessor/SyncCreateProcessorLocationnameProcessor.java
index 8eb3428c657d..7c5b12aa8ea6 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/createprocessor/SyncCreateProcessorLocationnameProcessor.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/createprocessor/SyncCreateProcessorLocationnameProcessor.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateProcessorLocationnameProcessor() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/createprocessor/SyncCreateProcessorStringProcessor.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/createprocessor/SyncCreateProcessorStringProcessor.java
index 9b347758755f..bda98dc41dca 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/createprocessor/SyncCreateProcessorStringProcessor.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/createprocessor/SyncCreateProcessorStringProcessor.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateProcessorStringProcessor() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessor/AsyncDeleteProcessor.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessor/AsyncDeleteProcessor.java
index 67bc8a2f27d8..b17a9a0769ae 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessor/AsyncDeleteProcessor.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessor/AsyncDeleteProcessor.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteProcessor() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       DeleteProcessorRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessor/AsyncDeleteProcessorLRO.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessor/AsyncDeleteProcessorLRO.java
index 003f53ac3e56..9270dde4786d 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessor/AsyncDeleteProcessorLRO.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessor/AsyncDeleteProcessorLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteProcessorLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       DeleteProcessorRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessor.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessor.java
index 3cff6e2053a6..a758bcdbf291 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessor.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessor.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteProcessor() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       DeleteProcessorRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessorProcessorname.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessorProcessorname.java
index 151128dbb80a..1f1b5a81a297 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessorProcessorname.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessorProcessorname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteProcessorProcessorname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ProcessorName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessorString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessorString.java
index 1b6d86269152..b06b727b3093 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessorString.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessorString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteProcessorString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString();
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessorversion/AsyncDeleteProcessorVersion.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessorversion/AsyncDeleteProcessorVersion.java
index c9ed9e282b9e..38d215016fed 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessorversion/AsyncDeleteProcessorVersion.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessorversion/AsyncDeleteProcessorVersion.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteProcessorVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       DeleteProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessorversion/AsyncDeleteProcessorVersionLRO.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessorversion/AsyncDeleteProcessorVersionLRO.java
index 21ee75e1934e..bcf5f579b684 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessorversion/AsyncDeleteProcessorVersionLRO.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessorversion/AsyncDeleteProcessorVersionLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteProcessorVersionLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       DeleteProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessorversion/SyncDeleteProcessorVersion.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessorversion/SyncDeleteProcessorVersion.java
index 91043ec94150..b77ccd80f9d3 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessorversion/SyncDeleteProcessorVersion.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessorversion/SyncDeleteProcessorVersion.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteProcessorVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       DeleteProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessorversion/SyncDeleteProcessorVersionProcessorversionname.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessorversion/SyncDeleteProcessorVersionProcessorversionname.java
index 1ea393e882f4..61571222837d 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessorversion/SyncDeleteProcessorVersionProcessorversionname.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessorversion/SyncDeleteProcessorVersionProcessorversionname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteProcessorVersionProcessorversionname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ProcessorVersionName name =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessorversion/SyncDeleteProcessorVersionString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessorversion/SyncDeleteProcessorVersionString.java
index 7ddd67c4c3e5..f9b46bcfb8e8 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessorversion/SyncDeleteProcessorVersionString.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deleteprocessorversion/SyncDeleteProcessorVersionString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteProcessorVersionString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String name =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deployprocessorversion/AsyncDeployProcessorVersion.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deployprocessorversion/AsyncDeployProcessorVersion.java
index f3c3d193b5aa..c40a66bbd7bb 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deployprocessorversion/AsyncDeployProcessorVersion.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deployprocessorversion/AsyncDeployProcessorVersion.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeployProcessorVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       DeployProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deployprocessorversion/AsyncDeployProcessorVersionLRO.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deployprocessorversion/AsyncDeployProcessorVersionLRO.java
index 311c593c03a7..87d6e89e3322 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deployprocessorversion/AsyncDeployProcessorVersionLRO.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deployprocessorversion/AsyncDeployProcessorVersionLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeployProcessorVersionLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       DeployProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deployprocessorversion/SyncDeployProcessorVersion.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deployprocessorversion/SyncDeployProcessorVersion.java
index 9136a3062155..eea0038c101c 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deployprocessorversion/SyncDeployProcessorVersion.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deployprocessorversion/SyncDeployProcessorVersion.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeployProcessorVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       DeployProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deployprocessorversion/SyncDeployProcessorVersionProcessorversionname.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deployprocessorversion/SyncDeployProcessorVersionProcessorversionname.java
index bf218b086800..591d27839047 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deployprocessorversion/SyncDeployProcessorVersionProcessorversionname.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deployprocessorversion/SyncDeployProcessorVersionProcessorversionname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeployProcessorVersionProcessorversionname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ProcessorVersionName name =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deployprocessorversion/SyncDeployProcessorVersionString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deployprocessorversion/SyncDeployProcessorVersionString.java
index f579c532e47b..fe2ced11ea36 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deployprocessorversion/SyncDeployProcessorVersionString.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/deployprocessorversion/SyncDeployProcessorVersionString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeployProcessorVersionString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String name =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/disableprocessor/AsyncDisableProcessor.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/disableprocessor/AsyncDisableProcessor.java
index 48fb5d07d2ed..e2558a3af218 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/disableprocessor/AsyncDisableProcessor.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/disableprocessor/AsyncDisableProcessor.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDisableProcessor() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       DisableProcessorRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/disableprocessor/AsyncDisableProcessorLRO.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/disableprocessor/AsyncDisableProcessorLRO.java
index 5ee318b6d2dc..2312e2339b21 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/disableprocessor/AsyncDisableProcessorLRO.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/disableprocessor/AsyncDisableProcessorLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDisableProcessorLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       DisableProcessorRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/disableprocessor/SyncDisableProcessor.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/disableprocessor/SyncDisableProcessor.java
index 633fdde583a1..4aafbfdf77a6 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/disableprocessor/SyncDisableProcessor.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/disableprocessor/SyncDisableProcessor.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDisableProcessor() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       DisableProcessorRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/enableprocessor/AsyncEnableProcessor.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/enableprocessor/AsyncEnableProcessor.java
index f04ae7e849db..6a4e298c6b46 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/enableprocessor/AsyncEnableProcessor.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/enableprocessor/AsyncEnableProcessor.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncEnableProcessor() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       EnableProcessorRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/enableprocessor/AsyncEnableProcessorLRO.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/enableprocessor/AsyncEnableProcessorLRO.java
index a6c657000705..25f666409877 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/enableprocessor/AsyncEnableProcessorLRO.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/enableprocessor/AsyncEnableProcessorLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncEnableProcessorLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       EnableProcessorRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/enableprocessor/SyncEnableProcessor.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/enableprocessor/SyncEnableProcessor.java
index d27df039d580..9c9a2228ef41 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/enableprocessor/SyncEnableProcessor.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/enableprocessor/SyncEnableProcessor.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncEnableProcessor() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       EnableProcessorRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/fetchprocessortypes/AsyncFetchProcessorTypes.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/fetchprocessortypes/AsyncFetchProcessorTypes.java
index 4c979fa1d35c..afec349a19ba 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/fetchprocessortypes/AsyncFetchProcessorTypes.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/fetchprocessortypes/AsyncFetchProcessorTypes.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncFetchProcessorTypes() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       FetchProcessorTypesRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypes.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypes.java
index 2197a2fcc17a..a553124321dd 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypes.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypes.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncFetchProcessorTypes() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       FetchProcessorTypesRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypesLocationname.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypesLocationname.java
index 6525992b5065..3fa9c25c3197 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypesLocationname.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypesLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncFetchProcessorTypesLocationname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypesString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypesString.java
index 31646673faf8..800a797c85ac 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypesString.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypesString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncFetchProcessorTypesString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getlocation/AsyncGetLocation.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getlocation/AsyncGetLocation.java
index 884320510274..d8afe3856e0e 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getlocation/AsyncGetLocation.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getlocation/AsyncGetLocation.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetLocation() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getlocation/SyncGetLocation.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getlocation/SyncGetLocation.java
index 7fed42406052..ff2bcee828be 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getlocation/SyncGetLocation.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getlocation/SyncGetLocation.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetLocation() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessor/AsyncGetProcessor.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessor/AsyncGetProcessor.java
index b3d3d5cbcd07..d0b36b307369 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessor/AsyncGetProcessor.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessor/AsyncGetProcessor.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetProcessor() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       GetProcessorRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessor/SyncGetProcessor.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessor/SyncGetProcessor.java
index 5c738492e8bf..971d9a944023 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessor/SyncGetProcessor.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessor/SyncGetProcessor.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetProcessor() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       GetProcessorRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessor/SyncGetProcessorProcessorname.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessor/SyncGetProcessorProcessorname.java
index 1063d3248af9..0fca817e1cb2 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessor/SyncGetProcessorProcessorname.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessor/SyncGetProcessorProcessorname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetProcessorProcessorname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ProcessorName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessor/SyncGetProcessorString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessor/SyncGetProcessorString.java
index 3ae6f8809f24..0fc633d8311b 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessor/SyncGetProcessorString.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessor/SyncGetProcessorString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetProcessorString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString();
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessorversion/AsyncGetProcessorVersion.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessorversion/AsyncGetProcessorVersion.java
index f3292848fbdc..75b771f6a071 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessorversion/AsyncGetProcessorVersion.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessorversion/AsyncGetProcessorVersion.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetProcessorVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       GetProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessorversion/SyncGetProcessorVersion.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessorversion/SyncGetProcessorVersion.java
index d1f8d76f6d8c..465f06cafeb9 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessorversion/SyncGetProcessorVersion.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessorversion/SyncGetProcessorVersion.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetProcessorVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       GetProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessorversion/SyncGetProcessorVersionProcessorversionname.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessorversion/SyncGetProcessorVersionProcessorversionname.java
index 28276defd581..9a533f0d3dc3 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessorversion/SyncGetProcessorVersionProcessorversionname.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessorversion/SyncGetProcessorVersionProcessorversionname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetProcessorVersionProcessorversionname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ProcessorVersionName name =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessorversion/SyncGetProcessorVersionString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessorversion/SyncGetProcessorVersionString.java
index 2b12b11c34ad..83b1a7ae0144 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessorversion/SyncGetProcessorVersionString.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/getprocessorversion/SyncGetProcessorVersionString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetProcessorVersionString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String name =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listlocations/AsyncListLocations.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listlocations/AsyncListLocations.java
index 7d129a687031..e1cc5f1c84ba 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listlocations/AsyncListLocations.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listlocations/AsyncListLocations.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListLocations() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ListLocationsRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listlocations/AsyncListLocationsPaged.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listlocations/AsyncListLocationsPaged.java
index f2ac478ac35b..f3eb7e69ed81 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listlocations/AsyncListLocationsPaged.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listlocations/AsyncListLocationsPaged.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListLocationsPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ListLocationsRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listlocations/SyncListLocations.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listlocations/SyncListLocations.java
index 874bb39f4b20..e4b5873c6f6f 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listlocations/SyncListLocations.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listlocations/SyncListLocations.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListLocations() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ListLocationsRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessors/AsyncListProcessors.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessors/AsyncListProcessors.java
index 18bb4e2ba569..5e766999da1c 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessors/AsyncListProcessors.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessors/AsyncListProcessors.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListProcessors() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ListProcessorsRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessors/AsyncListProcessorsPaged.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessors/AsyncListProcessorsPaged.java
index 8f4550b3f806..a9c39c228543 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessors/AsyncListProcessorsPaged.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessors/AsyncListProcessorsPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListProcessorsPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ListProcessorsRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessors/SyncListProcessors.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessors/SyncListProcessors.java
index 8f24c8abb518..fb001c92b39e 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessors/SyncListProcessors.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessors/SyncListProcessors.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListProcessors() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ListProcessorsRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessors/SyncListProcessorsLocationname.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessors/SyncListProcessorsLocationname.java
index 99c4bc4b8fbe..e57f71e898a0 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessors/SyncListProcessorsLocationname.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessors/SyncListProcessorsLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListProcessorsLocationname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessors/SyncListProcessorsString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessors/SyncListProcessorsString.java
index 416f72567f70..a91e3a11dd03 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessors/SyncListProcessorsString.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessors/SyncListProcessorsString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListProcessorsString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessortypes/AsyncListProcessorTypes.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessortypes/AsyncListProcessorTypes.java
index 75c5ea187c39..ee0219713863 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessortypes/AsyncListProcessorTypes.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessortypes/AsyncListProcessorTypes.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListProcessorTypes() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ListProcessorTypesRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessortypes/AsyncListProcessorTypesPaged.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessortypes/AsyncListProcessorTypesPaged.java
index aba09d65d235..f493a7eceb44 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessortypes/AsyncListProcessorTypesPaged.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessortypes/AsyncListProcessorTypesPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListProcessorTypesPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ListProcessorTypesRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessortypes/SyncListProcessorTypes.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessortypes/SyncListProcessorTypes.java
index da8e0b43825f..5a9bedab6ec1 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessortypes/SyncListProcessorTypes.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessortypes/SyncListProcessorTypes.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListProcessorTypes() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ListProcessorTypesRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessortypes/SyncListProcessorTypesLocationname.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessortypes/SyncListProcessorTypesLocationname.java
index ce9dc2c61b92..b3744085ec0b 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessortypes/SyncListProcessorTypesLocationname.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessortypes/SyncListProcessorTypesLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListProcessorTypesLocationname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessortypes/SyncListProcessorTypesString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessortypes/SyncListProcessorTypesString.java
index 7289715ca861..0845a9d9a5b5 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessortypes/SyncListProcessorTypesString.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessortypes/SyncListProcessorTypesString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListProcessorTypesString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessorversions/AsyncListProcessorVersions.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessorversions/AsyncListProcessorVersions.java
index 9f943ac68efe..a594934d8e72 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessorversions/AsyncListProcessorVersions.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessorversions/AsyncListProcessorVersions.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListProcessorVersions() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ListProcessorVersionsRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessorversions/AsyncListProcessorVersionsPaged.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessorversions/AsyncListProcessorVersionsPaged.java
index ff81ea27b8e3..e2e6b2a37d4a 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessorversions/AsyncListProcessorVersionsPaged.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessorversions/AsyncListProcessorVersionsPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListProcessorVersionsPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ListProcessorVersionsRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessorversions/SyncListProcessorVersions.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessorversions/SyncListProcessorVersions.java
index 25c70d930e4e..a1bcd89fbcb8 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessorversions/SyncListProcessorVersions.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessorversions/SyncListProcessorVersions.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListProcessorVersions() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ListProcessorVersionsRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessorversions/SyncListProcessorVersionsProcessorname.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessorversions/SyncListProcessorVersionsProcessorname.java
index 38c2e742324e..df6ae7e1cdea 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessorversions/SyncListProcessorVersionsProcessorname.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessorversions/SyncListProcessorVersionsProcessorname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListProcessorVersionsProcessorname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ProcessorName parent = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessorversions/SyncListProcessorVersionsString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessorversions/SyncListProcessorVersionsString.java
index f134a2dd063f..df2a12d2ee0b 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessorversions/SyncListProcessorVersionsString.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/listprocessorversions/SyncListProcessorVersionsString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListProcessorVersionsString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String parent = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString();
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/processdocument/AsyncProcessDocument.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/processdocument/AsyncProcessDocument.java
index 76f0ea744e22..98ba6d18a53a 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/processdocument/AsyncProcessDocument.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/processdocument/AsyncProcessDocument.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncProcessDocument() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ProcessRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/processdocument/SyncProcessDocument.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/processdocument/SyncProcessDocument.java
index fd39dd017d98..b273c2d35723 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/processdocument/SyncProcessDocument.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/processdocument/SyncProcessDocument.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncProcessDocument() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ProcessRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/processdocument/SyncProcessDocumentResourcename.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/processdocument/SyncProcessDocumentResourcename.java
index a13a6e7a560e..74da21fcec6f 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/processdocument/SyncProcessDocumentResourcename.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/processdocument/SyncProcessDocumentResourcename.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncProcessDocumentResourcename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ResourceName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/processdocument/SyncProcessDocumentString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/processdocument/SyncProcessDocumentString.java
index 0c1f42910b3b..557e6f45b6f2 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/processdocument/SyncProcessDocumentString.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/processdocument/SyncProcessDocumentString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncProcessDocumentString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String name = HumanReviewConfigName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString();
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/reviewdocument/AsyncReviewDocument.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/reviewdocument/AsyncReviewDocument.java
index e6654c21324d..fcb718ecb07e 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/reviewdocument/AsyncReviewDocument.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/reviewdocument/AsyncReviewDocument.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncReviewDocument() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ReviewDocumentRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/reviewdocument/AsyncReviewDocumentLRO.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/reviewdocument/AsyncReviewDocumentLRO.java
index 1d3a56dcd29c..dec45d4dc3c6 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/reviewdocument/AsyncReviewDocumentLRO.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/reviewdocument/AsyncReviewDocumentLRO.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncReviewDocumentLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ReviewDocumentRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/reviewdocument/SyncReviewDocument.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/reviewdocument/SyncReviewDocument.java
index ea0a5598c934..77521d3640da 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/reviewdocument/SyncReviewDocument.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/reviewdocument/SyncReviewDocument.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncReviewDocument() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ReviewDocumentRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/reviewdocument/SyncReviewDocumentHumanreviewconfigname.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/reviewdocument/SyncReviewDocumentHumanreviewconfigname.java
index ededd882fbea..8679d81eaf75 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/reviewdocument/SyncReviewDocumentHumanreviewconfigname.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/reviewdocument/SyncReviewDocumentHumanreviewconfigname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncReviewDocumentHumanreviewconfigname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       HumanReviewConfigName humanReviewConfig =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/reviewdocument/SyncReviewDocumentString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/reviewdocument/SyncReviewDocumentString.java
index 97e4a5029433..e68f6a3d4edf 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/reviewdocument/SyncReviewDocumentString.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/reviewdocument/SyncReviewDocumentString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncReviewDocumentString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String humanReviewConfig =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/setdefaultprocessorversion/AsyncSetDefaultProcessorVersion.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/setdefaultprocessorversion/AsyncSetDefaultProcessorVersion.java
index fdc895accf2b..ecae293e21e3 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/setdefaultprocessorversion/AsyncSetDefaultProcessorVersion.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/setdefaultprocessorversion/AsyncSetDefaultProcessorVersion.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSetDefaultProcessorVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       SetDefaultProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/setdefaultprocessorversion/AsyncSetDefaultProcessorVersionLRO.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/setdefaultprocessorversion/AsyncSetDefaultProcessorVersionLRO.java
index e036159a83ed..401689be958b 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/setdefaultprocessorversion/AsyncSetDefaultProcessorVersionLRO.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/setdefaultprocessorversion/AsyncSetDefaultProcessorVersionLRO.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSetDefaultProcessorVersionLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       SetDefaultProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/setdefaultprocessorversion/SyncSetDefaultProcessorVersion.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/setdefaultprocessorversion/SyncSetDefaultProcessorVersion.java
index 46bb58f3f0da..6d2fa05681e5 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/setdefaultprocessorversion/SyncSetDefaultProcessorVersion.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/setdefaultprocessorversion/SyncSetDefaultProcessorVersion.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetDefaultProcessorVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       SetDefaultProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/undeployprocessorversion/AsyncUndeployProcessorVersion.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/undeployprocessorversion/AsyncUndeployProcessorVersion.java
index ea4faef46c78..913c29af07cf 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/undeployprocessorversion/AsyncUndeployProcessorVersion.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/undeployprocessorversion/AsyncUndeployProcessorVersion.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUndeployProcessorVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       UndeployProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/undeployprocessorversion/AsyncUndeployProcessorVersionLRO.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/undeployprocessorversion/AsyncUndeployProcessorVersionLRO.java
index 7282b7000431..e69d7875c0e1 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/undeployprocessorversion/AsyncUndeployProcessorVersionLRO.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/undeployprocessorversion/AsyncUndeployProcessorVersionLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUndeployProcessorVersionLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       UndeployProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/undeployprocessorversion/SyncUndeployProcessorVersion.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/undeployprocessorversion/SyncUndeployProcessorVersion.java
index c05e88f394ef..40201ef6820b 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/undeployprocessorversion/SyncUndeployProcessorVersion.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/undeployprocessorversion/SyncUndeployProcessorVersion.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUndeployProcessorVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       UndeployProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/undeployprocessorversion/SyncUndeployProcessorVersionProcessorversionname.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/undeployprocessorversion/SyncUndeployProcessorVersionProcessorversionname.java
index abf97f0c0fc5..d76bbb9ec24a 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/undeployprocessorversion/SyncUndeployProcessorVersionProcessorversionname.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/undeployprocessorversion/SyncUndeployProcessorVersionProcessorversionname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUndeployProcessorVersionProcessorversionname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ProcessorVersionName name =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/undeployprocessorversion/SyncUndeployProcessorVersionString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/undeployprocessorversion/SyncUndeployProcessorVersionString.java
index ab45c00fa7d4..9646aa13e079 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/undeployprocessorversion/SyncUndeployProcessorVersionString.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/undeployprocessorversion/SyncUndeployProcessorVersionString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUndeployProcessorVersionString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String name =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorservicesettings/processdocument/SyncProcessDocument.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorservicesettings/processdocument/SyncProcessDocument.java
index 32cac420dc1b..e64667bf86af 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorservicesettings/processdocument/SyncProcessDocument.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorservicesettings/processdocument/SyncProcessDocument.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncProcessDocument() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     DocumentProcessorServiceSettings.Builder documentProcessorServiceSettingsBuilder =
         DocumentProcessorServiceSettings.newBuilder();
     documentProcessorServiceSettingsBuilder
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/stub/documentprocessorservicestubsettings/processdocument/SyncProcessDocument.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/stub/documentprocessorservicestubsettings/processdocument/SyncProcessDocument.java
index 34e358e6f8da..bd4ef1a2b18a 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/stub/documentprocessorservicestubsettings/processdocument/SyncProcessDocument.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1/stub/documentprocessorservicestubsettings/processdocument/SyncProcessDocument.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncProcessDocument() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     DocumentProcessorServiceStubSettings.Builder documentProcessorServiceSettingsBuilder =
         DocumentProcessorServiceStubSettings.newBuilder();
     documentProcessorServiceSettingsBuilder
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/batchprocessdocuments/AsyncBatchProcessDocuments.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/batchprocessdocuments/AsyncBatchProcessDocuments.java
index 8f691918dde7..75071b65b1e2 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/batchprocessdocuments/AsyncBatchProcessDocuments.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/batchprocessdocuments/AsyncBatchProcessDocuments.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncBatchProcessDocuments() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
         DocumentUnderstandingServiceClient.create()) {
       BatchProcessDocumentsRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/batchprocessdocuments/AsyncBatchProcessDocumentsLRO.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/batchprocessdocuments/AsyncBatchProcessDocumentsLRO.java
index 9d5a373f071b..87c1891954bc 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/batchprocessdocuments/AsyncBatchProcessDocumentsLRO.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/batchprocessdocuments/AsyncBatchProcessDocumentsLRO.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncBatchProcessDocumentsLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
         DocumentUnderstandingServiceClient.create()) {
       BatchProcessDocumentsRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/batchprocessdocuments/SyncBatchProcessDocuments.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/batchprocessdocuments/SyncBatchProcessDocuments.java
index 91607eb121d9..408f00c70b50 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/batchprocessdocuments/SyncBatchProcessDocuments.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/batchprocessdocuments/SyncBatchProcessDocuments.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncBatchProcessDocuments() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
         DocumentUnderstandingServiceClient.create()) {
       BatchProcessDocumentsRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsListprocessdocumentrequest.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsListprocessdocumentrequest.java
index 53be6028df0b..12e4e3404478 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsListprocessdocumentrequest.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsListprocessdocumentrequest.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncBatchProcessDocumentsListprocessdocumentrequest() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
         DocumentUnderstandingServiceClient.create()) {
       List requests = new ArrayList<>();
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/create/SyncCreateSetCredentialsProvider.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/create/SyncCreateSetCredentialsProvider.java
index c00381717c58..f19ee3a3b4d9 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/create/SyncCreateSetCredentialsProvider.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/create/SyncCreateSetCredentialsProvider.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     DocumentUnderstandingServiceSettings documentUnderstandingServiceSettings =
         DocumentUnderstandingServiceSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/create/SyncCreateSetEndpoint.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/create/SyncCreateSetEndpoint.java
index 160894e13a09..29d9001c8489 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/create/SyncCreateSetEndpoint.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/create/SyncCreateSetEndpoint.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetEndpoint() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     DocumentUnderstandingServiceSettings documentUnderstandingServiceSettings =
         DocumentUnderstandingServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
     DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingservicesettings/batchprocessdocuments/SyncBatchProcessDocuments.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingservicesettings/batchprocessdocuments/SyncBatchProcessDocuments.java
index ff1063cc58af..4a443d22cfaf 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingservicesettings/batchprocessdocuments/SyncBatchProcessDocuments.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingservicesettings/batchprocessdocuments/SyncBatchProcessDocuments.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncBatchProcessDocuments() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     DocumentUnderstandingServiceSettings.Builder documentUnderstandingServiceSettingsBuilder =
         DocumentUnderstandingServiceSettings.newBuilder();
     documentUnderstandingServiceSettingsBuilder
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/stub/documentunderstandingservicestubsettings/batchprocessdocuments/SyncBatchProcessDocuments.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/stub/documentunderstandingservicestubsettings/batchprocessdocuments/SyncBatchProcessDocuments.java
index 1f27c8a72ee1..7813db2a3e3b 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/stub/documentunderstandingservicestubsettings/batchprocessdocuments/SyncBatchProcessDocuments.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta1/stub/documentunderstandingservicestubsettings/batchprocessdocuments/SyncBatchProcessDocuments.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncBatchProcessDocuments() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     DocumentUnderstandingServiceStubSettings.Builder documentUnderstandingServiceSettingsBuilder =
         DocumentUnderstandingServiceStubSettings.newBuilder();
     documentUnderstandingServiceSettingsBuilder
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/batchprocessdocuments/AsyncBatchProcessDocuments.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/batchprocessdocuments/AsyncBatchProcessDocuments.java
index 90026c4f8cae..517e2ba8b5a8 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/batchprocessdocuments/AsyncBatchProcessDocuments.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/batchprocessdocuments/AsyncBatchProcessDocuments.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncBatchProcessDocuments() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
         DocumentUnderstandingServiceClient.create()) {
       BatchProcessDocumentsRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/batchprocessdocuments/AsyncBatchProcessDocumentsLRO.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/batchprocessdocuments/AsyncBatchProcessDocumentsLRO.java
index 5e5936045443..ded3296562b7 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/batchprocessdocuments/AsyncBatchProcessDocumentsLRO.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/batchprocessdocuments/AsyncBatchProcessDocumentsLRO.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncBatchProcessDocumentsLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
         DocumentUnderstandingServiceClient.create()) {
       BatchProcessDocumentsRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/batchprocessdocuments/SyncBatchProcessDocuments.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/batchprocessdocuments/SyncBatchProcessDocuments.java
index a78ef890b0b6..a0fe41d2022b 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/batchprocessdocuments/SyncBatchProcessDocuments.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/batchprocessdocuments/SyncBatchProcessDocuments.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncBatchProcessDocuments() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
         DocumentUnderstandingServiceClient.create()) {
       BatchProcessDocumentsRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsListprocessdocumentrequest.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsListprocessdocumentrequest.java
index 1c83d28c9916..a1b8536af0e5 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsListprocessdocumentrequest.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsListprocessdocumentrequest.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncBatchProcessDocumentsListprocessdocumentrequest() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
         DocumentUnderstandingServiceClient.create()) {
       List requests = new ArrayList<>();
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/create/SyncCreateSetCredentialsProvider.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/create/SyncCreateSetCredentialsProvider.java
index bb40e3797858..f98a68e8f12d 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/create/SyncCreateSetCredentialsProvider.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/create/SyncCreateSetCredentialsProvider.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     DocumentUnderstandingServiceSettings documentUnderstandingServiceSettings =
         DocumentUnderstandingServiceSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/create/SyncCreateSetEndpoint.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/create/SyncCreateSetEndpoint.java
index 0ec97dc43606..df3ae3acbd19 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/create/SyncCreateSetEndpoint.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/create/SyncCreateSetEndpoint.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetEndpoint() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     DocumentUnderstandingServiceSettings documentUnderstandingServiceSettings =
         DocumentUnderstandingServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
     DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/processdocument/AsyncProcessDocument.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/processdocument/AsyncProcessDocument.java
index 4d8a080a5c32..d15cdc23ace1 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/processdocument/AsyncProcessDocument.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/processdocument/AsyncProcessDocument.java
@@ -36,8 +36,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncProcessDocument() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
         DocumentUnderstandingServiceClient.create()) {
       ProcessDocumentRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/processdocument/SyncProcessDocument.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/processdocument/SyncProcessDocument.java
index 2368f200cf3a..c41cc8d75af7 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/processdocument/SyncProcessDocument.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/processdocument/SyncProcessDocument.java
@@ -35,8 +35,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncProcessDocument() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient =
         DocumentUnderstandingServiceClient.create()) {
       ProcessDocumentRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingservicesettings/processdocument/SyncProcessDocument.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingservicesettings/processdocument/SyncProcessDocument.java
index 56cff858733a..a3dc5e3aeaea 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingservicesettings/processdocument/SyncProcessDocument.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingservicesettings/processdocument/SyncProcessDocument.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncProcessDocument() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     DocumentUnderstandingServiceSettings.Builder documentUnderstandingServiceSettingsBuilder =
         DocumentUnderstandingServiceSettings.newBuilder();
     documentUnderstandingServiceSettingsBuilder
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/stub/documentunderstandingservicestubsettings/processdocument/SyncProcessDocument.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/stub/documentunderstandingservicestubsettings/processdocument/SyncProcessDocument.java
index 119a117216c9..35b1d06b0c13 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/stub/documentunderstandingservicestubsettings/processdocument/SyncProcessDocument.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta2/stub/documentunderstandingservicestubsettings/processdocument/SyncProcessDocument.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncProcessDocument() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     DocumentUnderstandingServiceStubSettings.Builder documentUnderstandingServiceSettingsBuilder =
         DocumentUnderstandingServiceStubSettings.newBuilder();
     documentUnderstandingServiceSettingsBuilder
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/batchprocessdocuments/AsyncBatchProcessDocuments.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/batchprocessdocuments/AsyncBatchProcessDocuments.java
index d4d23ca45840..eea14e919c2b 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/batchprocessdocuments/AsyncBatchProcessDocuments.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/batchprocessdocuments/AsyncBatchProcessDocuments.java
@@ -33,8 +33,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncBatchProcessDocuments() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       BatchProcessRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/batchprocessdocuments/AsyncBatchProcessDocumentsLRO.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/batchprocessdocuments/AsyncBatchProcessDocumentsLRO.java
index de56a225d3e8..a01338592ba8 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/batchprocessdocuments/AsyncBatchProcessDocumentsLRO.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/batchprocessdocuments/AsyncBatchProcessDocumentsLRO.java
@@ -34,8 +34,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncBatchProcessDocumentsLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       BatchProcessRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocuments.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocuments.java
index fe2f497ca97a..f2ebdee518ae 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocuments.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocuments.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncBatchProcessDocuments() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       BatchProcessRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsResourcename.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsResourcename.java
index 2b95a7c0b94f..4894a709927d 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsResourcename.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsResourcename.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncBatchProcessDocumentsResourcename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ResourceName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsString.java
index 5d9757f05cd4..514774aba000 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsString.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncBatchProcessDocumentsString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String name = HumanReviewConfigName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString();
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/create/SyncCreateSetCredentialsProvider.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/create/SyncCreateSetCredentialsProvider.java
index e8e8d539c497..90879923af0f 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/create/SyncCreateSetCredentialsProvider.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/create/SyncCreateSetCredentialsProvider.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     DocumentProcessorServiceSettings documentProcessorServiceSettings =
         DocumentProcessorServiceSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/create/SyncCreateSetCredentialsProvider1.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/create/SyncCreateSetCredentialsProvider1.java
index 6f31ddc7d517..a07e704d4f55 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/create/SyncCreateSetCredentialsProvider1.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider1() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     DocumentProcessorServiceSettings documentProcessorServiceSettings =
         DocumentProcessorServiceSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/create/SyncCreateSetEndpoint.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/create/SyncCreateSetEndpoint.java
index 08226d2bdb63..c186ef8b4c2d 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/create/SyncCreateSetEndpoint.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/create/SyncCreateSetEndpoint.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetEndpoint() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     DocumentProcessorServiceSettings documentProcessorServiceSettings =
         DocumentProcessorServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
     DocumentProcessorServiceClient documentProcessorServiceClient =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/createprocessor/AsyncCreateProcessor.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/createprocessor/AsyncCreateProcessor.java
index 9b8cc5462cf9..d744a2eb6773 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/createprocessor/AsyncCreateProcessor.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/createprocessor/AsyncCreateProcessor.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateProcessor() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       CreateProcessorRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/createprocessor/SyncCreateProcessor.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/createprocessor/SyncCreateProcessor.java
index f5120dc5804a..aa57726c9068 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/createprocessor/SyncCreateProcessor.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/createprocessor/SyncCreateProcessor.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateProcessor() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       CreateProcessorRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/createprocessor/SyncCreateProcessorLocationnameProcessor.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/createprocessor/SyncCreateProcessorLocationnameProcessor.java
index ef1ba3c4d327..213b4becfe99 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/createprocessor/SyncCreateProcessorLocationnameProcessor.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/createprocessor/SyncCreateProcessorLocationnameProcessor.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateProcessorLocationnameProcessor() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/createprocessor/SyncCreateProcessorStringProcessor.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/createprocessor/SyncCreateProcessorStringProcessor.java
index 351618292174..80f041938e86 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/createprocessor/SyncCreateProcessorStringProcessor.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/createprocessor/SyncCreateProcessorStringProcessor.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateProcessorStringProcessor() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessor/AsyncDeleteProcessor.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessor/AsyncDeleteProcessor.java
index c3a8d3e793e3..205b32f29f01 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessor/AsyncDeleteProcessor.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessor/AsyncDeleteProcessor.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteProcessor() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       DeleteProcessorRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessor/AsyncDeleteProcessorLRO.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessor/AsyncDeleteProcessorLRO.java
index c37049b12726..4ca094f87606 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessor/AsyncDeleteProcessorLRO.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessor/AsyncDeleteProcessorLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteProcessorLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       DeleteProcessorRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessor.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessor.java
index 79530313a3d8..0c4280a947d7 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessor.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessor.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteProcessor() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       DeleteProcessorRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessorProcessorname.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessorProcessorname.java
index c94f754def10..64ae756bc5c6 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessorProcessorname.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessorProcessorname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteProcessorProcessorname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ProcessorName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessorString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessorString.java
index 2f093c1fcea3..02076dec712e 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessorString.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessorString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteProcessorString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString();
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessorversion/AsyncDeleteProcessorVersion.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessorversion/AsyncDeleteProcessorVersion.java
index 06cafc314085..2dd1b12a6496 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessorversion/AsyncDeleteProcessorVersion.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessorversion/AsyncDeleteProcessorVersion.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteProcessorVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       DeleteProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessorversion/AsyncDeleteProcessorVersionLRO.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessorversion/AsyncDeleteProcessorVersionLRO.java
index 87cc390f805b..7495e324d430 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessorversion/AsyncDeleteProcessorVersionLRO.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessorversion/AsyncDeleteProcessorVersionLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteProcessorVersionLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       DeleteProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessorversion/SyncDeleteProcessorVersion.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessorversion/SyncDeleteProcessorVersion.java
index 6fb1eaabfe06..f4144b348dfa 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessorversion/SyncDeleteProcessorVersion.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessorversion/SyncDeleteProcessorVersion.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteProcessorVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       DeleteProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessorversion/SyncDeleteProcessorVersionProcessorversionname.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessorversion/SyncDeleteProcessorVersionProcessorversionname.java
index 996ec24c7f49..33bf3ff352f7 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessorversion/SyncDeleteProcessorVersionProcessorversionname.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessorversion/SyncDeleteProcessorVersionProcessorversionname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteProcessorVersionProcessorversionname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ProcessorVersionName name =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessorversion/SyncDeleteProcessorVersionString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessorversion/SyncDeleteProcessorVersionString.java
index 577503112038..fe75b91e7060 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessorversion/SyncDeleteProcessorVersionString.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessorversion/SyncDeleteProcessorVersionString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteProcessorVersionString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String name =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deployprocessorversion/AsyncDeployProcessorVersion.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deployprocessorversion/AsyncDeployProcessorVersion.java
index eac54ab26a54..31fc637e2410 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deployprocessorversion/AsyncDeployProcessorVersion.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deployprocessorversion/AsyncDeployProcessorVersion.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeployProcessorVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       DeployProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deployprocessorversion/AsyncDeployProcessorVersionLRO.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deployprocessorversion/AsyncDeployProcessorVersionLRO.java
index 844fd7f2eec0..f95c3ca9a677 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deployprocessorversion/AsyncDeployProcessorVersionLRO.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deployprocessorversion/AsyncDeployProcessorVersionLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeployProcessorVersionLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       DeployProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deployprocessorversion/SyncDeployProcessorVersion.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deployprocessorversion/SyncDeployProcessorVersion.java
index 7d82c576bf9c..3b6d2bc86c7f 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deployprocessorversion/SyncDeployProcessorVersion.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deployprocessorversion/SyncDeployProcessorVersion.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeployProcessorVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       DeployProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deployprocessorversion/SyncDeployProcessorVersionProcessorversionname.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deployprocessorversion/SyncDeployProcessorVersionProcessorversionname.java
index 696e2484e936..f20a2627be57 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deployprocessorversion/SyncDeployProcessorVersionProcessorversionname.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deployprocessorversion/SyncDeployProcessorVersionProcessorversionname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeployProcessorVersionProcessorversionname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ProcessorVersionName name =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deployprocessorversion/SyncDeployProcessorVersionString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deployprocessorversion/SyncDeployProcessorVersionString.java
index 7f2cbd8a9457..ebee50bd1401 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deployprocessorversion/SyncDeployProcessorVersionString.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deployprocessorversion/SyncDeployProcessorVersionString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeployProcessorVersionString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String name =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/disableprocessor/AsyncDisableProcessor.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/disableprocessor/AsyncDisableProcessor.java
index 883cf82f3e96..dfa320ed3156 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/disableprocessor/AsyncDisableProcessor.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/disableprocessor/AsyncDisableProcessor.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDisableProcessor() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       DisableProcessorRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/disableprocessor/AsyncDisableProcessorLRO.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/disableprocessor/AsyncDisableProcessorLRO.java
index 2ece111280f7..7595a3e8a13b 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/disableprocessor/AsyncDisableProcessorLRO.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/disableprocessor/AsyncDisableProcessorLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDisableProcessorLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       DisableProcessorRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/disableprocessor/SyncDisableProcessor.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/disableprocessor/SyncDisableProcessor.java
index 6ee72eb58f78..3b797ccca291 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/disableprocessor/SyncDisableProcessor.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/disableprocessor/SyncDisableProcessor.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDisableProcessor() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       DisableProcessorRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/enableprocessor/AsyncEnableProcessor.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/enableprocessor/AsyncEnableProcessor.java
index db78cce351be..757492a6c9b3 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/enableprocessor/AsyncEnableProcessor.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/enableprocessor/AsyncEnableProcessor.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncEnableProcessor() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       EnableProcessorRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/enableprocessor/AsyncEnableProcessorLRO.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/enableprocessor/AsyncEnableProcessorLRO.java
index 77f9cd315607..8e4a69fe9e30 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/enableprocessor/AsyncEnableProcessorLRO.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/enableprocessor/AsyncEnableProcessorLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncEnableProcessorLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       EnableProcessorRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/enableprocessor/SyncEnableProcessor.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/enableprocessor/SyncEnableProcessor.java
index aeaf467b3f9c..759f4cac2a4f 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/enableprocessor/SyncEnableProcessor.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/enableprocessor/SyncEnableProcessor.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncEnableProcessor() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       EnableProcessorRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/fetchprocessortypes/AsyncFetchProcessorTypes.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/fetchprocessortypes/AsyncFetchProcessorTypes.java
index b68010435fe8..8635afc546d2 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/fetchprocessortypes/AsyncFetchProcessorTypes.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/fetchprocessortypes/AsyncFetchProcessorTypes.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncFetchProcessorTypes() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       FetchProcessorTypesRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypes.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypes.java
index f66ae8cfa3cf..3112395455d2 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypes.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypes.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncFetchProcessorTypes() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       FetchProcessorTypesRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypesLocationname.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypesLocationname.java
index 574e8f432d9e..2dc69e79ffec 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypesLocationname.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypesLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncFetchProcessorTypesLocationname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypesString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypesString.java
index 921399887765..b85ceea51e15 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypesString.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypesString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncFetchProcessorTypesString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getlocation/AsyncGetLocation.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getlocation/AsyncGetLocation.java
index 8f8331c3e235..da884426960d 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getlocation/AsyncGetLocation.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getlocation/AsyncGetLocation.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetLocation() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getlocation/SyncGetLocation.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getlocation/SyncGetLocation.java
index b34e545cb666..2ab8b9ba89eb 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getlocation/SyncGetLocation.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getlocation/SyncGetLocation.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetLocation() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessor/AsyncGetProcessor.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessor/AsyncGetProcessor.java
index 1f2533dc951a..94fd120c864d 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessor/AsyncGetProcessor.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessor/AsyncGetProcessor.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetProcessor() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       GetProcessorRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessor/SyncGetProcessor.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessor/SyncGetProcessor.java
index 0e8af6bac2cb..3b97fee183e7 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessor/SyncGetProcessor.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessor/SyncGetProcessor.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetProcessor() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       GetProcessorRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessor/SyncGetProcessorProcessorname.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessor/SyncGetProcessorProcessorname.java
index 9ef141449dda..0e702e701939 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessor/SyncGetProcessorProcessorname.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessor/SyncGetProcessorProcessorname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetProcessorProcessorname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ProcessorName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessor/SyncGetProcessorString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessor/SyncGetProcessorString.java
index fbbcf362e7bd..5994dd9de120 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessor/SyncGetProcessorString.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessor/SyncGetProcessorString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetProcessorString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString();
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessorversion/AsyncGetProcessorVersion.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessorversion/AsyncGetProcessorVersion.java
index ca8b39bad6c6..e55e007e2631 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessorversion/AsyncGetProcessorVersion.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessorversion/AsyncGetProcessorVersion.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetProcessorVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       GetProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessorversion/SyncGetProcessorVersion.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessorversion/SyncGetProcessorVersion.java
index fea4d2c037ce..58891c4dc179 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessorversion/SyncGetProcessorVersion.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessorversion/SyncGetProcessorVersion.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetProcessorVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       GetProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessorversion/SyncGetProcessorVersionProcessorversionname.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessorversion/SyncGetProcessorVersionProcessorversionname.java
index c2ab1dd70fc1..083b93694985 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessorversion/SyncGetProcessorVersionProcessorversionname.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessorversion/SyncGetProcessorVersionProcessorversionname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetProcessorVersionProcessorversionname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ProcessorVersionName name =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessorversion/SyncGetProcessorVersionString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessorversion/SyncGetProcessorVersionString.java
index 66bf637c88f2..5011f63bc465 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessorversion/SyncGetProcessorVersionString.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/getprocessorversion/SyncGetProcessorVersionString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetProcessorVersionString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String name =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listlocations/AsyncListLocations.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listlocations/AsyncListLocations.java
index a4a824ebdc70..1dad0d3cc242 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listlocations/AsyncListLocations.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listlocations/AsyncListLocations.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListLocations() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ListLocationsRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listlocations/AsyncListLocationsPaged.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listlocations/AsyncListLocationsPaged.java
index 416b95fc1eef..2c898654e0d8 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listlocations/AsyncListLocationsPaged.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listlocations/AsyncListLocationsPaged.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListLocationsPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ListLocationsRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listlocations/SyncListLocations.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listlocations/SyncListLocations.java
index 1b9b8f773a88..5b353aae179b 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listlocations/SyncListLocations.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listlocations/SyncListLocations.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListLocations() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ListLocationsRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessors/AsyncListProcessors.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessors/AsyncListProcessors.java
index c08b7a4acd78..85003fb5a03b 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessors/AsyncListProcessors.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessors/AsyncListProcessors.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListProcessors() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ListProcessorsRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessors/AsyncListProcessorsPaged.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessors/AsyncListProcessorsPaged.java
index 178977378db9..3dc83048b595 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessors/AsyncListProcessorsPaged.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessors/AsyncListProcessorsPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListProcessorsPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ListProcessorsRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessors/SyncListProcessors.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessors/SyncListProcessors.java
index 3c4d5cdb92e2..ca234ef4b0a9 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessors/SyncListProcessors.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessors/SyncListProcessors.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListProcessors() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ListProcessorsRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessors/SyncListProcessorsLocationname.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessors/SyncListProcessorsLocationname.java
index 374de510b35d..4a2727ba377e 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessors/SyncListProcessorsLocationname.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessors/SyncListProcessorsLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListProcessorsLocationname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessors/SyncListProcessorsString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessors/SyncListProcessorsString.java
index 836d3b0a6d19..f8e68d6f1e99 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessors/SyncListProcessorsString.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessors/SyncListProcessorsString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListProcessorsString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessortypes/AsyncListProcessorTypes.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessortypes/AsyncListProcessorTypes.java
index 642e1d477be7..d42b0e8fa3c4 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessortypes/AsyncListProcessorTypes.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessortypes/AsyncListProcessorTypes.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListProcessorTypes() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ListProcessorTypesRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessortypes/AsyncListProcessorTypesPaged.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessortypes/AsyncListProcessorTypesPaged.java
index 74817c657b97..020cfdae54fb 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessortypes/AsyncListProcessorTypesPaged.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessortypes/AsyncListProcessorTypesPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListProcessorTypesPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ListProcessorTypesRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessortypes/SyncListProcessorTypes.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessortypes/SyncListProcessorTypes.java
index 0405e67ccaee..a5ca551b6a60 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessortypes/SyncListProcessorTypes.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessortypes/SyncListProcessorTypes.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListProcessorTypes() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ListProcessorTypesRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessortypes/SyncListProcessorTypesLocationname.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessortypes/SyncListProcessorTypesLocationname.java
index 6784fa2ce6d4..e930953255ba 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessortypes/SyncListProcessorTypesLocationname.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessortypes/SyncListProcessorTypesLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListProcessorTypesLocationname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessortypes/SyncListProcessorTypesString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessortypes/SyncListProcessorTypesString.java
index c6bce525fa47..bd8337052d22 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessortypes/SyncListProcessorTypesString.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessortypes/SyncListProcessorTypesString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListProcessorTypesString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessorversions/AsyncListProcessorVersions.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessorversions/AsyncListProcessorVersions.java
index a9db7dcc0cd9..acc0c02e800c 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessorversions/AsyncListProcessorVersions.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessorversions/AsyncListProcessorVersions.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListProcessorVersions() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ListProcessorVersionsRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessorversions/AsyncListProcessorVersionsPaged.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessorversions/AsyncListProcessorVersionsPaged.java
index b55a28fa3f27..bc33d9c9b40f 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessorversions/AsyncListProcessorVersionsPaged.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessorversions/AsyncListProcessorVersionsPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListProcessorVersionsPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ListProcessorVersionsRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessorversions/SyncListProcessorVersions.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessorversions/SyncListProcessorVersions.java
index 6bf434521465..bd4ee4614591 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessorversions/SyncListProcessorVersions.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessorversions/SyncListProcessorVersions.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListProcessorVersions() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ListProcessorVersionsRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessorversions/SyncListProcessorVersionsProcessorname.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessorversions/SyncListProcessorVersionsProcessorname.java
index 5983f6522126..3c75f9670a87 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessorversions/SyncListProcessorVersionsProcessorname.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessorversions/SyncListProcessorVersionsProcessorname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListProcessorVersionsProcessorname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ProcessorName parent = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessorversions/SyncListProcessorVersionsString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessorversions/SyncListProcessorVersionsString.java
index e1d853e223f5..86c61dcf4484 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessorversions/SyncListProcessorVersionsString.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessorversions/SyncListProcessorVersionsString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListProcessorVersionsString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String parent = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString();
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/processdocument/AsyncProcessDocument.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/processdocument/AsyncProcessDocument.java
index cdb420dcfb58..5d0a3dcb85ad 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/processdocument/AsyncProcessDocument.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/processdocument/AsyncProcessDocument.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncProcessDocument() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ProcessRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/processdocument/SyncProcessDocument.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/processdocument/SyncProcessDocument.java
index b50e72fa646f..9e5e6e4df301 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/processdocument/SyncProcessDocument.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/processdocument/SyncProcessDocument.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncProcessDocument() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ProcessRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/processdocument/SyncProcessDocumentResourcename.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/processdocument/SyncProcessDocumentResourcename.java
index 9cb611032ec5..824bd62bef55 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/processdocument/SyncProcessDocumentResourcename.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/processdocument/SyncProcessDocumentResourcename.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncProcessDocumentResourcename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ResourceName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/processdocument/SyncProcessDocumentString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/processdocument/SyncProcessDocumentString.java
index e4dec8427cb1..e6f5746b11f9 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/processdocument/SyncProcessDocumentString.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/processdocument/SyncProcessDocumentString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncProcessDocumentString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String name = HumanReviewConfigName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString();
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/reviewdocument/AsyncReviewDocument.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/reviewdocument/AsyncReviewDocument.java
index 1c87df559d91..338d0f5dfea2 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/reviewdocument/AsyncReviewDocument.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/reviewdocument/AsyncReviewDocument.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncReviewDocument() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ReviewDocumentRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/reviewdocument/AsyncReviewDocumentLRO.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/reviewdocument/AsyncReviewDocumentLRO.java
index 47dc474fce9d..e8afbf969caa 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/reviewdocument/AsyncReviewDocumentLRO.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/reviewdocument/AsyncReviewDocumentLRO.java
@@ -33,8 +33,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncReviewDocumentLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ReviewDocumentRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/reviewdocument/SyncReviewDocument.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/reviewdocument/SyncReviewDocument.java
index 71c6d18da915..7c1087aeaddc 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/reviewdocument/SyncReviewDocument.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/reviewdocument/SyncReviewDocument.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncReviewDocument() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ReviewDocumentRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/reviewdocument/SyncReviewDocumentHumanreviewconfigname.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/reviewdocument/SyncReviewDocumentHumanreviewconfigname.java
index cc11d1861e52..dd8a49dab7d2 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/reviewdocument/SyncReviewDocumentHumanreviewconfigname.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/reviewdocument/SyncReviewDocumentHumanreviewconfigname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncReviewDocumentHumanreviewconfigname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       HumanReviewConfigName humanReviewConfig =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/reviewdocument/SyncReviewDocumentString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/reviewdocument/SyncReviewDocumentString.java
index 6c10b8600e09..5307ea3d89f3 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/reviewdocument/SyncReviewDocumentString.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/reviewdocument/SyncReviewDocumentString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncReviewDocumentString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String humanReviewConfig =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/setdefaultprocessorversion/AsyncSetDefaultProcessorVersion.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/setdefaultprocessorversion/AsyncSetDefaultProcessorVersion.java
index f505abde352c..cad669c9d406 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/setdefaultprocessorversion/AsyncSetDefaultProcessorVersion.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/setdefaultprocessorversion/AsyncSetDefaultProcessorVersion.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSetDefaultProcessorVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       SetDefaultProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/setdefaultprocessorversion/AsyncSetDefaultProcessorVersionLRO.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/setdefaultprocessorversion/AsyncSetDefaultProcessorVersionLRO.java
index daa47d6f9a11..44b0fdbffde5 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/setdefaultprocessorversion/AsyncSetDefaultProcessorVersionLRO.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/setdefaultprocessorversion/AsyncSetDefaultProcessorVersionLRO.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSetDefaultProcessorVersionLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       SetDefaultProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/setdefaultprocessorversion/SyncSetDefaultProcessorVersion.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/setdefaultprocessorversion/SyncSetDefaultProcessorVersion.java
index d85a63e600f6..ba75c9ddef84 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/setdefaultprocessorversion/SyncSetDefaultProcessorVersion.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/setdefaultprocessorversion/SyncSetDefaultProcessorVersion.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetDefaultProcessorVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       SetDefaultProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/undeployprocessorversion/AsyncUndeployProcessorVersion.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/undeployprocessorversion/AsyncUndeployProcessorVersion.java
index e8ffc8c5adcf..32b65ccfb845 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/undeployprocessorversion/AsyncUndeployProcessorVersion.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/undeployprocessorversion/AsyncUndeployProcessorVersion.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUndeployProcessorVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       UndeployProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/undeployprocessorversion/AsyncUndeployProcessorVersionLRO.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/undeployprocessorversion/AsyncUndeployProcessorVersionLRO.java
index 3e6a46c7bc2e..3a8cc2ac3547 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/undeployprocessorversion/AsyncUndeployProcessorVersionLRO.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/undeployprocessorversion/AsyncUndeployProcessorVersionLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUndeployProcessorVersionLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       UndeployProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/undeployprocessorversion/SyncUndeployProcessorVersion.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/undeployprocessorversion/SyncUndeployProcessorVersion.java
index 153b4414fcac..9cd3e1544c69 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/undeployprocessorversion/SyncUndeployProcessorVersion.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/undeployprocessorversion/SyncUndeployProcessorVersion.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUndeployProcessorVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       UndeployProcessorVersionRequest request =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/undeployprocessorversion/SyncUndeployProcessorVersionProcessorversionname.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/undeployprocessorversion/SyncUndeployProcessorVersionProcessorversionname.java
index 354e99f40c21..557b5ab89ce2 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/undeployprocessorversion/SyncUndeployProcessorVersionProcessorversionname.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/undeployprocessorversion/SyncUndeployProcessorVersionProcessorversionname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUndeployProcessorVersionProcessorversionname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       ProcessorVersionName name =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/undeployprocessorversion/SyncUndeployProcessorVersionString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/undeployprocessorversion/SyncUndeployProcessorVersionString.java
index 51aab1a126e3..0f07b5d0fd17 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/undeployprocessorversion/SyncUndeployProcessorVersionString.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/undeployprocessorversion/SyncUndeployProcessorVersionString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUndeployProcessorVersionString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (DocumentProcessorServiceClient documentProcessorServiceClient =
         DocumentProcessorServiceClient.create()) {
       String name =
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservicesettings/processdocument/SyncProcessDocument.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservicesettings/processdocument/SyncProcessDocument.java
index 93d81df15e5a..1f1abdd94523 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservicesettings/processdocument/SyncProcessDocument.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservicesettings/processdocument/SyncProcessDocument.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncProcessDocument() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     DocumentProcessorServiceSettings.Builder documentProcessorServiceSettingsBuilder =
         DocumentProcessorServiceSettings.newBuilder();
     documentProcessorServiceSettingsBuilder
diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/stub/documentprocessorservicestubsettings/processdocument/SyncProcessDocument.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/stub/documentprocessorservicestubsettings/processdocument/SyncProcessDocument.java
index f36b505d25b7..cc6848be501d 100644
--- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/stub/documentprocessorservicestubsettings/processdocument/SyncProcessDocument.java
+++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/stub/documentprocessorservicestubsettings/processdocument/SyncProcessDocument.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncProcessDocument() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     DocumentProcessorServiceStubSettings.Builder documentProcessorServiceSettingsBuilder =
         DocumentProcessorServiceStubSettings.newBuilder();
     documentProcessorServiceSettingsBuilder