19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_ES_AGENTS_CLIENT_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_ES_AGENTS_CLIENT_H
22#include "google/cloud/dialogflow_es/agents_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_;
114 std::string
const& parent,
Options opts
= {});
145 google::
cloud::dialogflow::v2::GetAgentRequest
const& request,
211 google::
cloud::dialogflow::v2::SetAgentRequest
const& request,
263 google::
cloud::dialogflow::v2::DeleteAgentRequest
const& request,
306 std::string
const& parent,
Options opts
= {});
352 google::
cloud::dialogflow::v2::SearchAgentsRequest request,
399 std::string
const& parent,
Options opts
= {});
449 google::
cloud::dialogflow::v2::TrainAgentRequest
const& request,
603 google::
cloud::dialogflow::v2::ImportAgentRequest
const& request,
666 google::
cloud::dialogflow::v2::RestoreAgentRequest
const& request,
699 google::
cloud::dialogflow::v2::GetValidationResultRequest
const& request,
707GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
Service for managing Agents.
Definition: agents_client.h:65
StatusOr< google::cloud::dialogflow::v2::Agent > SetAgent(google::cloud::dialogflow::v2::Agent const &agent, Options opts={})
Creates/updates the specified agent.
future< StatusOr< google::cloud::dialogflow::v2::ExportAgentResponse > > ExportAgent(google::cloud::dialogflow::v2::ExportAgentRequest const &request, Options opts={})
Exports the specified agent to a ZIP file.
StatusOr< google::cloud::dialogflow::v2::Agent > GetAgent(google::cloud::dialogflow::v2::GetAgentRequest const &request, Options opts={})
Retrieves the specified agent.
future< StatusOr< google::protobuf::Struct > > RestoreAgent(google::cloud::dialogflow::v2::RestoreAgentRequest const &request, Options opts={})
Restores the specified agent from a ZIP file.
AgentsClient(AgentsClient &&)=default
Status DeleteAgent(std::string const &parent, Options opts={})
Deletes the specified agent.
friend bool operator!=(AgentsClient const &a, AgentsClient const &b)
Definition: agents_client.h:84
StatusOr< google::cloud::dialogflow::v2::Agent > GetAgent(std::string const &parent, Options opts={})
Retrieves the specified agent.
StreamRange< google::cloud::dialogflow::v2::Agent > SearchAgents(google::cloud::dialogflow::v2::SearchAgentsRequest request, Options opts={})
Returns the list of agents.
future< StatusOr< google::protobuf::Struct > > ImportAgent(google::cloud::dialogflow::v2::ImportAgentRequest const &request, Options opts={})
Imports the specified agent from a ZIP file.
StreamRange< google::cloud::dialogflow::v2::Agent > SearchAgents(std::string const &parent, Options opts={})
Returns the list of agents.
Status DeleteAgent(google::cloud::dialogflow::v2::DeleteAgentRequest const &request, Options opts={})
Deletes the specified agent.
AgentsClient(std::shared_ptr< AgentsConnection > connection, Options opts={})
friend bool operator==(AgentsClient const &a, AgentsClient const &b)
Definition: agents_client.h:81
AgentsClient(AgentsClient const &)=default
AgentsClient & operator=(AgentsClient const &)=default
StatusOr< google::cloud::dialogflow::v2::ValidationResult > GetValidationResult(google::cloud::dialogflow::v2::GetValidationResultRequest const &request, Options opts={})
Gets agent validation result.
StatusOr< google::cloud::dialogflow::v2::Agent > SetAgent(google::cloud::dialogflow::v2::SetAgentRequest const &request, Options opts={})
Creates/updates the specified agent.
future< StatusOr< google::protobuf::Struct > > TrainAgent(std::string const &parent, Options opts={})
Trains the specified agent.
future< StatusOr< google::protobuf::Struct > > TrainAgent(google::cloud::dialogflow::v2::TrainAgentRequest const &request, Options opts={})
Trains the specified agent.
AgentsClient & operator=(AgentsClient &&)=default
future< StatusOr< google::cloud::dialogflow::v2::ExportAgentResponse > > ExportAgent(std::string const &parent, Options opts={})
Exports the specified agent to a ZIP file.
The AgentsConnection object for AgentsClient.
Definition: agents_connection.h:65
friend friend class future
Definition: agents_client.h:33