19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_ES_AGENTS_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_ES_AGENTS_CONNECTION_H
22#include "google/cloud/dialogflow_es/agents_connection_idempotency_policy.h"
23#include "google/cloud/dialogflow_es/internal/agents_retry_traits.h"
24#include "google/cloud/backoff_policy.h"
25#include "google/cloud/future.h"
26#include "google/cloud/options.h"
27#include "google/cloud/polling_policy.h"
28#include "google/cloud/status_or.h"
29#include "google/cloud/stream_range.h"
30#include "google/cloud/version.h"
31#include <google/cloud/dialogflow/v2/agent.pb.h>
32#include <google/longrunning/operations.grpc.pb.h>
33#include <google/protobuf/struct.pb.h>
40GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
42using AgentsRetryPolicy = ::
google::
cloud::internal::TraitBasedRetryPolicy<
43 dialogflow_es_internal::AgentsRetryTraits>;
45using AgentsLimitedTimeRetryPolicy =
47 dialogflow_es_internal::AgentsRetryTraits>;
49using AgentsLimitedErrorCountRetryPolicy =
50 ::
google::
cloud::internal::LimitedErrorCountRetryPolicy<
51 dialogflow_es_internal::AgentsRetryTraits>;
54
55
56
57
58
59
60
61
62
63
64
72 google::
cloud::dialogflow::v2::GetAgentRequest
const& request);
75 google::
cloud::dialogflow::v2::SetAgentRequest
const& request);
78 google::
cloud::dialogflow::v2::DeleteAgentRequest
const& request);
81 google::
cloud::dialogflow::v2::SearchAgentsRequest request);
84 google::
cloud::dialogflow::v2::TrainAgentRequest
const& request);
90 google::
cloud::dialogflow::v2::ImportAgentRequest
const& request);
93 google::
cloud::dialogflow::v2::RestoreAgentRequest
const& request);
95 virtual StatusOr<
google::
cloud::dialogflow::v2::ValidationResult>
97 google::
cloud::dialogflow::v2::GetValidationResultRequest
const& request);
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
123 std::string
const& location,
Options options
= {});
126
127
128
129
130
131
134GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
The AgentsConnection object for AgentsClient.
Definition: agents_connection.h:65
virtual future< StatusOr< google::cloud::dialogflow::v2::ExportAgentResponse > > ExportAgent(google::cloud::dialogflow::v2::ExportAgentRequest const &request)
virtual Status DeleteAgent(google::cloud::dialogflow::v2::DeleteAgentRequest const &request)
virtual future< StatusOr< google::protobuf::Struct > > RestoreAgent(google::cloud::dialogflow::v2::RestoreAgentRequest const &request)
virtual future< StatusOr< google::protobuf::Struct > > ImportAgent(google::cloud::dialogflow::v2::ImportAgentRequest const &request)
virtual StreamRange< google::cloud::dialogflow::v2::Agent > SearchAgents(google::cloud::dialogflow::v2::SearchAgentsRequest request)
virtual future< StatusOr< google::protobuf::Struct > > TrainAgent(google::cloud::dialogflow::v2::TrainAgentRequest const &request)
virtual ~AgentsConnection()=0
virtual StatusOr< google::cloud::dialogflow::v2::Agent > GetAgent(google::cloud::dialogflow::v2::GetAgentRequest const &request)
virtual StatusOr< google::cloud::dialogflow::v2::ValidationResult > GetValidationResult(google::cloud::dialogflow::v2::GetValidationResultRequest const &request)
virtual Options options()
Definition: agents_connection.h:69
virtual StatusOr< google::cloud::dialogflow::v2::Agent > SetAgent(google::cloud::dialogflow::v2::SetAgentRequest const &request)
friend friend class future
Definition: agents_client.h:33
std::shared_ptr< AgentsConnection > MakeAgentsConnection(Options options={})
A backwards-compatible version of the previous factory function.
std::shared_ptr< AgentsConnection > MakeAgentsConnection(std::string const &location, Options options={})
A factory function to construct an object of type AgentsConnection.