Package com.google.cloud.compute.v1.stub
Class HttpJsonTargetVpnGatewaysStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.TargetVpnGatewaysStub
-
- com.google.cloud.compute.v1.stub.HttpJsonTargetVpnGatewaysStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonTargetVpnGatewaysStub extends TargetVpnGatewaysStub
REST stub implementation for the TargetVpnGateways service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonTargetVpnGatewaysStub(TargetVpnGatewaysStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonTargetVpnGatewaysStub, using the given settings.protected
HttpJsonTargetVpnGatewaysStub(TargetVpnGatewaysStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonTargetVpnGatewaysStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonTargetVpnGatewaysStub
protected HttpJsonTargetVpnGatewaysStub(TargetVpnGatewaysStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonTargetVpnGatewaysStub, 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
-
HttpJsonTargetVpnGatewaysStub
protected HttpJsonTargetVpnGatewaysStub(TargetVpnGatewaysStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonTargetVpnGatewaysStub, 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 HttpJsonTargetVpnGatewaysStub create(TargetVpnGatewaysStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonTargetVpnGatewaysStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonTargetVpnGatewaysStub 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<AggregatedListTargetVpnGatewaysRequest,TargetVpnGatewayAggregatedList> aggregatedListCallable()
- Overrides:
aggregatedListCallable
in classTargetVpnGatewaysStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListTargetVpnGatewaysRequest,TargetVpnGatewaysClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallable
in classTargetVpnGatewaysStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteTargetVpnGatewayRequest,Operation> deleteCallable()
- Overrides:
deleteCallable
in classTargetVpnGatewaysStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteTargetVpnGatewayRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallable
in classTargetVpnGatewaysStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetTargetVpnGatewayRequest,TargetVpnGateway> getCallable()
- Overrides:
getCallable
in classTargetVpnGatewaysStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertTargetVpnGatewayRequest,Operation> insertCallable()
- Overrides:
insertCallable
in classTargetVpnGatewaysStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertTargetVpnGatewayRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallable
in classTargetVpnGatewaysStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListTargetVpnGatewaysRequest,TargetVpnGatewayList> listCallable()
- Overrides:
listCallable
in classTargetVpnGatewaysStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListTargetVpnGatewaysRequest,TargetVpnGatewaysClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallable
in classTargetVpnGatewaysStub
-
setLabelsCallable
public com.google.api.gax.rpc.UnaryCallable<SetLabelsTargetVpnGatewayRequest,Operation> setLabelsCallable()
- Overrides:
setLabelsCallable
in classTargetVpnGatewaysStub
-
setLabelsOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetLabelsTargetVpnGatewayRequest,Operation,Operation> setLabelsOperationCallable()
- Overrides:
setLabelsOperationCallable
in classTargetVpnGatewaysStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classTargetVpnGatewaysStub
-
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
-
-