19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_SESSIONS_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_SESSIONS_CONNECTION_H
22#include "google/cloud/dialogflow_cx/internal/sessions_retry_traits.h"
23#include "google/cloud/dialogflow_cx/sessions_connection_idempotency_policy.h"
24#include "google/cloud/backoff_policy.h"
25#include "google/cloud/internal/async_read_write_stream_impl.h"
26#include "google/cloud/options.h"
27#include "google/cloud/status_or.h"
28#include "google/cloud/version.h"
29#include <google/cloud/dialogflow/cx/v3/session.pb.h>
36GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
38using SessionsRetryPolicy = ::
google::
cloud::internal::TraitBasedRetryPolicy<
39 dialogflow_cx_internal::SessionsRetryTraits>;
41using SessionsLimitedTimeRetryPolicy =
43 dialogflow_cx_internal::SessionsRetryTraits>;
45using SessionsLimitedErrorCountRetryPolicy =
46 ::
google::
cloud::internal::LimitedErrorCountRetryPolicy<
47 dialogflow_cx_internal::SessionsRetryTraits>;
50
51
52
53
54
55
56
57
58
59
60
67 virtual StatusOr<
google::
cloud::dialogflow::cx::v3::DetectIntentResponse>
69 google::
cloud::dialogflow::cx::v3::DetectIntentRequest
const& request);
72 google::
cloud::dialogflow::cx::v3::StreamingDetectIntentRequest,
73 google::
cloud::dialogflow::cx::v3::StreamingDetectIntentResponse>>
76 virtual StatusOr<
google::
cloud::dialogflow::cx::v3::MatchIntentResponse>
78 google::
cloud::dialogflow::cx::v3::MatchIntentRequest
const& request);
80 virtual StatusOr<
google::
cloud::dialogflow::cx::v3::FulfillIntentResponse>
82 google::
cloud::dialogflow::cx::v3::FulfillIntentRequest
const& request);
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
108 std::string
const& location,
Options options
= {});
111
112
113
114
115
116
120GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
The SessionsConnection object for SessionsClient.
Definition: sessions_connection.h:61
virtual Options options()
Definition: sessions_connection.h:65
virtual StatusOr< google::cloud::dialogflow::cx::v3::MatchIntentResponse > MatchIntent(google::cloud::dialogflow::cx::v3::MatchIntentRequest const &request)
virtual std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< google::cloud::dialogflow::cx::v3::StreamingDetectIntentRequest, google::cloud::dialogflow::cx::v3::StreamingDetectIntentResponse > > AsyncStreamingDetectIntent()
virtual StatusOr< google::cloud::dialogflow::cx::v3::FulfillIntentResponse > FulfillIntent(google::cloud::dialogflow::cx::v3::FulfillIntentRequest const &request)
virtual ~SessionsConnection()=0
virtual StatusOr< google::cloud::dialogflow::cx::v3::DetectIntentResponse > DetectIntent(google::cloud::dialogflow::cx::v3::DetectIntentRequest const &request)
Definition: agents_client.h:33
std::shared_ptr< SessionsConnection > MakeSessionsConnection(std::string const &location, Options options={})
A factory function to construct an object of type SessionsConnection.
std::shared_ptr< SessionsConnection > MakeSessionsConnection(Options options={})
A backwards-compatible version of the previous factory function.