public class GrpcSipTrunksStub extends SipTrunksStubgRPC stub implementation for the SipTrunks service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final GrpcSipTrunksStub create(ClientContext clientContext)| Parameter | |
|---|---|
| Name | Description |
clientContext |
ClientContext |
| Returns | |
|---|---|
| Type | Description |
GrpcSipTrunksStub |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcSipTrunksStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)| Parameters | |
|---|---|
| Name | Description |
clientContext |
ClientContext |
callableFactory |
GrpcStubCallableFactory |
| Returns | |
|---|---|
| Type | Description |
GrpcSipTrunksStub |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
create(SipTrunksStubSettings settings)
public static final GrpcSipTrunksStub create(SipTrunksStubSettings settings)| Parameter | |
|---|---|
| Name | Description |
settings |
SipTrunksStubSettings |
| Returns | |
|---|---|
| Type | Description |
GrpcSipTrunksStub |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
Constructors
GrpcSipTrunksStub(SipTrunksStubSettings settings, ClientContext clientContext)
protected GrpcSipTrunksStub(SipTrunksStubSettings settings, ClientContext clientContext)Constructs an instance of GrpcSipTrunksStub, 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 |
GrpcSipTrunksStub(SipTrunksStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
protected GrpcSipTrunksStub(SipTrunksStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcSipTrunksStub, 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 |
GrpcStubCallableFactory |
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()createSipTrunkCallable()
public UnaryCallable<CreateSipTrunkRequest,SipTrunk> createSipTrunkCallable()| Returns | |
|---|---|
| Type | Description |
UnaryCallable<CreateSipTrunkRequest,SipTrunk> |
|
deleteSipTrunkCallable()
public UnaryCallable<DeleteSipTrunkRequest,Empty> deleteSipTrunkCallable()| Returns | |
|---|---|
| Type | Description |
UnaryCallable<DeleteSipTrunkRequest,Empty> |
|
getLocationCallable()
public UnaryCallable<GetLocationRequest,Location> getLocationCallable()| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
|
getOperationsStub()
public GrpcOperationsStub getOperationsStub()| Returns | |
|---|---|
| Type | Description |
GrpcOperationsStub |
|
getSipTrunkCallable()
public UnaryCallable<GetSipTrunkRequest,SipTrunk> getSipTrunkCallable()| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetSipTrunkRequest,SipTrunk> |
|
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> |
|
listLocationsPagedCallable()
public UnaryCallable<ListLocationsRequest,SipTrunksClient.ListLocationsPagedResponse> listLocationsPagedCallable()| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse> |
|
listSipTrunksCallable()
public UnaryCallable<ListSipTrunksRequest,ListSipTrunksResponse> listSipTrunksCallable()| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListSipTrunksRequest,ListSipTrunksResponse> |
|
listSipTrunksPagedCallable()
public UnaryCallable<ListSipTrunksRequest,SipTrunksClient.ListSipTrunksPagedResponse> listSipTrunksPagedCallable()| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListSipTrunksRequest,ListSipTrunksPagedResponse> |
|
shutdown()
public void shutdown()shutdownNow()
public void shutdownNow()updateSipTrunkCallable()
public UnaryCallable<UpdateSipTrunkRequest,SipTrunk> updateSipTrunkCallable()| Returns | |
|---|---|
| Type | Description |
UnaryCallable<UpdateSipTrunkRequest,SipTrunk> |
|