Class GrpcSessionControllerStub (4.39.0)

public class GrpcSessionControllerStub extends SessionControllerStub

gRPC stub implementation for the SessionController service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > SessionControllerStub > GrpcSessionControllerStub

Static Methods

create(ClientContext clientContext)

public static final GrpcSessionControllerStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcSessionControllerStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcSessionControllerStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcSessionControllerStub
Exceptions
Type Description
IOException

create(SessionControllerStubSettings settings)

public static final GrpcSessionControllerStub create(SessionControllerStubSettings settings)
Parameter
Name Description
settings SessionControllerStubSettings
Returns
Type Description
GrpcSessionControllerStub
Exceptions
Type Description
IOException

Constructors

GrpcSessionControllerStub(SessionControllerStubSettings settings, ClientContext clientContext)

protected GrpcSessionControllerStub(SessionControllerStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcSessionControllerStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings SessionControllerStubSettings
clientContext ClientContext

GrpcSessionControllerStub(SessionControllerStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcSessionControllerStub(SessionControllerStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcSessionControllerStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings SessionControllerStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createSessionCallable()

public UnaryCallable<CreateSessionRequest,Operation> createSessionCallable()
Returns
Type Description
UnaryCallable<CreateSessionRequest,Operation>
Overrides

createSessionOperationCallable()

public OperationCallable<CreateSessionRequest,Session,SessionOperationMetadata> createSessionOperationCallable()
Returns
Type Description
OperationCallable<CreateSessionRequest,Session,SessionOperationMetadata>
Overrides

deleteSessionCallable()

public UnaryCallable<DeleteSessionRequest,Operation> deleteSessionCallable()
Returns
Type Description
UnaryCallable<DeleteSessionRequest,Operation>
Overrides

deleteSessionOperationCallable()

public OperationCallable<DeleteSessionRequest,Session,SessionOperationMetadata> deleteSessionOperationCallable()
Returns
Type Description
OperationCallable<DeleteSessionRequest,Session,SessionOperationMetadata>
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

getSessionCallable()

public UnaryCallable<GetSessionRequest,Session> getSessionCallable()
Returns
Type Description
UnaryCallable<GetSessionRequest,Session>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listSessionsCallable()

public UnaryCallable<ListSessionsRequest,ListSessionsResponse> listSessionsCallable()
Returns
Type Description
UnaryCallable<ListSessionsRequest,ListSessionsResponse>
Overrides

listSessionsPagedCallable()

public UnaryCallable<ListSessionsRequest,SessionControllerClient.ListSessionsPagedResponse> listSessionsPagedCallable()
Returns
Type Description
UnaryCallable<ListSessionsRequest,ListSessionsPagedResponse>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

terminateSessionCallable()

public UnaryCallable<TerminateSessionRequest,Operation> terminateSessionCallable()
Returns
Type Description
UnaryCallable<TerminateSessionRequest,Operation>
Overrides

terminateSessionOperationCallable()

public OperationCallable<TerminateSessionRequest,Session,SessionOperationMetadata> terminateSessionOperationCallable()
Returns
Type Description
OperationCallable<TerminateSessionRequest,Session,SessionOperationMetadata>
Overrides

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides