Class TestCasesClientImpl (1.3.0)

public sealed class TestCasesClientImpl : TestCasesClient

TestCases client wrapper implementation, for convenient use.

Inheritance

Object > TestCasesClient > TestCasesClientImpl

Namespace

Google.Cloud.Dialogflow.Cx.V3

Assembly

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
NameDescription
grpcClientTestCases.TestCasesClient

The underlying gRPC client.

settingsTestCasesSettings

The base TestCasesSettings used within this client.

Properties

BatchRunTestCasesOperationsClient

public override OperationsClient BatchRunTestCasesOperationsClient { get; }

The long-running operations client for BatchRunTestCases.

Property Value
TypeDescription
OperationsClient
Overrides

ExportTestCasesOperationsClient

public override OperationsClient ExportTestCasesOperationsClient { get; }

The long-running operations client for ExportTestCases.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override TestCases.TestCasesClient GrpcClient { get; }

The underlying gRPC TestCases client

Property Value
TypeDescription
TestCases.TestCasesClient
Overrides

ImportTestCasesOperationsClient

public override OperationsClient ImportTestCasesOperationsClient { get; }

The long-running operations client for ImportTestCases.

Property Value
TypeDescription
OperationsClient
Overrides

RunTestCaseOperationsClient

public override OperationsClient RunTestCaseOperationsClient { get; }

The long-running operations client for RunTestCase.

Property Value
TypeDescription
OperationsClient
Overrides

Methods

BatchDeleteTestCases(BatchDeleteTestCasesRequest, CallSettings)

public override void BatchDeleteTestCases(BatchDeleteTestCasesRequest request, CallSettings callSettings = null)

Batch deletes test cases.

Parameters
NameDescription
requestBatchDeleteTestCasesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Overrides

BatchDeleteTestCasesAsync(BatchDeleteTestCasesRequest, CallSettings)

public override Task BatchDeleteTestCasesAsync(BatchDeleteTestCasesRequest request, CallSettings callSettings = null)

Batch deletes test cases.

Parameters
NameDescription
requestBatchDeleteTestCasesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Overrides

BatchRunTestCases(BatchRunTestCasesRequest, CallSettings)

public override Operation<BatchRunTestCasesResponse, BatchRunTestCasesMetadata> BatchRunTestCases(BatchRunTestCasesRequest request, CallSettings callSettings = null)

Kicks off a batch run of test cases.

Parameters
NameDescription
requestBatchRunTestCasesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<BatchRunTestCasesResponse, BatchRunTestCasesMetadata>

The RPC response.

Overrides

BatchRunTestCasesAsync(BatchRunTestCasesRequest, CallSettings)

public override Task<Operation<BatchRunTestCasesResponse, BatchRunTestCasesMetadata>> BatchRunTestCasesAsync(BatchRunTestCasesRequest request, CallSettings callSettings = null)

Kicks off a batch run of test cases.

Parameters
NameDescription
requestBatchRunTestCasesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<BatchRunTestCasesResponse, BatchRunTestCasesMetadata>>

A Task containing the RPC response.

Overrides

CalculateCoverage(CalculateCoverageRequest, CallSettings)

public override CalculateCoverageResponse CalculateCoverage(CalculateCoverageRequest request, CallSettings callSettings = null)

Calculates the test coverage for an agent.

Parameters
NameDescription
requestCalculateCoverageRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
CalculateCoverageResponse

The RPC response.

Overrides

CalculateCoverageAsync(CalculateCoverageRequest, CallSettings)

public override Task<CalculateCoverageResponse> CalculateCoverageAsync(CalculateCoverageRequest request, CallSettings callSettings = null)

Calculates the test coverage for an agent.

Parameters
NameDescription
requestCalculateCoverageRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<CalculateCoverageResponse>

A Task containing the RPC response.

Overrides

CreateTestCase(CreateTestCaseRequest, CallSettings)

public override TestCase CreateTestCase(CreateTestCaseRequest request, CallSettings callSettings = null)

Creates a test case for the given agent.

Parameters
NameDescription
requestCreateTestCaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TestCase

The RPC response.

Overrides

CreateTestCaseAsync(CreateTestCaseRequest, CallSettings)

public override Task<TestCase> CreateTestCaseAsync(CreateTestCaseRequest request, CallSettings callSettings = null)

Creates a test case for the given agent.

Parameters
NameDescription
requestCreateTestCaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<TestCase>

A Task containing the RPC response.

Overrides

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.

Parameters
NameDescription
requestExportTestCasesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<ExportTestCasesResponse, ExportTestCasesMetadata>

The RPC response.

Overrides

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.

Parameters
NameDescription
requestExportTestCasesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<ExportTestCasesResponse, ExportTestCasesMetadata>>

A Task containing the RPC response.

Overrides

GetTestCase(GetTestCaseRequest, CallSettings)

public override TestCase GetTestCase(GetTestCaseRequest request, CallSettings callSettings = null)

Gets a test case.

Parameters
NameDescription
requestGetTestCaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TestCase

The RPC response.

Overrides

GetTestCaseAsync(GetTestCaseRequest, CallSettings)

public override Task<TestCase> GetTestCaseAsync(GetTestCaseRequest request, CallSettings callSettings = null)

Gets a test case.

Parameters
NameDescription
requestGetTestCaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<TestCase>

A Task containing the RPC response.

Overrides

GetTestCaseResult(GetTestCaseResultRequest, CallSettings)

public override TestCaseResult GetTestCaseResult(GetTestCaseResultRequest request, CallSettings callSettings = null)

Gets a test case result.

Parameters
NameDescription
requestGetTestCaseResultRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TestCaseResult

The RPC response.

Overrides

GetTestCaseResultAsync(GetTestCaseResultRequest, CallSettings)

public override Task<TestCaseResult> GetTestCaseResultAsync(GetTestCaseResultRequest request, CallSettings callSettings = null)

Gets a test case result.

Parameters
NameDescription
requestGetTestCaseResultRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<TestCaseResult>

A Task containing the RPC response.

Overrides

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 overwite any existing ones. The provided ID in the imported test case is neglected.

Parameters
NameDescription
requestImportTestCasesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<ImportTestCasesResponse, ImportTestCasesMetadata>

The RPC response.

Overrides

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 overwite any existing ones. The provided ID in the imported test case is neglected.

Parameters
NameDescription
requestImportTestCasesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<ImportTestCasesResponse, ImportTestCasesMetadata>>

A Task containing the RPC response.

Overrides

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
NameDescription
requestListTestCaseResultsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListTestCaseResultsResponse, TestCaseResult>

A pageable sequence of TestCaseResult resources.

Overrides

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
NameDescription
requestListTestCaseResultsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListTestCaseResultsResponse, TestCaseResult>

A pageable asynchronous sequence of TestCaseResult resources.

Overrides

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
NameDescription
requestListTestCasesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListTestCasesResponse, TestCase>

A pageable sequence of TestCase resources.

Overrides

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
NameDescription
requestListTestCasesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListTestCasesResponse, TestCase>

A pageable asynchronous sequence of TestCase resources.

Overrides

RunTestCase(RunTestCaseRequest, CallSettings)

public override Operation<RunTestCaseResponse, RunTestCaseMetadata> RunTestCase(RunTestCaseRequest request, CallSettings callSettings = null)

Kicks off a test case run.

Parameters
NameDescription
requestRunTestCaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<RunTestCaseResponse, RunTestCaseMetadata>

The RPC response.

Overrides

RunTestCaseAsync(RunTestCaseRequest, CallSettings)

public override Task<Operation<RunTestCaseResponse, RunTestCaseMetadata>> RunTestCaseAsync(RunTestCaseRequest request, CallSettings callSettings = null)

Kicks off a test case run.

Parameters
NameDescription
requestRunTestCaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<RunTestCaseResponse, RunTestCaseMetadata>>

A Task containing the RPC response.

Overrides

UpdateTestCase(UpdateTestCaseRequest, CallSettings)

public override TestCase UpdateTestCase(UpdateTestCaseRequest request, CallSettings callSettings = null)

Updates the specified test case.

Parameters
NameDescription
requestUpdateTestCaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TestCase

The RPC response.

Overrides

UpdateTestCaseAsync(UpdateTestCaseRequest, CallSettings)

public override Task<TestCase> UpdateTestCaseAsync(UpdateTestCaseRequest request, CallSettings callSettings = null)

Updates the specified test case.

Parameters
NameDescription
requestUpdateTestCaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<TestCase>

A Task containing the RPC response.

Overrides