Class SessionServiceGrpc.SessionServiceFutureStub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<SessionServiceGrpc.SessionServiceFutureStub>
com.google.cloud.discoveryengine.v1.SessionServiceGrpc.SessionServiceFutureStub
Enclosing class:
SessionServiceGrpc

public static final class SessionServiceGrpc.SessionServiceFutureStub extends io.grpc.stub.AbstractFutureStub<SessionServiceGrpc.SessionServiceFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service SessionService.
 Service for managing Sessions and Session-related resources.
 
  • 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<Session>
    Creates a Session.
    com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>
    Deletes a Session.
    com.google.common.util.concurrent.ListenableFuture<Session>
    Gets a Session.
    com.google.common.util.concurrent.ListenableFuture<ListSessionsResponse>
    Lists all Sessions by their parent [DataStore][google.cloud.discoveryengine.v1.DataStore].
    com.google.common.util.concurrent.ListenableFuture<Session>
    Updates a Session.

    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 SessionServiceGrpc.SessionServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<SessionServiceGrpc.SessionServiceFutureStub>
    • createSession

      public com.google.common.util.concurrent.ListenableFuture<Session> createSession(CreateSessionRequest request)
       Creates a Session.
       If the [Session][google.cloud.discoveryengine.v1.Session] to create already
       exists, an ALREADY_EXISTS error is returned.
       
    • deleteSession

      public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteSession(DeleteSessionRequest request)
       Deletes a Session.
       If the [Session][google.cloud.discoveryengine.v1.Session] to delete does
       not exist, a NOT_FOUND error is returned.
       
    • updateSession

      public com.google.common.util.concurrent.ListenableFuture<Session> updateSession(UpdateSessionRequest request)
       Updates a Session.
       [Session][google.cloud.discoveryengine.v1.Session] action type cannot be
       changed. If the [Session][google.cloud.discoveryengine.v1.Session] to
       update does not exist, a NOT_FOUND error is returned.
       
    • getSession

      public com.google.common.util.concurrent.ListenableFuture<Session> getSession(GetSessionRequest request)
       Gets a Session.
       
    • listSessions

      public com.google.common.util.concurrent.ListenableFuture<ListSessionsResponse> listSessions(ListSessionsRequest request)
       Lists all Sessions by their parent
       [DataStore][google.cloud.discoveryengine.v1.DataStore].