Class TestCasesConnection (2.31.0)

This interface defines virtual methods for each of the user-facing overload sets in TestCasesClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type TestCasesClient.

To create a concrete instance, see MakeTestCasesConnection().

For mocking, see dialogflow_cx_mocks::MockTestCasesConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListTestCases(google::cloud::dialogflow::cx::v3::ListTestCasesRequest)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::ListTestCasesRequest
Returns
Type Description
StreamRange< google::cloud::dialogflow::cx::v3::TestCase >

virtual BatchDeleteTestCases(google::cloud::dialogflow::cx::v3::BatchDeleteTestCasesRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::BatchDeleteTestCasesRequest const &
Returns
Type Description
Status

virtual GetTestCase(google::cloud::dialogflow::cx::v3::GetTestCaseRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::GetTestCaseRequest const &
Returns
Type Description
StatusOr< google::cloud::dialogflow::cx::v3::TestCase >

virtual CreateTestCase(google::cloud::dialogflow::cx::v3::CreateTestCaseRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::CreateTestCaseRequest const &
Returns
Type Description
StatusOr< google::cloud::dialogflow::cx::v3::TestCase >

virtual UpdateTestCase(google::cloud::dialogflow::cx::v3::UpdateTestCaseRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::UpdateTestCaseRequest const &
Returns
Type Description
StatusOr< google::cloud::dialogflow::cx::v3::TestCase >

virtual RunTestCase(google::cloud::dialogflow::cx::v3::RunTestCaseRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::RunTestCaseRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dialogflow::cx::v3::RunTestCaseResponse > >

virtual RunTestCase(NoAwaitTag, google::cloud::dialogflow::cx::v3::RunTestCaseRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::dialogflow::cx::v3::RunTestCaseRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual RunTestCase(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::dialogflow::cx::v3::RunTestCaseResponse > >

virtual BatchRunTestCases(google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dialogflow::cx::v3::BatchRunTestCasesResponse > >

virtual BatchRunTestCases(NoAwaitTag, google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual BatchRunTestCases(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::dialogflow::cx::v3::BatchRunTestCasesResponse > >

virtual CalculateCoverage(google::cloud::dialogflow::cx::v3::CalculateCoverageRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::CalculateCoverageRequest const &
Returns
Type Description
StatusOr< google::cloud::dialogflow::cx::v3::CalculateCoverageResponse >

virtual ImportTestCases(google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dialogflow::cx::v3::ImportTestCasesResponse > >

virtual ImportTestCases(NoAwaitTag, google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual ImportTestCases(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::dialogflow::cx::v3::ImportTestCasesResponse > >

virtual ExportTestCases(google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dialogflow::cx::v3::ExportTestCasesResponse > >

virtual ExportTestCases(NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual ExportTestCases(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::dialogflow::cx::v3::ExportTestCasesResponse > >

virtual ListTestCaseResults(google::cloud::dialogflow::cx::v3::ListTestCaseResultsRequest)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::ListTestCaseResultsRequest
Returns
Type Description
StreamRange< google::cloud::dialogflow::cx::v3::TestCaseResult >

virtual GetTestCaseResult(google::cloud::dialogflow::cx::v3::GetTestCaseResultRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::GetTestCaseResultRequest const &
Returns
Type Description
StatusOr< google::cloud::dialogflow::cx::v3::TestCaseResult >

virtual ListLocations(google::cloud::location::ListLocationsRequest)

Parameter
Name Description
request google::cloud::location::ListLocationsRequest
Returns
Type Description
StreamRange< google::cloud::location::Location >

virtual GetLocation(google::cloud::location::GetLocationRequest const &)

Parameter
Name Description
request google::cloud::location::GetLocationRequest const &
Returns
Type Description
StatusOr< google::cloud::location::Location >

virtual ListOperations(google::longrunning::ListOperationsRequest)

Parameter
Name Description
request google::longrunning::ListOperationsRequest
Returns
Type Description
StreamRange< google::longrunning::Operation >

virtual GetOperation(google::longrunning::GetOperationRequest const &)

Parameter
Name Description
request google::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CancelOperation(google::longrunning::CancelOperationRequest const &)

Parameter
Name Description
request google::longrunning::CancelOperationRequest const &
Returns
Type Description
Status