Interface SessionServiceGrpc.AsyncService (0.66.0)

public static interface SessionServiceGrpc.AsyncService

Service for managing Sessions and Session-related resources.

Methods

createSession(CreateSessionRequest request, StreamObserver<Session> responseObserver)

public default void createSession(CreateSessionRequest request, StreamObserver<Session> responseObserver)

Creates a Session. If the Session to create already exists, an ALREADY_EXISTS error is returned.

Parameters
Name Description
request CreateSessionRequest
responseObserver io.grpc.stub.StreamObserver<Session>

deleteSession(DeleteSessionRequest request, StreamObserver<Empty> responseObserver)

public default void deleteSession(DeleteSessionRequest request, StreamObserver<Empty> responseObserver)

Deletes a Session. If the Session to delete does not exist, a NOT_FOUND error is returned.

Parameters
Name Description
request DeleteSessionRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

getSession(GetSessionRequest request, StreamObserver<Session> responseObserver)

public default void getSession(GetSessionRequest request, StreamObserver<Session> responseObserver)

Gets a Session.

Parameters
Name Description
request GetSessionRequest
responseObserver io.grpc.stub.StreamObserver<Session>

listFiles(ListFilesRequest request, StreamObserver<ListFilesResponse> responseObserver)

public default void listFiles(ListFilesRequest request, StreamObserver<ListFilesResponse> responseObserver)

Lists metadata for all files in the current session.

Parameters
Name Description
request ListFilesRequest
responseObserver io.grpc.stub.StreamObserver<ListFilesResponse>

listSessions(ListSessionsRequest request, StreamObserver<ListSessionsResponse> responseObserver)

public default void listSessions(ListSessionsRequest request, StreamObserver<ListSessionsResponse> responseObserver)

Lists all Sessions by their parent DataStore.

Parameters
Name Description
request ListSessionsRequest
responseObserver io.grpc.stub.StreamObserver<ListSessionsResponse>

updateSession(UpdateSessionRequest request, StreamObserver<Session> responseObserver)

public default void updateSession(UpdateSessionRequest request, StreamObserver<Session> responseObserver)

Updates a Session. Session action type cannot be changed. If the Session to update does not exist, a NOT_FOUND error is returned.

Parameters
Name Description
request UpdateSessionRequest
responseObserver io.grpc.stub.StreamObserver<Session>