Google Cloud Dialogflow v2beta1 API - Class SipTrunks.SipTrunksClient (1.0.0-beta21)

public class SipTrunks.SipTrunksClient : ClientBase<SipTrunks.SipTrunksClient>

Reference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class SipTrunks.SipTrunksClient.

Client for SipTrunks

Inheritance

object > ClientBase > ClientBaseSipTrunksSipTrunksClient > SipTrunks.SipTrunksClient

Namespace

Google.Cloud.Dialogflow.V2Beta1

Assembly

Google.Cloud.Dialogflow.V2Beta1.dll

Constructors

SipTrunksClient()

protected SipTrunksClient()

Protected parameterless constructor to allow creation of test doubles.

SipTrunksClient(CallInvoker)

public SipTrunksClient(CallInvoker callInvoker)

Creates a new client for SipTrunks that uses a custom CallInvoker.

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

SipTrunksClient(ChannelBase)

public SipTrunksClient(ChannelBase channel)

Creates a new client for SipTrunks

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

SipTrunksClient(ClientBaseConfiguration)

protected SipTrunksClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
Type Description
LocationsLocationsClient

A new Locations.LocationsClient for the same target as this client.

CreateSipTrunk(CreateSipTrunkRequest, CallOptions)

public virtual SipTrunk CreateSipTrunk(CreateSipTrunkRequest request, CallOptions options)

Creates a SipTrunk for a specified location.

Parameters
Name Description
request CreateSipTrunkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
SipTrunk

The response received from the server.

CreateSipTrunk(CreateSipTrunkRequest, Metadata, DateTime?, CancellationToken)

public virtual SipTrunk CreateSipTrunk(CreateSipTrunkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a SipTrunk for a specified location.

Parameters
Name Description
request CreateSipTrunkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
SipTrunk

The response received from the server.

CreateSipTrunkAsync(CreateSipTrunkRequest, CallOptions)

public virtual AsyncUnaryCall<SipTrunk> CreateSipTrunkAsync(CreateSipTrunkRequest request, CallOptions options)

Creates a SipTrunk for a specified location.

Parameters
Name Description
request CreateSipTrunkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallSipTrunk

The call object.

CreateSipTrunkAsync(CreateSipTrunkRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<SipTrunk> CreateSipTrunkAsync(CreateSipTrunkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a SipTrunk for a specified location.

Parameters
Name Description
request CreateSipTrunkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallSipTrunk

The call object.

DeleteSipTrunk(DeleteSipTrunkRequest, CallOptions)

public virtual Empty DeleteSipTrunk(DeleteSipTrunkRequest request, CallOptions options)

Deletes a specified SipTrunk.

Parameters
Name Description
request DeleteSipTrunkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Empty

The response received from the server.

DeleteSipTrunk(DeleteSipTrunkRequest, Metadata, DateTime?, CancellationToken)

public virtual Empty DeleteSipTrunk(DeleteSipTrunkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes a specified SipTrunk.

Parameters
Name Description
request DeleteSipTrunkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Empty

The response received from the server.

DeleteSipTrunkAsync(DeleteSipTrunkRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteSipTrunkAsync(DeleteSipTrunkRequest request, CallOptions options)

Deletes a specified SipTrunk.

Parameters
Name Description
request DeleteSipTrunkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

DeleteSipTrunkAsync(DeleteSipTrunkRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Empty> DeleteSipTrunkAsync(DeleteSipTrunkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes a specified SipTrunk.

Parameters
Name Description
request DeleteSipTrunkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

GetSipTrunk(GetSipTrunkRequest, CallOptions)

public virtual SipTrunk GetSipTrunk(GetSipTrunkRequest request, CallOptions options)

Retrieves the specified SipTrunk.

Parameters
Name Description
request GetSipTrunkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
SipTrunk

The response received from the server.

GetSipTrunk(GetSipTrunkRequest, Metadata, DateTime?, CancellationToken)

public virtual SipTrunk GetSipTrunk(GetSipTrunkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the specified SipTrunk.

Parameters
Name Description
request GetSipTrunkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
SipTrunk

The response received from the server.

GetSipTrunkAsync(GetSipTrunkRequest, CallOptions)

public virtual AsyncUnaryCall<SipTrunk> GetSipTrunkAsync(GetSipTrunkRequest request, CallOptions options)

Retrieves the specified SipTrunk.

Parameters
Name Description
request GetSipTrunkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallSipTrunk

The call object.

GetSipTrunkAsync(GetSipTrunkRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<SipTrunk> GetSipTrunkAsync(GetSipTrunkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the specified SipTrunk.

Parameters
Name Description
request GetSipTrunkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallSipTrunk

The call object.

ListSipTrunks(ListSipTrunksRequest, CallOptions)

public virtual ListSipTrunksResponse ListSipTrunks(ListSipTrunksRequest request, CallOptions options)

Returns a list of SipTrunks in the specified location.

Parameters
Name Description
request ListSipTrunksRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListSipTrunksResponse

The response received from the server.

ListSipTrunks(ListSipTrunksRequest, Metadata, DateTime?, CancellationToken)

public virtual ListSipTrunksResponse ListSipTrunks(ListSipTrunksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns a list of SipTrunks in the specified location.

Parameters
Name Description
request ListSipTrunksRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ListSipTrunksResponse

The response received from the server.

ListSipTrunksAsync(ListSipTrunksRequest, CallOptions)

public virtual AsyncUnaryCall<ListSipTrunksResponse> ListSipTrunksAsync(ListSipTrunksRequest request, CallOptions options)

Returns a list of SipTrunks in the specified location.

Parameters
Name Description
request ListSipTrunksRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListSipTrunksResponse

The call object.

ListSipTrunksAsync(ListSipTrunksRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListSipTrunksResponse> ListSipTrunksAsync(ListSipTrunksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns a list of SipTrunks in the specified location.

Parameters
Name Description
request ListSipTrunksRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListSipTrunksResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override SipTrunks.SipTrunksClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
SipTrunksSipTrunksClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Dialogflow.V2Beta1.SipTrunks.SipTrunksClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

UpdateSipTrunk(UpdateSipTrunkRequest, CallOptions)

public virtual SipTrunk UpdateSipTrunk(UpdateSipTrunkRequest request, CallOptions options)

Updates the specified SipTrunk.

Parameters
Name Description
request UpdateSipTrunkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
SipTrunk

The response received from the server.

UpdateSipTrunk(UpdateSipTrunkRequest, Metadata, DateTime?, CancellationToken)

public virtual SipTrunk UpdateSipTrunk(UpdateSipTrunkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates the specified SipTrunk.

Parameters
Name Description
request UpdateSipTrunkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
SipTrunk

The response received from the server.

UpdateSipTrunkAsync(UpdateSipTrunkRequest, CallOptions)

public virtual AsyncUnaryCall<SipTrunk> UpdateSipTrunkAsync(UpdateSipTrunkRequest request, CallOptions options)

Updates the specified SipTrunk.

Parameters
Name Description
request UpdateSipTrunkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallSipTrunk

The call object.

UpdateSipTrunkAsync(UpdateSipTrunkRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<SipTrunk> UpdateSipTrunkAsync(UpdateSipTrunkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates the specified SipTrunk.

Parameters
Name Description
request UpdateSipTrunkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallSipTrunk

The call object.