Skip to content

Commit

Permalink
regenerate code
Browse files Browse the repository at this point in the history
  • Loading branch information
scotthart committed Mar 22, 2024
1 parent 4498caa commit 50c15c9
Show file tree
Hide file tree
Showing 422 changed files with 1,288 additions and 2,348 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,8 @@ void GoldenKitchenSinkMetadata::SetMetadata(grpc::ClientContext& context,
}
auto const& authority = options.get<AuthorityOption>();
if (!authority.empty()) context.set_authority(authority);
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,21 +170,19 @@ void GoldenKitchenSinkRestMetadata::SetMetadata(
rest_context.AddHeader(
"x-goog-user-project", options.get<UserProjectOption>());
}
if (options.has<google::cloud::QuotaUserOption>()) {
if (options.has<QuotaUserOption>()) {
rest_context.AddHeader(
"x-goog-quota-user", options.get<google::cloud::QuotaUserOption>());
"x-goog-quota-user", options.get<QuotaUserOption>());
}
if (options.has<google::cloud::ServerTimeoutOption>()) {
if (options.has<ServerTimeoutOption>()) {
auto ms_rep = absl::StrCat(
absl::Dec(options.get<google::cloud::ServerTimeoutOption>().count(),
absl::Dec(options.get<ServerTimeoutOption>().count(),
absl::kZeroPad4));
rest_context.AddHeader("x-server-timeout",
ms_rep.insert(ms_rep.size() - 3, "."));
}
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
rest_context.AddHeader(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
rest_context.AddHeader(h.first, h.second);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,19 @@ void GoldenRestOnlyRestMetadata::SetMetadata(
rest_context.AddHeader(
"x-goog-user-project", options.get<UserProjectOption>());
}
if (options.has<google::cloud::QuotaUserOption>()) {
if (options.has<QuotaUserOption>()) {
rest_context.AddHeader(
"x-goog-quota-user", options.get<google::cloud::QuotaUserOption>());
"x-goog-quota-user", options.get<QuotaUserOption>());
}
if (options.has<google::cloud::ServerTimeoutOption>()) {
if (options.has<ServerTimeoutOption>()) {
auto ms_rep = absl::StrCat(
absl::Dec(options.get<google::cloud::ServerTimeoutOption>().count(),
absl::Dec(options.get<ServerTimeoutOption>().count(),
absl::kZeroPad4));
rest_context.AddHeader("x-server-timeout",
ms_rep.insert(ms_rep.size() - 3, "."));
}
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
rest_context.AddHeader(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
rest_context.AddHeader(h.first, h.second);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,10 +360,8 @@ void GoldenThingAdminMetadata::SetMetadata(grpc::ClientContext& context,
}
auto const& authority = options.get<AuthorityOption>();
if (!authority.empty()) context.set_authority(authority);
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,21 +318,19 @@ void GoldenThingAdminRestMetadata::SetMetadata(
rest_context.AddHeader(
"x-goog-user-project", options.get<UserProjectOption>());
}
if (options.has<google::cloud::QuotaUserOption>()) {
if (options.has<QuotaUserOption>()) {
rest_context.AddHeader(
"x-goog-quota-user", options.get<google::cloud::QuotaUserOption>());
"x-goog-quota-user", options.get<QuotaUserOption>());
}
if (options.has<google::cloud::ServerTimeoutOption>()) {
if (options.has<ServerTimeoutOption>()) {
auto ms_rep = absl::StrCat(
absl::Dec(options.get<google::cloud::ServerTimeoutOption>().count(),
absl::Dec(options.get<ServerTimeoutOption>().count(),
absl::kZeroPad4));
rest_context.AddHeader("x-server-timeout",
ms_rep.insert(ms_rep.size() - 3, "."));
}
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
rest_context.AddHeader(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
rest_context.AddHeader(h.first, h.second);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,8 @@ void RequestIdServiceMetadata::SetMetadata(grpc::ClientContext& context,
}
auto const& authority = options.get<AuthorityOption>();
if (!authority.empty()) context.set_authority(authority);
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,8 @@ void AccessApprovalMetadata::SetMetadata(grpc::ClientContext& context,
}
auto const& authority = options.get<AuthorityOption>();
if (!authority.empty()) context.set_authority(authority);
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -392,10 +392,8 @@ void AccessContextManagerMetadata::SetMetadata(grpc::ClientContext& context,
}
auto const& authority = options.get<AuthorityOption>();
if (!authority.empty()) context.set_authority(authority);
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,8 @@ void AdvisoryNotificationsServiceMetadata::SetMetadata(
}
auto const& authority = options.get<AuthorityOption>();
if (!authority.empty()) context.set_authority(authority);
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,8 @@ void DatasetServiceMetadata::SetMetadata(grpc::ClientContext& context,
}
auto const& authority = options.get<AuthorityOption>();
if (!authority.empty()) context.set_authority(authority);
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,8 @@ void DeploymentResourcePoolServiceMetadata::SetMetadata(
}
auto const& authority = options.get<AuthorityOption>();
if (!authority.empty()) context.set_authority(authority);
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,8 @@ void EndpointServiceMetadata::SetMetadata(grpc::ClientContext& context,
}
auto const& authority = options.get<AuthorityOption>();
if (!authority.empty()) context.set_authority(authority);
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,8 @@ void FeatureOnlineStoreAdminServiceMetadata::SetMetadata(
}
auto const& authority = options.get<AuthorityOption>();
if (!authority.empty()) context.set_authority(authority);
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,8 @@ void FeatureOnlineStoreServiceMetadata::SetMetadata(
}
auto const& authority = options.get<AuthorityOption>();
if (!authority.empty()) context.set_authority(authority);
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,8 @@ void FeaturestoreServiceMetadata::SetMetadata(grpc::ClientContext& context,
}
auto const& authority = options.get<AuthorityOption>();
if (!authority.empty()) context.set_authority(authority);
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,8 @@ void FeaturestoreOnlineServingServiceMetadata::SetMetadata(
}
auto const& authority = options.get<AuthorityOption>();
if (!authority.empty()) context.set_authority(authority);
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,8 @@ void IndexEndpointServiceMetadata::SetMetadata(grpc::ClientContext& context,
}
auto const& authority = options.get<AuthorityOption>();
if (!authority.empty()) context.set_authority(authority);
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,8 @@ void IndexServiceMetadata::SetMetadata(grpc::ClientContext& context,
}
auto const& authority = options.get<AuthorityOption>();
if (!authority.empty()) context.set_authority(authority);
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
}

Expand Down
6 changes: 2 additions & 4 deletions google/cloud/aiplatform/v1/internal/job_metadata_decorator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -441,10 +441,8 @@ void JobServiceMetadata::SetMetadata(grpc::ClientContext& context,
}
auto const& authority = options.get<AuthorityOption>();
if (!authority.empty()) context.set_authority(authority);
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,8 @@ void LlmUtilityServiceMetadata::SetMetadata(grpc::ClientContext& context,
}
auto const& authority = options.get<AuthorityOption>();
if (!authority.empty()) context.set_authority(authority);
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,8 @@ void MatchServiceMetadata::SetMetadata(grpc::ClientContext& context,
}
auto const& authority = options.get<AuthorityOption>();
if (!authority.empty()) context.set_authority(authority);
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,8 @@ void MetadataServiceMetadata::SetMetadata(grpc::ClientContext& context,
}
auto const& authority = options.get<AuthorityOption>();
if (!authority.empty()) context.set_authority(authority);
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,8 @@ void MigrationServiceMetadata::SetMetadata(grpc::ClientContext& context,
}
auto const& authority = options.get<AuthorityOption>();
if (!authority.empty()) context.set_authority(authority);
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,8 @@ void ModelGardenServiceMetadata::SetMetadata(grpc::ClientContext& context,
}
auto const& authority = options.get<AuthorityOption>();
if (!authority.empty()) context.set_authority(authority);
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,8 @@ void ModelServiceMetadata::SetMetadata(grpc::ClientContext& context,
}
auto const& authority = options.get<AuthorityOption>();
if (!authority.empty()) context.set_authority(authority);
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,8 @@ void PipelineServiceMetadata::SetMetadata(grpc::ClientContext& context,
}
auto const& authority = options.get<AuthorityOption>();
if (!authority.empty()) context.set_authority(authority);
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,8 @@ void PredictionServiceMetadata::SetMetadata(grpc::ClientContext& context,
}
auto const& authority = options.get<AuthorityOption>();
if (!authority.empty()) context.set_authority(authority);
if (options.has<google::cloud::CustomHeadersOption>()) {
for (auto const& h : options.get<google::cloud::CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
for (auto const& h : options.get<CustomHeadersOption>()) {
context.AddMetadata(h.first, h.second);
}
}

Expand Down
Loading

0 comments on commit 50c15c9

Please sign in to comment.