Class ServingConfigServiceGrpc.ServingConfigServiceFutureStub (2.43.0)

public static final class ServingConfigServiceGrpc.ServingConfigServiceFutureStub extends AbstractFutureStub<ServingConfigServiceGrpc.ServingConfigServiceFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service ServingConfigService.

Service for modifying ServingConfig.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > ServingConfigServiceGrpc.ServingConfigServiceFutureStub

Methods

addControl(AddControlRequest request)

public 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.

Parameter
NameDescription
requestAddControlRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ServingConfig>

build(Channel channel, CallOptions callOptions)

protected ServingConfigServiceGrpc.ServingConfigServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
ServingConfigServiceGrpc.ServingConfigServiceFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createServingConfig(CreateServingConfigRequest request)

public ListenableFuture<ServingConfig> createServingConfig(CreateServingConfigRequest request)

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

Parameter
NameDescription
requestCreateServingConfigRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ServingConfig>

deleteServingConfig(DeleteServingConfigRequest request)

public ListenableFuture<Empty> deleteServingConfig(DeleteServingConfigRequest request)

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

Parameter
NameDescription
requestDeleteServingConfigRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Empty>

getServingConfig(GetServingConfigRequest request)

public ListenableFuture<ServingConfig> getServingConfig(GetServingConfigRequest request)

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

Parameter
NameDescription
requestGetServingConfigRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ServingConfig>

listServingConfigs(ListServingConfigsRequest request)

public ListenableFuture<ListServingConfigsResponse> listServingConfigs(ListServingConfigsRequest request)

Lists all ServingConfigs linked to this catalog.

Parameter
NameDescription
requestListServingConfigsRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ListServingConfigsResponse>

removeControl(RemoveControlRequest request)

public 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.

Parameter
NameDescription
requestRemoveControlRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ServingConfig>

updateServingConfig(UpdateServingConfigRequest request)

public ListenableFuture<ServingConfig> updateServingConfig(UpdateServingConfigRequest request)

Updates a ServingConfig.

Parameter
NameDescription
requestUpdateServingConfigRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ServingConfig>