Class ControlServiceGrpc.ControlServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<ControlServiceGrpc.ControlServiceStub>
com.google.cloud.discoveryengine.v1alpha.ControlServiceGrpc.ControlServiceStub
- Enclosing class:
- ControlServiceGrpc
public static final class ControlServiceGrpc.ControlServiceStub
extends io.grpc.stub.AbstractAsyncStub<ControlServiceGrpc.ControlServiceStub>
A stub to allow clients to do asynchronous rpc calls to service ControlService.
Service for performing CRUD operations on Controls. Controls allow for custom logic to be implemented in the serving path. Controls need to be attached to a Serving Config to be considered during a request.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionprotected ControlServiceGrpc.ControlServiceStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidcreateControl(CreateControlRequest request, io.grpc.stub.StreamObserver<Control> responseObserver) Creates a Control.voiddeleteControl(DeleteControlRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes a Control.voidgetControl(GetControlRequest request, io.grpc.stub.StreamObserver<Control> responseObserver) Gets a Control.voidlistControls(ListControlsRequest request, io.grpc.stub.StreamObserver<ListControlsResponse> responseObserver) Lists all Controls by their parent [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].voidupdateControl(UpdateControlRequest request, io.grpc.stub.StreamObserver<Control> responseObserver) Updates a Control.Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected ControlServiceGrpc.ControlServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<ControlServiceGrpc.ControlServiceStub>
-
createControl
public void createControl(CreateControlRequest request, io.grpc.stub.StreamObserver<Control> responseObserver) Creates a Control. By default 1000 controls are allowed for a data store. A request can be submitted to adjust this limit. If the [Control][google.cloud.discoveryengine.v1alpha.Control] to create already exists, an ALREADY_EXISTS error is returned.
-
deleteControl
public void deleteControl(DeleteControlRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes a Control. If the [Control][google.cloud.discoveryengine.v1alpha.Control] to delete does not exist, a NOT_FOUND error is returned.
-
updateControl
public void updateControl(UpdateControlRequest request, io.grpc.stub.StreamObserver<Control> responseObserver) Updates a Control. [Control][google.cloud.discoveryengine.v1alpha.Control] action type cannot be changed. If the [Control][google.cloud.discoveryengine.v1alpha.Control] to update does not exist, a NOT_FOUND error is returned.
-
getControl
public void getControl(GetControlRequest request, io.grpc.stub.StreamObserver<Control> responseObserver) Gets a Control.
-
listControls
public void listControls(ListControlsRequest request, io.grpc.stub.StreamObserver<ListControlsResponse> responseObserver) Lists all Controls by their parent [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].
-