Class HttpJsonControlServiceStub (2.48.0)

public class HttpJsonControlServiceStub extends ControlServiceStub

REST stub implementation for the ControlService service API.

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

Inheritance

java.lang.Object > ControlServiceStub > HttpJsonControlServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(ControlServiceStubSettings settings)

public static final HttpJsonControlServiceStub create(ControlServiceStubSettings settings)
Parameter
Name Description
settings ControlServiceStubSettings
Returns
Type Description
HttpJsonControlServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

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

Constructors

HttpJsonControlServiceStub(ControlServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonControlServiceStub(ControlServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonControlServiceStub, 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 ControlServiceStubSettings
clientContext ClientContext

HttpJsonControlServiceStub(ControlServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonControlServiceStub(ControlServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

createControlCallable()

public UnaryCallable<CreateControlRequest,Control> createControlCallable()
Returns
Type Description
UnaryCallable<CreateControlRequest,Control>
Overrides

deleteControlCallable()

public UnaryCallable<DeleteControlRequest,Empty> deleteControlCallable()
Returns
Type Description
UnaryCallable<DeleteControlRequest,Empty>
Overrides

getControlCallable()

public UnaryCallable<GetControlRequest,Control> getControlCallable()
Returns
Type Description
UnaryCallable<GetControlRequest,Control>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listControlsCallable()

public UnaryCallable<ListControlsRequest,ListControlsResponse> listControlsCallable()
Returns
Type Description
UnaryCallable<ListControlsRequest,ListControlsResponse>
Overrides

listControlsPagedCallable()

public UnaryCallable<ListControlsRequest,ControlServiceClient.ListControlsPagedResponse> listControlsPagedCallable()
Returns
Type Description
UnaryCallable<ListControlsRequest,ListControlsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateControlCallable()

public UnaryCallable<UpdateControlRequest,Control> updateControlCallable()
Returns
Type Description
UnaryCallable<UpdateControlRequest,Control>
Overrides