Class ControlServiceGrpc.ControlServiceFutureStub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<ControlServiceGrpc.ControlServiceFutureStub>
com.google.cloud.discoveryengine.v1alpha.ControlServiceGrpc.ControlServiceFutureStub
Enclosing class:
ControlServiceGrpc

public static final class ControlServiceGrpc.ControlServiceFutureStub extends io.grpc.stub.AbstractFutureStub<ControlServiceGrpc.ControlServiceFutureStub>
A stub to allow clients to do ListenableFuture-style 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 Type
    Method
    Description
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
    com.google.common.util.concurrent.ListenableFuture<Control>
    Creates a Control.
    com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>
    Deletes a Control.
    com.google.common.util.concurrent.ListenableFuture<Control>
    Gets a Control.
    com.google.common.util.concurrent.ListenableFuture<ListControlsResponse>
    Lists all Controls by their parent [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].
    com.google.common.util.concurrent.ListenableFuture<Control>
    Updates a Control.

    Methods inherited from class io.grpc.stub.AbstractFutureStub

    newStub, newStub

    Methods inherited from class io.grpc.stub.AbstractStub

    getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • build

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

      public com.google.common.util.concurrent.ListenableFuture<Control> createControl(CreateControlRequest request)
       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 com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteControl(DeleteControlRequest request)
       Deletes a Control.
       If the [Control][google.cloud.discoveryengine.v1alpha.Control] to delete
       does not exist, a NOT_FOUND error is returned.
       
    • updateControl

      public com.google.common.util.concurrent.ListenableFuture<Control> updateControl(UpdateControlRequest request)
       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 com.google.common.util.concurrent.ListenableFuture<Control> getControl(GetControlRequest request)
       Gets a Control.
       
    • listControls

      public com.google.common.util.concurrent.ListenableFuture<ListControlsResponse> listControls(ListControlsRequest request)
       Lists all Controls by their parent
       [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].