public class TestCasesClient : ClientBase<TestCases.TestCasesClient>
Client for TestCases
Namespace
Google.Cloud.Dialogflow.Cx.V3Assembly
Google.Cloud.Dialogflow.Cx.V3.dll
Constructors
TestCasesClient()
protected TestCasesClient()
Protected parameterless constructor to allow creation of test doubles.
TestCasesClient(CallInvoker)
public TestCasesClient(CallInvoker callInvoker)
Creates a new client for TestCases that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker | CallInvoker The callInvoker to use to make remote calls. |
TestCasesClient(ChannelBase)
public TestCasesClient(ChannelBase channel)
Creates a new client for TestCases
Parameter | |
---|---|
Name | Description |
channel | ChannelBase The channel to use to make remote calls. |
TestCasesClient(ClientBase.ClientBaseConfiguration)
protected TestCasesClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration The client configuration. |
Methods
BatchDeleteTestCases(BatchDeleteTestCasesRequest, CallOptions)
public virtual Empty BatchDeleteTestCases(BatchDeleteTestCasesRequest request, CallOptions options)
Batch deletes test cases.
Parameters | |
---|---|
Name | Description |
request | BatchDeleteTestCasesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Empty | The response received from the server. |
BatchDeleteTestCases(BatchDeleteTestCasesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Empty BatchDeleteTestCases(BatchDeleteTestCasesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Batch deletes test cases.
Parameters | |
---|---|
Name | Description |
request | BatchDeleteTestCasesRequest The request to send to the server. |
headers | Metadata The 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 | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Empty | The response received from the server. |
BatchDeleteTestCasesAsync(BatchDeleteTestCasesRequest, CallOptions)
public virtual AsyncUnaryCall<Empty> BatchDeleteTestCasesAsync(BatchDeleteTestCasesRequest request, CallOptions options)
Batch deletes test cases.
Parameters | |
---|---|
Name | Description |
request | BatchDeleteTestCasesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Empty> | The call object. |
BatchDeleteTestCasesAsync(BatchDeleteTestCasesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Empty> BatchDeleteTestCasesAsync(BatchDeleteTestCasesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Batch deletes test cases.
Parameters | |
---|---|
Name | Description |
request | BatchDeleteTestCasesRequest The request to send to the server. |
headers | Metadata The 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 | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Empty> | The call object. |
BatchRunTestCases(BatchRunTestCasesRequest, CallOptions)
public virtual Operation BatchRunTestCases(BatchRunTestCasesRequest request, CallOptions options)
Kicks off a batch run of test cases.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata]response
: [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse]
Parameters | |
---|---|
Name | Description |
request | BatchRunTestCasesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
BatchRunTestCases(BatchRunTestCasesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation BatchRunTestCases(BatchRunTestCasesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Kicks off a batch run of test cases.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata]response
: [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse]
Parameters | |
---|---|
Name | Description |
request | BatchRunTestCasesRequest The request to send to the server. |
headers | Metadata The 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 | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
BatchRunTestCasesAsync(BatchRunTestCasesRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> BatchRunTestCasesAsync(BatchRunTestCasesRequest request, CallOptions options)
Kicks off a batch run of test cases.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata]response
: [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse]
Parameters | |
---|---|
Name | Description |
request | BatchRunTestCasesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
BatchRunTestCasesAsync(BatchRunTestCasesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> BatchRunTestCasesAsync(BatchRunTestCasesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Kicks off a batch run of test cases.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata]response
: [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse]
Parameters | |
---|---|
Name | Description |
request | BatchRunTestCasesRequest The request to send to the server. |
headers | Metadata The 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 | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
CalculateCoverage(CalculateCoverageRequest, CallOptions)
public virtual CalculateCoverageResponse CalculateCoverage(CalculateCoverageRequest request, CallOptions options)
Calculates the test coverage for an agent.
Parameters | |
---|---|
Name | Description |
request | CalculateCoverageRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
CalculateCoverageResponse | The response received from the server. |
CalculateCoverage(CalculateCoverageRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual CalculateCoverageResponse CalculateCoverage(CalculateCoverageRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Calculates the test coverage for an agent.
Parameters | |
---|---|
Name | Description |
request | CalculateCoverageRequest The request to send to the server. |
headers | Metadata The 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 | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
CalculateCoverageResponse | The response received from the server. |
CalculateCoverageAsync(CalculateCoverageRequest, CallOptions)
public virtual AsyncUnaryCall<CalculateCoverageResponse> CalculateCoverageAsync(CalculateCoverageRequest request, CallOptions options)
Calculates the test coverage for an agent.
Parameters | |
---|---|
Name | Description |
request | CalculateCoverageRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<CalculateCoverageResponse> | The call object. |
CalculateCoverageAsync(CalculateCoverageRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<CalculateCoverageResponse> CalculateCoverageAsync(CalculateCoverageRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Calculates the test coverage for an agent.
Parameters | |
---|---|
Name | Description |
request | CalculateCoverageRequest The request to send to the server. |
headers | Metadata The 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 | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<CalculateCoverageResponse> | The call object. |
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. |
CreateOperationsClient()
public virtual Operations.OperationsClient CreateOperationsClient()
Creates a new instance of Operations.OperationsClient using the same call invoker as this client.
Returns | |
---|---|
Type | Description |
Operations.OperationsClient | A new Operations client for the same target as this client. |
CreateTestCase(CreateTestCaseRequest, CallOptions)
public virtual TestCase CreateTestCase(CreateTestCaseRequest request, CallOptions options)
Creates a test case for the given agent.
Parameters | |
---|---|
Name | Description |
request | CreateTestCaseRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
TestCase | The response received from the server. |
CreateTestCase(CreateTestCaseRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual TestCase CreateTestCase(CreateTestCaseRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Creates a test case for the given agent.
Parameters | |
---|---|
Name | Description |
request | CreateTestCaseRequest The request to send to the server. |
headers | Metadata The 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 | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
TestCase | The response received from the server. |
CreateTestCaseAsync(CreateTestCaseRequest, CallOptions)
public virtual AsyncUnaryCall<TestCase> CreateTestCaseAsync(CreateTestCaseRequest request, CallOptions options)
Creates a test case for the given agent.
Parameters | |
---|---|
Name | Description |
request | CreateTestCaseRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<TestCase> | The call object. |
CreateTestCaseAsync(CreateTestCaseRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<TestCase> CreateTestCaseAsync(CreateTestCaseRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Creates a test case for the given agent.
Parameters | |
---|---|
Name | Description |
request | CreateTestCaseRequest The request to send to the server. |
headers | Metadata The 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 | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<TestCase> | The call object. |
ExportTestCases(ExportTestCasesRequest, CallOptions)
public virtual Operation ExportTestCases(ExportTestCasesRequest request, CallOptions options)
Exports the test cases under the agent to a Cloud Storage bucket or a local file. Filter can be applied to export a subset of test cases.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata]response
: [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3.ExportTestCasesResponse]
Parameters | |
---|---|
Name | Description |
request | ExportTestCasesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
ExportTestCases(ExportTestCasesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation ExportTestCases(ExportTestCasesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Exports the test cases under the agent to a Cloud Storage bucket or a local file. Filter can be applied to export a subset of test cases.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata]response
: [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3.ExportTestCasesResponse]
Parameters | |
---|---|
Name | Description |
request | ExportTestCasesRequest The request to send to the server. |
headers | Metadata The 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 | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
ExportTestCasesAsync(ExportTestCasesRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> ExportTestCasesAsync(ExportTestCasesRequest request, CallOptions options)
Exports the test cases under the agent to a Cloud Storage bucket or a local file. Filter can be applied to export a subset of test cases.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata]response
: [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3.ExportTestCasesResponse]
Parameters | |
---|---|
Name | Description |
request | ExportTestCasesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
ExportTestCasesAsync(ExportTestCasesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> ExportTestCasesAsync(ExportTestCasesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Exports the test cases under the agent to a Cloud Storage bucket or a local file. Filter can be applied to export a subset of test cases.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata]response
: [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3.ExportTestCasesResponse]
Parameters | |
---|---|
Name | Description |
request | ExportTestCasesRequest The request to send to the server. |
headers | Metadata The 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 | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
GetTestCase(GetTestCaseRequest, CallOptions)
public virtual TestCase GetTestCase(GetTestCaseRequest request, CallOptions options)
Gets a test case.
Parameters | |
---|---|
Name | Description |
request | GetTestCaseRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
TestCase | The response received from the server. |
GetTestCase(GetTestCaseRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual TestCase GetTestCase(GetTestCaseRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Gets a test case.
Parameters | |
---|---|
Name | Description |
request | GetTestCaseRequest The request to send to the server. |
headers | Metadata The 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 | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
TestCase | The response received from the server. |
GetTestCaseAsync(GetTestCaseRequest, CallOptions)
public virtual AsyncUnaryCall<TestCase> GetTestCaseAsync(GetTestCaseRequest request, CallOptions options)
Gets a test case.
Parameters | |
---|---|
Name | Description |
request | GetTestCaseRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<TestCase> | The call object. |
GetTestCaseAsync(GetTestCaseRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<TestCase> GetTestCaseAsync(GetTestCaseRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Gets a test case.
Parameters | |
---|---|
Name | Description |
request | GetTestCaseRequest The request to send to the server. |
headers | Metadata The 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 | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<TestCase> | The call object. |
GetTestCaseResult(GetTestCaseResultRequest, CallOptions)
public virtual TestCaseResult GetTestCaseResult(GetTestCaseResultRequest request, CallOptions options)
Gets a test case result.
Parameters | |
---|---|
Name | Description |
request | GetTestCaseResultRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
TestCaseResult | The response received from the server. |
GetTestCaseResult(GetTestCaseResultRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual TestCaseResult GetTestCaseResult(GetTestCaseResultRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Gets a test case result.
Parameters | |
---|---|
Name | Description |
request | GetTestCaseResultRequest The request to send to the server. |
headers | Metadata The 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 | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
TestCaseResult | The response received from the server. |
GetTestCaseResultAsync(GetTestCaseResultRequest, CallOptions)
public virtual AsyncUnaryCall<TestCaseResult> GetTestCaseResultAsync(GetTestCaseResultRequest request, CallOptions options)
Gets a test case result.
Parameters | |
---|---|
Name | Description |
request | GetTestCaseResultRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<TestCaseResult> | The call object. |
GetTestCaseResultAsync(GetTestCaseResultRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<TestCaseResult> GetTestCaseResultAsync(GetTestCaseResultRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Gets a test case result.
Parameters | |
---|---|
Name | Description |
request | GetTestCaseResultRequest The request to send to the server. |
headers | Metadata The 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 | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<TestCaseResult> | The call object. |
ImportTestCases(ImportTestCasesRequest, CallOptions)
public virtual Operation ImportTestCases(ImportTestCasesRequest request, CallOptions options)
Imports the test cases from a Cloud Storage bucket or a local file. It always creates new test cases and won't overwrite any existing ones. The provided ID in the imported test case is neglected.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata]response
: [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3.ImportTestCasesResponse]
Parameters | |
---|---|
Name | Description |
request | ImportTestCasesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
ImportTestCases(ImportTestCasesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation ImportTestCases(ImportTestCasesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Imports the test cases from a Cloud Storage bucket or a local file. It always creates new test cases and won't overwrite any existing ones. The provided ID in the imported test case is neglected.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata]response
: [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3.ImportTestCasesResponse]
Parameters | |
---|---|
Name | Description |
request | ImportTestCasesRequest The request to send to the server. |
headers | Metadata The 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 | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
ImportTestCasesAsync(ImportTestCasesRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> ImportTestCasesAsync(ImportTestCasesRequest request, CallOptions options)
Imports the test cases from a Cloud Storage bucket or a local file. It always creates new test cases and won't overwrite any existing ones. The provided ID in the imported test case is neglected.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata]response
: [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3.ImportTestCasesResponse]
Parameters | |
---|---|
Name | Description |
request | ImportTestCasesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
ImportTestCasesAsync(ImportTestCasesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> ImportTestCasesAsync(ImportTestCasesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Imports the test cases from a Cloud Storage bucket or a local file. It always creates new test cases and won't overwrite any existing ones. The provided ID in the imported test case is neglected.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata]response
: [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3.ImportTestCasesResponse]
Parameters | |
---|---|
Name | Description |
request | ImportTestCasesRequest The request to send to the server. |
headers | Metadata The 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 | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
ListTestCaseResults(ListTestCaseResultsRequest, CallOptions)
public virtual ListTestCaseResultsResponse ListTestCaseResults(ListTestCaseResultsRequest request, CallOptions options)
Fetches a list of results for a given test case.
Parameters | |
---|---|
Name | Description |
request | ListTestCaseResultsRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
ListTestCaseResultsResponse | The response received from the server. |
ListTestCaseResults(ListTestCaseResultsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual ListTestCaseResultsResponse ListTestCaseResults(ListTestCaseResultsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Fetches a list of results for a given test case.
Parameters | |
---|---|
Name | Description |
request | ListTestCaseResultsRequest The request to send to the server. |
headers | Metadata The 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 | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
ListTestCaseResultsResponse | The response received from the server. |
ListTestCaseResultsAsync(ListTestCaseResultsRequest, CallOptions)
public virtual AsyncUnaryCall<ListTestCaseResultsResponse> ListTestCaseResultsAsync(ListTestCaseResultsRequest request, CallOptions options)
Fetches a list of results for a given test case.
Parameters | |
---|---|
Name | Description |
request | ListTestCaseResultsRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<ListTestCaseResultsResponse> | The call object. |
ListTestCaseResultsAsync(ListTestCaseResultsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<ListTestCaseResultsResponse> ListTestCaseResultsAsync(ListTestCaseResultsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Fetches a list of results for a given test case.
Parameters | |
---|---|
Name | Description |
request | ListTestCaseResultsRequest The request to send to the server. |
headers | Metadata The 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 | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<ListTestCaseResultsResponse> | The call object. |
ListTestCases(ListTestCasesRequest, CallOptions)
public virtual ListTestCasesResponse ListTestCases(ListTestCasesRequest request, CallOptions options)
Fetches a list of test cases for a given agent.
Parameters | |
---|---|
Name | Description |
request | ListTestCasesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
ListTestCasesResponse | The response received from the server. |
ListTestCases(ListTestCasesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual ListTestCasesResponse ListTestCases(ListTestCasesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Fetches a list of test cases for a given agent.
Parameters | |
---|---|
Name | Description |
request | ListTestCasesRequest The request to send to the server. |
headers | Metadata The 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 | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
ListTestCasesResponse | The response received from the server. |
ListTestCasesAsync(ListTestCasesRequest, CallOptions)
public virtual AsyncUnaryCall<ListTestCasesResponse> ListTestCasesAsync(ListTestCasesRequest request, CallOptions options)
Fetches a list of test cases for a given agent.
Parameters | |
---|---|
Name | Description |
request | ListTestCasesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<ListTestCasesResponse> | The call object. |
ListTestCasesAsync(ListTestCasesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<ListTestCasesResponse> ListTestCasesAsync(ListTestCasesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Fetches a list of test cases for a given agent.
Parameters | |
---|---|
Name | Description |
request | ListTestCasesRequest The request to send to the server. |
headers | Metadata The 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 | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<ListTestCasesResponse> | The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override TestCases.TestCasesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
TestCases.TestCasesClient |
RunTestCase(RunTestCaseRequest, CallOptions)
public virtual Operation RunTestCase(RunTestCaseRequest request, CallOptions options)
Kicks off a test case run.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: [RunTestCaseMetadata][google.cloud.dialogflow.cx.v3.RunTestCaseMetadata]response
: [RunTestCaseResponse][google.cloud.dialogflow.cx.v3.RunTestCaseResponse]
Parameters | |
---|---|
Name | Description |
request | RunTestCaseRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
RunTestCase(RunTestCaseRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation RunTestCase(RunTestCaseRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Kicks off a test case run.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: [RunTestCaseMetadata][google.cloud.dialogflow.cx.v3.RunTestCaseMetadata]response
: [RunTestCaseResponse][google.cloud.dialogflow.cx.v3.RunTestCaseResponse]
Parameters | |
---|---|
Name | Description |
request | RunTestCaseRequest The request to send to the server. |
headers | Metadata The 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 | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
RunTestCaseAsync(RunTestCaseRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> RunTestCaseAsync(RunTestCaseRequest request, CallOptions options)
Kicks off a test case run.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: [RunTestCaseMetadata][google.cloud.dialogflow.cx.v3.RunTestCaseMetadata]response
: [RunTestCaseResponse][google.cloud.dialogflow.cx.v3.RunTestCaseResponse]
Parameters | |
---|---|
Name | Description |
request | RunTestCaseRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
RunTestCaseAsync(RunTestCaseRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> RunTestCaseAsync(RunTestCaseRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Kicks off a test case run.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: [RunTestCaseMetadata][google.cloud.dialogflow.cx.v3.RunTestCaseMetadata]response
: [RunTestCaseResponse][google.cloud.dialogflow.cx.v3.RunTestCaseResponse]
Parameters | |
---|---|
Name | Description |
request | RunTestCaseRequest The request to send to the server. |
headers | Metadata The 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 | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
UpdateTestCase(UpdateTestCaseRequest, CallOptions)
public virtual TestCase UpdateTestCase(UpdateTestCaseRequest request, CallOptions options)
Updates the specified test case.
Parameters | |
---|---|
Name | Description |
request | UpdateTestCaseRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
TestCase | The response received from the server. |
UpdateTestCase(UpdateTestCaseRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual TestCase UpdateTestCase(UpdateTestCaseRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Updates the specified test case.
Parameters | |
---|---|
Name | Description |
request | UpdateTestCaseRequest The request to send to the server. |
headers | Metadata The 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 | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
TestCase | The response received from the server. |
UpdateTestCaseAsync(UpdateTestCaseRequest, CallOptions)
public virtual AsyncUnaryCall<TestCase> UpdateTestCaseAsync(UpdateTestCaseRequest request, CallOptions options)
Updates the specified test case.
Parameters | |
---|---|
Name | Description |
request | UpdateTestCaseRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<TestCase> | The call object. |
UpdateTestCaseAsync(UpdateTestCaseRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<TestCase> UpdateTestCaseAsync(UpdateTestCaseRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Updates the specified test case.
Parameters | |
---|---|
Name | Description |
request | UpdateTestCaseRequest The request to send to the server. |
headers | Metadata The 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 | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<TestCase> | The call object. |