From fcc508bad3aa4fcad813cab9621ef40138c2c1ea Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 9 Sep 2022 16:28:42 +0000 Subject: [PATCH] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#276) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 472750037 Source-Link: https://github.com/googleapis/googleapis/commit/88f2ea3f53b9712f2e04f28f06210f6f77fa7e24 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9 --- .../metastore/v1/DataprocMetastoreClient.java | 518 +++++++++++++----- .../v1/DataprocMetastoreSettings.java | 12 +- .../cloud/metastore/v1/package-info.java | 7 +- .../stub/DataprocMetastoreStubSettings.java | 12 +- .../stub/HttpJsonDataprocMetastoreStub.java | 17 +- .../v1alpha/DataprocMetastoreClient.java | 518 +++++++++++++----- .../v1alpha/DataprocMetastoreSettings.java | 12 +- .../cloud/metastore/v1alpha/package-info.java | 7 +- .../stub/DataprocMetastoreStubSettings.java | 12 +- .../stub/HttpJsonDataprocMetastoreStub.java | 17 +- .../v1beta/DataprocMetastoreClient.java | 518 +++++++++++++----- .../v1beta/DataprocMetastoreSettings.java | 12 +- .../cloud/metastore/v1beta/package-info.java | 7 +- .../stub/DataprocMetastoreStubSettings.java | 12 +- .../stub/HttpJsonDataprocMetastoreStub.java | 17 +- 15 files changed, 1191 insertions(+), 507 deletions(-) diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreClient.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreClient.java index 4136998c6018..28e94193e5a4 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreClient.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreClient.java @@ -63,8 +63,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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
  *   ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
  *   Service response = dataprocMetastoreClient.getService(name);
@@ -101,8 +104,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
  * DataprocMetastoreSettings dataprocMetastoreSettings =
  *     DataprocMetastoreSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -114,8 +120,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
  * DataprocMetastoreSettings dataprocMetastoreSettings =
  *     DataprocMetastoreSettings.newBuilder().setEndpoint(myEndpoint).build();
  * DataprocMetastoreClient dataprocMetastoreClient =
@@ -126,8 +135,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
  * DataprocMetastoreSettings dataprocMetastoreSettings =
  *     DataprocMetastoreSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -221,8 +233,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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Service element : dataprocMetastoreClient.listServices(parent).iterateAll()) {
@@ -251,8 +266,11 @@ public final ListServicesPagedResponse listServices(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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Service element : dataprocMetastoreClient.listServices(parent).iterateAll()) {
@@ -278,8 +296,11 @@ public final ListServicesPagedResponse listServices(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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListServicesRequest request =
    *       ListServicesRequest.newBuilder()
@@ -309,8 +330,11 @@ public final ListServicesPagedResponse listServices(ListServicesRequest 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListServicesRequest request =
    *       ListServicesRequest.newBuilder()
@@ -341,8 +365,11 @@ public final ListServicesPagedResponse listServices(ListServicesRequest 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListServicesRequest request =
    *       ListServicesRequest.newBuilder()
@@ -379,8 +406,11 @@ public final UnaryCallable listServic
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
    *   Service response = dataprocMetastoreClient.getService(name);
@@ -405,8 +435,11 @@ public final Service getService(ServiceName 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
    *   Service response = dataprocMetastoreClient.getService(name);
@@ -430,8 +463,11 @@ public final Service getService(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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   GetServiceRequest request =
    *       GetServiceRequest.newBuilder()
@@ -455,8 +491,11 @@ public final Service getService(GetServiceRequest 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   GetServiceRequest request =
    *       GetServiceRequest.newBuilder()
@@ -479,8 +518,11 @@ public final UnaryCallable getServiceCallable() {
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Service service = Service.newBuilder().build();
@@ -519,8 +561,11 @@ public final OperationFuture createServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Service service = Service.newBuilder().build();
@@ -559,8 +604,11 @@ public final OperationFuture createServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateServiceRequest request =
    *       CreateServiceRequest.newBuilder()
@@ -588,8 +636,11 @@ public final OperationFuture createServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateServiceRequest request =
    *       CreateServiceRequest.newBuilder()
@@ -617,8 +668,11 @@ public final OperationFuture createServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateServiceRequest request =
    *       CreateServiceRequest.newBuilder()
@@ -645,8 +699,11 @@ public final UnaryCallable createServiceCallabl
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   Service service = Service.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -678,8 +735,11 @@ public final OperationFuture updateServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   UpdateServiceRequest request =
    *       UpdateServiceRequest.newBuilder()
@@ -706,8 +766,11 @@ public final OperationFuture updateServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   UpdateServiceRequest request =
    *       UpdateServiceRequest.newBuilder()
@@ -734,8 +797,11 @@ public final OperationFuture updateServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   UpdateServiceRequest request =
    *       UpdateServiceRequest.newBuilder()
@@ -761,8 +827,11 @@ public final UnaryCallable updateServiceCallabl
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
    *   dataprocMetastoreClient.deleteServiceAsync(name).get();
@@ -787,8 +856,11 @@ public final OperationFuture deleteServiceAsync(Servic
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
    *   dataprocMetastoreClient.deleteServiceAsync(name).get();
@@ -812,8 +884,11 @@ public final OperationFuture deleteServiceAsync(String
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   DeleteServiceRequest request =
    *       DeleteServiceRequest.newBuilder()
@@ -839,8 +914,11 @@ public final OperationFuture deleteServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   DeleteServiceRequest request =
    *       DeleteServiceRequest.newBuilder()
@@ -866,8 +944,11 @@ public final OperationFuture deleteServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   DeleteServiceRequest request =
    *       DeleteServiceRequest.newBuilder()
@@ -892,8 +973,11 @@ public final UnaryCallable deleteServiceCallabl
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
    *   for (MetadataImport element :
@@ -923,8 +1007,11 @@ public final ListMetadataImportsPagedResponse listMetadataImports(ServiceName pa
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
    *   for (MetadataImport element :
@@ -952,8 +1039,11 @@ public final ListMetadataImportsPagedResponse listMetadataImports(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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListMetadataImportsRequest request =
    *       ListMetadataImportsRequest.newBuilder()
@@ -985,8 +1075,11 @@ public final ListMetadataImportsPagedResponse listMetadataImports(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListMetadataImportsRequest request =
    *       ListMetadataImportsRequest.newBuilder()
@@ -1017,8 +1110,11 @@ public final ListMetadataImportsPagedResponse listMetadataImports(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListMetadataImportsRequest request =
    *       ListMetadataImportsRequest.newBuilder()
@@ -1056,8 +1152,11 @@ public final ListMetadataImportsPagedResponse listMetadataImports(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   MetadataImportName name =
    *       MetadataImportName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[METADATA_IMPORT]");
@@ -1085,8 +1184,11 @@ public final MetadataImport getMetadataImport(MetadataImportName 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String name =
    *       MetadataImportName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[METADATA_IMPORT]")
@@ -1112,8 +1214,11 @@ public final MetadataImport getMetadataImport(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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   GetMetadataImportRequest request =
    *       GetMetadataImportRequest.newBuilder()
@@ -1139,8 +1244,11 @@ public final MetadataImport getMetadataImport(GetMetadataImportRequest 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   GetMetadataImportRequest request =
    *       GetMetadataImportRequest.newBuilder()
@@ -1166,8 +1274,11 @@ public final UnaryCallable getMetadata
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
    *   MetadataImport metadataImport = MetadataImport.newBuilder().build();
@@ -1209,8 +1320,11 @@ public final OperationFuture createMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
    *   MetadataImport metadataImport = MetadataImport.newBuilder().build();
@@ -1252,8 +1366,11 @@ public final OperationFuture createMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateMetadataImportRequest request =
    *       CreateMetadataImportRequest.newBuilder()
@@ -1281,8 +1398,11 @@ public final OperationFuture createMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateMetadataImportRequest request =
    *       CreateMetadataImportRequest.newBuilder()
@@ -1310,8 +1430,11 @@ public final OperationFuture createMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateMetadataImportRequest request =
    *       CreateMetadataImportRequest.newBuilder()
@@ -1340,8 +1463,11 @@ public final OperationFuture createMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   MetadataImport metadataImport = MetadataImport.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1377,8 +1503,11 @@ public final OperationFuture updateMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   UpdateMetadataImportRequest request =
    *       UpdateMetadataImportRequest.newBuilder()
@@ -1406,8 +1535,11 @@ public final OperationFuture updateMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   UpdateMetadataImportRequest request =
    *       UpdateMetadataImportRequest.newBuilder()
@@ -1435,8 +1567,11 @@ public final OperationFuture updateMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   UpdateMetadataImportRequest request =
    *       UpdateMetadataImportRequest.newBuilder()
@@ -1463,8 +1598,11 @@ public final OperationFuture updateMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ExportMetadataRequest request =
    *       ExportMetadataRequest.newBuilder()
@@ -1490,8 +1628,11 @@ public final OperationFuture exportMetadataAs
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ExportMetadataRequest request =
    *       ExportMetadataRequest.newBuilder()
@@ -1517,8 +1658,11 @@ public final OperationFuture exportMetadataAs
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ExportMetadataRequest request =
    *       ExportMetadataRequest.newBuilder()
@@ -1543,8 +1687,11 @@ public final UnaryCallable exportMetadataCalla
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ServiceName service = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
    *   BackupName backup = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]");
@@ -1577,8 +1724,11 @@ public final OperationFuture restoreServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ServiceName service = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
    *   String backup = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]").toString();
@@ -1611,8 +1761,11 @@ public final OperationFuture restoreServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String service = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
    *   BackupName backup = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]");
@@ -1645,8 +1798,11 @@ public final OperationFuture restoreServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String service = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
    *   String backup = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]").toString();
@@ -1676,8 +1832,11 @@ public final OperationFuture restoreServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   RestoreServiceRequest request =
    *       RestoreServiceRequest.newBuilder()
@@ -1705,8 +1864,11 @@ public final OperationFuture restoreServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   RestoreServiceRequest request =
    *       RestoreServiceRequest.newBuilder()
@@ -1734,8 +1896,11 @@ public final OperationFuture restoreServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   RestoreServiceRequest request =
    *       RestoreServiceRequest.newBuilder()
@@ -1762,8 +1927,11 @@ public final UnaryCallable restoreServiceCalla
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
    *   for (Backup element : dataprocMetastoreClient.listBackups(parent).iterateAll()) {
@@ -1792,8 +1960,11 @@ public final ListBackupsPagedResponse listBackups(ServiceName 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
    *   for (Backup element : dataprocMetastoreClient.listBackups(parent).iterateAll()) {
@@ -1819,8 +1990,11 @@ public final ListBackupsPagedResponse listBackups(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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListBackupsRequest request =
    *       ListBackupsRequest.newBuilder()
@@ -1850,8 +2024,11 @@ public final ListBackupsPagedResponse listBackups(ListBackupsRequest 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListBackupsRequest request =
    *       ListBackupsRequest.newBuilder()
@@ -1882,8 +2059,11 @@ public final ListBackupsPagedResponse listBackups(ListBackupsRequest 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListBackupsRequest request =
    *       ListBackupsRequest.newBuilder()
@@ -1919,8 +2099,11 @@ public final UnaryCallable listBackupsC
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]");
    *   Backup response = dataprocMetastoreClient.getBackup(name);
@@ -1945,8 +2128,11 @@ public final Backup getBackup(BackupName 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String name = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]").toString();
    *   Backup response = dataprocMetastoreClient.getBackup(name);
@@ -1970,8 +2156,11 @@ public final Backup getBackup(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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   GetBackupRequest request =
    *       GetBackupRequest.newBuilder()
@@ -1995,8 +2184,11 @@ public final Backup getBackup(GetBackupRequest 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   GetBackupRequest request =
    *       GetBackupRequest.newBuilder()
@@ -2019,8 +2211,11 @@ public final UnaryCallable getBackupCallable() {
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
    *   Backup backup = Backup.newBuilder().build();
@@ -2058,8 +2253,11 @@ public final OperationFuture createBackupAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
    *   Backup backup = Backup.newBuilder().build();
@@ -2097,8 +2295,11 @@ public final OperationFuture createBackupAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateBackupRequest request =
    *       CreateBackupRequest.newBuilder()
@@ -2126,8 +2327,11 @@ public final OperationFuture createBackupAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateBackupRequest request =
    *       CreateBackupRequest.newBuilder()
@@ -2155,8 +2359,11 @@ public final OperationFuture createBackupAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateBackupRequest request =
    *       CreateBackupRequest.newBuilder()
@@ -2183,8 +2390,11 @@ public final UnaryCallable createBackupCallable(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]");
    *   dataprocMetastoreClient.deleteBackupAsync(name).get();
@@ -2209,8 +2419,11 @@ public final OperationFuture deleteBackupAsync(BackupN
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String name = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]").toString();
    *   dataprocMetastoreClient.deleteBackupAsync(name).get();
@@ -2234,8 +2447,11 @@ public final OperationFuture deleteBackupAsync(String
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   DeleteBackupRequest request =
    *       DeleteBackupRequest.newBuilder()
@@ -2261,8 +2477,11 @@ public final OperationFuture deleteBackupAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   DeleteBackupRequest request =
    *       DeleteBackupRequest.newBuilder()
@@ -2288,8 +2507,11 @@ public final OperationFuture deleteBackupAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   DeleteBackupRequest request =
    *       DeleteBackupRequest.newBuilder()
diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreSettings.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreSettings.java
index 51ef0beafd5f..c3634611289e 100644
--- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreSettings.java
+++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreSettings.java
@@ -58,17 +58,17 @@
  * 

For example, to set the total timeout of getService 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
  * DataprocMetastoreSettings.Builder dataprocMetastoreSettingsBuilder =
  *     DataprocMetastoreSettings.newBuilder();
  * dataprocMetastoreSettingsBuilder
  *     .getServiceSettings()
  *     .setRetrySettings(
- *         dataprocMetastoreSettingsBuilder
- *             .getServiceSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         dataprocMetastoreSettingsBuilder.getServiceSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * DataprocMetastoreSettings dataprocMetastoreSettings = dataprocMetastoreSettingsBuilder.build();
diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/package-info.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/package-info.java
index 1c3afea9d38b..0a2e805805fb 100644
--- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/package-info.java
+++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/package-info.java
@@ -40,8 +40,11 @@
  * 

Sample for DataprocMetastoreClient: * *

{@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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
  *   ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
  *   Service response = dataprocMetastoreClient.getService(name);
diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreStubSettings.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreStubSettings.java
index dc8cf723b376..716a67235f90 100644
--- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreStubSettings.java
+++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreStubSettings.java
@@ -102,17 +102,17 @@
  * 

For example, to set the total timeout of getService 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
  * DataprocMetastoreStubSettings.Builder dataprocMetastoreSettingsBuilder =
  *     DataprocMetastoreStubSettings.newBuilder();
  * dataprocMetastoreSettingsBuilder
  *     .getServiceSettings()
  *     .setRetrySettings(
- *         dataprocMetastoreSettingsBuilder
- *             .getServiceSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         dataprocMetastoreSettingsBuilder.getServiceSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * DataprocMetastoreStubSettings dataprocMetastoreSettings =
diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/HttpJsonDataprocMetastoreStub.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/HttpJsonDataprocMetastoreStub.java
index a7f3235e2193..38d845309c08 100644
--- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/HttpJsonDataprocMetastoreStub.java
+++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/HttpJsonDataprocMetastoreStub.java
@@ -187,7 +187,8 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("service", request.getService()))
+                              ProtoRestSerializer.create()
+                                  .toBody("service", request.getService(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -228,7 +229,8 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("service", request.getService()))
+                              ProtoRestSerializer.create()
+                                  .toBody("service", request.getService(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -377,7 +379,7 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("metadataImport", request.getMetadataImport()))
+                                  .toBody("metadataImport", request.getMetadataImport(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -421,7 +423,7 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("metadataImport", request.getMetadataImport()))
+                                  .toBody("metadataImport", request.getMetadataImport(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -460,7 +462,7 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearService().build()))
+                                  .toBody("*", request.toBuilder().clearService().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -499,7 +501,7 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearService().build()))
+                                  .toBody("*", request.toBuilder().clearService().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -608,7 +610,8 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("backup", request.getBackup()))
+                              ProtoRestSerializer.create()
+                                  .toBody("backup", request.getBackup(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreClient.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreClient.java
index da9235f3aed4..1edde3c1d87a 100644
--- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreClient.java
+++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreClient.java
@@ -63,8 +63,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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
  *   ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
  *   Service response = dataprocMetastoreClient.getService(name);
@@ -101,8 +104,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
  * DataprocMetastoreSettings dataprocMetastoreSettings =
  *     DataprocMetastoreSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -114,8 +120,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
  * DataprocMetastoreSettings dataprocMetastoreSettings =
  *     DataprocMetastoreSettings.newBuilder().setEndpoint(myEndpoint).build();
  * DataprocMetastoreClient dataprocMetastoreClient =
@@ -126,8 +135,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
  * DataprocMetastoreSettings dataprocMetastoreSettings =
  *     DataprocMetastoreSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -222,8 +234,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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Service element : dataprocMetastoreClient.listServices(parent).iterateAll()) {
@@ -252,8 +267,11 @@ public final ListServicesPagedResponse listServices(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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Service element : dataprocMetastoreClient.listServices(parent).iterateAll()) {
@@ -279,8 +297,11 @@ public final ListServicesPagedResponse listServices(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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListServicesRequest request =
    *       ListServicesRequest.newBuilder()
@@ -310,8 +331,11 @@ public final ListServicesPagedResponse listServices(ListServicesRequest 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListServicesRequest request =
    *       ListServicesRequest.newBuilder()
@@ -342,8 +366,11 @@ public final ListServicesPagedResponse listServices(ListServicesRequest 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListServicesRequest request =
    *       ListServicesRequest.newBuilder()
@@ -380,8 +407,11 @@ public final UnaryCallable listServic
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
    *   Service response = dataprocMetastoreClient.getService(name);
@@ -406,8 +436,11 @@ public final Service getService(ServiceName 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
    *   Service response = dataprocMetastoreClient.getService(name);
@@ -431,8 +464,11 @@ public final Service getService(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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   GetServiceRequest request =
    *       GetServiceRequest.newBuilder()
@@ -456,8 +492,11 @@ public final Service getService(GetServiceRequest 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   GetServiceRequest request =
    *       GetServiceRequest.newBuilder()
@@ -480,8 +519,11 @@ public final UnaryCallable getServiceCallable() {
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Service service = Service.newBuilder().build();
@@ -520,8 +562,11 @@ public final OperationFuture createServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Service service = Service.newBuilder().build();
@@ -560,8 +605,11 @@ public final OperationFuture createServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateServiceRequest request =
    *       CreateServiceRequest.newBuilder()
@@ -589,8 +637,11 @@ public final OperationFuture createServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateServiceRequest request =
    *       CreateServiceRequest.newBuilder()
@@ -618,8 +669,11 @@ public final OperationFuture createServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateServiceRequest request =
    *       CreateServiceRequest.newBuilder()
@@ -646,8 +700,11 @@ public final UnaryCallable createServiceCallabl
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   Service service = Service.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -679,8 +736,11 @@ public final OperationFuture updateServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   UpdateServiceRequest request =
    *       UpdateServiceRequest.newBuilder()
@@ -707,8 +767,11 @@ public final OperationFuture updateServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   UpdateServiceRequest request =
    *       UpdateServiceRequest.newBuilder()
@@ -735,8 +798,11 @@ public final OperationFuture updateServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   UpdateServiceRequest request =
    *       UpdateServiceRequest.newBuilder()
@@ -762,8 +828,11 @@ public final UnaryCallable updateServiceCallabl
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
    *   dataprocMetastoreClient.deleteServiceAsync(name).get();
@@ -788,8 +857,11 @@ public final OperationFuture deleteServiceAsync(Servic
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
    *   dataprocMetastoreClient.deleteServiceAsync(name).get();
@@ -813,8 +885,11 @@ public final OperationFuture deleteServiceAsync(String
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   DeleteServiceRequest request =
    *       DeleteServiceRequest.newBuilder()
@@ -840,8 +915,11 @@ public final OperationFuture deleteServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   DeleteServiceRequest request =
    *       DeleteServiceRequest.newBuilder()
@@ -867,8 +945,11 @@ public final OperationFuture deleteServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   DeleteServiceRequest request =
    *       DeleteServiceRequest.newBuilder()
@@ -893,8 +974,11 @@ public final UnaryCallable deleteServiceCallabl
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
    *   for (MetadataImport element :
@@ -924,8 +1008,11 @@ public final ListMetadataImportsPagedResponse listMetadataImports(ServiceName pa
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
    *   for (MetadataImport element :
@@ -953,8 +1040,11 @@ public final ListMetadataImportsPagedResponse listMetadataImports(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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListMetadataImportsRequest request =
    *       ListMetadataImportsRequest.newBuilder()
@@ -986,8 +1076,11 @@ public final ListMetadataImportsPagedResponse listMetadataImports(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListMetadataImportsRequest request =
    *       ListMetadataImportsRequest.newBuilder()
@@ -1018,8 +1111,11 @@ public final ListMetadataImportsPagedResponse listMetadataImports(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListMetadataImportsRequest request =
    *       ListMetadataImportsRequest.newBuilder()
@@ -1057,8 +1153,11 @@ public final ListMetadataImportsPagedResponse listMetadataImports(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   MetadataImportName name =
    *       MetadataImportName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[METADATA_IMPORT]");
@@ -1086,8 +1185,11 @@ public final MetadataImport getMetadataImport(MetadataImportName 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String name =
    *       MetadataImportName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[METADATA_IMPORT]")
@@ -1113,8 +1215,11 @@ public final MetadataImport getMetadataImport(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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   GetMetadataImportRequest request =
    *       GetMetadataImportRequest.newBuilder()
@@ -1140,8 +1245,11 @@ public final MetadataImport getMetadataImport(GetMetadataImportRequest 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   GetMetadataImportRequest request =
    *       GetMetadataImportRequest.newBuilder()
@@ -1167,8 +1275,11 @@ public final UnaryCallable getMetadata
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
    *   MetadataImport metadataImport = MetadataImport.newBuilder().build();
@@ -1210,8 +1321,11 @@ public final OperationFuture createMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
    *   MetadataImport metadataImport = MetadataImport.newBuilder().build();
@@ -1253,8 +1367,11 @@ public final OperationFuture createMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateMetadataImportRequest request =
    *       CreateMetadataImportRequest.newBuilder()
@@ -1282,8 +1399,11 @@ public final OperationFuture createMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateMetadataImportRequest request =
    *       CreateMetadataImportRequest.newBuilder()
@@ -1311,8 +1431,11 @@ public final OperationFuture createMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateMetadataImportRequest request =
    *       CreateMetadataImportRequest.newBuilder()
@@ -1341,8 +1464,11 @@ public final OperationFuture createMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   MetadataImport metadataImport = MetadataImport.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1378,8 +1504,11 @@ public final OperationFuture updateMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   UpdateMetadataImportRequest request =
    *       UpdateMetadataImportRequest.newBuilder()
@@ -1407,8 +1536,11 @@ public final OperationFuture updateMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   UpdateMetadataImportRequest request =
    *       UpdateMetadataImportRequest.newBuilder()
@@ -1436,8 +1568,11 @@ public final OperationFuture updateMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   UpdateMetadataImportRequest request =
    *       UpdateMetadataImportRequest.newBuilder()
@@ -1464,8 +1599,11 @@ public final OperationFuture updateMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ExportMetadataRequest request =
    *       ExportMetadataRequest.newBuilder()
@@ -1491,8 +1629,11 @@ public final OperationFuture exportMetadataAs
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ExportMetadataRequest request =
    *       ExportMetadataRequest.newBuilder()
@@ -1518,8 +1659,11 @@ public final OperationFuture exportMetadataAs
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ExportMetadataRequest request =
    *       ExportMetadataRequest.newBuilder()
@@ -1544,8 +1688,11 @@ public final UnaryCallable exportMetadataCalla
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ServiceName service = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
    *   BackupName backup = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]");
@@ -1578,8 +1725,11 @@ public final OperationFuture restoreServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ServiceName service = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
    *   String backup = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]").toString();
@@ -1612,8 +1762,11 @@ public final OperationFuture restoreServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String service = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
    *   BackupName backup = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]");
@@ -1646,8 +1799,11 @@ public final OperationFuture restoreServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String service = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
    *   String backup = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]").toString();
@@ -1677,8 +1833,11 @@ public final OperationFuture restoreServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   RestoreServiceRequest request =
    *       RestoreServiceRequest.newBuilder()
@@ -1706,8 +1865,11 @@ public final OperationFuture restoreServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   RestoreServiceRequest request =
    *       RestoreServiceRequest.newBuilder()
@@ -1735,8 +1897,11 @@ public final OperationFuture restoreServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   RestoreServiceRequest request =
    *       RestoreServiceRequest.newBuilder()
@@ -1763,8 +1928,11 @@ public final UnaryCallable restoreServiceCalla
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
    *   for (Backup element : dataprocMetastoreClient.listBackups(parent).iterateAll()) {
@@ -1793,8 +1961,11 @@ public final ListBackupsPagedResponse listBackups(ServiceName 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
    *   for (Backup element : dataprocMetastoreClient.listBackups(parent).iterateAll()) {
@@ -1820,8 +1991,11 @@ public final ListBackupsPagedResponse listBackups(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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListBackupsRequest request =
    *       ListBackupsRequest.newBuilder()
@@ -1851,8 +2025,11 @@ public final ListBackupsPagedResponse listBackups(ListBackupsRequest 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListBackupsRequest request =
    *       ListBackupsRequest.newBuilder()
@@ -1883,8 +2060,11 @@ public final ListBackupsPagedResponse listBackups(ListBackupsRequest 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListBackupsRequest request =
    *       ListBackupsRequest.newBuilder()
@@ -1920,8 +2100,11 @@ public final UnaryCallable listBackupsC
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]");
    *   Backup response = dataprocMetastoreClient.getBackup(name);
@@ -1946,8 +2129,11 @@ public final Backup getBackup(BackupName 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String name = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]").toString();
    *   Backup response = dataprocMetastoreClient.getBackup(name);
@@ -1971,8 +2157,11 @@ public final Backup getBackup(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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   GetBackupRequest request =
    *       GetBackupRequest.newBuilder()
@@ -1996,8 +2185,11 @@ public final Backup getBackup(GetBackupRequest 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   GetBackupRequest request =
    *       GetBackupRequest.newBuilder()
@@ -2020,8 +2212,11 @@ public final UnaryCallable getBackupCallable() {
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
    *   Backup backup = Backup.newBuilder().build();
@@ -2059,8 +2254,11 @@ public final OperationFuture createBackupAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
    *   Backup backup = Backup.newBuilder().build();
@@ -2098,8 +2296,11 @@ public final OperationFuture createBackupAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateBackupRequest request =
    *       CreateBackupRequest.newBuilder()
@@ -2127,8 +2328,11 @@ public final OperationFuture createBackupAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateBackupRequest request =
    *       CreateBackupRequest.newBuilder()
@@ -2156,8 +2360,11 @@ public final OperationFuture createBackupAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateBackupRequest request =
    *       CreateBackupRequest.newBuilder()
@@ -2184,8 +2391,11 @@ public final UnaryCallable createBackupCallable(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]");
    *   dataprocMetastoreClient.deleteBackupAsync(name).get();
@@ -2210,8 +2420,11 @@ public final OperationFuture deleteBackupAsync(BackupN
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String name = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]").toString();
    *   dataprocMetastoreClient.deleteBackupAsync(name).get();
@@ -2235,8 +2448,11 @@ public final OperationFuture deleteBackupAsync(String
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   DeleteBackupRequest request =
    *       DeleteBackupRequest.newBuilder()
@@ -2262,8 +2478,11 @@ public final OperationFuture deleteBackupAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   DeleteBackupRequest request =
    *       DeleteBackupRequest.newBuilder()
@@ -2289,8 +2508,11 @@ public final OperationFuture deleteBackupAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   DeleteBackupRequest request =
    *       DeleteBackupRequest.newBuilder()
diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreSettings.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreSettings.java
index 020e37d7e1cb..8fcc505c7e05 100644
--- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreSettings.java
+++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreSettings.java
@@ -58,17 +58,17 @@
  * 

For example, to set the total timeout of getService 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
  * DataprocMetastoreSettings.Builder dataprocMetastoreSettingsBuilder =
  *     DataprocMetastoreSettings.newBuilder();
  * dataprocMetastoreSettingsBuilder
  *     .getServiceSettings()
  *     .setRetrySettings(
- *         dataprocMetastoreSettingsBuilder
- *             .getServiceSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         dataprocMetastoreSettingsBuilder.getServiceSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * DataprocMetastoreSettings dataprocMetastoreSettings = dataprocMetastoreSettingsBuilder.build();
diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/package-info.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/package-info.java
index 4c8724e46821..e15ef979892b 100644
--- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/package-info.java
+++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/package-info.java
@@ -42,8 +42,11 @@
  * 

Sample for DataprocMetastoreClient: * *

{@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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
  *   ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
  *   Service response = dataprocMetastoreClient.getService(name);
diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreStubSettings.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreStubSettings.java
index 65c8c1820091..cedea51bae46 100644
--- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreStubSettings.java
+++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreStubSettings.java
@@ -102,17 +102,17 @@
  * 

For example, to set the total timeout of getService 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
  * DataprocMetastoreStubSettings.Builder dataprocMetastoreSettingsBuilder =
  *     DataprocMetastoreStubSettings.newBuilder();
  * dataprocMetastoreSettingsBuilder
  *     .getServiceSettings()
  *     .setRetrySettings(
- *         dataprocMetastoreSettingsBuilder
- *             .getServiceSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         dataprocMetastoreSettingsBuilder.getServiceSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * DataprocMetastoreStubSettings dataprocMetastoreSettings =
diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/HttpJsonDataprocMetastoreStub.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/HttpJsonDataprocMetastoreStub.java
index 353fa7cf8586..392db4dc05a7 100644
--- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/HttpJsonDataprocMetastoreStub.java
+++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/HttpJsonDataprocMetastoreStub.java
@@ -187,7 +187,8 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("service", request.getService()))
+                              ProtoRestSerializer.create()
+                                  .toBody("service", request.getService(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -228,7 +229,8 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("service", request.getService()))
+                              ProtoRestSerializer.create()
+                                  .toBody("service", request.getService(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -380,7 +382,7 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("metadataImport", request.getMetadataImport()))
+                                  .toBody("metadataImport", request.getMetadataImport(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -425,7 +427,7 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("metadataImport", request.getMetadataImport()))
+                                  .toBody("metadataImport", request.getMetadataImport(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -464,7 +466,7 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearService().build()))
+                                  .toBody("*", request.toBuilder().clearService().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -503,7 +505,7 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearService().build()))
+                                  .toBody("*", request.toBuilder().clearService().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -612,7 +614,8 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("backup", request.getBackup()))
+                              ProtoRestSerializer.create()
+                                  .toBody("backup", request.getBackup(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreClient.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreClient.java
index 7bd5823ade6c..55e85240ffb2 100644
--- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreClient.java
+++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreClient.java
@@ -63,8 +63,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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
  *   ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
  *   Service response = dataprocMetastoreClient.getService(name);
@@ -101,8 +104,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
  * DataprocMetastoreSettings dataprocMetastoreSettings =
  *     DataprocMetastoreSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -114,8 +120,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
  * DataprocMetastoreSettings dataprocMetastoreSettings =
  *     DataprocMetastoreSettings.newBuilder().setEndpoint(myEndpoint).build();
  * DataprocMetastoreClient dataprocMetastoreClient =
@@ -126,8 +135,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
  * DataprocMetastoreSettings dataprocMetastoreSettings =
  *     DataprocMetastoreSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -222,8 +234,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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Service element : dataprocMetastoreClient.listServices(parent).iterateAll()) {
@@ -252,8 +267,11 @@ public final ListServicesPagedResponse listServices(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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Service element : dataprocMetastoreClient.listServices(parent).iterateAll()) {
@@ -279,8 +297,11 @@ public final ListServicesPagedResponse listServices(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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListServicesRequest request =
    *       ListServicesRequest.newBuilder()
@@ -310,8 +331,11 @@ public final ListServicesPagedResponse listServices(ListServicesRequest 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListServicesRequest request =
    *       ListServicesRequest.newBuilder()
@@ -342,8 +366,11 @@ public final ListServicesPagedResponse listServices(ListServicesRequest 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListServicesRequest request =
    *       ListServicesRequest.newBuilder()
@@ -380,8 +407,11 @@ public final UnaryCallable listServic
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
    *   Service response = dataprocMetastoreClient.getService(name);
@@ -406,8 +436,11 @@ public final Service getService(ServiceName 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
    *   Service response = dataprocMetastoreClient.getService(name);
@@ -431,8 +464,11 @@ public final Service getService(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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   GetServiceRequest request =
    *       GetServiceRequest.newBuilder()
@@ -456,8 +492,11 @@ public final Service getService(GetServiceRequest 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   GetServiceRequest request =
    *       GetServiceRequest.newBuilder()
@@ -480,8 +519,11 @@ public final UnaryCallable getServiceCallable() {
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Service service = Service.newBuilder().build();
@@ -520,8 +562,11 @@ public final OperationFuture createServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Service service = Service.newBuilder().build();
@@ -560,8 +605,11 @@ public final OperationFuture createServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateServiceRequest request =
    *       CreateServiceRequest.newBuilder()
@@ -589,8 +637,11 @@ public final OperationFuture createServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateServiceRequest request =
    *       CreateServiceRequest.newBuilder()
@@ -618,8 +669,11 @@ public final OperationFuture createServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateServiceRequest request =
    *       CreateServiceRequest.newBuilder()
@@ -646,8 +700,11 @@ public final UnaryCallable createServiceCallabl
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   Service service = Service.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -679,8 +736,11 @@ public final OperationFuture updateServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   UpdateServiceRequest request =
    *       UpdateServiceRequest.newBuilder()
@@ -707,8 +767,11 @@ public final OperationFuture updateServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   UpdateServiceRequest request =
    *       UpdateServiceRequest.newBuilder()
@@ -735,8 +798,11 @@ public final OperationFuture updateServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   UpdateServiceRequest request =
    *       UpdateServiceRequest.newBuilder()
@@ -762,8 +828,11 @@ public final UnaryCallable updateServiceCallabl
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
    *   dataprocMetastoreClient.deleteServiceAsync(name).get();
@@ -788,8 +857,11 @@ public final OperationFuture deleteServiceAsync(Servic
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
    *   dataprocMetastoreClient.deleteServiceAsync(name).get();
@@ -813,8 +885,11 @@ public final OperationFuture deleteServiceAsync(String
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   DeleteServiceRequest request =
    *       DeleteServiceRequest.newBuilder()
@@ -840,8 +915,11 @@ public final OperationFuture deleteServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   DeleteServiceRequest request =
    *       DeleteServiceRequest.newBuilder()
@@ -867,8 +945,11 @@ public final OperationFuture deleteServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   DeleteServiceRequest request =
    *       DeleteServiceRequest.newBuilder()
@@ -893,8 +974,11 @@ public final UnaryCallable deleteServiceCallabl
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
    *   for (MetadataImport element :
@@ -924,8 +1008,11 @@ public final ListMetadataImportsPagedResponse listMetadataImports(ServiceName pa
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
    *   for (MetadataImport element :
@@ -953,8 +1040,11 @@ public final ListMetadataImportsPagedResponse listMetadataImports(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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListMetadataImportsRequest request =
    *       ListMetadataImportsRequest.newBuilder()
@@ -986,8 +1076,11 @@ public final ListMetadataImportsPagedResponse listMetadataImports(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListMetadataImportsRequest request =
    *       ListMetadataImportsRequest.newBuilder()
@@ -1018,8 +1111,11 @@ public final ListMetadataImportsPagedResponse listMetadataImports(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListMetadataImportsRequest request =
    *       ListMetadataImportsRequest.newBuilder()
@@ -1057,8 +1153,11 @@ public final ListMetadataImportsPagedResponse listMetadataImports(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   MetadataImportName name =
    *       MetadataImportName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[METADATA_IMPORT]");
@@ -1086,8 +1185,11 @@ public final MetadataImport getMetadataImport(MetadataImportName 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String name =
    *       MetadataImportName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[METADATA_IMPORT]")
@@ -1113,8 +1215,11 @@ public final MetadataImport getMetadataImport(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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   GetMetadataImportRequest request =
    *       GetMetadataImportRequest.newBuilder()
@@ -1140,8 +1245,11 @@ public final MetadataImport getMetadataImport(GetMetadataImportRequest 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   GetMetadataImportRequest request =
    *       GetMetadataImportRequest.newBuilder()
@@ -1167,8 +1275,11 @@ public final UnaryCallable getMetadata
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
    *   MetadataImport metadataImport = MetadataImport.newBuilder().build();
@@ -1210,8 +1321,11 @@ public final OperationFuture createMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
    *   MetadataImport metadataImport = MetadataImport.newBuilder().build();
@@ -1253,8 +1367,11 @@ public final OperationFuture createMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateMetadataImportRequest request =
    *       CreateMetadataImportRequest.newBuilder()
@@ -1282,8 +1399,11 @@ public final OperationFuture createMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateMetadataImportRequest request =
    *       CreateMetadataImportRequest.newBuilder()
@@ -1311,8 +1431,11 @@ public final OperationFuture createMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateMetadataImportRequest request =
    *       CreateMetadataImportRequest.newBuilder()
@@ -1341,8 +1464,11 @@ public final OperationFuture createMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   MetadataImport metadataImport = MetadataImport.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1378,8 +1504,11 @@ public final OperationFuture updateMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   UpdateMetadataImportRequest request =
    *       UpdateMetadataImportRequest.newBuilder()
@@ -1407,8 +1536,11 @@ public final OperationFuture updateMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   UpdateMetadataImportRequest request =
    *       UpdateMetadataImportRequest.newBuilder()
@@ -1436,8 +1568,11 @@ public final OperationFuture updateMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   UpdateMetadataImportRequest request =
    *       UpdateMetadataImportRequest.newBuilder()
@@ -1464,8 +1599,11 @@ public final OperationFuture updateMetadataIm
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ExportMetadataRequest request =
    *       ExportMetadataRequest.newBuilder()
@@ -1491,8 +1629,11 @@ public final OperationFuture exportMetadataAs
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ExportMetadataRequest request =
    *       ExportMetadataRequest.newBuilder()
@@ -1518,8 +1659,11 @@ public final OperationFuture exportMetadataAs
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ExportMetadataRequest request =
    *       ExportMetadataRequest.newBuilder()
@@ -1544,8 +1688,11 @@ public final UnaryCallable exportMetadataCalla
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ServiceName service = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
    *   BackupName backup = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]");
@@ -1578,8 +1725,11 @@ public final OperationFuture restoreServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ServiceName service = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
    *   String backup = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]").toString();
@@ -1612,8 +1762,11 @@ public final OperationFuture restoreServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String service = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
    *   BackupName backup = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]");
@@ -1646,8 +1799,11 @@ public final OperationFuture restoreServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String service = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
    *   String backup = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]").toString();
@@ -1677,8 +1833,11 @@ public final OperationFuture restoreServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   RestoreServiceRequest request =
    *       RestoreServiceRequest.newBuilder()
@@ -1706,8 +1865,11 @@ public final OperationFuture restoreServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   RestoreServiceRequest request =
    *       RestoreServiceRequest.newBuilder()
@@ -1735,8 +1897,11 @@ public final OperationFuture restoreServiceAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   RestoreServiceRequest request =
    *       RestoreServiceRequest.newBuilder()
@@ -1763,8 +1928,11 @@ public final UnaryCallable restoreServiceCalla
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
    *   for (Backup element : dataprocMetastoreClient.listBackups(parent).iterateAll()) {
@@ -1793,8 +1961,11 @@ public final ListBackupsPagedResponse listBackups(ServiceName 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
    *   for (Backup element : dataprocMetastoreClient.listBackups(parent).iterateAll()) {
@@ -1820,8 +1991,11 @@ public final ListBackupsPagedResponse listBackups(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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListBackupsRequest request =
    *       ListBackupsRequest.newBuilder()
@@ -1851,8 +2025,11 @@ public final ListBackupsPagedResponse listBackups(ListBackupsRequest 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListBackupsRequest request =
    *       ListBackupsRequest.newBuilder()
@@ -1883,8 +2060,11 @@ public final ListBackupsPagedResponse listBackups(ListBackupsRequest 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ListBackupsRequest request =
    *       ListBackupsRequest.newBuilder()
@@ -1920,8 +2100,11 @@ public final UnaryCallable listBackupsC
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]");
    *   Backup response = dataprocMetastoreClient.getBackup(name);
@@ -1946,8 +2129,11 @@ public final Backup getBackup(BackupName 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String name = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]").toString();
    *   Backup response = dataprocMetastoreClient.getBackup(name);
@@ -1971,8 +2157,11 @@ public final Backup getBackup(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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   GetBackupRequest request =
    *       GetBackupRequest.newBuilder()
@@ -1996,8 +2185,11 @@ public final Backup getBackup(GetBackupRequest 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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   GetBackupRequest request =
    *       GetBackupRequest.newBuilder()
@@ -2020,8 +2212,11 @@ public final UnaryCallable getBackupCallable() {
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
    *   Backup backup = Backup.newBuilder().build();
@@ -2059,8 +2254,11 @@ public final OperationFuture createBackupAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
    *   Backup backup = Backup.newBuilder().build();
@@ -2098,8 +2296,11 @@ public final OperationFuture createBackupAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateBackupRequest request =
    *       CreateBackupRequest.newBuilder()
@@ -2127,8 +2328,11 @@ public final OperationFuture createBackupAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateBackupRequest request =
    *       CreateBackupRequest.newBuilder()
@@ -2156,8 +2360,11 @@ public final OperationFuture createBackupAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   CreateBackupRequest request =
    *       CreateBackupRequest.newBuilder()
@@ -2184,8 +2391,11 @@ public final UnaryCallable createBackupCallable(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]");
    *   dataprocMetastoreClient.deleteBackupAsync(name).get();
@@ -2210,8 +2420,11 @@ public final OperationFuture deleteBackupAsync(BackupN
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   String name = BackupName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[BACKUP]").toString();
    *   dataprocMetastoreClient.deleteBackupAsync(name).get();
@@ -2235,8 +2448,11 @@ public final OperationFuture deleteBackupAsync(String
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   DeleteBackupRequest request =
    *       DeleteBackupRequest.newBuilder()
@@ -2262,8 +2478,11 @@ public final OperationFuture deleteBackupAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   DeleteBackupRequest request =
    *       DeleteBackupRequest.newBuilder()
@@ -2289,8 +2508,11 @@ public final OperationFuture deleteBackupAsync(
    * 

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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
    *   DeleteBackupRequest request =
    *       DeleteBackupRequest.newBuilder()
diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreSettings.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreSettings.java
index d9bb62d10b8f..d14def4d8b16 100644
--- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreSettings.java
+++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreSettings.java
@@ -58,17 +58,17 @@
  * 

For example, to set the total timeout of getService 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
  * DataprocMetastoreSettings.Builder dataprocMetastoreSettingsBuilder =
  *     DataprocMetastoreSettings.newBuilder();
  * dataprocMetastoreSettingsBuilder
  *     .getServiceSettings()
  *     .setRetrySettings(
- *         dataprocMetastoreSettingsBuilder
- *             .getServiceSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         dataprocMetastoreSettingsBuilder.getServiceSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * DataprocMetastoreSettings dataprocMetastoreSettings = dataprocMetastoreSettingsBuilder.build();
diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/package-info.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/package-info.java
index 2e6bde555cce..e84098ed0105 100644
--- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/package-info.java
+++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/package-info.java
@@ -40,8 +40,11 @@
  * 

Sample for DataprocMetastoreClient: * *

{@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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
  *   ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
  *   Service response = dataprocMetastoreClient.getService(name);
diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreStubSettings.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreStubSettings.java
index e49a0372e2e3..fd1e7f64009f 100644
--- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreStubSettings.java
+++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreStubSettings.java
@@ -102,17 +102,17 @@
  * 

For example, to set the total timeout of getService 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
  * DataprocMetastoreStubSettings.Builder dataprocMetastoreSettingsBuilder =
  *     DataprocMetastoreStubSettings.newBuilder();
  * dataprocMetastoreSettingsBuilder
  *     .getServiceSettings()
  *     .setRetrySettings(
- *         dataprocMetastoreSettingsBuilder
- *             .getServiceSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         dataprocMetastoreSettingsBuilder.getServiceSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * DataprocMetastoreStubSettings dataprocMetastoreSettings =
diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/HttpJsonDataprocMetastoreStub.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/HttpJsonDataprocMetastoreStub.java
index c6c1fd3ac596..bd2747934b35 100644
--- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/HttpJsonDataprocMetastoreStub.java
+++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/HttpJsonDataprocMetastoreStub.java
@@ -187,7 +187,8 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("service", request.getService()))
+                              ProtoRestSerializer.create()
+                                  .toBody("service", request.getService(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -228,7 +229,8 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("service", request.getService()))
+                              ProtoRestSerializer.create()
+                                  .toBody("service", request.getService(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -380,7 +382,7 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("metadataImport", request.getMetadataImport()))
+                                  .toBody("metadataImport", request.getMetadataImport(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -425,7 +427,7 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("metadataImport", request.getMetadataImport()))
+                                  .toBody("metadataImport", request.getMetadataImport(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -464,7 +466,7 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearService().build()))
+                                  .toBody("*", request.toBuilder().clearService().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -503,7 +505,7 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearService().build()))
+                                  .toBody("*", request.toBuilder().clearService().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -612,7 +614,8 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("backup", request.getBackup()))
+                              ProtoRestSerializer.create()
+                                  .toBody("backup", request.getBackup(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()