Class SessionServiceGrpc.SessionServiceBlockingV2Stub (0.66.0)

public static final class SessionServiceGrpc.SessionServiceBlockingV2Stub extends AbstractBlockingStub<SessionServiceGrpc.SessionServiceBlockingV2Stub>

A stub to allow clients to do synchronous rpc calls to service SessionService.

Service for managing Sessions and Session-related resources.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > SessionServiceGrpc.SessionServiceBlockingV2Stub

Methods

build(Channel channel, CallOptions callOptions)

protected SessionServiceGrpc.SessionServiceBlockingV2Stub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
SessionServiceGrpc.SessionServiceBlockingV2Stub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createSession(CreateSessionRequest request)

public Session createSession(CreateSessionRequest request)

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

Parameter
Name Description
request CreateSessionRequest
Returns
Type Description
Session

deleteSession(DeleteSessionRequest request)

public Empty deleteSession(DeleteSessionRequest request)

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

Parameter
Name Description
request DeleteSessionRequest
Returns
Type Description
Empty

getSession(GetSessionRequest request)

public Session getSession(GetSessionRequest request)

Gets a Session.

Parameter
Name Description
request GetSessionRequest
Returns
Type Description
Session

listSessions(ListSessionsRequest request)

public ListSessionsResponse listSessions(ListSessionsRequest request)

Lists all Sessions by their parent DataStore.

Parameter
Name Description
request ListSessionsRequest
Returns
Type Description
ListSessionsResponse

updateSession(UpdateSessionRequest request)

public Session updateSession(UpdateSessionRequest request)

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

Parameter
Name Description
request UpdateSessionRequest
Returns
Type Description
Session