19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_SESSIONS_CLIENT_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_SESSIONS_CLIENT_H
22#include "google/cloud/dialogflow_cx/sessions_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"
33GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
84 return a.connection_ == b.connection_;
126 StatusOr<
google::
cloud::dialogflow::cx::v3::DetectIntentResponse>
128 google::
cloud::dialogflow::cx::v3::DetectIntentRequest
const& request,
164 google::
cloud::dialogflow::cx::v3::StreamingDetectIntentRequest,
165 google::
cloud::dialogflow::cx::v3::StreamingDetectIntentResponse>>
198 google::
cloud::dialogflow::cx::v3::MatchIntentRequest
const& request,
237 StatusOr<
google::
cloud::dialogflow::cx::v3::FulfillIntentResponse>
239 google::
cloud::dialogflow::cx::v3::FulfillIntentRequest
const& request,
247GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
A session represents an interaction with a user.
Definition: sessions_client.h:67
StatusOr< google::cloud::dialogflow::cx::v3::FulfillIntentResponse > FulfillIntent(google::cloud::dialogflow::cx::v3::FulfillIntentRequest const &request, Options opts={})
Fulfills a matched intent returned by MatchIntent.
SessionsClient & operator=(SessionsClient const &)=default
friend bool operator!=(SessionsClient const &a, SessionsClient const &b)
Definition: sessions_client.h:86
StatusOr< google::cloud::dialogflow::cx::v3::DetectIntentResponse > DetectIntent(google::cloud::dialogflow::cx::v3::DetectIntentRequest const &request, Options opts={})
Processes a natural language query and returns structured, actionable data as a result.
std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< google::cloud::dialogflow::cx::v3::StreamingDetectIntentRequest, google::cloud::dialogflow::cx::v3::StreamingDetectIntentResponse > > AsyncStreamingDetectIntent(Options opts={})
Processes a natural language query in audio format in a streaming fashion and returns structured,...
SessionsClient & operator=(SessionsClient &&)=default
SessionsClient(std::shared_ptr< SessionsConnection > connection, Options opts={})
friend bool operator==(SessionsClient const &a, SessionsClient const &b)
Definition: sessions_client.h:83
SessionsClient(SessionsClient const &)=default
SessionsClient(SessionsClient &&)=default
StatusOr< google::cloud::dialogflow::cx::v3::MatchIntentResponse > MatchIntent(google::cloud::dialogflow::cx::v3::MatchIntentRequest const &request, Options opts={})
Returns preliminary intent match results, doesn't change the session status.
The SessionsConnection object for SessionsClient.
Definition: sessions_connection.h:61
Definition: agents_client.h:33