diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java index 20b7abc7..ca9ea84e 100644 --- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java +++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java @@ -49,8 +49,9 @@ *
  * 
  * try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
- *   CatalogItemPathName name = CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]");
- *   catalogServiceClient.deleteCatalogItem(name);
+ *   CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]");
+ *   CatalogItem catalogItem = CatalogItem.newBuilder().build();
+ *   CatalogItem response = catalogServiceClient.createCatalogItem(parent, catalogItem);
  * }
  * 
  * 
@@ -172,98 +173,6 @@ public final OperationsClient getOperationsClient() { return operationsClient; } - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes a catalog item. - * - *

Sample code: - * - *


-   * try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
-   *   CatalogItemPathName name = CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]");
-   *   catalogServiceClient.deleteCatalogItem(name);
-   * }
-   * 
- * - * @param name Required. Full resource name of catalog item, such as - * "projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id". - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteCatalogItem(CatalogItemPathName name) { - DeleteCatalogItemRequest request = - DeleteCatalogItemRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteCatalogItem(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes a catalog item. - * - *

Sample code: - * - *


-   * try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
-   *   CatalogItemPathName name = CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]");
-   *   catalogServiceClient.deleteCatalogItem(name.toString());
-   * }
-   * 
- * - * @param name Required. Full resource name of catalog item, such as - * "projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id". - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteCatalogItem(String name) { - DeleteCatalogItemRequest request = DeleteCatalogItemRequest.newBuilder().setName(name).build(); - deleteCatalogItem(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes a catalog item. - * - *

Sample code: - * - *


-   * try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
-   *   CatalogItemPathName name = CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]");
-   *   DeleteCatalogItemRequest request = DeleteCatalogItemRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   catalogServiceClient.deleteCatalogItem(request);
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteCatalogItem(DeleteCatalogItemRequest request) { - deleteCatalogItemCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes a catalog item. - * - *

Sample code: - * - *


-   * try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
-   *   CatalogItemPathName name = CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]");
-   *   DeleteCatalogItemRequest request = DeleteCatalogItemRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<Void> future = catalogServiceClient.deleteCatalogItemCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
- */ - public final UnaryCallable deleteCatalogItemCallable() { - return stub.deleteCatalogItemCallable(); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Bulk import of multiple catalog items. Request processing may be synchronous. No partial @@ -892,6 +801,98 @@ public final UnaryCallable updateCatalogI return stub.updateCatalogItemCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a catalog item. + * + *

Sample code: + * + *


+   * try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
+   *   CatalogItemPathName name = CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]");
+   *   catalogServiceClient.deleteCatalogItem(name);
+   * }
+   * 
+ * + * @param name Required. Full resource name of catalog item, such as + * "projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteCatalogItem(CatalogItemPathName name) { + DeleteCatalogItemRequest request = + DeleteCatalogItemRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteCatalogItem(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a catalog item. + * + *

Sample code: + * + *


+   * try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
+   *   CatalogItemPathName name = CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]");
+   *   catalogServiceClient.deleteCatalogItem(name.toString());
+   * }
+   * 
+ * + * @param name Required. Full resource name of catalog item, such as + * "projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteCatalogItem(String name) { + DeleteCatalogItemRequest request = DeleteCatalogItemRequest.newBuilder().setName(name).build(); + deleteCatalogItem(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a catalog item. + * + *

Sample code: + * + *


+   * try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
+   *   CatalogItemPathName name = CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]");
+   *   DeleteCatalogItemRequest request = DeleteCatalogItemRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   catalogServiceClient.deleteCatalogItem(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteCatalogItem(DeleteCatalogItemRequest request) { + deleteCatalogItemCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a catalog item. + * + *

Sample code: + * + *


+   * try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
+   *   CatalogItemPathName name = CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]");
+   *   DeleteCatalogItemRequest request = DeleteCatalogItemRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Void> future = catalogServiceClient.deleteCatalogItemCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable deleteCatalogItemCallable() { + return stub.deleteCatalogItemCallable(); + } + @Override public final void close() { stub.close(); diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java index f061de3d..9a188dd3 100644 --- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java +++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java @@ -52,16 +52,16 @@ *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *

For example, to set the total timeout of deleteCatalogItem to 30 seconds: + *

For example, to set the total timeout of createCatalogItem to 30 seconds: * *

  * 
  * CatalogServiceSettings.Builder catalogServiceSettingsBuilder =
  *     CatalogServiceSettings.newBuilder();
  * catalogServiceSettingsBuilder
- *     .deleteCatalogItemSettings()
+ *     .createCatalogItemSettings()
  *     .setRetrySettings(
- *         catalogServiceSettingsBuilder.deleteCatalogItemSettings().getRetrySettings().toBuilder()
+ *         catalogServiceSettingsBuilder.createCatalogItemSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * CatalogServiceSettings catalogServiceSettings = catalogServiceSettingsBuilder.build();
@@ -71,11 +71,6 @@
 @Generated("by gapic-generator")
 @BetaApi
 public class CatalogServiceSettings extends ClientSettings {
-  /** Returns the object with the settings used for calls to deleteCatalogItem. */
-  public UnaryCallSettings deleteCatalogItemSettings() {
-    return ((CatalogServiceStubSettings) getStubSettings()).deleteCatalogItemSettings();
-  }
-
   /** Returns the object with the settings used for calls to importCatalogItems. */
   public UnaryCallSettings importCatalogItemsSettings() {
     return ((CatalogServiceStubSettings) getStubSettings()).importCatalogItemsSettings();
@@ -112,6 +107,11 @@ public UnaryCallSettings updateCatalogIte
     return ((CatalogServiceStubSettings) getStubSettings()).updateCatalogItemSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteCatalogItem. */
+  public UnaryCallSettings deleteCatalogItemSettings() {
+    return ((CatalogServiceStubSettings) getStubSettings()).deleteCatalogItemSettings();
+  }
+
   public static final CatalogServiceSettings create(CatalogServiceStubSettings stub)
       throws IOException {
     return new CatalogServiceSettings.Builder(stub.toBuilder()).build();
@@ -209,11 +209,6 @@ public Builder applyToAllUnaryMethods(
       return this;
     }
 
-    /** Returns the builder for the settings used for calls to deleteCatalogItem. */
-    public UnaryCallSettings.Builder deleteCatalogItemSettings() {
-      return getStubSettingsBuilder().deleteCatalogItemSettings();
-    }
-
     /** Returns the builder for the settings used for calls to importCatalogItems. */
     public UnaryCallSettings.Builder
         importCatalogItemsSettings() {
@@ -253,6 +248,11 @@ public UnaryCallSettings.Builder getCatalogI
       return getStubSettingsBuilder().updateCatalogItemSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteCatalogItem. */
+    public UnaryCallSettings.Builder deleteCatalogItemSettings() {
+      return getStubSettingsBuilder().deleteCatalogItemSettings();
+    }
+
     @Override
     public CatalogServiceSettings build() throws IOException {
       return new CatalogServiceSettings(this);
diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java
index 2e1a01d0..5a4535f6 100644
--- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java
+++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java
@@ -47,8 +47,9 @@
  * 
  * 
  * try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = PredictionApiKeyRegistryClient.create()) {
- *   PredictionApiKeyRegistrationName name = PredictionApiKeyRegistrationName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]", "[PREDICTION_API_KEY_REGISTRATION]");
- *   predictionApiKeyRegistryClient.deletePredictionApiKeyRegistration(name);
+ *   EventStoreName parent = EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]");
+ *   PredictionApiKeyRegistration predictionApiKeyRegistration = PredictionApiKeyRegistration.newBuilder().build();
+ *   PredictionApiKeyRegistration response = predictionApiKeyRegistryClient.createPredictionApiKeyRegistration(parent, predictionApiKeyRegistration);
  * }
  * 
  * 
@@ -160,101 +161,6 @@ public PredictionApiKeyRegistryStub getStub() { return stub; } - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Unregister an apiKey from using for predict method. - * - *

Sample code: - * - *


-   * try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = PredictionApiKeyRegistryClient.create()) {
-   *   PredictionApiKeyRegistrationName name = PredictionApiKeyRegistrationName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]", "[PREDICTION_API_KEY_REGISTRATION]");
-   *   predictionApiKeyRegistryClient.deletePredictionApiKeyRegistration(name);
-   * }
-   * 
- * - * @param name Required. The API key to unregister including full resource path. - * "projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deletePredictionApiKeyRegistration(PredictionApiKeyRegistrationName name) { - DeletePredictionApiKeyRegistrationRequest request = - DeletePredictionApiKeyRegistrationRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deletePredictionApiKeyRegistration(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Unregister an apiKey from using for predict method. - * - *

Sample code: - * - *


-   * try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = PredictionApiKeyRegistryClient.create()) {
-   *   PredictionApiKeyRegistrationName name = PredictionApiKeyRegistrationName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]", "[PREDICTION_API_KEY_REGISTRATION]");
-   *   predictionApiKeyRegistryClient.deletePredictionApiKeyRegistration(name.toString());
-   * }
-   * 
- * - * @param name Required. The API key to unregister including full resource path. - * "projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deletePredictionApiKeyRegistration(String name) { - DeletePredictionApiKeyRegistrationRequest request = - DeletePredictionApiKeyRegistrationRequest.newBuilder().setName(name).build(); - deletePredictionApiKeyRegistration(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Unregister an apiKey from using for predict method. - * - *

Sample code: - * - *


-   * try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = PredictionApiKeyRegistryClient.create()) {
-   *   PredictionApiKeyRegistrationName name = PredictionApiKeyRegistrationName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]", "[PREDICTION_API_KEY_REGISTRATION]");
-   *   DeletePredictionApiKeyRegistrationRequest request = DeletePredictionApiKeyRegistrationRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   predictionApiKeyRegistryClient.deletePredictionApiKeyRegistration(request);
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deletePredictionApiKeyRegistration( - DeletePredictionApiKeyRegistrationRequest request) { - deletePredictionApiKeyRegistrationCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Unregister an apiKey from using for predict method. - * - *

Sample code: - * - *


-   * try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = PredictionApiKeyRegistryClient.create()) {
-   *   PredictionApiKeyRegistrationName name = PredictionApiKeyRegistrationName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]", "[PREDICTION_API_KEY_REGISTRATION]");
-   *   DeletePredictionApiKeyRegistrationRequest request = DeletePredictionApiKeyRegistrationRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<Void> future = predictionApiKeyRegistryClient.deletePredictionApiKeyRegistrationCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
- */ - public final UnaryCallable - deletePredictionApiKeyRegistrationCallable() { - return stub.deletePredictionApiKeyRegistrationCallable(); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Register an API key for use with predict method. @@ -504,6 +410,101 @@ public final ListPredictionApiKeyRegistrationsPagedResponse listPredictionApiKey return stub.listPredictionApiKeyRegistrationsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Unregister an apiKey from using for predict method. + * + *

Sample code: + * + *


+   * try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = PredictionApiKeyRegistryClient.create()) {
+   *   PredictionApiKeyRegistrationName name = PredictionApiKeyRegistrationName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]", "[PREDICTION_API_KEY_REGISTRATION]");
+   *   predictionApiKeyRegistryClient.deletePredictionApiKeyRegistration(name);
+   * }
+   * 
+ * + * @param name Required. The API key to unregister including full resource path. + * "projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deletePredictionApiKeyRegistration(PredictionApiKeyRegistrationName name) { + DeletePredictionApiKeyRegistrationRequest request = + DeletePredictionApiKeyRegistrationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deletePredictionApiKeyRegistration(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Unregister an apiKey from using for predict method. + * + *

Sample code: + * + *


+   * try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = PredictionApiKeyRegistryClient.create()) {
+   *   PredictionApiKeyRegistrationName name = PredictionApiKeyRegistrationName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]", "[PREDICTION_API_KEY_REGISTRATION]");
+   *   predictionApiKeyRegistryClient.deletePredictionApiKeyRegistration(name.toString());
+   * }
+   * 
+ * + * @param name Required. The API key to unregister including full resource path. + * "projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deletePredictionApiKeyRegistration(String name) { + DeletePredictionApiKeyRegistrationRequest request = + DeletePredictionApiKeyRegistrationRequest.newBuilder().setName(name).build(); + deletePredictionApiKeyRegistration(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Unregister an apiKey from using for predict method. + * + *

Sample code: + * + *


+   * try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = PredictionApiKeyRegistryClient.create()) {
+   *   PredictionApiKeyRegistrationName name = PredictionApiKeyRegistrationName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]", "[PREDICTION_API_KEY_REGISTRATION]");
+   *   DeletePredictionApiKeyRegistrationRequest request = DeletePredictionApiKeyRegistrationRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   predictionApiKeyRegistryClient.deletePredictionApiKeyRegistration(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deletePredictionApiKeyRegistration( + DeletePredictionApiKeyRegistrationRequest request) { + deletePredictionApiKeyRegistrationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Unregister an apiKey from using for predict method. + * + *

Sample code: + * + *


+   * try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = PredictionApiKeyRegistryClient.create()) {
+   *   PredictionApiKeyRegistrationName name = PredictionApiKeyRegistrationName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]", "[PREDICTION_API_KEY_REGISTRATION]");
+   *   DeletePredictionApiKeyRegistrationRequest request = DeletePredictionApiKeyRegistrationRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Void> future = predictionApiKeyRegistryClient.deletePredictionApiKeyRegistrationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + deletePredictionApiKeyRegistrationCallable() { + return stub.deletePredictionApiKeyRegistrationCallable(); + } + @Override public final void close() { stub.close(); diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java index 795e9e26..e1669db9 100644 --- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java +++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java @@ -50,16 +50,16 @@ *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *

For example, to set the total timeout of deletePredictionApiKeyRegistration to 30 seconds: + *

For example, to set the total timeout of createPredictionApiKeyRegistration to 30 seconds: * *

  * 
  * PredictionApiKeyRegistrySettings.Builder predictionApiKeyRegistrySettingsBuilder =
  *     PredictionApiKeyRegistrySettings.newBuilder();
  * predictionApiKeyRegistrySettingsBuilder
- *     .deletePredictionApiKeyRegistrationSettings()
+ *     .createPredictionApiKeyRegistrationSettings()
  *     .setRetrySettings(
- *         predictionApiKeyRegistrySettingsBuilder.deletePredictionApiKeyRegistrationSettings().getRetrySettings().toBuilder()
+ *         predictionApiKeyRegistrySettingsBuilder.createPredictionApiKeyRegistrationSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * PredictionApiKeyRegistrySettings predictionApiKeyRegistrySettings = predictionApiKeyRegistrySettingsBuilder.build();
@@ -70,13 +70,6 @@
 @BetaApi
 public class PredictionApiKeyRegistrySettings
     extends ClientSettings {
-  /** Returns the object with the settings used for calls to deletePredictionApiKeyRegistration. */
-  public UnaryCallSettings
-      deletePredictionApiKeyRegistrationSettings() {
-    return ((PredictionApiKeyRegistryStubSettings) getStubSettings())
-        .deletePredictionApiKeyRegistrationSettings();
-  }
-
   /** Returns the object with the settings used for calls to createPredictionApiKeyRegistration. */
   public UnaryCallSettings
       createPredictionApiKeyRegistrationSettings() {
@@ -94,6 +87,13 @@ public class PredictionApiKeyRegistrySettings
         .listPredictionApiKeyRegistrationsSettings();
   }
 
+  /** Returns the object with the settings used for calls to deletePredictionApiKeyRegistration. */
+  public UnaryCallSettings
+      deletePredictionApiKeyRegistrationSettings() {
+    return ((PredictionApiKeyRegistryStubSettings) getStubSettings())
+        .deletePredictionApiKeyRegistrationSettings();
+  }
+
   public static final PredictionApiKeyRegistrySettings create(
       PredictionApiKeyRegistryStubSettings stub) throws IOException {
     return new PredictionApiKeyRegistrySettings.Builder(stub.toBuilder()).build();
@@ -192,14 +192,6 @@ public Builder applyToAllUnaryMethods(
       return this;
     }
 
-    /**
-     * Returns the builder for the settings used for calls to deletePredictionApiKeyRegistration.
-     */
-    public UnaryCallSettings.Builder
-        deletePredictionApiKeyRegistrationSettings() {
-      return getStubSettingsBuilder().deletePredictionApiKeyRegistrationSettings();
-    }
-
     /**
      * Returns the builder for the settings used for calls to createPredictionApiKeyRegistration.
      */
@@ -218,6 +210,14 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().listPredictionApiKeyRegistrationsSettings();
     }
 
+    /**
+     * Returns the builder for the settings used for calls to deletePredictionApiKeyRegistration.
+     */
+    public UnaryCallSettings.Builder
+        deletePredictionApiKeyRegistrationSettings() {
+      return getStubSettingsBuilder().deletePredictionApiKeyRegistrationSettings();
+    }
+
     @Override
     public PredictionApiKeyRegistrySettings build() throws IOException {
       return new PredictionApiKeyRegistrySettings(this);
diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/package-info.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/package-info.java
index 31d43fad..93338af5 100644
--- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/package-info.java
+++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/package-info.java
@@ -28,8 +28,9 @@
  * 
  * 
  * try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
- *   CatalogItemPathName name = CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]");
- *   catalogServiceClient.deleteCatalogItem(name);
+ *   CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]");
+ *   CatalogItem catalogItem = CatalogItem.newBuilder().build();
+ *   CatalogItem response = catalogServiceClient.createCatalogItem(parent, catalogItem);
  * }
  * 
  * 
@@ -46,8 +47,9 @@ *
  * 
  * try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = PredictionApiKeyRegistryClient.create()) {
- *   PredictionApiKeyRegistrationName name = PredictionApiKeyRegistrationName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]", "[PREDICTION_API_KEY_REGISTRATION]");
- *   predictionApiKeyRegistryClient.deletePredictionApiKeyRegistration(name);
+ *   EventStoreName parent = EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]");
+ *   PredictionApiKeyRegistration predictionApiKeyRegistration = PredictionApiKeyRegistration.newBuilder().build();
+ *   PredictionApiKeyRegistration response = predictionApiKeyRegistryClient.createPredictionApiKeyRegistration(parent, predictionApiKeyRegistration);
  * }
  * 
  * 
diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStub.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStub.java index d921aac3..20e45db8 100644 --- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStub.java +++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStub.java @@ -51,10 +51,6 @@ public OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } - public UnaryCallable deleteCatalogItemCallable() { - throw new UnsupportedOperationException("Not implemented: deleteCatalogItemCallable()"); - } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable importCatalogItemsOperationCallable() { @@ -88,6 +84,10 @@ public UnaryCallable updateCatalogItemCal throw new UnsupportedOperationException("Not implemented: updateCatalogItemCallable()"); } + public UnaryCallable deleteCatalogItemCallable() { + throw new UnsupportedOperationException("Not implemented: deleteCatalogItemCallable()"); + } + @Override public abstract void close(); } diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java index b61b4520..2f576f12 100644 --- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java +++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java @@ -80,16 +80,16 @@ *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *

For example, to set the total timeout of deleteCatalogItem to 30 seconds: + *

For example, to set the total timeout of createCatalogItem to 30 seconds: * *

  * 
  * CatalogServiceStubSettings.Builder catalogServiceSettingsBuilder =
  *     CatalogServiceStubSettings.newBuilder();
  * catalogServiceSettingsBuilder
- *     .deleteCatalogItemSettings()
+ *     .createCatalogItemSettings()
  *     .setRetrySettings(
- *         catalogServiceSettingsBuilder.deleteCatalogItemSettings().getRetrySettings().toBuilder()
+ *         catalogServiceSettingsBuilder.createCatalogItemSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * CatalogServiceStubSettings catalogServiceSettings = catalogServiceSettingsBuilder.build();
@@ -103,7 +103,6 @@ public class CatalogServiceStubSettings extends StubSettings DEFAULT_SERVICE_SCOPES =
       ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build();
 
-  private final UnaryCallSettings deleteCatalogItemSettings;
   private final UnaryCallSettings importCatalogItemsSettings;
   private final OperationCallSettings<
           ImportCatalogItemsRequest, ImportCatalogItemsResponse, ImportMetadata>
@@ -114,11 +113,7 @@ public class CatalogServiceStubSettings extends StubSettings
       listCatalogItemsSettings;
   private final UnaryCallSettings updateCatalogItemSettings;
-
-  /** Returns the object with the settings used for calls to deleteCatalogItem. */
-  public UnaryCallSettings deleteCatalogItemSettings() {
-    return deleteCatalogItemSettings;
-  }
+  private final UnaryCallSettings deleteCatalogItemSettings;
 
   /** Returns the object with the settings used for calls to importCatalogItems. */
   public UnaryCallSettings importCatalogItemsSettings() {
@@ -155,6 +150,11 @@ public UnaryCallSettings updateCatalogIte
     return updateCatalogItemSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteCatalogItem. */
+  public UnaryCallSettings deleteCatalogItemSettings() {
+    return deleteCatalogItemSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public CatalogServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -224,7 +224,6 @@ public Builder toBuilder() {
   protected CatalogServiceStubSettings(Builder settingsBuilder) throws IOException {
     super(settingsBuilder);
 
-    deleteCatalogItemSettings = settingsBuilder.deleteCatalogItemSettings().build();
     importCatalogItemsSettings = settingsBuilder.importCatalogItemsSettings().build();
     importCatalogItemsOperationSettings =
         settingsBuilder.importCatalogItemsOperationSettings().build();
@@ -232,6 +231,7 @@ protected CatalogServiceStubSettings(Builder settingsBuilder) throws IOException
     getCatalogItemSettings = settingsBuilder.getCatalogItemSettings().build();
     listCatalogItemsSettings = settingsBuilder.listCatalogItemsSettings().build();
     updateCatalogItemSettings = settingsBuilder.updateCatalogItemSettings().build();
+    deleteCatalogItemSettings = settingsBuilder.deleteCatalogItemSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -297,8 +297,6 @@ public ApiFuture getFuturePagedResponse(
   public static class Builder extends StubSettings.Builder {
     private final ImmutableList> unaryMethodSettingsBuilders;
 
-    private final UnaryCallSettings.Builder
-        deleteCatalogItemSettings;
     private final UnaryCallSettings.Builder
         importCatalogItemsSettings;
     private final OperationCallSettings.Builder<
@@ -313,6 +311,8 @@ public static class Builder extends StubSettings.Builder
         updateCatalogItemSettings;
+    private final UnaryCallSettings.Builder
+        deleteCatalogItemSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -321,11 +321,11 @@ public static class Builder extends StubSettings.Builder> definitions =
           ImmutableMap.builder();
       definitions.put(
-          "idempotent",
+          "retry_policy_1_codes",
           ImmutableSet.copyOf(
               Lists.newArrayList(
-                  StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE)));
-      definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList()));
+                  StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED)));
+      definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList()));
       RETRYABLE_CODE_DEFINITIONS = definitions.build();
     }
 
@@ -339,12 +339,14 @@ public static class Builder extends StubSettings.Builder>of(
-              deleteCatalogItemSettings,
               importCatalogItemsSettings,
               createCatalogItemSettings,
               getCatalogItemSettings,
               listCatalogItemsSettings,
-              updateCatalogItemSettings);
+              updateCatalogItemSettings,
+              deleteCatalogItemSettings);
 
       initDefaults(this);
     }
@@ -392,42 +394,42 @@ private static Builder createDefault() {
 
     private static Builder initDefaults(Builder builder) {
 
-      builder
-          .deleteCatalogItemSettings()
-          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
-          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
-
       builder
           .importCatalogItemsSettings()
-          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
-          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
 
       builder
           .createCatalogItemSettings()
-          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
-          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
 
       builder
           .getCatalogItemSettings()
-          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
-          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
 
       builder
           .listCatalogItemsSettings()
-          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
-          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
 
       builder
           .updateCatalogItemSettings()
-          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
-          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
+
+      builder
+          .deleteCatalogItemSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
       builder
           .importCatalogItemsOperationSettings()
           .setInitialCallSettings(
               UnaryCallSettings
                   .newUnaryCallSettingsBuilder()
-                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
-                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"))
                   .build())
           .setResponseTransformer(
               ProtoOperationTransformers.ResponseTransformer.create(
@@ -452,7 +454,6 @@ private static Builder initDefaults(Builder builder) {
     protected Builder(CatalogServiceStubSettings settings) {
       super(settings);
 
-      deleteCatalogItemSettings = settings.deleteCatalogItemSettings.toBuilder();
       importCatalogItemsSettings = settings.importCatalogItemsSettings.toBuilder();
       importCatalogItemsOperationSettings =
           settings.importCatalogItemsOperationSettings.toBuilder();
@@ -460,15 +461,16 @@ protected Builder(CatalogServiceStubSettings settings) {
       getCatalogItemSettings = settings.getCatalogItemSettings.toBuilder();
       listCatalogItemsSettings = settings.listCatalogItemsSettings.toBuilder();
       updateCatalogItemSettings = settings.updateCatalogItemSettings.toBuilder();
+      deleteCatalogItemSettings = settings.deleteCatalogItemSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
-              deleteCatalogItemSettings,
               importCatalogItemsSettings,
               createCatalogItemSettings,
               getCatalogItemSettings,
               listCatalogItemsSettings,
-              updateCatalogItemSettings);
+              updateCatalogItemSettings,
+              deleteCatalogItemSettings);
     }
 
     // NEXT_MAJOR_VER: remove 'throws Exception'
@@ -487,11 +489,6 @@ public Builder applyToAllUnaryMethods(
       return unaryMethodSettingsBuilders;
     }
 
-    /** Returns the builder for the settings used for calls to deleteCatalogItem. */
-    public UnaryCallSettings.Builder deleteCatalogItemSettings() {
-      return deleteCatalogItemSettings;
-    }
-
     /** Returns the builder for the settings used for calls to importCatalogItems. */
     public UnaryCallSettings.Builder
         importCatalogItemsSettings() {
@@ -531,6 +528,11 @@ public UnaryCallSettings.Builder getCatalogI
       return updateCatalogItemSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteCatalogItem. */
+    public UnaryCallSettings.Builder deleteCatalogItemSettings() {
+      return deleteCatalogItemSettings;
+    }
+
     @Override
     public CatalogServiceStubSettings build() throws IOException {
       return new CatalogServiceStubSettings(this);
diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceStub.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceStub.java
index 6e75f27d..883c7fa0 100644
--- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceStub.java
+++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceStub.java
@@ -57,16 +57,6 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public class GrpcCatalogServiceStub extends CatalogServiceStub {
 
-  private static final MethodDescriptor
-      deleteCatalogItemMethodDescriptor =
-          MethodDescriptor.newBuilder()
-              .setType(MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(
-                  "google.cloud.recommendationengine.v1beta1.CatalogService/DeleteCatalogItem")
-              .setRequestMarshaller(
-                  ProtoUtils.marshaller(DeleteCatalogItemRequest.getDefaultInstance()))
-              .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
-              .build();
   private static final MethodDescriptor
       importCatalogItemsMethodDescriptor =
           MethodDescriptor.newBuilder()
@@ -118,11 +108,20 @@ public class GrpcCatalogServiceStub extends CatalogServiceStub {
                   ProtoUtils.marshaller(UpdateCatalogItemRequest.getDefaultInstance()))
               .setResponseMarshaller(ProtoUtils.marshaller(CatalogItem.getDefaultInstance()))
               .build();
+  private static final MethodDescriptor
+      deleteCatalogItemMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(
+                  "google.cloud.recommendationengine.v1beta1.CatalogService/DeleteCatalogItem")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(DeleteCatalogItemRequest.getDefaultInstance()))
+              .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
+              .build();
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
 
-  private final UnaryCallable deleteCatalogItemCallable;
   private final UnaryCallable importCatalogItemsCallable;
   private final OperationCallable<
           ImportCatalogItemsRequest, ImportCatalogItemsResponse, ImportMetadata>
@@ -134,6 +133,7 @@ public class GrpcCatalogServiceStub extends CatalogServiceStub {
   private final UnaryCallable
       listCatalogItemsPagedCallable;
   private final UnaryCallable updateCatalogItemCallable;
+  private final UnaryCallable deleteCatalogItemCallable;
 
   private final GrpcStubCallableFactory callableFactory;
 
@@ -177,19 +177,6 @@ protected GrpcCatalogServiceStub(
     this.callableFactory = callableFactory;
     this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory);
 
-    GrpcCallSettings deleteCatalogItemTransportSettings =
-        GrpcCallSettings.newBuilder()
-            .setMethodDescriptor(deleteCatalogItemMethodDescriptor)
-            .setParamsExtractor(
-                new RequestParamsExtractor() {
-                  @Override
-                  public Map extract(DeleteCatalogItemRequest request) {
-                    ImmutableMap.Builder params = ImmutableMap.builder();
-                    params.put("name", String.valueOf(request.getName()));
-                    return params.build();
-                  }
-                })
-            .build();
     GrpcCallSettings importCatalogItemsTransportSettings =
         GrpcCallSettings.newBuilder()
             .setMethodDescriptor(importCatalogItemsMethodDescriptor)
@@ -256,12 +243,20 @@ public Map extract(UpdateCatalogItemRequest request) {
                   }
                 })
             .build();
+    GrpcCallSettings deleteCatalogItemTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(deleteCatalogItemMethodDescriptor)
+            .setParamsExtractor(
+                new RequestParamsExtractor() {
+                  @Override
+                  public Map extract(DeleteCatalogItemRequest request) {
+                    ImmutableMap.Builder params = ImmutableMap.builder();
+                    params.put("name", String.valueOf(request.getName()));
+                    return params.build();
+                  }
+                })
+            .build();
 
-    this.deleteCatalogItemCallable =
-        callableFactory.createUnaryCallable(
-            deleteCatalogItemTransportSettings,
-            settings.deleteCatalogItemSettings(),
-            clientContext);
     this.importCatalogItemsCallable =
         callableFactory.createUnaryCallable(
             importCatalogItemsTransportSettings,
@@ -292,6 +287,11 @@ public Map extract(UpdateCatalogItemRequest request) {
             updateCatalogItemTransportSettings,
             settings.updateCatalogItemSettings(),
             clientContext);
+    this.deleteCatalogItemCallable =
+        callableFactory.createUnaryCallable(
+            deleteCatalogItemTransportSettings,
+            settings.deleteCatalogItemSettings(),
+            clientContext);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
@@ -301,10 +301,6 @@ public GrpcOperationsStub getOperationsStub() {
     return operationsStub;
   }
 
-  public UnaryCallable deleteCatalogItemCallable() {
-    return deleteCatalogItemCallable;
-  }
-
   @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
   public OperationCallable
       importCatalogItemsOperationCallable() {
@@ -337,6 +333,10 @@ public UnaryCallable updateCatalogItemCal
     return updateCatalogItemCallable;
   }
 
+  public UnaryCallable deleteCatalogItemCallable() {
+    return deleteCatalogItemCallable;
+  }
+
   @Override
   public final void close() {
     shutdown();
diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryStub.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryStub.java
index 30805cd3..fd549a8d 100644
--- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryStub.java
+++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryStub.java
@@ -49,17 +49,6 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public class GrpcPredictionApiKeyRegistryStub extends PredictionApiKeyRegistryStub {
 
-  private static final MethodDescriptor
-      deletePredictionApiKeyRegistrationMethodDescriptor =
-          MethodDescriptor.newBuilder()
-              .setType(MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(
-                  "google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry/DeletePredictionApiKeyRegistration")
-              .setRequestMarshaller(
-                  ProtoUtils.marshaller(
-                      DeletePredictionApiKeyRegistrationRequest.getDefaultInstance()))
-              .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
-              .build();
   private static final MethodDescriptor<
           CreatePredictionApiKeyRegistrationRequest, PredictionApiKeyRegistration>
       createPredictionApiKeyRegistrationMethodDescriptor =
@@ -90,11 +79,20 @@ public class GrpcPredictionApiKeyRegistryStub extends PredictionApiKeyRegistrySt
                   ProtoUtils.marshaller(
                       ListPredictionApiKeyRegistrationsResponse.getDefaultInstance()))
               .build();
+  private static final MethodDescriptor
+      deletePredictionApiKeyRegistrationMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(
+                  "google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry/DeletePredictionApiKeyRegistration")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(
+                      DeletePredictionApiKeyRegistrationRequest.getDefaultInstance()))
+              .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
+              .build();
 
   private final BackgroundResource backgroundResources;
 
-  private final UnaryCallable
-      deletePredictionApiKeyRegistrationCallable;
   private final UnaryCallable<
           CreatePredictionApiKeyRegistrationRequest, PredictionApiKeyRegistration>
       createPredictionApiKeyRegistrationCallable;
@@ -104,6 +102,8 @@ public class GrpcPredictionApiKeyRegistryStub extends PredictionApiKeyRegistrySt
   private final UnaryCallable<
           ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsPagedResponse>
       listPredictionApiKeyRegistrationsPagedCallable;
+  private final UnaryCallable
+      deletePredictionApiKeyRegistrationCallable;
 
   private final GrpcStubCallableFactory callableFactory;
 
@@ -147,21 +147,6 @@ protected GrpcPredictionApiKeyRegistryStub(
       throws IOException {
     this.callableFactory = callableFactory;
 
-    GrpcCallSettings
-        deletePredictionApiKeyRegistrationTransportSettings =
-            GrpcCallSettings.newBuilder()
-                .setMethodDescriptor(deletePredictionApiKeyRegistrationMethodDescriptor)
-                .setParamsExtractor(
-                    new RequestParamsExtractor() {
-                      @Override
-                      public Map extract(
-                          DeletePredictionApiKeyRegistrationRequest request) {
-                        ImmutableMap.Builder params = ImmutableMap.builder();
-                        params.put("name", String.valueOf(request.getName()));
-                        return params.build();
-                      }
-                    })
-                .build();
     GrpcCallSettings
         createPredictionApiKeyRegistrationTransportSettings =
             GrpcCallSettings
@@ -198,12 +183,22 @@ public Map extract(
                       }
                     })
                 .build();
+    GrpcCallSettings
+        deletePredictionApiKeyRegistrationTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(deletePredictionApiKeyRegistrationMethodDescriptor)
+                .setParamsExtractor(
+                    new RequestParamsExtractor() {
+                      @Override
+                      public Map extract(
+                          DeletePredictionApiKeyRegistrationRequest request) {
+                        ImmutableMap.Builder params = ImmutableMap.builder();
+                        params.put("name", String.valueOf(request.getName()));
+                        return params.build();
+                      }
+                    })
+                .build();
 
-    this.deletePredictionApiKeyRegistrationCallable =
-        callableFactory.createUnaryCallable(
-            deletePredictionApiKeyRegistrationTransportSettings,
-            settings.deletePredictionApiKeyRegistrationSettings(),
-            clientContext);
     this.createPredictionApiKeyRegistrationCallable =
         callableFactory.createUnaryCallable(
             createPredictionApiKeyRegistrationTransportSettings,
@@ -219,15 +214,15 @@ public Map extract(
             listPredictionApiKeyRegistrationsTransportSettings,
             settings.listPredictionApiKeyRegistrationsSettings(),
             clientContext);
+    this.deletePredictionApiKeyRegistrationCallable =
+        callableFactory.createUnaryCallable(
+            deletePredictionApiKeyRegistrationTransportSettings,
+            settings.deletePredictionApiKeyRegistrationSettings(),
+            clientContext);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
-  public UnaryCallable
-      deletePredictionApiKeyRegistrationCallable() {
-    return deletePredictionApiKeyRegistrationCallable;
-  }
-
   public UnaryCallable
       createPredictionApiKeyRegistrationCallable() {
     return createPredictionApiKeyRegistrationCallable;
@@ -245,6 +240,11 @@ public Map extract(
     return listPredictionApiKeyRegistrationsCallable;
   }
 
+  public UnaryCallable
+      deletePredictionApiKeyRegistrationCallable() {
+    return deletePredictionApiKeyRegistrationCallable;
+  }
+
   @Override
   public final void close() {
     shutdown();
diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStub.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStub.java
index 32657ec4..28c95631 100644
--- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStub.java
+++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStub.java
@@ -38,12 +38,6 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class PredictionApiKeyRegistryStub implements BackgroundResource {
 
-  public UnaryCallable
-      deletePredictionApiKeyRegistrationCallable() {
-    throw new UnsupportedOperationException(
-        "Not implemented: deletePredictionApiKeyRegistrationCallable()");
-  }
-
   public UnaryCallable
       createPredictionApiKeyRegistrationCallable() {
     throw new UnsupportedOperationException(
@@ -64,6 +58,12 @@ public abstract class PredictionApiKeyRegistryStub implements BackgroundResource
         "Not implemented: listPredictionApiKeyRegistrationsCallable()");
   }
 
+  public UnaryCallable
+      deletePredictionApiKeyRegistrationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deletePredictionApiKeyRegistrationCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java
index fc709c29..0a668df1 100644
--- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java
+++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java
@@ -70,16 +70,16 @@
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *

For example, to set the total timeout of deletePredictionApiKeyRegistration to 30 seconds: + *

For example, to set the total timeout of createPredictionApiKeyRegistration to 30 seconds: * *

  * 
  * PredictionApiKeyRegistryStubSettings.Builder predictionApiKeyRegistrySettingsBuilder =
  *     PredictionApiKeyRegistryStubSettings.newBuilder();
  * predictionApiKeyRegistrySettingsBuilder
- *     .deletePredictionApiKeyRegistrationSettings()
+ *     .createPredictionApiKeyRegistrationSettings()
  *     .setRetrySettings(
- *         predictionApiKeyRegistrySettingsBuilder.deletePredictionApiKeyRegistrationSettings().getRetrySettings().toBuilder()
+ *         predictionApiKeyRegistrySettingsBuilder.createPredictionApiKeyRegistrationSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * PredictionApiKeyRegistryStubSettings predictionApiKeyRegistrySettings = predictionApiKeyRegistrySettingsBuilder.build();
@@ -94,8 +94,6 @@ public class PredictionApiKeyRegistryStubSettings
   private static final ImmutableList DEFAULT_SERVICE_SCOPES =
       ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build();
 
-  private final UnaryCallSettings
-      deletePredictionApiKeyRegistrationSettings;
   private final UnaryCallSettings<
           CreatePredictionApiKeyRegistrationRequest, PredictionApiKeyRegistration>
       createPredictionApiKeyRegistrationSettings;
@@ -104,12 +102,8 @@ public class PredictionApiKeyRegistryStubSettings
           ListPredictionApiKeyRegistrationsResponse,
           ListPredictionApiKeyRegistrationsPagedResponse>
       listPredictionApiKeyRegistrationsSettings;
-
-  /** Returns the object with the settings used for calls to deletePredictionApiKeyRegistration. */
-  public UnaryCallSettings
-      deletePredictionApiKeyRegistrationSettings() {
-    return deletePredictionApiKeyRegistrationSettings;
-  }
+  private final UnaryCallSettings
+      deletePredictionApiKeyRegistrationSettings;
 
   /** Returns the object with the settings used for calls to createPredictionApiKeyRegistration. */
   public UnaryCallSettings
@@ -126,6 +120,12 @@ public class PredictionApiKeyRegistryStubSettings
     return listPredictionApiKeyRegistrationsSettings;
   }
 
+  /** Returns the object with the settings used for calls to deletePredictionApiKeyRegistration. */
+  public UnaryCallSettings
+      deletePredictionApiKeyRegistrationSettings() {
+    return deletePredictionApiKeyRegistrationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public PredictionApiKeyRegistryStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -195,12 +195,12 @@ public Builder toBuilder() {
   protected PredictionApiKeyRegistryStubSettings(Builder settingsBuilder) throws IOException {
     super(settingsBuilder);
 
-    deletePredictionApiKeyRegistrationSettings =
-        settingsBuilder.deletePredictionApiKeyRegistrationSettings().build();
     createPredictionApiKeyRegistrationSettings =
         settingsBuilder.createPredictionApiKeyRegistrationSettings().build();
     listPredictionApiKeyRegistrationsSettings =
         settingsBuilder.listPredictionApiKeyRegistrationsSettings().build();
+    deletePredictionApiKeyRegistrationSettings =
+        settingsBuilder.deletePredictionApiKeyRegistrationSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -290,8 +290,6 @@ public static class Builder
       extends StubSettings.Builder {
     private final ImmutableList> unaryMethodSettingsBuilders;
 
-    private final UnaryCallSettings.Builder
-        deletePredictionApiKeyRegistrationSettings;
     private final UnaryCallSettings.Builder<
             CreatePredictionApiKeyRegistrationRequest, PredictionApiKeyRegistration>
         createPredictionApiKeyRegistrationSettings;
@@ -300,6 +298,8 @@ public static class Builder
             ListPredictionApiKeyRegistrationsResponse,
             ListPredictionApiKeyRegistrationsPagedResponse>
         listPredictionApiKeyRegistrationsSettings;
+    private final UnaryCallSettings.Builder
+        deletePredictionApiKeyRegistrationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -308,11 +308,11 @@ public static class Builder
       ImmutableMap.Builder> definitions =
           ImmutableMap.builder();
       definitions.put(
-          "idempotent",
+          "retry_policy_1_codes",
           ImmutableSet.copyOf(
               Lists.newArrayList(
-                  StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE)));
-      definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList()));
+                  StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED)));
+      definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList()));
       RETRYABLE_CODE_DEFINITIONS = definitions.build();
     }
 
@@ -326,12 +326,14 @@ public static class Builder
               .setInitialRetryDelay(Duration.ofMillis(100L))
               .setRetryDelayMultiplier(1.3)
               .setMaxRetryDelay(Duration.ofMillis(60000L))
-              .setInitialRpcTimeout(Duration.ofMillis(20000L))
+              .setInitialRpcTimeout(Duration.ofMillis(600000L))
               .setRpcTimeoutMultiplier(1.0)
-              .setMaxRpcTimeout(Duration.ofMillis(20000L))
+              .setMaxRpcTimeout(Duration.ofMillis(600000L))
               .setTotalTimeout(Duration.ofMillis(600000L))
               .build();
-      definitions.put("default", settings);
+      definitions.put("retry_policy_1_params", settings);
+      settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build();
+      definitions.put("no_retry_params", settings);
       RETRY_PARAM_DEFINITIONS = definitions.build();
     }
 
@@ -342,18 +344,18 @@ protected Builder() {
     protected Builder(ClientContext clientContext) {
       super(clientContext);
 
-      deletePredictionApiKeyRegistrationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
-
       createPredictionApiKeyRegistrationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       listPredictionApiKeyRegistrationsSettings =
           PagedCallSettings.newBuilder(LIST_PREDICTION_API_KEY_REGISTRATIONS_PAGE_STR_FACT);
 
+      deletePredictionApiKeyRegistrationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
-              deletePredictionApiKeyRegistrationSettings,
               createPredictionApiKeyRegistrationSettings,
-              listPredictionApiKeyRegistrationsSettings);
+              listPredictionApiKeyRegistrationsSettings,
+              deletePredictionApiKeyRegistrationSettings);
 
       initDefaults(this);
     }
@@ -369,20 +371,20 @@ private static Builder createDefault() {
 
     private static Builder initDefaults(Builder builder) {
 
-      builder
-          .deletePredictionApiKeyRegistrationSettings()
-          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
-          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
-
       builder
           .createPredictionApiKeyRegistrationSettings()
-          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
-          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
 
       builder
           .listPredictionApiKeyRegistrationsSettings()
-          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
-          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
+
+      builder
+          .deletePredictionApiKeyRegistrationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
 
       return builder;
     }
@@ -390,18 +392,18 @@ private static Builder initDefaults(Builder builder) {
     protected Builder(PredictionApiKeyRegistryStubSettings settings) {
       super(settings);
 
-      deletePredictionApiKeyRegistrationSettings =
-          settings.deletePredictionApiKeyRegistrationSettings.toBuilder();
       createPredictionApiKeyRegistrationSettings =
           settings.createPredictionApiKeyRegistrationSettings.toBuilder();
       listPredictionApiKeyRegistrationsSettings =
           settings.listPredictionApiKeyRegistrationsSettings.toBuilder();
+      deletePredictionApiKeyRegistrationSettings =
+          settings.deletePredictionApiKeyRegistrationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
-              deletePredictionApiKeyRegistrationSettings,
               createPredictionApiKeyRegistrationSettings,
-              listPredictionApiKeyRegistrationsSettings);
+              listPredictionApiKeyRegistrationsSettings,
+              deletePredictionApiKeyRegistrationSettings);
     }
 
     // NEXT_MAJOR_VER: remove 'throws Exception'
@@ -420,14 +422,6 @@ public Builder applyToAllUnaryMethods(
       return unaryMethodSettingsBuilders;
     }
 
-    /**
-     * Returns the builder for the settings used for calls to deletePredictionApiKeyRegistration.
-     */
-    public UnaryCallSettings.Builder
-        deletePredictionApiKeyRegistrationSettings() {
-      return deletePredictionApiKeyRegistrationSettings;
-    }
-
     /**
      * Returns the builder for the settings used for calls to createPredictionApiKeyRegistration.
      */
@@ -446,6 +440,14 @@ public Builder applyToAllUnaryMethods(
       return listPredictionApiKeyRegistrationsSettings;
     }
 
+    /**
+     * Returns the builder for the settings used for calls to deletePredictionApiKeyRegistration.
+     */
+    public UnaryCallSettings.Builder
+        deletePredictionApiKeyRegistrationSettings() {
+      return deletePredictionApiKeyRegistrationSettings;
+    }
+
     @Override
     public PredictionApiKeyRegistryStubSettings build() throws IOException {
       return new PredictionApiKeyRegistryStubSettings(this);
diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java
index a87fde08..b67edb6c 100644
--- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java
+++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java
@@ -240,11 +240,11 @@ public static class Builder extends StubSettings.Builder> definitions =
           ImmutableMap.builder();
       definitions.put(
-          "idempotent",
+          "retry_policy_1_codes",
           ImmutableSet.copyOf(
               Lists.newArrayList(
-                  StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE)));
-      definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList()));
+                  StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED)));
+      definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList()));
       RETRYABLE_CODE_DEFINITIONS = definitions.build();
     }
 
@@ -258,12 +258,14 @@ public static class Builder extends StubSettings.Builder> definitions =
           ImmutableMap.builder();
       definitions.put(
-          "idempotent",
+          "retry_policy_1_codes",
           ImmutableSet.copyOf(
               Lists.newArrayList(
-                  StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE)));
-      definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList()));
+                  StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED)));
+      definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList()));
       RETRYABLE_CODE_DEFINITIONS = definitions.build();
     }
 
@@ -339,12 +339,14 @@ public static class Builder extends StubSettings.BuildernewUnaryCallSettingsBuilder()
-                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
-                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"))
                   .build())
           .setResponseTransformer(
               ProtoOperationTransformers.ResponseTransformer.create(PurgeUserEventsResponse.class))
@@ -443,8 +445,8 @@ private static Builder initDefaults(Builder builder) {
           .setInitialCallSettings(
               UnaryCallSettings
                   .newUnaryCallSettingsBuilder()
-                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
-                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"))
                   .build())
           .setResponseTransformer(
               ProtoOperationTransformers.ResponseTransformer.create(ImportUserEventsResponse.class))
diff --git a/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClientTest.java b/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClientTest.java
index dfb5afe7..c7b814ac 100644
--- a/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClientTest.java
+++ b/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClientTest.java
@@ -94,45 +94,6 @@ public void tearDown() throws Exception {
     client.close();
   }
 
-  @Test
-  @SuppressWarnings("all")
-  public void deleteCatalogItemTest() {
-    Empty expectedResponse = Empty.newBuilder().build();
-    mockCatalogService.addResponse(expectedResponse);
-
-    CatalogItemPathName name =
-        CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]");
-
-    client.deleteCatalogItem(name);
-
-    List actualRequests = mockCatalogService.getRequests();
-    Assert.assertEquals(1, actualRequests.size());
-    DeleteCatalogItemRequest actualRequest = (DeleteCatalogItemRequest) actualRequests.get(0);
-
-    Assert.assertEquals(name, CatalogItemPathName.parse(actualRequest.getName()));
-    Assert.assertTrue(
-        channelProvider.isHeaderSent(
-            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
-            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
-  }
-
-  @Test
-  @SuppressWarnings("all")
-  public void deleteCatalogItemExceptionTest() throws Exception {
-    StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
-    mockCatalogService.addException(exception);
-
-    try {
-      CatalogItemPathName name =
-          CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]");
-
-      client.deleteCatalogItem(name);
-      Assert.fail("No exception raised");
-    } catch (InvalidArgumentException e) {
-      // Expected exception
-    }
-  }
-
   @Test
   @SuppressWarnings("all")
   public void importCatalogItemsTest() throws Exception {
@@ -402,4 +363,43 @@ public void updateCatalogItemExceptionTest() throws Exception {
       // Expected exception
     }
   }
+
+  @Test
+  @SuppressWarnings("all")
+  public void deleteCatalogItemTest() {
+    Empty expectedResponse = Empty.newBuilder().build();
+    mockCatalogService.addResponse(expectedResponse);
+
+    CatalogItemPathName name =
+        CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]");
+
+    client.deleteCatalogItem(name);
+
+    List actualRequests = mockCatalogService.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    DeleteCatalogItemRequest actualRequest = (DeleteCatalogItemRequest) actualRequests.get(0);
+
+    Assert.assertEquals(name, CatalogItemPathName.parse(actualRequest.getName()));
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  @SuppressWarnings("all")
+  public void deleteCatalogItemExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
+    mockCatalogService.addException(exception);
+
+    try {
+      CatalogItemPathName name =
+          CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]");
+
+      client.deleteCatalogItem(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception
+    }
+  }
 }
diff --git a/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClientTest.java b/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClientTest.java
index e5f3117a..886c6dd1 100644
--- a/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClientTest.java
+++ b/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClientTest.java
@@ -89,56 +89,6 @@ public void tearDown() throws Exception {
     client.close();
   }
 
-  @Test
-  @SuppressWarnings("all")
-  public void deletePredictionApiKeyRegistrationTest() {
-    Empty expectedResponse = Empty.newBuilder().build();
-    mockPredictionApiKeyRegistry.addResponse(expectedResponse);
-
-    PredictionApiKeyRegistrationName name =
-        PredictionApiKeyRegistrationName.of(
-            "[PROJECT]",
-            "[LOCATION]",
-            "[CATALOG]",
-            "[EVENT_STORE]",
-            "[PREDICTION_API_KEY_REGISTRATION]");
-
-    client.deletePredictionApiKeyRegistration(name);
-
-    List actualRequests = mockPredictionApiKeyRegistry.getRequests();
-    Assert.assertEquals(1, actualRequests.size());
-    DeletePredictionApiKeyRegistrationRequest actualRequest =
-        (DeletePredictionApiKeyRegistrationRequest) actualRequests.get(0);
-
-    Assert.assertEquals(name, PredictionApiKeyRegistrationName.parse(actualRequest.getName()));
-    Assert.assertTrue(
-        channelProvider.isHeaderSent(
-            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
-            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
-  }
-
-  @Test
-  @SuppressWarnings("all")
-  public void deletePredictionApiKeyRegistrationExceptionTest() throws Exception {
-    StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
-    mockPredictionApiKeyRegistry.addException(exception);
-
-    try {
-      PredictionApiKeyRegistrationName name =
-          PredictionApiKeyRegistrationName.of(
-              "[PROJECT]",
-              "[LOCATION]",
-              "[CATALOG]",
-              "[EVENT_STORE]",
-              "[PREDICTION_API_KEY_REGISTRATION]");
-
-      client.deletePredictionApiKeyRegistration(name);
-      Assert.fail("No exception raised");
-    } catch (InvalidArgumentException e) {
-      // Expected exception
-    }
-  }
-
   @Test
   @SuppressWarnings("all")
   public void createPredictionApiKeyRegistrationTest() {
@@ -244,4 +194,54 @@ public void listPredictionApiKeyRegistrationsExceptionTest() throws Exception {
       // Expected exception
     }
   }
+
+  @Test
+  @SuppressWarnings("all")
+  public void deletePredictionApiKeyRegistrationTest() {
+    Empty expectedResponse = Empty.newBuilder().build();
+    mockPredictionApiKeyRegistry.addResponse(expectedResponse);
+
+    PredictionApiKeyRegistrationName name =
+        PredictionApiKeyRegistrationName.of(
+            "[PROJECT]",
+            "[LOCATION]",
+            "[CATALOG]",
+            "[EVENT_STORE]",
+            "[PREDICTION_API_KEY_REGISTRATION]");
+
+    client.deletePredictionApiKeyRegistration(name);
+
+    List actualRequests = mockPredictionApiKeyRegistry.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    DeletePredictionApiKeyRegistrationRequest actualRequest =
+        (DeletePredictionApiKeyRegistrationRequest) actualRequests.get(0);
+
+    Assert.assertEquals(name, PredictionApiKeyRegistrationName.parse(actualRequest.getName()));
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  @SuppressWarnings("all")
+  public void deletePredictionApiKeyRegistrationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
+    mockPredictionApiKeyRegistry.addException(exception);
+
+    try {
+      PredictionApiKeyRegistrationName name =
+          PredictionApiKeyRegistrationName.of(
+              "[PROJECT]",
+              "[LOCATION]",
+              "[CATALOG]",
+              "[EVENT_STORE]",
+              "[PREDICTION_API_KEY_REGISTRATION]");
+
+      client.deletePredictionApiKeyRegistration(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception
+    }
+  }
 }
diff --git a/synth.metadata b/synth.metadata
index 3fa18168..22eb1fa3 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,15 +4,15 @@
       "git": {
         "name": ".",
         "remote": "https://github.com/googleapis/java-recommendations-ai.git",
-        "sha": "3f87f2d4265aecd2c7ae2364e9fcb9cba51ff89f"
+        "sha": "c5b045391842364f5c0c0c8ca862f4e58f9a1a28"
       }
     },
     {
       "git": {
         "name": "googleapis",
         "remote": "https://github.com/googleapis/googleapis.git",
-        "sha": "8dbe1d7f963adba47ea88205cae3ff6b97adb75e",
-        "internalRef": "314672365"
+        "sha": "864dfeafdd5429e20612d378169858d9fe08c9e8",
+        "internalRef": "316509011"
       }
     },
     {