Class ServingConfigServiceGrpc.ServingConfigServiceImplBase (2.3.0)

public abstract static class ServingConfigServiceGrpc.ServingConfigServiceImplBase implements BindableService

Service for modifying ServingConfig.

Inheritance

java.lang.Object > ServingConfigServiceGrpc.ServingConfigServiceImplBase

Implements

io.grpc.BindableService

Constructors

ServingConfigServiceImplBase()

public ServingConfigServiceImplBase()

Methods

addControl(AddControlRequest request, StreamObserver<ServingConfig> responseObserver)

public void addControl(AddControlRequest request, 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.

Parameters
NameDescription
requestAddControlRequest
responseObserverio.grpc.stub.StreamObserver<ServingConfig>

bindService()

public final ServerServiceDefinition bindService()
Returns
TypeDescription
io.grpc.ServerServiceDefinition

createServingConfig(CreateServingConfigRequest request, StreamObserver<ServingConfig> responseObserver)

public void createServingConfig(CreateServingConfigRequest request, StreamObserver<ServingConfig> responseObserver)

Creates a ServingConfig. A maximum of 100 ServingConfigs are allowed in a Catalog, otherwise a FAILED_PRECONDITION error is returned.

Parameters
NameDescription
requestCreateServingConfigRequest
responseObserverio.grpc.stub.StreamObserver<ServingConfig>

deleteServingConfig(DeleteServingConfigRequest request, StreamObserver<Empty> responseObserver)

public void deleteServingConfig(DeleteServingConfigRequest request, StreamObserver<Empty> responseObserver)

Deletes a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.

Parameters
NameDescription
requestDeleteServingConfigRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

getServingConfig(GetServingConfigRequest request, StreamObserver<ServingConfig> responseObserver)

public void getServingConfig(GetServingConfigRequest request, StreamObserver<ServingConfig> responseObserver)

Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.

Parameters
NameDescription
requestGetServingConfigRequest
responseObserverio.grpc.stub.StreamObserver<ServingConfig>

listServingConfigs(ListServingConfigsRequest request, StreamObserver<ListServingConfigsResponse> responseObserver)

public void listServingConfigs(ListServingConfigsRequest request, StreamObserver<ListServingConfigsResponse> responseObserver)

Lists all ServingConfigs linked to this catalog.

Parameters
NameDescription
requestListServingConfigsRequest
responseObserverio.grpc.stub.StreamObserver<ListServingConfigsResponse>

removeControl(RemoveControlRequest request, StreamObserver<ServingConfig> responseObserver)

public void removeControl(RemoveControlRequest request, 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.

Parameters
NameDescription
requestRemoveControlRequest
responseObserverio.grpc.stub.StreamObserver<ServingConfig>

updateServingConfig(UpdateServingConfigRequest request, StreamObserver<ServingConfig> responseObserver)

public void updateServingConfig(UpdateServingConfigRequest request, StreamObserver<ServingConfig> responseObserver)

Updates a ServingConfig.

Parameters
NameDescription
requestUpdateServingConfigRequest
responseObserverio.grpc.stub.StreamObserver<ServingConfig>