public sealed class TestCasesClientImpl : TestCasesClient
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(TestCases.TestCasesClient, TestCasesSettings)
public TestCasesClientImpl(TestCases.TestCasesClient grpcClient, TestCasesSettings settings)
Constructs a client wrapper for the TestCases service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | TestCases.TestCasesClient The underlying gRPC client. |
settings | TestCasesSettings The base TestCasesSettings used 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 |
TestCases.TestCasesClient |
ImportTestCasesOperationsClient
public override OperationsClient ImportTestCasesOperationsClient { get; }
The long-running operations client for ImportTestCases
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
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 | BatchDeleteTestCasesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | BatchDeleteTestCasesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | BatchRunTestCasesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<BatchRunTestCasesResponse, BatchRunTestCasesMetadata> | The RPC response. |
BatchRunTestCasesAsync(BatchRunTestCasesRequest, CallSettings)
public override async 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 | BatchRunTestCasesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<BatchRunTestCasesResponse, BatchRunTestCasesMetadata>> | 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 | CalculateCoverageRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | CalculateCoverageRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<CalculateCoverageResponse> | 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 | CreateTestCaseRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | CreateTestCaseRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<TestCase> | 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 | ExportTestCasesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<ExportTestCasesResponse, ExportTestCasesMetadata> | The RPC response. |
ExportTestCasesAsync(ExportTestCasesRequest, CallSettings)
public override async 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 | ExportTestCasesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<ExportTestCasesResponse, ExportTestCasesMetadata>> | 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 | GetTestCaseRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | GetTestCaseRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<TestCase> | 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 | GetTestCaseResultRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | GetTestCaseResultRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<TestCaseResult> | 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 | ImportTestCasesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<ImportTestCasesResponse, ImportTestCasesMetadata> | The RPC response. |
ImportTestCasesAsync(ImportTestCasesRequest, CallSettings)
public override async 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 | ImportTestCasesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<ImportTestCasesResponse, ImportTestCasesMetadata>> | A Task containing the RPC response. |
ListTestCaseResults(ListTestCaseResultsRequest, CallSettings)
public override PagedEnumerable<ListTestCaseResultsResponse, TestCaseResult> ListTestCaseResults(ListTestCaseResultsRequest request, CallSettings callSettings = null)
Fetches a list of results for a given test case.
Parameters | |
---|---|
Name | Description |
request | ListTestCaseResultsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListTestCaseResultsResponse, TestCaseResult> | A pageable sequence of TestCaseResult resources. |
ListTestCaseResultsAsync(ListTestCaseResultsRequest, CallSettings)
public override PagedAsyncEnumerable<ListTestCaseResultsResponse, TestCaseResult> ListTestCaseResultsAsync(ListTestCaseResultsRequest request, CallSettings callSettings = null)
Fetches a list of results for a given test case.
Parameters | |
---|---|
Name | Description |
request | ListTestCaseResultsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListTestCaseResultsResponse, TestCaseResult> | 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 | ListTestCasesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListTestCasesResponse, TestCase> | 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 | ListTestCasesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListTestCasesResponse, TestCase> | 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 | RunTestCaseRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<RunTestCaseResponse, RunTestCaseMetadata> | The RPC response. |
RunTestCaseAsync(RunTestCaseRequest, CallSettings)
public override async 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 | RunTestCaseRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<RunTestCaseResponse, RunTestCaseMetadata>> | 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 | UpdateTestCaseRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | UpdateTestCaseRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<TestCase> | A Task containing the RPC response. |