Skip to content

Commit 41aa7ff

Browse files
authored
chore: update googleapis SHA circa 2025-06-19 (#15232)
* chore: update googleapis SHA circa 2025-06-19 PiperOrigin-RevId: 773361143
1 parent 3758a0a commit 41aa7ff

File tree

57 files changed

+5329
-391
lines changed

Some content is hidden

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

57 files changed

+5329
-391
lines changed

MODULE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ python.toolchain(
5555
bazel_dep(name = "googleapis", version = "0.0.0", repo_name = "com_google_googleapis")
5656
archive_override(
5757
module_name = "googleapis",
58-
integrity = "sha256-6FrMqUyMsAgBxSwG2fdSxQPx2XNg1wsVmfTxTOji900=",
58+
integrity = "sha256-vkHcmQF/L8fMzxFQgZR+NU0zo3lD7en13XBbZovOfyk=",
5959
patch_strip = 1,
6060
patches = ["//bazel:googleapis.modules.patch"],
61-
strip_prefix = "googleapis-de157ca34fa487ce248eb9130293d630b501e4ad",
61+
strip_prefix = "googleapis-f01a17a560b4fbc888fd552c978f4e1f8614100b",
6262
urls = [
63-
"https://github.com/googleapis/googleapis/archive/de157ca34fa487ce248eb9130293d630b501e4ad.tar.gz",
63+
"https://github.com/googleapis/googleapis/archive/f01a17a560b4fbc888fd552c978f4e1f8614100b.tar.gz",
6464
],
6565
)
6666

bazel/workspace0.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ def gl_cpp_workspace0(name = None):
126126
http_archive,
127127
name = "com_google_googleapis",
128128
urls = [
129-
"https://github.com/googleapis/googleapis/archive/de157ca34fa487ce248eb9130293d630b501e4ad.tar.gz",
129+
"https://github.com/googleapis/googleapis/archive/f01a17a560b4fbc888fd552c978f4e1f8614100b.tar.gz",
130130
],
131-
sha256 = "e85acca94c8cb00801c52c06d9f752c503f1d97360d70b1599f4f14ce8e2f74d",
132-
strip_prefix = "googleapis-de157ca34fa487ce248eb9130293d630b501e4ad",
131+
sha256 = "be41dc99017f2fc7cccf115081947e354d33a37943ede9f5dd705b668bce7f29",
132+
strip_prefix = "googleapis-f01a17a560b4fbc888fd552c978f4e1f8614100b",
133133
build_file = Label("//bazel:googleapis.BUILD"),
134134
# Scaffolding for patching googleapis after download. For example:
135135
# 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-
"de157ca34fa487ce248eb9130293d630b501e4ad")
30+
"f01a17a560b4fbc888fd552c978f4e1f8614100b")
3131
set(_GOOGLE_CLOUD_CPP_GOOGLEAPIS_SHA256
32-
"e85acca94c8cb00801c52c06d9f752c503f1d97360d70b1599f4f14ce8e2f74d")
32+
"be41dc99017f2fc7cccf115081947e354d33a37943ede9f5dd705b668bce7f29")
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/alloydb.deps

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
@com_google_googleapis//google/api:resource_proto
88
@com_google_googleapis//google/longrunning:operations_proto
99
@com_google_googleapis//google/rpc:status_proto
10+
@com_google_googleapis//google/type:date_proto
1011
@com_google_googleapis//google/type:dayofweek_proto
1112
@com_google_googleapis//google/type:timeofday_proto

external/googleapis/protolists/networkservices.list

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
@com_google_googleapis//google/cloud/networkservices/v1:http_route.proto
77
@com_google_googleapis//google/cloud/networkservices/v1:mesh.proto
88
@com_google_googleapis//google/cloud/networkservices/v1:network_services.proto
9+
@com_google_googleapis//google/cloud/networkservices/v1:route_view.proto
910
@com_google_googleapis//google/cloud/networkservices/v1:service_binding.proto
11+
@com_google_googleapis//google/cloud/networkservices/v1:service_lb_policy.proto
1012
@com_google_googleapis//google/cloud/networkservices/v1:tcp_route.proto
1113
@com_google_googleapis//google/cloud/networkservices/v1:tls_route.proto

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

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,34 @@ ModelGardenServiceAuth::GetPublisherModel(
4040
return child_->GetPublisherModel(context, options, request);
4141
}
4242

43+
future<StatusOr<google::longrunning::Operation>>
44+
ModelGardenServiceAuth::AsyncDeploy(
45+
google::cloud::CompletionQueue& cq,
46+
std::shared_ptr<grpc::ClientContext> context,
47+
google::cloud::internal::ImmutableOptions options,
48+
google::cloud::aiplatform::v1::DeployRequest const& request) {
49+
using ReturnType = StatusOr<google::longrunning::Operation>;
50+
return auth_->AsyncConfigureContext(std::move(context))
51+
.then([cq, child = child_, options = std::move(options),
52+
request](future<StatusOr<std::shared_ptr<grpc::ClientContext>>>
53+
f) mutable {
54+
auto context = f.get();
55+
if (!context) {
56+
return make_ready_future(ReturnType(std::move(context).status()));
57+
}
58+
return child->AsyncDeploy(cq, *std::move(context), std::move(options),
59+
request);
60+
});
61+
}
62+
63+
StatusOr<google::longrunning::Operation> ModelGardenServiceAuth::Deploy(
64+
grpc::ClientContext& context, Options options,
65+
google::cloud::aiplatform::v1::DeployRequest const& request) {
66+
auto status = auth_->ConfigureContext(context);
67+
if (!status.ok()) return status;
68+
return child_->Deploy(context, options, request);
69+
}
70+
4371
StatusOr<google::cloud::location::ListLocationsResponse>
4472
ModelGardenServiceAuth::ListLocations(
4573
grpc::ClientContext& context, Options const& options,
@@ -123,6 +151,42 @@ StatusOr<google::longrunning::Operation> ModelGardenServiceAuth::WaitOperation(
123151
return child_->WaitOperation(context, options, request);
124152
}
125153

154+
future<StatusOr<google::longrunning::Operation>>
155+
ModelGardenServiceAuth::AsyncGetOperation(
156+
google::cloud::CompletionQueue& cq,
157+
std::shared_ptr<grpc::ClientContext> context,
158+
google::cloud::internal::ImmutableOptions options,
159+
google::longrunning::GetOperationRequest const& request) {
160+
using ReturnType = StatusOr<google::longrunning::Operation>;
161+
return auth_->AsyncConfigureContext(std::move(context))
162+
.then([cq, child = child_, options = std::move(options),
163+
request](future<StatusOr<std::shared_ptr<grpc::ClientContext>>>
164+
f) mutable {
165+
auto context = f.get();
166+
if (!context) {
167+
return make_ready_future(ReturnType(std::move(context).status()));
168+
}
169+
return child->AsyncGetOperation(cq, *std::move(context),
170+
std::move(options), request);
171+
});
172+
}
173+
174+
future<Status> ModelGardenServiceAuth::AsyncCancelOperation(
175+
google::cloud::CompletionQueue& cq,
176+
std::shared_ptr<grpc::ClientContext> context,
177+
google::cloud::internal::ImmutableOptions options,
178+
google::longrunning::CancelOperationRequest const& request) {
179+
return auth_->AsyncConfigureContext(std::move(context))
180+
.then([cq, child = child_, options = std::move(options),
181+
request](future<StatusOr<std::shared_ptr<grpc::ClientContext>>>
182+
f) mutable {
183+
auto context = f.get();
184+
if (!context) return make_ready_future(std::move(context).status());
185+
return child->AsyncCancelOperation(cq, *std::move(context),
186+
std::move(options), request);
187+
});
188+
}
189+
126190
GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
127191
} // namespace aiplatform_v1_internal
128192
} // namespace cloud

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "google/cloud/aiplatform/v1/internal/model_garden_stub.h"
2323
#include "google/cloud/internal/unified_grpc_credentials.h"
2424
#include "google/cloud/version.h"
25+
#include <google/longrunning/operations.grpc.pb.h>
2526
#include <memory>
2627
#include <set>
2728
#include <string>
@@ -43,6 +44,16 @@ class ModelGardenServiceAuth : public ModelGardenServiceStub {
4344
google::cloud::aiplatform::v1::GetPublisherModelRequest const& request)
4445
override;
4546

47+
future<StatusOr<google::longrunning::Operation>> AsyncDeploy(
48+
google::cloud::CompletionQueue& cq,
49+
std::shared_ptr<grpc::ClientContext> context,
50+
google::cloud::internal::ImmutableOptions options,
51+
google::cloud::aiplatform::v1::DeployRequest const& request) override;
52+
53+
StatusOr<google::longrunning::Operation> Deploy(
54+
grpc::ClientContext& context, Options options,
55+
google::cloud::aiplatform::v1::DeployRequest const& request) override;
56+
4657
StatusOr<google::cloud::location::ListLocationsResponse> ListLocations(
4758
grpc::ClientContext& context, Options const& options,
4859
google::cloud::location::ListLocationsRequest const& request) override;
@@ -83,6 +94,18 @@ class ModelGardenServiceAuth : public ModelGardenServiceStub {
8394
grpc::ClientContext& context, Options const& options,
8495
google::longrunning::WaitOperationRequest const& request) override;
8596

97+
future<StatusOr<google::longrunning::Operation>> AsyncGetOperation(
98+
google::cloud::CompletionQueue& cq,
99+
std::shared_ptr<grpc::ClientContext> context,
100+
google::cloud::internal::ImmutableOptions options,
101+
google::longrunning::GetOperationRequest const& request) override;
102+
103+
future<Status> AsyncCancelOperation(
104+
google::cloud::CompletionQueue& cq,
105+
std::shared_ptr<grpc::ClientContext> context,
106+
google::cloud::internal::ImmutableOptions options,
107+
google::longrunning::CancelOperationRequest const& request) override;
108+
86109
private:
87110
std::shared_ptr<google::cloud::internal::GrpcAuthenticationStrategy> auth_;
88111
std::shared_ptr<ModelGardenServiceStub> child_;

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

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "google/cloud/background_threads.h"
2222
#include "google/cloud/common_options.h"
2323
#include "google/cloud/grpc_options.h"
24+
#include "google/cloud/internal/async_long_running_operation.h"
2425
#include "google/cloud/internal/pagination_range.h"
2526
#include "google/cloud/internal/retry_loop.h"
2627
#include <memory>
@@ -50,6 +51,11 @@ idempotency_policy(Options const& options) {
5051
->clone();
5152
}
5253

54+
std::unique_ptr<PollingPolicy> polling_policy(Options const& options) {
55+
return options.get<aiplatform_v1::ModelGardenServicePollingPolicyOption>()
56+
->clone();
57+
}
58+
5359
} // namespace
5460

5561
ModelGardenServiceConnectionImpl::ModelGardenServiceConnectionImpl(
@@ -76,6 +82,96 @@ ModelGardenServiceConnectionImpl::GetPublisherModel(
7682
*current, request, __func__);
7783
}
7884

85+
future<StatusOr<google::cloud::aiplatform::v1::DeployResponse>>
86+
ModelGardenServiceConnectionImpl::Deploy(
87+
google::cloud::aiplatform::v1::DeployRequest const& request) {
88+
auto current = google::cloud::internal::SaveCurrentOptions();
89+
auto request_copy = request;
90+
auto const idempotent = idempotency_policy(*current)->Deploy(request_copy);
91+
return google::cloud::internal::AsyncLongRunningOperation<
92+
google::cloud::aiplatform::v1::DeployResponse>(
93+
background_->cq(), current, std::move(request_copy),
94+
[stub = stub_](
95+
google::cloud::CompletionQueue& cq,
96+
std::shared_ptr<grpc::ClientContext> context,
97+
google::cloud::internal::ImmutableOptions options,
98+
google::cloud::aiplatform::v1::DeployRequest const& request) {
99+
return stub->AsyncDeploy(cq, std::move(context), std::move(options),
100+
request);
101+
},
102+
[stub = stub_](google::cloud::CompletionQueue& cq,
103+
std::shared_ptr<grpc::ClientContext> context,
104+
google::cloud::internal::ImmutableOptions options,
105+
google::longrunning::GetOperationRequest const& request) {
106+
return stub->AsyncGetOperation(cq, std::move(context),
107+
std::move(options), request);
108+
},
109+
[stub = stub_](
110+
google::cloud::CompletionQueue& cq,
111+
std::shared_ptr<grpc::ClientContext> context,
112+
google::cloud::internal::ImmutableOptions options,
113+
google::longrunning::CancelOperationRequest const& request) {
114+
return stub->AsyncCancelOperation(cq, std::move(context),
115+
std::move(options), request);
116+
},
117+
&google::cloud::internal::ExtractLongRunningResultResponse<
118+
google::cloud::aiplatform::v1::DeployResponse>,
119+
retry_policy(*current), backoff_policy(*current), idempotent,
120+
polling_policy(*current), __func__);
121+
}
122+
123+
StatusOr<google::longrunning::Operation>
124+
ModelGardenServiceConnectionImpl::Deploy(
125+
NoAwaitTag, google::cloud::aiplatform::v1::DeployRequest const& request) {
126+
auto current = google::cloud::internal::SaveCurrentOptions();
127+
return google::cloud::internal::RetryLoop(
128+
retry_policy(*current), backoff_policy(*current),
129+
idempotency_policy(*current)->Deploy(request),
130+
[this](grpc::ClientContext& context, Options const& options,
131+
google::cloud::aiplatform::v1::DeployRequest const& request) {
132+
return stub_->Deploy(context, options, request);
133+
},
134+
*current, request, __func__);
135+
}
136+
137+
future<StatusOr<google::cloud::aiplatform::v1::DeployResponse>>
138+
ModelGardenServiceConnectionImpl::Deploy(
139+
google::longrunning::Operation const& operation) {
140+
auto current = google::cloud::internal::SaveCurrentOptions();
141+
if (!operation.metadata()
142+
.Is<typename google::cloud::aiplatform::v1::
143+
DeployOperationMetadata>()) {
144+
return make_ready_future<
145+
StatusOr<google::cloud::aiplatform::v1::DeployResponse>>(
146+
internal::InvalidArgumentError(
147+
"operation does not correspond to Deploy",
148+
GCP_ERROR_INFO().WithMetadata("operation",
149+
operation.metadata().DebugString())));
150+
}
151+
152+
return google::cloud::internal::AsyncAwaitLongRunningOperation<
153+
google::cloud::aiplatform::v1::DeployResponse>(
154+
background_->cq(), current, operation,
155+
[stub = stub_](google::cloud::CompletionQueue& cq,
156+
std::shared_ptr<grpc::ClientContext> context,
157+
google::cloud::internal::ImmutableOptions options,
158+
google::longrunning::GetOperationRequest const& request) {
159+
return stub->AsyncGetOperation(cq, std::move(context),
160+
std::move(options), request);
161+
},
162+
[stub = stub_](
163+
google::cloud::CompletionQueue& cq,
164+
std::shared_ptr<grpc::ClientContext> context,
165+
google::cloud::internal::ImmutableOptions options,
166+
google::longrunning::CancelOperationRequest const& request) {
167+
return stub->AsyncCancelOperation(cq, std::move(context),
168+
std::move(options), request);
169+
},
170+
&google::cloud::internal::ExtractLongRunningResultResponse<
171+
google::cloud::aiplatform::v1::DeployResponse>,
172+
polling_policy(*current), __func__);
173+
}
174+
79175
StreamRange<google::cloud::location::Location>
80176
ModelGardenServiceConnectionImpl::ListLocations(
81177
google::cloud::location::ListLocationsRequest request) {

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,13 @@
2626
#include "google/cloud/aiplatform/v1/model_garden_options.h"
2727
#include "google/cloud/background_threads.h"
2828
#include "google/cloud/backoff_policy.h"
29+
#include "google/cloud/future.h"
2930
#include "google/cloud/options.h"
31+
#include "google/cloud/polling_policy.h"
3032
#include "google/cloud/status_or.h"
3133
#include "google/cloud/stream_range.h"
3234
#include "google/cloud/version.h"
35+
#include <google/longrunning/operations.grpc.pb.h>
3336
#include <memory>
3437

3538
namespace google {
@@ -53,6 +56,16 @@ class ModelGardenServiceConnectionImpl
5356
google::cloud::aiplatform::v1::GetPublisherModelRequest const& request)
5457
override;
5558

59+
future<StatusOr<google::cloud::aiplatform::v1::DeployResponse>> Deploy(
60+
google::cloud::aiplatform::v1::DeployRequest const& request) override;
61+
62+
StatusOr<google::longrunning::Operation> Deploy(
63+
NoAwaitTag,
64+
google::cloud::aiplatform::v1::DeployRequest const& request) override;
65+
66+
future<StatusOr<google::cloud::aiplatform::v1::DeployResponse>> Deploy(
67+
google::longrunning::Operation const& operation) override;
68+
5669
StreamRange<google::cloud::location::Location> ListLocations(
5770
google::cloud::location::ListLocationsRequest request) override;
5871

0 commit comments

Comments
 (0)