From 7d509999e4e3c0e40c6ddfd2c061ae1c3e1fa416 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 9 Sep 2022 16:42:22 +0000 Subject: [PATCH] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#826) - [ ] 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 --- .../v1/SecretManagerServiceClient.java | 413 +++++++++++++----- .../v1/SecretManagerServiceSettings.java | 7 +- .../cloud/secretmanager/v1/package-info.java | 7 +- .../HttpJsonSecretManagerServiceStub.java | 18 +- .../SecretManagerServiceStubSettings.java | 7 +- .../AsyncAccessSecretVersion.java | 7 +- .../SyncAccessSecretVersion.java | 7 +- ...cAccessSecretVersionSecretversionname.java | 7 +- .../SyncAccessSecretVersionString.java | 7 +- .../AsyncAddSecretVersion.java | 7 +- .../SyncAddSecretVersion.java | 7 +- ...dSecretVersionSecretnameSecretpayload.java | 7 +- ...ncAddSecretVersionStringSecretpayload.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createsecret/AsyncCreateSecret.java | 7 +- .../createsecret/SyncCreateSecret.java | 7 +- ...ncCreateSecretProjectnameStringSecret.java | 7 +- .../SyncCreateSecretStringStringSecret.java | 7 +- .../deletesecret/AsyncDeleteSecret.java | 7 +- .../deletesecret/SyncDeleteSecret.java | 7 +- .../SyncDeleteSecretSecretname.java | 7 +- .../deletesecret/SyncDeleteSecretString.java | 7 +- .../AsyncDestroySecretVersion.java | 7 +- .../SyncDestroySecretVersion.java | 7 +- ...DestroySecretVersionSecretversionname.java | 7 +- .../SyncDestroySecretVersionString.java | 7 +- .../AsyncDisableSecretVersion.java | 7 +- .../SyncDisableSecretVersion.java | 7 +- ...DisableSecretVersionSecretversionname.java | 7 +- .../SyncDisableSecretVersionString.java | 7 +- .../AsyncEnableSecretVersion.java | 7 +- .../SyncEnableSecretVersion.java | 7 +- ...cEnableSecretVersionSecretversionname.java | 7 +- .../SyncEnableSecretVersionString.java | 7 +- .../getiampolicy/AsyncGetIamPolicy.java | 7 +- .../getiampolicy/SyncGetIamPolicy.java | 7 +- .../getsecret/AsyncGetSecret.java | 7 +- .../getsecret/SyncGetSecret.java | 7 +- .../getsecret/SyncGetSecretSecretname.java | 7 +- .../getsecret/SyncGetSecretString.java | 7 +- .../AsyncGetSecretVersion.java | 7 +- .../SyncGetSecretVersion.java | 7 +- ...SyncGetSecretVersionSecretversionname.java | 7 +- .../SyncGetSecretVersionString.java | 7 +- .../listsecrets/AsyncListSecrets.java | 7 +- .../listsecrets/AsyncListSecretsPaged.java | 7 +- .../listsecrets/SyncListSecrets.java | 7 +- .../SyncListSecretsProjectname.java | 7 +- .../listsecrets/SyncListSecretsString.java | 7 +- .../AsyncListSecretVersions.java | 7 +- .../AsyncListSecretVersionsPaged.java | 7 +- .../SyncListSecretVersions.java | 7 +- .../SyncListSecretVersionsSecretname.java | 7 +- .../SyncListSecretVersionsString.java | 7 +- .../setiampolicy/AsyncSetIamPolicy.java | 7 +- .../setiampolicy/SyncSetIamPolicy.java | 7 +- .../AsyncTestIamPermissions.java | 7 +- .../SyncTestIamPermissions.java | 7 +- .../updatesecret/AsyncUpdateSecret.java | 7 +- .../updatesecret/SyncUpdateSecret.java | 7 +- .../SyncUpdateSecretSecretFieldmask.java | 7 +- .../createsecret/SyncCreateSecret.java | 7 +- .../createsecret/SyncCreateSecret.java | 7 +- 65 files changed, 620 insertions(+), 252 deletions(-) diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java index 6fa339b7e403..75c850f335a0 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java @@ -55,8 +55,11 @@ * calls that map to API methods. Sample code to get started: * *
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (SecretManagerServiceClient secretManagerServiceClient =
  *     SecretManagerServiceClient.create()) {
  *   ProjectName parent = ProjectName.of("[PROJECT]");
@@ -96,8 +99,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
  * SecretManagerServiceSettings secretManagerServiceSettings =
  *     SecretManagerServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -109,8 +115,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
  * SecretManagerServiceSettings secretManagerServiceSettings =
  *     SecretManagerServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * SecretManagerServiceClient secretManagerServiceClient =
@@ -121,8 +130,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
  * SecretManagerServiceSettings secretManagerServiceSettings =
  *     SecretManagerServiceSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -191,8 +203,11 @@ public SecretManagerServiceStub 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 (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
@@ -221,8 +236,11 @@ public final ListSecretsPagedResponse listSecrets(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 (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
@@ -248,8 +266,11 @@ public final ListSecretsPagedResponse listSecrets(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 (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   ListSecretsRequest request =
@@ -279,8 +300,11 @@ public final ListSecretsPagedResponse listSecrets(ListSecretsRequest 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 (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   ListSecretsRequest request =
@@ -311,8 +335,11 @@ public final ListSecretsPagedResponse listSecrets(ListSecretsRequest 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 (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   ListSecretsRequest request =
@@ -350,8 +377,11 @@ public final UnaryCallable listSecretsC
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   CreateSecretRequest request =
@@ -457,8 +493,11 @@ public final Secret createSecret(CreateSecretRequest 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 (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   CreateSecretRequest request =
@@ -486,8 +525,11 @@ public final UnaryCallable createSecretCallable() {
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   AddSecretVersionRequest request =
@@ -579,8 +627,11 @@ public final SecretVersion addSecretVersion(AddSecretVersionRequest 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 (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   AddSecretVersionRequest request =
@@ -606,8 +657,11 @@ public final UnaryCallable addSecretVers
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   SecretName name = SecretName.of("[PROJECT]", "[SECRET]");
@@ -632,8 +686,11 @@ public final Secret getSecret(SecretName 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 (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   String name = SecretName.of("[PROJECT]", "[SECRET]").toString();
@@ -657,8 +714,11 @@ public final Secret getSecret(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 (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   GetSecretRequest request =
@@ -683,8 +743,11 @@ public final Secret getSecret(GetSecretRequest 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 (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   GetSecretRequest request =
@@ -708,8 +771,11 @@ public final UnaryCallable getSecretCallable() {
    * 

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   UpdateSecretRequest request =
@@ -763,8 +832,11 @@ public final Secret updateSecret(UpdateSecretRequest 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 (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   UpdateSecretRequest request =
@@ -790,8 +862,11 @@ public final UnaryCallable updateSecretCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   SecretName name = SecretName.of("[PROJECT]", "[SECRET]");
@@ -816,8 +891,11 @@ public final void deleteSecret(SecretName 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 (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   String name = SecretName.of("[PROJECT]", "[SECRET]").toString();
@@ -841,8 +919,11 @@ public final void deleteSecret(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 (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   DeleteSecretRequest request =
@@ -868,8 +949,11 @@ public final void deleteSecret(DeleteSecretRequest 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 (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   DeleteSecretRequest request =
@@ -896,8 +980,11 @@ public final UnaryCallable deleteSecretCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   SecretName parent = SecretName.of("[PROJECT]", "[SECRET]");
@@ -929,8 +1016,11 @@ public final ListSecretVersionsPagedResponse listSecretVersions(SecretName 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 (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   String parent = SecretName.of("[PROJECT]", "[SECRET]").toString();
@@ -960,8 +1050,11 @@ public final ListSecretVersionsPagedResponse listSecretVersions(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 (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   ListSecretVersionsRequest request =
@@ -994,8 +1087,11 @@ public final ListSecretVersionsPagedResponse listSecretVersions(
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   SecretVersionName name = SecretVersionName.of("[PROJECT]", "[SECRET]", "[SECRET_VERSION]");
@@ -1101,8 +1203,11 @@ public final SecretVersion getSecretVersion(SecretVersionName 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 (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   String name = SecretVersionName.of("[PROJECT]", "[SECRET]", "[SECRET_VERSION]").toString();
@@ -1132,8 +1237,11 @@ public final SecretVersion getSecretVersion(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 (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   GetSecretVersionRequest request =
@@ -1161,8 +1269,11 @@ public final SecretVersion getSecretVersion(GetSecretVersionRequest 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 (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   GetSecretVersionRequest request =
@@ -1191,8 +1302,11 @@ public final UnaryCallable getSecretVers
    * 

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   String name = SecretVersionName.of("[PROJECT]", "[SECRET]", "[SECRET_VERSION]").toString();
@@ -1259,8 +1376,11 @@ public final AccessSecretVersionResponse accessSecretVersion(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 (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   AccessSecretVersionRequest request =
@@ -1290,8 +1410,11 @@ public final AccessSecretVersionResponse accessSecretVersion(AccessSecretVersion
    * 

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   SecretVersionName name = SecretVersionName.of("[PROJECT]", "[SECRET]", "[SECRET_VERSION]");
@@ -1354,8 +1480,11 @@ public final SecretVersion disableSecretVersion(SecretVersionName 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 (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   String name = SecretVersionName.of("[PROJECT]", "[SECRET]", "[SECRET_VERSION]").toString();
@@ -1385,8 +1514,11 @@ public final SecretVersion disableSecretVersion(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 (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   DisableSecretVersionRequest request =
@@ -1416,8 +1548,11 @@ public final SecretVersion disableSecretVersion(DisableSecretVersionRequest requ
    * 

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   SecretVersionName name = SecretVersionName.of("[PROJECT]", "[SECRET]", "[SECRET_VERSION]");
@@ -1481,8 +1619,11 @@ public final SecretVersion enableSecretVersion(SecretVersionName 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 (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   String name = SecretVersionName.of("[PROJECT]", "[SECRET]", "[SECRET_VERSION]").toString();
@@ -1512,8 +1653,11 @@ public final SecretVersion enableSecretVersion(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 (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   EnableSecretVersionRequest request =
@@ -1543,8 +1687,11 @@ public final SecretVersion enableSecretVersion(EnableSecretVersionRequest reques
    * 

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   SecretVersionName name = SecretVersionName.of("[PROJECT]", "[SECRET]", "[SECRET_VERSION]");
@@ -1610,8 +1760,11 @@ public final SecretVersion destroySecretVersion(SecretVersionName 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 (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   String name = SecretVersionName.of("[PROJECT]", "[SECRET]", "[SECRET_VERSION]").toString();
@@ -1642,8 +1795,11 @@ public final SecretVersion destroySecretVersion(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 (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   DestroySecretVersionRequest request =
@@ -1674,8 +1830,11 @@ public final SecretVersion destroySecretVersion(DestroySecretVersionRequest requ
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (SecretManagerServiceClient secretManagerServiceClient =
    *     SecretManagerServiceClient.create()) {
    *   TestIamPermissionsRequest request =
diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceSettings.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceSettings.java
index 2ea377e69731..6b8ad329dc2f 100644
--- a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceSettings.java
+++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceSettings.java
@@ -60,8 +60,11 @@
  * 

For example, to set the total timeout of createSecret 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
  * SecretManagerServiceSettings.Builder secretManagerServiceSettingsBuilder =
  *     SecretManagerServiceSettings.newBuilder();
  * secretManagerServiceSettingsBuilder
diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/package-info.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/package-info.java
index 2741aced639b..f88db290edd7 100644
--- a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/package-info.java
+++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/package-info.java
@@ -32,8 +32,11 @@
  * 

Sample for SecretManagerServiceClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (SecretManagerServiceClient secretManagerServiceClient =
  *     SecretManagerServiceClient.create()) {
  *   ProjectName parent = ProjectName.of("[PROJECT]");
diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/HttpJsonSecretManagerServiceStub.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/HttpJsonSecretManagerServiceStub.java
index 66d404367d2a..7c43c65cc476 100644
--- a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/HttpJsonSecretManagerServiceStub.java
+++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/HttpJsonSecretManagerServiceStub.java
@@ -137,7 +137,8 @@ public class HttpJsonSecretManagerServiceStub extends SecretManagerServiceStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("secret", request.getSecret()))
+                              ProtoRestSerializer.create()
+                                  .toBody("secret", request.getSecret(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -174,7 +175,7 @@ public class HttpJsonSecretManagerServiceStub extends SecretManagerServiceStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearParent().build()))
+                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -243,7 +244,8 @@ public class HttpJsonSecretManagerServiceStub extends SecretManagerServiceStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("secret", request.getSecret()))
+                              ProtoRestSerializer.create()
+                                  .toBody("secret", request.getSecret(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -419,7 +421,7 @@ public class HttpJsonSecretManagerServiceStub extends SecretManagerServiceStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -456,7 +458,7 @@ public class HttpJsonSecretManagerServiceStub extends SecretManagerServiceStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -493,7 +495,7 @@ public class HttpJsonSecretManagerServiceStub extends SecretManagerServiceStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -529,7 +531,7 @@ public class HttpJsonSecretManagerServiceStub extends SecretManagerServiceStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearResource().build()))
+                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -600,7 +602,7 @@ public class HttpJsonSecretManagerServiceStub extends SecretManagerServiceStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearResource().build()))
+                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java
index a0855ceadf23..3fee011227cb 100644
--- a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java
+++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java
@@ -94,8 +94,11 @@
  * 

For example, to set the total timeout of createSecret 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
  * SecretManagerServiceStubSettings.Builder secretManagerServiceSettingsBuilder =
  *     SecretManagerServiceStubSettings.newBuilder();
  * secretManagerServiceSettingsBuilder
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/accesssecretversion/AsyncAccessSecretVersion.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/accesssecretversion/AsyncAccessSecretVersion.java
index 289aac3c77b0..e59cded6a7bf 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/accesssecretversion/AsyncAccessSecretVersion.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/accesssecretversion/AsyncAccessSecretVersion.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncAccessSecretVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       AccessSecretVersionRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/accesssecretversion/SyncAccessSecretVersion.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/accesssecretversion/SyncAccessSecretVersion.java
index a3958303e9bb..d900c29e18d9 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/accesssecretversion/SyncAccessSecretVersion.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/accesssecretversion/SyncAccessSecretVersion.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAccessSecretVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       AccessSecretVersionRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/accesssecretversion/SyncAccessSecretVersionSecretversionname.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/accesssecretversion/SyncAccessSecretVersionSecretversionname.java
index da0e29914839..0ab630a02f8f 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/accesssecretversion/SyncAccessSecretVersionSecretversionname.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/accesssecretversion/SyncAccessSecretVersionSecretversionname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAccessSecretVersionSecretversionname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       SecretVersionName name = SecretVersionName.of("[PROJECT]", "[SECRET]", "[SECRET_VERSION]");
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/accesssecretversion/SyncAccessSecretVersionString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/accesssecretversion/SyncAccessSecretVersionString.java
index bfe2c2c17dc0..20e3edc5afc8 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/accesssecretversion/SyncAccessSecretVersionString.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/accesssecretversion/SyncAccessSecretVersionString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAccessSecretVersionString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       String name = SecretVersionName.of("[PROJECT]", "[SECRET]", "[SECRET_VERSION]").toString();
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/addsecretversion/AsyncAddSecretVersion.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/addsecretversion/AsyncAddSecretVersion.java
index d599c43ebf99..a2fcabfe66da 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/addsecretversion/AsyncAddSecretVersion.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/addsecretversion/AsyncAddSecretVersion.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncAddSecretVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       AddSecretVersionRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/addsecretversion/SyncAddSecretVersion.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/addsecretversion/SyncAddSecretVersion.java
index 90490f7e6cd0..0735a58c7615 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/addsecretversion/SyncAddSecretVersion.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/addsecretversion/SyncAddSecretVersion.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAddSecretVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       AddSecretVersionRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/addsecretversion/SyncAddSecretVersionSecretnameSecretpayload.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/addsecretversion/SyncAddSecretVersionSecretnameSecretpayload.java
index 2b55d3a40d15..a56cd26fe8a0 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/addsecretversion/SyncAddSecretVersionSecretnameSecretpayload.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/addsecretversion/SyncAddSecretVersionSecretnameSecretpayload.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAddSecretVersionSecretnameSecretpayload() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       SecretName parent = SecretName.of("[PROJECT]", "[SECRET]");
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/addsecretversion/SyncAddSecretVersionStringSecretpayload.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/addsecretversion/SyncAddSecretVersionStringSecretpayload.java
index 921c8209325d..f0aab525e23b 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/addsecretversion/SyncAddSecretVersionStringSecretpayload.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/addsecretversion/SyncAddSecretVersionStringSecretpayload.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAddSecretVersionStringSecretpayload() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       String parent = SecretName.of("[PROJECT]", "[SECRET]").toString();
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/create/SyncCreateSetCredentialsProvider.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/create/SyncCreateSetCredentialsProvider.java
index c4c7e8edc867..b1575e4feb76 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/create/SyncCreateSetCredentialsProvider.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/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
     SecretManagerServiceSettings secretManagerServiceSettings =
         SecretManagerServiceSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/create/SyncCreateSetCredentialsProvider1.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/create/SyncCreateSetCredentialsProvider1.java
index 8aea5af9177c..7c0a256d5695 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/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
     SecretManagerServiceSettings secretManagerServiceSettings =
         SecretManagerServiceSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/create/SyncCreateSetEndpoint.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/create/SyncCreateSetEndpoint.java
index 930efd790ef0..f1ffdcd79fcb 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/create/SyncCreateSetEndpoint.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/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
     SecretManagerServiceSettings secretManagerServiceSettings =
         SecretManagerServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
     SecretManagerServiceClient secretManagerServiceClient =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/createsecret/AsyncCreateSecret.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/createsecret/AsyncCreateSecret.java
index f4e9d8791532..6c78a8758604 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/createsecret/AsyncCreateSecret.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/createsecret/AsyncCreateSecret.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateSecret() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       CreateSecretRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/createsecret/SyncCreateSecret.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/createsecret/SyncCreateSecret.java
index 7538ac33f534..93f4c9f79069 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/createsecret/SyncCreateSecret.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/createsecret/SyncCreateSecret.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSecret() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       CreateSecretRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/createsecret/SyncCreateSecretProjectnameStringSecret.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/createsecret/SyncCreateSecretProjectnameStringSecret.java
index 37901d7601e5..49d256a61d7c 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/createsecret/SyncCreateSecretProjectnameStringSecret.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/createsecret/SyncCreateSecretProjectnameStringSecret.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSecretProjectnameStringSecret() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       ProjectName parent = ProjectName.of("[PROJECT]");
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/createsecret/SyncCreateSecretStringStringSecret.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/createsecret/SyncCreateSecretStringStringSecret.java
index 6676f182729e..4fa816b65103 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/createsecret/SyncCreateSecretStringStringSecret.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/createsecret/SyncCreateSecretStringStringSecret.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSecretStringStringSecret() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       String parent = ProjectName.of("[PROJECT]").toString();
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/deletesecret/AsyncDeleteSecret.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/deletesecret/AsyncDeleteSecret.java
index 3fd469cf6348..044ff7929b61 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/deletesecret/AsyncDeleteSecret.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/deletesecret/AsyncDeleteSecret.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteSecret() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       DeleteSecretRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/deletesecret/SyncDeleteSecret.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/deletesecret/SyncDeleteSecret.java
index 13b6656330de..88eca7991ab0 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/deletesecret/SyncDeleteSecret.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/deletesecret/SyncDeleteSecret.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteSecret() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       DeleteSecretRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/deletesecret/SyncDeleteSecretSecretname.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/deletesecret/SyncDeleteSecretSecretname.java
index 030cbc8d5175..9b2b7ac00577 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/deletesecret/SyncDeleteSecretSecretname.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/deletesecret/SyncDeleteSecretSecretname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteSecretSecretname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       SecretName name = SecretName.of("[PROJECT]", "[SECRET]");
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/deletesecret/SyncDeleteSecretString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/deletesecret/SyncDeleteSecretString.java
index b44ae55e42d3..efc4eb51c766 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/deletesecret/SyncDeleteSecretString.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/deletesecret/SyncDeleteSecretString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteSecretString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       String name = SecretName.of("[PROJECT]", "[SECRET]").toString();
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/destroysecretversion/AsyncDestroySecretVersion.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/destroysecretversion/AsyncDestroySecretVersion.java
index 1d53ab024892..1ba6050a0c6c 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/destroysecretversion/AsyncDestroySecretVersion.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/destroysecretversion/AsyncDestroySecretVersion.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDestroySecretVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       DestroySecretVersionRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/destroysecretversion/SyncDestroySecretVersion.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/destroysecretversion/SyncDestroySecretVersion.java
index 02112f537667..7f2a2ebb8348 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/destroysecretversion/SyncDestroySecretVersion.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/destroysecretversion/SyncDestroySecretVersion.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDestroySecretVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       DestroySecretVersionRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/destroysecretversion/SyncDestroySecretVersionSecretversionname.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/destroysecretversion/SyncDestroySecretVersionSecretversionname.java
index f12de1369d0c..9b387f45e75b 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/destroysecretversion/SyncDestroySecretVersionSecretversionname.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/destroysecretversion/SyncDestroySecretVersionSecretversionname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDestroySecretVersionSecretversionname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       SecretVersionName name = SecretVersionName.of("[PROJECT]", "[SECRET]", "[SECRET_VERSION]");
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/destroysecretversion/SyncDestroySecretVersionString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/destroysecretversion/SyncDestroySecretVersionString.java
index ed3f7376a60b..9ef4fa7e248b 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/destroysecretversion/SyncDestroySecretVersionString.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/destroysecretversion/SyncDestroySecretVersionString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDestroySecretVersionString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       String name = SecretVersionName.of("[PROJECT]", "[SECRET]", "[SECRET_VERSION]").toString();
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/disablesecretversion/AsyncDisableSecretVersion.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/disablesecretversion/AsyncDisableSecretVersion.java
index ffc7e7bfa371..c30a18cc97ab 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/disablesecretversion/AsyncDisableSecretVersion.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/disablesecretversion/AsyncDisableSecretVersion.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDisableSecretVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       DisableSecretVersionRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/disablesecretversion/SyncDisableSecretVersion.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/disablesecretversion/SyncDisableSecretVersion.java
index 1e5b38078ace..d32b76cf0981 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/disablesecretversion/SyncDisableSecretVersion.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/disablesecretversion/SyncDisableSecretVersion.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDisableSecretVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       DisableSecretVersionRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/disablesecretversion/SyncDisableSecretVersionSecretversionname.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/disablesecretversion/SyncDisableSecretVersionSecretversionname.java
index b8a0232eb037..6634104cf213 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/disablesecretversion/SyncDisableSecretVersionSecretversionname.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/disablesecretversion/SyncDisableSecretVersionSecretversionname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDisableSecretVersionSecretversionname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       SecretVersionName name = SecretVersionName.of("[PROJECT]", "[SECRET]", "[SECRET_VERSION]");
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/disablesecretversion/SyncDisableSecretVersionString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/disablesecretversion/SyncDisableSecretVersionString.java
index c44efcf578d9..96d04629866b 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/disablesecretversion/SyncDisableSecretVersionString.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/disablesecretversion/SyncDisableSecretVersionString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDisableSecretVersionString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       String name = SecretVersionName.of("[PROJECT]", "[SECRET]", "[SECRET_VERSION]").toString();
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/enablesecretversion/AsyncEnableSecretVersion.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/enablesecretversion/AsyncEnableSecretVersion.java
index b02a9f9a3cd5..e80129080254 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/enablesecretversion/AsyncEnableSecretVersion.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/enablesecretversion/AsyncEnableSecretVersion.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncEnableSecretVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       EnableSecretVersionRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/enablesecretversion/SyncEnableSecretVersion.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/enablesecretversion/SyncEnableSecretVersion.java
index cc6acfcabee8..0124846f7ed5 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/enablesecretversion/SyncEnableSecretVersion.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/enablesecretversion/SyncEnableSecretVersion.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncEnableSecretVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       EnableSecretVersionRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/enablesecretversion/SyncEnableSecretVersionSecretversionname.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/enablesecretversion/SyncEnableSecretVersionSecretversionname.java
index cc0f2d76c464..23c5eeb0b947 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/enablesecretversion/SyncEnableSecretVersionSecretversionname.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/enablesecretversion/SyncEnableSecretVersionSecretversionname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncEnableSecretVersionSecretversionname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       SecretVersionName name = SecretVersionName.of("[PROJECT]", "[SECRET]", "[SECRET_VERSION]");
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/enablesecretversion/SyncEnableSecretVersionString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/enablesecretversion/SyncEnableSecretVersionString.java
index 8016728bd6f4..54a7ad132e65 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/enablesecretversion/SyncEnableSecretVersionString.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/enablesecretversion/SyncEnableSecretVersionString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncEnableSecretVersionString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       String name = SecretVersionName.of("[PROJECT]", "[SECRET]", "[SECRET_VERSION]").toString();
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getiampolicy/AsyncGetIamPolicy.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getiampolicy/AsyncGetIamPolicy.java
index 2a4dd3bceee1..8509f1ac35d6 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getiampolicy/AsyncGetIamPolicy.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getiampolicy/AsyncGetIamPolicy.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       GetIamPolicyRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getiampolicy/SyncGetIamPolicy.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getiampolicy/SyncGetIamPolicy.java
index 7d6489ddbc51..ed0be73da38c 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getiampolicy/SyncGetIamPolicy.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getiampolicy/SyncGetIamPolicy.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       GetIamPolicyRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecret/AsyncGetSecret.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecret/AsyncGetSecret.java
index 0741dc187dcd..1f812a364356 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecret/AsyncGetSecret.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecret/AsyncGetSecret.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetSecret() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       GetSecretRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecret/SyncGetSecret.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecret/SyncGetSecret.java
index 5f94c5ab00fc..2c7397434d09 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecret/SyncGetSecret.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecret/SyncGetSecret.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetSecret() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       GetSecretRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecret/SyncGetSecretSecretname.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecret/SyncGetSecretSecretname.java
index 724aa14880ef..912959bd05db 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecret/SyncGetSecretSecretname.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecret/SyncGetSecretSecretname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetSecretSecretname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       SecretName name = SecretName.of("[PROJECT]", "[SECRET]");
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecret/SyncGetSecretString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecret/SyncGetSecretString.java
index 05c3506fa2c7..b1f2ea1f5815 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecret/SyncGetSecretString.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecret/SyncGetSecretString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetSecretString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       String name = SecretName.of("[PROJECT]", "[SECRET]").toString();
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecretversion/AsyncGetSecretVersion.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecretversion/AsyncGetSecretVersion.java
index 70723261f895..4732fc51f322 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecretversion/AsyncGetSecretVersion.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecretversion/AsyncGetSecretVersion.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetSecretVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       GetSecretVersionRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecretversion/SyncGetSecretVersion.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecretversion/SyncGetSecretVersion.java
index 3af6008c263d..162ff940f766 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecretversion/SyncGetSecretVersion.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecretversion/SyncGetSecretVersion.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetSecretVersion() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       GetSecretVersionRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecretversion/SyncGetSecretVersionSecretversionname.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecretversion/SyncGetSecretVersionSecretversionname.java
index da5869df0ecd..384c2bad48ee 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecretversion/SyncGetSecretVersionSecretversionname.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecretversion/SyncGetSecretVersionSecretversionname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetSecretVersionSecretversionname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       SecretVersionName name = SecretVersionName.of("[PROJECT]", "[SECRET]", "[SECRET_VERSION]");
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecretversion/SyncGetSecretVersionString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecretversion/SyncGetSecretVersionString.java
index adb157f38b81..fff131f9de61 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecretversion/SyncGetSecretVersionString.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/getsecretversion/SyncGetSecretVersionString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetSecretVersionString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       String name = SecretVersionName.of("[PROJECT]", "[SECRET]", "[SECRET_VERSION]").toString();
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecrets/AsyncListSecrets.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecrets/AsyncListSecrets.java
index f65f68146e78..26e416cf2286 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecrets/AsyncListSecrets.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecrets/AsyncListSecrets.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListSecrets() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       ListSecretsRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecrets/AsyncListSecretsPaged.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecrets/AsyncListSecretsPaged.java
index 4b41446dcd6d..13afe7066a67 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecrets/AsyncListSecretsPaged.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecrets/AsyncListSecretsPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListSecretsPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       ListSecretsRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecrets/SyncListSecrets.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecrets/SyncListSecrets.java
index 0bd6d3798559..f41fdbecaed0 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecrets/SyncListSecrets.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecrets/SyncListSecrets.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListSecrets() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       ListSecretsRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecrets/SyncListSecretsProjectname.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecrets/SyncListSecretsProjectname.java
index c60ac40f479f..45dc0daccda5 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecrets/SyncListSecretsProjectname.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecrets/SyncListSecretsProjectname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListSecretsProjectname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       ProjectName parent = ProjectName.of("[PROJECT]");
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecrets/SyncListSecretsString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecrets/SyncListSecretsString.java
index d491818d4daa..7b60b647c4be 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecrets/SyncListSecretsString.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecrets/SyncListSecretsString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListSecretsString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       String parent = ProjectName.of("[PROJECT]").toString();
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecretversions/AsyncListSecretVersions.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecretversions/AsyncListSecretVersions.java
index 464744331539..1d4964c45565 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecretversions/AsyncListSecretVersions.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecretversions/AsyncListSecretVersions.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListSecretVersions() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       ListSecretVersionsRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecretversions/AsyncListSecretVersionsPaged.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecretversions/AsyncListSecretVersionsPaged.java
index b54fabac975f..5dc0761699c6 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecretversions/AsyncListSecretVersionsPaged.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecretversions/AsyncListSecretVersionsPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListSecretVersionsPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       ListSecretVersionsRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecretversions/SyncListSecretVersions.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecretversions/SyncListSecretVersions.java
index 60e9dea75e0d..b39375297cdb 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecretversions/SyncListSecretVersions.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecretversions/SyncListSecretVersions.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListSecretVersions() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       ListSecretVersionsRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecretversions/SyncListSecretVersionsSecretname.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecretversions/SyncListSecretVersionsSecretname.java
index 29f9b0368666..4f812d0da9e3 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecretversions/SyncListSecretVersionsSecretname.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecretversions/SyncListSecretVersionsSecretname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListSecretVersionsSecretname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       SecretName parent = SecretName.of("[PROJECT]", "[SECRET]");
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecretversions/SyncListSecretVersionsString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecretversions/SyncListSecretVersionsString.java
index 86f8e8ea1f9f..77f1a1035643 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecretversions/SyncListSecretVersionsString.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/listsecretversions/SyncListSecretVersionsString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListSecretVersionsString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       String parent = SecretName.of("[PROJECT]", "[SECRET]").toString();
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/setiampolicy/AsyncSetIamPolicy.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/setiampolicy/AsyncSetIamPolicy.java
index a9e5d82d2e46..a97b0cb760b4 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/setiampolicy/AsyncSetIamPolicy.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/setiampolicy/AsyncSetIamPolicy.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       SetIamPolicyRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/setiampolicy/SyncSetIamPolicy.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/setiampolicy/SyncSetIamPolicy.java
index ea6ff3f1221b..ae4ef8ed1900 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/setiampolicy/SyncSetIamPolicy.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/setiampolicy/SyncSetIamPolicy.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       SetIamPolicyRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/testiampermissions/AsyncTestIamPermissions.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/testiampermissions/AsyncTestIamPermissions.java
index ec826530ab81..165c77a1e194 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/testiampermissions/AsyncTestIamPermissions.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/testiampermissions/AsyncTestIamPermissions.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncTestIamPermissions() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       TestIamPermissionsRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/testiampermissions/SyncTestIamPermissions.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/testiampermissions/SyncTestIamPermissions.java
index eebef3a28133..9957aa8d32d0 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/testiampermissions/SyncTestIamPermissions.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/testiampermissions/SyncTestIamPermissions.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncTestIamPermissions() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       TestIamPermissionsRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/updatesecret/AsyncUpdateSecret.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/updatesecret/AsyncUpdateSecret.java
index b28e8421462e..5e9546ecd660 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/updatesecret/AsyncUpdateSecret.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/updatesecret/AsyncUpdateSecret.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateSecret() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       UpdateSecretRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/updatesecret/SyncUpdateSecret.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/updatesecret/SyncUpdateSecret.java
index 3b88952aa777..0237c25d88fc 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/updatesecret/SyncUpdateSecret.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/updatesecret/SyncUpdateSecret.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateSecret() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       UpdateSecretRequest request =
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/updatesecret/SyncUpdateSecretSecretFieldmask.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/updatesecret/SyncUpdateSecretSecretFieldmask.java
index fa11b4aad97c..84cc1ea8effd 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/updatesecret/SyncUpdateSecretSecretFieldmask.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerserviceclient/updatesecret/SyncUpdateSecretSecretFieldmask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateSecretSecretFieldmask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (SecretManagerServiceClient secretManagerServiceClient =
         SecretManagerServiceClient.create()) {
       Secret secret = Secret.newBuilder().build();
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerservicesettings/createsecret/SyncCreateSecret.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerservicesettings/createsecret/SyncCreateSecret.java
index 1a254305b479..6ed61ea39697 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerservicesettings/createsecret/SyncCreateSecret.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerservicesettings/createsecret/SyncCreateSecret.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSecret() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     SecretManagerServiceSettings.Builder secretManagerServiceSettingsBuilder =
         SecretManagerServiceSettings.newBuilder();
     secretManagerServiceSettingsBuilder
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/stub/secretmanagerservicestubsettings/createsecret/SyncCreateSecret.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/stub/secretmanagerservicestubsettings/createsecret/SyncCreateSecret.java
index 799ca1051ffe..7296e9b2ab1a 100644
--- a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/stub/secretmanagerservicestubsettings/createsecret/SyncCreateSecret.java
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/stub/secretmanagerservicestubsettings/createsecret/SyncCreateSecret.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSecret() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     SecretManagerServiceStubSettings.Builder secretManagerServiceSettingsBuilder =
         SecretManagerServiceStubSettings.newBuilder();
     secretManagerServiceSettingsBuilder