public sealed class TestCasesClientImpl : TestCasesClientReference documentation and code samples for the Dialogflow v3 API class TestCasesClientImpl.
TestCases client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Dialogflow.Cx.V3Assembly
Google.Cloud.Dialogflow.Cx.V3.dll
Remarks
Service for managing [Test Cases][google.cloud.dialogflow.cx.v3.TestCase] and [Test Case Results][google.cloud.dialogflow.cx.v3.TestCaseResult].
Constructors
TestCasesClientImpl(TestCasesClient, TestCasesSettings, ILogger)
public TestCasesClientImpl(TestCases.TestCasesClient grpcClient, TestCasesSettings settings, ILogger logger)Constructs a client wrapper for the TestCases service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
TestCasesTestCasesClientThe underlying gRPC client. |
settings |
TestCasesSettingsThe base TestCasesSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
BatchRunTestCasesOperationsClient
public override OperationsClient BatchRunTestCasesOperationsClient { get; }The long-running operations client for BatchRunTestCases.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
ExportTestCasesOperationsClient
public override OperationsClient ExportTestCasesOperationsClient { get; }The long-running operations client for ExportTestCases.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public override TestCases.TestCasesClient GrpcClient { get; }The underlying gRPC TestCases client
| Property Value | |
|---|---|
| Type | Description |
TestCasesTestCasesClient |
|
ImportTestCasesOperationsClient
public override OperationsClient ImportTestCasesOperationsClient { get; }The long-running operations client for ImportTestCases.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
LocationsClient
public override LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
RunTestCaseOperationsClient
public override OperationsClient RunTestCaseOperationsClient { get; }The long-running operations client for RunTestCase.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
Methods
BatchDeleteTestCases(BatchDeleteTestCasesRequest, CallSettings)
public override void BatchDeleteTestCases(BatchDeleteTestCasesRequest request, CallSettings callSettings = null)Batch deletes test cases.
| Parameters | |
|---|---|
| Name | Description |
request |
BatchDeleteTestCasesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
BatchDeleteTestCasesAsync(BatchDeleteTestCasesRequest, CallSettings)
public override Task BatchDeleteTestCasesAsync(BatchDeleteTestCasesRequest request, CallSettings callSettings = null)Batch deletes test cases.
| Parameters | |
|---|---|
| Name | Description |
request |
BatchDeleteTestCasesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
BatchRunTestCases(BatchRunTestCasesRequest, CallSettings)
public override Operation<BatchRunTestCasesResponse, BatchRunTestCasesMetadata> BatchRunTestCases(BatchRunTestCasesRequest request, CallSettings callSettings = null)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 |
BatchRunTestCasesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBatchRunTestCasesResponseBatchRunTestCasesMetadata |
The RPC response. |
BatchRunTestCasesAsync(BatchRunTestCasesRequest, CallSettings)
public override Task<Operation<BatchRunTestCasesResponse, BatchRunTestCasesMetadata>> BatchRunTestCasesAsync(BatchRunTestCasesRequest request, CallSettings callSettings = null)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 |
BatchRunTestCasesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBatchRunTestCasesResponseBatchRunTestCasesMetadata |
A Task containing the RPC response. |
CalculateCoverage(CalculateCoverageRequest, CallSettings)
public override CalculateCoverageResponse CalculateCoverage(CalculateCoverageRequest request, CallSettings callSettings = null)Calculates the test coverage for an agent.
| Parameters | |
|---|---|
| Name | Description |
request |
CalculateCoverageRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
CalculateCoverageResponse |
The RPC response. |
CalculateCoverageAsync(CalculateCoverageRequest, CallSettings)
public override Task<CalculateCoverageResponse> CalculateCoverageAsync(CalculateCoverageRequest request, CallSettings callSettings = null)Calculates the test coverage for an agent.
| Parameters | |
|---|---|
| Name | Description |
request |
CalculateCoverageRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskCalculateCoverageResponse |
A Task containing the RPC response. |
CreateTestCase(CreateTestCaseRequest, CallSettings)
public override TestCase CreateTestCase(CreateTestCaseRequest request, CallSettings callSettings = null)Creates a test case for the given agent.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateTestCaseRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TestCase |
The RPC response. |
CreateTestCaseAsync(CreateTestCaseRequest, CallSettings)
public override Task<TestCase> CreateTestCaseAsync(CreateTestCaseRequest request, CallSettings callSettings = null)Creates a test case for the given agent.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateTestCaseRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTestCase |
A Task containing the RPC response. |
ExportTestCases(ExportTestCasesRequest, CallSettings)
public override Operation<ExportTestCasesResponse, ExportTestCasesMetadata> ExportTestCases(ExportTestCasesRequest request, CallSettings callSettings = null)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 |
ExportTestCasesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationExportTestCasesResponseExportTestCasesMetadata |
The RPC response. |
ExportTestCasesAsync(ExportTestCasesRequest, CallSettings)
public override Task<Operation<ExportTestCasesResponse, ExportTestCasesMetadata>> ExportTestCasesAsync(ExportTestCasesRequest request, CallSettings callSettings = null)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 |
ExportTestCasesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationExportTestCasesResponseExportTestCasesMetadata |
A Task containing the RPC response. |
GetTestCase(GetTestCaseRequest, CallSettings)
public override TestCase GetTestCase(GetTestCaseRequest request, CallSettings callSettings = null)Gets a test case.
| Parameters | |
|---|---|
| Name | Description |
request |
GetTestCaseRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TestCase |
The RPC response. |
GetTestCaseAsync(GetTestCaseRequest, CallSettings)
public override Task<TestCase> GetTestCaseAsync(GetTestCaseRequest request, CallSettings callSettings = null)Gets a test case.
| Parameters | |
|---|---|
| Name | Description |
request |
GetTestCaseRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTestCase |
A Task containing the RPC response. |
GetTestCaseResult(GetTestCaseResultRequest, CallSettings)
public override TestCaseResult GetTestCaseResult(GetTestCaseResultRequest request, CallSettings callSettings = null)Gets a test case result.
| Parameters | |
|---|---|
| Name | Description |
request |
GetTestCaseResultRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TestCaseResult |
The RPC response. |
GetTestCaseResultAsync(GetTestCaseResultRequest, CallSettings)
public override Task<TestCaseResult> GetTestCaseResultAsync(GetTestCaseResultRequest request, CallSettings callSettings = null)Gets a test case result.
| Parameters | |
|---|---|
| Name | Description |
request |
GetTestCaseResultRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTestCaseResult |
A Task containing the RPC response. |
ImportTestCases(ImportTestCasesRequest, CallSettings)
public override Operation<ImportTestCasesResponse, ImportTestCasesMetadata> ImportTestCases(ImportTestCasesRequest request, CallSettings callSettings = null)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 |
ImportTestCasesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationImportTestCasesResponseImportTestCasesMetadata |
The RPC response. |
ImportTestCasesAsync(ImportTestCasesRequest, CallSettings)
public override Task<Operation<ImportTestCasesResponse, ImportTestCasesMetadata>> ImportTestCasesAsync(ImportTestCasesRequest request, CallSettings callSettings = null)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 |
ImportTestCasesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationImportTestCasesResponseImportTestCasesMetadata |
A Task containing the RPC response. |
ListTestCaseResults(ListTestCaseResultsRequest, CallSettings)
public override PagedEnumerable<ListTestCaseResultsResponse, TestCaseResult> ListTestCaseResults(ListTestCaseResultsRequest request, CallSettings callSettings = null)Fetches the list of run results for the given test case. A maximum of 100 results are kept for each test case.
| Parameters | |
|---|---|
| Name | Description |
request |
ListTestCaseResultsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListTestCaseResultsResponseTestCaseResult |
A pageable sequence of TestCaseResult resources. |
ListTestCaseResultsAsync(ListTestCaseResultsRequest, CallSettings)
public override PagedAsyncEnumerable<ListTestCaseResultsResponse, TestCaseResult> ListTestCaseResultsAsync(ListTestCaseResultsRequest request, CallSettings callSettings = null)Fetches the list of run results for the given test case. A maximum of 100 results are kept for each test case.
| Parameters | |
|---|---|
| Name | Description |
request |
ListTestCaseResultsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListTestCaseResultsResponseTestCaseResult |
A pageable asynchronous sequence of TestCaseResult resources. |
ListTestCases(ListTestCasesRequest, CallSettings)
public override PagedEnumerable<ListTestCasesResponse, TestCase> ListTestCases(ListTestCasesRequest request, CallSettings callSettings = null)Fetches a list of test cases for a given agent.
| Parameters | |
|---|---|
| Name | Description |
request |
ListTestCasesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListTestCasesResponseTestCase |
A pageable sequence of TestCase resources. |
ListTestCasesAsync(ListTestCasesRequest, CallSettings)
public override PagedAsyncEnumerable<ListTestCasesResponse, TestCase> ListTestCasesAsync(ListTestCasesRequest request, CallSettings callSettings = null)Fetches a list of test cases for a given agent.
| Parameters | |
|---|---|
| Name | Description |
request |
ListTestCasesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListTestCasesResponseTestCase |
A pageable asynchronous sequence of TestCase resources. |
RunTestCase(RunTestCaseRequest, CallSettings)
public override Operation<RunTestCaseResponse, RunTestCaseMetadata> RunTestCase(RunTestCaseRequest request, CallSettings callSettings = null)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 |
RunTestCaseRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRunTestCaseResponseRunTestCaseMetadata |
The RPC response. |
RunTestCaseAsync(RunTestCaseRequest, CallSettings)
public override Task<Operation<RunTestCaseResponse, RunTestCaseMetadata>> RunTestCaseAsync(RunTestCaseRequest request, CallSettings callSettings = null)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 |
RunTestCaseRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRunTestCaseResponseRunTestCaseMetadata |
A Task containing the RPC response. |
UpdateTestCase(UpdateTestCaseRequest, CallSettings)
public override TestCase UpdateTestCase(UpdateTestCaseRequest request, CallSettings callSettings = null)Updates the specified test case.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateTestCaseRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TestCase |
The RPC response. |
UpdateTestCaseAsync(UpdateTestCaseRequest, CallSettings)
public override Task<TestCase> UpdateTestCaseAsync(UpdateTestCaseRequest request, CallSettings callSettings = null)Updates the specified test case.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateTestCaseRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTestCase |
A Task containing the RPC response. |