Package com.google.cloud.compute.v1.stub
Class HttpJsonAutoscalersStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.AutoscalersStub
-
- com.google.cloud.compute.v1.stub.HttpJsonAutoscalersStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonAutoscalersStub(AutoscalersStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonAutoscalersStub, using the given settings.protectedHttpJsonAutoscalersStub(AutoscalersStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonAutoscalersStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonAutoscalersStub
protected HttpJsonAutoscalersStub(AutoscalersStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
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.- Throws:
IOException
-
HttpJsonAutoscalersStub
protected HttpJsonAutoscalersStub(AutoscalersStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
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.- Throws:
IOException
-
-
Method Detail
-
create
public static final HttpJsonAutoscalersStub create(AutoscalersStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonAutoscalersStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonAutoscalersStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
aggregatedListCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListAutoscalersRequest,AutoscalerAggregatedList> aggregatedListCallable()
- Overrides:
aggregatedListCallablein classAutoscalersStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListAutoscalersRequest,AutoscalersClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallablein classAutoscalersStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteAutoscalerRequest,Operation> deleteCallable()
- Overrides:
deleteCallablein classAutoscalersStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteAutoscalerRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallablein classAutoscalersStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetAutoscalerRequest,Autoscaler> getCallable()
- Overrides:
getCallablein classAutoscalersStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertAutoscalerRequest,Operation> insertCallable()
- Overrides:
insertCallablein classAutoscalersStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertAutoscalerRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallablein classAutoscalersStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListAutoscalersRequest,AutoscalerList> listCallable()
- Overrides:
listCallablein classAutoscalersStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListAutoscalersRequest,AutoscalersClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallablein classAutoscalersStub
-
patchCallable
public com.google.api.gax.rpc.UnaryCallable<PatchAutoscalerRequest,Operation> patchCallable()
- Overrides:
patchCallablein classAutoscalersStub
-
patchOperationCallable
public com.google.api.gax.rpc.OperationCallable<PatchAutoscalerRequest,Operation,Operation> patchOperationCallable()
- Overrides:
patchOperationCallablein classAutoscalersStub
-
updateCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateAutoscalerRequest,Operation> updateCallable()
- Overrides:
updateCallablein classAutoscalersStub
-
updateOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateAutoscalerRequest,Operation,Operation> updateOperationCallable()
- Overrides:
updateOperationCallablein classAutoscalersStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classAutoscalersStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-