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 protected
HttpJsonAutoscalersStub(AutoscalersStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonAutoscalersStub, using the given settings.protected
HttpJsonAutoscalersStub(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:
aggregatedListCallable
in classAutoscalersStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListAutoscalersRequest,AutoscalersClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallable
in classAutoscalersStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteAutoscalerRequest,Operation> deleteCallable()
- Overrides:
deleteCallable
in classAutoscalersStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteAutoscalerRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallable
in classAutoscalersStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetAutoscalerRequest,Autoscaler> getCallable()
- Overrides:
getCallable
in classAutoscalersStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertAutoscalerRequest,Operation> insertCallable()
- Overrides:
insertCallable
in classAutoscalersStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertAutoscalerRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallable
in classAutoscalersStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListAutoscalersRequest,AutoscalerList> listCallable()
- Overrides:
listCallable
in classAutoscalersStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListAutoscalersRequest,AutoscalersClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallable
in classAutoscalersStub
-
patchCallable
public com.google.api.gax.rpc.UnaryCallable<PatchAutoscalerRequest,Operation> patchCallable()
- Overrides:
patchCallable
in classAutoscalersStub
-
patchOperationCallable
public com.google.api.gax.rpc.OperationCallable<PatchAutoscalerRequest,Operation,Operation> patchOperationCallable()
- Overrides:
patchOperationCallable
in classAutoscalersStub
-
updateCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateAutoscalerRequest,Operation> updateCallable()
- Overrides:
updateCallable
in classAutoscalersStub
-
updateOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateAutoscalerRequest,Operation,Operation> updateOperationCallable()
- Overrides:
updateOperationCallable
in classAutoscalersStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-