19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_ES_SESSIONS_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_ES_SESSIONS_CONNECTION_H
22#include "google/cloud/dialogflow_es/internal/sessions_retry_traits.h"
23#include "google/cloud/dialogflow_es/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/v2/session.pb.h>
36GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
38using SessionsRetryPolicy = ::
google::
cloud::internal::TraitBasedRetryPolicy<
39 dialogflow_es_internal::SessionsRetryTraits>;
41using SessionsLimitedTimeRetryPolicy =
43 dialogflow_es_internal::SessionsRetryTraits>;
45using SessionsLimitedErrorCountRetryPolicy =
46 ::
google::
cloud::internal::LimitedErrorCountRetryPolicy<
47 dialogflow_es_internal::SessionsRetryTraits>;
50
51
52
53
54
55
56
57
58
59
60
67 virtual StatusOr<
google::
cloud::dialogflow::v2::DetectIntentResponse>
69 google::
cloud::dialogflow::v2::DetectIntentRequest
const& request);
72 google::
cloud::dialogflow::v2::StreamingDetectIntentRequest,
73 google::
cloud::dialogflow::v2::StreamingDetectIntentResponse>>
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
100 std::string
const& location,
Options options
= {});
103
104
105
106
107
108
112GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
The SessionsConnection object for SessionsClient.
Definition: sessions_connection.h:61
virtual StatusOr< google::cloud::dialogflow::v2::DetectIntentResponse > DetectIntent(google::cloud::dialogflow::v2::DetectIntentRequest const &request)
virtual Options options()
Definition: sessions_connection.h:65
virtual ~SessionsConnection()=0
virtual std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< google::cloud::dialogflow::v2::StreamingDetectIntentRequest, google::cloud::dialogflow::v2::StreamingDetectIntentResponse > > AsyncStreamingDetectIntent()
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.