Skip to content

Commit 3d4244d

Browse files
authored
chore: update googleapis SHA circa 2023-09-25 (#12720)
Mostly to pick up `google::spanner::v1::BatchWrite()`.
1 parent f5a9e7e commit 3d4244d

File tree

96 files changed

+3680
-486
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+3680
-486
lines changed

.typos.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ extend-exclude = [
2424
"google/cloud/cloudbuild/v2/repository_manager_client.h",
2525
"google/cloud/managedidentities/v1/managed_identities_client.h",
2626
"google/cloud/monitoring/v3/uptime_check_client.h",
27+
"google/cloud/rapidmigrationassessment/v1/rapid_migration_assessment_client.h",
2728
"google/cloud/resourcemanager/v3/projects_client.h",
2829
# The tool complains about `FIELDs` :shrug:
2930
"/google/cloud/aiplatform/v1/featurestore_client.h",

bazel/google_cloud_cpp_deps.bzl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,11 @@ def google_cloud_cpp_deps(name = None):
156156
http_archive,
157157
name = "com_google_googleapis",
158158
urls = [
159-
"https://storage.googleapis.com/cloud-cpp-community-archive/com_google_googleapis/dd546bf83f7aa6dd24e17d3e83d9a397a6dd680c.tar.gz",
160-
"https://github.com/googleapis/googleapis/archive/dd546bf83f7aa6dd24e17d3e83d9a397a6dd680c.tar.gz",
159+
"https://storage.googleapis.com/cloud-cpp-community-archive/com_google_googleapis/d482d7e5793b7444260526ca813b5d1e8b3be582.tar.gz",
160+
"https://github.com/googleapis/googleapis/archive/d482d7e5793b7444260526ca813b5d1e8b3be582.tar.gz",
161161
],
162-
sha256 = "18407b35f1a35b30a1654779382d184e718bc51e80364b5e889b6e17c2bd5391",
163-
strip_prefix = "googleapis-dd546bf83f7aa6dd24e17d3e83d9a397a6dd680c",
162+
sha256 = "60ce1e426265b373b4e2f60241c328865a2061a5304c5e7fb9afb8f17bc68520",
163+
strip_prefix = "googleapis-d482d7e5793b7444260526ca813b5d1e8b3be582",
164164
build_file = Label("//bazel:googleapis.BUILD"),
165165
# Scaffolding for patching googleapis after download. For example:
166166
# patches = ["googleapis.patch"]

cmake/GoogleapisConfig.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ set(GOOGLE_CLOUD_CPP_GOOGLEAPIS_SHA256
2727
mark_as_advanced(GOOGLE_CLOUD_CPP_GOOGLEAPIS_SHA256)
2828

2929
set(_GOOGLE_CLOUD_CPP_GOOGLEAPIS_COMMIT_SHA
30-
"dd546bf83f7aa6dd24e17d3e83d9a397a6dd680c")
30+
"d482d7e5793b7444260526ca813b5d1e8b3be582")
3131
set(_GOOGLE_CLOUD_CPP_GOOGLEAPIS_SHA256
32-
"18407b35f1a35b30a1654779382d184e718bc51e80364b5e889b6e17c2bd5391")
32+
"60ce1e426265b373b4e2f60241c328865a2061a5304c5e7fb9afb8f17bc68520")
3333

3434
set(DOXYGEN_ALIASES
3535
"googleapis_link{2}=\"[\\1](https://github.com/googleapis/googleapis/blob/${_GOOGLE_CLOUD_CPP_GOOGLEAPIS_COMMIT_SHA}/\\2)\""

external/googleapis/protodeps/bigquery.deps

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
@com_google_googleapis//google/iam/v1:iam_policy_proto
1111
@com_google_googleapis//google/iam/v1:options_proto
1212
@com_google_googleapis//google/iam/v1:policy_proto
13+
@com_google_googleapis//google/longrunning:operations_proto
1314
@com_google_googleapis//google/rpc:error_details_proto
1415
@com_google_googleapis//google/rpc:status_proto
1516
@com_google_googleapis//google/type:expr_proto

external/googleapis/protodeps/serviceusage.deps

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
@com_google_googleapis//google/api:monitored_resource_proto
1010
@com_google_googleapis//google/api:monitoring_proto
1111
@com_google_googleapis//google/api:quota_proto
12+
@com_google_googleapis//google/api:resource_proto
1213
@com_google_googleapis//google/api:usage_proto
1314
@com_google_googleapis//google/api:visibility_proto
1415
@com_google_googleapis//google/longrunning:operations_proto

google/cloud/advisorynotifications/v1/advisory_notifications_client.cc

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,42 @@ AdvisoryNotificationsServiceClient::GetNotification(
6868
return connection_->GetNotification(request);
6969
}
7070

71+
StatusOr<google::cloud::advisorynotifications::v1::Settings>
72+
AdvisoryNotificationsServiceClient::GetSettings(std::string const& name,
73+
Options opts) {
74+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
75+
google::cloud::advisorynotifications::v1::GetSettingsRequest request;
76+
request.set_name(name);
77+
return connection_->GetSettings(request);
78+
}
79+
80+
StatusOr<google::cloud::advisorynotifications::v1::Settings>
81+
AdvisoryNotificationsServiceClient::GetSettings(
82+
google::cloud::advisorynotifications::v1::GetSettingsRequest const& request,
83+
Options opts) {
84+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
85+
return connection_->GetSettings(request);
86+
}
87+
88+
StatusOr<google::cloud::advisorynotifications::v1::Settings>
89+
AdvisoryNotificationsServiceClient::UpdateSettings(
90+
google::cloud::advisorynotifications::v1::Settings const& settings,
91+
Options opts) {
92+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
93+
google::cloud::advisorynotifications::v1::UpdateSettingsRequest request;
94+
*request.mutable_settings() = settings;
95+
return connection_->UpdateSettings(request);
96+
}
97+
98+
StatusOr<google::cloud::advisorynotifications::v1::Settings>
99+
AdvisoryNotificationsServiceClient::UpdateSettings(
100+
google::cloud::advisorynotifications::v1::UpdateSettingsRequest const&
101+
request,
102+
Options opts) {
103+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
104+
return connection_->UpdateSettings(request);
105+
}
106+
71107
GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
72108
} // namespace advisorynotifications_v1
73109
} // namespace cloud

google/cloud/advisorynotifications/v1/advisory_notifications_client.h

Lines changed: 126 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
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

3031
namespace 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_;

google/cloud/advisorynotifications/v1/advisory_notifications_connection.cc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,18 @@ AdvisoryNotificationsServiceConnection::GetNotification(
5151
return Status(StatusCode::kUnimplemented, "not implemented");
5252
}
5353

54+
StatusOr<google::cloud::advisorynotifications::v1::Settings>
55+
AdvisoryNotificationsServiceConnection::GetSettings(
56+
google::cloud::advisorynotifications::v1::GetSettingsRequest const&) {
57+
return Status(StatusCode::kUnimplemented, "not implemented");
58+
}
59+
60+
StatusOr<google::cloud::advisorynotifications::v1::Settings>
61+
AdvisoryNotificationsServiceConnection::UpdateSettings(
62+
google::cloud::advisorynotifications::v1::UpdateSettingsRequest const&) {
63+
return Status(StatusCode::kUnimplemented, "not implemented");
64+
}
65+
5466
std::shared_ptr<AdvisoryNotificationsServiceConnection>
5567
MakeAdvisoryNotificationsServiceConnection(Options options) {
5668
internal::CheckExpectedOptions<CommonOptionList, GrpcOptionList,

google/cloud/advisorynotifications/v1/advisory_notifications_connection.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,16 @@ class AdvisoryNotificationsServiceConnection {
210210
GetNotification(
211211
google::cloud::advisorynotifications::v1::GetNotificationRequest const&
212212
request);
213+
214+
virtual StatusOr<google::cloud::advisorynotifications::v1::Settings>
215+
GetSettings(
216+
google::cloud::advisorynotifications::v1::GetSettingsRequest const&
217+
request);
218+
219+
virtual StatusOr<google::cloud::advisorynotifications::v1::Settings>
220+
UpdateSettings(
221+
google::cloud::advisorynotifications::v1::UpdateSettingsRequest const&
222+
request);
213223
};
214224

215225
/**

google/cloud/advisorynotifications/v1/advisory_notifications_connection_idempotency_policy.cc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,18 @@ AdvisoryNotificationsServiceConnectionIdempotencyPolicy::GetNotification(
4848
return Idempotency::kIdempotent;
4949
}
5050

51+
Idempotency
52+
AdvisoryNotificationsServiceConnectionIdempotencyPolicy::GetSettings(
53+
google::cloud::advisorynotifications::v1::GetSettingsRequest const&) {
54+
return Idempotency::kIdempotent;
55+
}
56+
57+
Idempotency
58+
AdvisoryNotificationsServiceConnectionIdempotencyPolicy::UpdateSettings(
59+
google::cloud::advisorynotifications::v1::UpdateSettingsRequest const&) {
60+
return Idempotency::kNonIdempotent;
61+
}
62+
5163
std::unique_ptr<AdvisoryNotificationsServiceConnectionIdempotencyPolicy>
5264
MakeDefaultAdvisoryNotificationsServiceConnectionIdempotencyPolicy() {
5365
return std::make_unique<

0 commit comments

Comments
 (0)