From 45d9517319272d8262b9e0c9c0b4e27f9d0d511b 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 15:26:14 +0000 Subject: [PATCH] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#380) - [ ] 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 --- .../cloud/orgpolicy/v2/OrgPolicyClient.java | 273 +++++++++++++----- .../cloud/orgpolicy/v2/OrgPolicySettings.java | 12 +- .../cloud/orgpolicy/v2/package-info.java | 7 +- .../v2/stub/HttpJsonOrgPolicyStub.java | 6 +- .../v2/stub/OrgPolicyStubSettings.java | 12 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createpolicy/AsyncCreatePolicy.java | 7 +- .../createpolicy/SyncCreatePolicy.java | 7 +- .../SyncCreatePolicyFoldernamePolicy.java | 7 +- ...yncCreatePolicyOrganizationnamePolicy.java | 7 +- .../SyncCreatePolicyProjectnamePolicy.java | 7 +- .../SyncCreatePolicyStringPolicy.java | 7 +- .../deletepolicy/AsyncDeletePolicy.java | 7 +- .../deletepolicy/SyncDeletePolicy.java | 7 +- .../SyncDeletePolicyPolicyname.java | 7 +- .../deletepolicy/SyncDeletePolicyString.java | 7 +- .../AsyncGetEffectivePolicy.java | 7 +- .../SyncGetEffectivePolicy.java | 7 +- .../SyncGetEffectivePolicyPolicyname.java | 7 +- .../SyncGetEffectivePolicyString.java | 7 +- .../getpolicy/AsyncGetPolicy.java | 7 +- .../getpolicy/SyncGetPolicy.java | 7 +- .../getpolicy/SyncGetPolicyPolicyname.java | 7 +- .../getpolicy/SyncGetPolicyString.java | 7 +- .../listconstraints/AsyncListConstraints.java | 7 +- .../AsyncListConstraintsPaged.java | 7 +- .../listconstraints/SyncListConstraints.java | 7 +- .../SyncListConstraintsFoldername.java | 7 +- .../SyncListConstraintsOrganizationname.java | 7 +- .../SyncListConstraintsProjectname.java | 7 +- .../SyncListConstraintsString.java | 7 +- .../listpolicies/AsyncListPolicies.java | 7 +- .../listpolicies/AsyncListPoliciesPaged.java | 7 +- .../listpolicies/SyncListPolicies.java | 7 +- .../SyncListPoliciesFoldername.java | 7 +- .../SyncListPoliciesOrganizationname.java | 7 +- .../SyncListPoliciesProjectname.java | 7 +- .../listpolicies/SyncListPoliciesString.java | 7 +- .../updatepolicy/AsyncUpdatePolicy.java | 7 +- .../updatepolicy/SyncUpdatePolicy.java | 7 +- .../updatepolicy/SyncUpdatePolicyPolicy.java | 7 +- .../getpolicy/SyncGetPolicy.java | 12 +- .../getpolicy/SyncGetPolicy.java | 12 +- 45 files changed, 418 insertions(+), 182 deletions(-) diff --git a/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/OrgPolicyClient.java b/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/OrgPolicyClient.java index 48d83820c20f..658cad8f5bfc 100644 --- a/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/OrgPolicyClient.java +++ b/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/OrgPolicyClient.java @@ -57,8 +57,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 (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
  *   PolicyName name = PolicyName.ofProjectPolicyName("[PROJECT]", "[POLICY]");
  *   Policy response = orgPolicyClient.getPolicy(name);
@@ -94,8 +97,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
  * OrgPolicySettings orgPolicySettings =
  *     OrgPolicySettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -106,8 +112,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * OrgPolicySettings orgPolicySettings =
  *     OrgPolicySettings.newBuilder().setEndpoint(myEndpoint).build();
  * OrgPolicyClient orgPolicyClient = OrgPolicyClient.create(orgPolicySettings);
@@ -117,8 +126,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
  * OrgPolicySettings orgPolicySettings =
  *     OrgPolicySettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -184,8 +196,11 @@ public OrgPolicyStub getStub() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   FolderName parent = FolderName.of("[FOLDER]");
    *   for (Constraint element : orgPolicyClient.listConstraints(parent).iterateAll()) {
@@ -220,8 +235,11 @@ public final ListConstraintsPagedResponse listConstraints(FolderName 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 (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
    *   for (Constraint element : orgPolicyClient.listConstraints(parent).iterateAll()) {
@@ -256,8 +274,11 @@ public final ListConstraintsPagedResponse listConstraints(OrganizationName paren
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   for (Constraint element : orgPolicyClient.listConstraints(parent).iterateAll()) {
@@ -292,8 +313,11 @@ public final ListConstraintsPagedResponse listConstraints(ProjectName 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 (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   for (Constraint element : orgPolicyClient.listConstraints(parent).iterateAll()) {
@@ -325,8 +349,11 @@ public final ListConstraintsPagedResponse listConstraints(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 (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   ListConstraintsRequest request =
    *       ListConstraintsRequest.newBuilder()
@@ -354,8 +381,11 @@ public final ListConstraintsPagedResponse listConstraints(ListConstraintsRequest
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   FolderName parent = FolderName.of("[FOLDER]");
    *   for (Policy element : orgPolicyClient.listPolicies(parent).iterateAll()) {
@@ -456,8 +492,11 @@ public final ListPoliciesPagedResponse listPolicies(FolderName 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 (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
    *   for (Policy element : orgPolicyClient.listPolicies(parent).iterateAll()) {
@@ -492,8 +531,11 @@ public final ListPoliciesPagedResponse listPolicies(OrganizationName 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 (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   for (Policy element : orgPolicyClient.listPolicies(parent).iterateAll()) {
@@ -528,8 +570,11 @@ public final ListPoliciesPagedResponse listPolicies(ProjectName 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 (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   for (Policy element : orgPolicyClient.listPolicies(parent).iterateAll()) {
@@ -561,8 +606,11 @@ public final ListPoliciesPagedResponse listPolicies(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 (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   ListPoliciesRequest request =
    *       ListPoliciesRequest.newBuilder()
@@ -590,8 +638,11 @@ public final ListPoliciesPagedResponse listPolicies(ListPoliciesRequest 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 (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   ListPoliciesRequest request =
    *       ListPoliciesRequest.newBuilder()
@@ -619,8 +670,11 @@ public final ListPoliciesPagedResponse listPolicies(ListPoliciesRequest 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 (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   ListPoliciesRequest request =
    *       ListPoliciesRequest.newBuilder()
@@ -657,8 +711,11 @@ public final UnaryCallable listPolici
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   PolicyName name = PolicyName.ofProjectPolicyName("[PROJECT]", "[POLICY]");
    *   Policy response = orgPolicyClient.getPolicy(name);
@@ -684,8 +741,11 @@ public final Policy getPolicy(PolicyName 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 (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   String name = PolicyName.ofProjectPolicyName("[PROJECT]", "[POLICY]").toString();
    *   Policy response = orgPolicyClient.getPolicy(name);
@@ -710,8 +770,11 @@ public final Policy getPolicy(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 (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   GetPolicyRequest request =
    *       GetPolicyRequest.newBuilder()
@@ -738,8 +801,11 @@ public final Policy getPolicy(GetPolicyRequest 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 (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   GetPolicyRequest request =
    *       GetPolicyRequest.newBuilder()
@@ -765,8 +831,11 @@ public final UnaryCallable getPolicyCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   PolicyName name = PolicyName.ofProjectPolicyName("[PROJECT]", "[POLICY]");
    *   Policy response = orgPolicyClient.getEffectivePolicy(name);
@@ -794,8 +863,11 @@ public final Policy getEffectivePolicy(PolicyName 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 (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   String name = PolicyName.ofProjectPolicyName("[PROJECT]", "[POLICY]").toString();
    *   Policy response = orgPolicyClient.getEffectivePolicy(name);
@@ -821,8 +893,11 @@ public final Policy getEffectivePolicy(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 (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   GetEffectivePolicyRequest request =
    *       GetEffectivePolicyRequest.newBuilder()
@@ -849,8 +924,11 @@ public final Policy getEffectivePolicy(GetEffectivePolicyRequest 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 (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   GetEffectivePolicyRequest request =
    *       GetEffectivePolicyRequest.newBuilder()
@@ -877,8 +955,11 @@ public final UnaryCallable getEffectivePolicy
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   FolderName parent = FolderName.of("[FOLDER]");
    *   Policy policy = Policy.newBuilder().build();
@@ -918,8 +999,11 @@ public final Policy createPolicy(FolderName parent, Policy policy) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
    *   Policy policy = Policy.newBuilder().build();
@@ -959,8 +1043,11 @@ public final Policy createPolicy(OrganizationName parent, Policy policy) {
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   UpdatePolicyRequest request =
    *       UpdatePolicyRequest.newBuilder().setPolicy(Policy.newBuilder().build()).build();
@@ -1157,8 +1259,11 @@ public final Policy updatePolicy(UpdatePolicyRequest 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 (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   UpdatePolicyRequest request =
    *       UpdatePolicyRequest.newBuilder().setPolicy(Policy.newBuilder().build()).build();
@@ -1182,8 +1287,11 @@ public final UnaryCallable updatePolicyCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   PolicyName name = PolicyName.ofProjectPolicyName("[PROJECT]", "[POLICY]");
    *   orgPolicyClient.deletePolicy(name);
@@ -1209,8 +1317,11 @@ public final void deletePolicy(PolicyName 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 (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   String name = PolicyName.ofProjectPolicyName("[PROJECT]", "[POLICY]").toString();
    *   orgPolicyClient.deletePolicy(name);
@@ -1235,8 +1346,11 @@ public final void deletePolicy(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 (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   DeletePolicyRequest request =
    *       DeletePolicyRequest.newBuilder()
@@ -1263,8 +1377,11 @@ public final void deletePolicy(DeletePolicyRequest 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 (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
    *   DeletePolicyRequest request =
    *       DeletePolicyRequest.newBuilder()
diff --git a/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/OrgPolicySettings.java b/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/OrgPolicySettings.java
index fb0e60c15393..6e80a9b09b37 100644
--- a/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/OrgPolicySettings.java
+++ b/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/OrgPolicySettings.java
@@ -55,16 +55,16 @@
  * 

For example, to set the total timeout of getPolicy 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
  * OrgPolicySettings.Builder orgPolicySettingsBuilder = OrgPolicySettings.newBuilder();
  * orgPolicySettingsBuilder
  *     .getPolicySettings()
  *     .setRetrySettings(
- *         orgPolicySettingsBuilder
- *             .getPolicySettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         orgPolicySettingsBuilder.getPolicySettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * OrgPolicySettings orgPolicySettings = orgPolicySettingsBuilder.build();
diff --git a/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/package-info.java b/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/package-info.java
index 80d0099a14de..3da90f01156e 100644
--- a/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/package-info.java
+++ b/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/package-info.java
@@ -40,8 +40,11 @@
  * 

Sample for OrgPolicyClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
  *   PolicyName name = PolicyName.ofProjectPolicyName("[PROJECT]", "[POLICY]");
  *   Policy response = orgPolicyClient.getPolicy(name);
diff --git a/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/stub/HttpJsonOrgPolicyStub.java b/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/stub/HttpJsonOrgPolicyStub.java
index 9e0817749f2d..8b6dd77305f1 100644
--- a/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/stub/HttpJsonOrgPolicyStub.java
+++ b/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/stub/HttpJsonOrgPolicyStub.java
@@ -237,7 +237,8 @@ public class HttpJsonOrgPolicyStub extends OrgPolicyStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("policy", request.getPolicy()))
+                              ProtoRestSerializer.create()
+                                  .toBody("policy", request.getPolicy(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -276,7 +277,8 @@ public class HttpJsonOrgPolicyStub extends OrgPolicyStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("policy", request.getPolicy()))
+                              ProtoRestSerializer.create()
+                                  .toBody("policy", request.getPolicy(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/stub/OrgPolicyStubSettings.java b/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/stub/OrgPolicyStubSettings.java
index d77efc41cde6..df43a322f590 100644
--- a/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/stub/OrgPolicyStubSettings.java
+++ b/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/stub/OrgPolicyStubSettings.java
@@ -83,16 +83,16 @@
  * 

For example, to set the total timeout of getPolicy 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
  * OrgPolicyStubSettings.Builder orgPolicySettingsBuilder = OrgPolicyStubSettings.newBuilder();
  * orgPolicySettingsBuilder
  *     .getPolicySettings()
  *     .setRetrySettings(
- *         orgPolicySettingsBuilder
- *             .getPolicySettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         orgPolicySettingsBuilder.getPolicySettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * OrgPolicyStubSettings orgPolicySettings = orgPolicySettingsBuilder.build();
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/create/SyncCreateSetCredentialsProvider.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/create/SyncCreateSetCredentialsProvider.java
index 4a94c748a115..8d1625515649 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/create/SyncCreateSetCredentialsProvider.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/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
     OrgPolicySettings orgPolicySettings =
         OrgPolicySettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/create/SyncCreateSetCredentialsProvider1.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/create/SyncCreateSetCredentialsProvider1.java
index 96d43faa2912..81f4687bf3d8 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/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
     OrgPolicySettings orgPolicySettings =
         OrgPolicySettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/create/SyncCreateSetEndpoint.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/create/SyncCreateSetEndpoint.java
index 1db4dd32afac..368583f57a4a 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/create/SyncCreateSetEndpoint.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/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
     OrgPolicySettings orgPolicySettings =
         OrgPolicySettings.newBuilder().setEndpoint(myEndpoint).build();
     OrgPolicyClient orgPolicyClient = OrgPolicyClient.create(orgPolicySettings);
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/createpolicy/AsyncCreatePolicy.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/createpolicy/AsyncCreatePolicy.java
index ab33e963f377..3c28a80396d4 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/createpolicy/AsyncCreatePolicy.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/createpolicy/AsyncCreatePolicy.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreatePolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       CreatePolicyRequest request =
           CreatePolicyRequest.newBuilder()
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/createpolicy/SyncCreatePolicy.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/createpolicy/SyncCreatePolicy.java
index 7c06494cda51..cd080cfbee02 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/createpolicy/SyncCreatePolicy.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/createpolicy/SyncCreatePolicy.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreatePolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       CreatePolicyRequest request =
           CreatePolicyRequest.newBuilder()
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/createpolicy/SyncCreatePolicyFoldernamePolicy.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/createpolicy/SyncCreatePolicyFoldernamePolicy.java
index 1eb146dbc74c..8b446df68fc3 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/createpolicy/SyncCreatePolicyFoldernamePolicy.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/createpolicy/SyncCreatePolicyFoldernamePolicy.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreatePolicyFoldernamePolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       FolderName parent = FolderName.of("[FOLDER]");
       Policy policy = Policy.newBuilder().build();
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/createpolicy/SyncCreatePolicyOrganizationnamePolicy.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/createpolicy/SyncCreatePolicyOrganizationnamePolicy.java
index 064f570fa7b7..7cd9910acdf5 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/createpolicy/SyncCreatePolicyOrganizationnamePolicy.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/createpolicy/SyncCreatePolicyOrganizationnamePolicy.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreatePolicyOrganizationnamePolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
       Policy policy = Policy.newBuilder().build();
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/createpolicy/SyncCreatePolicyProjectnamePolicy.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/createpolicy/SyncCreatePolicyProjectnamePolicy.java
index 122ee18a4042..ce8535220fba 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/createpolicy/SyncCreatePolicyProjectnamePolicy.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/createpolicy/SyncCreatePolicyProjectnamePolicy.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreatePolicyProjectnamePolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       ProjectName parent = ProjectName.of("[PROJECT]");
       Policy policy = Policy.newBuilder().build();
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/createpolicy/SyncCreatePolicyStringPolicy.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/createpolicy/SyncCreatePolicyStringPolicy.java
index e64546be3d03..9b689311371a 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/createpolicy/SyncCreatePolicyStringPolicy.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/createpolicy/SyncCreatePolicyStringPolicy.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreatePolicyStringPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       String parent = ProjectName.of("[PROJECT]").toString();
       Policy policy = Policy.newBuilder().build();
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/deletepolicy/AsyncDeletePolicy.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/deletepolicy/AsyncDeletePolicy.java
index edc49362ed0e..6f7dabeaed39 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/deletepolicy/AsyncDeletePolicy.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/deletepolicy/AsyncDeletePolicy.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeletePolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       DeletePolicyRequest request =
           DeletePolicyRequest.newBuilder()
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/deletepolicy/SyncDeletePolicy.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/deletepolicy/SyncDeletePolicy.java
index 8a7d09053d2e..36c61db1c39c 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/deletepolicy/SyncDeletePolicy.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/deletepolicy/SyncDeletePolicy.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeletePolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       DeletePolicyRequest request =
           DeletePolicyRequest.newBuilder()
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/deletepolicy/SyncDeletePolicyPolicyname.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/deletepolicy/SyncDeletePolicyPolicyname.java
index 00a14fe71a31..94f579151cdb 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/deletepolicy/SyncDeletePolicyPolicyname.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/deletepolicy/SyncDeletePolicyPolicyname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeletePolicyPolicyname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       PolicyName name = PolicyName.ofProjectPolicyName("[PROJECT]", "[POLICY]");
       orgPolicyClient.deletePolicy(name);
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/deletepolicy/SyncDeletePolicyString.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/deletepolicy/SyncDeletePolicyString.java
index 42ee65a7b3ac..d8606470f2aa 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/deletepolicy/SyncDeletePolicyString.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/deletepolicy/SyncDeletePolicyString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeletePolicyString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       String name = PolicyName.ofProjectPolicyName("[PROJECT]", "[POLICY]").toString();
       orgPolicyClient.deletePolicy(name);
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/geteffectivepolicy/AsyncGetEffectivePolicy.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/geteffectivepolicy/AsyncGetEffectivePolicy.java
index c1605d5738d9..2b61b9c01fc3 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/geteffectivepolicy/AsyncGetEffectivePolicy.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/geteffectivepolicy/AsyncGetEffectivePolicy.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetEffectivePolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       GetEffectivePolicyRequest request =
           GetEffectivePolicyRequest.newBuilder()
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/geteffectivepolicy/SyncGetEffectivePolicy.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/geteffectivepolicy/SyncGetEffectivePolicy.java
index b987333b02a2..04dc17223b06 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/geteffectivepolicy/SyncGetEffectivePolicy.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/geteffectivepolicy/SyncGetEffectivePolicy.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetEffectivePolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       GetEffectivePolicyRequest request =
           GetEffectivePolicyRequest.newBuilder()
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/geteffectivepolicy/SyncGetEffectivePolicyPolicyname.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/geteffectivepolicy/SyncGetEffectivePolicyPolicyname.java
index 5924a52589d3..e359c4cfa9d5 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/geteffectivepolicy/SyncGetEffectivePolicyPolicyname.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/geteffectivepolicy/SyncGetEffectivePolicyPolicyname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetEffectivePolicyPolicyname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       PolicyName name = PolicyName.ofProjectPolicyName("[PROJECT]", "[POLICY]");
       Policy response = orgPolicyClient.getEffectivePolicy(name);
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/geteffectivepolicy/SyncGetEffectivePolicyString.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/geteffectivepolicy/SyncGetEffectivePolicyString.java
index 49cec4b83829..5b210c74bc32 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/geteffectivepolicy/SyncGetEffectivePolicyString.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/geteffectivepolicy/SyncGetEffectivePolicyString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetEffectivePolicyString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       String name = PolicyName.ofProjectPolicyName("[PROJECT]", "[POLICY]").toString();
       Policy response = orgPolicyClient.getEffectivePolicy(name);
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/getpolicy/AsyncGetPolicy.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/getpolicy/AsyncGetPolicy.java
index 54a9015836dc..0493931e583c 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/getpolicy/AsyncGetPolicy.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/getpolicy/AsyncGetPolicy.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       GetPolicyRequest request =
           GetPolicyRequest.newBuilder()
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/getpolicy/SyncGetPolicy.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/getpolicy/SyncGetPolicy.java
index a1a0b50d26ed..a71467ec532f 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/getpolicy/SyncGetPolicy.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/getpolicy/SyncGetPolicy.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       GetPolicyRequest request =
           GetPolicyRequest.newBuilder()
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/getpolicy/SyncGetPolicyPolicyname.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/getpolicy/SyncGetPolicyPolicyname.java
index 86e590a41f6b..9b055462a1ea 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/getpolicy/SyncGetPolicyPolicyname.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/getpolicy/SyncGetPolicyPolicyname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetPolicyPolicyname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       PolicyName name = PolicyName.ofProjectPolicyName("[PROJECT]", "[POLICY]");
       Policy response = orgPolicyClient.getPolicy(name);
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/getpolicy/SyncGetPolicyString.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/getpolicy/SyncGetPolicyString.java
index 80f32422664e..a98c6aae2bc4 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/getpolicy/SyncGetPolicyString.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/getpolicy/SyncGetPolicyString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetPolicyString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       String name = PolicyName.ofProjectPolicyName("[PROJECT]", "[POLICY]").toString();
       Policy response = orgPolicyClient.getPolicy(name);
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/AsyncListConstraints.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/AsyncListConstraints.java
index 66e835f4581d..3b0d492f21bc 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/AsyncListConstraints.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/AsyncListConstraints.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListConstraints() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       ListConstraintsRequest request =
           ListConstraintsRequest.newBuilder()
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/AsyncListConstraintsPaged.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/AsyncListConstraintsPaged.java
index d948fd4455b3..cbbc525d6b44 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/AsyncListConstraintsPaged.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/AsyncListConstraintsPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListConstraintsPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       ListConstraintsRequest request =
           ListConstraintsRequest.newBuilder()
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/SyncListConstraints.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/SyncListConstraints.java
index c4848c6cf36e..d1a8e83be030 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/SyncListConstraints.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/SyncListConstraints.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListConstraints() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       ListConstraintsRequest request =
           ListConstraintsRequest.newBuilder()
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/SyncListConstraintsFoldername.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/SyncListConstraintsFoldername.java
index dc7a77852ce9..b3b3e8eb725d 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/SyncListConstraintsFoldername.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/SyncListConstraintsFoldername.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListConstraintsFoldername() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       FolderName parent = FolderName.of("[FOLDER]");
       for (Constraint element : orgPolicyClient.listConstraints(parent).iterateAll()) {
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/SyncListConstraintsOrganizationname.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/SyncListConstraintsOrganizationname.java
index 915225136481..59d227af3fe4 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/SyncListConstraintsOrganizationname.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/SyncListConstraintsOrganizationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListConstraintsOrganizationname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
       for (Constraint element : orgPolicyClient.listConstraints(parent).iterateAll()) {
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/SyncListConstraintsProjectname.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/SyncListConstraintsProjectname.java
index 69adf9f1510b..4a41e66c192c 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/SyncListConstraintsProjectname.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/SyncListConstraintsProjectname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListConstraintsProjectname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       ProjectName parent = ProjectName.of("[PROJECT]");
       for (Constraint element : orgPolicyClient.listConstraints(parent).iterateAll()) {
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/SyncListConstraintsString.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/SyncListConstraintsString.java
index 7410d084db23..fa3e5f2965b5 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/SyncListConstraintsString.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listconstraints/SyncListConstraintsString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListConstraintsString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       String parent = ProjectName.of("[PROJECT]").toString();
       for (Constraint element : orgPolicyClient.listConstraints(parent).iterateAll()) {
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/AsyncListPolicies.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/AsyncListPolicies.java
index c910985323ce..d7cef1da118f 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/AsyncListPolicies.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/AsyncListPolicies.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListPolicies() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       ListPoliciesRequest request =
           ListPoliciesRequest.newBuilder()
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/AsyncListPoliciesPaged.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/AsyncListPoliciesPaged.java
index 610c64e54113..b727d121b97e 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/AsyncListPoliciesPaged.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/AsyncListPoliciesPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListPoliciesPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       ListPoliciesRequest request =
           ListPoliciesRequest.newBuilder()
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/SyncListPolicies.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/SyncListPolicies.java
index 895a3e7f1245..f93e0565110f 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/SyncListPolicies.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/SyncListPolicies.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListPolicies() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       ListPoliciesRequest request =
           ListPoliciesRequest.newBuilder()
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/SyncListPoliciesFoldername.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/SyncListPoliciesFoldername.java
index ea6213b9fe5a..5607a86b794c 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/SyncListPoliciesFoldername.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/SyncListPoliciesFoldername.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListPoliciesFoldername() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       FolderName parent = FolderName.of("[FOLDER]");
       for (Policy element : orgPolicyClient.listPolicies(parent).iterateAll()) {
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/SyncListPoliciesOrganizationname.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/SyncListPoliciesOrganizationname.java
index 0b55b95da4df..7e27f88b68d4 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/SyncListPoliciesOrganizationname.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/SyncListPoliciesOrganizationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListPoliciesOrganizationname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
       for (Policy element : orgPolicyClient.listPolicies(parent).iterateAll()) {
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/SyncListPoliciesProjectname.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/SyncListPoliciesProjectname.java
index 98c490d5920b..265de332fd7e 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/SyncListPoliciesProjectname.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/SyncListPoliciesProjectname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListPoliciesProjectname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       ProjectName parent = ProjectName.of("[PROJECT]");
       for (Policy element : orgPolicyClient.listPolicies(parent).iterateAll()) {
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/SyncListPoliciesString.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/SyncListPoliciesString.java
index 355ce72212b2..9e0eda78371d 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/SyncListPoliciesString.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/listpolicies/SyncListPoliciesString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListPoliciesString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       String parent = ProjectName.of("[PROJECT]").toString();
       for (Policy element : orgPolicyClient.listPolicies(parent).iterateAll()) {
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/updatepolicy/AsyncUpdatePolicy.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/updatepolicy/AsyncUpdatePolicy.java
index 8ef22ddf82fe..1fc71f53f43e 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/updatepolicy/AsyncUpdatePolicy.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/updatepolicy/AsyncUpdatePolicy.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdatePolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       UpdatePolicyRequest request =
           UpdatePolicyRequest.newBuilder().setPolicy(Policy.newBuilder().build()).build();
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/updatepolicy/SyncUpdatePolicy.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/updatepolicy/SyncUpdatePolicy.java
index bbbb23a58aa6..9fbfb6bd8f6c 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/updatepolicy/SyncUpdatePolicy.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/updatepolicy/SyncUpdatePolicy.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdatePolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       UpdatePolicyRequest request =
           UpdatePolicyRequest.newBuilder().setPolicy(Policy.newBuilder().build()).build();
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/updatepolicy/SyncUpdatePolicyPolicy.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/updatepolicy/SyncUpdatePolicyPolicy.java
index 184b69d902d1..b890a6c02436 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/updatepolicy/SyncUpdatePolicyPolicy.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicyclient/updatepolicy/SyncUpdatePolicyPolicy.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdatePolicyPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (OrgPolicyClient orgPolicyClient = OrgPolicyClient.create()) {
       Policy policy = Policy.newBuilder().build();
       Policy response = orgPolicyClient.updatePolicy(policy);
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicysettings/getpolicy/SyncGetPolicy.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicysettings/getpolicy/SyncGetPolicy.java
index 0c1c51cecfd9..b72666b8e9a3 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicysettings/getpolicy/SyncGetPolicy.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/orgpolicysettings/getpolicy/SyncGetPolicy.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     OrgPolicySettings.Builder orgPolicySettingsBuilder = OrgPolicySettings.newBuilder();
     orgPolicySettingsBuilder
         .getPolicySettings()
         .setRetrySettings(
-            orgPolicySettingsBuilder
-                .getPolicySettings()
-                .getRetrySettings()
-                .toBuilder()
+            orgPolicySettingsBuilder.getPolicySettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     OrgPolicySettings orgPolicySettings = orgPolicySettingsBuilder.build();
diff --git a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/stub/orgpolicystubsettings/getpolicy/SyncGetPolicy.java b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/stub/orgpolicystubsettings/getpolicy/SyncGetPolicy.java
index 618e1c74e31a..2819b2cdcc83 100644
--- a/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/stub/orgpolicystubsettings/getpolicy/SyncGetPolicy.java
+++ b/java-orgpolicy/samples/snippets/generated/com/google/cloud/orgpolicy/v2/stub/orgpolicystubsettings/getpolicy/SyncGetPolicy.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     OrgPolicyStubSettings.Builder orgPolicySettingsBuilder = OrgPolicyStubSettings.newBuilder();
     orgPolicySettingsBuilder
         .getPolicySettings()
         .setRetrySettings(
-            orgPolicySettingsBuilder
-                .getPolicySettings()
-                .getRetrySettings()
-                .toBuilder()
+            orgPolicySettingsBuilder.getPolicySettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     OrgPolicyStubSettings orgPolicySettings = orgPolicySettingsBuilder.build();