19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_AGENTS_CLIENT_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_AGENTS_CLIENT_H
22#include "google/cloud/dialogflow_cx/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_;
123 std::string
const& parent,
Options opts
= {});
163 google::
cloud::dialogflow::cx::v3::ListAgentsRequest request,
222 google::
cloud::dialogflow::cx::v3::GetAgentRequest
const& request,
255 std::string
const& parent,
291 google::
cloud::dialogflow::cx::v3::CreateAgentRequest
const& request,
324 google::
cloud::dialogflow::cx::v3::Agent
const& agent,
360 google::
cloud::dialogflow::cx::v3::UpdateAgentRequest
const& request,
412 google::
cloud::dialogflow::cx::v3::DeleteAgentRequest
const& request,
460 google::
cloud::dialogflow::cx::v3::ExportAgentRequest
const& request,
514 google::
cloud::dialogflow::cx::v3::RestoreAgentRequest
const& request,
547 StatusOr<
google::
cloud::dialogflow::cx::v3::AgentValidationResult>
549 google::
cloud::dialogflow::cx::v3::ValidateAgentRequest
const& request,
578 StatusOr<
google::
cloud::dialogflow::cx::v3::AgentValidationResult>
610 StatusOr<
google::
cloud::dialogflow::cx::v3::AgentValidationResult>
612 google::
cloud::dialogflow::cx::v3::GetAgentValidationResultRequest
const&
621GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
Service for managing Agents.
Definition: agents_client.h:65
StatusOr< google::cloud::dialogflow::cx::v3::Agent > UpdateAgent(google::cloud::dialogflow::cx::v3::UpdateAgentRequest const &request, Options opts={})
Updates the specified agent.
StatusOr< google::cloud::dialogflow::cx::v3::Agent > CreateAgent(std::string const &parent, google::cloud::dialogflow::cx::v3::Agent const &agent, Options opts={})
Creates an agent in the specified location.
AgentsClient(AgentsClient &&)=default
StatusOr< google::cloud::dialogflow::cx::v3::Agent > GetAgent(google::cloud::dialogflow::cx::v3::GetAgentRequest const &request, Options opts={})
Retrieves the specified agent.
friend bool operator!=(AgentsClient const &a, AgentsClient const &b)
Definition: agents_client.h:84
AgentsClient & operator=(AgentsClient &&)=default
Status DeleteAgent(std::string const &name, Options opts={})
Deletes the specified agent.
future< StatusOr< google::cloud::dialogflow::cx::v3::ExportAgentResponse > > ExportAgent(google::cloud::dialogflow::cx::v3::ExportAgentRequest const &request, Options opts={})
Exports the specified agent to a binary file.
friend bool operator==(AgentsClient const &a, AgentsClient const &b)
Definition: agents_client.h:81
StreamRange< google::cloud::dialogflow::cx::v3::Agent > ListAgents(std::string const &parent, Options opts={})
Returns the list of all agents in the specified location.
StatusOr< google::cloud::dialogflow::cx::v3::AgentValidationResult > GetAgentValidationResult(std::string const &name, Options opts={})
Gets the latest agent validation result.
StatusOr< google::cloud::dialogflow::cx::v3::AgentValidationResult > GetAgentValidationResult(google::cloud::dialogflow::cx::v3::GetAgentValidationResultRequest const &request, Options opts={})
Gets the latest agent validation result.
future< StatusOr< google::protobuf::Struct > > RestoreAgent(google::cloud::dialogflow::cx::v3::RestoreAgentRequest const &request, Options opts={})
Restores the specified agent from a binary file.
AgentsClient(AgentsClient const &)=default
StatusOr< google::cloud::dialogflow::cx::v3::AgentValidationResult > ValidateAgent(google::cloud::dialogflow::cx::v3::ValidateAgentRequest const &request, Options opts={})
Validates the specified agent and creates or updates validation results.
StatusOr< google::cloud::dialogflow::cx::v3::Agent > UpdateAgent(google::cloud::dialogflow::cx::v3::Agent const &agent, google::protobuf::FieldMask const &update_mask, Options opts={})
Updates the specified agent.
StatusOr< google::cloud::dialogflow::cx::v3::Agent > GetAgent(std::string const &name, Options opts={})
Retrieves the specified agent.
StatusOr< google::cloud::dialogflow::cx::v3::Agent > CreateAgent(google::cloud::dialogflow::cx::v3::CreateAgentRequest const &request, Options opts={})
Creates an agent in the specified location.
AgentsClient(std::shared_ptr< AgentsConnection > connection, Options opts={})
Status DeleteAgent(google::cloud::dialogflow::cx::v3::DeleteAgentRequest const &request, Options opts={})
Deletes the specified agent.
AgentsClient & operator=(AgentsClient const &)=default
StreamRange< google::cloud::dialogflow::cx::v3::Agent > ListAgents(google::cloud::dialogflow::cx::v3::ListAgentsRequest request, Options opts={})
Returns the list of all agents in the specified location.
The AgentsConnection object for AgentsClient.
Definition: agents_connection.h:65
friend friend class future
Definition: agents_client.h:33