Google Cloud Dialogflow v2beta1 API - Class PhoneNumbers.PhoneNumbersBase (1.0.0-beta22)

[BindServiceMethod(typeof(PhoneNumbers), "BindService")]
public abstract class PhoneNumbers.PhoneNumbersBase

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

Base class for server-side implementations of PhoneNumbers

Inheritance

object > PhoneNumbers.PhoneNumbersBase

Namespace

Google.Cloud.Dialogflow.V2Beta1

Assembly

Google.Cloud.Dialogflow.V2Beta1.dll

Methods

DeletePhoneNumber(DeletePhoneNumberRequest, ServerCallContext)

public virtual Task<PhoneNumber> DeletePhoneNumber(DeletePhoneNumberRequest request, ServerCallContext context)

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 received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskPhoneNumber

The response to send back to the client (wrapped by a task).

ListPhoneNumbers(ListPhoneNumbersRequest, ServerCallContext)

public virtual Task<ListPhoneNumbersResponse> ListPhoneNumbers(ListPhoneNumbersRequest request, ServerCallContext context)

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

Parameters
Name Description
request ListPhoneNumbersRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskListPhoneNumbersResponse

The response to send back to the client (wrapped by a task).

UndeletePhoneNumber(UndeletePhoneNumberRequest, ServerCallContext)

public virtual Task<PhoneNumber> UndeletePhoneNumber(UndeletePhoneNumberRequest request, ServerCallContext context)

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 received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskPhoneNumber

The response to send back to the client (wrapped by a task).

UpdatePhoneNumber(UpdatePhoneNumberRequest, ServerCallContext)

public virtual Task<PhoneNumber> UpdatePhoneNumber(UpdatePhoneNumberRequest request, ServerCallContext context)

Updates the specified PhoneNumber.

Parameters
Name Description
request UpdatePhoneNumberRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskPhoneNumber

The response to send back to the client (wrapped by a task).