Package com.google.cloud.retail.v2beta
Class ServingConfigServiceGrpc.ServingConfigServiceBlockingStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<ServingConfigServiceGrpc.ServingConfigServiceBlockingStub>
-
- com.google.cloud.retail.v2beta.ServingConfigServiceGrpc.ServingConfigServiceBlockingStub
-
- Enclosing class:
- ServingConfigServiceGrpc
public static final class ServingConfigServiceGrpc.ServingConfigServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<ServingConfigServiceGrpc.ServingConfigServiceBlockingStub>
A stub to allow clients to do synchronous rpc calls to service ServingConfigService.Service for modifying ServingConfig.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServingConfig
addControl(AddControlRequest request)
Enables a Control on the specified ServingConfig.protected ServingConfigServiceGrpc.ServingConfigServiceBlockingStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
ServingConfig
createServingConfig(CreateServingConfigRequest request)
Creates a ServingConfig.com.google.protobuf.Empty
deleteServingConfig(DeleteServingConfigRequest request)
Deletes a ServingConfig.ServingConfig
getServingConfig(GetServingConfigRequest request)
Gets a ServingConfig.ListServingConfigsResponse
listServingConfigs(ListServingConfigsRequest request)
Lists all ServingConfigs linked to this catalog.ServingConfig
removeControl(RemoveControlRequest request)
Disables a Control on the specified ServingConfig.ServingConfig
updateServingConfig(UpdateServingConfigRequest request)
Updates a ServingConfig.
-
-
-
Method Detail
-
build
protected ServingConfigServiceGrpc.ServingConfigServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<ServingConfigServiceGrpc.ServingConfigServiceBlockingStub>
-
createServingConfig
public 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.
-
deleteServingConfig
public com.google.protobuf.Empty deleteServingConfig(DeleteServingConfigRequest request)
Deletes a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
-
updateServingConfig
public ServingConfig updateServingConfig(UpdateServingConfigRequest request)
Updates a ServingConfig.
-
getServingConfig
public ServingConfig getServingConfig(GetServingConfigRequest request)
Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
-
listServingConfigs
public ListServingConfigsResponse listServingConfigs(ListServingConfigsRequest request)
Lists all ServingConfigs linked to this catalog.
-
addControl
public 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.
-
removeControl
public 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.
-
-