Google Cloud Dialogflow v2beta1 API - Class PhoneNumbersClientImpl (1.0.0-beta22)

public sealed class PhoneNumbersClientImpl : PhoneNumbersClient

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

PhoneNumbers client wrapper implementation, for convenient use.

Inheritance

object > PhoneNumbersClient > PhoneNumbersClientImpl

Namespace

Google.Cloud.Dialogflow.V2Beta1

Assembly

Google.Cloud.Dialogflow.V2Beta1.dll

Remarks

Service for managing [PhoneNumbers][google.cloud.dialogflow.v2beta1.PhoneNumber].

Constructors

PhoneNumbersClientImpl(PhoneNumbersClient, PhoneNumbersSettings, ILogger)

public PhoneNumbersClientImpl(PhoneNumbers.PhoneNumbersClient grpcClient, PhoneNumbersSettings settings, ILogger logger)

Constructs a client wrapper for the PhoneNumbers service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient PhoneNumbersPhoneNumbersClient

The underlying gRPC client.

settings PhoneNumbersSettings

The base PhoneNumbersSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override PhoneNumbers.PhoneNumbersClient GrpcClient { get; }

The underlying gRPC PhoneNumbers client

Property Value
Type Description
PhoneNumbersPhoneNumbersClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient
Overrides

Methods

DeletePhoneNumber(DeletePhoneNumberRequest, CallSettings)

public override PhoneNumber DeletePhoneNumber(DeletePhoneNumberRequest request, CallSettings callSettings = null)

Requests deletion of a PhoneNumber. The PhoneNumber is moved into the [DELETE_REQUESTED][google.cloud.dialogflow.v2beta1.PhoneNumber.LifecycleState.DELETE_REQUESTED] state immediately, and is deleted approximately 30 days later. This method may only be called on a PhoneNumber in the [ACTIVE][google.cloud.dialogflow.v2beta1.PhoneNumber.LifecycleState.ACTIVE] state.

Parameters
Name Description
request DeletePhoneNumberRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PhoneNumber

The RPC response.

Overrides

DeletePhoneNumberAsync(DeletePhoneNumberRequest, CallSettings)

public override Task<PhoneNumber> DeletePhoneNumberAsync(DeletePhoneNumberRequest request, CallSettings callSettings = null)

Requests deletion of a PhoneNumber. The PhoneNumber is moved into the [DELETE_REQUESTED][google.cloud.dialogflow.v2beta1.PhoneNumber.LifecycleState.DELETE_REQUESTED] state immediately, and is deleted approximately 30 days later. This method may only be called on a PhoneNumber in the [ACTIVE][google.cloud.dialogflow.v2beta1.PhoneNumber.LifecycleState.ACTIVE] state.

Parameters
Name Description
request DeletePhoneNumberRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPhoneNumber

A Task containing the RPC response.

Overrides

ListPhoneNumbers(ListPhoneNumbersRequest, CallSettings)

public override PagedEnumerable<ListPhoneNumbersResponse, PhoneNumber> ListPhoneNumbers(ListPhoneNumbersRequest request, CallSettings callSettings = null)

Returns the list of all phone numbers in the specified project.

Parameters
Name Description
request ListPhoneNumbersRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListPhoneNumbersResponsePhoneNumber

A pageable sequence of PhoneNumber resources.

Overrides

ListPhoneNumbersAsync(ListPhoneNumbersRequest, CallSettings)

public override PagedAsyncEnumerable<ListPhoneNumbersResponse, PhoneNumber> ListPhoneNumbersAsync(ListPhoneNumbersRequest request, CallSettings callSettings = null)

Returns the list of all phone numbers in the specified project.

Parameters
Name Description
request ListPhoneNumbersRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListPhoneNumbersResponsePhoneNumber

A pageable asynchronous sequence of PhoneNumber resources.

Overrides

UndeletePhoneNumber(UndeletePhoneNumberRequest, CallSettings)

public override PhoneNumber UndeletePhoneNumber(UndeletePhoneNumberRequest request, CallSettings callSettings = null)

Cancels the deletion request for a PhoneNumber. This method may only be called on a PhoneNumber in the [DELETE_REQUESTED][google.cloud.dialogflow.v2beta1.PhoneNumber.LifecycleState.DELETE_REQUESTED] state.

Parameters
Name Description
request UndeletePhoneNumberRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PhoneNumber

The RPC response.

Overrides

UndeletePhoneNumberAsync(UndeletePhoneNumberRequest, CallSettings)

public override Task<PhoneNumber> UndeletePhoneNumberAsync(UndeletePhoneNumberRequest request, CallSettings callSettings = null)

Cancels the deletion request for a PhoneNumber. This method may only be called on a PhoneNumber in the [DELETE_REQUESTED][google.cloud.dialogflow.v2beta1.PhoneNumber.LifecycleState.DELETE_REQUESTED] state.

Parameters
Name Description
request UndeletePhoneNumberRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPhoneNumber

A Task containing the RPC response.

Overrides

UpdatePhoneNumber(UpdatePhoneNumberRequest, CallSettings)

public override PhoneNumber UpdatePhoneNumber(UpdatePhoneNumberRequest request, CallSettings callSettings = null)

Updates the specified PhoneNumber.

Parameters
Name Description
request UpdatePhoneNumberRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PhoneNumber

The RPC response.

Overrides

UpdatePhoneNumberAsync(UpdatePhoneNumberRequest, CallSettings)

public override Task<PhoneNumber> UpdatePhoneNumberAsync(UpdatePhoneNumberRequest request, CallSettings callSettings = null)

Updates the specified PhoneNumber.

Parameters
Name Description
request UpdatePhoneNumberRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPhoneNumber

A Task containing the RPC response.

Overrides