Package com.google.cloud.compute.v1.stub
Class HttpJsonRegionCommitmentsStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.RegionCommitmentsStub
-
- com.google.cloud.compute.v1.stub.HttpJsonRegionCommitmentsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonRegionCommitmentsStub extends RegionCommitmentsStub
REST stub implementation for the RegionCommitments service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonRegionCommitmentsStub(RegionCommitmentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonRegionCommitmentsStub, using the given settings.protectedHttpJsonRegionCommitmentsStub(RegionCommitmentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonRegionCommitmentsStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonRegionCommitmentsStub
protected HttpJsonRegionCommitmentsStub(RegionCommitmentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonRegionCommitmentsStub, 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
-
HttpJsonRegionCommitmentsStub
protected HttpJsonRegionCommitmentsStub(RegionCommitmentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonRegionCommitmentsStub, 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 HttpJsonRegionCommitmentsStub create(RegionCommitmentsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonRegionCommitmentsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonRegionCommitmentsStub 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<AggregatedListRegionCommitmentsRequest,CommitmentAggregatedList> aggregatedListCallable()
- Overrides:
aggregatedListCallablein classRegionCommitmentsStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListRegionCommitmentsRequest,RegionCommitmentsClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallablein classRegionCommitmentsStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetRegionCommitmentRequest,Commitment> getCallable()
- Overrides:
getCallablein classRegionCommitmentsStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertRegionCommitmentRequest,Operation> insertCallable()
- Overrides:
insertCallablein classRegionCommitmentsStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertRegionCommitmentRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallablein classRegionCommitmentsStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListRegionCommitmentsRequest,CommitmentList> listCallable()
- Overrides:
listCallablein classRegionCommitmentsStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListRegionCommitmentsRequest,RegionCommitmentsClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallablein classRegionCommitmentsStub
-
updateCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateRegionCommitmentRequest,Operation> updateCallable()
- Overrides:
updateCallablein classRegionCommitmentsStub
-
updateOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateRegionCommitmentRequest,Operation,Operation> updateOperationCallable()
- Overrides:
updateOperationCallablein classRegionCommitmentsStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classRegionCommitmentsStub
-
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
-
-