diff --git a/java-recommendations-ai/README.md b/java-recommendations-ai/README.md index 474ea9c80f3b..f3654a50d01f 100644 --- a/java-recommendations-ai/README.md +++ b/java-recommendations-ai/README.md @@ -31,13 +31,13 @@ If you are using Maven, add this to your pom.xml file: If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommendations-ai:0.10.2' +implementation 'com.google.cloud:google-cloud-recommendations-ai:0.10.3' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.10.2" +libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.10.3" ``` ## Authentication diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java index f54dc152c55f..431638dab232 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java +++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java @@ -47,8 +47,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 (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
  *   CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]");
  *   CatalogItem catalogItem = CatalogItem.newBuilder().build();
@@ -85,8 +88,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
  * CatalogServiceSettings catalogServiceSettings =
  *     CatalogServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -97,8 +103,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
  * CatalogServiceSettings catalogServiceSettings =
  *     CatalogServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * CatalogServiceClient catalogServiceClient = CatalogServiceClient.create(catalogServiceSettings);
@@ -108,8 +117,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
  * CatalogServiceSettings catalogServiceSettings =
  *     CatalogServiceSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -203,8 +215,11 @@ public final OperationsClient getHttpJsonOperationsClient() {
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
    *   CreateCatalogItemRequest request =
    *       CreateCatalogItemRequest.newBuilder()
@@ -286,8 +307,11 @@ public final CatalogItem createCatalogItem(CreateCatalogItemRequest 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 (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
    *   CreateCatalogItemRequest request =
    *       CreateCatalogItemRequest.newBuilder()
@@ -312,8 +336,11 @@ public final UnaryCallable createCatalogI
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
    *   CatalogItemPathName name =
    *       CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]");
@@ -338,8 +365,11 @@ public final CatalogItem getCatalogItem(CatalogItemPathName 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 (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
    *   String name =
    *       CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]")
@@ -364,8 +394,11 @@ public final CatalogItem getCatalogItem(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 (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
    *   GetCatalogItemRequest request =
    *       GetCatalogItemRequest.newBuilder()
@@ -392,8 +425,11 @@ public final CatalogItem getCatalogItem(GetCatalogItemRequest 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 (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
    *   GetCatalogItemRequest request =
    *       GetCatalogItemRequest.newBuilder()
@@ -420,8 +456,11 @@ public final UnaryCallable getCatalogItemCal
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
    *   CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]");
    *   String filter = "filter-1274492040";
@@ -453,8 +492,11 @@ public final ListCatalogItemsPagedResponse listCatalogItems(CatalogName 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 (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
    *   String parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString();
    *   String filter = "filter-1274492040";
@@ -483,8 +525,11 @@ public final ListCatalogItemsPagedResponse listCatalogItems(String parent, Strin
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
    *   UpdateCatalogItemRequest request =
    *       UpdateCatalogItemRequest.newBuilder()
@@ -687,8 +747,11 @@ public final CatalogItem updateCatalogItem(UpdateCatalogItemRequest 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 (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
    *   UpdateCatalogItemRequest request =
    *       UpdateCatalogItemRequest.newBuilder()
@@ -717,8 +780,11 @@ public final UnaryCallable updateCatalogI
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
    *   CatalogItemPathName name =
    *       CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]");
@@ -745,8 +811,11 @@ public final void deleteCatalogItem(CatalogItemPathName 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 (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
    *   String name =
    *       CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]")
@@ -771,8 +840,11 @@ public final void deleteCatalogItem(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 (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
    *   DeleteCatalogItemRequest request =
    *       DeleteCatalogItemRequest.newBuilder()
@@ -799,8 +871,11 @@ public final void deleteCatalogItem(DeleteCatalogItemRequest 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 (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
    *   DeleteCatalogItemRequest request =
    *       DeleteCatalogItemRequest.newBuilder()
@@ -831,8 +906,11 @@ public final UnaryCallable deleteCatalogItemCal
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
    *   ImportCatalogItemsRequest request =
    *       ImportCatalogItemsRequest.newBuilder()
diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java
index 22f31b84c882..dbc24121abfe 100644
--- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java
+++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java
@@ -57,17 +57,17 @@
  * 

For example, to set the total timeout of createCatalogItem 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
  * CatalogServiceSettings.Builder catalogServiceSettingsBuilder =
  *     CatalogServiceSettings.newBuilder();
  * catalogServiceSettingsBuilder
  *     .createCatalogItemSettings()
  *     .setRetrySettings(
- *         catalogServiceSettingsBuilder
- *             .createCatalogItemSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         catalogServiceSettingsBuilder.createCatalogItemSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * CatalogServiceSettings catalogServiceSettings = catalogServiceSettingsBuilder.build();
diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java
index ce1a01b14113..ec660da8c420 100644
--- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java
+++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java
@@ -45,8 +45,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 (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
  *     PredictionApiKeyRegistryClient.create()) {
  *   EventStoreName parent =
@@ -89,8 +92,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
  * PredictionApiKeyRegistrySettings predictionApiKeyRegistrySettings =
  *     PredictionApiKeyRegistrySettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -102,8 +108,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
  * PredictionApiKeyRegistrySettings predictionApiKeyRegistrySettings =
  *     PredictionApiKeyRegistrySettings.newBuilder().setEndpoint(myEndpoint).build();
  * PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
@@ -114,8 +123,11 @@
  * the wire:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * PredictionApiKeyRegistrySettings predictionApiKeyRegistrySettings =
  *     PredictionApiKeyRegistrySettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -187,8 +199,11 @@ public PredictionApiKeyRegistryStub 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 (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
    *     PredictionApiKeyRegistryClient.create()) {
    *   EventStoreName parent =
@@ -223,8 +238,11 @@ public final PredictionApiKeyRegistration createPredictionApiKeyRegistration(
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
    *     PredictionApiKeyRegistryClient.create()) {
    *   String name =
@@ -568,8 +613,11 @@ public final void deletePredictionApiKeyRegistration(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 (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
    *     PredictionApiKeyRegistryClient.create()) {
    *   DeletePredictionApiKeyRegistrationRequest request =
@@ -602,8 +650,11 @@ public final void deletePredictionApiKeyRegistration(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
    *     PredictionApiKeyRegistryClient.create()) {
    *   DeletePredictionApiKeyRegistrationRequest request =
diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java
index 568cb6fa2aa3..81c28a2080e0 100644
--- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java
+++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java
@@ -55,8 +55,11 @@
  * 

For example, to set the total timeout of createPredictionApiKeyRegistration 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
  * PredictionApiKeyRegistrySettings.Builder predictionApiKeyRegistrySettingsBuilder =
  *     PredictionApiKeyRegistrySettings.newBuilder();
  * predictionApiKeyRegistrySettingsBuilder
diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClient.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClient.java
index b171c8e2a900..75a0a7877b2e 100644
--- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClient.java
+++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClient.java
@@ -43,8 +43,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 (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
  *   PlacementName name =
  *       PlacementName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]", "[PLACEMENT]");
@@ -86,8 +89,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
  * PredictionServiceSettings predictionServiceSettings =
  *     PredictionServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -99,8 +105,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
  * PredictionServiceSettings predictionServiceSettings =
  *     PredictionServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * PredictionServiceClient predictionServiceClient =
@@ -111,8 +120,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
  * PredictionServiceSettings predictionServiceSettings =
  *     PredictionServiceSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -185,8 +197,11 @@ public PredictionServiceStub 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 (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   PlacementName name =
    *       PlacementName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]", "[PLACEMENT]");
@@ -251,8 +266,11 @@ public final PredictPagedResponse predict(PlacementName name, UserEvent userEven
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   String name =
    *       PlacementName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]", "[PLACEMENT]")
@@ -315,8 +333,11 @@ public final PredictPagedResponse predict(String name, UserEvent userEvent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   PredictRequest request =
    *       PredictRequest.newBuilder()
@@ -356,8 +377,11 @@ public final PredictPagedResponse predict(PredictRequest 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 (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   PredictRequest request =
    *       PredictRequest.newBuilder()
@@ -396,8 +420,11 @@ public final UnaryCallable predictPagedCal
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   PredictRequest request =
    *       PredictRequest.newBuilder()
diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceSettings.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceSettings.java
index 069b74afc4c7..0ba4d4fe5e29 100644
--- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceSettings.java
+++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceSettings.java
@@ -54,17 +54,17 @@
  * 

For example, to set the total timeout of predict 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
  * PredictionServiceSettings.Builder predictionServiceSettingsBuilder =
  *     PredictionServiceSettings.newBuilder();
  * predictionServiceSettingsBuilder
  *     .predictSettings()
  *     .setRetrySettings(
- *         predictionServiceSettingsBuilder
- *             .predictSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         predictionServiceSettingsBuilder.predictSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * PredictionServiceSettings predictionServiceSettings = predictionServiceSettingsBuilder.build();
diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClient.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClient.java
index 29c68ec08c13..eeb3cf0dfeb7 100644
--- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClient.java
+++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClient.java
@@ -46,8 +46,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 (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
  *   EventStoreName parent =
  *       EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]");
@@ -86,8 +89,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
  * UserEventServiceSettings userEventServiceSettings =
  *     UserEventServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -99,8 +105,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
  * UserEventServiceSettings userEventServiceSettings =
  *     UserEventServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * UserEventServiceClient userEventServiceClient =
@@ -111,8 +120,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
  * UserEventServiceSettings userEventServiceSettings =
  *     UserEventServiceSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -207,8 +219,11 @@ public final OperationsClient getHttpJsonOperationsClient() {
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
    *   WriteUserEventRequest request =
    *       WriteUserEventRequest.newBuilder()
@@ -294,8 +315,11 @@ public final UserEvent writeUserEvent(WriteUserEventRequest 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 (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
    *   WriteUserEventRequest request =
    *       WriteUserEventRequest.newBuilder()
@@ -326,8 +350,11 @@ public final UnaryCallable writeUserEventCalla
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
    *   CollectUserEventRequest request =
    *       CollectUserEventRequest.newBuilder()
@@ -451,8 +484,11 @@ public final HttpBody collectUserEvent(CollectUserEventRequest 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 (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
    *   CollectUserEventRequest request =
    *       CollectUserEventRequest.newBuilder()
@@ -481,8 +517,11 @@ public final UnaryCallable collectUserEventCa
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
    *   ImportUserEventsRequest request =
    *       ImportUserEventsRequest.newBuilder()
diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceSettings.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceSettings.java
index 7a7787fdc083..405da7187232 100644
--- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceSettings.java
+++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceSettings.java
@@ -57,17 +57,17 @@
  * 

For example, to set the total timeout of writeUserEvent 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
  * UserEventServiceSettings.Builder userEventServiceSettingsBuilder =
  *     UserEventServiceSettings.newBuilder();
  * userEventServiceSettingsBuilder
  *     .writeUserEventSettings()
  *     .setRetrySettings(
- *         userEventServiceSettingsBuilder
- *             .writeUserEventSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         userEventServiceSettingsBuilder.writeUserEventSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * UserEventServiceSettings userEventServiceSettings = userEventServiceSettingsBuilder.build();
diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/package-info.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/package-info.java
index bddfd29198d5..8572a9a4fe7f 100644
--- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/package-info.java
+++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/package-info.java
@@ -24,8 +24,11 @@
  * 

Sample for CatalogServiceClient: * *

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

Sample for PredictionApiKeyRegistryClient: * *

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

Sample for PredictionServiceClient: * *

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

Sample for UserEventServiceClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
  *   EventStoreName parent =
  *       EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]");
diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java
index 460ed0a3d82d..161c6c6a3c5f 100644
--- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java
+++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java
@@ -87,17 +87,17 @@
  * 

For example, to set the total timeout of createCatalogItem 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
  * CatalogServiceStubSettings.Builder catalogServiceSettingsBuilder =
  *     CatalogServiceStubSettings.newBuilder();
  * catalogServiceSettingsBuilder
  *     .createCatalogItemSettings()
  *     .setRetrySettings(
- *         catalogServiceSettingsBuilder
- *             .createCatalogItemSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         catalogServiceSettingsBuilder.createCatalogItemSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * CatalogServiceStubSettings catalogServiceSettings = catalogServiceSettingsBuilder.build();
diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonCatalogServiceStub.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonCatalogServiceStub.java
index 2062005d917f..b5fbb043c59c 100644
--- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonCatalogServiceStub.java
+++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonCatalogServiceStub.java
@@ -97,7 +97,7 @@ public class HttpJsonCatalogServiceStub extends CatalogServiceStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("catalogItem", request.getCatalogItem()))
+                                  .toBody("catalogItem", request.getCatalogItem(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -206,7 +206,7 @@ public class HttpJsonCatalogServiceStub extends CatalogServiceStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("catalogItem", request.getCatalogItem()))
+                                  .toBody("catalogItem", request.getCatalogItem(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -277,7 +277,7 @@ public class HttpJsonCatalogServiceStub extends CatalogServiceStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearParent().build()))
+                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionApiKeyRegistryStub.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionApiKeyRegistryStub.java
index f412c6c4936d..e722094eb19c 100644
--- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionApiKeyRegistryStub.java
+++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionApiKeyRegistryStub.java
@@ -87,7 +87,7 @@ public class HttpJsonPredictionApiKeyRegistryStub extends PredictionApiKeyRegist
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearParent().build()))
+                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionServiceStub.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionServiceStub.java
index 503f4b519321..87bc8e092d3f 100644
--- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionServiceStub.java
+++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionServiceStub.java
@@ -80,7 +80,7 @@ public class HttpJsonPredictionServiceStub extends PredictionServiceStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonUserEventServiceStub.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonUserEventServiceStub.java
index e29d203045f6..035d805b6681 100644
--- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonUserEventServiceStub.java
+++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonUserEventServiceStub.java
@@ -100,7 +100,7 @@ public class HttpJsonUserEventServiceStub extends UserEventServiceStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("userEvent", request.getUserEvent()))
+                                  .toBody("userEvent", request.getUserEvent(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -211,7 +211,7 @@ public class HttpJsonUserEventServiceStub extends UserEventServiceStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearParent().build()))
+                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -251,7 +251,7 @@ public class HttpJsonUserEventServiceStub extends UserEventServiceStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearParent().build()))
+                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java
index 4d03c9d3f7a8..f497a7c06051 100644
--- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java
+++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java
@@ -77,8 +77,11 @@
  * 

For example, to set the total timeout of createPredictionApiKeyRegistration 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
  * PredictionApiKeyRegistryStubSettings.Builder predictionApiKeyRegistrySettingsBuilder =
  *     PredictionApiKeyRegistryStubSettings.newBuilder();
  * predictionApiKeyRegistrySettingsBuilder
diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java
index d9791326dae8..1c744d467e97 100644
--- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java
+++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java
@@ -76,17 +76,17 @@
  * 

For example, to set the total timeout of predict 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
  * PredictionServiceStubSettings.Builder predictionServiceSettingsBuilder =
  *     PredictionServiceStubSettings.newBuilder();
  * predictionServiceSettingsBuilder
  *     .predictSettings()
  *     .setRetrySettings(
- *         predictionServiceSettingsBuilder
- *             .predictSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         predictionServiceSettingsBuilder.predictSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * PredictionServiceStubSettings predictionServiceSettings =
diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStubSettings.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStubSettings.java
index d5aef443d7eb..5c8a485d2817 100644
--- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStubSettings.java
+++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStubSettings.java
@@ -88,17 +88,17 @@
  * 

For example, to set the total timeout of writeUserEvent 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
  * UserEventServiceStubSettings.Builder userEventServiceSettingsBuilder =
  *     UserEventServiceStubSettings.newBuilder();
  * userEventServiceSettingsBuilder
  *     .writeUserEventSettings()
  *     .setRetrySettings(
- *         userEventServiceSettingsBuilder
- *             .writeUserEventSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         userEventServiceSettingsBuilder.writeUserEventSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * UserEventServiceStubSettings userEventServiceSettings = userEventServiceSettingsBuilder.build();
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider.java
index 127ed725724e..f1d361975a59 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/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
     CatalogServiceSettings catalogServiceSettings =
         CatalogServiceSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider1.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider1.java
index 4198bf00c15c..ae0cdaba977b 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/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
     CatalogServiceSettings catalogServiceSettings =
         CatalogServiceSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetEndpoint.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetEndpoint.java
index a0e2bb5c7d8f..962186f16991 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetEndpoint.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/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
     CatalogServiceSettings catalogServiceSettings =
         CatalogServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
     CatalogServiceClient catalogServiceClient = CatalogServiceClient.create(catalogServiceSettings);
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/AsyncCreateCatalogItem.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/AsyncCreateCatalogItem.java
index 88503af6fb57..9af81b59179c 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/AsyncCreateCatalogItem.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/AsyncCreateCatalogItem.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateCatalogItem() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
       CreateCatalogItemRequest request =
           CreateCatalogItemRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItem.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItem.java
index 69689076e383..7a24020f7c1f 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItem.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItem.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateCatalogItem() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
       CreateCatalogItemRequest request =
           CreateCatalogItemRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemCatalognameCatalogitem.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemCatalognameCatalogitem.java
index facfb065b51b..98cb0d63de56 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemCatalognameCatalogitem.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemCatalognameCatalogitem.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateCatalogItemCatalognameCatalogitem() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
       CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]");
       CatalogItem catalogItem = CatalogItem.newBuilder().build();
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemStringCatalogitem.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemStringCatalogitem.java
index fca23eab6a43..63328f2923b4 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemStringCatalogitem.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemStringCatalogitem.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateCatalogItemStringCatalogitem() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
       String parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString();
       CatalogItem catalogItem = CatalogItem.newBuilder().build();
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/AsyncDeleteCatalogItem.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/AsyncDeleteCatalogItem.java
index 1aaf20dd19a5..3c0b93d20b25 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/AsyncDeleteCatalogItem.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/AsyncDeleteCatalogItem.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteCatalogItem() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
       DeleteCatalogItemRequest request =
           DeleteCatalogItemRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItem.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItem.java
index 635e4200d19e..a39228c80efb 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItem.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItem.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteCatalogItem() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
       DeleteCatalogItemRequest request =
           DeleteCatalogItemRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemCatalogitempathname.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemCatalogitempathname.java
index 4f14c7c99e2a..429ac40dabec 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemCatalogitempathname.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemCatalogitempathname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteCatalogItemCatalogitempathname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
       CatalogItemPathName name =
           CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]");
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemString.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemString.java
index 06b0e6dfec40..03b988cff500 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemString.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteCatalogItemString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
       String name =
           CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]")
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/AsyncGetCatalogItem.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/AsyncGetCatalogItem.java
index 96cf076cb435..1e669b45e3e1 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/AsyncGetCatalogItem.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/AsyncGetCatalogItem.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetCatalogItem() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
       GetCatalogItemRequest request =
           GetCatalogItemRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItem.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItem.java
index 7afb1145399c..60c101bb2251 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItem.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItem.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetCatalogItem() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
       GetCatalogItemRequest request =
           GetCatalogItemRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemCatalogitempathname.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemCatalogitempathname.java
index 05e37bb8d78e..fed1180c85e4 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemCatalogitempathname.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemCatalogitempathname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetCatalogItemCatalogitempathname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
       CatalogItemPathName name =
           CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]");
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemString.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemString.java
index c28aec804bb8..2b4c9a815e02 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemString.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetCatalogItemString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
       String name =
           CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]")
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/AsyncImportCatalogItems.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/AsyncImportCatalogItems.java
index dcf138689428..f6d10e4565a5 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/AsyncImportCatalogItems.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/AsyncImportCatalogItems.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncImportCatalogItems() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
       ImportCatalogItemsRequest request =
           ImportCatalogItemsRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/AsyncImportCatalogItemsLRO.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/AsyncImportCatalogItemsLRO.java
index c5166c682b2c..6d0846038d5f 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/AsyncImportCatalogItemsLRO.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/AsyncImportCatalogItemsLRO.java
@@ -33,8 +33,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncImportCatalogItemsLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
       ImportCatalogItemsRequest request =
           ImportCatalogItemsRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItems.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItems.java
index d2487f20f693..81ac675c7717 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItems.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItems.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncImportCatalogItems() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
       ImportCatalogItemsRequest request =
           ImportCatalogItemsRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsCatalognameStringInputconfigImporterrorsconfig.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsCatalognameStringInputconfigImporterrorsconfig.java
index e57a74d3e3d6..ee051d1b8f34 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsCatalognameStringInputconfigImporterrorsconfig.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsCatalognameStringInputconfigImporterrorsconfig.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
 
   public static void syncImportCatalogItemsCatalognameStringInputconfigImporterrorsconfig()
       throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
       CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]");
       String requestId = "requestId693933066";
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsStringStringInputconfigImporterrorsconfig.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsStringStringInputconfigImporterrorsconfig.java
index c6a7dd49036b..3a774f101c5a 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsStringStringInputconfigImporterrorsconfig.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsStringStringInputconfigImporterrorsconfig.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
 
   public static void syncImportCatalogItemsStringStringInputconfigImporterrorsconfig()
       throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
       String parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString();
       String requestId = "requestId693933066";
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/AsyncListCatalogItems.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/AsyncListCatalogItems.java
index 10012053a463..d49afe5fe5f0 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/AsyncListCatalogItems.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/AsyncListCatalogItems.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListCatalogItems() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
       ListCatalogItemsRequest request =
           ListCatalogItemsRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/AsyncListCatalogItemsPaged.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/AsyncListCatalogItemsPaged.java
index 43356e9aa73a..03f7842deec4 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/AsyncListCatalogItemsPaged.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/AsyncListCatalogItemsPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListCatalogItemsPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
       ListCatalogItemsRequest request =
           ListCatalogItemsRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItems.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItems.java
index a200effaaf6a..dca583cc7085 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItems.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItems.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListCatalogItems() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
       ListCatalogItemsRequest request =
           ListCatalogItemsRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsCatalognameString.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsCatalognameString.java
index 7cab5a71a2f6..f273572eb91e 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsCatalognameString.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsCatalognameString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListCatalogItemsCatalognameString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
       CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]");
       String filter = "filter-1274492040";
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsStringString.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsStringString.java
index af3b4d9886e0..9d7317b77972 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsStringString.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsStringString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListCatalogItemsStringString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
       String parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString();
       String filter = "filter-1274492040";
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/AsyncUpdateCatalogItem.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/AsyncUpdateCatalogItem.java
index df12ae963380..58395779b534 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/AsyncUpdateCatalogItem.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/AsyncUpdateCatalogItem.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateCatalogItem() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
       UpdateCatalogItemRequest request =
           UpdateCatalogItemRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItem.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItem.java
index ad9a4b94a937..cef9a8d9073e 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItem.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItem.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateCatalogItem() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
       UpdateCatalogItemRequest request =
           UpdateCatalogItemRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemCatalogitempathnameCatalogitemFieldmask.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemCatalogitempathnameCatalogitemFieldmask.java
index fa3fe4df9718..7d2591ed7519 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemCatalogitempathnameCatalogitemFieldmask.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemCatalogitempathnameCatalogitemFieldmask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
 
   public static void syncUpdateCatalogItemCatalogitempathnameCatalogitemFieldmask()
       throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
       CatalogItemPathName name =
           CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]");
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemStringCatalogitemFieldmask.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemStringCatalogitemFieldmask.java
index b437c096a88b..039f12e7dcf6 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemStringCatalogitemFieldmask.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemStringCatalogitemFieldmask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateCatalogItemStringCatalogitemFieldmask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
       String name =
           CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]")
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogservicesettings/createcatalogitem/SyncCreateCatalogItem.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogservicesettings/createcatalogitem/SyncCreateCatalogItem.java
index fb684018136b..c4af085da177 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogservicesettings/createcatalogitem/SyncCreateCatalogItem.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogservicesettings/createcatalogitem/SyncCreateCatalogItem.java
@@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateCatalogItem() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     CatalogServiceSettings.Builder catalogServiceSettingsBuilder =
         CatalogServiceSettings.newBuilder();
     catalogServiceSettingsBuilder
         .createCatalogItemSettings()
         .setRetrySettings(
-            catalogServiceSettingsBuilder
-                .createCatalogItemSettings()
-                .getRetrySettings()
-                .toBuilder()
+            catalogServiceSettingsBuilder.createCatalogItemSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     CatalogServiceSettings catalogServiceSettings = catalogServiceSettingsBuilder.build();
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider.java
index c7c6d7b0f058..ecc2d8b34c89 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/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
     PredictionApiKeyRegistrySettings predictionApiKeyRegistrySettings =
         PredictionApiKeyRegistrySettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider1.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider1.java
index 8df2d4284dc1..af772e346da4 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/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
     PredictionApiKeyRegistrySettings predictionApiKeyRegistrySettings =
         PredictionApiKeyRegistrySettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetEndpoint.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetEndpoint.java
index b6955fb1e69b..26c6c759a103 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetEndpoint.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/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
     PredictionApiKeyRegistrySettings predictionApiKeyRegistrySettings =
         PredictionApiKeyRegistrySettings.newBuilder().setEndpoint(myEndpoint).build();
     PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/AsyncCreatePredictionApiKeyRegistration.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/AsyncCreatePredictionApiKeyRegistration.java
index 15c95efeb030..f5f99bc68b6a 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/AsyncCreatePredictionApiKeyRegistration.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/AsyncCreatePredictionApiKeyRegistration.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreatePredictionApiKeyRegistration() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
         PredictionApiKeyRegistryClient.create()) {
       CreatePredictionApiKeyRegistrationRequest request =
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java
index 65c45e75fdd3..660e72c23087 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreatePredictionApiKeyRegistration() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
         PredictionApiKeyRegistryClient.create()) {
       CreatePredictionApiKeyRegistrationRequest request =
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationEventstorenamePredictionapikeyregistration.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationEventstorenamePredictionapikeyregistration.java
index bace15fdb9c0..ae4f58b4d955 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationEventstorenamePredictionapikeyregistration.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationEventstorenamePredictionapikeyregistration.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   public static void
       syncCreatePredictionApiKeyRegistrationEventstorenamePredictionapikeyregistration()
           throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
         PredictionApiKeyRegistryClient.create()) {
       EventStoreName parent =
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationStringPredictionapikeyregistration.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationStringPredictionapikeyregistration.java
index 6490c7597dd5..683e348831f4 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationStringPredictionapikeyregistration.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationStringPredictionapikeyregistration.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
 
   public static void syncCreatePredictionApiKeyRegistrationStringPredictionapikeyregistration()
       throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
         PredictionApiKeyRegistryClient.create()) {
       String parent =
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/AsyncDeletePredictionApiKeyRegistration.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/AsyncDeletePredictionApiKeyRegistration.java
index a7b1b0330bb1..7830cd4ed8af 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/AsyncDeletePredictionApiKeyRegistration.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/AsyncDeletePredictionApiKeyRegistration.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeletePredictionApiKeyRegistration() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
         PredictionApiKeyRegistryClient.create()) {
       DeletePredictionApiKeyRegistrationRequest request =
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistration.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistration.java
index 1dd2190485ff..5e8250d52dd6 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistration.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistration.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeletePredictionApiKeyRegistration() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
         PredictionApiKeyRegistryClient.create()) {
       DeletePredictionApiKeyRegistrationRequest request =
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationPredictionapikeyregistrationname.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationPredictionapikeyregistrationname.java
index d182a6253dea..e0e09a4e97f5 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationPredictionapikeyregistrationname.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationPredictionapikeyregistrationname.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
 
   public static void syncDeletePredictionApiKeyRegistrationPredictionapikeyregistrationname()
       throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
         PredictionApiKeyRegistryClient.create()) {
       PredictionApiKeyRegistrationName name =
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationString.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationString.java
index 289d4503ceab..49a631b9d5b2 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationString.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeletePredictionApiKeyRegistrationString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
         PredictionApiKeyRegistryClient.create()) {
       String name =
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrations.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrations.java
index ea9134ead7d2..32a6d63305be 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrations.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrations.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListPredictionApiKeyRegistrations() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
         PredictionApiKeyRegistryClient.create()) {
       ListPredictionApiKeyRegistrationsRequest request =
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrationsPaged.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrationsPaged.java
index c657e9d8bf8d..83f73499ac87 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrationsPaged.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrationsPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListPredictionApiKeyRegistrationsPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
         PredictionApiKeyRegistryClient.create()) {
       ListPredictionApiKeyRegistrationsRequest request =
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrations.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrations.java
index 6764146c85d2..5cfe443a8369 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrations.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrations.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListPredictionApiKeyRegistrations() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
         PredictionApiKeyRegistryClient.create()) {
       ListPredictionApiKeyRegistrationsRequest request =
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsEventstorename.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsEventstorename.java
index fafd8a21b927..8245c897dcf6 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsEventstorename.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsEventstorename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListPredictionApiKeyRegistrationsEventstorename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
         PredictionApiKeyRegistryClient.create()) {
       EventStoreName parent =
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsString.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsString.java
index f8ed0a0a9eae..064703c4071e 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsString.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListPredictionApiKeyRegistrationsString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
         PredictionApiKeyRegistryClient.create()) {
       String parent =
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistrysettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistrysettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java
index c9ceebd3710b..6bb53299c607 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistrysettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistrysettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreatePredictionApiKeyRegistration() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     PredictionApiKeyRegistrySettings.Builder predictionApiKeyRegistrySettingsBuilder =
         PredictionApiKeyRegistrySettings.newBuilder();
     predictionApiKeyRegistrySettingsBuilder
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider.java
index be3678cc5464..c814dd93aad7 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/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
     PredictionServiceSettings predictionServiceSettings =
         PredictionServiceSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider1.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider1.java
index 13d9e88c13ec..91f950882838 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/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
     PredictionServiceSettings predictionServiceSettings =
         PredictionServiceSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetEndpoint.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetEndpoint.java
index e99a3753da66..b73922a3304a 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetEndpoint.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/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
     PredictionServiceSettings predictionServiceSettings =
         PredictionServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
     PredictionServiceClient predictionServiceClient =
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/AsyncPredict.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/AsyncPredict.java
index 3d1f411b0dce..fe24ada19f70 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/AsyncPredict.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/AsyncPredict.java
@@ -33,8 +33,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncPredict() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
       PredictRequest request =
           PredictRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/AsyncPredictPaged.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/AsyncPredictPaged.java
index 8f114ea7baad..458f58d131d9 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/AsyncPredictPaged.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/AsyncPredictPaged.java
@@ -34,8 +34,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncPredictPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
       PredictRequest request =
           PredictRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredict.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredict.java
index 456be7ebe442..63c30019f6f3 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredict.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredict.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPredict() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
       PredictRequest request =
           PredictRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictPlacementnameUserevent.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictPlacementnameUserevent.java
index 007e7a2a8849..40b1d3982a7e 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictPlacementnameUserevent.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictPlacementnameUserevent.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPredictPlacementnameUserevent() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
       PlacementName name =
           PlacementName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]", "[PLACEMENT]");
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictStringUserevent.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictStringUserevent.java
index 3b82fdcf1633..98a5ef288c43 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictStringUserevent.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictStringUserevent.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPredictStringUserevent() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
       String name =
           PlacementName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]", "[PLACEMENT]")
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionservicesettings/predict/SyncPredict.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionservicesettings/predict/SyncPredict.java
index 3e0fb6ccb35d..5d9ed552d898 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionservicesettings/predict/SyncPredict.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionservicesettings/predict/SyncPredict.java
@@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPredict() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     PredictionServiceSettings.Builder predictionServiceSettingsBuilder =
         PredictionServiceSettings.newBuilder();
     predictionServiceSettingsBuilder
         .predictSettings()
         .setRetrySettings(
-            predictionServiceSettingsBuilder
-                .predictSettings()
-                .getRetrySettings()
-                .toBuilder()
+            predictionServiceSettingsBuilder.predictSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     PredictionServiceSettings predictionServiceSettings = predictionServiceSettingsBuilder.build();
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/catalogservicestubsettings/createcatalogitem/SyncCreateCatalogItem.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/catalogservicestubsettings/createcatalogitem/SyncCreateCatalogItem.java
index 0ed140eeb97c..69996e6434d6 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/catalogservicestubsettings/createcatalogitem/SyncCreateCatalogItem.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/catalogservicestubsettings/createcatalogitem/SyncCreateCatalogItem.java
@@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateCatalogItem() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     CatalogServiceStubSettings.Builder catalogServiceSettingsBuilder =
         CatalogServiceStubSettings.newBuilder();
     catalogServiceSettingsBuilder
         .createCatalogItemSettings()
         .setRetrySettings(
-            catalogServiceSettingsBuilder
-                .createCatalogItemSettings()
-                .getRetrySettings()
-                .toBuilder()
+            catalogServiceSettingsBuilder.createCatalogItemSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     CatalogServiceStubSettings catalogServiceSettings = catalogServiceSettingsBuilder.build();
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionapikeyregistrystubsettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionapikeyregistrystubsettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java
index 1c96ba9a1208..b09ab8c9e4a6 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionapikeyregistrystubsettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionapikeyregistrystubsettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreatePredictionApiKeyRegistration() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     PredictionApiKeyRegistryStubSettings.Builder predictionApiKeyRegistrySettingsBuilder =
         PredictionApiKeyRegistryStubSettings.newBuilder();
     predictionApiKeyRegistrySettingsBuilder
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionservicestubsettings/predict/SyncPredict.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionservicestubsettings/predict/SyncPredict.java
index 59ffcf502e25..eebe1cd79aa9 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionservicestubsettings/predict/SyncPredict.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionservicestubsettings/predict/SyncPredict.java
@@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPredict() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     PredictionServiceStubSettings.Builder predictionServiceSettingsBuilder =
         PredictionServiceStubSettings.newBuilder();
     predictionServiceSettingsBuilder
         .predictSettings()
         .setRetrySettings(
-            predictionServiceSettingsBuilder
-                .predictSettings()
-                .getRetrySettings()
-                .toBuilder()
+            predictionServiceSettingsBuilder.predictSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     PredictionServiceStubSettings predictionServiceSettings =
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java
index d38d1acd4fc2..69ba8eb764d4 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java
@@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncWriteUserEvent() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     UserEventServiceStubSettings.Builder userEventServiceSettingsBuilder =
         UserEventServiceStubSettings.newBuilder();
     userEventServiceSettingsBuilder
         .writeUserEventSettings()
         .setRetrySettings(
-            userEventServiceSettingsBuilder
-                .writeUserEventSettings()
-                .getRetrySettings()
-                .toBuilder()
+            userEventServiceSettingsBuilder.writeUserEventSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     UserEventServiceStubSettings userEventServiceSettings = userEventServiceSettingsBuilder.build();
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/AsyncCollectUserEvent.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/AsyncCollectUserEvent.java
index ef8f78d45a0c..21404da00802 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/AsyncCollectUserEvent.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/AsyncCollectUserEvent.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCollectUserEvent() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
       CollectUserEventRequest request =
           CollectUserEventRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEvent.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEvent.java
index e6b9cf99bf47..6f092800e213 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEvent.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEvent.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCollectUserEvent() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
       CollectUserEventRequest request =
           CollectUserEventRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventEventstorenameStringStringLong.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventEventstorenameStringStringLong.java
index 06dbcccea3ba..8fd16eaa8631 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventEventstorenameStringStringLong.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventEventstorenameStringStringLong.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCollectUserEventEventstorenameStringStringLong() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
       EventStoreName parent =
           EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]");
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventStringStringStringLong.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventStringStringStringLong.java
index 070525ecf8fd..5159b1195448 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventStringStringStringLong.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventStringStringStringLong.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCollectUserEventStringStringStringLong() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
       String parent =
           EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]").toString();
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider.java
index 51906a0d8ad0..a06714a35263 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/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
     UserEventServiceSettings userEventServiceSettings =
         UserEventServiceSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider1.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider1.java
index fcf2408d9dc7..6adda039eee8 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/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
     UserEventServiceSettings userEventServiceSettings =
         UserEventServiceSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetEndpoint.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetEndpoint.java
index ffcc7a652450..d5f3587a39e2 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetEndpoint.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/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
     UserEventServiceSettings userEventServiceSettings =
         UserEventServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
     UserEventServiceClient userEventServiceClient =
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/AsyncImportUserEvents.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/AsyncImportUserEvents.java
index ce86b3f47463..1e8e4a30f950 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/AsyncImportUserEvents.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/AsyncImportUserEvents.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncImportUserEvents() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
       ImportUserEventsRequest request =
           ImportUserEventsRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/AsyncImportUserEventsLRO.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/AsyncImportUserEventsLRO.java
index c7e7726d4594..7dbf6bb1567b 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/AsyncImportUserEventsLRO.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/AsyncImportUserEventsLRO.java
@@ -33,8 +33,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncImportUserEventsLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
       ImportUserEventsRequest request =
           ImportUserEventsRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEvents.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEvents.java
index 814c515815df..231e16ccf7ff 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEvents.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEvents.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncImportUserEvents() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
       ImportUserEventsRequest request =
           ImportUserEventsRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsEventstorenameStringInputconfigImporterrorsconfig.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsEventstorenameStringInputconfigImporterrorsconfig.java
index 951f0fa5dc42..793ad881a089 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsEventstorenameStringInputconfigImporterrorsconfig.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsEventstorenameStringInputconfigImporterrorsconfig.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
 
   public static void syncImportUserEventsEventstorenameStringInputconfigImporterrorsconfig()
       throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
       EventStoreName parent =
           EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]");
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsStringStringInputconfigImporterrorsconfig.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsStringStringInputconfigImporterrorsconfig.java
index 72231efeab64..55f26cdcb6ef 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsStringStringInputconfigImporterrorsconfig.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsStringStringInputconfigImporterrorsconfig.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
 
   public static void syncImportUserEventsStringStringInputconfigImporterrorsconfig()
       throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
       String parent =
           EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]").toString();
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/AsyncListUserEvents.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/AsyncListUserEvents.java
index 4569d08b6aff..bd705de76bee 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/AsyncListUserEvents.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/AsyncListUserEvents.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListUserEvents() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
       ListUserEventsRequest request =
           ListUserEventsRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/AsyncListUserEventsPaged.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/AsyncListUserEventsPaged.java
index 3b49148a5eb5..20c80107eb9b 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/AsyncListUserEventsPaged.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/AsyncListUserEventsPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListUserEventsPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
       ListUserEventsRequest request =
           ListUserEventsRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEvents.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEvents.java
index b477446c2ce8..4e206584438e 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEvents.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEvents.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListUserEvents() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
       ListUserEventsRequest request =
           ListUserEventsRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsEventstorenameString.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsEventstorenameString.java
index 3d30dad31bbb..247936b44299 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsEventstorenameString.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsEventstorenameString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListUserEventsEventstorenameString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
       EventStoreName parent =
           EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]");
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsStringString.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsStringString.java
index f2f164d949af..5a5db7f4da1b 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsStringString.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsStringString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListUserEventsStringString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
       String parent =
           EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]").toString();
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/AsyncPurgeUserEvents.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/AsyncPurgeUserEvents.java
index ab08593d8667..69355f6a4775 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/AsyncPurgeUserEvents.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/AsyncPurgeUserEvents.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncPurgeUserEvents() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
       PurgeUserEventsRequest request =
           PurgeUserEventsRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/AsyncPurgeUserEventsLRO.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/AsyncPurgeUserEventsLRO.java
index acc01ce04bf1..3164291bf6c4 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/AsyncPurgeUserEventsLRO.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/AsyncPurgeUserEventsLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncPurgeUserEventsLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
       PurgeUserEventsRequest request =
           PurgeUserEventsRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEvents.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEvents.java
index 02631fddd6b5..7d13fbb35a68 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEvents.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEvents.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPurgeUserEvents() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
       PurgeUserEventsRequest request =
           PurgeUserEventsRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsEventstorenameStringBoolean.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsEventstorenameStringBoolean.java
index b1927cb901ca..66a41aa42f6d 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsEventstorenameStringBoolean.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsEventstorenameStringBoolean.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPurgeUserEventsEventstorenameStringBoolean() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
       EventStoreName parent =
           EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]");
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsStringStringBoolean.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsStringStringBoolean.java
index 27c020fba1ce..5e1517a1bd2f 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsStringStringBoolean.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsStringStringBoolean.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPurgeUserEventsStringStringBoolean() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
       String parent =
           EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]").toString();
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/AsyncWriteUserEvent.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/AsyncWriteUserEvent.java
index 6f8a04c799e3..d57416b2e30e 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/AsyncWriteUserEvent.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/AsyncWriteUserEvent.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncWriteUserEvent() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
       WriteUserEventRequest request =
           WriteUserEventRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEvent.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEvent.java
index 2dff34ee7e9f..b9e9519f6cf0 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEvent.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEvent.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncWriteUserEvent() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
       WriteUserEventRequest request =
           WriteUserEventRequest.newBuilder()
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventEventstorenameUserevent.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventEventstorenameUserevent.java
index 0a3babf782b4..725199a7fc5c 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventEventstorenameUserevent.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventEventstorenameUserevent.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncWriteUserEventEventstorenameUserevent() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
       EventStoreName parent =
           EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]");
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventStringUserevent.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventStringUserevent.java
index d61048aad436..54ed0a23bdf4 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventStringUserevent.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventStringUserevent.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncWriteUserEventStringUserevent() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) {
       String parent =
           EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]").toString();
diff --git a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java
index a7f7a581346a..a27b6e631cc2 100644
--- a/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java
+++ b/java-recommendations-ai/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java
@@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncWriteUserEvent() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     UserEventServiceSettings.Builder userEventServiceSettingsBuilder =
         UserEventServiceSettings.newBuilder();
     userEventServiceSettingsBuilder
         .writeUserEventSettings()
         .setRetrySettings(
-            userEventServiceSettingsBuilder
-                .writeUserEventSettings()
-                .getRetrySettings()
-                .toBuilder()
+            userEventServiceSettingsBuilder.writeUserEventSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     UserEventServiceSettings userEventServiceSettings = userEventServiceSettingsBuilder.build();