Class ControlServiceGrpc.ControlServiceBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<ControlServiceGrpc.ControlServiceBlockingV2Stub>
com.google.cloud.discoveryengine.v1alpha.ControlServiceGrpc.ControlServiceBlockingV2Stub
- Enclosing class:
- ControlServiceGrpc
public static final class ControlServiceGrpc.ControlServiceBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<ControlServiceGrpc.ControlServiceBlockingV2Stub>
A stub to allow clients to do synchronous 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 TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) createControl(CreateControlRequest request) Creates a Control.com.google.protobuf.EmptydeleteControl(DeleteControlRequest request) Deletes a Control.getControl(GetControlRequest request) Gets a Control.listControls(ListControlsRequest request) Lists all Controls by their parent [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].updateControl(UpdateControlRequest request) Updates a Control.Methods inherited from class io.grpc.stub.AbstractBlockingStub
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.ControlServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<ControlServiceGrpc.ControlServiceBlockingV2Stub>
-
createControl
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.
- Throws:
io.grpc.StatusException
-
deleteControl
public com.google.protobuf.Empty deleteControl(DeleteControlRequest request) throws io.grpc.StatusException Deletes a Control. If the [Control][google.cloud.discoveryengine.v1alpha.Control] to delete does not exist, a NOT_FOUND error is returned.
- Throws:
io.grpc.StatusException
-
updateControl
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.
- Throws:
io.grpc.StatusException
-
getControl
Gets a Control.
- Throws:
io.grpc.StatusException
-
listControls
public ListControlsResponse listControls(ListControlsRequest request) throws io.grpc.StatusException Lists all Controls by their parent [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].
- Throws:
io.grpc.StatusException
-