public static final class SessionServiceGrpc.SessionServiceStub extends AbstractAsyncStub<SessionServiceGrpc.SessionServiceStub>
A stub to allow clients to do asynchronous rpc calls to service SessionService.
Service for managing Sessions and Session-related resources.
Inheritance
java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > SessionServiceGrpc.SessionServiceStubMethods
build(Channel channel, CallOptions callOptions)
protected SessionServiceGrpc.SessionServiceStub build(Channel channel, CallOptions callOptions)
Parameters | |
---|---|
Name | Description |
channel |
io.grpc.Channel |
callOptions |
io.grpc.CallOptions |
Returns | |
---|---|
Type | Description |
SessionServiceGrpc.SessionServiceStub |
createSession(CreateSessionRequest request, StreamObserver<Session> responseObserver)
public 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 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 void getSession(GetSessionRequest request, StreamObserver<Session> responseObserver)
Gets a Session.
Parameters | |
---|---|
Name | Description |
request |
GetSessionRequest |
responseObserver |
io.grpc.stub.StreamObserver<Session> |
listSessions(ListSessionsRequest request, StreamObserver<ListSessionsResponse> responseObserver)
public 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 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> |