Class HttpJsonVpnTunnelsStub (1.47.0)

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.

Inheritance

java.lang.Object > VpnTunnelsStub > HttpJsonVpnTunnelsStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonVpnTunnelsStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonVpnTunnelsStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonVpnTunnelsStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonVpnTunnelsStub
Exceptions
TypeDescription
IOException

create(VpnTunnelsStubSettings settings)

public static final HttpJsonVpnTunnelsStub create(VpnTunnelsStubSettings settings)
Parameter
NameDescription
settingsVpnTunnelsStubSettings
Returns
TypeDescription
HttpJsonVpnTunnelsStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonVpnTunnelsStub(VpnTunnelsStubSettings settings, ClientContext clientContext)

protected HttpJsonVpnTunnelsStub(VpnTunnelsStubSettings settings, ClientContext clientContext)

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.

Parameters
NameDescription
settingsVpnTunnelsStubSettings
clientContextClientContext

HttpJsonVpnTunnelsStub(VpnTunnelsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonVpnTunnelsStub(VpnTunnelsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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.

Parameters
NameDescription
settingsVpnTunnelsStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

aggregatedListCallable()

public UnaryCallable<AggregatedListVpnTunnelsRequest,VpnTunnelAggregatedList> aggregatedListCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListVpnTunnelsRequest,VpnTunnelAggregatedList>
Overrides

aggregatedListPagedCallable()

public UnaryCallable<AggregatedListVpnTunnelsRequest,VpnTunnelsClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListVpnTunnelsRequest,AggregatedListPagedResponse>
Overrides

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

deleteCallable()

public UnaryCallable<DeleteVpnTunnelRequest,Operation> deleteCallable()
Returns
TypeDescription
UnaryCallable<DeleteVpnTunnelRequest,Operation>
Overrides

deleteOperationCallable()

public OperationCallable<DeleteVpnTunnelRequest,Operation,Operation> deleteOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteVpnTunnelRequest,Operation,Operation>
Overrides

getCallable()

public UnaryCallable<GetVpnTunnelRequest,VpnTunnel> getCallable()
Returns
TypeDescription
UnaryCallable<GetVpnTunnelRequest,VpnTunnel>
Overrides

insertCallable()

public UnaryCallable<InsertVpnTunnelRequest,Operation> insertCallable()
Returns
TypeDescription
UnaryCallable<InsertVpnTunnelRequest,Operation>
Overrides

insertOperationCallable()

public OperationCallable<InsertVpnTunnelRequest,Operation,Operation> insertOperationCallable()
Returns
TypeDescription
OperationCallable<InsertVpnTunnelRequest,Operation,Operation>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListVpnTunnelsRequest,VpnTunnelList> listCallable()
Returns
TypeDescription
UnaryCallable<ListVpnTunnelsRequest,VpnTunnelList>
Overrides

listPagedCallable()

public UnaryCallable<ListVpnTunnelsRequest,VpnTunnelsClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListVpnTunnelsRequest,ListPagedResponse>
Overrides

setLabelsCallable()

public UnaryCallable<SetLabelsVpnTunnelRequest,Operation> setLabelsCallable()
Returns
TypeDescription
UnaryCallable<SetLabelsVpnTunnelRequest,Operation>
Overrides

setLabelsOperationCallable()

public OperationCallable<SetLabelsVpnTunnelRequest,Operation,Operation> setLabelsOperationCallable()
Returns
TypeDescription
OperationCallable<SetLabelsVpnTunnelRequest,Operation,Operation>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()