Class HttpJsonAutoscalersStub (1.59.0)

public class HttpJsonAutoscalersStub extends AutoscalersStub

REST stub implementation for the Autoscalers service API.

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

Inheritance

java.lang.Object > AutoscalersStub > HttpJsonAutoscalersStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(AutoscalersStubSettings settings)

public static final HttpJsonAutoscalersStub create(AutoscalersStubSettings settings)
Parameter
Name Description
settings AutoscalersStubSettings
Returns
Type Description
HttpJsonAutoscalersStub
Exceptions
Type Description
IOException

getMethodDescriptors()

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

Constructors

HttpJsonAutoscalersStub(AutoscalersStubSettings settings, ClientContext clientContext)

protected HttpJsonAutoscalersStub(AutoscalersStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonAutoscalersStub, 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 AutoscalersStubSettings
clientContext ClientContext

HttpJsonAutoscalersStub(AutoscalersStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonAutoscalersStub(AutoscalersStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonAutoscalersStub, 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 AutoscalersStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

aggregatedListCallable()

public UnaryCallable<AggregatedListAutoscalersRequest,AutoscalerAggregatedList> aggregatedListCallable()
Returns
Type Description
UnaryCallable<AggregatedListAutoscalersRequest,AutoscalerAggregatedList>
Overrides

aggregatedListPagedCallable()

public UnaryCallable<AggregatedListAutoscalersRequest,AutoscalersClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
Returns
Type Description
UnaryCallable<AggregatedListAutoscalersRequest,AggregatedListPagedResponse>
Overrides

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

deleteCallable()

public UnaryCallable<DeleteAutoscalerRequest,Operation> deleteCallable()
Returns
Type Description
UnaryCallable<DeleteAutoscalerRequest,Operation>
Overrides

deleteOperationCallable()

public OperationCallable<DeleteAutoscalerRequest,Operation,Operation> deleteOperationCallable()
Returns
Type Description
OperationCallable<DeleteAutoscalerRequest,Operation,Operation>
Overrides

getCallable()

public UnaryCallable<GetAutoscalerRequest,Autoscaler> getCallable()
Returns
Type Description
UnaryCallable<GetAutoscalerRequest,Autoscaler>
Overrides

insertCallable()

public UnaryCallable<InsertAutoscalerRequest,Operation> insertCallable()
Returns
Type Description
UnaryCallable<InsertAutoscalerRequest,Operation>
Overrides

insertOperationCallable()

public OperationCallable<InsertAutoscalerRequest,Operation,Operation> insertOperationCallable()
Returns
Type Description
OperationCallable<InsertAutoscalerRequest,Operation,Operation>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listCallable()

public UnaryCallable<ListAutoscalersRequest,AutoscalerList> listCallable()
Returns
Type Description
UnaryCallable<ListAutoscalersRequest,AutoscalerList>
Overrides

listPagedCallable()

public UnaryCallable<ListAutoscalersRequest,AutoscalersClient.ListPagedResponse> listPagedCallable()
Returns
Type Description
UnaryCallable<ListAutoscalersRequest,ListPagedResponse>
Overrides

patchCallable()

public UnaryCallable<PatchAutoscalerRequest,Operation> patchCallable()
Returns
Type Description
UnaryCallable<PatchAutoscalerRequest,Operation>
Overrides

patchOperationCallable()

public OperationCallable<PatchAutoscalerRequest,Operation,Operation> patchOperationCallable()
Returns
Type Description
OperationCallable<PatchAutoscalerRequest,Operation,Operation>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateCallable()

public UnaryCallable<UpdateAutoscalerRequest,Operation> updateCallable()
Returns
Type Description
UnaryCallable<UpdateAutoscalerRequest,Operation>
Overrides

updateOperationCallable()

public OperationCallable<UpdateAutoscalerRequest,Operation,Operation> updateOperationCallable()
Returns
Type Description
OperationCallable<UpdateAutoscalerRequest,Operation,Operation>
Overrides