19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_WEBHOOKS_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_WEBHOOKS_CONNECTION_H
22#include "google/cloud/dialogflow_cx/internal/webhooks_retry_traits.h"
23#include "google/cloud/dialogflow_cx/webhooks_connection_idempotency_policy.h"
24#include "google/cloud/backoff_policy.h"
25#include "google/cloud/options.h"
26#include "google/cloud/status_or.h"
27#include "google/cloud/stream_range.h"
28#include "google/cloud/version.h"
29#include <google/cloud/dialogflow/cx/v3/webhook.pb.h>
36GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
38using WebhooksRetryPolicy = ::
google::
cloud::internal::TraitBasedRetryPolicy<
39 dialogflow_cx_internal::WebhooksRetryTraits>;
41using WebhooksLimitedTimeRetryPolicy =
43 dialogflow_cx_internal::WebhooksRetryTraits>;
45using WebhooksLimitedErrorCountRetryPolicy =
46 ::
google::
cloud::internal::LimitedErrorCountRetryPolicy<
47 dialogflow_cx_internal::WebhooksRetryTraits>;
50
51
52
53
54
55
56
57
58
59
60
68 google::
cloud::dialogflow::cx::v3::ListWebhooksRequest request);
71 google::
cloud::dialogflow::cx::v3::GetWebhookRequest
const& request);
74 google::
cloud::dialogflow::cx::v3::CreateWebhookRequest
const& request);
77 google::
cloud::dialogflow::cx::v3::UpdateWebhookRequest
const& request);
80 google::
cloud::dialogflow::cx::v3::DeleteWebhookRequest
const& request);
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
106 std::string
const& location,
Options options
= {});
109
110
111
112
113
114
118GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
The WebhooksConnection object for WebhooksClient.
Definition: webhooks_connection.h:61
virtual Options options()
Definition: webhooks_connection.h:65
virtual ~WebhooksConnection()=0
virtual StatusOr< google::cloud::dialogflow::cx::v3::Webhook > GetWebhook(google::cloud::dialogflow::cx::v3::GetWebhookRequest const &request)
virtual StatusOr< google::cloud::dialogflow::cx::v3::Webhook > UpdateWebhook(google::cloud::dialogflow::cx::v3::UpdateWebhookRequest const &request)
virtual Status DeleteWebhook(google::cloud::dialogflow::cx::v3::DeleteWebhookRequest const &request)
virtual StatusOr< google::cloud::dialogflow::cx::v3::Webhook > CreateWebhook(google::cloud::dialogflow::cx::v3::CreateWebhookRequest const &request)
virtual StreamRange< google::cloud::dialogflow::cx::v3::Webhook > ListWebhooks(google::cloud::dialogflow::cx::v3::ListWebhooksRequest request)
Definition: agents_client.h:33
std::shared_ptr< WebhooksConnection > MakeWebhooksConnection(Options options={})
A backwards-compatible version of the previous factory function.
std::shared_ptr< WebhooksConnection > MakeWebhooksConnection(std::string const &location, Options options={})
A factory function to construct an object of type WebhooksConnection.