19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_TEST_CASES_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_TEST_CASES_CONNECTION_H
22#include "google/cloud/dialogflow_cx/internal/test_cases_retry_traits.h"
23#include "google/cloud/dialogflow_cx/test_cases_connection_idempotency_policy.h"
24#include "google/cloud/backoff_policy.h"
25#include "google/cloud/future.h"
26#include "google/cloud/options.h"
27#include "google/cloud/polling_policy.h"
28#include "google/cloud/status_or.h"
29#include "google/cloud/stream_range.h"
30#include "google/cloud/version.h"
31#include <google/cloud/dialogflow/cx/v3/test_case.pb.h>
32#include <google/longrunning/operations.grpc.pb.h>
39GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
41using TestCasesRetryPolicy = ::
google::
cloud::internal::TraitBasedRetryPolicy<
42 dialogflow_cx_internal::TestCasesRetryTraits>;
44using TestCasesLimitedTimeRetryPolicy =
46 dialogflow_cx_internal::TestCasesRetryTraits>;
48using TestCasesLimitedErrorCountRetryPolicy =
49 ::
google::
cloud::internal::LimitedErrorCountRetryPolicy<
50 dialogflow_cx_internal::TestCasesRetryTraits>;
53
54
55
56
57
58
59
60
61
62
63
70 virtual StreamRange<
google::
cloud::dialogflow::cx::v3::TestCase>
72 google::
cloud::dialogflow::cx::v3::ListTestCasesRequest request);
75 google::
cloud::dialogflow::cx::v3::BatchDeleteTestCasesRequest
const&
79 google::
cloud::dialogflow::cx::v3::GetTestCaseRequest
const& request);
82 google::
cloud::dialogflow::cx::v3::CreateTestCaseRequest
const& request);
85 google::
cloud::dialogflow::cx::v3::UpdateTestCaseRequest
const& request);
88 StatusOr<
google::
cloud::dialogflow::cx::v3::RunTestCaseResponse>>
90 google::
cloud::dialogflow::cx::v3::RunTestCaseRequest
const& request);
93 StatusOr<
google::
cloud::dialogflow::cx::v3::BatchRunTestCasesResponse>>
95 google::
cloud::dialogflow::cx::v3::BatchRunTestCasesRequest
const&
98 virtual StatusOr<
google::
cloud::dialogflow::cx::v3::CalculateCoverageResponse>
100 google::
cloud::dialogflow::cx::v3::CalculateCoverageRequest
const&
104 StatusOr<
google::
cloud::dialogflow::cx::v3::ImportTestCasesResponse>>
106 google::
cloud::dialogflow::cx::v3::ImportTestCasesRequest
const& request);
109 StatusOr<
google::
cloud::dialogflow::cx::v3::ExportTestCasesResponse>>
111 google::
cloud::dialogflow::cx::v3::ExportTestCasesRequest
const& request);
113 virtual StreamRange<
google::
cloud::dialogflow::cx::v3::TestCaseResult>
115 google::
cloud::dialogflow::cx::v3::ListTestCaseResultsRequest request);
117 virtual StatusOr<
google::
cloud::dialogflow::cx::v3::TestCaseResult>
119 google::
cloud::dialogflow::cx::v3::GetTestCaseResultRequest
const&
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
146 std::string
const& location,
Options options
= {});
149
150
151
152
153
154
158GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
The TestCasesConnection object for TestCasesClient.
Definition: test_cases_connection.h:64
virtual future< StatusOr< google::cloud::dialogflow::cx::v3::BatchRunTestCasesResponse > > BatchRunTestCases(google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const &request)
virtual StatusOr< google::cloud::dialogflow::cx::v3::TestCase > CreateTestCase(google::cloud::dialogflow::cx::v3::CreateTestCaseRequest const &request)
virtual Options options()
Definition: test_cases_connection.h:68
virtual StatusOr< google::cloud::dialogflow::cx::v3::TestCase > UpdateTestCase(google::cloud::dialogflow::cx::v3::UpdateTestCaseRequest const &request)
virtual Status BatchDeleteTestCases(google::cloud::dialogflow::cx::v3::BatchDeleteTestCasesRequest const &request)
virtual StreamRange< google::cloud::dialogflow::cx::v3::TestCase > ListTestCases(google::cloud::dialogflow::cx::v3::ListTestCasesRequest request)
virtual StreamRange< google::cloud::dialogflow::cx::v3::TestCaseResult > ListTestCaseResults(google::cloud::dialogflow::cx::v3::ListTestCaseResultsRequest request)
virtual StatusOr< google::cloud::dialogflow::cx::v3::CalculateCoverageResponse > CalculateCoverage(google::cloud::dialogflow::cx::v3::CalculateCoverageRequest const &request)
virtual future< StatusOr< google::cloud::dialogflow::cx::v3::ExportTestCasesResponse > > ExportTestCases(google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const &request)
virtual future< StatusOr< google::cloud::dialogflow::cx::v3::ImportTestCasesResponse > > ImportTestCases(google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const &request)
virtual ~TestCasesConnection()=0
virtual future< StatusOr< google::cloud::dialogflow::cx::v3::RunTestCaseResponse > > RunTestCase(google::cloud::dialogflow::cx::v3::RunTestCaseRequest const &request)
virtual StatusOr< google::cloud::dialogflow::cx::v3::TestCase > GetTestCase(google::cloud::dialogflow::cx::v3::GetTestCaseRequest const &request)
virtual StatusOr< google::cloud::dialogflow::cx::v3::TestCaseResult > GetTestCaseResult(google::cloud::dialogflow::cx::v3::GetTestCaseResultRequest const &request)
friend friend class future
Definition: agents_client.h:33
std::shared_ptr< TestCasesConnection > MakeTestCasesConnection(Options options={})
A backwards-compatible version of the previous factory function.
std::shared_ptr< TestCasesConnection > MakeTestCasesConnection(std::string const &location, Options options={})
A factory function to construct an object of type TestCasesConnection.