Class HttpJsonSessionControllerStub (4.39.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
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonSessionControllerStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(SessionControllerStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
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
Name Description
settings SessionControllerStubSettings
clientContext ClientContext

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
Name Description
settings SessionControllerStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
Overrides

getIamPolicyCallable()

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