Class HttpJsonVpnTunnelsStub (1.54.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
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonVpnTunnelsStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonVpnTunnelsStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonVpnTunnelsStub
Exceptions
Type Description
IOException

create(VpnTunnelsStubSettings settings)

public static final HttpJsonVpnTunnelsStub create(VpnTunnelsStubSettings settings)
Parameter
Name Description
settings VpnTunnelsStubSettings
Returns
Type Description
HttpJsonVpnTunnelsStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
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
Name Description
settings VpnTunnelsStubSettings
clientContext ClientContext

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
Name Description
settings VpnTunnelsStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

aggregatedListCallable()

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

aggregatedListPagedCallable()

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

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

deleteCallable()

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

deleteOperationCallable()

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

getCallable()

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

insertCallable()

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

insertOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listCallable()

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

listPagedCallable()

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

setLabelsCallable()

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

setLabelsOperationCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()