19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_AGENTS_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_AGENTS_CONNECTION_H
22#include "google/cloud/dialogflow_cx/agents_connection_idempotency_policy.h"
23#include "google/cloud/dialogflow_cx/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/cx/v3/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_cx_internal::AgentsRetryTraits>;
45using AgentsLimitedTimeRetryPolicy =
47 dialogflow_cx_internal::AgentsRetryTraits>;
49using AgentsLimitedErrorCountRetryPolicy =
50 ::
google::
cloud::internal::LimitedErrorCountRetryPolicy<
51 dialogflow_cx_internal::AgentsRetryTraits>;
54
55
56
57
58
59
60
61
62
63
64
72 google::
cloud::dialogflow::cx::v3::ListAgentsRequest request);
75 google::
cloud::dialogflow::cx::v3::GetAgentRequest
const& request);
78 google::
cloud::dialogflow::cx::v3::CreateAgentRequest
const& request);
81 google::
cloud::dialogflow::cx::v3::UpdateAgentRequest
const& request);
84 google::
cloud::dialogflow::cx::v3::DeleteAgentRequest
const& request);
87 StatusOr<
google::
cloud::dialogflow::cx::v3::ExportAgentResponse>>
89 google::
cloud::dialogflow::cx::v3::ExportAgentRequest
const& request);
92 google::
cloud::dialogflow::cx::v3::RestoreAgentRequest
const& request);
94 virtual StatusOr<
google::
cloud::dialogflow::cx::v3::AgentValidationResult>
96 google::
cloud::dialogflow::cx::v3::ValidateAgentRequest
const& request);
98 virtual StatusOr<
google::
cloud::dialogflow::cx::v3::AgentValidationResult>
100 google::
cloud::dialogflow::cx::v3::GetAgentValidationResultRequest
const&
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
127 std::string
const& location,
Options options
= {});
130
131
132
133
134
135
138GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
The AgentsConnection object for AgentsClient.
Definition: agents_connection.h:65
virtual Options options()
Definition: agents_connection.h:69
virtual ~AgentsConnection()=0
virtual StatusOr< google::cloud::dialogflow::cx::v3::AgentValidationResult > ValidateAgent(google::cloud::dialogflow::cx::v3::ValidateAgentRequest const &request)
virtual Status DeleteAgent(google::cloud::dialogflow::cx::v3::DeleteAgentRequest const &request)
virtual StatusOr< google::cloud::dialogflow::cx::v3::Agent > GetAgent(google::cloud::dialogflow::cx::v3::GetAgentRequest const &request)
virtual StatusOr< google::cloud::dialogflow::cx::v3::Agent > CreateAgent(google::cloud::dialogflow::cx::v3::CreateAgentRequest const &request)
virtual StatusOr< google::cloud::dialogflow::cx::v3::Agent > UpdateAgent(google::cloud::dialogflow::cx::v3::UpdateAgentRequest const &request)
virtual future< StatusOr< google::cloud::dialogflow::cx::v3::ExportAgentResponse > > ExportAgent(google::cloud::dialogflow::cx::v3::ExportAgentRequest const &request)
virtual StreamRange< google::cloud::dialogflow::cx::v3::Agent > ListAgents(google::cloud::dialogflow::cx::v3::ListAgentsRequest request)
virtual StatusOr< google::cloud::dialogflow::cx::v3::AgentValidationResult > GetAgentValidationResult(google::cloud::dialogflow::cx::v3::GetAgentValidationResultRequest const &request)
virtual future< StatusOr< google::protobuf::Struct > > RestoreAgent(google::cloud::dialogflow::cx::v3::RestoreAgentRequest const &request)
friend friend class future
Definition: agents_client.h:33
std::shared_ptr< AgentsConnection > MakeAgentsConnection(std::string const &location, Options options={})
A factory function to construct an object of type AgentsConnection.
std::shared_ptr< AgentsConnection > MakeAgentsConnection(Options options={})
A backwards-compatible version of the previous factory function.