Dialogflow API C++ Client 2.13.0
A C++ Client Library for the Dialogflow API
Loading...
Searching...
No Matches
test_cases_client.h
1// Copyright 2022 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Generated by the Codegen C++ plugin.
16// If you make any local changes, they will be lost.
17// source: google/cloud/dialogflow/cx/v3/test_case.proto
18
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
21
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>
29#include <memory>
30
31namespace google {
32namespace cloud {
33namespace dialogflow_cx {
34GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
35
36///
37/// Service for managing [Test Cases][google.cloud.dialogflow.cx.v3.TestCase]
38/// and [Test Case Results][google.cloud.dialogflow.cx.v3.TestCaseResult].
39///
40/// @par Equality
41///
42/// Instances of this class created via copy-construction or copy-assignment
43/// always compare equal. Instances created with equal
44/// `std::shared_ptr<*Connection>` objects compare equal. Objects that compare
45/// equal share the same underlying resources.
46///
47/// @par Performance
48///
49/// Creating a new instance of this class is a relatively expensive operation,
50/// new objects establish new connections to the service. In contrast,
51/// copy-construction, move-construction, and the corresponding assignment
52/// operations are relatively efficient as the copies share all underlying
53/// resources.
54///
55/// @par Thread Safety
56///
57/// Concurrent access to different instances of this class, even if they compare
58/// equal, is guaranteed to work. Two or more threads operating on the same
59/// instance of this class is not guaranteed to work. Since copy-construction
60/// and move-construction is a relatively efficient operation, consider using
61/// such a copy when using this class from multiple threads.
62///
63/// [google.cloud.dialogflow.cx.v3.TestCase]:
64/// @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L214}
65/// [google.cloud.dialogflow.cx.v3.TestCaseResult]:
66/// @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L256}
67///
68class TestCasesClient {
69 public:
70 explicit TestCasesClient(std::shared_ptr<TestCasesConnection> connection,
71 Options opts = {});
73
74 ///@{
75 /// @name Copy and move support
76 TestCasesClient(TestCasesClient const&) = default;
77 TestCasesClient& operator=(TestCasesClient const&) = default;
80 ///@}
81
82 ///@{
83 /// @name Equality
84 friend bool operator==(TestCasesClient const& a, TestCasesClient const& b) {
85 return a.connection_ == b.connection_;
86 }
87 friend bool operator!=(TestCasesClient const& a, TestCasesClient const& b) {
88 return !(a == b);
89 }
90 ///@}
91
92 // clang-format off
93 ///
94 /// Fetches a list of test cases for a given agent.
95 ///
96 /// @param parent Required. The agent to list all pages for.
97 /// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
98 /// @param opts Optional. Override the class-level options, such as retry and
99 /// backoff policies.
100 /// @return a [StreamRange](@ref google::cloud::StreamRange)
101 /// to iterate of the results. See the documentation of this type for
102 /// details. In brief, this class has `begin()` and `end()` member
103 /// functions returning a iterator class meeting the
104 /// [input iterator requirements]. The value type for this iterator is a
105 /// [`StatusOr`] as the iteration may fail even after some values are
106 /// retrieved successfully, for example, if there is a network disconnect.
107 /// An empty set of results does not indicate an error, it indicates
108 /// that there are no resources meeting the request criteria.
109 /// On a successful iteration the `StatusOr<T>` contains elements of type
110 /// [google.cloud.dialogflow.cx.v3.TestCase], or rather,
111 /// the C++ class generated by Protobuf from that type. Please consult the
112 /// Protobuf documentation for details on the [Protobuf mapping rules].
113 ///
114 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
115 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
116 /// [Long Running Operation]: https://google.aip.dev/151
117 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
118 /// [`future`]: @ref google::cloud::future
119 /// [`StatusOr`]: @ref google::cloud::StatusOr
120 /// [`Status`]: @ref google::cloud::Status
121 /// [google.cloud.dialogflow.cx.v3.ListTestCasesRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L573}
122 /// [google.cloud.dialogflow.cx.v3.TestCase]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L214}
123 ///
124 // clang-format on
125 StreamRange<google::cloud::dialogflow::cx::v3::TestCase> ListTestCases(
126 std::string const& parent, Options opts = {});
127
128 // clang-format off
129 ///
130 /// Fetches a list of test cases for a given agent.
131 ///
132 /// @param request Unary RPCs, such as the one wrapped by this
133 /// function, receive a single `request` proto message which includes all
134 /// the inputs for the RPC. In this case, the proto message is a
135 /// [google.cloud.dialogflow.cx.v3.ListTestCasesRequest].
136 /// Proto messages are converted to C++ classes by Protobuf, using the
137 /// [Protobuf mapping rules].
138 /// @param opts Optional. Override the class-level options, such as retry and
139 /// backoff policies.
140 /// @return a [StreamRange](@ref google::cloud::StreamRange)
141 /// to iterate of the results. See the documentation of this type for
142 /// details. In brief, this class has `begin()` and `end()` member
143 /// functions returning a iterator class meeting the
144 /// [input iterator requirements]. The value type for this iterator is a
145 /// [`StatusOr`] as the iteration may fail even after some values are
146 /// retrieved successfully, for example, if there is a network disconnect.
147 /// An empty set of results does not indicate an error, it indicates
148 /// that there are no resources meeting the request criteria.
149 /// On a successful iteration the `StatusOr<T>` contains elements of type
150 /// [google.cloud.dialogflow.cx.v3.TestCase], or rather,
151 /// the C++ class generated by Protobuf from that type. Please consult the
152 /// Protobuf documentation for details on the [Protobuf mapping rules].
153 ///
154 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
155 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
156 /// [Long Running Operation]: https://google.aip.dev/151
157 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
158 /// [`future`]: @ref google::cloud::future
159 /// [`StatusOr`]: @ref google::cloud::StatusOr
160 /// [`Status`]: @ref google::cloud::Status
161 /// [google.cloud.dialogflow.cx.v3.ListTestCasesRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L573}
162 /// [google.cloud.dialogflow.cx.v3.TestCase]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L214}
163 ///
164 // clang-format on
165 StreamRange<google::cloud::dialogflow::cx::v3::TestCase> ListTestCases(
166 google::cloud::dialogflow::cx::v3::ListTestCasesRequest request,
167 Options opts = {});
168
169 // clang-format off
170 ///
171 /// Batch deletes test cases.
172 ///
173 /// @param parent Required. The agent to delete test cases from.
174 /// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
175 /// @param opts Optional. Override the class-level options, such as retry and
176 /// backoff policies.
177 /// @return a [`Status`] object. If the request failed, the
178 /// status contains the details of the failure.
179 ///
180 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
181 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
182 /// [Long Running Operation]: https://google.aip.dev/151
183 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
184 /// [`future`]: @ref google::cloud::future
185 /// [`StatusOr`]: @ref google::cloud::StatusOr
186 /// [`Status`]: @ref google::cloud::Status
187 /// [google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L623}
188 ///
189 // clang-format on
190 Status BatchDeleteTestCases(std::string const& parent, Options opts = {});
191
192 // clang-format off
193 ///
194 /// Batch deletes test cases.
195 ///
196 /// @param request Unary RPCs, such as the one wrapped by this
197 /// function, receive a single `request` proto message which includes all
198 /// the inputs for the RPC. In this case, the proto message is a
199 /// [google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest].
200 /// Proto messages are converted to C++ classes by Protobuf, using the
201 /// [Protobuf mapping rules].
202 /// @param opts Optional. Override the class-level options, such as retry and
203 /// backoff policies.
204 /// @return a [`Status`] object. If the request failed, the
205 /// status contains the details of the failure.
206 ///
207 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
208 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
209 /// [Long Running Operation]: https://google.aip.dev/151
210 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
211 /// [`future`]: @ref google::cloud::future
212 /// [`StatusOr`]: @ref google::cloud::StatusOr
213 /// [`Status`]: @ref google::cloud::Status
214 /// [google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L623}
215 ///
216 // clang-format on
218 google::cloud::dialogflow::cx::v3::BatchDeleteTestCasesRequest const&
219 request,
220 Options opts = {});
221
222 // clang-format off
223 ///
224 /// Gets a test case.
225 ///
226 /// @param name Required. The name of the testcase.
227 /// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
228 /// ID>/testCases/<TestCase ID>`.
229 /// @param opts Optional. Override the class-level options, such as retry and
230 /// backoff policies.
231 /// @return the result of the RPC. The response message type
232 /// ([google.cloud.dialogflow.cx.v3.TestCase])
233 /// is mapped to a C++ class using the [Protobuf mapping rules].
234 /// If the request fails, the [`StatusOr`] contains the error details.
235 ///
236 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
237 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
238 /// [Long Running Operation]: https://google.aip.dev/151
239 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
240 /// [`future`]: @ref google::cloud::future
241 /// [`StatusOr`]: @ref google::cloud::StatusOr
242 /// [`Status`]: @ref google::cloud::Status
243 /// [google.cloud.dialogflow.cx.v3.GetTestCaseRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L675}
244 /// [google.cloud.dialogflow.cx.v3.TestCase]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L214}
245 ///
246 // clang-format on
247 StatusOr<google::cloud::dialogflow::cx::v3::TestCase> GetTestCase(
248 std::string const& name, Options opts = {});
249
250 // clang-format off
251 ///
252 /// Gets a test case.
253 ///
254 /// @param request Unary RPCs, such as the one wrapped by this
255 /// function, receive a single `request` proto message which includes all
256 /// the inputs for the RPC. In this case, the proto message is a
257 /// [google.cloud.dialogflow.cx.v3.GetTestCaseRequest].
258 /// Proto messages are converted to C++ classes by Protobuf, using the
259 /// [Protobuf mapping rules].
260 /// @param opts Optional. Override the class-level options, such as retry and
261 /// backoff policies.
262 /// @return the result of the RPC. The response message type
263 /// ([google.cloud.dialogflow.cx.v3.TestCase])
264 /// is mapped to a C++ class using the [Protobuf mapping rules].
265 /// If the request fails, the [`StatusOr`] contains the error details.
266 ///
267 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
268 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
269 /// [Long Running Operation]: https://google.aip.dev/151
270 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
271 /// [`future`]: @ref google::cloud::future
272 /// [`StatusOr`]: @ref google::cloud::StatusOr
273 /// [`Status`]: @ref google::cloud::Status
274 /// [google.cloud.dialogflow.cx.v3.GetTestCaseRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L675}
275 /// [google.cloud.dialogflow.cx.v3.TestCase]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L214}
276 ///
277 // clang-format on
278 StatusOr<google::cloud::dialogflow::cx::v3::TestCase> GetTestCase(
279 google::cloud::dialogflow::cx::v3::GetTestCaseRequest const& request,
280 Options opts = {});
281
282 // clang-format off
283 ///
284 /// Creates a test case for the given agent.
285 ///
286 /// @param parent Required. The agent to create the test case for.
287 /// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
288 /// @param test_case Required. The test case to create.
289 /// @param opts Optional. Override the class-level options, such as retry and
290 /// backoff policies.
291 /// @return the result of the RPC. The response message type
292 /// ([google.cloud.dialogflow.cx.v3.TestCase])
293 /// is mapped to a C++ class using the [Protobuf mapping rules].
294 /// If the request fails, the [`StatusOr`] contains the error details.
295 ///
296 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
297 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
298 /// [Long Running Operation]: https://google.aip.dev/151
299 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
300 /// [`future`]: @ref google::cloud::future
301 /// [`StatusOr`]: @ref google::cloud::StatusOr
302 /// [`Status`]: @ref google::cloud::Status
303 /// [google.cloud.dialogflow.cx.v3.CreateTestCaseRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L645}
304 /// [google.cloud.dialogflow.cx.v3.TestCase]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L214}
305 ///
306 // clang-format on
307 StatusOr<google::cloud::dialogflow::cx::v3::TestCase> CreateTestCase(
308 std::string const& parent,
309 google::cloud::dialogflow::cx::v3::TestCase const& test_case,
310 Options opts = {});
311
312 // clang-format off
313 ///
314 /// Creates a test case for the given agent.
315 ///
316 /// @param request Unary RPCs, such as the one wrapped by this
317 /// function, receive a single `request` proto message which includes all
318 /// the inputs for the RPC. In this case, the proto message is a
319 /// [google.cloud.dialogflow.cx.v3.CreateTestCaseRequest].
320 /// Proto messages are converted to C++ classes by Protobuf, using the
321 /// [Protobuf mapping rules].
322 /// @param opts Optional. Override the class-level options, such as retry and
323 /// backoff policies.
324 /// @return the result of the RPC. The response message type
325 /// ([google.cloud.dialogflow.cx.v3.TestCase])
326 /// is mapped to a C++ class using the [Protobuf mapping rules].
327 /// If the request fails, the [`StatusOr`] contains the error details.
328 ///
329 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
330 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
331 /// [Long Running Operation]: https://google.aip.dev/151
332 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
333 /// [`future`]: @ref google::cloud::future
334 /// [`StatusOr`]: @ref google::cloud::StatusOr
335 /// [`Status`]: @ref google::cloud::Status
336 /// [google.cloud.dialogflow.cx.v3.CreateTestCaseRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L645}
337 /// [google.cloud.dialogflow.cx.v3.TestCase]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L214}
338 ///
339 // clang-format on
340 StatusOr<google::cloud::dialogflow::cx::v3::TestCase> CreateTestCase(
341 google::cloud::dialogflow::cx::v3::CreateTestCaseRequest const& request,
342 Options opts = {});
343
344 // clang-format off
345 ///
346 /// Updates the specified test case.
347 ///
348 /// @param test_case Required. The test case to update.
349 /// @param update_mask Required. The mask to specify which fields should be updated. The
350 /// [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
351 /// [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
352 /// cannot be updated.
353 /// @param opts Optional. Override the class-level options, such as retry and
354 /// backoff policies.
355 /// @return the result of the RPC. The response message type
356 /// ([google.cloud.dialogflow.cx.v3.TestCase])
357 /// is mapped to a C++ class using the [Protobuf mapping rules].
358 /// If the request fails, the [`StatusOr`] contains the error details.
359 ///
360 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
361 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
362 /// [Long Running Operation]: https://google.aip.dev/151
363 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
364 /// [`future`]: @ref google::cloud::future
365 /// [`StatusOr`]: @ref google::cloud::StatusOr
366 /// [`Status`]: @ref google::cloud::Status
367 /// [google.cloud.dialogflow.cx.v3.TestCase]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L214}
368 /// [google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L661}
369 ///
370 // clang-format on
371 StatusOr<google::cloud::dialogflow::cx::v3::TestCase> UpdateTestCase(
372 google::cloud::dialogflow::cx::v3::TestCase const& test_case,
373 google::protobuf::FieldMask const& update_mask, Options opts = {});
374
375 // clang-format off
376 ///
377 /// Updates the specified test case.
378 ///
379 /// @param request Unary RPCs, such as the one wrapped by this
380 /// function, receive a single `request` proto message which includes all
381 /// the inputs for the RPC. In this case, the proto message is a
382 /// [google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest].
383 /// Proto messages are converted to C++ classes by Protobuf, using the
384 /// [Protobuf mapping rules].
385 /// @param opts Optional. Override the class-level options, such as retry and
386 /// backoff policies.
387 /// @return the result of the RPC. The response message type
388 /// ([google.cloud.dialogflow.cx.v3.TestCase])
389 /// is mapped to a C++ class using the [Protobuf mapping rules].
390 /// If the request fails, the [`StatusOr`] contains the error details.
391 ///
392 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
393 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
394 /// [Long Running Operation]: https://google.aip.dev/151
395 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
396 /// [`future`]: @ref google::cloud::future
397 /// [`StatusOr`]: @ref google::cloud::StatusOr
398 /// [`Status`]: @ref google::cloud::Status
399 /// [google.cloud.dialogflow.cx.v3.TestCase]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L214}
400 /// [google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L661}
401 ///
402 // clang-format on
403 StatusOr<google::cloud::dialogflow::cx::v3::TestCase> UpdateTestCase(
404 google::cloud::dialogflow::cx::v3::UpdateTestCaseRequest const& request,
405 Options opts = {});
406
407 // clang-format off
408 ///
409 /// Kicks off a test case run.
410 ///
411 /// This method is a [long-running
412 /// operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
413 /// The returned `Operation` type has the following method-specific fields:
414 ///
415 /// - `metadata`:
416 /// [RunTestCaseMetadata][google.cloud.dialogflow.cx.v3.RunTestCaseMetadata]
417 /// - `response`:
418 /// [RunTestCaseResponse][google.cloud.dialogflow.cx.v3.RunTestCaseResponse]
419 ///
420 /// @param request Unary RPCs, such as the one wrapped by this
421 /// function, receive a single `request` proto message which includes all
422 /// the inputs for the RPC. In this case, the proto message is a
423 /// [google.cloud.dialogflow.cx.v3.RunTestCaseRequest].
424 /// Proto messages are converted to C++ classes by Protobuf, using the
425 /// [Protobuf mapping rules].
426 /// @param opts Optional. Override the class-level options, such as retry and
427 /// backoff policies.
428 /// @return A [`future`] that becomes satisfied when the LRO
429 /// ([Long Running Operation]) completes or the polling policy in effect
430 /// for this call is exhausted. The future is satisfied with an error if
431 /// the LRO completes with an error or the polling policy is exhausted.
432 /// In this case the [`StatusOr`] returned by the future contains the
433 /// error. If the LRO completes successfully the value of the future
434 /// contains the LRO's result. For this RPC the result is a
435 /// [google.cloud.dialogflow.cx.v3.RunTestCaseResponse] proto message.
436 /// The C++ class representing this message is created by Protobuf, using
437 /// the [Protobuf mapping rules].
438 ///
439 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
440 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
441 /// [Long Running Operation]: https://google.aip.dev/151
442 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
443 /// [`future`]: @ref google::cloud::future
444 /// [`StatusOr`]: @ref google::cloud::StatusOr
445 /// [`Status`]: @ref google::cloud::Status
446 /// [google.cloud.dialogflow.cx.v3.RunTestCaseMetadata]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L720}
447 /// [google.cloud.dialogflow.cx.v3.RunTestCaseRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L689}
448 /// [google.cloud.dialogflow.cx.v3.RunTestCaseResponse]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L712}
449 ///
450 // clang-format on
451 future<StatusOr<google::cloud::dialogflow::cx::v3::RunTestCaseResponse>>
453 google::cloud::dialogflow::cx::v3::RunTestCaseRequest const& request,
454 Options opts = {});
455
456 // clang-format off
457 ///
458 /// Kicks off a batch run of test cases.
459 ///
460 /// This method is a [long-running
461 /// operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
462 /// The returned `Operation` type has the following method-specific fields:
463 ///
464 /// - `metadata`:
465 /// [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata]
466 /// - `response`:
467 /// [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse]
468 ///
469 /// @param request Unary RPCs, such as the one wrapped by this
470 /// function, receive a single `request` proto message which includes all
471 /// the inputs for the RPC. In this case, the proto message is a
472 /// [google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest].
473 /// Proto messages are converted to C++ classes by Protobuf, using the
474 /// [Protobuf mapping rules].
475 /// @param opts Optional. Override the class-level options, such as retry and
476 /// backoff policies.
477 /// @return A [`future`] that becomes satisfied when the LRO
478 /// ([Long Running Operation]) completes or the polling policy in effect
479 /// for this call is exhausted. The future is satisfied with an error if
480 /// the LRO completes with an error or the polling policy is exhausted.
481 /// In this case the [`StatusOr`] returned by the future contains the
482 /// error. If the LRO completes successfully the value of the future
483 /// contains the LRO's result. For this RPC the result is a
484 /// [google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse] proto message.
485 /// The C++ class representing this message is created by Protobuf, using
486 /// the [Protobuf mapping rules].
487 ///
488 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
489 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
490 /// [Long Running Operation]: https://google.aip.dev/151
491 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
492 /// [`future`]: @ref google::cloud::future
493 /// [`StatusOr`]: @ref google::cloud::StatusOr
494 /// [`Status`]: @ref google::cloud::Status
495 /// [google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L767}
496 /// [google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L724}
497 /// [google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L756}
498 ///
499 // clang-format on
500 future<StatusOr<google::cloud::dialogflow::cx::v3::BatchRunTestCasesResponse>>
502 google::cloud::dialogflow::cx::v3::BatchRunTestCasesRequest const&
503 request,
504 Options opts = {});
505
506 // clang-format off
507 ///
508 /// Calculates the test coverage for an agent.
509 ///
510 /// @param request Unary RPCs, such as the one wrapped by this
511 /// function, receive a single `request` proto message which includes all
512 /// the inputs for the RPC. In this case, the proto message is a
513 /// [google.cloud.dialogflow.cx.v3.CalculateCoverageRequest].
514 /// Proto messages are converted to C++ classes by Protobuf, using the
515 /// [Protobuf mapping rules].
516 /// @param opts Optional. Override the class-level options, such as retry and
517 /// backoff policies.
518 /// @return the result of the RPC. The response message type
519 /// ([google.cloud.dialogflow.cx.v3.CalculateCoverageResponse])
520 /// is mapped to a C++ class using the [Protobuf mapping rules].
521 /// If the request fails, the [`StatusOr`] contains the error details.
522 ///
523 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
524 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
525 /// [Long Running Operation]: https://google.aip.dev/151
526 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
527 /// [`future`]: @ref google::cloud::future
528 /// [`StatusOr`]: @ref google::cloud::StatusOr
529 /// [`Status`]: @ref google::cloud::Status
530 /// [google.cloud.dialogflow.cx.v3.CalculateCoverageRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L520}
531 /// [google.cloud.dialogflow.cx.v3.CalculateCoverageResponse]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L551}
532 ///
533 // clang-format on
534 StatusOr<google::cloud::dialogflow::cx::v3::CalculateCoverageResponse>
536 google::cloud::dialogflow::cx::v3::CalculateCoverageRequest const&
537 request,
538 Options opts = {});
539
540 // clang-format off
541 ///
542 /// Imports the test cases from a Cloud Storage bucket or a local file. It
543 /// always creates new test cases and won't overwrite any existing ones. The
544 /// provided ID in the imported test case is neglected.
545 ///
546 /// This method is a [long-running
547 /// operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
548 /// The returned `Operation` type has the following method-specific fields:
549 ///
550 /// - `metadata`:
551 /// [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata]
552 /// - `response`:
553 /// [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3.ImportTestCasesResponse]
554 ///
555 /// @param request Unary RPCs, such as the one wrapped by this
556 /// function, receive a single `request` proto message which includes all
557 /// the inputs for the RPC. In this case, the proto message is a
558 /// [google.cloud.dialogflow.cx.v3.ImportTestCasesRequest].
559 /// Proto messages are converted to C++ classes by Protobuf, using the
560 /// [Protobuf mapping rules].
561 /// @param opts Optional. Override the class-level options, such as retry and
562 /// backoff policies.
563 /// @return A [`future`] that becomes satisfied when the LRO
564 /// ([Long Running Operation]) completes or the polling policy in effect
565 /// for this call is exhausted. The future is satisfied with an error if
566 /// the LRO completes with an error or the polling policy is exhausted.
567 /// In this case the [`StatusOr`] returned by the future contains the
568 /// error. If the LRO completes successfully the value of the future
569 /// contains the LRO's result. For this RPC the result is a
570 /// [google.cloud.dialogflow.cx.v3.ImportTestCasesResponse] proto message.
571 /// The C++ class representing this message is created by Protobuf, using
572 /// the [Protobuf mapping rules].
573 ///
574 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
575 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
576 /// [Long Running Operation]: https://google.aip.dev/151
577 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
578 /// [`future`]: @ref google::cloud::future
579 /// [`StatusOr`]: @ref google::cloud::StatusOr
580 /// [`Status`]: @ref google::cloud::Status
581 /// [google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L830}
582 /// [google.cloud.dialogflow.cx.v3.ImportTestCasesRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L788}
583 /// [google.cloud.dialogflow.cx.v3.ImportTestCasesResponse]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L818}
584 ///
585 // clang-format on
586 future<StatusOr<google::cloud::dialogflow::cx::v3::ImportTestCasesResponse>>
588 google::cloud::dialogflow::cx::v3::ImportTestCasesRequest const& request,
589 Options opts = {});
590
591 // clang-format off
592 ///
593 /// Exports the test cases under the agent to a Cloud Storage bucket or a local
594 /// file. Filter can be applied to export a subset of test cases.
595 ///
596 /// This method is a [long-running
597 /// operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
598 /// The returned `Operation` type has the following method-specific fields:
599 ///
600 /// - `metadata`:
601 /// [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata]
602 /// - `response`:
603 /// [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3.ExportTestCasesResponse]
604 ///
605 /// @param request Unary RPCs, such as the one wrapped by this
606 /// function, receive a single `request` proto message which includes all
607 /// the inputs for the RPC. In this case, the proto message is a
608 /// [google.cloud.dialogflow.cx.v3.ExportTestCasesRequest].
609 /// Proto messages are converted to C++ classes by Protobuf, using the
610 /// [Protobuf mapping rules].
611 /// @param opts Optional. Override the class-level options, such as retry and
612 /// backoff policies.
613 /// @return A [`future`] that becomes satisfied when the LRO
614 /// ([Long Running Operation]) completes or the polling policy in effect
615 /// for this call is exhausted. The future is satisfied with an error if
616 /// the LRO completes with an error or the polling policy is exhausted.
617 /// In this case the [`StatusOr`] returned by the future contains the
618 /// error. If the LRO completes successfully the value of the future
619 /// contains the LRO's result. For this RPC the result is a
620 /// [google.cloud.dialogflow.cx.v3.ExportTestCasesResponse] proto message.
621 /// The C++ class representing this message is created by Protobuf, using
622 /// the [Protobuf mapping rules].
623 ///
624 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
625 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
626 /// [Long Running Operation]: https://google.aip.dev/151
627 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
628 /// [`future`]: @ref google::cloud::future
629 /// [`StatusOr`]: @ref google::cloud::StatusOr
630 /// [`Status`]: @ref google::cloud::Status
631 /// [google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L918}
632 /// [google.cloud.dialogflow.cx.v3.ExportTestCasesRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L846}
633 /// [google.cloud.dialogflow.cx.v3.ExportTestCasesResponse]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L902}
634 ///
635 // clang-format on
636 future<StatusOr<google::cloud::dialogflow::cx::v3::ExportTestCasesResponse>>
638 google::cloud::dialogflow::cx::v3::ExportTestCasesRequest const& request,
639 Options opts = {});
640
641 // clang-format off
642 ///
643 /// Fetches a list of results for a given test case.
644 ///
645 /// @param parent Required. The test case to list results for.
646 /// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
647 /// testCases/<TestCase ID>`. Specify a `-` as a wildcard for TestCase ID to
648 /// list results across multiple test cases.
649 /// @param opts Optional. Override the class-level options, such as retry and
650 /// backoff policies.
651 /// @return a [StreamRange](@ref google::cloud::StreamRange)
652 /// to iterate of the results. See the documentation of this type for
653 /// details. In brief, this class has `begin()` and `end()` member
654 /// functions returning a iterator class meeting the
655 /// [input iterator requirements]. The value type for this iterator is a
656 /// [`StatusOr`] as the iteration may fail even after some values are
657 /// retrieved successfully, for example, if there is a network disconnect.
658 /// An empty set of results does not indicate an error, it indicates
659 /// that there are no resources meeting the request criteria.
660 /// On a successful iteration the `StatusOr<T>` contains elements of type
661 /// [google.cloud.dialogflow.cx.v3.TestCaseResult], or rather,
662 /// the C++ class generated by Protobuf from that type. Please consult the
663 /// Protobuf documentation for details on the [Protobuf mapping rules].
664 ///
665 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
666 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
667 /// [Long Running Operation]: https://google.aip.dev/151
668 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
669 /// [`future`]: @ref google::cloud::future
670 /// [`StatusOr`]: @ref google::cloud::StatusOr
671 /// [`Status`]: @ref google::cloud::Status
672 /// [google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L922}
673 /// [google.cloud.dialogflow.cx.v3.TestCaseResult]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L256}
674 ///
675 // clang-format on
676 StreamRange<google::cloud::dialogflow::cx::v3::TestCaseResult>
677 ListTestCaseResults(std::string const& parent, Options opts = {});
678
679 // clang-format off
680 ///
681 /// Fetches a list of results for a given test case.
682 ///
683 /// @param request Unary RPCs, such as the one wrapped by this
684 /// function, receive a single `request` proto message which includes all
685 /// the inputs for the RPC. In this case, the proto message is a
686 /// [google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest].
687 /// Proto messages are converted to C++ classes by Protobuf, using the
688 /// [Protobuf mapping rules].
689 /// @param opts Optional. Override the class-level options, such as retry and
690 /// backoff policies.
691 /// @return a [StreamRange](@ref google::cloud::StreamRange)
692 /// to iterate of the results. See the documentation of this type for
693 /// details. In brief, this class has `begin()` and `end()` member
694 /// functions returning a iterator class meeting the
695 /// [input iterator requirements]. The value type for this iterator is a
696 /// [`StatusOr`] as the iteration may fail even after some values are
697 /// retrieved successfully, for example, if there is a network disconnect.
698 /// An empty set of results does not indicate an error, it indicates
699 /// that there are no resources meeting the request criteria.
700 /// On a successful iteration the `StatusOr<T>` contains elements of type
701 /// [google.cloud.dialogflow.cx.v3.TestCaseResult], or rather,
702 /// the C++ class generated by Protobuf from that type. Please consult the
703 /// Protobuf documentation for details on the [Protobuf mapping rules].
704 ///
705 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
706 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
707 /// [Long Running Operation]: https://google.aip.dev/151
708 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
709 /// [`future`]: @ref google::cloud::future
710 /// [`StatusOr`]: @ref google::cloud::StatusOr
711 /// [`Status`]: @ref google::cloud::Status
712 /// [google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L922}
713 /// [google.cloud.dialogflow.cx.v3.TestCaseResult]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L256}
714 ///
715 // clang-format on
716 StreamRange<google::cloud::dialogflow::cx::v3::TestCaseResult>
718 google::cloud::dialogflow::cx::v3::ListTestCaseResultsRequest request,
719 Options opts = {});
720
721 // clang-format off
722 ///
723 /// Gets a test case result.
724 ///
725 /// @param name Required. The name of the testcase.
726 /// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
727 /// ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
728 /// @param opts Optional. Override the class-level options, such as retry and
729 /// backoff policies.
730 /// @return the result of the RPC. The response message type
731 /// ([google.cloud.dialogflow.cx.v3.TestCaseResult])
732 /// is mapped to a C++ class using the [Protobuf mapping rules].
733 /// If the request fails, the [`StatusOr`] contains the error details.
734 ///
735 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
736 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
737 /// [Long Running Operation]: https://google.aip.dev/151
738 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
739 /// [`future`]: @ref google::cloud::future
740 /// [`StatusOr`]: @ref google::cloud::StatusOr
741 /// [`Status`]: @ref google::cloud::Status
742 /// [google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L981}
743 /// [google.cloud.dialogflow.cx.v3.TestCaseResult]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L256}
744 ///
745 // clang-format on
746 StatusOr<google::cloud::dialogflow::cx::v3::TestCaseResult> GetTestCaseResult(
747 std::string const& name, Options opts = {});
748
749 // clang-format off
750 ///
751 /// Gets a test case result.
752 ///
753 /// @param request Unary RPCs, such as the one wrapped by this
754 /// function, receive a single `request` proto message which includes all
755 /// the inputs for the RPC. In this case, the proto message is a
756 /// [google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest].
757 /// Proto messages are converted to C++ classes by Protobuf, using the
758 /// [Protobuf mapping rules].
759 /// @param opts Optional. Override the class-level options, such as retry and
760 /// backoff policies.
761 /// @return the result of the RPC. The response message type
762 /// ([google.cloud.dialogflow.cx.v3.TestCaseResult])
763 /// is mapped to a C++ class using the [Protobuf mapping rules].
764 /// If the request fails, the [`StatusOr`] contains the error details.
765 ///
766 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
767 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
768 /// [Long Running Operation]: https://google.aip.dev/151
769 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
770 /// [`future`]: @ref google::cloud::future
771 /// [`StatusOr`]: @ref google::cloud::StatusOr
772 /// [`Status`]: @ref google::cloud::Status
773 /// [google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L981}
774 /// [google.cloud.dialogflow.cx.v3.TestCaseResult]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/test_case.proto#L256}
775 ///
776 // clang-format on
777 StatusOr<google::cloud::dialogflow::cx::v3::TestCaseResult> GetTestCaseResult(
778 google::cloud::dialogflow::cx::v3::GetTestCaseResultRequest const&
779 request,
780 Options opts = {});
781
782 private:
783 std::shared_ptr<TestCasesConnection> connection_;
784 Options options_;
785};
786
787GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
788} // namespace dialogflow_cx
789} // namespace cloud
790} // namespace google
791
792#endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_TEST_CASES_CLIENT_H
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