19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_FLOWS_CLIENT_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_FLOWS_CLIENT_H
22#include "google/cloud/dialogflow_cx/flows_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_;
119 std::string
const& parent,
155 google::
cloud::dialogflow::cx::v3::CreateFlowRequest
const& request,
208 google::
cloud::dialogflow::cx::v3::DeleteFlowRequest
const& request,
245 std::string
const& parent,
Options opts
= {});
285 google::
cloud::dialogflow::cx::v3::ListFlowsRequest request,
345 google::
cloud::dialogflow::cx::v3::GetFlowRequest
const& request,
378 google::
cloud::dialogflow::cx::v3::Flow
const& flow,
414 google::
cloud::dialogflow::cx::v3::UpdateFlowRequest
const& request,
514 google::
cloud::dialogflow::cx::v3::TrainFlowRequest
const& request,
547 StatusOr<
google::
cloud::dialogflow::cx::v3::FlowValidationResult>
549 google::
cloud::dialogflow::cx::v3::ValidateFlowRequest
const& request,
578 StatusOr<
google::
cloud::dialogflow::cx::v3::FlowValidationResult>
610 StatusOr<
google::
cloud::dialogflow::cx::v3::FlowValidationResult>
612 google::
cloud::dialogflow::cx::v3::GetFlowValidationResultRequest
const&
665 google::
cloud::dialogflow::cx::v3::ImportFlowRequest
const& request,
716 google::
cloud::dialogflow::cx::v3::ExportFlowRequest
const& request,
724GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
Service for managing Flows.
Definition: flows_client.h:65
friend bool operator==(FlowsClient const &a, FlowsClient const &b)
Definition: flows_client.h:81
StreamRange< google::cloud::dialogflow::cx::v3::Flow > ListFlows(google::cloud::dialogflow::cx::v3::ListFlowsRequest request, Options opts={})
Returns the list of all flows in the specified agent.
FlowsClient(FlowsClient &&)=default
StatusOr< google::cloud::dialogflow::cx::v3::Flow > GetFlow(google::cloud::dialogflow::cx::v3::GetFlowRequest const &request, Options opts={})
Retrieves the specified flow.
StatusOr< google::cloud::dialogflow::cx::v3::Flow > UpdateFlow(google::cloud::dialogflow::cx::v3::Flow const &flow, google::protobuf::FieldMask const &update_mask, Options opts={})
Updates the specified flow.
FlowsClient & operator=(FlowsClient const &)=default
StatusOr< google::cloud::dialogflow::cx::v3::Flow > UpdateFlow(google::cloud::dialogflow::cx::v3::UpdateFlowRequest const &request, Options opts={})
Updates the specified flow.
StatusOr< google::cloud::dialogflow::cx::v3::Flow > GetFlow(std::string const &name, Options opts={})
Retrieves the specified flow.
FlowsClient(std::shared_ptr< FlowsConnection > connection, Options opts={})
StatusOr< google::cloud::dialogflow::cx::v3::FlowValidationResult > ValidateFlow(google::cloud::dialogflow::cx::v3::ValidateFlowRequest const &request, Options opts={})
Validates the specified flow and creates or updates validation results.
Status DeleteFlow(std::string const &name, Options opts={})
Deletes a specified flow.
friend bool operator!=(FlowsClient const &a, FlowsClient const &b)
Definition: flows_client.h:84
future< StatusOr< google::cloud::dialogflow::cx::v3::ExportFlowResponse > > ExportFlow(google::cloud::dialogflow::cx::v3::ExportFlowRequest const &request, Options opts={})
Exports the specified flow to a binary file.
future< StatusOr< google::protobuf::Struct > > TrainFlow(std::string const &name, Options opts={})
Trains the specified flow.
StatusOr< google::cloud::dialogflow::cx::v3::Flow > CreateFlow(std::string const &parent, google::cloud::dialogflow::cx::v3::Flow const &flow, Options opts={})
Creates a flow in the specified agent.
StatusOr< google::cloud::dialogflow::cx::v3::Flow > CreateFlow(google::cloud::dialogflow::cx::v3::CreateFlowRequest const &request, Options opts={})
Creates a flow in the specified agent.
StreamRange< google::cloud::dialogflow::cx::v3::Flow > ListFlows(std::string const &parent, Options opts={})
Returns the list of all flows in the specified agent.
Status DeleteFlow(google::cloud::dialogflow::cx::v3::DeleteFlowRequest const &request, Options opts={})
Deletes a specified flow.
FlowsClient(FlowsClient const &)=default
StatusOr< google::cloud::dialogflow::cx::v3::FlowValidationResult > GetFlowValidationResult(std::string const &name, Options opts={})
Gets the latest flow validation result.
FlowsClient & operator=(FlowsClient &&)=default
future< StatusOr< google::protobuf::Struct > > TrainFlow(google::cloud::dialogflow::cx::v3::TrainFlowRequest const &request, Options opts={})
Trains the specified flow.
future< StatusOr< google::cloud::dialogflow::cx::v3::ImportFlowResponse > > ImportFlow(google::cloud::dialogflow::cx::v3::ImportFlowRequest const &request, Options opts={})
Imports the specified flow to the specified agent from a binary file.
StatusOr< google::cloud::dialogflow::cx::v3::FlowValidationResult > GetFlowValidationResult(google::cloud::dialogflow::cx::v3::GetFlowValidationResultRequest const &request, Options opts={})
Gets the latest flow validation result.
The FlowsConnection object for FlowsClient.
Definition: flows_connection.h:65
friend friend class future
Definition: agents_client.h:33