public class PhoneNumbers.PhoneNumbersClient : ClientBase<PhoneNumbers.PhoneNumbersClient>
Reference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class PhoneNumbers.PhoneNumbersClient.
Client for PhoneNumbers
Inheritance
object > ClientBase > ClientBasePhoneNumbersPhoneNumbersClient > PhoneNumbers.PhoneNumbersClientNamespace
Google.Cloud.Dialogflow.V2Beta1Assembly
Google.Cloud.Dialogflow.V2Beta1.dll
Constructors
PhoneNumbersClient()
protected PhoneNumbersClient()
Protected parameterless constructor to allow creation of test doubles.
PhoneNumbersClient(CallInvoker)
public PhoneNumbersClient(CallInvoker callInvoker)
Creates a new client for PhoneNumbers that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker |
CallInvoker The callInvoker to use to make remote calls. |
PhoneNumbersClient(ChannelBase)
public PhoneNumbersClient(ChannelBase channel)
Creates a new client for PhoneNumbers
Parameter | |
---|---|
Name | Description |
channel |
ChannelBase The channel to use to make remote calls. |
PhoneNumbersClient(ClientBaseConfiguration)
protected PhoneNumbersClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration |
ClientBaseClientBaseConfiguration The client configuration. |
Methods
CreateLocationsClient()
public virtual Locations.LocationsClient CreateLocationsClient()
Creates a new instance of Locations.LocationsClient using the same call invoker as this client.
Returns | |
---|---|
Type | Description |
LocationsLocationsClient |
A new Locations.LocationsClient for the same target as this client. |
DeletePhoneNumber(DeletePhoneNumberRequest, CallOptions)
public virtual PhoneNumber DeletePhoneNumber(DeletePhoneNumberRequest request, CallOptions options)
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 to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
PhoneNumber |
The response received from the server. |
DeletePhoneNumber(DeletePhoneNumberRequest, Metadata, DateTime?, CancellationToken)
public virtual PhoneNumber DeletePhoneNumber(DeletePhoneNumberRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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 to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
PhoneNumber |
The response received from the server. |
DeletePhoneNumberAsync(DeletePhoneNumberRequest, CallOptions)
public virtual AsyncUnaryCall<PhoneNumber> DeletePhoneNumberAsync(DeletePhoneNumberRequest request, CallOptions options)
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 to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallPhoneNumber |
The call object. |
DeletePhoneNumberAsync(DeletePhoneNumberRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<PhoneNumber> DeletePhoneNumberAsync(DeletePhoneNumberRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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 to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallPhoneNumber |
The call object. |
ListPhoneNumbers(ListPhoneNumbersRequest, CallOptions)
public virtual ListPhoneNumbersResponse ListPhoneNumbers(ListPhoneNumbersRequest request, CallOptions options)
Returns the list of all phone numbers in the specified project.
Parameters | |
---|---|
Name | Description |
request |
ListPhoneNumbersRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
ListPhoneNumbersResponse |
The response received from the server. |
ListPhoneNumbers(ListPhoneNumbersRequest, Metadata, DateTime?, CancellationToken)
public virtual ListPhoneNumbersResponse ListPhoneNumbers(ListPhoneNumbersRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Returns the list of all phone numbers in the specified project.
Parameters | |
---|---|
Name | Description |
request |
ListPhoneNumbersRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
ListPhoneNumbersResponse |
The response received from the server. |
ListPhoneNumbersAsync(ListPhoneNumbersRequest, CallOptions)
public virtual AsyncUnaryCall<ListPhoneNumbersResponse> ListPhoneNumbersAsync(ListPhoneNumbersRequest request, CallOptions options)
Returns the list of all phone numbers in the specified project.
Parameters | |
---|---|
Name | Description |
request |
ListPhoneNumbersRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallListPhoneNumbersResponse |
The call object. |
ListPhoneNumbersAsync(ListPhoneNumbersRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<ListPhoneNumbersResponse> ListPhoneNumbersAsync(ListPhoneNumbersRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Returns the list of all phone numbers in the specified project.
Parameters | |
---|---|
Name | Description |
request |
ListPhoneNumbersRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallListPhoneNumbersResponse |
The call object. |
NewInstance(ClientBaseConfiguration)
protected override PhoneNumbers.PhoneNumbersClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration |
ClientBaseClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
PhoneNumbersPhoneNumbersClient |
UndeletePhoneNumber(UndeletePhoneNumberRequest, CallOptions)
public virtual PhoneNumber UndeletePhoneNumber(UndeletePhoneNumberRequest request, CallOptions options)
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 to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
PhoneNumber |
The response received from the server. |
UndeletePhoneNumber(UndeletePhoneNumberRequest, Metadata, DateTime?, CancellationToken)
public virtual PhoneNumber UndeletePhoneNumber(UndeletePhoneNumberRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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 to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
PhoneNumber |
The response received from the server. |
UndeletePhoneNumberAsync(UndeletePhoneNumberRequest, CallOptions)
public virtual AsyncUnaryCall<PhoneNumber> UndeletePhoneNumberAsync(UndeletePhoneNumberRequest request, CallOptions options)
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 to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallPhoneNumber |
The call object. |
UndeletePhoneNumberAsync(UndeletePhoneNumberRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<PhoneNumber> UndeletePhoneNumberAsync(UndeletePhoneNumberRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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 to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallPhoneNumber |
The call object. |
UpdatePhoneNumber(UpdatePhoneNumberRequest, CallOptions)
public virtual PhoneNumber UpdatePhoneNumber(UpdatePhoneNumberRequest request, CallOptions options)
Updates the specified PhoneNumber
.
Parameters | |
---|---|
Name | Description |
request |
UpdatePhoneNumberRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
PhoneNumber |
The response received from the server. |
UpdatePhoneNumber(UpdatePhoneNumberRequest, Metadata, DateTime?, CancellationToken)
public virtual PhoneNumber UpdatePhoneNumber(UpdatePhoneNumberRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Updates the specified PhoneNumber
.
Parameters | |
---|---|
Name | Description |
request |
UpdatePhoneNumberRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
PhoneNumber |
The response received from the server. |
UpdatePhoneNumberAsync(UpdatePhoneNumberRequest, CallOptions)
public virtual AsyncUnaryCall<PhoneNumber> UpdatePhoneNumberAsync(UpdatePhoneNumberRequest request, CallOptions options)
Updates the specified PhoneNumber
.
Parameters | |
---|---|
Name | Description |
request |
UpdatePhoneNumberRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallPhoneNumber |
The call object. |
UpdatePhoneNumberAsync(UpdatePhoneNumberRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<PhoneNumber> UpdatePhoneNumberAsync(UpdatePhoneNumberRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Updates the specified PhoneNumber
.
Parameters | |
---|---|
Name | Description |
request |
UpdatePhoneNumberRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallPhoneNumber |
The call object. |