When inventory is updated with - * [CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and - * [UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct], the specified inventory - * field value(s) will overwrite any existing value(s) while ignoring the last update time for - * this field. Furthermore, the last update time for the specified inventory fields will be - * overwritten to the time of the - * [CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] or - * [UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] request. + * [ProductService.CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and + * [ProductService.UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct], the + * specified inventory field value(s) will overwrite any existing value(s) while ignoring the last + * update time for this field. Furthermore, the last update time for the specified inventory + * fields will be overwritten to the time of the + * [ProductService.CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] or + * [ProductService.UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] request. * *
If no inventory fields are set in
* [CreateProductRequest.product][google.cloud.retail.v2.CreateProductRequest.product], then any
@@ -985,9 +985,10 @@ public final UnaryCallable Pre-existing inventory information can only be updated with
- * [SetInventory][google.cloud.retail.v2.ProductService.SetInventory],
+ * [ProductService.SetInventory][google.cloud.retail.v2.ProductService.SetInventory],
* [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces],
- * and [RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces].
+ * and
+ * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces].
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1015,8 +1016,8 @@ public final UnaryCallable If [SetInventoryRequest.inventory.name][] is empty or invalid, an INVALID_ARGUMENT error
- * is returned.
+ * If [SetInventoryRequest.inventory.name][google.cloud.retail.v2.Product.name] is empty or
+ * invalid, an INVALID_ARGUMENT error is returned.
* If the caller does not have permission to update the
* [Product][google.cloud.retail.v2.Product] named in
* [Product.name][google.cloud.retail.v2.Product.name], regardless of whether or not it
@@ -1033,7 +1034,7 @@ public final UnaryCallable The caller can clear all place IDs from a subset of fulfillment types in the following
* ways:
@@ -1041,9 +1042,9 @@ public final UnaryCallable The last update time is recorded for the following inventory fields:
* If a full overwrite of inventory information while ignoring timestamps is needed,
- * [UpdateProduct][] should be invoked instead.
+ * [ProductService.UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] should
+ * be invoked instead.
* @param setMask Indicates which inventory fields in the provided
* [Product][google.cloud.retail.v2.Product] to update.
* At least one field must be provided.
@@ -1078,17 +1080,17 @@ public final OperationFuture When inventory is updated with
- * [CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct], the specified inventory
- * field value(s) will overwrite any existing value(s) while ignoring the last update time for
- * this field. Furthermore, the last update time for the specified inventory fields will be
- * overwritten to the time of the
- * [CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] or
- * [UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] request.
+ * [ProductService.CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct], the
+ * specified inventory field value(s) will overwrite any existing value(s) while ignoring the last
+ * update time for this field. Furthermore, the last update time for the specified inventory
+ * fields will be overwritten to the time of the
+ * [ProductService.CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] or
+ * [ProductService.UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] request.
*
* If no inventory fields are set in
* [CreateProductRequest.product][google.cloud.retail.v2.CreateProductRequest.product], then any
@@ -1099,9 +1101,10 @@ public final OperationFuture Pre-existing inventory information can only be updated with
- * [SetInventory][google.cloud.retail.v2.ProductService.SetInventory],
+ * [ProductService.SetInventory][google.cloud.retail.v2.ProductService.SetInventory],
* [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces],
- * and [RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces].
+ * and
+ * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces].
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1141,17 +1144,17 @@ public final OperationFuture When inventory is updated with
- * [CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct], the specified inventory
- * field value(s) will overwrite any existing value(s) while ignoring the last update time for
- * this field. Furthermore, the last update time for the specified inventory fields will be
- * overwritten to the time of the
- * [CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] or
- * [UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] request.
+ * [ProductService.CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct], the
+ * specified inventory field value(s) will overwrite any existing value(s) while ignoring the last
+ * update time for this field. Furthermore, the last update time for the specified inventory
+ * fields will be overwritten to the time of the
+ * [ProductService.CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] or
+ * [ProductService.UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] request.
*
* If no inventory fields are set in
* [CreateProductRequest.product][google.cloud.retail.v2.CreateProductRequest.product], then any
@@ -1162,9 +1165,10 @@ public final OperationFuture Pre-existing inventory information can only be updated with
- * [SetInventory][google.cloud.retail.v2.ProductService.SetInventory],
+ * [ProductService.SetInventory][google.cloud.retail.v2.ProductService.SetInventory],
* [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces],
- * and [RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces].
+ * and
+ * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces].
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1204,17 +1208,17 @@ public final OperationFuture When inventory is updated with
- * [CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct], the specified inventory
- * field value(s) will overwrite any existing value(s) while ignoring the last update time for
- * this field. Furthermore, the last update time for the specified inventory fields will be
- * overwritten to the time of the
- * [CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] or
- * [UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] request.
+ * [ProductService.CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct], the
+ * specified inventory field value(s) will overwrite any existing value(s) while ignoring the last
+ * update time for this field. Furthermore, the last update time for the specified inventory
+ * fields will be overwritten to the time of the
+ * [ProductService.CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] or
+ * [ProductService.UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] request.
*
* If no inventory fields are set in
* [CreateProductRequest.product][google.cloud.retail.v2.CreateProductRequest.product], then any
@@ -1225,9 +1229,10 @@ public final OperationFuture Pre-existing inventory information can only be updated with
- * [SetInventory][google.cloud.retail.v2.ProductService.SetInventory],
+ * [ProductService.SetInventory][google.cloud.retail.v2.ProductService.SetInventory],
* [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces],
- * and [RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces].
+ * and
+ * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces].
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1265,8 +1270,8 @@ public final UnaryCallable This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1311,8 +1316,8 @@ public final UnaryCallable This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1356,8 +1361,8 @@ public final UnaryCallable This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1401,8 +1406,8 @@ public final UnaryCallable This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1446,8 +1451,8 @@ public final UnaryCallable This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1490,8 +1495,8 @@ public final UnaryCallable This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1536,8 +1541,8 @@ public final UnaryCallable This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1581,8 +1586,8 @@ public final UnaryCallable This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1626,8 +1631,8 @@ public final UnaryCallable This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1673,8 +1678,8 @@ public final UnaryCallable This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1717,13 +1722,13 @@ public final UnaryCallable Local inventory information can only be modified using this method.
- * [CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] has no effect on local
- * inventories.
+ * [ProductService.CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] has no
+ * effect on local inventories.
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1768,13 +1773,13 @@ public final UnaryCallable Local inventory information can only be modified using this method.
- * [CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] has no effect on local
- * inventories.
+ * [ProductService.CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] has no
+ * effect on local inventories.
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1818,13 +1823,13 @@ public final UnaryCallable Local inventory information can only be modified using this method.
- * [CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] has no effect on local
- * inventories.
+ * [ProductService.CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] has no
+ * effect on local inventories.
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1868,13 +1873,13 @@ public final UnaryCallable Local inventory information can only be modified using this method.
- * [CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] has no effect on local
- * inventories.
+ * [ProductService.CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] has no
+ * effect on local inventories.
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1918,13 +1923,13 @@ public final UnaryCallable Local inventory information can only be modified using this method.
- * [CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] has no effect on local
- * inventories.
+ * [ProductService.CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] has no
+ * effect on local inventories.
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1964,13 +1969,13 @@ public final UnaryCallable This process is asynchronous. If the request is valid, the removal will be enqueued and
* processed downstream. As a consequence, when a response is returned, removals are not
* immediately manifested in the [Product][google.cloud.retail.v2.Product] queried by
- * [GetProduct][google.cloud.retail.v2.ProductService.GetProduct] or
- * [ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
+ * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] or
+ * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
*
* Local inventory information can only be removed using this method.
- * [CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] has no effect on local
- * inventories.
+ * [ProductService.CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] has no
+ * effect on local inventories.
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -2013,13 +2018,13 @@ public final UnaryCallable This process is asynchronous. If the request is valid, the removal will be enqueued and
* processed downstream. As a consequence, when a response is returned, removals are not
* immediately manifested in the [Product][google.cloud.retail.v2.Product] queried by
- * [GetProduct][google.cloud.retail.v2.ProductService.GetProduct] or
- * [ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
+ * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] or
+ * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
*
* Local inventory information can only be removed using this method.
- * [CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] has no effect on local
- * inventories.
+ * [ProductService.CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] has no
+ * effect on local inventories.
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -2061,13 +2066,13 @@ public final UnaryCallable This process is asynchronous. If the request is valid, the removal will be enqueued and
* processed downstream. As a consequence, when a response is returned, removals are not
* immediately manifested in the [Product][google.cloud.retail.v2.Product] queried by
- * [GetProduct][google.cloud.retail.v2.ProductService.GetProduct] or
- * [ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
+ * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] or
+ * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
*
* Local inventory information can only be removed using this method.
- * [CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] has no effect on local
- * inventories.
+ * [ProductService.CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] has no
+ * effect on local inventories.
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -2108,13 +2113,13 @@ public final UnaryCallable This process is asynchronous. If the request is valid, the removal will be enqueued and
* processed downstream. As a consequence, when a response is returned, removals are not
* immediately manifested in the [Product][google.cloud.retail.v2.Product] queried by
- * [GetProduct][google.cloud.retail.v2.ProductService.GetProduct] or
- * [ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
+ * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] or
+ * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
*
* Local inventory information can only be removed using this method.
- * [CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] has no effect on local
- * inventories.
+ * [ProductService.CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] has no
+ * effect on local inventories.
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -2157,13 +2162,13 @@ public final UnaryCallable This process is asynchronous. If the request is valid, the removal will be enqueued and
* processed downstream. As a consequence, when a response is returned, removals are not
* immediately manifested in the [Product][google.cloud.retail.v2.Product] queried by
- * [GetProduct][google.cloud.retail.v2.ProductService.GetProduct] or
- * [ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
+ * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] or
+ * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
*
* Local inventory information can only be removed using this method.
- * [CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] has no effect on local
- * inventories.
+ * [ProductService.CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] has no
+ * effect on local inventories.
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
diff --git a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/HttpJsonPredictionServiceStub.java b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/HttpJsonPredictionServiceStub.java
index e9f4a1d9..13f12693 100644
--- a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/HttpJsonPredictionServiceStub.java
+++ b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/HttpJsonPredictionServiceStub.java
@@ -67,6 +67,8 @@ public class HttpJsonPredictionServiceStub extends PredictionServiceStub {
serializer.putPathParam(fields, "placement", request.getPlacement());
return fields;
})
+ .setAdditionalPaths(
+ "/v2/{placement=projects/*/locations/*/catalogs/*/servingConfigs/*}:predict")
.setQueryParamsExtractor(
request -> {
Map This service allows customers to e.g.:
+ *
+ * This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the ModelServiceClient object to clean up resources such
+ * as threads. In the example above, try-with-resources is used, which automatically calls close().
+ *
+ * The surface of this class includes several types of Java methods for each of the API's
+ * methods:
+ *
+ * See the individual methods for example code.
+ *
+ * Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ * This class can be customized by passing in a custom instance of ModelServiceSettings to
+ * create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over
+ * the wire:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class ModelServiceClient implements BackgroundResource {
+ private final ModelServiceSettings settings;
+ private final ModelServiceStub stub;
+ private final OperationsClient httpJsonOperationsClient;
+ private final com.google.longrunning.OperationsClient operationsClient;
+
+ /** Constructs an instance of ModelServiceClient with default settings. */
+ public static final ModelServiceClient create() throws IOException {
+ return create(ModelServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of ModelServiceClient, using the given settings. The channels are
+ * created based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final ModelServiceClient create(ModelServiceSettings settings) throws IOException {
+ return new ModelServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of ModelServiceClient, using the given stub for making calls. This is
+ * for advanced usage - prefer using create(ModelServiceSettings).
+ */
+ public static final ModelServiceClient create(ModelServiceStub stub) {
+ return new ModelServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of ModelServiceClient, using the given settings. This is protected so
+ * that it is easy to make a subclass, but otherwise, the static factory methods should be
+ * preferred.
+ */
+ protected ModelServiceClient(ModelServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((ModelServiceStubSettings) settings.getStubSettings()).createStub();
+ this.operationsClient =
+ com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
+ this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
+ }
+
+ protected ModelServiceClient(ModelServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ this.operationsClient =
+ com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
+ this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
+ }
+
+ public final ModelServiceSettings getSettings() {
+ return settings;
+ }
+
+ public ModelServiceStub getStub() {
+ return stub;
+ }
+
+ /**
+ * Returns the OperationsClient that can be used to query the status of a long-running operation
+ * returned by another API method call.
+ */
+ public final com.google.longrunning.OperationsClient getOperationsClient() {
+ return operationsClient;
+ }
+
+ /**
+ * Returns the OperationsClient that can be used to query the status of a long-running operation
+ * returned by another API method call.
+ */
+ @BetaApi
+ public final OperationsClient getHttpJsonOperationsClient() {
+ return httpJsonOperationsClient;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new model.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * 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 pauseModel to 30 seconds:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.
+ * The attribute key can be updated by setting the mask path as "attributes.${key_name}".
+ * If a key name is present in the mask but not in the patching product from the request, this
+ * key will be deleted after the update.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Product updateProduct(Product product, FieldMask updateMask) {
@@ -858,8 +861,8 @@ public final UnaryCallable Depending on the number of [Product][google.cloud.retail.v2alpha.Product]s, this operation
* could take hours to complete. To get a sample of
@@ -900,8 +903,8 @@ public final OperationFuture Depending on the number of [Product][google.cloud.retail.v2alpha.Product]s, this operation
* could take hours to complete. To get a sample of
@@ -942,8 +945,8 @@ public final OperationFuture Depending on the number of [Product][google.cloud.retail.v2alpha.Product]s, this operation
* could take hours to complete. To get a sample of
@@ -978,8 +981,7 @@ public final UnaryCallable Request processing may be synchronous. No partial updating is supported. Non-existing items
- * are created.
+ * Request processing may be synchronous. Non-existing items are created.
*
* Note that it is possible for a subset of the [Product][google.cloud.retail.v2alpha.Product]s
* to be successfully updated.
@@ -999,6 +1001,7 @@ public final UnaryCallable Request processing may be synchronous. No partial updating is supported. Non-existing items
- * are created.
+ * Request processing may be synchronous. Non-existing items are created.
*
* Note that it is possible for a subset of the [Product][google.cloud.retail.v2alpha.Product]s
* to be successfully updated.
@@ -1037,6 +1039,7 @@ public final OperationFuture Request processing may be synchronous. No partial updating is supported. Non-existing items
- * are created.
+ * Request processing may be synchronous. Non-existing items are created.
*
* Note that it is possible for a subset of the [Product][google.cloud.retail.v2alpha.Product]s
* to be successfully updated.
@@ -1075,6 +1077,7 @@ public final OperationFuture When inventory is updated with
- * [CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct], the specified
- * inventory field value(s) will overwrite any existing value(s) while ignoring the last update
- * time for this field. Furthermore, the last update time for the specified inventory fields will
- * be overwritten to the time of the
- * [CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] or
- * [UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] request.
+ * [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct], the
+ * specified inventory field value(s) will overwrite any existing value(s) while ignoring the last
+ * update time for this field. Furthermore, the last update time for the specified inventory
+ * fields will be overwritten to the time of the
+ * [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] or
+ * [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct]
+ * request.
*
* If no inventory fields are set in
* [CreateProductRequest.product][google.cloud.retail.v2alpha.CreateProductRequest.product], then
@@ -1118,9 +1122,10 @@ public final UnaryCallable Pre-existing inventory information can only be updated with
- * [SetInventory][google.cloud.retail.v2alpha.ProductService.SetInventory],
- * [AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces], and
- * [RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces].
+ * [ProductService.SetInventory][google.cloud.retail.v2alpha.ProductService.SetInventory],
+ * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces],
+ * and
+ * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces].
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1148,8 +1153,8 @@ public final UnaryCallable If [SetInventoryRequest.inventory.name][] is empty or invalid, an INVALID_ARGUMENT error
- * is returned.
+ * If [SetInventoryRequest.inventory.name][google.cloud.retail.v2alpha.Product.name] is
+ * empty or invalid, an INVALID_ARGUMENT error is returned.
* If the caller does not have permission to update the
* [Product][google.cloud.retail.v2alpha.Product] named in
* [Product.name][google.cloud.retail.v2alpha.Product.name], regardless of whether or not it
@@ -1166,7 +1171,7 @@ public final UnaryCallable The caller can clear all place IDs from a subset of fulfillment types in the following
* ways:
@@ -1174,9 +1179,9 @@ public final UnaryCallable The last update time is recorded for the following inventory fields:
* If a full overwrite of inventory information while ignoring timestamps is needed,
- * [UpdateProduct][] should be invoked instead.
+ * [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct]
+ * should be invoked instead.
* @param setMask Indicates which inventory fields in the provided
* [Product][google.cloud.retail.v2alpha.Product] to update.
* At least one field must be provided.
@@ -1211,17 +1217,18 @@ public final OperationFuture When inventory is updated with
- * [CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct], the specified
- * inventory field value(s) will overwrite any existing value(s) while ignoring the last update
- * time for this field. Furthermore, the last update time for the specified inventory fields will
- * be overwritten to the time of the
- * [CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] or
- * [UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] request.
+ * [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct], the
+ * specified inventory field value(s) will overwrite any existing value(s) while ignoring the last
+ * update time for this field. Furthermore, the last update time for the specified inventory
+ * fields will be overwritten to the time of the
+ * [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] or
+ * [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct]
+ * request.
*
* If no inventory fields are set in
* [CreateProductRequest.product][google.cloud.retail.v2alpha.CreateProductRequest.product], then
@@ -1232,9 +1239,10 @@ public final OperationFuture Pre-existing inventory information can only be updated with
- * [SetInventory][google.cloud.retail.v2alpha.ProductService.SetInventory],
- * [AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces], and
- * [RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces].
+ * [ProductService.SetInventory][google.cloud.retail.v2alpha.ProductService.SetInventory],
+ * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces],
+ * and
+ * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces].
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1274,17 +1282,18 @@ public final OperationFuture When inventory is updated with
- * [CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct], the specified
- * inventory field value(s) will overwrite any existing value(s) while ignoring the last update
- * time for this field. Furthermore, the last update time for the specified inventory fields will
- * be overwritten to the time of the
- * [CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] or
- * [UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] request.
+ * [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct], the
+ * specified inventory field value(s) will overwrite any existing value(s) while ignoring the last
+ * update time for this field. Furthermore, the last update time for the specified inventory
+ * fields will be overwritten to the time of the
+ * [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] or
+ * [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct]
+ * request.
*
* If no inventory fields are set in
* [CreateProductRequest.product][google.cloud.retail.v2alpha.CreateProductRequest.product], then
@@ -1295,9 +1304,10 @@ public final OperationFuture Pre-existing inventory information can only be updated with
- * [SetInventory][google.cloud.retail.v2alpha.ProductService.SetInventory],
- * [AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces], and
- * [RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces].
+ * [ProductService.SetInventory][google.cloud.retail.v2alpha.ProductService.SetInventory],
+ * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces],
+ * and
+ * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces].
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1337,17 +1347,18 @@ public final OperationFuture When inventory is updated with
- * [CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct], the specified
- * inventory field value(s) will overwrite any existing value(s) while ignoring the last update
- * time for this field. Furthermore, the last update time for the specified inventory fields will
- * be overwritten to the time of the
- * [CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] or
- * [UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] request.
+ * [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct], the
+ * specified inventory field value(s) will overwrite any existing value(s) while ignoring the last
+ * update time for this field. Furthermore, the last update time for the specified inventory
+ * fields will be overwritten to the time of the
+ * [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] or
+ * [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct]
+ * request.
*
* If no inventory fields are set in
* [CreateProductRequest.product][google.cloud.retail.v2alpha.CreateProductRequest.product], then
@@ -1358,9 +1369,10 @@ public final OperationFuture Pre-existing inventory information can only be updated with
- * [SetInventory][google.cloud.retail.v2alpha.ProductService.SetInventory],
- * [AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces], and
- * [RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces].
+ * [ProductService.SetInventory][google.cloud.retail.v2alpha.ProductService.SetInventory],
+ * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces],
+ * and
+ * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces].
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1398,8 +1410,8 @@ public final UnaryCallable This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1444,8 +1456,8 @@ public final UnaryCallable This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1489,8 +1501,8 @@ public final UnaryCallable This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1534,8 +1546,8 @@ public final UnaryCallable This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1579,8 +1591,8 @@ public final UnaryCallable This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1623,8 +1635,8 @@ public final UnaryCallable This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1669,8 +1681,8 @@ public final UnaryCallable This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1714,8 +1726,8 @@ public final UnaryCallable This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1759,8 +1771,8 @@ public final UnaryCallable This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1806,8 +1818,8 @@ public final UnaryCallable This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1850,13 +1862,13 @@ public final UnaryCallable Local inventory information can only be modified using this method.
- * [CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] has no effect on
- * local inventories.
+ * [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] has no
+ * effect on local inventories.
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1901,13 +1913,13 @@ public final UnaryCallable Local inventory information can only be modified using this method.
- * [CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] has no effect on
- * local inventories.
+ * [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] has no
+ * effect on local inventories.
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -1951,13 +1963,13 @@ public final UnaryCallable Local inventory information can only be modified using this method.
- * [CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] has no effect on
- * local inventories.
+ * [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] has no
+ * effect on local inventories.
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -2001,13 +2013,13 @@ public final UnaryCallable Local inventory information can only be modified using this method.
- * [CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] has no effect on
- * local inventories.
+ * [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] has no
+ * effect on local inventories.
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -2051,13 +2063,13 @@ public final UnaryCallable Local inventory information can only be modified using this method.
- * [CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] has no effect on
- * local inventories.
+ * [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] has no
+ * effect on local inventories.
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -2097,13 +2109,13 @@ public final UnaryCallable This process is asynchronous. If the request is valid, the removal will be enqueued and
* processed downstream. As a consequence, when a response is returned, removals are not
* immediately manifested in the [Product][google.cloud.retail.v2alpha.Product] queried by
- * [GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] or
- * [ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
+ * [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] or
+ * [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
*
* Local inventory information can only be removed using this method.
- * [CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] has no effect on
- * local inventories.
+ * [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] has no
+ * effect on local inventories.
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -2146,13 +2158,13 @@ public final UnaryCallable This process is asynchronous. If the request is valid, the removal will be enqueued and
* processed downstream. As a consequence, when a response is returned, removals are not
* immediately manifested in the [Product][google.cloud.retail.v2alpha.Product] queried by
- * [GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] or
- * [ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
+ * [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] or
+ * [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
*
* Local inventory information can only be removed using this method.
- * [CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] has no effect on
- * local inventories.
+ * [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] has no
+ * effect on local inventories.
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -2194,13 +2206,13 @@ public final UnaryCallable This process is asynchronous. If the request is valid, the removal will be enqueued and
* processed downstream. As a consequence, when a response is returned, removals are not
* immediately manifested in the [Product][google.cloud.retail.v2alpha.Product] queried by
- * [GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] or
- * [ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
+ * [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] or
+ * [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
*
* Local inventory information can only be removed using this method.
- * [CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] has no effect on
- * local inventories.
+ * [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] has no
+ * effect on local inventories.
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -2241,13 +2253,13 @@ public final UnaryCallable This process is asynchronous. If the request is valid, the removal will be enqueued and
* processed downstream. As a consequence, when a response is returned, removals are not
* immediately manifested in the [Product][google.cloud.retail.v2alpha.Product] queried by
- * [GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] or
- * [ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
+ * [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] or
+ * [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
*
* Local inventory information can only be removed using this method.
- * [CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] has no effect on
- * local inventories.
+ * [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] has no
+ * effect on local inventories.
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
@@ -2290,13 +2302,13 @@ public final UnaryCallable This process is asynchronous. If the request is valid, the removal will be enqueued and
* processed downstream. As a consequence, when a response is returned, removals are not
* immediately manifested in the [Product][google.cloud.retail.v2alpha.Product] queried by
- * [GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] or
- * [ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
+ * [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] or
+ * [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
*
* Local inventory information can only be removed using this method.
- * [CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
- * [UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] has no effect on
- * local inventories.
+ * [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and
+ * [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] has no
+ * effect on local inventories.
*
* This feature is only available for users who have Retail Search enabled. Please enable
* Retail Search on Cloud Console before using this feature.
diff --git a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/SearchServiceClient.java b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/SearchServiceClient.java
index 4a99248f..dd0e6a07 100644
--- a/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/SearchServiceClient.java
+++ b/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/SearchServiceClient.java
@@ -68,6 +68,8 @@
* .addAllVariantRollupKeys(new ArrayList
@@ -1053,7 +1054,8 @@ public final UnaryCallable
*
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[MODEL]");
+ * Model response = modelServiceClient.pauseModel(name);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * ModelServiceSettings modelServiceSettings =
+ * ModelServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * ModelServiceClient modelServiceClient = ModelServiceClient.create(modelServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * ModelServiceSettings modelServiceSettings =
+ * ModelServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ModelServiceClient modelServiceClient = ModelServiceClient.create(modelServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * ModelServiceSettings modelServiceSettings =
+ * ModelServiceSettings.newBuilder()
+ * .setTransportChannelProvider(
+ * ModelServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
+ * .build();
+ * ModelServiceClient modelServiceClient = ModelServiceClient.create(modelServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]");
+ * Model model = Model.newBuilder().build();
+ * Model response = modelServiceClient.createModelAsync(parent, model).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource under which to create the model. Format:
+ * projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}
+ * @param model Required. The payload of the [Model] to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * String parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString();
+ * Model model = Model.newBuilder().build();
+ * Model response = modelServiceClient.createModelAsync(parent, model).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource under which to create the model. Format:
+ * projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}
+ * @param model Required. The payload of the [Model] to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * CreateModelRequest request =
+ * CreateModelRequest.newBuilder()
+ * .setParent(CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString())
+ * .setModel(Model.newBuilder().build())
+ * .setDryRun(true)
+ * .build();
+ * Model response = modelServiceClient.createModelAsync(request).get();
+ * }
+ * }
+ *
+ * @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 OperationFuture{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * CreateModelRequest request =
+ * CreateModelRequest.newBuilder()
+ * .setParent(CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString())
+ * .setModel(Model.newBuilder().build())
+ * .setDryRun(true)
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * CreateModelRequest request =
+ * CreateModelRequest.newBuilder()
+ * .setParent(CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString())
+ * .setModel(Model.newBuilder().build())
+ * .setDryRun(true)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[MODEL]");
+ * Model response = modelServiceClient.pauseModel(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the model to pause. Format:
+ * projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Model pauseModel(ModelName name) {
+ PauseModelRequest request =
+ PauseModelRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return pauseModel(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Pauses the training of an existing model.
+ *
+ * {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * String name = ModelName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[MODEL]").toString();
+ * Model response = modelServiceClient.pauseModel(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the model to pause. Format:
+ * projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Model pauseModel(String name) {
+ PauseModelRequest request = PauseModelRequest.newBuilder().setName(name).build();
+ return pauseModel(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Pauses the training of an existing model.
+ *
+ * {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * PauseModelRequest request =
+ * PauseModelRequest.newBuilder()
+ * .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[MODEL]").toString())
+ * .build();
+ * Model response = modelServiceClient.pauseModel(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 Model pauseModel(PauseModelRequest request) {
+ return pauseModelCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Pauses the training of an existing model.
+ *
+ * {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * PauseModelRequest request =
+ * PauseModelRequest.newBuilder()
+ * .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[MODEL]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * String name = "name3373707";
+ * Model response = modelServiceClient.resumeModel(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the model to resume. Format:
+ * projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Model resumeModel(String name) {
+ ResumeModelRequest request = ResumeModelRequest.newBuilder().setName(name).build();
+ return resumeModel(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Resumes the training of an existing model.
+ *
+ * {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * ResumeModelRequest request = ResumeModelRequest.newBuilder().setName("name3373707").build();
+ * Model response = modelServiceClient.resumeModel(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 Model resumeModel(ResumeModelRequest request) {
+ return resumeModelCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Resumes the training of an existing model.
+ *
+ * {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * ResumeModelRequest request = ResumeModelRequest.newBuilder().setName("name3373707").build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[MODEL]");
+ * modelServiceClient.deleteModel(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the [Model] to delete. Format:
+ * projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteModel(ModelName name) {
+ DeleteModelRequest request =
+ DeleteModelRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ deleteModel(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes an existing model.
+ *
+ * {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * String name = ModelName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[MODEL]").toString();
+ * modelServiceClient.deleteModel(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the [Model] to delete. Format:
+ * projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteModel(String name) {
+ DeleteModelRequest request = DeleteModelRequest.newBuilder().setName(name).build();
+ deleteModel(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes an existing model.
+ *
+ * {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * DeleteModelRequest request =
+ * DeleteModelRequest.newBuilder()
+ * .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[MODEL]").toString())
+ * .build();
+ * modelServiceClient.deleteModel(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 deleteModel(DeleteModelRequest request) {
+ deleteModelCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes an existing model.
+ *
+ * {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * DeleteModelRequest request =
+ * DeleteModelRequest.newBuilder()
+ * .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[MODEL]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]");
+ * for (Model element : modelServiceClient.listModels(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent for which to list models. Format:
+ * projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListModelsPagedResponse listModels(CatalogName parent) {
+ ListModelsRequest request =
+ ListModelsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build();
+ return listModels(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all the models linked to this event store.
+ *
+ * {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * String parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString();
+ * for (Model element : modelServiceClient.listModels(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent for which to list models. Format:
+ * projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListModelsPagedResponse listModels(String parent) {
+ ListModelsRequest request = ListModelsRequest.newBuilder().setParent(parent).build();
+ return listModels(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all the models linked to this event store.
+ *
+ * {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * ListModelsRequest request =
+ * ListModelsRequest.newBuilder()
+ * .setParent(CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Model element : modelServiceClient.listModels(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @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 ListModelsPagedResponse listModels(ListModelsRequest request) {
+ return listModelsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all the models linked to this event store.
+ *
+ * {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * ListModelsRequest request =
+ * ListModelsRequest.newBuilder()
+ * .setParent(CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * ListModelsRequest request =
+ * ListModelsRequest.newBuilder()
+ * .setParent(CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListModelsResponse response = modelServiceClient.listModelsCallable().call(request);
+ * for (Model element : response.getModelsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * Model model = Model.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Model response = modelServiceClient.updateModel(model, updateMask);
+ * }
+ * }
+ *
+ * @param model Required. The body of the updated [Model].
+ * @param updateMask Optional. Indicates which fields in the provided 'model' to update. If not
+ * set, will by default update all fields.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Model updateModel(Model model, FieldMask updateMask) {
+ UpdateModelRequest request =
+ UpdateModelRequest.newBuilder().setModel(model).setUpdateMask(updateMask).build();
+ return updateModel(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Update of model metadata. Only fields that currently can be updated are: filtering_option,
+ * periodic_tuning_state. If other values are provided, this API method will ignore them.
+ *
+ * {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * UpdateModelRequest request =
+ * UpdateModelRequest.newBuilder()
+ * .setModel(Model.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Model response = modelServiceClient.updateModel(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 Model updateModel(UpdateModelRequest request) {
+ return updateModelCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Update of model metadata. Only fields that currently can be updated are: filtering_option,
+ * periodic_tuning_state. If other values are provided, this API method will ignore them.
+ *
+ * {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * UpdateModelRequest request =
+ * UpdateModelRequest.newBuilder()
+ * .setModel(Model.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[MODEL]");
+ * TuneModelResponse response = modelServiceClient.tuneModelAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the model to tune. Format:
+ * projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * String name = ModelName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[MODEL]").toString();
+ * TuneModelResponse response = modelServiceClient.tuneModelAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the model to tune. Format:
+ * projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * TuneModelRequest request =
+ * TuneModelRequest.newBuilder()
+ * .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[MODEL]").toString())
+ * .build();
+ * TuneModelResponse response = modelServiceClient.tuneModelAsync(request).get();
+ * }
+ * }
+ *
+ * @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 OperationFuture{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * TuneModelRequest request =
+ * TuneModelRequest.newBuilder()
+ * .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[MODEL]").toString())
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * TuneModelRequest request =
+ * TuneModelRequest.newBuilder()
+ * .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[MODEL]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * ModelServiceSettings.Builder modelServiceSettingsBuilder = ModelServiceSettings.newBuilder();
+ * modelServiceSettingsBuilder
+ * .pauseModelSettings()
+ * .setRetrySettings(
+ * modelServiceSettingsBuilder
+ * .pauseModelSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * ModelServiceSettings modelServiceSettings = modelServiceSettingsBuilder.build();
+ * }
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class ModelServiceSettings extends ClientSettings
@@ -1186,7 +1191,8 @@ public final UnaryCallable
*