19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_TEST_CASES_CLIENT_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_TEST_CASES_CLIENT_H
22#include "google/cloud/dialogflow_cx/test_cases_connection.h"
23#include "google/cloud/future.h"
24#include "google/cloud/options.h"
25#include "google/cloud/polling_policy.h"
26#include "google/cloud/status_or.h"
27#include "google/cloud/version.h"
28#include <google/longrunning/operations.grpc.pb.h>
34GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
85 return a.connection_ == b.connection_;
126 std::string
const& parent,
Options opts
= {});
166 google::
cloud::dialogflow::cx::v3::ListTestCasesRequest request,
218 google::
cloud::dialogflow::cx::v3::BatchDeleteTestCasesRequest
const&
279 google::
cloud::dialogflow::cx::v3::GetTestCaseRequest
const& request,
308 std::string
const& parent,
309 google::
cloud::dialogflow::cx::v3::TestCase
const& test_case,
341 google::
cloud::dialogflow::cx::v3::CreateTestCaseRequest
const& request,
372 google::
cloud::dialogflow::cx::v3::TestCase
const& test_case,
404 google::
cloud::dialogflow::cx::v3::UpdateTestCaseRequest
const& request,
453 google::
cloud::dialogflow::cx::v3::RunTestCaseRequest
const& request,
502 google::
cloud::dialogflow::cx::v3::BatchRunTestCasesRequest
const&
534 StatusOr<
google::
cloud::dialogflow::cx::v3::CalculateCoverageResponse>
536 google::
cloud::dialogflow::cx::v3::CalculateCoverageRequest
const&
588 google::
cloud::dialogflow::cx::v3::ImportTestCasesRequest
const& request,
638 google::
cloud::dialogflow::cx::v3::ExportTestCasesRequest
const& request,
676 StreamRange<
google::
cloud::dialogflow::cx::v3::TestCaseResult>
716 StreamRange<
google::
cloud::dialogflow::cx::v3::TestCaseResult>
718 google::
cloud::dialogflow::cx::v3::ListTestCaseResultsRequest request,
778 google::
cloud::dialogflow::cx::v3::GetTestCaseResultRequest
const&
787GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
Service for managing Test Cases and Test Case Results.
Definition: test_cases_client.h:68
future< StatusOr< google::cloud::dialogflow::cx::v3::BatchRunTestCasesResponse > > BatchRunTestCases(google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const &request, Options opts={})
Kicks off a batch run of test cases.
StreamRange< google::cloud::dialogflow::cx::v3::TestCase > ListTestCases(std::string const &parent, Options opts={})
Fetches a list of test cases for a given agent.
future< StatusOr< google::cloud::dialogflow::cx::v3::ImportTestCasesResponse > > ImportTestCases(google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const &request, Options opts={})
Imports the test cases from a Cloud Storage bucket or a local file.
StatusOr< google::cloud::dialogflow::cx::v3::TestCase > UpdateTestCase(google::cloud::dialogflow::cx::v3::UpdateTestCaseRequest const &request, Options opts={})
Updates the specified test case.
StreamRange< google::cloud::dialogflow::cx::v3::TestCaseResult > ListTestCaseResults(google::cloud::dialogflow::cx::v3::ListTestCaseResultsRequest request, Options opts={})
Fetches a list of results for a given test case.
friend bool operator!=(TestCasesClient const &a, TestCasesClient const &b)
Definition: test_cases_client.h:87
TestCasesClient(TestCasesClient &&)=default
StreamRange< google::cloud::dialogflow::cx::v3::TestCaseResult > ListTestCaseResults(std::string const &parent, Options opts={})
Fetches a list of results for a given test case.
future< StatusOr< google::cloud::dialogflow::cx::v3::RunTestCaseResponse > > RunTestCase(google::cloud::dialogflow::cx::v3::RunTestCaseRequest const &request, Options opts={})
Kicks off a test case run.
StatusOr< google::cloud::dialogflow::cx::v3::CalculateCoverageResponse > CalculateCoverage(google::cloud::dialogflow::cx::v3::CalculateCoverageRequest const &request, Options opts={})
Calculates the test coverage for an agent.
Status BatchDeleteTestCases(google::cloud::dialogflow::cx::v3::BatchDeleteTestCasesRequest const &request, Options opts={})
Batch deletes test cases.
StatusOr< google::cloud::dialogflow::cx::v3::TestCase > UpdateTestCase(google::cloud::dialogflow::cx::v3::TestCase const &test_case, google::protobuf::FieldMask const &update_mask, Options opts={})
Updates the specified test case.
StatusOr< google::cloud::dialogflow::cx::v3::TestCase > CreateTestCase(google::cloud::dialogflow::cx::v3::CreateTestCaseRequest const &request, Options opts={})
Creates a test case for the given agent.
TestCasesClient(TestCasesClient const &)=default
StatusOr< google::cloud::dialogflow::cx::v3::TestCase > GetTestCase(google::cloud::dialogflow::cx::v3::GetTestCaseRequest const &request, Options opts={})
Gets a test case.
TestCasesClient(std::shared_ptr< TestCasesConnection > connection, Options opts={})
TestCasesClient & operator=(TestCasesClient const &)=default
StatusOr< google::cloud::dialogflow::cx::v3::TestCaseResult > GetTestCaseResult(std::string const &name, Options opts={})
Gets a test case result.
StatusOr< google::cloud::dialogflow::cx::v3::TestCaseResult > GetTestCaseResult(google::cloud::dialogflow::cx::v3::GetTestCaseResultRequest const &request, Options opts={})
Gets a test case result.
StatusOr< google::cloud::dialogflow::cx::v3::TestCase > GetTestCase(std::string const &name, Options opts={})
Gets a test case.
Status BatchDeleteTestCases(std::string const &parent, Options opts={})
Batch deletes test cases.
StatusOr< google::cloud::dialogflow::cx::v3::TestCase > CreateTestCase(std::string const &parent, google::cloud::dialogflow::cx::v3::TestCase const &test_case, Options opts={})
Creates a test case for the given agent.
TestCasesClient & operator=(TestCasesClient &&)=default
StreamRange< google::cloud::dialogflow::cx::v3::TestCase > ListTestCases(google::cloud::dialogflow::cx::v3::ListTestCasesRequest request, Options opts={})
Fetches a list of test cases for a given agent.
future< StatusOr< google::cloud::dialogflow::cx::v3::ExportTestCasesResponse > > ExportTestCases(google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const &request, Options opts={})
Exports the test cases under the agent to a Cloud Storage bucket or a local file.
friend bool operator==(TestCasesClient const &a, TestCasesClient const &b)
Definition: test_cases_client.h:84
The TestCasesConnection object for TestCasesClient.
Definition: test_cases_connection.h:64
friend friend class future
Definition: agents_client.h:33