public static final class ServingConfigServiceGrpc.ServingConfigServiceFutureStub extends io.grpc.stub.AbstractFutureStub<ServingConfigServiceGrpc.ServingConfigServiceFutureStub>
Service for modifying ServingConfig.
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.ListenableFuture<ServingConfig> |
addControl(AddControlRequest request)
Enables a Control on the specified ServingConfig.
|
protected ServingConfigServiceGrpc.ServingConfigServiceFutureStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
com.google.common.util.concurrent.ListenableFuture<ServingConfig> |
createServingConfig(CreateServingConfigRequest request)
Creates a ServingConfig.
|
com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> |
deleteServingConfig(DeleteServingConfigRequest request)
Deletes a ServingConfig.
|
com.google.common.util.concurrent.ListenableFuture<ServingConfig> |
getServingConfig(GetServingConfigRequest request)
Gets a ServingConfig.
|
com.google.common.util.concurrent.ListenableFuture<ListServingConfigsResponse> |
listServingConfigs(ListServingConfigsRequest request)
Lists all ServingConfigs linked to this catalog.
|
com.google.common.util.concurrent.ListenableFuture<ServingConfig> |
removeControl(RemoveControlRequest request)
Disables a Control on the specified ServingConfig.
|
com.google.common.util.concurrent.ListenableFuture<ServingConfig> |
updateServingConfig(UpdateServingConfigRequest request)
Updates a ServingConfig.
|
protected ServingConfigServiceGrpc.ServingConfigServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<ServingConfigServiceGrpc.ServingConfigServiceFutureStub>public com.google.common.util.concurrent.ListenableFuture<ServingConfig> createServingConfig(CreateServingConfigRequest request)
Creates a ServingConfig. A maximum of 100 [ServingConfig][google.cloud.retail.v2beta.ServingConfig]s are allowed in a [Catalog][google.cloud.retail.v2beta.Catalog], otherwise a FAILED_PRECONDITION error is returned.
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteServingConfig(DeleteServingConfigRequest request)
Deletes a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
public com.google.common.util.concurrent.ListenableFuture<ServingConfig> updateServingConfig(UpdateServingConfigRequest request)
Updates a ServingConfig.
public com.google.common.util.concurrent.ListenableFuture<ServingConfig> getServingConfig(GetServingConfigRequest request)
Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
public com.google.common.util.concurrent.ListenableFuture<ListServingConfigsResponse> listServingConfigs(ListServingConfigsRequest request)
Lists all ServingConfigs linked to this catalog.
public com.google.common.util.concurrent.ListenableFuture<ServingConfig> addControl(AddControlRequest request)
Enables a Control on the specified ServingConfig. The control is added in the last position of the list of controls it belongs to (e.g. if it's a facet spec control it will be applied in the last position of servingConfig.facetSpecIds) Returns a ALREADY_EXISTS error if the control has already been applied. Returns a FAILED_PRECONDITION error if the addition could exceed maximum number of control allowed for that type of control.
public com.google.common.util.concurrent.ListenableFuture<ServingConfig> removeControl(RemoveControlRequest request)
Disables a Control on the specified ServingConfig. The control is removed from the ServingConfig. Returns a NOT_FOUND error if the Control is not enabled for the ServingConfig.
Copyright © 2022 Google LLC. All rights reserved.