19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_VERSIONS_CLIENT_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_VERSIONS_CLIENT_H
22#include "google/cloud/dialogflow_cx/versions_connection.h"
23#include "google/cloud/future.h"
24#include "google/cloud/options.h"
25#include "google/cloud/polling_policy.h"
26#include "google/cloud/status_or.h"
27#include "google/cloud/version.h"
28#include <google/longrunning/operations.grpc.pb.h>
34GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
82 return a.connection_ == b.connection_;
126 std::string
const& parent,
Options opts
= {});
168 google::
cloud::dialogflow::cx::v3::ListVersionsRequest request,
228 google::
cloud::dialogflow::cx::v3::GetVersionRequest
const& request,
276 std::string
const& parent,
277 google::
cloud::dialogflow::cx::v3::Version
const& version,
326 google::
cloud::dialogflow::cx::v3::CreateVersionRequest
const& request,
355 google::
cloud::dialogflow::cx::v3::Version
const& version,
387 google::
cloud::dialogflow::cx::v3::UpdateVersionRequest
const& request,
442 google::
cloud::dialogflow::cx::v3::DeleteVersionRequest
const& request,
532 google::
cloud::dialogflow::cx::v3::LoadVersionRequest
const& request,
562 StatusOr<
google::
cloud::dialogflow::cx::v3::CompareVersionsResponse>
593 StatusOr<
google::
cloud::dialogflow::cx::v3::CompareVersionsResponse>
595 google::
cloud::dialogflow::cx::v3::CompareVersionsRequest
const& request,
603GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
Service for managing Versions.
Definition: versions_client.h:65
StatusOr< google::cloud::dialogflow::cx::v3::Version > UpdateVersion(google::cloud::dialogflow::cx::v3::UpdateVersionRequest const &request, Options opts={})
Updates the specified Version.
StatusOr< google::cloud::dialogflow::cx::v3::Version > GetVersion(google::cloud::dialogflow::cx::v3::GetVersionRequest const &request, Options opts={})
Retrieves the specified Version.
StreamRange< google::cloud::dialogflow::cx::v3::Version > ListVersions(std::string const &parent, Options opts={})
Returns the list of all versions in the specified Flow.
friend bool operator==(VersionsClient const &a, VersionsClient const &b)
Definition: versions_client.h:81
Status DeleteVersion(std::string const &name, Options opts={})
Deletes the specified Version.
VersionsClient(std::shared_ptr< VersionsConnection > connection, Options opts={})
StatusOr< google::cloud::dialogflow::cx::v3::Version > UpdateVersion(google::cloud::dialogflow::cx::v3::Version const &version, google::protobuf::FieldMask const &update_mask, Options opts={})
Updates the specified Version.
future< StatusOr< google::protobuf::Struct > > LoadVersion(google::cloud::dialogflow::cx::v3::LoadVersionRequest const &request, Options opts={})
Loads resources in the specified version to the draft flow.
VersionsClient & operator=(VersionsClient &&)=default
future< StatusOr< google::cloud::dialogflow::cx::v3::Version > > CreateVersion(google::cloud::dialogflow::cx::v3::CreateVersionRequest const &request, Options opts={})
Creates a Version in the specified Flow.
future< StatusOr< google::protobuf::Struct > > LoadVersion(std::string const &name, Options opts={})
Loads resources in the specified version to the draft flow.
StatusOr< google::cloud::dialogflow::cx::v3::Version > GetVersion(std::string const &name, Options opts={})
Retrieves the specified Version.
VersionsClient & operator=(VersionsClient const &)=default
Status DeleteVersion(google::cloud::dialogflow::cx::v3::DeleteVersionRequest const &request, Options opts={})
Deletes the specified Version.
VersionsClient(VersionsClient const &)=default
VersionsClient(VersionsClient &&)=default
future< StatusOr< google::cloud::dialogflow::cx::v3::Version > > CreateVersion(std::string const &parent, google::cloud::dialogflow::cx::v3::Version const &version, Options opts={})
Creates a Version in the specified Flow.
StatusOr< google::cloud::dialogflow::cx::v3::CompareVersionsResponse > CompareVersions(std::string const &base_version, Options opts={})
Compares the specified base version with target version.
StatusOr< google::cloud::dialogflow::cx::v3::CompareVersionsResponse > CompareVersions(google::cloud::dialogflow::cx::v3::CompareVersionsRequest const &request, Options opts={})
Compares the specified base version with target version.
StreamRange< google::cloud::dialogflow::cx::v3::Version > ListVersions(google::cloud::dialogflow::cx::v3::ListVersionsRequest request, Options opts={})
Returns the list of all versions in the specified Flow.
friend bool operator!=(VersionsClient const &a, VersionsClient const &b)
Definition: versions_client.h:84
The VersionsConnection object for VersionsClient.
Definition: versions_connection.h:65
friend friend class future
Definition: agents_client.h:33