2525#include " google/cloud/polling_policy.h"
2626#include " google/cloud/status_or.h"
2727#include " google/cloud/version.h"
28+ #include < map>
2829#include < memory>
2930
3031namespace google {
@@ -117,8 +118,8 @@ class AdvisoryNotificationsServiceClient {
117118 // / [`future`]: @ref google::cloud::future
118119 // / [`StatusOr`]: @ref google::cloud::StatusOr
119120 // / [`Status`]: @ref google::cloud::Status
120- // / [google.cloud.advisorynotifications.v1.ListNotificationsRequest]: @googleapis_reference_link{google/cloud/advisorynotifications/v1/service.proto#L212 }
121- // / [google.cloud.advisorynotifications.v1.Notification]: @googleapis_reference_link{google/cloud/advisorynotifications/v1/service.proto#L115 }
121+ // / [google.cloud.advisorynotifications.v1.ListNotificationsRequest]: @googleapis_reference_link{google/cloud/advisorynotifications/v1/service.proto#L229 }
122+ // / [google.cloud.advisorynotifications.v1.Notification]: @googleapis_reference_link{google/cloud/advisorynotifications/v1/service.proto#L132 }
122123 // /
123124 // clang-format on
124125 StreamRange<google::cloud::advisorynotifications::v1::Notification>
@@ -156,8 +157,8 @@ class AdvisoryNotificationsServiceClient {
156157 // / [`future`]: @ref google::cloud::future
157158 // / [`StatusOr`]: @ref google::cloud::StatusOr
158159 // / [`Status`]: @ref google::cloud::Status
159- // / [google.cloud.advisorynotifications.v1.ListNotificationsRequest]: @googleapis_reference_link{google/cloud/advisorynotifications/v1/service.proto#L212 }
160- // / [google.cloud.advisorynotifications.v1.Notification]: @googleapis_reference_link{google/cloud/advisorynotifications/v1/service.proto#L115 }
160+ // / [google.cloud.advisorynotifications.v1.ListNotificationsRequest]: @googleapis_reference_link{google/cloud/advisorynotifications/v1/service.proto#L229 }
161+ // / [google.cloud.advisorynotifications.v1.Notification]: @googleapis_reference_link{google/cloud/advisorynotifications/v1/service.proto#L132 }
161162 // /
162163 // clang-format on
163164 StreamRange<google::cloud::advisorynotifications::v1::Notification>
@@ -186,8 +187,8 @@ class AdvisoryNotificationsServiceClient {
186187 // / [`future`]: @ref google::cloud::future
187188 // / [`StatusOr`]: @ref google::cloud::StatusOr
188189 // / [`Status`]: @ref google::cloud::Status
189- // / [google.cloud.advisorynotifications.v1.GetNotificationRequest]: @googleapis_reference_link{google/cloud/advisorynotifications/v1/service.proto#L259 }
190- // / [google.cloud.advisorynotifications.v1.Notification]: @googleapis_reference_link{google/cloud/advisorynotifications/v1/service.proto#L115 }
190+ // / [google.cloud.advisorynotifications.v1.GetNotificationRequest]: @googleapis_reference_link{google/cloud/advisorynotifications/v1/service.proto#L276 }
191+ // / [google.cloud.advisorynotifications.v1.Notification]: @googleapis_reference_link{google/cloud/advisorynotifications/v1/service.proto#L132 }
191192 // /
192193 // clang-format on
193194 StatusOr<google::cloud::advisorynotifications::v1::Notification>
@@ -216,8 +217,8 @@ class AdvisoryNotificationsServiceClient {
216217 // / [`future`]: @ref google::cloud::future
217218 // / [`StatusOr`]: @ref google::cloud::StatusOr
218219 // / [`Status`]: @ref google::cloud::Status
219- // / [google.cloud.advisorynotifications.v1.GetNotificationRequest]: @googleapis_reference_link{google/cloud/advisorynotifications/v1/service.proto#L259 }
220- // / [google.cloud.advisorynotifications.v1.Notification]: @googleapis_reference_link{google/cloud/advisorynotifications/v1/service.proto#L115 }
220+ // / [google.cloud.advisorynotifications.v1.GetNotificationRequest]: @googleapis_reference_link{google/cloud/advisorynotifications/v1/service.proto#L276 }
221+ // / [google.cloud.advisorynotifications.v1.Notification]: @googleapis_reference_link{google/cloud/advisorynotifications/v1/service.proto#L132 }
221222 // /
222223 // clang-format on
223224 StatusOr<google::cloud::advisorynotifications::v1::Notification>
@@ -226,6 +227,123 @@ class AdvisoryNotificationsServiceClient {
226227 request,
227228 Options opts = {});
228229
230+ // clang-format off
231+ // /
232+ // / Get notification settings.
233+ // /
234+ // / @param name Required. The resource name of the settings to retrieve.
235+ // / Format:
236+ // / organizations/{organization}/locations/{location}/settings.
237+ // / @param opts Optional. Override the class-level options, such as retry and
238+ // / backoff policies.
239+ // / @return the result of the RPC. The response message type
240+ // / ([google.cloud.advisorynotifications.v1.Settings])
241+ // / is mapped to a C++ class using the [Protobuf mapping rules].
242+ // / If the request fails, the [`StatusOr`] contains the error details.
243+ // /
244+ // / [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
245+ // / [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
246+ // / [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
247+ // / [`future`]: @ref google::cloud::future
248+ // / [`StatusOr`]: @ref google::cloud::StatusOr
249+ // / [`Status`]: @ref google::cloud::Status
250+ // / [google.cloud.advisorynotifications.v1.GetSettingsRequest]: @googleapis_reference_link{google/cloud/advisorynotifications/v1/service.proto#L327}
251+ // / [google.cloud.advisorynotifications.v1.Settings]: @googleapis_reference_link{google/cloud/advisorynotifications/v1/service.proto#L296}
252+ // /
253+ // clang-format on
254+ StatusOr<google::cloud::advisorynotifications::v1::Settings> GetSettings (
255+ std::string const & name, Options opts = {});
256+
257+ // clang-format off
258+ // /
259+ // / Get notification settings.
260+ // /
261+ // / @param request Unary RPCs, such as the one wrapped by this
262+ // / function, receive a single `request` proto message which includes all
263+ // / the inputs for the RPC. In this case, the proto message is a
264+ // / [google.cloud.advisorynotifications.v1.GetSettingsRequest].
265+ // / Proto messages are converted to C++ classes by Protobuf, using the
266+ // / [Protobuf mapping rules].
267+ // / @param opts Optional. Override the class-level options, such as retry and
268+ // / backoff policies.
269+ // / @return the result of the RPC. The response message type
270+ // / ([google.cloud.advisorynotifications.v1.Settings])
271+ // / is mapped to a C++ class using the [Protobuf mapping rules].
272+ // / If the request fails, the [`StatusOr`] contains the error details.
273+ // /
274+ // / [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
275+ // / [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
276+ // / [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
277+ // / [`future`]: @ref google::cloud::future
278+ // / [`StatusOr`]: @ref google::cloud::StatusOr
279+ // / [`Status`]: @ref google::cloud::Status
280+ // / [google.cloud.advisorynotifications.v1.GetSettingsRequest]: @googleapis_reference_link{google/cloud/advisorynotifications/v1/service.proto#L327}
281+ // / [google.cloud.advisorynotifications.v1.Settings]: @googleapis_reference_link{google/cloud/advisorynotifications/v1/service.proto#L296}
282+ // /
283+ // clang-format on
284+ StatusOr<google::cloud::advisorynotifications::v1::Settings> GetSettings (
285+ google::cloud::advisorynotifications::v1::GetSettingsRequest const &
286+ request,
287+ Options opts = {});
288+
289+ // clang-format off
290+ // /
291+ // / Update notification settings.
292+ // /
293+ // / @param settings Required. New settings.
294+ // / @param opts Optional. Override the class-level options, such as retry and
295+ // / backoff policies.
296+ // / @return the result of the RPC. The response message type
297+ // / ([google.cloud.advisorynotifications.v1.Settings])
298+ // / is mapped to a C++ class using the [Protobuf mapping rules].
299+ // / If the request fails, the [`StatusOr`] contains the error details.
300+ // /
301+ // / [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
302+ // / [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
303+ // / [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
304+ // / [`future`]: @ref google::cloud::future
305+ // / [`StatusOr`]: @ref google::cloud::StatusOr
306+ // / [`Status`]: @ref google::cloud::Status
307+ // / [google.cloud.advisorynotifications.v1.Settings]: @googleapis_reference_link{google/cloud/advisorynotifications/v1/service.proto#L296}
308+ // / [google.cloud.advisorynotifications.v1.UpdateSettingsRequest]: @googleapis_reference_link{google/cloud/advisorynotifications/v1/service.proto#L340}
309+ // /
310+ // clang-format on
311+ StatusOr<google::cloud::advisorynotifications::v1::Settings> UpdateSettings (
312+ google::cloud::advisorynotifications::v1::Settings const & settings,
313+ Options opts = {});
314+
315+ // clang-format off
316+ // /
317+ // / Update notification settings.
318+ // /
319+ // / @param request Unary RPCs, such as the one wrapped by this
320+ // / function, receive a single `request` proto message which includes all
321+ // / the inputs for the RPC. In this case, the proto message is a
322+ // / [google.cloud.advisorynotifications.v1.UpdateSettingsRequest].
323+ // / Proto messages are converted to C++ classes by Protobuf, using the
324+ // / [Protobuf mapping rules].
325+ // / @param opts Optional. Override the class-level options, such as retry and
326+ // / backoff policies.
327+ // / @return the result of the RPC. The response message type
328+ // / ([google.cloud.advisorynotifications.v1.Settings])
329+ // / is mapped to a C++ class using the [Protobuf mapping rules].
330+ // / If the request fails, the [`StatusOr`] contains the error details.
331+ // /
332+ // / [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
333+ // / [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
334+ // / [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
335+ // / [`future`]: @ref google::cloud::future
336+ // / [`StatusOr`]: @ref google::cloud::StatusOr
337+ // / [`Status`]: @ref google::cloud::Status
338+ // / [google.cloud.advisorynotifications.v1.Settings]: @googleapis_reference_link{google/cloud/advisorynotifications/v1/service.proto#L296}
339+ // / [google.cloud.advisorynotifications.v1.UpdateSettingsRequest]: @googleapis_reference_link{google/cloud/advisorynotifications/v1/service.proto#L340}
340+ // /
341+ // clang-format on
342+ StatusOr<google::cloud::advisorynotifications::v1::Settings> UpdateSettings (
343+ google::cloud::advisorynotifications::v1::UpdateSettingsRequest const &
344+ request,
345+ Options opts = {});
346+
229347 private:
230348 std::shared_ptr<AdvisoryNotificationsServiceConnection> connection_;
231349 Options options_;
0 commit comments