Skip to content

Commit 21d8e53

Browse files
authored
chore: update googleapis SHA circa 2024-10-31 (#14817)
PiperOrigin-RevId: 691873596
1 parent 7e14d3a commit 21d8e53

File tree

147 files changed

+16033
-1034
lines changed

Some content is hidden

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

147 files changed

+16033
-1034
lines changed

MODULE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ python.toolchain(
5252
bazel_dep(name = "googleapis", version = "0.0.0", repo_name = "com_google_googleapis")
5353
archive_override(
5454
module_name = "googleapis",
55-
integrity = "sha256-o6lYUSiWox5NQGrujn3JeMRLjVphOcwWYAk+n1sbON8=",
55+
integrity = "sha256-8GamJKPP1S08PljJcSwO0IS9WEy4nl3d7gKcuy0LF5Y=",
5656
patch_strip = 1,
5757
patches = ["//bazel:googleapis.modules.patch"],
58-
strip_prefix = "googleapis-d9673c1cab23f8e389be66ba037254bcf2ec5dc3",
58+
strip_prefix = "googleapis-b7c5b60ee76c4591e32c874978c6cd8231087ed6",
5959
urls = [
60-
"https://github.com/googleapis/googleapis/archive/d9673c1cab23f8e389be66ba037254bcf2ec5dc3.tar.gz",
60+
"https://github.com/googleapis/googleapis/archive/b7c5b60ee76c4591e32c874978c6cd8231087ed6.tar.gz",
6161
],
6262
)
6363

bazel/workspace0.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ def gl_cpp_workspace0(name = None):
115115
http_archive,
116116
name = "com_google_googleapis",
117117
urls = [
118-
"https://github.com/googleapis/googleapis/archive/d9673c1cab23f8e389be66ba037254bcf2ec5dc3.tar.gz",
118+
"https://github.com/googleapis/googleapis/archive/b7c5b60ee76c4591e32c874978c6cd8231087ed6.tar.gz",
119119
],
120-
sha256 = "a3a958512896a31e4d406aee8e7dc978c44b8d5a6139cc1660093e9f5b1b38df",
121-
strip_prefix = "googleapis-d9673c1cab23f8e389be66ba037254bcf2ec5dc3",
120+
sha256 = "f066a624a3cfd52d3c3e58c9712c0ed084bd584cb89e5dddee029cbb2d0b1796",
121+
strip_prefix = "googleapis-b7c5b60ee76c4591e32c874978c6cd8231087ed6",
122122
build_file = Label("//bazel:googleapis.BUILD"),
123123
# Scaffolding for patching googleapis after download. For example:
124124
# 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-
"d9673c1cab23f8e389be66ba037254bcf2ec5dc3")
30+
"b7c5b60ee76c4591e32c874978c6cd8231087ed6")
3131
set(_GOOGLE_CLOUD_CPP_GOOGLEAPIS_SHA256
32-
"a3a958512896a31e4d406aee8e7dc978c44b8d5a6139cc1660093e9f5b1b38df")
32+
"f066a624a3cfd52d3c3e58c9712c0ed084bd584cb89e5dddee029cbb2d0b1796")
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/bigquerycontrol.deps

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
@com_google_googleapis//google/api:http_proto
55
@com_google_googleapis//google/api:launch_stage_proto
66
@com_google_googleapis//google/api:resource_proto
7+
@com_google_googleapis//google/type:expr_proto

external/googleapis/protodeps/eventarc.deps

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@com_google_googleapis//google/api:annotations_proto
22
@com_google_googleapis//google/api:client_proto
33
@com_google_googleapis//google/api:field_behavior_proto
4+
@com_google_googleapis//google/api:field_info_proto
45
@com_google_googleapis//google/api:http_proto
56
@com_google_googleapis//google/api:launch_stage_proto
67
@com_google_googleapis//google/api:resource_proto

external/googleapis/protolists/artifactregistry.list

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
@com_google_googleapis//google/devtools/artifactregistry/v1:apt_artifact.proto
22
@com_google_googleapis//google/devtools/artifactregistry/v1:artifact.proto
3+
@com_google_googleapis//google/devtools/artifactregistry/v1:attachment.proto
34
@com_google_googleapis//google/devtools/artifactregistry/v1:file.proto
5+
@com_google_googleapis//google/devtools/artifactregistry/v1:generic.proto
46
@com_google_googleapis//google/devtools/artifactregistry/v1:package.proto
57
@com_google_googleapis//google/devtools/artifactregistry/v1:repository.proto
8+
@com_google_googleapis//google/devtools/artifactregistry/v1:rule.proto
69
@com_google_googleapis//google/devtools/artifactregistry/v1:service.proto
710
@com_google_googleapis//google/devtools/artifactregistry/v1:settings.proto
811
@com_google_googleapis//google/devtools/artifactregistry/v1:tag.proto
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
@com_google_googleapis//google/cloud/eventarc/publishing/v1:cloud_event.proto
12
@com_google_googleapis//google/cloud/eventarc/publishing/v1:publisher.proto
23
@com_google_googleapis//google/cloud/eventarc/v1:channel.proto
34
@com_google_googleapis//google/cloud/eventarc/v1:channel_connection.proto
45
@com_google_googleapis//google/cloud/eventarc/v1:discovery.proto
6+
@com_google_googleapis//google/cloud/eventarc/v1:enrollment.proto
57
@com_google_googleapis//google/cloud/eventarc/v1:eventarc.proto
8+
@com_google_googleapis//google/cloud/eventarc/v1:google_api_source.proto
69
@com_google_googleapis//google/cloud/eventarc/v1:google_channel_config.proto
10+
@com_google_googleapis//google/cloud/eventarc/v1:logging_config.proto
11+
@com_google_googleapis//google/cloud/eventarc/v1:message_bus.proto
12+
@com_google_googleapis//google/cloud/eventarc/v1:network_config.proto
13+
@com_google_googleapis//google/cloud/eventarc/v1:pipeline.proto
714
@com_google_googleapis//google/cloud/eventarc/v1:trigger.proto

google/cloud/aiplatform/v1/internal/notebook_auth_decorator.cc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,35 @@ NotebookServiceAuth::StartNotebookRuntime(
263263
return child_->StartNotebookRuntime(context, options, request);
264264
}
265265

266+
future<StatusOr<google::longrunning::Operation>>
267+
NotebookServiceAuth::AsyncStopNotebookRuntime(
268+
google::cloud::CompletionQueue& cq,
269+
std::shared_ptr<grpc::ClientContext> context,
270+
google::cloud::internal::ImmutableOptions options,
271+
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const& request) {
272+
using ReturnType = StatusOr<google::longrunning::Operation>;
273+
return auth_->AsyncConfigureContext(std::move(context))
274+
.then([cq, child = child_, options = std::move(options),
275+
request](future<StatusOr<std::shared_ptr<grpc::ClientContext>>>
276+
f) mutable {
277+
auto context = f.get();
278+
if (!context) {
279+
return make_ready_future(ReturnType(std::move(context).status()));
280+
}
281+
return child->AsyncStopNotebookRuntime(cq, *std::move(context),
282+
std::move(options), request);
283+
});
284+
}
285+
286+
StatusOr<google::longrunning::Operation>
287+
NotebookServiceAuth::StopNotebookRuntime(
288+
grpc::ClientContext& context, Options options,
289+
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const& request) {
290+
auto status = auth_->ConfigureContext(context);
291+
if (!status.ok()) return status;
292+
return child_->StopNotebookRuntime(context, options, request);
293+
}
294+
266295
future<StatusOr<google::longrunning::Operation>>
267296
NotebookServiceAuth::AsyncCreateNotebookExecutionJob(
268297
google::cloud::CompletionQueue& cq,

google/cloud/aiplatform/v1/internal/notebook_auth_decorator.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,18 @@ class NotebookServiceAuth : public NotebookServiceStub {
142142
google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const& request)
143143
override;
144144

145+
future<StatusOr<google::longrunning::Operation>> AsyncStopNotebookRuntime(
146+
google::cloud::CompletionQueue& cq,
147+
std::shared_ptr<grpc::ClientContext> context,
148+
google::cloud::internal::ImmutableOptions options,
149+
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const& request)
150+
override;
151+
152+
StatusOr<google::longrunning::Operation> StopNotebookRuntime(
153+
grpc::ClientContext& context, Options options,
154+
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const& request)
155+
override;
156+
145157
future<StatusOr<google::longrunning::Operation>>
146158
AsyncCreateNotebookExecutionJob(
147159
google::cloud::CompletionQueue& cq,

google/cloud/aiplatform/v1/internal/notebook_connection_impl.cc

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,100 @@ NotebookServiceConnectionImpl::StartNotebookRuntime(
760760
polling_policy(*current), __func__);
761761
}
762762

763+
future<StatusOr<google::cloud::aiplatform::v1::StopNotebookRuntimeResponse>>
764+
NotebookServiceConnectionImpl::StopNotebookRuntime(
765+
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const& request) {
766+
auto current = google::cloud::internal::SaveCurrentOptions();
767+
auto request_copy = request;
768+
auto const idempotent =
769+
idempotency_policy(*current)->StopNotebookRuntime(request_copy);
770+
return google::cloud::internal::AsyncLongRunningOperation<
771+
google::cloud::aiplatform::v1::StopNotebookRuntimeResponse>(
772+
background_->cq(), current, std::move(request_copy),
773+
[stub = stub_](
774+
google::cloud::CompletionQueue& cq,
775+
std::shared_ptr<grpc::ClientContext> context,
776+
google::cloud::internal::ImmutableOptions options,
777+
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const&
778+
request) {
779+
return stub->AsyncStopNotebookRuntime(cq, std::move(context),
780+
std::move(options), request);
781+
},
782+
[stub = stub_](google::cloud::CompletionQueue& cq,
783+
std::shared_ptr<grpc::ClientContext> context,
784+
google::cloud::internal::ImmutableOptions options,
785+
google::longrunning::GetOperationRequest const& request) {
786+
return stub->AsyncGetOperation(cq, std::move(context),
787+
std::move(options), request);
788+
},
789+
[stub = stub_](
790+
google::cloud::CompletionQueue& cq,
791+
std::shared_ptr<grpc::ClientContext> context,
792+
google::cloud::internal::ImmutableOptions options,
793+
google::longrunning::CancelOperationRequest const& request) {
794+
return stub->AsyncCancelOperation(cq, std::move(context),
795+
std::move(options), request);
796+
},
797+
&google::cloud::internal::ExtractLongRunningResultResponse<
798+
google::cloud::aiplatform::v1::StopNotebookRuntimeResponse>,
799+
retry_policy(*current), backoff_policy(*current), idempotent,
800+
polling_policy(*current), __func__);
801+
}
802+
803+
StatusOr<google::longrunning::Operation>
804+
NotebookServiceConnectionImpl::StopNotebookRuntime(
805+
NoAwaitTag,
806+
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const& request) {
807+
auto current = google::cloud::internal::SaveCurrentOptions();
808+
return google::cloud::internal::RetryLoop(
809+
retry_policy(*current), backoff_policy(*current),
810+
idempotency_policy(*current)->StopNotebookRuntime(request),
811+
[this](grpc::ClientContext& context, Options const& options,
812+
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const&
813+
request) {
814+
return stub_->StopNotebookRuntime(context, options, request);
815+
},
816+
*current, request, __func__);
817+
}
818+
819+
future<StatusOr<google::cloud::aiplatform::v1::StopNotebookRuntimeResponse>>
820+
NotebookServiceConnectionImpl::StopNotebookRuntime(
821+
google::longrunning::Operation const& operation) {
822+
auto current = google::cloud::internal::SaveCurrentOptions();
823+
if (!operation.metadata()
824+
.Is<typename google::cloud::aiplatform::v1::
825+
StopNotebookRuntimeOperationMetadata>()) {
826+
return make_ready_future<
827+
StatusOr<google::cloud::aiplatform::v1::StopNotebookRuntimeResponse>>(
828+
internal::InvalidArgumentError(
829+
"operation does not correspond to StopNotebookRuntime",
830+
GCP_ERROR_INFO().WithMetadata("operation",
831+
operation.metadata().DebugString())));
832+
}
833+
834+
return google::cloud::internal::AsyncAwaitLongRunningOperation<
835+
google::cloud::aiplatform::v1::StopNotebookRuntimeResponse>(
836+
background_->cq(), current, operation,
837+
[stub = stub_](google::cloud::CompletionQueue& cq,
838+
std::shared_ptr<grpc::ClientContext> context,
839+
google::cloud::internal::ImmutableOptions options,
840+
google::longrunning::GetOperationRequest const& request) {
841+
return stub->AsyncGetOperation(cq, std::move(context),
842+
std::move(options), request);
843+
},
844+
[stub = stub_](
845+
google::cloud::CompletionQueue& cq,
846+
std::shared_ptr<grpc::ClientContext> context,
847+
google::cloud::internal::ImmutableOptions options,
848+
google::longrunning::CancelOperationRequest const& request) {
849+
return stub->AsyncCancelOperation(cq, std::move(context),
850+
std::move(options), request);
851+
},
852+
&google::cloud::internal::ExtractLongRunningResultResponse<
853+
google::cloud::aiplatform::v1::StopNotebookRuntimeResponse>,
854+
polling_policy(*current), __func__);
855+
}
856+
763857
future<StatusOr<google::cloud::aiplatform::v1::NotebookExecutionJob>>
764858
NotebookServiceConnectionImpl::CreateNotebookExecutionJob(
765859
google::cloud::aiplatform::v1::CreateNotebookExecutionJobRequest const&

0 commit comments

Comments
 (0)