19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_ENVIRONMENTS_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_ENVIRONMENTS_CONNECTION_H
22#include "google/cloud/dialogflow_cx/environments_connection_idempotency_policy.h"
23#include "google/cloud/dialogflow_cx/internal/environments_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/environment.pb.h>
32#include <google/longrunning/operations.grpc.pb.h>
33#include <google/protobuf/struct.pb.h>
40GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
42using EnvironmentsRetryPolicy =
44 dialogflow_cx_internal::EnvironmentsRetryTraits>;
46using EnvironmentsLimitedTimeRetryPolicy =
48 dialogflow_cx_internal::EnvironmentsRetryTraits>;
50using EnvironmentsLimitedErrorCountRetryPolicy =
51 ::
google::
cloud::internal::LimitedErrorCountRetryPolicy<
52 dialogflow_cx_internal::EnvironmentsRetryTraits>;
55
56
57
58
59
60
61
62
63
64
65
72 virtual StreamRange<
google::
cloud::dialogflow::cx::v3::Environment>
74 google::
cloud::dialogflow::cx::v3::ListEnvironmentsRequest request);
76 virtual StatusOr<
google::
cloud::dialogflow::cx::v3::Environment>
78 google::
cloud::dialogflow::cx::v3::GetEnvironmentRequest
const& request);
82 google::
cloud::dialogflow::cx::v3::CreateEnvironmentRequest
const&
87 google::
cloud::dialogflow::cx::v3::UpdateEnvironmentRequest
const&
91 google::
cloud::dialogflow::cx::v3::DeleteEnvironmentRequest
const&
94 virtual StreamRange<
google::
cloud::dialogflow::cx::v3::Environment>
96 google::
cloud::dialogflow::cx::v3::LookupEnvironmentHistoryRequest
100 StatusOr<
google::
cloud::dialogflow::cx::v3::RunContinuousTestResponse>>
102 google::
cloud::dialogflow::cx::v3::RunContinuousTestRequest
const&
105 virtual StreamRange<
google::
cloud::dialogflow::cx::v3::ContinuousTestResult>
107 google::
cloud::dialogflow::cx::v3::ListContinuousTestResultsRequest
111 StatusOr<
google::
cloud::dialogflow::cx::v3::DeployFlowResponse>>
113 google::
cloud::dialogflow::cx::v3::DeployFlowRequest
const& request);
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
139 std::string
const& location,
Options options
= {});
142
143
144
145
146
147
151GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
The EnvironmentsConnection object for EnvironmentsClient.
Definition: environments_connection.h:66
virtual StreamRange< google::cloud::dialogflow::cx::v3::ContinuousTestResult > ListContinuousTestResults(google::cloud::dialogflow::cx::v3::ListContinuousTestResultsRequest request)
virtual future< StatusOr< google::cloud::dialogflow::cx::v3::Environment > > CreateEnvironment(google::cloud::dialogflow::cx::v3::CreateEnvironmentRequest const &request)
virtual ~EnvironmentsConnection()=0
virtual future< StatusOr< google::cloud::dialogflow::cx::v3::DeployFlowResponse > > DeployFlow(google::cloud::dialogflow::cx::v3::DeployFlowRequest const &request)
virtual StreamRange< google::cloud::dialogflow::cx::v3::Environment > ListEnvironments(google::cloud::dialogflow::cx::v3::ListEnvironmentsRequest request)
virtual future< StatusOr< google::cloud::dialogflow::cx::v3::Environment > > UpdateEnvironment(google::cloud::dialogflow::cx::v3::UpdateEnvironmentRequest const &request)
virtual Status DeleteEnvironment(google::cloud::dialogflow::cx::v3::DeleteEnvironmentRequest const &request)
virtual future< StatusOr< google::cloud::dialogflow::cx::v3::RunContinuousTestResponse > > RunContinuousTest(google::cloud::dialogflow::cx::v3::RunContinuousTestRequest const &request)
virtual Options options()
Definition: environments_connection.h:70
virtual StreamRange< google::cloud::dialogflow::cx::v3::Environment > LookupEnvironmentHistory(google::cloud::dialogflow::cx::v3::LookupEnvironmentHistoryRequest request)
virtual StatusOr< google::cloud::dialogflow::cx::v3::Environment > GetEnvironment(google::cloud::dialogflow::cx::v3::GetEnvironmentRequest const &request)
friend friend class future
Definition: agents_client.h:33
std::shared_ptr< EnvironmentsConnection > MakeEnvironmentsConnection(Options options={})
A backwards-compatible version of the previous factory function.
std::shared_ptr< EnvironmentsConnection > MakeEnvironmentsConnection(std::string const &location, Options options={})
A factory function to construct an object of type EnvironmentsConnection.