19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_WEBHOOKS_CLIENT_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_WEBHOOKS_CLIENT_H
22#include "google/cloud/dialogflow_cx/webhooks_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"
33GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
81 return a.connection_ == b.connection_;
122 std::string
const& parent,
Options opts
= {});
162 google::
cloud::dialogflow::cx::v3::ListWebhooksRequest request,
222 google::
cloud::dialogflow::cx::v3::GetWebhookRequest
const& request,
251 std::string
const& parent,
252 google::
cloud::dialogflow::cx::v3::Webhook
const& webhook,
284 google::
cloud::dialogflow::cx::v3::CreateWebhookRequest
const& request,
313 google::
cloud::dialogflow::cx::v3::Webhook
const& webhook,
345 google::
cloud::dialogflow::cx::v3::UpdateWebhookRequest
const& request,
398 google::
cloud::dialogflow::cx::v3::DeleteWebhookRequest
const& request,
406GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
Service for managing Webhooks.
Definition: webhooks_client.h:64
StatusOr< google::cloud::dialogflow::cx::v3::Webhook > UpdateWebhook(google::cloud::dialogflow::cx::v3::UpdateWebhookRequest const &request, Options opts={})
Updates the specified webhook.
StatusOr< google::cloud::dialogflow::cx::v3::Webhook > CreateWebhook(google::cloud::dialogflow::cx::v3::CreateWebhookRequest const &request, Options opts={})
Creates a webhook in the specified agent.
StatusOr< google::cloud::dialogflow::cx::v3::Webhook > CreateWebhook(std::string const &parent, google::cloud::dialogflow::cx::v3::Webhook const &webhook, Options opts={})
Creates a webhook in the specified agent.
WebhooksClient(WebhooksClient const &)=default
StreamRange< google::cloud::dialogflow::cx::v3::Webhook > ListWebhooks(google::cloud::dialogflow::cx::v3::ListWebhooksRequest request, Options opts={})
Returns the list of all webhooks in the specified agent.
StatusOr< google::cloud::dialogflow::cx::v3::Webhook > GetWebhook(google::cloud::dialogflow::cx::v3::GetWebhookRequest const &request, Options opts={})
Retrieves the specified webhook.
WebhooksClient & operator=(WebhooksClient &&)=default
friend bool operator!=(WebhooksClient const &a, WebhooksClient const &b)
Definition: webhooks_client.h:83
WebhooksClient & operator=(WebhooksClient const &)=default
WebhooksClient(std::shared_ptr< WebhooksConnection > connection, Options opts={})
Status DeleteWebhook(google::cloud::dialogflow::cx::v3::DeleteWebhookRequest const &request, Options opts={})
Deletes the specified webhook.
StatusOr< google::cloud::dialogflow::cx::v3::Webhook > GetWebhook(std::string const &name, Options opts={})
Retrieves the specified webhook.
StreamRange< google::cloud::dialogflow::cx::v3::Webhook > ListWebhooks(std::string const &parent, Options opts={})
Returns the list of all webhooks in the specified agent.
WebhooksClient(WebhooksClient &&)=default
Status DeleteWebhook(std::string const &name, Options opts={})
Deletes the specified webhook.
friend bool operator==(WebhooksClient const &a, WebhooksClient const &b)
Definition: webhooks_client.h:80
StatusOr< google::cloud::dialogflow::cx::v3::Webhook > UpdateWebhook(google::cloud::dialogflow::cx::v3::Webhook const &webhook, google::protobuf::FieldMask const &update_mask, Options opts={})
Updates the specified webhook.
The WebhooksConnection object for WebhooksClient.
Definition: webhooks_connection.h:61
Definition: agents_client.h:33