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

1.0.0-beta30 (latest) 1.0.0-beta29

    [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](https://learn.microsoft.com/dotnet/api/system.object) \> PhoneNumbers.PhoneNumbersBase

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Dialogflow.V2Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.DeletePhoneNumberRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.PhoneNumber` | 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ListPhoneNumbersRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ListPhoneNumbersResponse` | 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.UndeletePhoneNumberRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.PhoneNumber` | 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.UpdatePhoneNumberRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.PhoneNumber` | The response to send back to the client (wrapped by a task). |