Skip to content

Commit

Permalink
chore: update googleapis SHA circa 2024-10-31 (#14817)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 691873596
  • Loading branch information
scotthart authored Oct 31, 2024
1 parent 7e14d3a commit 21d8e53
Show file tree
Hide file tree
Showing 147 changed files with 16,033 additions and 1,034 deletions.
6 changes: 3 additions & 3 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ python.toolchain(
bazel_dep(name = "googleapis", version = "0.0.0", repo_name = "com_google_googleapis")
archive_override(
module_name = "googleapis",
integrity = "sha256-o6lYUSiWox5NQGrujn3JeMRLjVphOcwWYAk+n1sbON8=",
integrity = "sha256-8GamJKPP1S08PljJcSwO0IS9WEy4nl3d7gKcuy0LF5Y=",
patch_strip = 1,
patches = ["//bazel:googleapis.modules.patch"],
strip_prefix = "googleapis-d9673c1cab23f8e389be66ba037254bcf2ec5dc3",
strip_prefix = "googleapis-b7c5b60ee76c4591e32c874978c6cd8231087ed6",
urls = [
"https://github.com/googleapis/googleapis/archive/d9673c1cab23f8e389be66ba037254bcf2ec5dc3.tar.gz",
"https://github.com/googleapis/googleapis/archive/b7c5b60ee76c4591e32c874978c6cd8231087ed6.tar.gz",
],
)

Expand Down
6 changes: 3 additions & 3 deletions bazel/workspace0.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ def gl_cpp_workspace0(name = None):
http_archive,
name = "com_google_googleapis",
urls = [
"https://github.com/googleapis/googleapis/archive/d9673c1cab23f8e389be66ba037254bcf2ec5dc3.tar.gz",
"https://github.com/googleapis/googleapis/archive/b7c5b60ee76c4591e32c874978c6cd8231087ed6.tar.gz",
],
sha256 = "a3a958512896a31e4d406aee8e7dc978c44b8d5a6139cc1660093e9f5b1b38df",
strip_prefix = "googleapis-d9673c1cab23f8e389be66ba037254bcf2ec5dc3",
sha256 = "f066a624a3cfd52d3c3e58c9712c0ed084bd584cb89e5dddee029cbb2d0b1796",
strip_prefix = "googleapis-b7c5b60ee76c4591e32c874978c6cd8231087ed6",
build_file = Label("//bazel:googleapis.BUILD"),
# Scaffolding for patching googleapis after download. For example:
# patches = ["googleapis.patch"]
Expand Down
4 changes: 2 additions & 2 deletions cmake/GoogleapisConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ set(GOOGLE_CLOUD_CPP_GOOGLEAPIS_SHA256
mark_as_advanced(GOOGLE_CLOUD_CPP_GOOGLEAPIS_SHA256)

set(_GOOGLE_CLOUD_CPP_GOOGLEAPIS_COMMIT_SHA
"d9673c1cab23f8e389be66ba037254bcf2ec5dc3")
"b7c5b60ee76c4591e32c874978c6cd8231087ed6")
set(_GOOGLE_CLOUD_CPP_GOOGLEAPIS_SHA256
"a3a958512896a31e4d406aee8e7dc978c44b8d5a6139cc1660093e9f5b1b38df")
"f066a624a3cfd52d3c3e58c9712c0ed084bd584cb89e5dddee029cbb2d0b1796")

set(DOXYGEN_ALIASES
"googleapis_link{2}=\"[\\1](https://github.com/googleapis/googleapis/blob/${_GOOGLE_CLOUD_CPP_GOOGLEAPIS_COMMIT_SHA}/\\2)\""
Expand Down
1 change: 1 addition & 0 deletions external/googleapis/protodeps/bigquerycontrol.deps
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
@com_google_googleapis//google/api:http_proto
@com_google_googleapis//google/api:launch_stage_proto
@com_google_googleapis//google/api:resource_proto
@com_google_googleapis//google/type:expr_proto
1 change: 1 addition & 0 deletions external/googleapis/protodeps/eventarc.deps
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@com_google_googleapis//google/api:annotations_proto
@com_google_googleapis//google/api:client_proto
@com_google_googleapis//google/api:field_behavior_proto
@com_google_googleapis//google/api:field_info_proto
@com_google_googleapis//google/api:http_proto
@com_google_googleapis//google/api:launch_stage_proto
@com_google_googleapis//google/api:resource_proto
Expand Down
3 changes: 3 additions & 0 deletions external/googleapis/protolists/artifactregistry.list
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
@com_google_googleapis//google/devtools/artifactregistry/v1:apt_artifact.proto
@com_google_googleapis//google/devtools/artifactregistry/v1:artifact.proto
@com_google_googleapis//google/devtools/artifactregistry/v1:attachment.proto
@com_google_googleapis//google/devtools/artifactregistry/v1:file.proto
@com_google_googleapis//google/devtools/artifactregistry/v1:generic.proto
@com_google_googleapis//google/devtools/artifactregistry/v1:package.proto
@com_google_googleapis//google/devtools/artifactregistry/v1:repository.proto
@com_google_googleapis//google/devtools/artifactregistry/v1:rule.proto
@com_google_googleapis//google/devtools/artifactregistry/v1:service.proto
@com_google_googleapis//google/devtools/artifactregistry/v1:settings.proto
@com_google_googleapis//google/devtools/artifactregistry/v1:tag.proto
Expand Down
7 changes: 7 additions & 0 deletions external/googleapis/protolists/eventarc.list
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
@com_google_googleapis//google/cloud/eventarc/publishing/v1:cloud_event.proto
@com_google_googleapis//google/cloud/eventarc/publishing/v1:publisher.proto
@com_google_googleapis//google/cloud/eventarc/v1:channel.proto
@com_google_googleapis//google/cloud/eventarc/v1:channel_connection.proto
@com_google_googleapis//google/cloud/eventarc/v1:discovery.proto
@com_google_googleapis//google/cloud/eventarc/v1:enrollment.proto
@com_google_googleapis//google/cloud/eventarc/v1:eventarc.proto
@com_google_googleapis//google/cloud/eventarc/v1:google_api_source.proto
@com_google_googleapis//google/cloud/eventarc/v1:google_channel_config.proto
@com_google_googleapis//google/cloud/eventarc/v1:logging_config.proto
@com_google_googleapis//google/cloud/eventarc/v1:message_bus.proto
@com_google_googleapis//google/cloud/eventarc/v1:network_config.proto
@com_google_googleapis//google/cloud/eventarc/v1:pipeline.proto
@com_google_googleapis//google/cloud/eventarc/v1:trigger.proto
29 changes: 29 additions & 0 deletions google/cloud/aiplatform/v1/internal/notebook_auth_decorator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,35 @@ NotebookServiceAuth::StartNotebookRuntime(
return child_->StartNotebookRuntime(context, options, request);
}

future<StatusOr<google::longrunning::Operation>>
NotebookServiceAuth::AsyncStopNotebookRuntime(
google::cloud::CompletionQueue& cq,
std::shared_ptr<grpc::ClientContext> context,
google::cloud::internal::ImmutableOptions options,
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const& request) {
using ReturnType = StatusOr<google::longrunning::Operation>;
return auth_->AsyncConfigureContext(std::move(context))
.then([cq, child = child_, options = std::move(options),
request](future<StatusOr<std::shared_ptr<grpc::ClientContext>>>
f) mutable {
auto context = f.get();
if (!context) {
return make_ready_future(ReturnType(std::move(context).status()));
}
return child->AsyncStopNotebookRuntime(cq, *std::move(context),
std::move(options), request);
});
}

StatusOr<google::longrunning::Operation>
NotebookServiceAuth::StopNotebookRuntime(
grpc::ClientContext& context, Options options,
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const& request) {
auto status = auth_->ConfigureContext(context);
if (!status.ok()) return status;
return child_->StopNotebookRuntime(context, options, request);
}

future<StatusOr<google::longrunning::Operation>>
NotebookServiceAuth::AsyncCreateNotebookExecutionJob(
google::cloud::CompletionQueue& cq,
Expand Down
12 changes: 12 additions & 0 deletions google/cloud/aiplatform/v1/internal/notebook_auth_decorator.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,18 @@ class NotebookServiceAuth : public NotebookServiceStub {
google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const& request)
override;

future<StatusOr<google::longrunning::Operation>> AsyncStopNotebookRuntime(
google::cloud::CompletionQueue& cq,
std::shared_ptr<grpc::ClientContext> context,
google::cloud::internal::ImmutableOptions options,
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const& request)
override;

StatusOr<google::longrunning::Operation> StopNotebookRuntime(
grpc::ClientContext& context, Options options,
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const& request)
override;

future<StatusOr<google::longrunning::Operation>>
AsyncCreateNotebookExecutionJob(
google::cloud::CompletionQueue& cq,
Expand Down
94 changes: 94 additions & 0 deletions google/cloud/aiplatform/v1/internal/notebook_connection_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,100 @@ NotebookServiceConnectionImpl::StartNotebookRuntime(
polling_policy(*current), __func__);
}

future<StatusOr<google::cloud::aiplatform::v1::StopNotebookRuntimeResponse>>
NotebookServiceConnectionImpl::StopNotebookRuntime(
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const& request) {
auto current = google::cloud::internal::SaveCurrentOptions();
auto request_copy = request;
auto const idempotent =
idempotency_policy(*current)->StopNotebookRuntime(request_copy);
return google::cloud::internal::AsyncLongRunningOperation<
google::cloud::aiplatform::v1::StopNotebookRuntimeResponse>(
background_->cq(), current, std::move(request_copy),
[stub = stub_](
google::cloud::CompletionQueue& cq,
std::shared_ptr<grpc::ClientContext> context,
google::cloud::internal::ImmutableOptions options,
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const&
request) {
return stub->AsyncStopNotebookRuntime(cq, std::move(context),
std::move(options), request);
},
[stub = stub_](google::cloud::CompletionQueue& cq,
std::shared_ptr<grpc::ClientContext> context,
google::cloud::internal::ImmutableOptions options,
google::longrunning::GetOperationRequest const& request) {
return stub->AsyncGetOperation(cq, std::move(context),
std::move(options), request);
},
[stub = stub_](
google::cloud::CompletionQueue& cq,
std::shared_ptr<grpc::ClientContext> context,
google::cloud::internal::ImmutableOptions options,
google::longrunning::CancelOperationRequest const& request) {
return stub->AsyncCancelOperation(cq, std::move(context),
std::move(options), request);
},
&google::cloud::internal::ExtractLongRunningResultResponse<
google::cloud::aiplatform::v1::StopNotebookRuntimeResponse>,
retry_policy(*current), backoff_policy(*current), idempotent,
polling_policy(*current), __func__);
}

StatusOr<google::longrunning::Operation>
NotebookServiceConnectionImpl::StopNotebookRuntime(
NoAwaitTag,
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const& request) {
auto current = google::cloud::internal::SaveCurrentOptions();
return google::cloud::internal::RetryLoop(
retry_policy(*current), backoff_policy(*current),
idempotency_policy(*current)->StopNotebookRuntime(request),
[this](grpc::ClientContext& context, Options const& options,
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const&
request) {
return stub_->StopNotebookRuntime(context, options, request);
},
*current, request, __func__);
}

future<StatusOr<google::cloud::aiplatform::v1::StopNotebookRuntimeResponse>>
NotebookServiceConnectionImpl::StopNotebookRuntime(
google::longrunning::Operation const& operation) {
auto current = google::cloud::internal::SaveCurrentOptions();
if (!operation.metadata()
.Is<typename google::cloud::aiplatform::v1::
StopNotebookRuntimeOperationMetadata>()) {
return make_ready_future<
StatusOr<google::cloud::aiplatform::v1::StopNotebookRuntimeResponse>>(
internal::InvalidArgumentError(
"operation does not correspond to StopNotebookRuntime",
GCP_ERROR_INFO().WithMetadata("operation",
operation.metadata().DebugString())));
}

return google::cloud::internal::AsyncAwaitLongRunningOperation<
google::cloud::aiplatform::v1::StopNotebookRuntimeResponse>(
background_->cq(), current, operation,
[stub = stub_](google::cloud::CompletionQueue& cq,
std::shared_ptr<grpc::ClientContext> context,
google::cloud::internal::ImmutableOptions options,
google::longrunning::GetOperationRequest const& request) {
return stub->AsyncGetOperation(cq, std::move(context),
std::move(options), request);
},
[stub = stub_](
google::cloud::CompletionQueue& cq,
std::shared_ptr<grpc::ClientContext> context,
google::cloud::internal::ImmutableOptions options,
google::longrunning::CancelOperationRequest const& request) {
return stub->AsyncCancelOperation(cq, std::move(context),
std::move(options), request);
},
&google::cloud::internal::ExtractLongRunningResultResponse<
google::cloud::aiplatform::v1::StopNotebookRuntimeResponse>,
polling_policy(*current), __func__);
}

future<StatusOr<google::cloud::aiplatform::v1::NotebookExecutionJob>>
NotebookServiceConnectionImpl::CreateNotebookExecutionJob(
google::cloud::aiplatform::v1::CreateNotebookExecutionJobRequest const&
Expand Down
13 changes: 13 additions & 0 deletions google/cloud/aiplatform/v1/internal/notebook_connection_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,19 @@ class NotebookServiceConnectionImpl
StartNotebookRuntime(
google::longrunning::Operation const& operation) override;

future<StatusOr<google::cloud::aiplatform::v1::StopNotebookRuntimeResponse>>
StopNotebookRuntime(
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const& request)
override;

StatusOr<google::longrunning::Operation> StopNotebookRuntime(
NoAwaitTag,
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const& request)
override;

future<StatusOr<google::cloud::aiplatform::v1::StopNotebookRuntimeResponse>>
StopNotebookRuntime(google::longrunning::Operation const& operation) override;

future<StatusOr<google::cloud::aiplatform::v1::NotebookExecutionJob>>
CreateNotebookExecutionJob(
google::cloud::aiplatform::v1::CreateNotebookExecutionJobRequest const&
Expand Down
32 changes: 32 additions & 0 deletions google/cloud/aiplatform/v1/internal/notebook_logging_decorator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,38 @@ NotebookServiceLogging::StartNotebookRuntime(
context, options, request, __func__, tracing_options_);
}

future<StatusOr<google::longrunning::Operation>>
NotebookServiceLogging::AsyncStopNotebookRuntime(
google::cloud::CompletionQueue& cq,
std::shared_ptr<grpc::ClientContext> context,
google::cloud::internal::ImmutableOptions options,
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const& request) {
return google::cloud::internal::LogWrapper(
[this](google::cloud::CompletionQueue& cq,
std::shared_ptr<grpc::ClientContext> context,
google::cloud::internal::ImmutableOptions options,
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const&
request) {
return child_->AsyncStopNotebookRuntime(cq, std::move(context),
std::move(options), request);
},
cq, std::move(context), std::move(options), request, __func__,
tracing_options_);
}

StatusOr<google::longrunning::Operation>
NotebookServiceLogging::StopNotebookRuntime(
grpc::ClientContext& context, Options options,
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const& request) {
return google::cloud::internal::LogWrapper(
[this](grpc::ClientContext& context, Options const& options,
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const&
request) {
return child_->StopNotebookRuntime(context, options, request);
},
context, options, request, __func__, tracing_options_);
}

future<StatusOr<google::longrunning::Operation>>
NotebookServiceLogging::AsyncCreateNotebookExecutionJob(
google::cloud::CompletionQueue& cq,
Expand Down
12 changes: 12 additions & 0 deletions google/cloud/aiplatform/v1/internal/notebook_logging_decorator.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,18 @@ class NotebookServiceLogging : public NotebookServiceStub {
google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const& request)
override;

future<StatusOr<google::longrunning::Operation>> AsyncStopNotebookRuntime(
google::cloud::CompletionQueue& cq,
std::shared_ptr<grpc::ClientContext> context,
google::cloud::internal::ImmutableOptions options,
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const& request)
override;

StatusOr<google::longrunning::Operation> StopNotebookRuntime(
grpc::ClientContext& context, Options options,
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const& request)
override;

future<StatusOr<google::longrunning::Operation>>
AsyncCreateNotebookExecutionJob(
google::cloud::CompletionQueue& cq,
Expand Down
21 changes: 21 additions & 0 deletions google/cloud/aiplatform/v1/internal/notebook_metadata_decorator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,27 @@ NotebookServiceMetadata::StartNotebookRuntime(
return child_->StartNotebookRuntime(context, options, request);
}

future<StatusOr<google::longrunning::Operation>>
NotebookServiceMetadata::AsyncStopNotebookRuntime(
google::cloud::CompletionQueue& cq,
std::shared_ptr<grpc::ClientContext> context,
google::cloud::internal::ImmutableOptions options,
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const& request) {
SetMetadata(*context, *options,
absl::StrCat("name=", internal::UrlEncode(request.name())));
return child_->AsyncStopNotebookRuntime(cq, std::move(context),
std::move(options), request);
}

StatusOr<google::longrunning::Operation>
NotebookServiceMetadata::StopNotebookRuntime(
grpc::ClientContext& context, Options options,
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const& request) {
SetMetadata(context, options,
absl::StrCat("name=", internal::UrlEncode(request.name())));
return child_->StopNotebookRuntime(context, options, request);
}

future<StatusOr<google::longrunning::Operation>>
NotebookServiceMetadata::AsyncCreateNotebookExecutionJob(
google::cloud::CompletionQueue& cq,
Expand Down
12 changes: 12 additions & 0 deletions google/cloud/aiplatform/v1/internal/notebook_metadata_decorator.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,18 @@ class NotebookServiceMetadata : public NotebookServiceStub {
google::cloud::aiplatform::v1::StartNotebookRuntimeRequest const& request)
override;

future<StatusOr<google::longrunning::Operation>> AsyncStopNotebookRuntime(
google::cloud::CompletionQueue& cq,
std::shared_ptr<grpc::ClientContext> context,
google::cloud::internal::ImmutableOptions options,
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const& request)
override;

StatusOr<google::longrunning::Operation> StopNotebookRuntime(
grpc::ClientContext& context, Options options,
google::cloud::aiplatform::v1::StopNotebookRuntimeRequest const& request)
override;

future<StatusOr<google::longrunning::Operation>>
AsyncCreateNotebookExecutionJob(
google::cloud::CompletionQueue& cq,
Expand Down
Loading

0 comments on commit 21d8e53

Please sign in to comment.