Dialogflow API C++ Client 2.13.0
A C++ Client Library for the Dialogflow API
Loading...
Searching...
No Matches
security_settings_connection.h
1// Copyright 2022 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Generated by the Codegen C++ plugin.
16// If you make any local changes, they will be lost.
17// source: google/cloud/dialogflow/cx/v3/security_settings.proto
18
19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_SECURITY_SETTINGS_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_SECURITY_SETTINGS_CONNECTION_H
21
22#include "google/cloud/dialogflow_cx/internal/security_settings_retry_traits.h"
23#include "google/cloud/dialogflow_cx/security_settings_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/security_settings.pb.h>
30#include <memory>
31#include <string>
32
33namespace google {
34namespace cloud {
35namespace dialogflow_cx {
36GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
37
38using SecuritySettingsServiceRetryPolicy =
39 ::google::cloud::internal::TraitBasedRetryPolicy<
40 dialogflow_cx_internal::SecuritySettingsServiceRetryTraits>;
41
42using SecuritySettingsServiceLimitedTimeRetryPolicy =
43 ::google::cloud::internal::LimitedTimeRetryPolicy<
44 dialogflow_cx_internal::SecuritySettingsServiceRetryTraits>;
45
46using SecuritySettingsServiceLimitedErrorCountRetryPolicy =
47 ::google::cloud::internal::LimitedErrorCountRetryPolicy<
48 dialogflow_cx_internal::SecuritySettingsServiceRetryTraits>;
49
50/**
51 * The `SecuritySettingsServiceConnection` object for
52 * `SecuritySettingsServiceClient`.
53 *
54 * This interface defines virtual methods for each of the user-facing overload
55 * sets in `SecuritySettingsServiceClient`. This allows users to inject custom
56 * behavior (e.g., with a Google Mock object) when writing tests that use
57 * objects of type `SecuritySettingsServiceClient`.
58 *
59 * To create a concrete instance, see `MakeSecuritySettingsServiceConnection()`.
60 *
61 * For mocking, see
62 * `dialogflow_cx_mocks::MockSecuritySettingsServiceConnection`.
63 */
65 public:
67
68 virtual Options options() { return Options{}; }
69
70 virtual StatusOr<google::cloud::dialogflow::cx::v3::SecuritySettings>
72 google::cloud::dialogflow::cx::v3::CreateSecuritySettingsRequest const&
73 request);
74
75 virtual StatusOr<google::cloud::dialogflow::cx::v3::SecuritySettings>
77 google::cloud::dialogflow::cx::v3::GetSecuritySettingsRequest const&
78 request);
79
80 virtual StatusOr<google::cloud::dialogflow::cx::v3::SecuritySettings>
82 google::cloud::dialogflow::cx::v3::UpdateSecuritySettingsRequest const&
83 request);
84
85 virtual StreamRange<google::cloud::dialogflow::cx::v3::SecuritySettings>
87 google::cloud::dialogflow::cx::v3::ListSecuritySettingsRequest request);
88
90 google::cloud::dialogflow::cx::v3::DeleteSecuritySettingsRequest const&
91 request);
92};
93
94/**
95 * A factory function to construct an object of type
96 * `SecuritySettingsServiceConnection`.
97 *
98 * The returned connection object should not be used directly; instead it
99 * should be passed as an argument to the constructor of
100 * SecuritySettingsServiceClient.
101 *
102 * The optional @p options argument may be used to configure aspects of the
103 * returned `SecuritySettingsServiceConnection`. Expected options are any of the
104 * types in the following option lists:
105 *
106 * - `google::cloud::CommonOptionList`
107 * - `google::cloud::GrpcOptionList`
108 * - `google::cloud::UnifiedCredentialsOptionList`
109 * - `google::cloud::dialogflow_cx::SecuritySettingsServicePolicyOptionList`
110 *
111 * @note Unexpected options will be ignored. To log unexpected options instead,
112 * set `GOOGLE_CLOUD_CPP_ENABLE_CLOG=yes` in the environment.
113 *
114 * @param location Sets the prefix for the default `EndpointOption` value.
115 * @param options (optional) Configure the `SecuritySettingsServiceConnection`
116 * created by this function.
117 */
119MakeSecuritySettingsServiceConnection(std::string const& location,
120 Options options = {});
121
122/**
123 * A backwards-compatible version of the previous factory function. Unless
124 * the service also offers a global endpoint, the default value of the
125 * `EndpointOption` may be useless, in which case it must be overridden.
126 *
127 * @deprecated Please use the `location` overload instead.
128 */
131
132GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
133} // namespace dialogflow_cx
134} // namespace cloud
135} // namespace google
136
137#endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_SECURITY_SETTINGS_CONNECTION_H
The SecuritySettingsServiceConnection object for SecuritySettingsServiceClient.
Definition: security_settings_connection.h:64
virtual StreamRange< google::cloud::dialogflow::cx::v3::SecuritySettings > ListSecuritySettings(google::cloud::dialogflow::cx::v3::ListSecuritySettingsRequest request)
virtual StatusOr< google::cloud::dialogflow::cx::v3::SecuritySettings > CreateSecuritySettings(google::cloud::dialogflow::cx::v3::CreateSecuritySettingsRequest const &request)
virtual Options options()
Definition: security_settings_connection.h:68
virtual StatusOr< google::cloud::dialogflow::cx::v3::SecuritySettings > UpdateSecuritySettings(google::cloud::dialogflow::cx::v3::UpdateSecuritySettingsRequest const &request)
virtual Status DeleteSecuritySettings(google::cloud::dialogflow::cx::v3::DeleteSecuritySettingsRequest const &request)
virtual StatusOr< google::cloud::dialogflow::cx::v3::SecuritySettings > GetSecuritySettings(google::cloud::dialogflow::cx::v3::GetSecuritySettingsRequest const &request)
Definition: agents_client.h:33
std::shared_ptr< SecuritySettingsServiceConnection > MakeSecuritySettingsServiceConnection(std::string const &location, Options options={})
A factory function to construct an object of type SecuritySettingsServiceConnection.
std::shared_ptr< SecuritySettingsServiceConnection > MakeSecuritySettingsServiceConnection(Options options={})
A backwards-compatible version of the previous factory function.