19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_FLOWS_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_FLOWS_CONNECTION_H
22#include "google/cloud/dialogflow_cx/flows_connection_idempotency_policy.h"
23#include "google/cloud/dialogflow_cx/internal/flows_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/flow.pb.h>
32#include <google/longrunning/operations.grpc.pb.h>
33#include <google/protobuf/struct.pb.h>
40GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
42using FlowsRetryPolicy = ::
google::
cloud::internal::TraitBasedRetryPolicy<
43 dialogflow_cx_internal::FlowsRetryTraits>;
45using FlowsLimitedTimeRetryPolicy =
47 dialogflow_cx_internal::FlowsRetryTraits>;
49using FlowsLimitedErrorCountRetryPolicy =
50 ::
google::
cloud::internal::LimitedErrorCountRetryPolicy<
51 dialogflow_cx_internal::FlowsRetryTraits>;
54
55
56
57
58
59
60
61
62
63
64
72 google::
cloud::dialogflow::cx::v3::CreateFlowRequest
const& request);
75 google::
cloud::dialogflow::cx::v3::DeleteFlowRequest
const& request);
78 google::
cloud::dialogflow::cx::v3::ListFlowsRequest request);
81 google::
cloud::dialogflow::cx::v3::GetFlowRequest
const& request);
84 google::
cloud::dialogflow::cx::v3::UpdateFlowRequest
const& request);
87 google::
cloud::dialogflow::cx::v3::TrainFlowRequest
const& request);
89 virtual StatusOr<
google::
cloud::dialogflow::cx::v3::FlowValidationResult>
91 google::
cloud::dialogflow::cx::v3::ValidateFlowRequest
const& request);
93 virtual StatusOr<
google::
cloud::dialogflow::cx::v3::FlowValidationResult>
95 google::
cloud::dialogflow::cx::v3::GetFlowValidationResultRequest
const&
99 StatusOr<
google::
cloud::dialogflow::cx::v3::ImportFlowResponse>>
101 google::
cloud::dialogflow::cx::v3::ImportFlowRequest
const& request);
104 StatusOr<
google::
cloud::dialogflow::cx::v3::ExportFlowResponse>>
106 google::
cloud::dialogflow::cx::v3::ExportFlowRequest
const& request);
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
132 std::string
const& location,
Options options
= {});
135
136
137
138
139
140
143GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
The FlowsConnection object for FlowsClient.
Definition: flows_connection.h:65
virtual Options options()
Definition: flows_connection.h:69
virtual ~FlowsConnection()=0
virtual StatusOr< google::cloud::dialogflow::cx::v3::Flow > GetFlow(google::cloud::dialogflow::cx::v3::GetFlowRequest const &request)
virtual StatusOr< google::cloud::dialogflow::cx::v3::FlowValidationResult > ValidateFlow(google::cloud::dialogflow::cx::v3::ValidateFlowRequest const &request)
virtual future< StatusOr< google::protobuf::Struct > > TrainFlow(google::cloud::dialogflow::cx::v3::TrainFlowRequest const &request)
virtual StatusOr< google::cloud::dialogflow::cx::v3::Flow > UpdateFlow(google::cloud::dialogflow::cx::v3::UpdateFlowRequest const &request)
virtual StreamRange< google::cloud::dialogflow::cx::v3::Flow > ListFlows(google::cloud::dialogflow::cx::v3::ListFlowsRequest request)
virtual future< StatusOr< google::cloud::dialogflow::cx::v3::ImportFlowResponse > > ImportFlow(google::cloud::dialogflow::cx::v3::ImportFlowRequest const &request)
virtual Status DeleteFlow(google::cloud::dialogflow::cx::v3::DeleteFlowRequest const &request)
virtual future< StatusOr< google::cloud::dialogflow::cx::v3::ExportFlowResponse > > ExportFlow(google::cloud::dialogflow::cx::v3::ExportFlowRequest const &request)
virtual StatusOr< google::cloud::dialogflow::cx::v3::Flow > CreateFlow(google::cloud::dialogflow::cx::v3::CreateFlowRequest const &request)
virtual StatusOr< google::cloud::dialogflow::cx::v3::FlowValidationResult > GetFlowValidationResult(google::cloud::dialogflow::cx::v3::GetFlowValidationResultRequest const &request)
friend friend class future
Definition: agents_client.h:33
std::shared_ptr< FlowsConnection > MakeFlowsConnection(Options options={})
A backwards-compatible version of the previous factory function.
std::shared_ptr< FlowsConnection > MakeFlowsConnection(std::string const &location, Options options={})
A factory function to construct an object of type FlowsConnection.