Class HttpJsonSipTrunksStub (4.60.0)

public class HttpJsonSipTrunksStub extends SipTrunksStub

REST stub implementation for the SipTrunks service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > SipTrunksStub > HttpJsonSipTrunksStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonSipTrunksStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonSipTrunksStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(SipTrunksStubSettings settings)

public static final HttpJsonSipTrunksStub create(SipTrunksStubSettings settings)
Parameter
Name Description
settings SipTrunksStubSettings
Returns
Type Description
HttpJsonSipTrunksStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonSipTrunksStub(SipTrunksStubSettings settings, ClientContext clientContext)

protected HttpJsonSipTrunksStub(SipTrunksStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonSipTrunksStub, 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 SipTrunksStubSettings
clientContext ClientContext

HttpJsonSipTrunksStub(SipTrunksStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonSipTrunksStub(SipTrunksStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonSipTrunksStub, 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 SipTrunksStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

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

createSipTrunkCallable()

public UnaryCallable<CreateSipTrunkRequest,SipTrunk> createSipTrunkCallable()
Returns
Type Description
UnaryCallable<CreateSipTrunkRequest,SipTrunk>
Overrides

deleteSipTrunkCallable()

public UnaryCallable<DeleteSipTrunkRequest,Empty> deleteSipTrunkCallable()
Returns
Type Description
UnaryCallable<DeleteSipTrunkRequest,Empty>
Overrides

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

getSipTrunkCallable()

public UnaryCallable<GetSipTrunkRequest,SipTrunk> getSipTrunkCallable()
Returns
Type Description
UnaryCallable<GetSipTrunkRequest,SipTrunk>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,SipTrunksClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

listSipTrunksCallable()

public UnaryCallable<ListSipTrunksRequest,ListSipTrunksResponse> listSipTrunksCallable()
Returns
Type Description
UnaryCallable<ListSipTrunksRequest,ListSipTrunksResponse>
Overrides

listSipTrunksPagedCallable()

public UnaryCallable<ListSipTrunksRequest,SipTrunksClient.ListSipTrunksPagedResponse> listSipTrunksPagedCallable()
Returns
Type Description
UnaryCallable<ListSipTrunksRequest,ListSipTrunksPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateSipTrunkCallable()

public UnaryCallable<UpdateSipTrunkRequest,SipTrunk> updateSipTrunkCallable()
Returns
Type Description
UnaryCallable<UpdateSipTrunkRequest,SipTrunk>
Overrides