Class HttpJsonGatewayControlStub (0.55.0)

public class HttpJsonGatewayControlStub extends GatewayControlStub

REST stub implementation for the GatewayControl service API.

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

Inheritance

java.lang.Object > GatewayControlStub > HttpJsonGatewayControlStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(GatewayControlStubSettings settings)

public static final HttpJsonGatewayControlStub create(GatewayControlStubSettings settings)
Parameter
Name Description
settings GatewayControlStubSettings
Returns
Type Description
HttpJsonGatewayControlStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonGatewayControlStub(GatewayControlStubSettings settings, ClientContext clientContext)

protected HttpJsonGatewayControlStub(GatewayControlStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonGatewayControlStub, 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 GatewayControlStubSettings
clientContext ClientContext

HttpJsonGatewayControlStub(GatewayControlStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonGatewayControlStub(GatewayControlStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

generateCredentialsCallable()

public UnaryCallable<GenerateCredentialsRequest,GenerateCredentialsResponse> generateCredentialsCallable()
Returns
Type Description
UnaryCallable<GenerateCredentialsRequest,GenerateCredentialsResponse>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()