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.
 
  • Method Details

    • build

      protected ControlServiceGrpc.ControlServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<ControlServiceGrpc.ControlServiceBlockingV2Stub>
    • createControl

      public Control createControl(CreateControlRequest request) throws io.grpc.StatusException
       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

      public Control updateControl(UpdateControlRequest request) throws io.grpc.StatusException
       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

      public Control getControl(GetControlRequest request) throws io.grpc.StatusException
       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