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 protected
HttpJsonVpnTunnelsStub(VpnTunnelsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonVpnTunnelsStub, using the given settings.protected
HttpJsonVpnTunnelsStub(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:
aggregatedListCallable
in classVpnTunnelsStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListVpnTunnelsRequest,VpnTunnelsClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallable
in classVpnTunnelsStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteVpnTunnelRequest,Operation> deleteCallable()
- Overrides:
deleteCallable
in classVpnTunnelsStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteVpnTunnelRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallable
in classVpnTunnelsStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetVpnTunnelRequest,VpnTunnel> getCallable()
- Overrides:
getCallable
in classVpnTunnelsStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertVpnTunnelRequest,Operation> insertCallable()
- Overrides:
insertCallable
in classVpnTunnelsStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertVpnTunnelRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallable
in classVpnTunnelsStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListVpnTunnelsRequest,VpnTunnelList> listCallable()
- Overrides:
listCallable
in classVpnTunnelsStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListVpnTunnelsRequest,VpnTunnelsClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallable
in classVpnTunnelsStub
-
setLabelsCallable
public com.google.api.gax.rpc.UnaryCallable<SetLabelsVpnTunnelRequest,Operation> setLabelsCallable()
- Overrides:
setLabelsCallable
in classVpnTunnelsStub
-
setLabelsOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetLabelsVpnTunnelRequest,Operation,Operation> setLabelsOperationCallable()
- Overrides:
setLabelsOperationCallable
in classVpnTunnelsStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-