From 859720aba7ce96437c4b62f206c9a6b46995d896 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:42:26 +0000 Subject: [PATCH] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#271) - [ ] 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 --- .../google/cloud/gkehub/v1/GkeHubClient.java | 378 +++++++++++++----- .../cloud/gkehub/v1/GkeHubSettings.java | 12 +- .../google/cloud/gkehub/v1/package-info.java | 7 +- .../gkehub/v1/stub/GkeHubStubSettings.java | 12 +- .../gkehub/v1/stub/HttpJsonGkeHubStub.java | 8 +- .../cloud/gkehub/v1alpha/GkeHubClient.java | 161 +++++--- .../cloud/gkehub/v1alpha/GkeHubSettings.java | 12 +- .../cloud/gkehub/v1alpha/package-info.java | 7 +- .../v1alpha/stub/GkeHubStubSettings.java | 12 +- .../v1alpha/stub/HttpJsonGkeHubStub.java | 4 +- .../cloud/gkehub/v1alpha2/GkeHubClient.java | 217 +++++++--- .../cloud/gkehub/v1alpha2/GkeHubSettings.java | 12 +- .../cloud/gkehub/v1alpha2/package-info.java | 7 +- .../v1alpha2/stub/GkeHubStubSettings.java | 12 +- .../v1alpha2/stub/HttpJsonGkeHubStub.java | 6 +- .../cloud/gkehub/v1beta/GkeHubClient.java | 161 +++++--- .../cloud/gkehub/v1beta/GkeHubSettings.java | 12 +- .../cloud/gkehub/v1beta/package-info.java | 7 +- .../v1beta/stub/GkeHubStubSettings.java | 12 +- .../v1beta/stub/HttpJsonGkeHubStub.java | 4 +- .../GkeHubMembershipServiceClient.java | 315 ++++++++++----- .../GkeHubMembershipServiceSettings.java | 7 +- .../cloud/gkehub/v1beta1/package-info.java | 7 +- .../GkeHubMembershipServiceStubSettings.java | 7 +- .../HttpJsonGkeHubMembershipServiceStub.java | 8 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../AsyncCreateMembership.java | 7 +- .../AsyncCreateMembershipLRO.java | 7 +- .../SyncCreateMembership.java | 7 +- ...embershipLocationnameMembershipString.java | 7 +- ...reateMembershipStringMembershipString.java | 7 +- .../AsyncDeleteMembership.java | 7 +- .../AsyncDeleteMembershipLRO.java | 7 +- .../SyncDeleteMembership.java | 7 +- .../SyncDeleteMembershipMembershipname.java | 7 +- .../SyncDeleteMembershipString.java | 7 +- .../AsyncGenerateConnectManifest.java | 7 +- .../SyncGenerateConnectManifest.java | 7 +- .../getmembership/AsyncGetMembership.java | 7 +- .../getmembership/SyncGetMembership.java | 7 +- .../SyncGetMembershipMembershipname.java | 7 +- .../SyncGetMembershipString.java | 7 +- .../initializehub/AsyncInitializeHub.java | 7 +- .../initializehub/SyncInitializeHub.java | 7 +- .../listmemberships/AsyncListMemberships.java | 7 +- .../AsyncListMembershipsPaged.java | 7 +- .../listmemberships/SyncListMemberships.java | 7 +- .../SyncListMembershipsLocationname.java | 7 +- .../SyncListMembershipsString.java | 7 +- .../AsyncUpdateMembership.java | 7 +- .../AsyncUpdateMembershipLRO.java | 7 +- .../SyncUpdateMembership.java | 7 +- ...teMembershipStringMembershipFieldmask.java | 7 +- .../getmembership/SyncGetMembership.java | 12 +- .../getmembership/SyncGetMembership.java | 12 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../AsyncCreateMembership.java | 7 +- .../AsyncCreateMembershipLRO.java | 7 +- .../SyncCreateMembership.java | 7 +- ...embershipLocationnameMembershipString.java | 7 +- ...reateMembershipStringMembershipString.java | 7 +- .../AsyncDeleteMembership.java | 7 +- .../AsyncDeleteMembershipLRO.java | 7 +- .../SyncDeleteMembership.java | 7 +- .../SyncDeleteMembershipMembershipname.java | 7 +- .../SyncDeleteMembershipString.java | 7 +- .../AsyncGenerateConnectManifest.java | 7 +- .../SyncGenerateConnectManifest.java | 7 +- .../AsyncGenerateExclusivityManifest.java | 7 +- .../SyncGenerateExclusivityManifest.java | 7 +- .../getiampolicy/AsyncGetIamPolicy.java | 7 +- .../getiampolicy/SyncGetIamPolicy.java | 7 +- .../getlocation/AsyncGetLocation.java | 7 +- .../getlocation/SyncGetLocation.java | 7 +- .../getmembership/AsyncGetMembership.java | 7 +- .../getmembership/SyncGetMembership.java | 7 +- .../SyncGetMembershipMembershipname.java | 7 +- .../SyncGetMembershipString.java | 7 +- .../listlocations/AsyncListLocations.java | 7 +- .../AsyncListLocationsPaged.java | 7 +- .../listlocations/SyncListLocations.java | 7 +- .../listmemberships/AsyncListMemberships.java | 7 +- .../AsyncListMembershipsPaged.java | 7 +- .../listmemberships/SyncListMemberships.java | 7 +- .../SyncListMembershipsLocationname.java | 7 +- .../SyncListMembershipsString.java | 7 +- .../setiampolicy/AsyncSetIamPolicy.java | 7 +- .../setiampolicy/SyncSetIamPolicy.java | 7 +- .../AsyncTestIamPermissions.java | 7 +- .../SyncTestIamPermissions.java | 7 +- .../AsyncUpdateMembership.java | 7 +- .../AsyncUpdateMembershipLRO.java | 7 +- .../SyncUpdateMembership.java | 7 +- ...shipMembershipnameMembershipFieldmask.java | 7 +- ...teMembershipStringMembershipFieldmask.java | 7 +- .../AsyncValidateExclusivity.java | 7 +- .../SyncValidateExclusivity.java | 7 +- .../getmembership/SyncGetMembership.java | 7 +- .../getmembership/SyncGetMembership.java | 7 +- 103 files changed, 1370 insertions(+), 593 deletions(-) diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java index fe14794255d1..eaf780f7442f 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java @@ -61,8 +61,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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
  *   MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
  *   Membership response = gkeHubClient.getMembership(name);
@@ -98,8 +101,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
  * GkeHubSettings gkeHubSettings =
  *     GkeHubSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -110,8 +116,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
  * GkeHubSettings gkeHubSettings = GkeHubSettings.newBuilder().setEndpoint(myEndpoint).build();
  * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
  * }
@@ -120,8 +129,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
  * GkeHubSettings gkeHubSettings =
  *     GkeHubSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -212,8 +224,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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) {
@@ -241,8 +256,11 @@ public final ListMembershipsPagedResponse listMemberships(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) {
@@ -267,8 +285,11 @@ public final ListMembershipsPagedResponse listMemberships(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   ListMembershipsRequest request =
    *       ListMembershipsRequest.newBuilder()
@@ -298,8 +319,11 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) {
@@ -397,8 +427,11 @@ public final ListFeaturesPagedResponse listFeatures(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) {
@@ -423,8 +456,11 @@ public final ListFeaturesPagedResponse listFeatures(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   ListFeaturesRequest request =
    *       ListFeaturesRequest.newBuilder()
@@ -454,8 +490,11 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   ListFeaturesRequest request =
    *       ListFeaturesRequest.newBuilder()
@@ -485,8 +524,11 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   ListFeaturesRequest request =
    *       ListFeaturesRequest.newBuilder()
@@ -522,8 +564,11 @@ public final UnaryCallable listFeatur
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
    *   Membership response = gkeHubClient.getMembership(name);
@@ -547,8 +592,11 @@ public final Membership getMembership(MembershipName 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
    *   Membership response = gkeHubClient.getMembership(name);
@@ -571,8 +619,11 @@ public final Membership getMembership(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   GetMembershipRequest request =
    *       GetMembershipRequest.newBuilder()
@@ -596,8 +647,11 @@ public final Membership getMembership(GetMembershipRequest 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   GetMembershipRequest request =
    *       GetMembershipRequest.newBuilder()
@@ -620,8 +674,11 @@ public final UnaryCallable getMembershipCallab
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]");
    *   Feature response = gkeHubClient.getFeature(name);
@@ -645,8 +702,11 @@ public final Feature getFeature(FeatureName 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString();
    *   Feature response = gkeHubClient.getFeature(name);
@@ -669,8 +729,11 @@ public final Feature getFeature(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   GetFeatureRequest request =
    *       GetFeatureRequest.newBuilder()
@@ -694,8 +757,11 @@ public final Feature getFeature(GetFeatureRequest 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   GetFeatureRequest request =
    *       GetFeatureRequest.newBuilder()
@@ -722,8 +788,11 @@ public final UnaryCallable getFeatureCallable() {
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString();
    *   gkeHubClient.deleteFeatureAsync(name).get();
@@ -1254,8 +1371,11 @@ public final OperationFuture deleteFeatureAsync(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   DeleteFeatureRequest request =
    *       DeleteFeatureRequest.newBuilder()
@@ -1282,8 +1402,11 @@ public final OperationFuture deleteFeatureAsync(
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   GenerateConnectManifestRequest request =
    *       GenerateConnectManifestRequest.newBuilder()
diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java
index 910a50a20de5..b31289d2e742 100644
--- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java
+++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java
@@ -57,16 +57,16 @@
  * 

For example, to set the total timeout of getMembership 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
  * GkeHubSettings.Builder gkeHubSettingsBuilder = GkeHubSettings.newBuilder();
  * gkeHubSettingsBuilder
  *     .getMembershipSettings()
  *     .setRetrySettings(
- *         gkeHubSettingsBuilder
- *             .getMembershipSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         gkeHubSettingsBuilder.getMembershipSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * GkeHubSettings gkeHubSettings = gkeHubSettingsBuilder.build();
diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/package-info.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/package-info.java
index 1f0ffbc24055..806c5871d2bb 100644
--- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/package-info.java
+++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/package-info.java
@@ -40,8 +40,11 @@
  * 

Sample for GkeHubClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
  *   MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
  *   Membership response = gkeHubClient.getMembership(name);
diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java
index 41aee7c3991c..ee1bb5a7c59b 100644
--- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java
+++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java
@@ -94,16 +94,16 @@
  * 

For example, to set the total timeout of getMembership 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
  * GkeHubStubSettings.Builder gkeHubSettingsBuilder = GkeHubStubSettings.newBuilder();
  * gkeHubSettingsBuilder
  *     .getMembershipSettings()
  *     .setRetrySettings(
- *         gkeHubSettingsBuilder
- *             .getMembershipSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         gkeHubSettingsBuilder.getMembershipSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * GkeHubStubSettings gkeHubSettings = gkeHubSettingsBuilder.build();
diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/HttpJsonGkeHubStub.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/HttpJsonGkeHubStub.java
index 554fb30e1af9..6a5b1fd4b624 100644
--- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/HttpJsonGkeHubStub.java
+++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/HttpJsonGkeHubStub.java
@@ -248,7 +248,7 @@ public class HttpJsonGkeHubStub extends GkeHubStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("resource", request.getResource()))
+                                  .toBody("resource", request.getResource(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -289,7 +289,7 @@ public class HttpJsonGkeHubStub extends GkeHubStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("resource", request.getResource()))
+                                  .toBody("resource", request.getResource(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -405,7 +405,7 @@ public class HttpJsonGkeHubStub extends GkeHubStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("resource", request.getResource()))
+                                  .toBody("resource", request.getResource(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -446,7 +446,7 @@ public class HttpJsonGkeHubStub extends GkeHubStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("resource", request.getResource()))
+                                  .toBody("resource", request.getResource(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java
index 42cf66c1dbac..f74d05231c0a 100644
--- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java
+++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java
@@ -61,8 +61,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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
  *   String name = "name3373707";
  *   Feature response = gkeHubClient.getFeature(name);
@@ -98,8 +101,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
  * GkeHubSettings gkeHubSettings =
  *     GkeHubSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -110,8 +116,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
  * GkeHubSettings gkeHubSettings = GkeHubSettings.newBuilder().setEndpoint(myEndpoint).build();
  * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
  * }
@@ -120,8 +129,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
  * GkeHubSettings gkeHubSettings =
  *     GkeHubSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -213,8 +225,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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   String parent = "parent-995424086";
    *   for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) {
@@ -239,8 +254,11 @@ public final ListFeaturesPagedResponse listFeatures(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   ListFeaturesRequest request =
    *       ListFeaturesRequest.newBuilder()
@@ -270,8 +288,11 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   ListFeaturesRequest request =
    *       ListFeaturesRequest.newBuilder()
@@ -301,8 +322,11 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   ListFeaturesRequest request =
    *       ListFeaturesRequest.newBuilder()
@@ -338,8 +362,11 @@ public final UnaryCallable listFeatur
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   String name = "name3373707";
    *   Feature response = gkeHubClient.getFeature(name);
@@ -362,8 +389,11 @@ public final Feature getFeature(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   GetFeatureRequest request = GetFeatureRequest.newBuilder().setName("name3373707").build();
    *   Feature response = gkeHubClient.getFeature(request);
@@ -384,8 +414,11 @@ public final Feature getFeature(GetFeatureRequest 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   GetFeatureRequest request = GetFeatureRequest.newBuilder().setName("name3373707").build();
    *   ApiFuture future = gkeHubClient.getFeatureCallable().futureCall(request);
@@ -405,8 +438,11 @@ public final UnaryCallable getFeatureCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   String parent = "parent-995424086";
    *   Feature resource = Feature.newBuilder().build();
@@ -439,8 +475,11 @@ public final OperationFuture createFeatureAsync(
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   String name = "name3373707";
    *   gkeHubClient.deleteFeatureAsync(name).get();
@@ -548,8 +596,11 @@ public final OperationFuture deleteFeatureAsync(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   DeleteFeatureRequest request =
    *       DeleteFeatureRequest.newBuilder()
@@ -576,8 +627,11 @@ public final OperationFuture deleteFeatureAsync(
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   UpdateFeatureRequest request =
    *       UpdateFeatureRequest.newBuilder()
diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java
index efbea95d4ffe..bdc9faae2273 100644
--- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java
+++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java
@@ -56,16 +56,16 @@
  * 

For example, to set the total timeout of getFeature 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
  * GkeHubSettings.Builder gkeHubSettingsBuilder = GkeHubSettings.newBuilder();
  * gkeHubSettingsBuilder
  *     .getFeatureSettings()
  *     .setRetrySettings(
- *         gkeHubSettingsBuilder
- *             .getFeatureSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         gkeHubSettingsBuilder.getFeatureSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * GkeHubSettings gkeHubSettings = gkeHubSettingsBuilder.build();
diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/package-info.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/package-info.java
index 2d2a77dd708b..2374a531d424 100644
--- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/package-info.java
+++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/package-info.java
@@ -38,8 +38,11 @@
  * 

Sample for GkeHubClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
  *   String name = "name3373707";
  *   Feature response = gkeHubClient.getFeature(name);
diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java
index 5c40370b9aae..8dda855387ae 100644
--- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java
+++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java
@@ -84,16 +84,16 @@
  * 

For example, to set the total timeout of getFeature 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
  * GkeHubStubSettings.Builder gkeHubSettingsBuilder = GkeHubStubSettings.newBuilder();
  * gkeHubSettingsBuilder
  *     .getFeatureSettings()
  *     .setRetrySettings(
- *         gkeHubSettingsBuilder
- *             .getFeatureSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         gkeHubSettingsBuilder.getFeatureSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * GkeHubStubSettings gkeHubSettings = gkeHubSettingsBuilder.build();
diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/HttpJsonGkeHubStub.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/HttpJsonGkeHubStub.java
index 649174aa2d25..45b04406a5f1 100644
--- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/HttpJsonGkeHubStub.java
+++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/HttpJsonGkeHubStub.java
@@ -166,7 +166,7 @@ public class HttpJsonGkeHubStub extends GkeHubStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("resource", request.getResource()))
+                                  .toBody("resource", request.getResource(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -245,7 +245,7 @@ public class HttpJsonGkeHubStub extends GkeHubStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("resource", request.getResource()))
+                                  .toBody("resource", request.getResource(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java
index eda7bfb29ed3..3db2591b515f 100644
--- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java
+++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java
@@ -55,8 +55,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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
  *   MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
  *   Membership response = gkeHubClient.getMembership(name);
@@ -92,8 +95,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
  * GkeHubSettings gkeHubSettings =
  *     GkeHubSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -104,8 +110,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
  * GkeHubSettings gkeHubSettings = GkeHubSettings.newBuilder().setEndpoint(myEndpoint).build();
  * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
  * }
@@ -114,8 +123,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
  * GkeHubSettings gkeHubSettings =
  *     GkeHubSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -207,8 +219,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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) {
@@ -236,8 +251,11 @@ public final ListMembershipsPagedResponse listMemberships(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) {
@@ -262,8 +280,11 @@ public final ListMembershipsPagedResponse listMemberships(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   ListMembershipsRequest request =
    *       ListMembershipsRequest.newBuilder()
@@ -293,8 +314,11 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
    *   Membership response = gkeHubClient.getMembership(name);
@@ -388,8 +418,11 @@ public final Membership getMembership(MembershipName 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
    *   Membership response = gkeHubClient.getMembership(name);
@@ -412,8 +445,11 @@ public final Membership getMembership(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   GetMembershipRequest request =
    *       GetMembershipRequest.newBuilder()
@@ -437,8 +473,11 @@ public final Membership getMembership(GetMembershipRequest 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   GetMembershipRequest request =
    *       GetMembershipRequest.newBuilder()
@@ -465,8 +504,11 @@ public final UnaryCallable getMembershipCallab
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   InitializeHubRequest request =
    *       InitializeHubRequest.newBuilder().setProject("project-309310695").build();
@@ -1015,8 +1105,11 @@ public final InitializeHubResponse initializeHub(InitializeHubRequest 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   InitializeHubRequest request =
    *       InitializeHubRequest.newBuilder().setProject("project-309310695").build();
diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubSettings.java
index 53ab991da3fc..2208cc780ee8 100644
--- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubSettings.java
+++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubSettings.java
@@ -56,16 +56,16 @@
  * 

For example, to set the total timeout of getMembership 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
  * GkeHubSettings.Builder gkeHubSettingsBuilder = GkeHubSettings.newBuilder();
  * gkeHubSettingsBuilder
  *     .getMembershipSettings()
  *     .setRetrySettings(
- *         gkeHubSettingsBuilder
- *             .getMembershipSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         gkeHubSettingsBuilder.getMembershipSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * GkeHubSettings gkeHubSettings = gkeHubSettingsBuilder.build();
diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/package-info.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/package-info.java
index 72ad52653bc6..e43ccfc8789e 100644
--- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/package-info.java
+++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/package-info.java
@@ -34,8 +34,11 @@
  * 

Sample for GkeHubClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
  *   MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
  *   Membership response = gkeHubClient.getMembership(name);
diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java
index 6bec16b08952..32762c3b8860 100644
--- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java
+++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java
@@ -88,16 +88,16 @@
  * 

For example, to set the total timeout of getMembership 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
  * GkeHubStubSettings.Builder gkeHubSettingsBuilder = GkeHubStubSettings.newBuilder();
  * gkeHubSettingsBuilder
  *     .getMembershipSettings()
  *     .setRetrySettings(
- *         gkeHubSettingsBuilder
- *             .getMembershipSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         gkeHubSettingsBuilder.getMembershipSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * GkeHubStubSettings gkeHubSettings = gkeHubSettingsBuilder.build();
diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/HttpJsonGkeHubStub.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/HttpJsonGkeHubStub.java
index 7bcbc87ffe9f..b4980f1d65c5 100644
--- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/HttpJsonGkeHubStub.java
+++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/HttpJsonGkeHubStub.java
@@ -171,7 +171,7 @@ public class HttpJsonGkeHubStub extends GkeHubStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("resource", request.getResource()))
+                                  .toBody("resource", request.getResource(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -247,7 +247,7 @@ public class HttpJsonGkeHubStub extends GkeHubStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("resource", request.getResource()))
+                                  .toBody("resource", request.getResource(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -330,7 +330,7 @@ public class HttpJsonGkeHubStub extends GkeHubStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearProject().build()))
+                                  .toBody("*", request.toBuilder().clearProject().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java
index fbad90c9a6de..84bf59a00b51 100644
--- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java
+++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java
@@ -61,8 +61,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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
  *   String name = "name3373707";
  *   Feature response = gkeHubClient.getFeature(name);
@@ -98,8 +101,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
  * GkeHubSettings gkeHubSettings =
  *     GkeHubSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -110,8 +116,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
  * GkeHubSettings gkeHubSettings = GkeHubSettings.newBuilder().setEndpoint(myEndpoint).build();
  * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
  * }
@@ -120,8 +129,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
  * GkeHubSettings gkeHubSettings =
  *     GkeHubSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -213,8 +225,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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   String parent = "parent-995424086";
    *   for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) {
@@ -239,8 +254,11 @@ public final ListFeaturesPagedResponse listFeatures(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   ListFeaturesRequest request =
    *       ListFeaturesRequest.newBuilder()
@@ -270,8 +288,11 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   ListFeaturesRequest request =
    *       ListFeaturesRequest.newBuilder()
@@ -301,8 +322,11 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   ListFeaturesRequest request =
    *       ListFeaturesRequest.newBuilder()
@@ -338,8 +362,11 @@ public final UnaryCallable listFeatur
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   String name = "name3373707";
    *   Feature response = gkeHubClient.getFeature(name);
@@ -362,8 +389,11 @@ public final Feature getFeature(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   GetFeatureRequest request = GetFeatureRequest.newBuilder().setName("name3373707").build();
    *   Feature response = gkeHubClient.getFeature(request);
@@ -384,8 +414,11 @@ public final Feature getFeature(GetFeatureRequest 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   GetFeatureRequest request = GetFeatureRequest.newBuilder().setName("name3373707").build();
    *   ApiFuture future = gkeHubClient.getFeatureCallable().futureCall(request);
@@ -405,8 +438,11 @@ public final UnaryCallable getFeatureCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   String parent = "parent-995424086";
    *   Feature resource = Feature.newBuilder().build();
@@ -439,8 +475,11 @@ public final OperationFuture createFeatureAsync(
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   String name = "name3373707";
    *   gkeHubClient.deleteFeatureAsync(name).get();
@@ -548,8 +596,11 @@ public final OperationFuture deleteFeatureAsync(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   DeleteFeatureRequest request =
    *       DeleteFeatureRequest.newBuilder()
@@ -576,8 +627,11 @@ public final OperationFuture deleteFeatureAsync(
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   UpdateFeatureRequest request =
    *       UpdateFeatureRequest.newBuilder()
diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java
index ec48a11594de..eae91229b310 100644
--- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java
+++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java
@@ -56,16 +56,16 @@
  * 

For example, to set the total timeout of getFeature 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
  * GkeHubSettings.Builder gkeHubSettingsBuilder = GkeHubSettings.newBuilder();
  * gkeHubSettingsBuilder
  *     .getFeatureSettings()
  *     .setRetrySettings(
- *         gkeHubSettingsBuilder
- *             .getFeatureSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         gkeHubSettingsBuilder.getFeatureSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * GkeHubSettings gkeHubSettings = gkeHubSettingsBuilder.build();
diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/package-info.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/package-info.java
index 87be9a4a16f3..b714b0ed4046 100644
--- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/package-info.java
+++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/package-info.java
@@ -38,8 +38,11 @@
  * 

Sample for GkeHubClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
  *   String name = "name3373707";
  *   Feature response = gkeHubClient.getFeature(name);
diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java
index 4da9fe007be5..df4ced642ce1 100644
--- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java
+++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java
@@ -84,16 +84,16 @@
  * 

For example, to set the total timeout of getFeature 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
  * GkeHubStubSettings.Builder gkeHubSettingsBuilder = GkeHubStubSettings.newBuilder();
  * gkeHubSettingsBuilder
  *     .getFeatureSettings()
  *     .setRetrySettings(
- *         gkeHubSettingsBuilder
- *             .getFeatureSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         gkeHubSettingsBuilder.getFeatureSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * GkeHubStubSettings gkeHubSettings = gkeHubSettingsBuilder.build();
diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/HttpJsonGkeHubStub.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/HttpJsonGkeHubStub.java
index 07d542cdff1f..d53f7e924180 100644
--- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/HttpJsonGkeHubStub.java
+++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/HttpJsonGkeHubStub.java
@@ -166,7 +166,7 @@ public class HttpJsonGkeHubStub extends GkeHubStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("resource", request.getResource()))
+                                  .toBody("resource", request.getResource(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -245,7 +245,7 @@ public class HttpJsonGkeHubStub extends GkeHubStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("resource", request.getResource()))
+                                  .toBody("resource", request.getResource(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java
index e088d3728f3e..f68dd57e8513 100644
--- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java
+++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java
@@ -64,8 +64,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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
  *     GkeHubMembershipServiceClient.create()) {
  *   MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
@@ -103,8 +106,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
  * GkeHubMembershipServiceSettings gkeHubMembershipServiceSettings =
  *     GkeHubMembershipServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -116,8 +122,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
  * GkeHubMembershipServiceSettings gkeHubMembershipServiceSettings =
  *     GkeHubMembershipServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
@@ -128,8 +137,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
  * GkeHubMembershipServiceSettings gkeHubMembershipServiceSettings =
  *     GkeHubMembershipServiceSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -225,8 +237,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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
    *     GkeHubMembershipServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -256,8 +271,11 @@ public final ListMembershipsPagedResponse listMemberships(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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
    *     GkeHubMembershipServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -284,8 +302,11 @@ public final ListMembershipsPagedResponse listMemberships(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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
    *     GkeHubMembershipServiceClient.create()) {
    *   ListMembershipsRequest request =
@@ -317,8 +338,11 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
    *     GkeHubMembershipServiceClient.create()) {
    *   MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
@@ -416,8 +446,11 @@ public final Membership getMembership(MembershipName 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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
    *     GkeHubMembershipServiceClient.create()) {
    *   String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
@@ -441,8 +474,11 @@ public final Membership getMembership(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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
    *     GkeHubMembershipServiceClient.create()) {
    *   GetMembershipRequest request =
@@ -467,8 +503,11 @@ public final Membership getMembership(GetMembershipRequest 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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
    *     GkeHubMembershipServiceClient.create()) {
    *   GetMembershipRequest request =
@@ -497,8 +536,11 @@ public final UnaryCallable getMembershipCallab
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
    *     GkeHubMembershipServiceClient.create()) {
    *   SetIamPolicyRequest request =
@@ -1400,8 +1520,11 @@ public final Policy setIamPolicy(SetIamPolicyRequest 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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
    *     GkeHubMembershipServiceClient.create()) {
    *   SetIamPolicyRequest request =
@@ -1429,8 +1552,11 @@ public final UnaryCallable setIamPolicyCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
    *     GkeHubMembershipServiceClient.create()) {
    *   GetIamPolicyRequest request =
@@ -1457,8 +1583,11 @@ public final Policy getIamPolicy(GetIamPolicyRequest 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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
    *     GkeHubMembershipServiceClient.create()) {
    *   GetIamPolicyRequest request =
@@ -1489,8 +1618,11 @@ public final UnaryCallable getIamPolicyCallable() {
    * 

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
    *     GkeHubMembershipServiceClient.create()) {
    *   TestIamPermissionsRequest request =
diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceSettings.java
index 4c2e986b79c5..d45308ae1ec1 100644
--- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceSettings.java
+++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceSettings.java
@@ -66,8 +66,11 @@
  * 

For example, to set the total timeout of getMembership 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
  * GkeHubMembershipServiceSettings.Builder gkeHubMembershipServiceSettingsBuilder =
  *     GkeHubMembershipServiceSettings.newBuilder();
  * gkeHubMembershipServiceSettingsBuilder
diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/package-info.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/package-info.java
index 9e99050df940..44219a0b8675 100644
--- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/package-info.java
+++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/package-info.java
@@ -34,8 +34,11 @@
  * 

Sample for GkeHubMembershipServiceClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
  *     GkeHubMembershipServiceClient.create()) {
  *   MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java
index f80207139752..8f480dba3ba8 100644
--- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java
+++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java
@@ -100,8 +100,11 @@
  * 

For example, to set the total timeout of getMembership 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
  * GkeHubMembershipServiceStubSettings.Builder gkeHubMembershipServiceSettingsBuilder =
  *     GkeHubMembershipServiceStubSettings.newBuilder();
  * gkeHubMembershipServiceSettingsBuilder
diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/HttpJsonGkeHubMembershipServiceStub.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/HttpJsonGkeHubMembershipServiceStub.java
index 97991786f71d..2cd7e6abd5c0 100644
--- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/HttpJsonGkeHubMembershipServiceStub.java
+++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/HttpJsonGkeHubMembershipServiceStub.java
@@ -187,7 +187,7 @@ public class HttpJsonGkeHubMembershipServiceStub extends GkeHubMembershipService
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("resource", request.getResource()))
+                                  .toBody("resource", request.getResource(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -267,7 +267,7 @@ public class HttpJsonGkeHubMembershipServiceStub extends GkeHubMembershipService
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("resource", request.getResource()))
+                                  .toBody("resource", request.getResource(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -493,7 +493,7 @@ public class HttpJsonGkeHubMembershipServiceStub extends GkeHubMembershipService
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearResource().build()))
+                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -562,7 +562,7 @@ public class HttpJsonGkeHubMembershipServiceStub extends GkeHubMembershipService
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearResource().build()))
+                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/create/SyncCreateSetCredentialsProvider.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/create/SyncCreateSetCredentialsProvider.java
index b38623cffc1c..d9e88af3cccb 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/create/SyncCreateSetCredentialsProvider.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/create/SyncCreateSetCredentialsProvider.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     GkeHubSettings gkeHubSettings =
         GkeHubSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/create/SyncCreateSetCredentialsProvider1.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/create/SyncCreateSetCredentialsProvider1.java
index b83dda29f4a6..a5cd8e50878c 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/create/SyncCreateSetCredentialsProvider1.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider1() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     GkeHubSettings gkeHubSettings =
         GkeHubSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/create/SyncCreateSetEndpoint.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/create/SyncCreateSetEndpoint.java
index adc97104c89e..fd499e315358 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/create/SyncCreateSetEndpoint.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/create/SyncCreateSetEndpoint.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetEndpoint() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     GkeHubSettings gkeHubSettings = GkeHubSettings.newBuilder().setEndpoint(myEndpoint).build();
     GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
   }
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/createmembership/AsyncCreateMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/createmembership/AsyncCreateMembership.java
index 1758986fd691..c98f5c6b9cce 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/createmembership/AsyncCreateMembership.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/createmembership/AsyncCreateMembership.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateMembership() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       CreateMembershipRequest request =
           CreateMembershipRequest.newBuilder()
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/createmembership/AsyncCreateMembershipLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/createmembership/AsyncCreateMembershipLRO.java
index d52b2d30a551..29bbfcd14e58 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/createmembership/AsyncCreateMembershipLRO.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/createmembership/AsyncCreateMembershipLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateMembershipLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       CreateMembershipRequest request =
           CreateMembershipRequest.newBuilder()
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/createmembership/SyncCreateMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/createmembership/SyncCreateMembership.java
index 2fbaa837db12..ae62ce5cc705 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/createmembership/SyncCreateMembership.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/createmembership/SyncCreateMembership.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateMembership() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       CreateMembershipRequest request =
           CreateMembershipRequest.newBuilder()
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/createmembership/SyncCreateMembershipLocationnameMembershipString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/createmembership/SyncCreateMembershipLocationnameMembershipString.java
index f51f584e11d1..046459d2f36d 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/createmembership/SyncCreateMembershipLocationnameMembershipString.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/createmembership/SyncCreateMembershipLocationnameMembershipString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateMembershipLocationnameMembershipString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       Membership resource = Membership.newBuilder().build();
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/createmembership/SyncCreateMembershipStringMembershipString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/createmembership/SyncCreateMembershipStringMembershipString.java
index 19d23afa13c3..ef125b075603 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/createmembership/SyncCreateMembershipStringMembershipString.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/createmembership/SyncCreateMembershipStringMembershipString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateMembershipStringMembershipString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       Membership resource = Membership.newBuilder().build();
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/deletemembership/AsyncDeleteMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/deletemembership/AsyncDeleteMembership.java
index f648033e7bcc..c001f3fca2b0 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/deletemembership/AsyncDeleteMembership.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/deletemembership/AsyncDeleteMembership.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteMembership() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       DeleteMembershipRequest request =
           DeleteMembershipRequest.newBuilder()
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/deletemembership/AsyncDeleteMembershipLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/deletemembership/AsyncDeleteMembershipLRO.java
index cf3f375b1555..9c6e89bc4d83 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/deletemembership/AsyncDeleteMembershipLRO.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/deletemembership/AsyncDeleteMembershipLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteMembershipLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       DeleteMembershipRequest request =
           DeleteMembershipRequest.newBuilder()
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/deletemembership/SyncDeleteMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/deletemembership/SyncDeleteMembership.java
index cda732907d41..fb77303c6244 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/deletemembership/SyncDeleteMembership.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/deletemembership/SyncDeleteMembership.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteMembership() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       DeleteMembershipRequest request =
           DeleteMembershipRequest.newBuilder()
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/deletemembership/SyncDeleteMembershipMembershipname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/deletemembership/SyncDeleteMembershipMembershipname.java
index d3c86090e288..b037fefb2334 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/deletemembership/SyncDeleteMembershipMembershipname.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/deletemembership/SyncDeleteMembershipMembershipname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteMembershipMembershipname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
       gkeHubClient.deleteMembershipAsync(name).get();
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/deletemembership/SyncDeleteMembershipString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/deletemembership/SyncDeleteMembershipString.java
index bcf59d556ef5..01d7792c3c97 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/deletemembership/SyncDeleteMembershipString.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/deletemembership/SyncDeleteMembershipString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteMembershipString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
       gkeHubClient.deleteMembershipAsync(name).get();
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/generateconnectmanifest/AsyncGenerateConnectManifest.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/generateconnectmanifest/AsyncGenerateConnectManifest.java
index 09e2a834a377..42a9d375cb57 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/generateconnectmanifest/AsyncGenerateConnectManifest.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/generateconnectmanifest/AsyncGenerateConnectManifest.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGenerateConnectManifest() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       GenerateConnectManifestRequest request =
           GenerateConnectManifestRequest.newBuilder()
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/generateconnectmanifest/SyncGenerateConnectManifest.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/generateconnectmanifest/SyncGenerateConnectManifest.java
index e1f6362c248f..25aab5dd73a3 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/generateconnectmanifest/SyncGenerateConnectManifest.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/generateconnectmanifest/SyncGenerateConnectManifest.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGenerateConnectManifest() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       GenerateConnectManifestRequest request =
           GenerateConnectManifestRequest.newBuilder()
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/getmembership/AsyncGetMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/getmembership/AsyncGetMembership.java
index b26f8bd7c223..e6ca14e46443 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/getmembership/AsyncGetMembership.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/getmembership/AsyncGetMembership.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetMembership() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       GetMembershipRequest request =
           GetMembershipRequest.newBuilder()
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/getmembership/SyncGetMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/getmembership/SyncGetMembership.java
index adec7f3a83d8..4c7de95c1400 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/getmembership/SyncGetMembership.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/getmembership/SyncGetMembership.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetMembership() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       GetMembershipRequest request =
           GetMembershipRequest.newBuilder()
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/getmembership/SyncGetMembershipMembershipname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/getmembership/SyncGetMembershipMembershipname.java
index 8f2b42b7b448..4ff90a05054c 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/getmembership/SyncGetMembershipMembershipname.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/getmembership/SyncGetMembershipMembershipname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetMembershipMembershipname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
       Membership response = gkeHubClient.getMembership(name);
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/getmembership/SyncGetMembershipString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/getmembership/SyncGetMembershipString.java
index e43682480dcc..9d7526677925 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/getmembership/SyncGetMembershipString.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/getmembership/SyncGetMembershipString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetMembershipString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
       Membership response = gkeHubClient.getMembership(name);
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/initializehub/AsyncInitializeHub.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/initializehub/AsyncInitializeHub.java
index 8a881d0c877a..cf13c993bebe 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/initializehub/AsyncInitializeHub.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/initializehub/AsyncInitializeHub.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncInitializeHub() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       InitializeHubRequest request =
           InitializeHubRequest.newBuilder().setProject("project-309310695").build();
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/initializehub/SyncInitializeHub.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/initializehub/SyncInitializeHub.java
index c48fe9a27ef0..48bf901cf646 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/initializehub/SyncInitializeHub.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/initializehub/SyncInitializeHub.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncInitializeHub() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       InitializeHubRequest request =
           InitializeHubRequest.newBuilder().setProject("project-309310695").build();
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/listmemberships/AsyncListMemberships.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/listmemberships/AsyncListMemberships.java
index 954d3f9bd5a2..7803709f7e86 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/listmemberships/AsyncListMemberships.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/listmemberships/AsyncListMemberships.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListMemberships() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       ListMembershipsRequest request =
           ListMembershipsRequest.newBuilder()
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/listmemberships/AsyncListMembershipsPaged.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/listmemberships/AsyncListMembershipsPaged.java
index 6f7495e39f05..66cffaaadfc8 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/listmemberships/AsyncListMembershipsPaged.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/listmemberships/AsyncListMembershipsPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListMembershipsPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       ListMembershipsRequest request =
           ListMembershipsRequest.newBuilder()
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/listmemberships/SyncListMemberships.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/listmemberships/SyncListMemberships.java
index 69aa01b735be..5a71a187e5a0 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/listmemberships/SyncListMemberships.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/listmemberships/SyncListMemberships.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListMemberships() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       ListMembershipsRequest request =
           ListMembershipsRequest.newBuilder()
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/listmemberships/SyncListMembershipsLocationname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/listmemberships/SyncListMembershipsLocationname.java
index 7558c25e32ba..4644e2ec3567 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/listmemberships/SyncListMembershipsLocationname.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/listmemberships/SyncListMembershipsLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListMembershipsLocationname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) {
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/listmemberships/SyncListMembershipsString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/listmemberships/SyncListMembershipsString.java
index f45225ed8474..753f370b0675 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/listmemberships/SyncListMembershipsString.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/listmemberships/SyncListMembershipsString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListMembershipsString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) {
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/updatemembership/AsyncUpdateMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/updatemembership/AsyncUpdateMembership.java
index db94ffeb7b6f..ec1bb0fba4dd 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/updatemembership/AsyncUpdateMembership.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/updatemembership/AsyncUpdateMembership.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateMembership() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       UpdateMembershipRequest request =
           UpdateMembershipRequest.newBuilder()
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/updatemembership/AsyncUpdateMembershipLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/updatemembership/AsyncUpdateMembershipLRO.java
index ec4588fa0f58..d447008d9509 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/updatemembership/AsyncUpdateMembershipLRO.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/updatemembership/AsyncUpdateMembershipLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateMembershipLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       UpdateMembershipRequest request =
           UpdateMembershipRequest.newBuilder()
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/updatemembership/SyncUpdateMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/updatemembership/SyncUpdateMembership.java
index 6fe77c4a82ac..8a9fbf109d7b 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/updatemembership/SyncUpdateMembership.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/updatemembership/SyncUpdateMembership.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateMembership() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       UpdateMembershipRequest request =
           UpdateMembershipRequest.newBuilder()
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/updatemembership/SyncUpdateMembershipStringMembershipFieldmask.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/updatemembership/SyncUpdateMembershipStringMembershipFieldmask.java
index fda1a66e8e90..8703b7322d2e 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/updatemembership/SyncUpdateMembershipStringMembershipFieldmask.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubclient/updatemembership/SyncUpdateMembershipStringMembershipFieldmask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateMembershipStringMembershipFieldmask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
       String name = "name3373707";
       Membership resource = Membership.newBuilder().build();
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubsettings/getmembership/SyncGetMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubsettings/getmembership/SyncGetMembership.java
index 3f8d398eca18..dfdb147d709b 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubsettings/getmembership/SyncGetMembership.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/gkehubsettings/getmembership/SyncGetMembership.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetMembership() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     GkeHubSettings.Builder gkeHubSettingsBuilder = GkeHubSettings.newBuilder();
     gkeHubSettingsBuilder
         .getMembershipSettings()
         .setRetrySettings(
-            gkeHubSettingsBuilder
-                .getMembershipSettings()
-                .getRetrySettings()
-                .toBuilder()
+            gkeHubSettingsBuilder.getMembershipSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     GkeHubSettings gkeHubSettings = gkeHubSettingsBuilder.build();
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/stub/gkehubstubsettings/getmembership/SyncGetMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/stub/gkehubstubsettings/getmembership/SyncGetMembership.java
index 4af3cb77d421..77f2fd82ba6b 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/stub/gkehubstubsettings/getmembership/SyncGetMembership.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1alpha2/stub/gkehubstubsettings/getmembership/SyncGetMembership.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetMembership() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     GkeHubStubSettings.Builder gkeHubSettingsBuilder = GkeHubStubSettings.newBuilder();
     gkeHubSettingsBuilder
         .getMembershipSettings()
         .setRetrySettings(
-            gkeHubSettingsBuilder
-                .getMembershipSettings()
-                .getRetrySettings()
-                .toBuilder()
+            gkeHubSettingsBuilder.getMembershipSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     GkeHubStubSettings gkeHubSettings = gkeHubSettingsBuilder.build();
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/create/SyncCreateSetCredentialsProvider.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/create/SyncCreateSetCredentialsProvider.java
index 4cfcc44db012..883fc2f6c274 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/create/SyncCreateSetCredentialsProvider.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/create/SyncCreateSetCredentialsProvider.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     GkeHubMembershipServiceSettings gkeHubMembershipServiceSettings =
         GkeHubMembershipServiceSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/create/SyncCreateSetCredentialsProvider1.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/create/SyncCreateSetCredentialsProvider1.java
index ddf7f534057b..86ac5691cf0e 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/create/SyncCreateSetCredentialsProvider1.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider1() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     GkeHubMembershipServiceSettings gkeHubMembershipServiceSettings =
         GkeHubMembershipServiceSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/create/SyncCreateSetEndpoint.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/create/SyncCreateSetEndpoint.java
index c59479e7321f..4d8ab1c58bac 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/create/SyncCreateSetEndpoint.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/create/SyncCreateSetEndpoint.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetEndpoint() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     GkeHubMembershipServiceSettings gkeHubMembershipServiceSettings =
         GkeHubMembershipServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
     GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/createmembership/AsyncCreateMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/createmembership/AsyncCreateMembership.java
index c96065fc2b4e..b954d82bd079 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/createmembership/AsyncCreateMembership.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/createmembership/AsyncCreateMembership.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateMembership() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       CreateMembershipRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/createmembership/AsyncCreateMembershipLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/createmembership/AsyncCreateMembershipLRO.java
index 93f50eac6d4a..3d8931069670 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/createmembership/AsyncCreateMembershipLRO.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/createmembership/AsyncCreateMembershipLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateMembershipLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       CreateMembershipRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/createmembership/SyncCreateMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/createmembership/SyncCreateMembership.java
index de2234324acb..cc8752fe765a 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/createmembership/SyncCreateMembership.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/createmembership/SyncCreateMembership.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateMembership() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       CreateMembershipRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/createmembership/SyncCreateMembershipLocationnameMembershipString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/createmembership/SyncCreateMembershipLocationnameMembershipString.java
index 7928d645bc42..d76e1fc133b2 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/createmembership/SyncCreateMembershipLocationnameMembershipString.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/createmembership/SyncCreateMembershipLocationnameMembershipString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateMembershipLocationnameMembershipString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/createmembership/SyncCreateMembershipStringMembershipString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/createmembership/SyncCreateMembershipStringMembershipString.java
index 8fd5f1ce69bc..e8ea181d2d27 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/createmembership/SyncCreateMembershipStringMembershipString.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/createmembership/SyncCreateMembershipStringMembershipString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateMembershipStringMembershipString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/deletemembership/AsyncDeleteMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/deletemembership/AsyncDeleteMembership.java
index aed337ade4cf..2a867eb6855b 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/deletemembership/AsyncDeleteMembership.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/deletemembership/AsyncDeleteMembership.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteMembership() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       DeleteMembershipRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/deletemembership/AsyncDeleteMembershipLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/deletemembership/AsyncDeleteMembershipLRO.java
index 58c1c41822ac..6336223f2136 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/deletemembership/AsyncDeleteMembershipLRO.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/deletemembership/AsyncDeleteMembershipLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteMembershipLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       DeleteMembershipRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/deletemembership/SyncDeleteMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/deletemembership/SyncDeleteMembership.java
index b81d1c7a0aa2..772704ac21f6 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/deletemembership/SyncDeleteMembership.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/deletemembership/SyncDeleteMembership.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteMembership() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       DeleteMembershipRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/deletemembership/SyncDeleteMembershipMembershipname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/deletemembership/SyncDeleteMembershipMembershipname.java
index 5ec4e98e8fc9..1d0105351d32 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/deletemembership/SyncDeleteMembershipMembershipname.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/deletemembership/SyncDeleteMembershipMembershipname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteMembershipMembershipname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/deletemembership/SyncDeleteMembershipString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/deletemembership/SyncDeleteMembershipString.java
index d3f81eb5ef23..509989594c04 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/deletemembership/SyncDeleteMembershipString.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/deletemembership/SyncDeleteMembershipString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteMembershipString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/generateconnectmanifest/AsyncGenerateConnectManifest.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/generateconnectmanifest/AsyncGenerateConnectManifest.java
index cd0e12a1660c..21826deda433 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/generateconnectmanifest/AsyncGenerateConnectManifest.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/generateconnectmanifest/AsyncGenerateConnectManifest.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGenerateConnectManifest() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       GenerateConnectManifestRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/generateconnectmanifest/SyncGenerateConnectManifest.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/generateconnectmanifest/SyncGenerateConnectManifest.java
index 66f78692eb89..c0540599d460 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/generateconnectmanifest/SyncGenerateConnectManifest.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/generateconnectmanifest/SyncGenerateConnectManifest.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGenerateConnectManifest() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       GenerateConnectManifestRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/generateexclusivitymanifest/AsyncGenerateExclusivityManifest.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/generateexclusivitymanifest/AsyncGenerateExclusivityManifest.java
index dc95d550b5a1..dab171ec71c0 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/generateexclusivitymanifest/AsyncGenerateExclusivityManifest.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/generateexclusivitymanifest/AsyncGenerateExclusivityManifest.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGenerateExclusivityManifest() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       GenerateExclusivityManifestRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/generateexclusivitymanifest/SyncGenerateExclusivityManifest.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/generateexclusivitymanifest/SyncGenerateExclusivityManifest.java
index 8fe97fd4530f..8993483960d1 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/generateexclusivitymanifest/SyncGenerateExclusivityManifest.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/generateexclusivitymanifest/SyncGenerateExclusivityManifest.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGenerateExclusivityManifest() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       GenerateExclusivityManifestRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getiampolicy/AsyncGetIamPolicy.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getiampolicy/AsyncGetIamPolicy.java
index 031c5de816af..e4dd5505b46a 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getiampolicy/AsyncGetIamPolicy.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getiampolicy/AsyncGetIamPolicy.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       GetIamPolicyRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getiampolicy/SyncGetIamPolicy.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getiampolicy/SyncGetIamPolicy.java
index 69beade5e40f..3abbe926a875 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getiampolicy/SyncGetIamPolicy.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getiampolicy/SyncGetIamPolicy.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       GetIamPolicyRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getlocation/AsyncGetLocation.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getlocation/AsyncGetLocation.java
index cf67425c0e51..e2b856cb1bd0 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getlocation/AsyncGetLocation.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getlocation/AsyncGetLocation.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetLocation() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getlocation/SyncGetLocation.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getlocation/SyncGetLocation.java
index 2dafd4adccf4..24cfe0760ba3 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getlocation/SyncGetLocation.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getlocation/SyncGetLocation.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetLocation() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getmembership/AsyncGetMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getmembership/AsyncGetMembership.java
index dee8683185a9..d4cf7728b9ed 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getmembership/AsyncGetMembership.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getmembership/AsyncGetMembership.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetMembership() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       GetMembershipRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getmembership/SyncGetMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getmembership/SyncGetMembership.java
index f985bcfa9208..93b2dd8f2cc7 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getmembership/SyncGetMembership.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getmembership/SyncGetMembership.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetMembership() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       GetMembershipRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getmembership/SyncGetMembershipMembershipname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getmembership/SyncGetMembershipMembershipname.java
index ab025e20cb4f..f71b754fd61f 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getmembership/SyncGetMembershipMembershipname.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getmembership/SyncGetMembershipMembershipname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetMembershipMembershipname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getmembership/SyncGetMembershipString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getmembership/SyncGetMembershipString.java
index 9999ecd32249..7ca1aededc87 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getmembership/SyncGetMembershipString.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/getmembership/SyncGetMembershipString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetMembershipString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listlocations/AsyncListLocations.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listlocations/AsyncListLocations.java
index b210e4275373..10eadcd6ec74 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listlocations/AsyncListLocations.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listlocations/AsyncListLocations.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListLocations() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       ListLocationsRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listlocations/AsyncListLocationsPaged.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listlocations/AsyncListLocationsPaged.java
index 484aaa2e8295..89d2ca8b53b0 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listlocations/AsyncListLocationsPaged.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listlocations/AsyncListLocationsPaged.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListLocationsPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       ListLocationsRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listlocations/SyncListLocations.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listlocations/SyncListLocations.java
index 1b42ae19673f..3e31945a63d5 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listlocations/SyncListLocations.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listlocations/SyncListLocations.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListLocations() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       ListLocationsRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listmemberships/AsyncListMemberships.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listmemberships/AsyncListMemberships.java
index 8bb0516f65d6..538e59e6efd1 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listmemberships/AsyncListMemberships.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listmemberships/AsyncListMemberships.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListMemberships() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       ListMembershipsRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listmemberships/AsyncListMembershipsPaged.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listmemberships/AsyncListMembershipsPaged.java
index 3890c8f8abe5..62ef640c0791 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listmemberships/AsyncListMembershipsPaged.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listmemberships/AsyncListMembershipsPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListMembershipsPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       ListMembershipsRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listmemberships/SyncListMemberships.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listmemberships/SyncListMemberships.java
index 9023e10ae44d..a014c81d9b54 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listmemberships/SyncListMemberships.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listmemberships/SyncListMemberships.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListMemberships() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       ListMembershipsRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listmemberships/SyncListMembershipsLocationname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listmemberships/SyncListMembershipsLocationname.java
index 0fbf21731467..5d15a73dd5c3 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listmemberships/SyncListMembershipsLocationname.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listmemberships/SyncListMembershipsLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListMembershipsLocationname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listmemberships/SyncListMembershipsString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listmemberships/SyncListMembershipsString.java
index 67cfb1c45590..72ab4c94406b 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listmemberships/SyncListMembershipsString.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/listmemberships/SyncListMembershipsString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListMembershipsString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/setiampolicy/AsyncSetIamPolicy.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/setiampolicy/AsyncSetIamPolicy.java
index ab33198f800a..5b1ae95ff5c4 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/setiampolicy/AsyncSetIamPolicy.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/setiampolicy/AsyncSetIamPolicy.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       SetIamPolicyRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/setiampolicy/SyncSetIamPolicy.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/setiampolicy/SyncSetIamPolicy.java
index 93bd4dea9959..861948fbe4d6 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/setiampolicy/SyncSetIamPolicy.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/setiampolicy/SyncSetIamPolicy.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       SetIamPolicyRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/testiampermissions/AsyncTestIamPermissions.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/testiampermissions/AsyncTestIamPermissions.java
index befedbbb54e7..ea9ef8663ca1 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/testiampermissions/AsyncTestIamPermissions.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/testiampermissions/AsyncTestIamPermissions.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncTestIamPermissions() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       TestIamPermissionsRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/testiampermissions/SyncTestIamPermissions.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/testiampermissions/SyncTestIamPermissions.java
index 6650941b86ba..723aaf8d9bc9 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/testiampermissions/SyncTestIamPermissions.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/testiampermissions/SyncTestIamPermissions.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncTestIamPermissions() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       TestIamPermissionsRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/updatemembership/AsyncUpdateMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/updatemembership/AsyncUpdateMembership.java
index 20b6dc3907c5..ad00f4c40a97 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/updatemembership/AsyncUpdateMembership.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/updatemembership/AsyncUpdateMembership.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateMembership() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       UpdateMembershipRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/updatemembership/AsyncUpdateMembershipLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/updatemembership/AsyncUpdateMembershipLRO.java
index 71cb4a7c3115..5dc2b99f0826 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/updatemembership/AsyncUpdateMembershipLRO.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/updatemembership/AsyncUpdateMembershipLRO.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateMembershipLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       UpdateMembershipRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/updatemembership/SyncUpdateMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/updatemembership/SyncUpdateMembership.java
index 4eaf0b2f15cc..d5850549bbb3 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/updatemembership/SyncUpdateMembership.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/updatemembership/SyncUpdateMembership.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateMembership() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       UpdateMembershipRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/updatemembership/SyncUpdateMembershipMembershipnameMembershipFieldmask.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/updatemembership/SyncUpdateMembershipMembershipnameMembershipFieldmask.java
index 59cf1896b156..5d43f519c41d 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/updatemembership/SyncUpdateMembershipMembershipnameMembershipFieldmask.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/updatemembership/SyncUpdateMembershipMembershipnameMembershipFieldmask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateMembershipMembershipnameMembershipFieldmask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/updatemembership/SyncUpdateMembershipStringMembershipFieldmask.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/updatemembership/SyncUpdateMembershipStringMembershipFieldmask.java
index bd305411be98..54baad7c8aa7 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/updatemembership/SyncUpdateMembershipStringMembershipFieldmask.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/updatemembership/SyncUpdateMembershipStringMembershipFieldmask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateMembershipStringMembershipFieldmask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/validateexclusivity/AsyncValidateExclusivity.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/validateexclusivity/AsyncValidateExclusivity.java
index ac082880e290..961fff8c51f9 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/validateexclusivity/AsyncValidateExclusivity.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/validateexclusivity/AsyncValidateExclusivity.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncValidateExclusivity() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       ValidateExclusivityRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/validateexclusivity/SyncValidateExclusivity.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/validateexclusivity/SyncValidateExclusivity.java
index e921de0aa476..977872390ee1 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/validateexclusivity/SyncValidateExclusivity.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipserviceclient/validateexclusivity/SyncValidateExclusivity.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncValidateExclusivity() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
         GkeHubMembershipServiceClient.create()) {
       ValidateExclusivityRequest request =
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipservicesettings/getmembership/SyncGetMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipservicesettings/getmembership/SyncGetMembership.java
index 7ad3ecfb6ae4..22a20726e660 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipservicesettings/getmembership/SyncGetMembership.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/gkehubmembershipservicesettings/getmembership/SyncGetMembership.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetMembership() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     GkeHubMembershipServiceSettings.Builder gkeHubMembershipServiceSettingsBuilder =
         GkeHubMembershipServiceSettings.newBuilder();
     gkeHubMembershipServiceSettingsBuilder
diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/stub/gkehubmembershipservicestubsettings/getmembership/SyncGetMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/stub/gkehubmembershipservicestubsettings/getmembership/SyncGetMembership.java
index 45a7bc4a5e47..413fdd59cd56 100644
--- a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/stub/gkehubmembershipservicestubsettings/getmembership/SyncGetMembership.java
+++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1beta1/stub/gkehubmembershipservicestubsettings/getmembership/SyncGetMembership.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetMembership() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     GkeHubMembershipServiceStubSettings.Builder gkeHubMembershipServiceSettingsBuilder =
         GkeHubMembershipServiceStubSettings.newBuilder();
     gkeHubMembershipServiceSettingsBuilder