19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_VERSIONS_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_VERSIONS_CONNECTION_H
22#include "google/cloud/dialogflow_cx/internal/versions_retry_traits.h"
23#include "google/cloud/dialogflow_cx/versions_connection_idempotency_policy.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/version.pb.h>
32#include <google/longrunning/operations.grpc.pb.h>
33#include <google/protobuf/struct.pb.h>
40GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
42using VersionsRetryPolicy = ::
google::
cloud::internal::TraitBasedRetryPolicy<
43 dialogflow_cx_internal::VersionsRetryTraits>;
45using VersionsLimitedTimeRetryPolicy =
47 dialogflow_cx_internal::VersionsRetryTraits>;
49using VersionsLimitedErrorCountRetryPolicy =
50 ::
google::
cloud::internal::LimitedErrorCountRetryPolicy<
51 dialogflow_cx_internal::VersionsRetryTraits>;
54
55
56
57
58
59
60
61
62
63
64
72 google::
cloud::dialogflow::cx::v3::ListVersionsRequest request);
75 google::
cloud::dialogflow::cx::v3::GetVersionRequest
const& request);
79 google::
cloud::dialogflow::cx::v3::CreateVersionRequest
const& request);
82 google::
cloud::dialogflow::cx::v3::UpdateVersionRequest
const& request);
85 google::
cloud::dialogflow::cx::v3::DeleteVersionRequest
const& request);
88 google::
cloud::dialogflow::cx::v3::LoadVersionRequest
const& request);
90 virtual StatusOr<
google::
cloud::dialogflow::cx::v3::CompareVersionsResponse>
92 google::
cloud::dialogflow::cx::v3::CompareVersionsRequest
const& request);
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
118 std::string
const& location,
Options options
= {});
121
122
123
124
125
126
130GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
The VersionsConnection object for VersionsClient.
Definition: versions_connection.h:65
virtual future< StatusOr< google::protobuf::Struct > > LoadVersion(google::cloud::dialogflow::cx::v3::LoadVersionRequest const &request)
virtual future< StatusOr< google::cloud::dialogflow::cx::v3::Version > > CreateVersion(google::cloud::dialogflow::cx::v3::CreateVersionRequest const &request)
virtual StatusOr< google::cloud::dialogflow::cx::v3::Version > UpdateVersion(google::cloud::dialogflow::cx::v3::UpdateVersionRequest const &request)
virtual Options options()
Definition: versions_connection.h:69
virtual ~VersionsConnection()=0
virtual StreamRange< google::cloud::dialogflow::cx::v3::Version > ListVersions(google::cloud::dialogflow::cx::v3::ListVersionsRequest request)
virtual Status DeleteVersion(google::cloud::dialogflow::cx::v3::DeleteVersionRequest const &request)
virtual StatusOr< google::cloud::dialogflow::cx::v3::Version > GetVersion(google::cloud::dialogflow::cx::v3::GetVersionRequest const &request)
virtual StatusOr< google::cloud::dialogflow::cx::v3::CompareVersionsResponse > CompareVersions(google::cloud::dialogflow::cx::v3::CompareVersionsRequest const &request)
friend friend class future
Definition: agents_client.h:33
std::shared_ptr< VersionsConnection > MakeVersionsConnection(Options options={})
A backwards-compatible version of the previous factory function.
std::shared_ptr< VersionsConnection > MakeVersionsConnection(std::string const &location, Options options={})
A factory function to construct an object of type VersionsConnection.