Dialogflow API C++ Client 2.13.0
A C++ Client Library for the Dialogflow API
Loading...
Searching...
No Matches
intents_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/intent.proto
18
19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_INTENTS_CLIENT_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_INTENTS_CLIENT_H
21
22#include "google/cloud/dialogflow_cx/intents_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 <map>
29#include <memory>
30
31namespace google {
32namespace cloud {
33namespace dialogflow_cx {
34GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
35
36///
37/// Service for managing [Intents][google.cloud.dialogflow.cx.v3.Intent].
38///
39/// @par Equality
40///
41/// Instances of this class created via copy-construction or copy-assignment
42/// always compare equal. Instances created with equal
43/// `std::shared_ptr<*Connection>` objects compare equal. Objects that compare
44/// equal share the same underlying resources.
45///
46/// @par Performance
47///
48/// Creating a new instance of this class is a relatively expensive operation,
49/// new objects establish new connections to the service. In contrast,
50/// copy-construction, move-construction, and the corresponding assignment
51/// operations are relatively efficient as the copies share all underlying
52/// resources.
53///
54/// @par Thread Safety
55///
56/// Concurrent access to different instances of this class, even if they compare
57/// equal, is guaranteed to work. Two or more threads operating on the same
58/// instance of this class is not guaranteed to work. Since copy-construction
59/// and move-construction is a relatively efficient operation, consider using
60/// such a copy when using this class from multiple threads.
61///
62/// [google.cloud.dialogflow.cx.v3.Intent]:
63/// @googleapis_reference_link{google/cloud/dialogflow/cx/v3/intent.proto#L102}
64///
65class IntentsClient {
66 public:
67 explicit IntentsClient(std::shared_ptr<IntentsConnection> connection,
68 Options opts = {});
70
71 ///@{
72 /// @name Copy and move support
73 IntentsClient(IntentsClient const&) = default;
74 IntentsClient& operator=(IntentsClient const&) = default;
75 IntentsClient(IntentsClient&&) = default;
77 ///@}
78
79 ///@{
80 /// @name Equality
81 friend bool operator==(IntentsClient const& a, IntentsClient const& b) {
82 return a.connection_ == b.connection_;
83 }
84 friend bool operator!=(IntentsClient const& a, IntentsClient const& b) {
85 return !(a == b);
86 }
87 ///@}
88
89 // clang-format off
90 ///
91 /// Returns the list of all intents in the specified agent.
92 ///
93 /// @param parent Required. The agent to list all intents for.
94 /// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
95 /// @param opts Optional. Override the class-level options, such as retry and
96 /// backoff policies.
97 /// @return a [StreamRange](@ref google::cloud::StreamRange)
98 /// to iterate of the results. See the documentation of this type for
99 /// details. In brief, this class has `begin()` and `end()` member
100 /// functions returning a iterator class meeting the
101 /// [input iterator requirements]. The value type for this iterator is a
102 /// [`StatusOr`] as the iteration may fail even after some values are
103 /// retrieved successfully, for example, if there is a network disconnect.
104 /// An empty set of results does not indicate an error, it indicates
105 /// that there are no resources meeting the request criteria.
106 /// On a successful iteration the `StatusOr<T>` contains elements of type
107 /// [google.cloud.dialogflow.cx.v3.Intent], or rather,
108 /// the C++ class generated by Protobuf from that type. Please consult the
109 /// Protobuf documentation for details on the [Protobuf mapping rules].
110 ///
111 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
112 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
113 /// [Long Running Operation]: https://google.aip.dev/151
114 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
115 /// [`future`]: @ref google::cloud::future
116 /// [`StatusOr`]: @ref google::cloud::StatusOr
117 /// [`Status`]: @ref google::cloud::Status
118 /// [google.cloud.dialogflow.cx.v3.Intent]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/intent.proto#L102}
119 /// [google.cloud.dialogflow.cx.v3.ListIntentsRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/intent.proto#L242}
120 ///
121 // clang-format on
122 StreamRange<google::cloud::dialogflow::cx::v3::Intent> ListIntents(
123 std::string const& parent, Options opts = {});
124
125 // clang-format off
126 ///
127 /// Returns the list of all intents in the specified agent.
128 ///
129 /// @param request Unary RPCs, such as the one wrapped by this
130 /// function, receive a single `request` proto message which includes all
131 /// the inputs for the RPC. In this case, the proto message is a
132 /// [google.cloud.dialogflow.cx.v3.ListIntentsRequest].
133 /// Proto messages are converted to C++ classes by Protobuf, using the
134 /// [Protobuf mapping rules].
135 /// @param opts Optional. Override the class-level options, such as retry and
136 /// backoff policies.
137 /// @return a [StreamRange](@ref google::cloud::StreamRange)
138 /// to iterate of the results. See the documentation of this type for
139 /// details. In brief, this class has `begin()` and `end()` member
140 /// functions returning a iterator class meeting the
141 /// [input iterator requirements]. The value type for this iterator is a
142 /// [`StatusOr`] as the iteration may fail even after some values are
143 /// retrieved successfully, for example, if there is a network disconnect.
144 /// An empty set of results does not indicate an error, it indicates
145 /// that there are no resources meeting the request criteria.
146 /// On a successful iteration the `StatusOr<T>` contains elements of type
147 /// [google.cloud.dialogflow.cx.v3.Intent], or rather,
148 /// the C++ class generated by Protobuf from that type. Please consult the
149 /// Protobuf documentation for details on the [Protobuf mapping rules].
150 ///
151 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
152 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
153 /// [Long Running Operation]: https://google.aip.dev/151
154 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
155 /// [`future`]: @ref google::cloud::future
156 /// [`StatusOr`]: @ref google::cloud::StatusOr
157 /// [`Status`]: @ref google::cloud::Status
158 /// [google.cloud.dialogflow.cx.v3.Intent]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/intent.proto#L102}
159 /// [google.cloud.dialogflow.cx.v3.ListIntentsRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/intent.proto#L242}
160 ///
161 // clang-format on
162 StreamRange<google::cloud::dialogflow::cx::v3::Intent> ListIntents(
163 google::cloud::dialogflow::cx::v3::ListIntentsRequest request,
164 Options opts = {});
165
166 // clang-format off
167 ///
168 /// Retrieves the specified intent.
169 ///
170 /// @param name Required. The name of the intent.
171 /// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
172 /// ID>/intents/<Intent ID>`.
173 /// @param opts Optional. Override the class-level options, such as retry and
174 /// backoff policies.
175 /// @return the result of the RPC. The response message type
176 /// ([google.cloud.dialogflow.cx.v3.Intent])
177 /// is mapped to a C++ class using the [Protobuf mapping rules].
178 /// If the request fails, the [`StatusOr`] contains the error details.
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.GetIntentRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/intent.proto#L289}
188 /// [google.cloud.dialogflow.cx.v3.Intent]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/intent.proto#L102}
189 ///
190 // clang-format on
191 StatusOr<google::cloud::dialogflow::cx::v3::Intent> GetIntent(
192 std::string const& name, Options opts = {});
193
194 // clang-format off
195 ///
196 /// Retrieves the specified intent.
197 ///
198 /// @param request Unary RPCs, such as the one wrapped by this
199 /// function, receive a single `request` proto message which includes all
200 /// the inputs for the RPC. In this case, the proto message is a
201 /// [google.cloud.dialogflow.cx.v3.GetIntentRequest].
202 /// Proto messages are converted to C++ classes by Protobuf, using the
203 /// [Protobuf mapping rules].
204 /// @param opts Optional. Override the class-level options, such as retry and
205 /// backoff policies.
206 /// @return the result of the RPC. The response message type
207 /// ([google.cloud.dialogflow.cx.v3.Intent])
208 /// is mapped to a C++ class using the [Protobuf mapping rules].
209 /// If the request fails, the [`StatusOr`] contains the error details.
210 ///
211 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
212 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
213 /// [Long Running Operation]: https://google.aip.dev/151
214 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
215 /// [`future`]: @ref google::cloud::future
216 /// [`StatusOr`]: @ref google::cloud::StatusOr
217 /// [`Status`]: @ref google::cloud::Status
218 /// [google.cloud.dialogflow.cx.v3.GetIntentRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/intent.proto#L289}
219 /// [google.cloud.dialogflow.cx.v3.Intent]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/intent.proto#L102}
220 ///
221 // clang-format on
222 StatusOr<google::cloud::dialogflow::cx::v3::Intent> GetIntent(
223 google::cloud::dialogflow::cx::v3::GetIntentRequest const& request,
224 Options opts = {});
225
226 // clang-format off
227 ///
228 /// Creates an intent in the specified agent.
229 ///
230 /// Note: You should always train a flow prior to sending it queries. See the
231 /// [training
232 /// documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
233 ///
234 /// @param parent Required. The agent to create an intent for.
235 /// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
236 /// @param intent Required. The intent to create.
237 /// @param opts Optional. Override the class-level options, such as retry and
238 /// backoff policies.
239 /// @return the result of the RPC. The response message type
240 /// ([google.cloud.dialogflow.cx.v3.Intent])
241 /// is mapped to a C++ class using the [Protobuf mapping rules].
242 /// If the request fails, the [`StatusOr`] contains the error details.
243 ///
244 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
245 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
246 /// [Long Running Operation]: https://google.aip.dev/151
247 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
248 /// [`future`]: @ref google::cloud::future
249 /// [`StatusOr`]: @ref google::cloud::StatusOr
250 /// [`Status`]: @ref google::cloud::Status
251 /// [google.cloud.dialogflow.cx.v3.CreateIntentRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/intent.proto#L315}
252 /// [google.cloud.dialogflow.cx.v3.Intent]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/intent.proto#L102}
253 ///
254 // clang-format on
255 StatusOr<google::cloud::dialogflow::cx::v3::Intent> CreateIntent(
256 std::string const& parent,
257 google::cloud::dialogflow::cx::v3::Intent const& intent,
258 Options opts = {});
259
260 // clang-format off
261 ///
262 /// Creates an intent in the specified agent.
263 ///
264 /// Note: You should always train a flow prior to sending it queries. See the
265 /// [training
266 /// documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
267 ///
268 /// @param request Unary RPCs, such as the one wrapped by this
269 /// function, receive a single `request` proto message which includes all
270 /// the inputs for the RPC. In this case, the proto message is a
271 /// [google.cloud.dialogflow.cx.v3.CreateIntentRequest].
272 /// Proto messages are converted to C++ classes by Protobuf, using the
273 /// [Protobuf mapping rules].
274 /// @param opts Optional. Override the class-level options, such as retry and
275 /// backoff policies.
276 /// @return the result of the RPC. The response message type
277 /// ([google.cloud.dialogflow.cx.v3.Intent])
278 /// is mapped to a C++ class using the [Protobuf mapping rules].
279 /// If the request fails, the [`StatusOr`] contains the error details.
280 ///
281 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
282 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
283 /// [Long Running Operation]: https://google.aip.dev/151
284 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
285 /// [`future`]: @ref google::cloud::future
286 /// [`StatusOr`]: @ref google::cloud::StatusOr
287 /// [`Status`]: @ref google::cloud::Status
288 /// [google.cloud.dialogflow.cx.v3.CreateIntentRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/intent.proto#L315}
289 /// [google.cloud.dialogflow.cx.v3.Intent]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/intent.proto#L102}
290 ///
291 // clang-format on
292 StatusOr<google::cloud::dialogflow::cx::v3::Intent> CreateIntent(
293 google::cloud::dialogflow::cx::v3::CreateIntentRequest const& request,
294 Options opts = {});
295
296 // clang-format off
297 ///
298 /// Updates the specified intent.
299 ///
300 /// Note: You should always train a flow prior to sending it queries. See the
301 /// [training
302 /// documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
303 ///
304 /// @param intent Required. The intent to update.
305 /// @param update_mask The mask to control which fields get updated. If the mask is not present,
306 /// all fields will be updated.
307 /// @param opts Optional. Override the class-level options, such as retry and
308 /// backoff policies.
309 /// @return the result of the RPC. The response message type
310 /// ([google.cloud.dialogflow.cx.v3.Intent])
311 /// is mapped to a C++ class using the [Protobuf mapping rules].
312 /// If the request fails, the [`StatusOr`] contains the error details.
313 ///
314 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
315 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
316 /// [Long Running Operation]: https://google.aip.dev/151
317 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
318 /// [`future`]: @ref google::cloud::future
319 /// [`StatusOr`]: @ref google::cloud::StatusOr
320 /// [`Status`]: @ref google::cloud::Status
321 /// [google.cloud.dialogflow.cx.v3.Intent]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/intent.proto#L102}
322 /// [google.cloud.dialogflow.cx.v3.UpdateIntentRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/intent.proto#L342}
323 ///
324 // clang-format on
325 StatusOr<google::cloud::dialogflow::cx::v3::Intent> UpdateIntent(
326 google::cloud::dialogflow::cx::v3::Intent const& intent,
327 google::protobuf::FieldMask const& update_mask, Options opts = {});
328
329 // clang-format off
330 ///
331 /// Updates the specified intent.
332 ///
333 /// Note: You should always train a flow prior to sending it queries. See the
334 /// [training
335 /// documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
336 ///
337 /// @param request Unary RPCs, such as the one wrapped by this
338 /// function, receive a single `request` proto message which includes all
339 /// the inputs for the RPC. In this case, the proto message is a
340 /// [google.cloud.dialogflow.cx.v3.UpdateIntentRequest].
341 /// Proto messages are converted to C++ classes by Protobuf, using the
342 /// [Protobuf mapping rules].
343 /// @param opts Optional. Override the class-level options, such as retry and
344 /// backoff policies.
345 /// @return the result of the RPC. The response message type
346 /// ([google.cloud.dialogflow.cx.v3.Intent])
347 /// is mapped to a C++ class using the [Protobuf mapping rules].
348 /// If the request fails, the [`StatusOr`] contains the error details.
349 ///
350 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
351 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
352 /// [Long Running Operation]: https://google.aip.dev/151
353 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
354 /// [`future`]: @ref google::cloud::future
355 /// [`StatusOr`]: @ref google::cloud::StatusOr
356 /// [`Status`]: @ref google::cloud::Status
357 /// [google.cloud.dialogflow.cx.v3.Intent]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/intent.proto#L102}
358 /// [google.cloud.dialogflow.cx.v3.UpdateIntentRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/intent.proto#L342}
359 ///
360 // clang-format on
361 StatusOr<google::cloud::dialogflow::cx::v3::Intent> UpdateIntent(
362 google::cloud::dialogflow::cx::v3::UpdateIntentRequest const& request,
363 Options opts = {});
364
365 // clang-format off
366 ///
367 /// Deletes the specified intent.
368 ///
369 /// Note: You should always train a flow prior to sending it queries. See the
370 /// [training
371 /// documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
372 ///
373 /// @param name Required. The name of the intent to delete.
374 /// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
375 /// ID>/intents/<Intent ID>`.
376 /// @param opts Optional. Override the class-level options, such as retry and
377 /// backoff policies.
378 /// @return a [`Status`] object. If the request failed, the
379 /// status contains the details of the failure.
380 ///
381 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
382 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
383 /// [Long Running Operation]: https://google.aip.dev/151
384 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
385 /// [`future`]: @ref google::cloud::future
386 /// [`StatusOr`]: @ref google::cloud::StatusOr
387 /// [`Status`]: @ref google::cloud::Status
388 /// [google.cloud.dialogflow.cx.v3.DeleteIntentRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/intent.proto#L364}
389 ///
390 // clang-format on
391 Status DeleteIntent(std::string const& name, Options opts = {});
392
393 // clang-format off
394 ///
395 /// Deletes the specified intent.
396 ///
397 /// Note: You should always train a flow prior to sending it queries. See the
398 /// [training
399 /// documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
400 ///
401 /// @param request Unary RPCs, such as the one wrapped by this
402 /// function, receive a single `request` proto message which includes all
403 /// the inputs for the RPC. In this case, the proto message is a
404 /// [google.cloud.dialogflow.cx.v3.DeleteIntentRequest].
405 /// Proto messages are converted to C++ classes by Protobuf, using the
406 /// [Protobuf mapping rules].
407 /// @param opts Optional. Override the class-level options, such as retry and
408 /// backoff policies.
409 /// @return a [`Status`] object. If the request failed, the
410 /// status contains the details of the failure.
411 ///
412 /// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
413 /// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
414 /// [Long Running Operation]: https://google.aip.dev/151
415 /// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
416 /// [`future`]: @ref google::cloud::future
417 /// [`StatusOr`]: @ref google::cloud::StatusOr
418 /// [`Status`]: @ref google::cloud::Status
419 /// [google.cloud.dialogflow.cx.v3.DeleteIntentRequest]: @googleapis_reference_link{google/cloud/dialogflow/cx/v3/intent.proto#L364}
420 ///
421 // clang-format on
423 google::cloud::dialogflow::cx::v3::DeleteIntentRequest const& request,
424 Options opts = {});
425
426 private:
427 std::shared_ptr<IntentsConnection> connection_;
428 Options options_;
429};
430
431GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
432} // namespace dialogflow_cx
433} // namespace cloud
434} // namespace google
435
436#endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_INTENTS_CLIENT_H
Service for managing Intents.
Definition: intents_client.h:65
IntentsClient & operator=(IntentsClient const &)=default
IntentsClient(std::shared_ptr< IntentsConnection > connection, Options opts={})
friend bool operator==(IntentsClient const &a, IntentsClient const &b)
Definition: intents_client.h:81
IntentsClient & operator=(IntentsClient &&)=default
StatusOr< google::cloud::dialogflow::cx::v3::Intent > CreateIntent(google::cloud::dialogflow::cx::v3::CreateIntentRequest const &request, Options opts={})
Creates an intent in the specified agent.
Status DeleteIntent(google::cloud::dialogflow::cx::v3::DeleteIntentRequest const &request, Options opts={})
Deletes the specified intent.
friend bool operator!=(IntentsClient const &a, IntentsClient const &b)
Definition: intents_client.h:84
IntentsClient(IntentsClient &&)=default
StatusOr< google::cloud::dialogflow::cx::v3::Intent > UpdateIntent(google::cloud::dialogflow::cx::v3::Intent const &intent, google::protobuf::FieldMask const &update_mask, Options opts={})
Updates the specified intent.
Status DeleteIntent(std::string const &name, Options opts={})
Deletes the specified intent.
StreamRange< google::cloud::dialogflow::cx::v3::Intent > ListIntents(google::cloud::dialogflow::cx::v3::ListIntentsRequest request, Options opts={})
Returns the list of all intents in the specified agent.
IntentsClient(IntentsClient const &)=default
StatusOr< google::cloud::dialogflow::cx::v3::Intent > GetIntent(google::cloud::dialogflow::cx::v3::GetIntentRequest const &request, Options opts={})
Retrieves the specified intent.
StatusOr< google::cloud::dialogflow::cx::v3::Intent > CreateIntent(std::string const &parent, google::cloud::dialogflow::cx::v3::Intent const &intent, Options opts={})
Creates an intent in the specified agent.
StatusOr< google::cloud::dialogflow::cx::v3::Intent > GetIntent(std::string const &name, Options opts={})
Retrieves the specified intent.
StatusOr< google::cloud::dialogflow::cx::v3::Intent > UpdateIntent(google::cloud::dialogflow::cx::v3::UpdateIntentRequest const &request, Options opts={})
Updates the specified intent.
StreamRange< google::cloud::dialogflow::cx::v3::Intent > ListIntents(std::string const &parent, Options opts={})
Returns the list of all intents in the specified agent.
The IntentsConnection object for IntentsClient.
Definition: intents_connection.h:61
Definition: agents_client.h:33