Class HttpJsonRegionAutoscalersStub (1.47.0)

public class HttpJsonRegionAutoscalersStub extends RegionAutoscalersStub

REST stub implementation for the RegionAutoscalers service API.

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

Inheritance

java.lang.Object > RegionAutoscalersStub > HttpJsonRegionAutoscalersStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(RegionAutoscalersStubSettings settings)

public static final HttpJsonRegionAutoscalersStub create(RegionAutoscalersStubSettings settings)
Parameter
NameDescription
settingsRegionAutoscalersStubSettings
Returns
TypeDescription
HttpJsonRegionAutoscalersStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonRegionAutoscalersStub(RegionAutoscalersStubSettings settings, ClientContext clientContext)

protected HttpJsonRegionAutoscalersStub(RegionAutoscalersStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonRegionAutoscalersStub, 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
settingsRegionAutoscalersStubSettings
clientContextClientContext

HttpJsonRegionAutoscalersStub(RegionAutoscalersStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonRegionAutoscalersStub(RegionAutoscalersStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

deleteCallable()

public UnaryCallable<DeleteRegionAutoscalerRequest,Operation> deleteCallable()
Returns
TypeDescription
UnaryCallable<DeleteRegionAutoscalerRequest,Operation>
Overrides

deleteOperationCallable()

public OperationCallable<DeleteRegionAutoscalerRequest,Operation,Operation> deleteOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteRegionAutoscalerRequest,Operation,Operation>
Overrides

getCallable()

public UnaryCallable<GetRegionAutoscalerRequest,Autoscaler> getCallable()
Returns
TypeDescription
UnaryCallable<GetRegionAutoscalerRequest,Autoscaler>
Overrides

insertCallable()

public UnaryCallable<InsertRegionAutoscalerRequest,Operation> insertCallable()
Returns
TypeDescription
UnaryCallable<InsertRegionAutoscalerRequest,Operation>
Overrides

insertOperationCallable()

public OperationCallable<InsertRegionAutoscalerRequest,Operation,Operation> insertOperationCallable()
Returns
TypeDescription
OperationCallable<InsertRegionAutoscalerRequest,Operation,Operation>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListRegionAutoscalersRequest,RegionAutoscalerList> listCallable()
Returns
TypeDescription
UnaryCallable<ListRegionAutoscalersRequest,RegionAutoscalerList>
Overrides

listPagedCallable()

public UnaryCallable<ListRegionAutoscalersRequest,RegionAutoscalersClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListRegionAutoscalersRequest,ListPagedResponse>
Overrides

patchCallable()

public UnaryCallable<PatchRegionAutoscalerRequest,Operation> patchCallable()
Returns
TypeDescription
UnaryCallable<PatchRegionAutoscalerRequest,Operation>
Overrides

patchOperationCallable()

public OperationCallable<PatchRegionAutoscalerRequest,Operation,Operation> patchOperationCallable()
Returns
TypeDescription
OperationCallable<PatchRegionAutoscalerRequest,Operation,Operation>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateCallable()

public UnaryCallable<UpdateRegionAutoscalerRequest,Operation> updateCallable()
Returns
TypeDescription
UnaryCallable<UpdateRegionAutoscalerRequest,Operation>
Overrides

updateOperationCallable()

public OperationCallable<UpdateRegionAutoscalerRequest,Operation,Operation> updateOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateRegionAutoscalerRequest,Operation,Operation>
Overrides