[BindServiceMethod(typeof(PhoneNumbers), "BindService")]
public abstract class PhoneNumbers.PhoneNumbersBaseReference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class PhoneNumbers.PhoneNumbersBase.
Base class for server-side implementations of PhoneNumbers
Namespace
Google.Cloud.Dialogflow.V2Beta1Assembly
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 |
DeletePhoneNumberRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
ListPhoneNumbersRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
UndeletePhoneNumberRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
UpdatePhoneNumberRequestThe request received from the client. |
context |
ServerCallContextThe 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). |