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 protected
HttpJsonRegionCommitmentsStub(RegionCommitmentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonRegionCommitmentsStub, using the given settings.protected
HttpJsonRegionCommitmentsStub(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:
aggregatedListCallable
in classRegionCommitmentsStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListRegionCommitmentsRequest,RegionCommitmentsClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallable
in classRegionCommitmentsStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetRegionCommitmentRequest,Commitment> getCallable()
- Overrides:
getCallable
in classRegionCommitmentsStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertRegionCommitmentRequest,Operation> insertCallable()
- Overrides:
insertCallable
in classRegionCommitmentsStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertRegionCommitmentRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallable
in classRegionCommitmentsStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListRegionCommitmentsRequest,CommitmentList> listCallable()
- Overrides:
listCallable
in classRegionCommitmentsStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListRegionCommitmentsRequest,RegionCommitmentsClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallable
in classRegionCommitmentsStub
-
updateCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateRegionCommitmentRequest,Operation> updateCallable()
- Overrides:
updateCallable
in classRegionCommitmentsStub
-
updateOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateRegionCommitmentRequest,Operation,Operation> updateOperationCallable()
- Overrides:
updateOperationCallable
in classRegionCommitmentsStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-