Package com.google.cloud.compute.v1.stub
Class HttpJsonVpnTunnelsStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.VpnTunnelsStub
-
- com.google.cloud.compute.v1.stub.HttpJsonVpnTunnelsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonVpnTunnelsStub extends VpnTunnelsStub
REST stub implementation for the VpnTunnels service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonVpnTunnelsStub(VpnTunnelsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonVpnTunnelsStub, using the given settings.protectedHttpJsonVpnTunnelsStub(VpnTunnelsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonVpnTunnelsStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonVpnTunnelsStub
protected HttpJsonVpnTunnelsStub(VpnTunnelsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonVpnTunnelsStub, 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
-
HttpJsonVpnTunnelsStub
protected HttpJsonVpnTunnelsStub(VpnTunnelsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonVpnTunnelsStub, 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 HttpJsonVpnTunnelsStub create(VpnTunnelsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonVpnTunnelsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonVpnTunnelsStub 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<AggregatedListVpnTunnelsRequest,VpnTunnelAggregatedList> aggregatedListCallable()
- Overrides:
aggregatedListCallablein classVpnTunnelsStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListVpnTunnelsRequest,VpnTunnelsClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallablein classVpnTunnelsStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteVpnTunnelRequest,Operation> deleteCallable()
- Overrides:
deleteCallablein classVpnTunnelsStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteVpnTunnelRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallablein classVpnTunnelsStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetVpnTunnelRequest,VpnTunnel> getCallable()
- Overrides:
getCallablein classVpnTunnelsStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertVpnTunnelRequest,Operation> insertCallable()
- Overrides:
insertCallablein classVpnTunnelsStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertVpnTunnelRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallablein classVpnTunnelsStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListVpnTunnelsRequest,VpnTunnelList> listCallable()
- Overrides:
listCallablein classVpnTunnelsStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListVpnTunnelsRequest,VpnTunnelsClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallablein classVpnTunnelsStub
-
setLabelsCallable
public com.google.api.gax.rpc.UnaryCallable<SetLabelsVpnTunnelRequest,Operation> setLabelsCallable()
- Overrides:
setLabelsCallablein classVpnTunnelsStub
-
setLabelsOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetLabelsVpnTunnelRequest,Operation,Operation> setLabelsOperationCallable()
- Overrides:
setLabelsOperationCallablein classVpnTunnelsStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classVpnTunnelsStub
-
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
-
-