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