Class SessionServiceGrpc.SessionServiceStub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<SessionServiceGrpc.SessionServiceStub>
com.google.cloud.discoveryengine.v1alpha.SessionServiceGrpc.SessionServiceStub
Enclosing class:
SessionServiceGrpc

public static final class SessionServiceGrpc.SessionServiceStub extends io.grpc.stub.AbstractAsyncStub<SessionServiceGrpc.SessionServiceStub>
A stub to allow clients to do asynchronous 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)
     
    void
    createSession(CreateSessionRequest request, io.grpc.stub.StreamObserver<Session> responseObserver)
    Creates a Session.
    void
    deleteSession(DeleteSessionRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
    Deletes a Session.
    void
    getSession(GetSessionRequest request, io.grpc.stub.StreamObserver<Session> responseObserver)
    Gets a Session.
    void
    listFiles(ListFilesRequest request, io.grpc.stub.StreamObserver<ListFilesResponse> responseObserver)
    Lists metadata for all files in the current session.
    void
    listSessions(ListSessionsRequest request, io.grpc.stub.StreamObserver<ListSessionsResponse> responseObserver)
    Lists all Sessions by their parent [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].
    void
    updateSession(UpdateSessionRequest request, io.grpc.stub.StreamObserver<Session> responseObserver)
    Updates a Session.

    Methods inherited from class io.grpc.stub.AbstractAsyncStub

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

      public void createSession(CreateSessionRequest request, io.grpc.stub.StreamObserver<Session> responseObserver)
       Creates a Session.
       If the [Session][google.cloud.discoveryengine.v1alpha.Session] to create
       already exists, an ALREADY_EXISTS error is returned.
       
    • deleteSession

      public void deleteSession(DeleteSessionRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
       Deletes a Session.
       If the [Session][google.cloud.discoveryengine.v1alpha.Session] to delete
       does not exist, a NOT_FOUND error is returned.
       
    • updateSession

      public void updateSession(UpdateSessionRequest request, io.grpc.stub.StreamObserver<Session> responseObserver)
       Updates a Session.
       [Session][google.cloud.discoveryengine.v1alpha.Session] action type cannot
       be changed. If the [Session][google.cloud.discoveryengine.v1alpha.Session]
       to update does not exist, a NOT_FOUND error is returned.
       
    • getSession

      public void getSession(GetSessionRequest request, io.grpc.stub.StreamObserver<Session> responseObserver)
       Gets a Session.
       
    • listSessions

      public void listSessions(ListSessionsRequest request, io.grpc.stub.StreamObserver<ListSessionsResponse> responseObserver)
       Lists all Sessions by their parent
       [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].
       
    • listFiles

      public void listFiles(ListFilesRequest request, io.grpc.stub.StreamObserver<ListFilesResponse> responseObserver)
       Lists metadata for all files in the current session.