Package com.google.cloud.compute.v1.stub
Class HttpJsonVpnGatewaysStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.VpnGatewaysStub
-
- com.google.cloud.compute.v1.stub.HttpJsonVpnGatewaysStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonVpnGatewaysStub extends VpnGatewaysStub
REST stub implementation for the VpnGateways service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonVpnGatewaysStub(VpnGatewaysStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonVpnGatewaysStub, using the given settings.protectedHttpJsonVpnGatewaysStub(VpnGatewaysStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonVpnGatewaysStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonVpnGatewaysStub
protected HttpJsonVpnGatewaysStub(VpnGatewaysStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonVpnGatewaysStub, 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
-
HttpJsonVpnGatewaysStub
protected HttpJsonVpnGatewaysStub(VpnGatewaysStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonVpnGatewaysStub, 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 HttpJsonVpnGatewaysStub create(VpnGatewaysStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonVpnGatewaysStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonVpnGatewaysStub 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<AggregatedListVpnGatewaysRequest,VpnGatewayAggregatedList> aggregatedListCallable()
- Overrides:
aggregatedListCallablein classVpnGatewaysStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListVpnGatewaysRequest,VpnGatewaysClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallablein classVpnGatewaysStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteVpnGatewayRequest,Operation> deleteCallable()
- Overrides:
deleteCallablein classVpnGatewaysStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteVpnGatewayRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallablein classVpnGatewaysStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetVpnGatewayRequest,VpnGateway> getCallable()
- Overrides:
getCallablein classVpnGatewaysStub
-
getStatusCallable
public com.google.api.gax.rpc.UnaryCallable<GetStatusVpnGatewayRequest,VpnGatewaysGetStatusResponse> getStatusCallable()
- Overrides:
getStatusCallablein classVpnGatewaysStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertVpnGatewayRequest,Operation> insertCallable()
- Overrides:
insertCallablein classVpnGatewaysStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertVpnGatewayRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallablein classVpnGatewaysStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListVpnGatewaysRequest,VpnGatewayList> listCallable()
- Overrides:
listCallablein classVpnGatewaysStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListVpnGatewaysRequest,VpnGatewaysClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallablein classVpnGatewaysStub
-
setLabelsCallable
public com.google.api.gax.rpc.UnaryCallable<SetLabelsVpnGatewayRequest,Operation> setLabelsCallable()
- Overrides:
setLabelsCallablein classVpnGatewaysStub
-
setLabelsOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetLabelsVpnGatewayRequest,Operation,Operation> setLabelsOperationCallable()
- Overrides:
setLabelsOperationCallablein classVpnGatewaysStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<TestIamPermissionsVpnGatewayRequest,TestPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallablein classVpnGatewaysStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classVpnGatewaysStub
-
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
-
-