Class GrpcSessionControllerStub (4.33.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
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcSessionControllerStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcSessionControllerStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcSessionControllerStub
Exceptions
TypeDescription
IOException

create(SessionControllerStubSettings settings)

public static final GrpcSessionControllerStub create(SessionControllerStubSettings settings)
Parameter
NameDescription
settingsSessionControllerStubSettings
Returns
TypeDescription
GrpcSessionControllerStub
Exceptions
TypeDescription
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
NameDescription
settingsSessionControllerStubSettings
clientContextClientContext

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
NameDescription
settingsSessionControllerStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createSessionCallable()

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

createSessionOperationCallable()

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

deleteSessionCallable()

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

deleteSessionOperationCallable()

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

getIamPolicyCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

getSessionCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listSessionsCallable()

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

listSessionsPagedCallable()

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

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
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
TypeDescription
UnaryCallable<TerminateSessionRequest,Operation>
Overrides

terminateSessionOperationCallable()

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

testIamPermissionsCallable()

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