public sealed class PhoneNumbersClientImpl : PhoneNumbersClientReference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class PhoneNumbersClientImpl.
PhoneNumbers client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Dialogflow.V2Beta1Assembly
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 |
PhoneNumbersPhoneNumbersClientThe underlying gRPC client. |
settings |
PhoneNumbersSettingsThe base PhoneNumbersSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
GrpcClient
public override PhoneNumbers.PhoneNumbersClient GrpcClient { get; }The underlying gRPC PhoneNumbers client
| Property Value | |
|---|---|
| Type | Description |
PhoneNumbersPhoneNumbersClient |
|
LocationsClient
public override LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
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 |
DeletePhoneNumberRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber |
The RPC response. |
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 |
DeletePhoneNumberRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPhoneNumber |
A Task containing the RPC response. |
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 |
ListPhoneNumbersRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListPhoneNumbersResponsePhoneNumber |
A pageable sequence of PhoneNumber resources. |
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 |
ListPhoneNumbersRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListPhoneNumbersResponsePhoneNumber |
A pageable asynchronous sequence of PhoneNumber resources. |
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 |
UndeletePhoneNumberRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber |
The RPC response. |
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 |
UndeletePhoneNumberRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPhoneNumber |
A Task containing the RPC response. |
UpdatePhoneNumber(UpdatePhoneNumberRequest, CallSettings)
public override PhoneNumber UpdatePhoneNumber(UpdatePhoneNumberRequest request, CallSettings callSettings = null)Updates the specified PhoneNumber.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdatePhoneNumberRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber |
The RPC response. |
UpdatePhoneNumberAsync(UpdatePhoneNumberRequest, CallSettings)
public override Task<PhoneNumber> UpdatePhoneNumberAsync(UpdatePhoneNumberRequest request, CallSettings callSettings = null)Updates the specified PhoneNumber.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdatePhoneNumberRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPhoneNumber |
A Task containing the RPC response. |