public class AnswerRecordsClient : ClientBase<AnswerRecords.AnswerRecordsClient>Client for AnswerRecords
Inheritance
Object > ClientBase > ClientBase<AnswerRecords.AnswerRecordsClient> > AnswerRecords.AnswerRecordsClientNamespace
Google.Cloud.Dialogflow.V2Assembly
Google.Cloud.Dialogflow.V2.dll
Constructors
AnswerRecordsClient()
protected AnswerRecordsClient()Protected parameterless constructor to allow creation of test doubles.
AnswerRecordsClient(CallInvoker)
public AnswerRecordsClient(CallInvoker callInvoker)Creates a new client for AnswerRecords that uses a custom CallInvoker.
| Parameter | |
|---|---|
| Name | Description |
callInvoker |
CallInvokerThe callInvoker to use to make remote calls. |
AnswerRecordsClient(ChannelBase)
public AnswerRecordsClient(ChannelBase channel)Creates a new client for AnswerRecords
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe channel to use to make remote calls. |
AnswerRecordsClient(ClientBase.ClientBaseConfiguration)
protected AnswerRecordsClient(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBase.ClientBaseConfigurationThe 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 |
Locations.LocationsClient |
A new Locations.LocationsClient for the same target as this client. |
ListAnswerRecords(ListAnswerRecordsRequest, CallOptions)
public virtual ListAnswerRecordsResponse ListAnswerRecords(ListAnswerRecordsRequest request, CallOptions options)Returns the list of all answer records in the specified project in reverse chronological order.
| Parameters | |
|---|---|
| Name | Description |
request |
ListAnswerRecordsRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
ListAnswerRecordsResponse |
The response received from the server. |
ListAnswerRecords(ListAnswerRecordsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual ListAnswerRecordsResponse ListAnswerRecords(ListAnswerRecordsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))Returns the list of all answer records in the specified project in reverse chronological order.
| Parameters | |
|---|---|
| Name | Description |
request |
ListAnswerRecordsRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
ListAnswerRecordsResponse |
The response received from the server. |
ListAnswerRecordsAsync(ListAnswerRecordsRequest, CallOptions)
public virtual AsyncUnaryCall<ListAnswerRecordsResponse> ListAnswerRecordsAsync(ListAnswerRecordsRequest request, CallOptions options)Returns the list of all answer records in the specified project in reverse chronological order.
| Parameters | |
|---|---|
| Name | Description |
request |
ListAnswerRecordsRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<ListAnswerRecordsResponse> |
The call object. |
ListAnswerRecordsAsync(ListAnswerRecordsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<ListAnswerRecordsResponse> ListAnswerRecordsAsync(ListAnswerRecordsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))Returns the list of all answer records in the specified project in reverse chronological order.
| Parameters | |
|---|---|
| Name | Description |
request |
ListAnswerRecordsRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<ListAnswerRecordsResponse> |
The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override AnswerRecords.AnswerRecordsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBase.ClientBaseConfiguration |
| Returns | |
|---|---|
| Type | Description |
AnswerRecords.AnswerRecordsClient |
|
UpdateAnswerRecord(UpdateAnswerRecordRequest, CallOptions)
public virtual AnswerRecord UpdateAnswerRecord(UpdateAnswerRecordRequest request, CallOptions options)Updates the specified answer record.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateAnswerRecordRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AnswerRecord |
The response received from the server. |
UpdateAnswerRecord(UpdateAnswerRecordRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AnswerRecord UpdateAnswerRecord(UpdateAnswerRecordRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))Updates the specified answer record.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateAnswerRecordRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AnswerRecord |
The response received from the server. |
UpdateAnswerRecordAsync(UpdateAnswerRecordRequest, CallOptions)
public virtual AsyncUnaryCall<AnswerRecord> UpdateAnswerRecordAsync(UpdateAnswerRecordRequest request, CallOptions options)Updates the specified answer record.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateAnswerRecordRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<AnswerRecord> |
The call object. |
UpdateAnswerRecordAsync(UpdateAnswerRecordRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<AnswerRecord> UpdateAnswerRecordAsync(UpdateAnswerRecordRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))Updates the specified answer record.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateAnswerRecordRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<AnswerRecord> |
The call object. |