Class HttpJsonSessionControllerStub (4.37.0)

public class HttpJsonSessionControllerStub extends SessionControllerStub

REST stub implementation for the SessionController service API.

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

Inheritance

java.lang.Object > SessionControllerStub > HttpJsonSessionControllerStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonSessionControllerStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonSessionControllerStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonSessionControllerStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonSessionControllerStub
Exceptions
TypeDescription
IOException

create(SessionControllerStubSettings settings)

public static final HttpJsonSessionControllerStub create(SessionControllerStubSettings settings)
Parameter
NameDescription
settingsSessionControllerStubSettings
Returns
TypeDescription
HttpJsonSessionControllerStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonSessionControllerStub(SessionControllerStubSettings settings, ClientContext clientContext)

protected HttpJsonSessionControllerStub(SessionControllerStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonSessionControllerStub, 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

HttpJsonSessionControllerStub(SessionControllerStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonSessionControllerStub(SessionControllerStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonSessionControllerStub, 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
callableFactoryHttpJsonStubCallableFactory

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
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