diff --git a/api/envoy/api/v2/core/grpc_service.proto b/api/envoy/api/v2/core/grpc_service.proto index 07f45fd403ac8..8614c86ee30e6 100644 --- a/api/envoy/api/v2/core/grpc_service.proto +++ b/api/envoy/api/v2/core/grpc_service.proto @@ -62,7 +62,7 @@ message GrpcService { } } - // [#next-free-field: 8] + // [#next-free-field: 7] message CallCredentials { message ServiceAccountJWTAccessCredentials { string json_key = 1; @@ -86,46 +86,6 @@ message GrpcService { } } - // Security token service configuration that allows Google gRPC to - // fetch security token from an OAuth 2.0 authorization server. - // See https://tools.ietf.org/html/draft-ietf-oauth-token-exchange-16 and - // https://github.com/grpc/grpc/pull/19587. - // [#next-free-field: 10] - message StsService { - // URI of the token exchange service that handles token exchange requests. - string token_exchange_service_uri = 1; - - // Location of the target service or resource where the client - // intends to use the requested security token. - string resource = 2; - - // Logical name of the target service where the client intends to - // use the requested security token. - string audience = 3; - - // The desired scope of the requested security token in the - // context of the service or resource where the token will be used. - string scope = 4; - - // Type of the requested security token. - string requested_token_type = 5; - - // The path of subject token, a security token that represents the - // identity of the party on behalf of whom the request is being made. - string subject_token_path = 6 [(validate.rules).string = {min_bytes: 1}]; - - // Type of the subject token. - string subject_token_type = 7 [(validate.rules).string = {min_bytes: 1}]; - - // The path of actor token, a security token that represents the identity - // of the acting party. The acting party is authorized to use the - // requested security token and act on behalf of the subject. - string actor_token_path = 8; - - // Type of the actor token. - string actor_token_type = 9; - } - oneof credential_specifier { option (validate.required) = true; @@ -153,11 +113,6 @@ message GrpcService { // https://grpc.io/grpc/cpp/namespacegrpc.html#a823c6a4b19ffc71fb33e90154ee2ad07. // https://grpc.io/docs/guides/auth.html#extending-grpc-to-support-other-authentication-mechanisms. MetadataCredentialsFromPlugin from_plugin = 6; - - // Custom security token service which implements OAuth 2.0 token exchange. - // https://tools.ietf.org/html/draft-ietf-oauth-token-exchange-16 - // See https://github.com/grpc/grpc/pull/19587. - StsService sts_service = 7; } } diff --git a/api/envoy/api/v3alpha/core/grpc_service.proto b/api/envoy/api/v3alpha/core/grpc_service.proto index 9ce2f02cbb74d..c02e438faf96f 100644 --- a/api/envoy/api/v3alpha/core/grpc_service.proto +++ b/api/envoy/api/v3alpha/core/grpc_service.proto @@ -62,7 +62,7 @@ message GrpcService { } } - // [#next-free-field: 8] + // [#next-free-field: 7] message CallCredentials { message ServiceAccountJWTAccessCredentials { string json_key = 1; @@ -88,49 +88,6 @@ message GrpcService { } } - // Security token service configuration that allows Google gRPC to - // fetch security token from an OAuth 2.0 authorization server. - // See https://tools.ietf.org/html/draft-ietf-oauth-token-exchange-16 and - // https://github.com/grpc/grpc/pull/19587. - // [#next-free-field: 10] - message StsService { - option (udpa.api.annotations.versioning).previous_message_type = - "envoy.api.v2.core.GrpcService.GoogleGrpc.CallCredentials.StsService"; - - // URI of the token exchange service that handles token exchange requests. - string token_exchange_service_uri = 1; - - // Location of the target service or resource where the client - // intends to use the requested security token. - string resource = 2; - - // Logical name of the target service where the client intends to - // use the requested security token. - string audience = 3; - - // The desired scope of the requested security token in the - // context of the service or resource where the token will be used. - string scope = 4; - - // Type of the requested security token. - string requested_token_type = 5; - - // The path of subject token, a security token that represents the - // identity of the party on behalf of whom the request is being made. - string subject_token_path = 6 [(validate.rules).string = {min_bytes: 1}]; - - // Type of the subject token. - string subject_token_type = 7 [(validate.rules).string = {min_bytes: 1}]; - - // The path of actor token, a security token that represents the identity - // of the acting party. The acting party is authorized to use the - // requested security token and act on behalf of the subject. - string actor_token_path = 8; - - // Type of the actor token. - string actor_token_type = 9; - } - oneof credential_specifier { option (validate.required) = true; @@ -158,11 +115,6 @@ message GrpcService { // https://grpc.io/grpc/cpp/namespacegrpc.html#a823c6a4b19ffc71fb33e90154ee2ad07. // https://grpc.io/docs/guides/auth.html#extending-grpc-to-support-other-authentication-mechanisms. MetadataCredentialsFromPlugin from_plugin = 6; - - // Custom security token service which implements OAuth 2.0 token exchange. - // https://tools.ietf.org/html/draft-ietf-oauth-token-exchange-16 - // See https://github.com/grpc/grpc/pull/19587. - StsService sts_service = 7; } } diff --git a/api/wasm/cpp/proxy_wasm_api.h b/api/wasm/cpp/proxy_wasm_api.h index e8604d6cd1e34..f82a747d26d86 100644 --- a/api/wasm/cpp/proxy_wasm_api.h +++ b/api/wasm/cpp/proxy_wasm_api.h @@ -355,9 +355,7 @@ class RootContext : public ContextBase { const std::string root_id_; std::unordered_map http_calls_; std::unordered_map simple_grpc_calls_; - std::unique_ptr cur_grpc_call_; std::unordered_map> grpc_calls_; - std::unique_ptr cur_grpc_stream_; std::unordered_map> grpc_streams_; }; @@ -1236,16 +1234,19 @@ inline void GrpcStreamHandlerBase::send(StringView message, bool end_of_stream) } } -inline void RootContext::onGrpcCreateInitialMetadata(uint32_t) { +inline void RootContext::onGrpcCreateInitialMetadata(uint32_t token) { { - if (cur_grpc_call_ != nullptr) { - cur_grpc_call_->onCreateInitialMetadata(); + auto it = grpc_calls_.find(token); + if (it != grpc_calls_.end()) { + it->second->onCreateInitialMetadata(); return; } } { - if (cur_grpc_stream_ != nullptr) { - cur_grpc_stream_->onCreateInitialMetadata(); + auto it = grpc_streams_.find(token); + if (it != grpc_streams_.end()) { + it->second->onCreateInitialMetadata(); + return; } } } @@ -1344,32 +1345,26 @@ inline bool RootContext::grpcCallHandler(StringView service, StringView service_ const google::protobuf::MessageLite& request, uint32_t timeout_milliseconds, std::unique_ptr handler) { - cur_grpc_call_ = std::move(handler); auto token = grpcCall(service, service_name, method_name, request, timeout_milliseconds); if (token) { - cur_grpc_call_->token_ = token; - cur_grpc_call_->context_ = this; - grpc_calls_[token] = std::move(cur_grpc_call_); - cur_grpc_call_ = nullptr; + handler->token_ = token; + handler->context_ = this; + grpc_calls_[token] = std::move(handler); return true; } - cur_grpc_call_ = nullptr; return false; } inline bool RootContext::grpcStreamHandler(StringView service, StringView service_name, StringView method_name, std::unique_ptr handler) { - cur_grpc_stream_ = std::move(handler); auto token = grpcStream(service, service_name, method_name); if (token) { - cur_grpc_stream_->token_ = token; - cur_grpc_stream_->context_ = this; - grpc_streams_[token] = std::move(cur_grpc_stream_); - cur_grpc_stream_ = nullptr; + handler->token_ = token; + handler->context_ = this; + grpc_streams_[token] = std::move(handler); return true; } - cur_grpc_stream_ = nullptr; return false; } diff --git a/api/wasm/cpp/proxy_wasm_intrinsics.pb.cc b/api/wasm/cpp/proxy_wasm_intrinsics.pb.cc index a318dbbf34e32..bd93617c1298a 100644 --- a/api/wasm/cpp/proxy_wasm_intrinsics.pb.cc +++ b/api/wasm/cpp/proxy_wasm_intrinsics.pb.cc @@ -18,11 +18,10 @@ extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DataSource_proxy_5fwasm_5fintrinsics_2eproto; extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_EnvoyGrpc_proxy_5fwasm_5fintrinsics_2eproto; extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_GrpcService_GoogleGrpc_proxy_5fwasm_5fintrinsics_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<5> scc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_2eproto; extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_proxy_5fwasm_5fintrinsics_2eproto; extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_proxy_5fwasm_5fintrinsics_2eproto; extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_proxy_5fwasm_5fintrinsics_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_2eproto; extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_GrpcService_GoogleGrpc_ChannelCredentials_proxy_5fwasm_5fintrinsics_2eproto; extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_GoogleLocalCredentials_proxy_5fwasm_5fintrinsics_2eproto; extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GrpcService_GoogleGrpc_SslCredentials_proxy_5fwasm_5fintrinsics_2eproto; @@ -75,10 +74,6 @@ class GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaul const PROTOBUF_NAMESPACE_ID::Struct* config_; const PROTOBUF_NAMESPACE_ID::Any* typed_config_; } _GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_; class GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; @@ -88,7 +83,6 @@ class GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal { const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* service_account_jwt_access_; const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* google_iam_; const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* from_plugin_; - const ::GrpcService_GoogleGrpc_CallCredentials_StsService* sts_service_; } _GrpcService_GoogleGrpc_CallCredentials_default_instance_; class GrpcService_GoogleGrpcDefaultTypeInternal { public: @@ -178,13 +172,12 @@ static void InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5f ::GrpcService_GoogleGrpc_CallCredentials::InitAsDefaultInstance(); } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<5> scc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 5, InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_2eproto}, { +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_2eproto}, { &scc_info_Empty_google_2fprotobuf_2fempty_2eproto.base, &scc_info_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_proxy_5fwasm_5fintrinsics_2eproto.base, &scc_info_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_proxy_5fwasm_5fintrinsics_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_proxy_5fwasm_5fintrinsics_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_2eproto.base,}}; + &scc_info_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_proxy_5fwasm_5fintrinsics_2eproto.base,}}; static void InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_proxy_5fwasm_5fintrinsics_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -230,20 +223,6 @@ static void InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_ServiceA ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_proxy_5fwasm_5fintrinsics_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_proxy_5fwasm_5fintrinsics_2eproto}, {}}; -static void InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_; - new (ptr) ::GrpcService_GoogleGrpc_CallCredentials_StsService(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_GoogleGrpc_CallCredentials_StsService::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_2eproto}, {}}; - static void InitDefaultsscc_info_GrpcService_GoogleGrpc_ChannelCredentials_proxy_5fwasm_5fintrinsics_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -319,7 +298,7 @@ ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_WKT_proxy_5fwasm_5fintrin {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_WKT_proxy_5fwasm_5fintrinsics_2eproto}, { &scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto.base,}}; -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[14]; +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[13]; static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_proxy_5fwasm_5fintrinsics_2eproto = nullptr; static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_proxy_5fwasm_5fintrinsics_2eproto = nullptr; @@ -391,20 +370,6 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_proxy_5fwasm_5fintrinsics_2epr offsetof(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal, typed_config_), PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, config_type_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, token_exchange_service_uri_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, resource_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, audience_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, scope_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, requested_token_type_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, subject_token_path_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, subject_token_type_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, actor_token_path_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, actor_token_type_), - ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials, _internal_metadata_), ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials, _oneof_case_[0]), @@ -415,7 +380,6 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_proxy_5fwasm_5fintrinsics_2epr offsetof(::GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal, service_account_jwt_access_), offsetof(::GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal, google_iam_), offsetof(::GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal, from_plugin_), - offsetof(::GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal, sts_service_), PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials, credential_specifier_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc, _internal_metadata_), @@ -456,11 +420,10 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOB { 43, -1, sizeof(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials)}, { 50, -1, sizeof(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials)}, { 57, -1, sizeof(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin)}, - { 66, -1, sizeof(::GrpcService_GoogleGrpc_CallCredentials_StsService)}, - { 80, -1, sizeof(::GrpcService_GoogleGrpc_CallCredentials)}, - { 93, -1, sizeof(::GrpcService_GoogleGrpc)}, - { 104, -1, sizeof(::GrpcService_HeaderValue)}, - { 111, -1, sizeof(::GrpcService)}, + { 66, -1, sizeof(::GrpcService_GoogleGrpc_CallCredentials)}, + { 78, -1, sizeof(::GrpcService_GoogleGrpc)}, + { 89, -1, sizeof(::GrpcService_HeaderValue)}, + { 96, -1, sizeof(::GrpcService)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { @@ -473,7 +436,6 @@ static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = reinterpret_cast(&::_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_), reinterpret_cast(&::_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_), reinterpret_cast(&::_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_), - reinterpret_cast(&::_GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_), reinterpret_cast(&::_GrpcService_GoogleGrpc_CallCredentials_default_instance_), reinterpret_cast(&::_GrpcService_GoogleGrpc_default_instance_), reinterpret_cast(&::_GrpcService_HeaderValue_default_instance_), @@ -488,13 +450,13 @@ const char descriptor_table_protodef_proxy_5fwasm_5fintrinsics_2eproto[] PROTOBU "ruct\030\001 \001(\0132\027.google.protobuf.Struct\"^\n\nD" "ataSource\022\022\n\010filename\030\001 \001(\tH\000\022\026\n\014inline_" "bytes\030\002 \001(\014H\000\022\027\n\rinline_string\030\003 \001(\tH\000B\013" - "\n\tspecifier\"\204\020\n\013GrpcService\022,\n\nenvoy_grp" + "\n\tspecifier\"\311\r\n\013GrpcService\022,\n\nenvoy_grp" "c\030\001 \001(\0132\026.GrpcService.EnvoyGrpcH\000\022.\n\013goo" "gle_grpc\030\002 \001(\0132\027.GrpcService.GoogleGrpcH" "\000\022*\n\007timeout\030\003 \001(\0132\031.google.protobuf.Dur" "ation\0222\n\020initial_metadata\030\005 \003(\0132\030.GrpcSe" "rvice.HeaderValue\032!\n\tEnvoyGrpc\022\024\n\014cluste" - "r_name\030\001 \001(\t\032\316\r\n\nGoogleGrpc\022\022\n\ntarget_ur" + "r_name\030\001 \001(\t\032\223\013\n\nGoogleGrpc\022\022\n\ntarget_ur" "i\030\001 \001(\t\022G\n\023channel_credentials\030\002 \001(\0132*.G" "rpcService.GoogleGrpc.ChannelCredentials" "\022A\n\020call_credentials\030\003 \003(\0132\'.GrpcService" @@ -510,7 +472,7 @@ const char descriptor_table_protodef_proxy_5fwasm_5fintrinsics_2eproto[] PROTOBU "\016google_default\030\002 \001(\0132\026.google.protobuf." "EmptyH\000\022K\n\021local_credentials\030\003 \001(\0132..Grp" "cService.GoogleGrpc.GoogleLocalCredentia" - "lsH\000B\026\n\024credential_specifier\032\276\010\n\017CallCre" + "lsH\000B\026\n\024credential_specifier\032\203\006\n\017CallCre" "dentials\022\026\n\014access_token\030\001 \001(\tH\000\0227\n\025goog" "le_compute_engine\030\002 \001(\0132\026.google.protobu" "f.EmptyH\000\022\036\n\024google_refresh_token\030\003 \001(\tH" @@ -521,25 +483,17 @@ const char descriptor_table_protodef_proxy_5fwasm_5fintrinsics_2eproto[] PROTOBU ".CallCredentials.GoogleIAMCredentialsH\000\022" "\\\n\013from_plugin\030\006 \001(\0132E.GrpcService.Googl" "eGrpc.CallCredentials.MetadataCredential" - "sFromPluginH\000\022I\n\013sts_service\030\007 \001(\01322.Grp" - "cService.GoogleGrpc.CallCredentials.StsS" - "erviceH\000\032V\n\"ServiceAccountJWTAccessCrede" - "ntials\022\020\n\010json_key\030\001 \001(\t\022\036\n\026token_lifeti" - "me_seconds\030\002 \001(\004\032O\n\024GoogleIAMCredentials" - "\022\033\n\023authorization_token\030\001 \001(\t\022\032\n\022authori" - "ty_selector\030\002 \001(\t\032\231\001\n\035MetadataCredential" - "sFromPlugin\022\014\n\004name\030\001 \001(\t\022-\n\006config\030\002 \001(" - "\0132\027.google.protobuf.StructB\002\030\001H\000\022,\n\014type" - "d_config\030\003 \001(\0132\024.google.protobuf.AnyH\000B\r" - "\n\013config_type\032\355\001\n\nStsService\022\"\n\032token_ex" - "change_service_uri\030\001 \001(\t\022\020\n\010resource\030\002 \001" - "(\t\022\020\n\010audience\030\003 \001(\t\022\r\n\005scope\030\004 \001(\t\022\034\n\024r" - "equested_token_type\030\005 \001(\t\022\032\n\022subject_tok" - "en_path\030\006 \001(\t\022\032\n\022subject_token_type\030\007 \001(" - "\t\022\030\n\020actor_token_path\030\010 \001(\t\022\030\n\020actor_tok" - "en_type\030\t \001(\tB\026\n\024credential_specifier\032)\n" - "\013HeaderValue\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - "B\022\n\020target_specifierJ\004\010\004\020\005b\006proto3" + "sFromPluginH\000\032V\n\"ServiceAccountJWTAccess" + "Credentials\022\020\n\010json_key\030\001 \001(\t\022\036\n\026token_l" + "ifetime_seconds\030\002 \001(\004\032O\n\024GoogleIAMCreden" + "tials\022\033\n\023authorization_token\030\001 \001(\t\022\032\n\022au" + "thority_selector\030\002 \001(\t\032\231\001\n\035MetadataCrede" + "ntialsFromPlugin\022\014\n\004name\030\001 \001(\t\022-\n\006config" + "\030\002 \001(\0132\027.google.protobuf.StructB\002\030\001H\000\022,\n" + "\014typed_config\030\003 \001(\0132\024.google.protobuf.An" + "yH\000B\r\n\013config_typeB\026\n\024credential_specifi" + "er\032)\n\013HeaderValue\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + "\002 \001(\tB\022\n\020target_specifierJ\004\010\004\020\005b\006proto3" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_deps[4] = { &::descriptor_table_google_2fprotobuf_2fany_2eproto, @@ -547,7 +501,7 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor &::descriptor_table_google_2fprotobuf_2fempty_2eproto, &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, }; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_sccs[14] = { +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_sccs[13] = { &scc_info_DataSource_proxy_5fwasm_5fintrinsics_2eproto.base, &scc_info_GrpcService_proxy_5fwasm_5fintrinsics_2eproto.base, &scc_info_GrpcService_EnvoyGrpc_proxy_5fwasm_5fintrinsics_2eproto.base, @@ -556,7 +510,6 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_pro &scc_info_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_proxy_5fwasm_5fintrinsics_2eproto.base, &scc_info_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_proxy_5fwasm_5fintrinsics_2eproto.base, &scc_info_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_proxy_5fwasm_5fintrinsics_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_2eproto.base, &scc_info_GrpcService_GoogleGrpc_ChannelCredentials_proxy_5fwasm_5fintrinsics_2eproto.base, &scc_info_GrpcService_GoogleGrpc_GoogleLocalCredentials_proxy_5fwasm_5fintrinsics_2eproto.base, &scc_info_GrpcService_GoogleGrpc_SslCredentials_proxy_5fwasm_5fintrinsics_2eproto.base, @@ -566,10 +519,10 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_pro static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once; static bool descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_initialized = false; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_proxy_5fwasm_5fintrinsics_2eproto = { - &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_initialized, descriptor_table_protodef_proxy_5fwasm_5fintrinsics_2eproto, "proxy_wasm_intrinsics.proto", 2354, - &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_sccs, descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_deps, 14, 4, + &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_initialized, descriptor_table_protodef_proxy_5fwasm_5fintrinsics_2eproto, "proxy_wasm_intrinsics.proto", 2039, + &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_sccs, descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_deps, 13, 4, schemas, file_default_instances, TableStruct_proxy_5fwasm_5fintrinsics_2eproto::offsets, - file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto, 14, file_level_enum_descriptors_proxy_5fwasm_5fintrinsics_2eproto, file_level_service_descriptors_proxy_5fwasm_5fintrinsics_2eproto, + file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto, 13, file_level_enum_descriptors_proxy_5fwasm_5fintrinsics_2eproto, file_level_service_descriptors_proxy_5fwasm_5fintrinsics_2eproto, }; // Force running AddDescriptors() at dynamic initialization time. @@ -3686,185 +3639,266 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GrpcService_GoogleGrpc_CallCredentials_Metadat // =================================================================== -void GrpcService_GoogleGrpc_CallCredentials_StsService::InitAsDefaultInstance() { +void GrpcService_GoogleGrpc_CallCredentials::InitAsDefaultInstance() { + ::_GrpcService_GoogleGrpc_CallCredentials_default_instance_.access_token_.UnsafeSetDefault( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::_GrpcService_GoogleGrpc_CallCredentials_default_instance_.google_compute_engine_ = const_cast< PROTOBUF_NAMESPACE_ID::Empty*>( + PROTOBUF_NAMESPACE_ID::Empty::internal_default_instance()); + ::_GrpcService_GoogleGrpc_CallCredentials_default_instance_.google_refresh_token_.UnsafeSetDefault( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::_GrpcService_GoogleGrpc_CallCredentials_default_instance_.service_account_jwt_access_ = const_cast< ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials*>( + ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::internal_default_instance()); + ::_GrpcService_GoogleGrpc_CallCredentials_default_instance_.google_iam_ = const_cast< ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials*>( + ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::internal_default_instance()); + ::_GrpcService_GoogleGrpc_CallCredentials_default_instance_.from_plugin_ = const_cast< ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin*>( + ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::internal_default_instance()); } -class GrpcService_GoogleGrpc_CallCredentials_StsService::_Internal { +class GrpcService_GoogleGrpc_CallCredentials::_Internal { public: + static const PROTOBUF_NAMESPACE_ID::Empty& google_compute_engine(const GrpcService_GoogleGrpc_CallCredentials* msg); + static const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& service_account_jwt_access(const GrpcService_GoogleGrpc_CallCredentials* msg); + static const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& google_iam(const GrpcService_GoogleGrpc_CallCredentials* msg); + static const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from_plugin(const GrpcService_GoogleGrpc_CallCredentials* msg); }; -GrpcService_GoogleGrpc_CallCredentials_StsService::GrpcService_GoogleGrpc_CallCredentials_StsService() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService.GoogleGrpc.CallCredentials.StsService) +const PROTOBUF_NAMESPACE_ID::Empty& +GrpcService_GoogleGrpc_CallCredentials::_Internal::google_compute_engine(const GrpcService_GoogleGrpc_CallCredentials* msg) { + return *msg->credential_specifier_.google_compute_engine_; } -GrpcService_GoogleGrpc_CallCredentials_StsService::GrpcService_GoogleGrpc_CallCredentials_StsService(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - token_exchange_service_uri_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.token_exchange_service_uri().empty()) { - token_exchange_service_uri_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.token_exchange_service_uri_); - } - resource_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.resource().empty()) { - resource_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.resource_); - } - audience_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.audience().empty()) { - audience_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.audience_); - } - scope_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.scope().empty()) { - scope_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.scope_); +const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& +GrpcService_GoogleGrpc_CallCredentials::_Internal::service_account_jwt_access(const GrpcService_GoogleGrpc_CallCredentials* msg) { + return *msg->credential_specifier_.service_account_jwt_access_; +} +const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& +GrpcService_GoogleGrpc_CallCredentials::_Internal::google_iam(const GrpcService_GoogleGrpc_CallCredentials* msg) { + return *msg->credential_specifier_.google_iam_; +} +const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& +GrpcService_GoogleGrpc_CallCredentials::_Internal::from_plugin(const GrpcService_GoogleGrpc_CallCredentials* msg) { + return *msg->credential_specifier_.from_plugin_; +} +void GrpcService_GoogleGrpc_CallCredentials::set_allocated_google_compute_engine(PROTOBUF_NAMESPACE_ID::Empty* google_compute_engine) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + clear_credential_specifier(); + if (google_compute_engine) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(google_compute_engine)->GetArena(); + if (message_arena != submessage_arena) { + google_compute_engine = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, google_compute_engine, submessage_arena); + } + set_has_google_compute_engine(); + credential_specifier_.google_compute_engine_ = google_compute_engine; } - requested_token_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.requested_token_type().empty()) { - requested_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.requested_token_type_); + // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) +} +void GrpcService_GoogleGrpc_CallCredentials::clear_google_compute_engine() { + if (has_google_compute_engine()) { + delete credential_specifier_.google_compute_engine_; + clear_has_credential_specifier(); } - subject_token_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.subject_token_path().empty()) { - subject_token_path_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.subject_token_path_); +} +void GrpcService_GoogleGrpc_CallCredentials::set_allocated_service_account_jwt_access(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* service_account_jwt_access) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + clear_credential_specifier(); + if (service_account_jwt_access) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + service_account_jwt_access = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, service_account_jwt_access, submessage_arena); + } + set_has_service_account_jwt_access(); + credential_specifier_.service_account_jwt_access_ = service_account_jwt_access; } - subject_token_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.subject_token_type().empty()) { - subject_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.subject_token_type_); + // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.service_account_jwt_access) +} +void GrpcService_GoogleGrpc_CallCredentials::set_allocated_google_iam(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* google_iam) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + clear_credential_specifier(); + if (google_iam) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + google_iam = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, google_iam, submessage_arena); + } + set_has_google_iam(); + credential_specifier_.google_iam_ = google_iam; } - actor_token_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.actor_token_path().empty()) { - actor_token_path_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.actor_token_path_); + // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.google_iam) +} +void GrpcService_GoogleGrpc_CallCredentials::set_allocated_from_plugin(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* from_plugin) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + clear_credential_specifier(); + if (from_plugin) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + from_plugin = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, from_plugin, submessage_arena); + } + set_has_from_plugin(); + credential_specifier_.from_plugin_ = from_plugin; } - actor_token_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.actor_token_type().empty()) { - actor_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.actor_token_type_); + // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.from_plugin) +} +GrpcService_GoogleGrpc_CallCredentials::GrpcService_GoogleGrpc_CallCredentials() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:GrpcService.GoogleGrpc.CallCredentials) +} +GrpcService_GoogleGrpc_CallCredentials::GrpcService_GoogleGrpc_CallCredentials(const GrpcService_GoogleGrpc_CallCredentials& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_credential_specifier(); + switch (from.credential_specifier_case()) { + case kAccessToken: { + set_access_token(from.access_token()); + break; + } + case kGoogleComputeEngine: { + mutable_google_compute_engine()->PROTOBUF_NAMESPACE_ID::Empty::MergeFrom(from.google_compute_engine()); + break; + } + case kGoogleRefreshToken: { + set_google_refresh_token(from.google_refresh_token()); + break; + } + case kServiceAccountJwtAccess: { + mutable_service_account_jwt_access()->::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::MergeFrom(from.service_account_jwt_access()); + break; + } + case kGoogleIam: { + mutable_google_iam()->::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::MergeFrom(from.google_iam()); + break; + } + case kFromPlugin: { + mutable_from_plugin()->::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::MergeFrom(from.from_plugin()); + break; + } + case CREDENTIAL_SPECIFIER_NOT_SET: { + break; + } } - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials.StsService) + // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials) } -void GrpcService_GoogleGrpc_CallCredentials_StsService::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_2eproto.base); - token_exchange_service_uri_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - resource_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - audience_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - scope_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - requested_token_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - subject_token_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - subject_token_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - actor_token_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - actor_token_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +void GrpcService_GoogleGrpc_CallCredentials::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_2eproto.base); + clear_has_credential_specifier(); } -GrpcService_GoogleGrpc_CallCredentials_StsService::~GrpcService_GoogleGrpc_CallCredentials_StsService() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials.StsService) +GrpcService_GoogleGrpc_CallCredentials::~GrpcService_GoogleGrpc_CallCredentials() { + // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials) SharedDtor(); } -void GrpcService_GoogleGrpc_CallCredentials_StsService::SharedDtor() { - token_exchange_service_uri_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - resource_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - audience_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - scope_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - requested_token_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - subject_token_path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - subject_token_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - actor_token_path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - actor_token_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +void GrpcService_GoogleGrpc_CallCredentials::SharedDtor() { + if (has_credential_specifier()) { + clear_credential_specifier(); + } } -void GrpcService_GoogleGrpc_CallCredentials_StsService::SetCachedSize(int size) const { +void GrpcService_GoogleGrpc_CallCredentials::SetCachedSize(int size) const { _cached_size_.Set(size); } -const GrpcService_GoogleGrpc_CallCredentials_StsService& GrpcService_GoogleGrpc_CallCredentials_StsService::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_2eproto.base); +const GrpcService_GoogleGrpc_CallCredentials& GrpcService_GoogleGrpc_CallCredentials::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_2eproto.base); return *internal_default_instance(); } -void GrpcService_GoogleGrpc_CallCredentials_StsService::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials.StsService) +void GrpcService_GoogleGrpc_CallCredentials::clear_credential_specifier() { +// @@protoc_insertion_point(one_of_clear_start:GrpcService.GoogleGrpc.CallCredentials) + switch (credential_specifier_case()) { + case kAccessToken: { + credential_specifier_.access_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + break; + } + case kGoogleComputeEngine: { + delete credential_specifier_.google_compute_engine_; + break; + } + case kGoogleRefreshToken: { + credential_specifier_.google_refresh_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + break; + } + case kServiceAccountJwtAccess: { + delete credential_specifier_.service_account_jwt_access_; + break; + } + case kGoogleIam: { + delete credential_specifier_.google_iam_; + break; + } + case kFromPlugin: { + delete credential_specifier_.from_plugin_; + break; + } + case CREDENTIAL_SPECIFIER_NOT_SET: { + break; + } + } + _oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; +} + + +void GrpcService_GoogleGrpc_CallCredentials::Clear() { +// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - token_exchange_service_uri_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - resource_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - audience_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - scope_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - requested_token_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - subject_token_path_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - subject_token_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - actor_token_path_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - actor_token_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + clear_credential_specifier(); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService_GoogleGrpc_CallCredentials_StsService::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* GrpcService_GoogleGrpc_CallCredentials::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // string token_exchange_service_uri = 1; + // string access_token = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_token_exchange_service_uri(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri"); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_access_token(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.access_token"); CHK_(ptr); } else goto handle_unusual; continue; - // string resource = 2; + // .google.protobuf.Empty google_compute_engine = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_resource(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.StsService.resource"); + ptr = ctx->ParseMessage(mutable_google_compute_engine(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // string audience = 3; + // string google_refresh_token = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_audience(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.StsService.audience"); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_google_refresh_token(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.google_refresh_token"); CHK_(ptr); } else goto handle_unusual; continue; - // string scope = 4; + // .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_scope(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.StsService.scope"); + ptr = ctx->ParseMessage(mutable_service_account_jwt_access(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // string requested_token_type = 5; + // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_requested_token_type(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type"); + ptr = ctx->ParseMessage(mutable_google_iam(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // string subject_token_path = 6; + // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; case 6: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_subject_token_path(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string subject_token_type = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_subject_token_type(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string actor_token_path = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_actor_token_path(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string actor_token_type = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_actor_token_type(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type"); + ptr = ctx->ParseMessage(mutable_from_plugin(), ptr); CHK_(ptr); } else goto handle_unusual; continue; @@ -3888,970 +3922,80 @@ const char* GrpcService_GoogleGrpc_CallCredentials_StsService::_InternalParse(co #undef CHK_ } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService_GoogleGrpc_CallCredentials_StsService::MergePartialFromCodedStream( +bool GrpcService_GoogleGrpc_CallCredentials::MergePartialFromCodedStream( ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:GrpcService.GoogleGrpc.CallCredentials.StsService) + // @@protoc_insertion_point(parse_start:GrpcService.GoogleGrpc.CallCredentials) for (;;) { ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string token_exchange_service_uri = 1; + // string access_token = 1; case 1: { if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_token_exchange_service_uri())); + input, this->mutable_access_token())); DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->token_exchange_service_uri().data(), static_cast(this->token_exchange_service_uri().length()), + this->access_token().data(), static_cast(this->access_token().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri")); + "GrpcService.GoogleGrpc.CallCredentials.access_token")); } else { goto handle_unusual; } break; } - // string resource = 2; + // .google.protobuf.Empty google_compute_engine = 2; case 2: { if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_resource())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->resource().data(), static_cast(this->resource().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.resource")); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_google_compute_engine())); } else { goto handle_unusual; } break; } - // string audience = 3; + // string google_refresh_token = 3; case 3: { if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_audience())); + input, this->mutable_google_refresh_token())); DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->audience().data(), static_cast(this->audience().length()), + this->google_refresh_token().data(), static_cast(this->google_refresh_token().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.audience")); + "GrpcService.GoogleGrpc.CallCredentials.google_refresh_token")); } else { goto handle_unusual; } break; } - // string scope = 4; + // .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; case 4: { if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_scope())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->scope().data(), static_cast(this->scope().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.scope")); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_service_account_jwt_access())); } else { goto handle_unusual; } break; } - // string requested_token_type = 5; + // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; case 5: { if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_requested_token_type())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->requested_token_type().data(), static_cast(this->requested_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type")); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_google_iam())); } else { goto handle_unusual; } break; } - // string subject_token_path = 6; - case 6: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_subject_token_path())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->subject_token_path().data(), static_cast(this->subject_token_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path")); - } else { - goto handle_unusual; - } - break; - } - - // string subject_token_type = 7; - case 7: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_subject_token_type())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->subject_token_type().data(), static_cast(this->subject_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type")); - } else { - goto handle_unusual; - } - break; - } - - // string actor_token_path = 8; - case 8: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_actor_token_path())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->actor_token_path().data(), static_cast(this->actor_token_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path")); - } else { - goto handle_unusual; - } - break; - } - - // string actor_token_type = 9; - case 9: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (74 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_actor_token_type())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->actor_token_type().data(), static_cast(this->actor_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GrpcService.GoogleGrpc.CallCredentials.StsService) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.GoogleGrpc.CallCredentials.StsService) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GrpcService_GoogleGrpc_CallCredentials_StsService::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string token_exchange_service_uri = 1; - if (this->token_exchange_service_uri().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->token_exchange_service_uri().data(), static_cast(this->token_exchange_service_uri().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->token_exchange_service_uri(), output); - } - - // string resource = 2; - if (this->resource().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->resource().data(), static_cast(this->resource().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.resource"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->resource(), output); - } - - // string audience = 3; - if (this->audience().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->audience().data(), static_cast(this->audience().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.audience"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->audience(), output); - } - - // string scope = 4; - if (this->scope().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->scope().data(), static_cast(this->scope().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.scope"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->scope(), output); - } - - // string requested_token_type = 5; - if (this->requested_token_type().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->requested_token_type().data(), static_cast(this->requested_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->requested_token_type(), output); - } - - // string subject_token_path = 6; - if (this->subject_token_path().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->subject_token_path().data(), static_cast(this->subject_token_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 6, this->subject_token_path(), output); - } - - // string subject_token_type = 7; - if (this->subject_token_type().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->subject_token_type().data(), static_cast(this->subject_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 7, this->subject_token_type(), output); - } - - // string actor_token_path = 8; - if (this->actor_token_path().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->actor_token_path().data(), static_cast(this->actor_token_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 8, this->actor_token_path(), output); - } - - // string actor_token_type = 9; - if (this->actor_token_type().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->actor_token_type().data(), static_cast(this->actor_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 9, this->actor_token_type(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc.CallCredentials.StsService) -} - -::PROTOBUF_NAMESPACE_ID::uint8* GrpcService_GoogleGrpc_CallCredentials_StsService::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string token_exchange_service_uri = 1; - if (this->token_exchange_service_uri().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->token_exchange_service_uri().data(), static_cast(this->token_exchange_service_uri().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->token_exchange_service_uri(), target); - } - - // string resource = 2; - if (this->resource().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->resource().data(), static_cast(this->resource().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.resource"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 2, this->resource(), target); - } - - // string audience = 3; - if (this->audience().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->audience().data(), static_cast(this->audience().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.audience"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 3, this->audience(), target); - } - - // string scope = 4; - if (this->scope().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->scope().data(), static_cast(this->scope().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.scope"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 4, this->scope(), target); - } - - // string requested_token_type = 5; - if (this->requested_token_type().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->requested_token_type().data(), static_cast(this->requested_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 5, this->requested_token_type(), target); - } - - // string subject_token_path = 6; - if (this->subject_token_path().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->subject_token_path().data(), static_cast(this->subject_token_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 6, this->subject_token_path(), target); - } - - // string subject_token_type = 7; - if (this->subject_token_type().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->subject_token_type().data(), static_cast(this->subject_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 7, this->subject_token_type(), target); - } - - // string actor_token_path = 8; - if (this->actor_token_path().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->actor_token_path().data(), static_cast(this->actor_token_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 8, this->actor_token_path(), target); - } - - // string actor_token_type = 9; - if (this->actor_token_type().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->actor_token_type().data(), static_cast(this->actor_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 9, this->actor_token_type(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.CallCredentials.StsService) - return target; -} - -size_t GrpcService_GoogleGrpc_CallCredentials_StsService::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string token_exchange_service_uri = 1; - if (this->token_exchange_service_uri().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->token_exchange_service_uri()); - } - - // string resource = 2; - if (this->resource().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->resource()); - } - - // string audience = 3; - if (this->audience().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->audience()); - } - - // string scope = 4; - if (this->scope().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->scope()); - } - - // string requested_token_type = 5; - if (this->requested_token_type().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->requested_token_type()); - } - - // string subject_token_path = 6; - if (this->subject_token_path().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->subject_token_path()); - } - - // string subject_token_type = 7; - if (this->subject_token_type().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->subject_token_type()); - } - - // string actor_token_path = 8; - if (this->actor_token_path().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->actor_token_path()); - } - - // string actor_token_type = 9; - if (this->actor_token_type().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->actor_token_type()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GrpcService_GoogleGrpc_CallCredentials_StsService::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - GOOGLE_DCHECK_NE(&from, this); - const GrpcService_GoogleGrpc_CallCredentials_StsService* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:GrpcService.GoogleGrpc.CallCredentials.StsService) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:GrpcService.GoogleGrpc.CallCredentials.StsService) - MergeFrom(*source); - } -} - -void GrpcService_GoogleGrpc_CallCredentials_StsService::MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.token_exchange_service_uri().size() > 0) { - - token_exchange_service_uri_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.token_exchange_service_uri_); - } - if (from.resource().size() > 0) { - - resource_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.resource_); - } - if (from.audience().size() > 0) { - - audience_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.audience_); - } - if (from.scope().size() > 0) { - - scope_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.scope_); - } - if (from.requested_token_type().size() > 0) { - - requested_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.requested_token_type_); - } - if (from.subject_token_path().size() > 0) { - - subject_token_path_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.subject_token_path_); - } - if (from.subject_token_type().size() > 0) { - - subject_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.subject_token_type_); - } - if (from.actor_token_path().size() > 0) { - - actor_token_path_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.actor_token_path_); - } - if (from.actor_token_type().size() > 0) { - - actor_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.actor_token_type_); - } -} - -void GrpcService_GoogleGrpc_CallCredentials_StsService::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GrpcService_GoogleGrpc_CallCredentials_StsService::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GrpcService_GoogleGrpc_CallCredentials_StsService::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_CallCredentials_StsService::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_StsService* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - token_exchange_service_uri_.Swap(&other->token_exchange_service_uri_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - resource_.Swap(&other->resource_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - audience_.Swap(&other->audience_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - scope_.Swap(&other->scope_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - requested_token_type_.Swap(&other->requested_token_type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - subject_token_path_.Swap(&other->subject_token_path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - subject_token_type_.Swap(&other->subject_token_type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - actor_token_path_.Swap(&other->actor_token_path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - actor_token_type_.Swap(&other->actor_token_type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GrpcService_GoogleGrpc_CallCredentials_StsService::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void GrpcService_GoogleGrpc_CallCredentials::InitAsDefaultInstance() { - ::_GrpcService_GoogleGrpc_CallCredentials_default_instance_.access_token_.UnsafeSetDefault( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::_GrpcService_GoogleGrpc_CallCredentials_default_instance_.google_compute_engine_ = const_cast< PROTOBUF_NAMESPACE_ID::Empty*>( - PROTOBUF_NAMESPACE_ID::Empty::internal_default_instance()); - ::_GrpcService_GoogleGrpc_CallCredentials_default_instance_.google_refresh_token_.UnsafeSetDefault( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::_GrpcService_GoogleGrpc_CallCredentials_default_instance_.service_account_jwt_access_ = const_cast< ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials*>( - ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::internal_default_instance()); - ::_GrpcService_GoogleGrpc_CallCredentials_default_instance_.google_iam_ = const_cast< ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials*>( - ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::internal_default_instance()); - ::_GrpcService_GoogleGrpc_CallCredentials_default_instance_.from_plugin_ = const_cast< ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin*>( - ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::internal_default_instance()); - ::_GrpcService_GoogleGrpc_CallCredentials_default_instance_.sts_service_ = const_cast< ::GrpcService_GoogleGrpc_CallCredentials_StsService*>( - ::GrpcService_GoogleGrpc_CallCredentials_StsService::internal_default_instance()); -} -class GrpcService_GoogleGrpc_CallCredentials::_Internal { - public: - static const PROTOBUF_NAMESPACE_ID::Empty& google_compute_engine(const GrpcService_GoogleGrpc_CallCredentials* msg); - static const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& service_account_jwt_access(const GrpcService_GoogleGrpc_CallCredentials* msg); - static const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& google_iam(const GrpcService_GoogleGrpc_CallCredentials* msg); - static const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from_plugin(const GrpcService_GoogleGrpc_CallCredentials* msg); - static const ::GrpcService_GoogleGrpc_CallCredentials_StsService& sts_service(const GrpcService_GoogleGrpc_CallCredentials* msg); -}; - -const PROTOBUF_NAMESPACE_ID::Empty& -GrpcService_GoogleGrpc_CallCredentials::_Internal::google_compute_engine(const GrpcService_GoogleGrpc_CallCredentials* msg) { - return *msg->credential_specifier_.google_compute_engine_; -} -const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& -GrpcService_GoogleGrpc_CallCredentials::_Internal::service_account_jwt_access(const GrpcService_GoogleGrpc_CallCredentials* msg) { - return *msg->credential_specifier_.service_account_jwt_access_; -} -const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& -GrpcService_GoogleGrpc_CallCredentials::_Internal::google_iam(const GrpcService_GoogleGrpc_CallCredentials* msg) { - return *msg->credential_specifier_.google_iam_; -} -const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& -GrpcService_GoogleGrpc_CallCredentials::_Internal::from_plugin(const GrpcService_GoogleGrpc_CallCredentials* msg) { - return *msg->credential_specifier_.from_plugin_; -} -const ::GrpcService_GoogleGrpc_CallCredentials_StsService& -GrpcService_GoogleGrpc_CallCredentials::_Internal::sts_service(const GrpcService_GoogleGrpc_CallCredentials* msg) { - return *msg->credential_specifier_.sts_service_; -} -void GrpcService_GoogleGrpc_CallCredentials::set_allocated_google_compute_engine(PROTOBUF_NAMESPACE_ID::Empty* google_compute_engine) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - clear_credential_specifier(); - if (google_compute_engine) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(google_compute_engine)->GetArena(); - if (message_arena != submessage_arena) { - google_compute_engine = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, google_compute_engine, submessage_arena); - } - set_has_google_compute_engine(); - credential_specifier_.google_compute_engine_ = google_compute_engine; - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) -} -void GrpcService_GoogleGrpc_CallCredentials::clear_google_compute_engine() { - if (has_google_compute_engine()) { - delete credential_specifier_.google_compute_engine_; - clear_has_credential_specifier(); - } -} -void GrpcService_GoogleGrpc_CallCredentials::set_allocated_service_account_jwt_access(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* service_account_jwt_access) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - clear_credential_specifier(); - if (service_account_jwt_access) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - service_account_jwt_access = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, service_account_jwt_access, submessage_arena); - } - set_has_service_account_jwt_access(); - credential_specifier_.service_account_jwt_access_ = service_account_jwt_access; - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.service_account_jwt_access) -} -void GrpcService_GoogleGrpc_CallCredentials::set_allocated_google_iam(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* google_iam) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - clear_credential_specifier(); - if (google_iam) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - google_iam = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, google_iam, submessage_arena); - } - set_has_google_iam(); - credential_specifier_.google_iam_ = google_iam; - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.google_iam) -} -void GrpcService_GoogleGrpc_CallCredentials::set_allocated_from_plugin(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* from_plugin) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - clear_credential_specifier(); - if (from_plugin) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - from_plugin = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, from_plugin, submessage_arena); - } - set_has_from_plugin(); - credential_specifier_.from_plugin_ = from_plugin; - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.from_plugin) -} -void GrpcService_GoogleGrpc_CallCredentials::set_allocated_sts_service(::GrpcService_GoogleGrpc_CallCredentials_StsService* sts_service) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - clear_credential_specifier(); - if (sts_service) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - sts_service = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, sts_service, submessage_arena); - } - set_has_sts_service(); - credential_specifier_.sts_service_ = sts_service; - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.sts_service) -} -GrpcService_GoogleGrpc_CallCredentials::GrpcService_GoogleGrpc_CallCredentials() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService.GoogleGrpc.CallCredentials) -} -GrpcService_GoogleGrpc_CallCredentials::GrpcService_GoogleGrpc_CallCredentials(const GrpcService_GoogleGrpc_CallCredentials& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_credential_specifier(); - switch (from.credential_specifier_case()) { - case kAccessToken: { - set_access_token(from.access_token()); - break; - } - case kGoogleComputeEngine: { - mutable_google_compute_engine()->PROTOBUF_NAMESPACE_ID::Empty::MergeFrom(from.google_compute_engine()); - break; - } - case kGoogleRefreshToken: { - set_google_refresh_token(from.google_refresh_token()); - break; - } - case kServiceAccountJwtAccess: { - mutable_service_account_jwt_access()->::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::MergeFrom(from.service_account_jwt_access()); - break; - } - case kGoogleIam: { - mutable_google_iam()->::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::MergeFrom(from.google_iam()); - break; - } - case kFromPlugin: { - mutable_from_plugin()->::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::MergeFrom(from.from_plugin()); - break; - } - case kStsService: { - mutable_sts_service()->::GrpcService_GoogleGrpc_CallCredentials_StsService::MergeFrom(from.sts_service()); - break; - } - case CREDENTIAL_SPECIFIER_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials) -} - -void GrpcService_GoogleGrpc_CallCredentials::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_2eproto.base); - clear_has_credential_specifier(); -} - -GrpcService_GoogleGrpc_CallCredentials::~GrpcService_GoogleGrpc_CallCredentials() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials) - SharedDtor(); -} - -void GrpcService_GoogleGrpc_CallCredentials::SharedDtor() { - if (has_credential_specifier()) { - clear_credential_specifier(); - } -} - -void GrpcService_GoogleGrpc_CallCredentials::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GrpcService_GoogleGrpc_CallCredentials& GrpcService_GoogleGrpc_CallCredentials::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_2eproto.base); - return *internal_default_instance(); -} - - -void GrpcService_GoogleGrpc_CallCredentials::clear_credential_specifier() { -// @@protoc_insertion_point(one_of_clear_start:GrpcService.GoogleGrpc.CallCredentials) - switch (credential_specifier_case()) { - case kAccessToken: { - credential_specifier_.access_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - break; - } - case kGoogleComputeEngine: { - delete credential_specifier_.google_compute_engine_; - break; - } - case kGoogleRefreshToken: { - credential_specifier_.google_refresh_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - break; - } - case kServiceAccountJwtAccess: { - delete credential_specifier_.service_account_jwt_access_; - break; - } - case kGoogleIam: { - delete credential_specifier_.google_iam_; - break; - } - case kFromPlugin: { - delete credential_specifier_.from_plugin_; - break; - } - case kStsService: { - delete credential_specifier_.sts_service_; - break; - } - case CREDENTIAL_SPECIFIER_NOT_SET: { - break; - } - } - _oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; -} - - -void GrpcService_GoogleGrpc_CallCredentials::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_credential_specifier(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService_GoogleGrpc_CallCredentials::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string access_token = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_access_token(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.access_token"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .google.protobuf.Empty google_compute_engine = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(mutable_google_compute_engine(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string google_refresh_token = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_google_refresh_token(), ptr, ctx, "GrpcService.GoogleGrpc.CallCredentials.google_refresh_token"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ctx->ParseMessage(mutable_service_account_jwt_access(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr = ctx->ParseMessage(mutable_google_iam(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - ptr = ctx->ParseMessage(mutable_from_plugin(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { - ptr = ctx->ParseMessage(mutable_sts_service(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService_GoogleGrpc_CallCredentials::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - // @@protoc_insertion_point(parse_start:GrpcService.GoogleGrpc.CallCredentials) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string access_token = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_access_token())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->access_token().data(), static_cast(this->access_token().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.access_token")); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Empty google_compute_engine = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_google_compute_engine())); - } else { - goto handle_unusual; - } - break; - } - - // string google_refresh_token = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_google_refresh_token())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->google_refresh_token().data(), static_cast(this->google_refresh_token().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.google_refresh_token")); - } else { - goto handle_unusual; - } - break; - } - - // .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_service_account_jwt_access())); - } else { - goto handle_unusual; - } - break; - } - - // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; - case 5: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_google_iam())); - } else { - goto handle_unusual; - } - break; - } - - // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; + // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; case 6: { if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( @@ -4862,17 +4006,6 @@ bool GrpcService_GoogleGrpc_CallCredentials::MergePartialFromCodedStream( break; } - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - case 7: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_sts_service())); - } else { - goto handle_unusual; - } - break; - } - default: { handle_unusual: if (tag == 0) { @@ -4944,12 +4077,6 @@ void GrpcService_GoogleGrpc_CallCredentials::SerializeWithCachedSizes( 6, _Internal::from_plugin(this), output); } - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - if (has_sts_service()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, _Internal::sts_service(this), output); - } - if (_internal_metadata_.have_unknown_fields()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); @@ -5013,13 +4140,6 @@ ::PROTOBUF_NAMESPACE_ID::uint8* GrpcService_GoogleGrpc_CallCredentials::Internal 6, _Internal::from_plugin(this), target); } - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - if (has_sts_service()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 7, _Internal::sts_service(this), target); - } - if (_internal_metadata_.have_unknown_fields()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); @@ -5084,13 +4204,6 @@ size_t GrpcService_GoogleGrpc_CallCredentials::ByteSizeLong() const { *credential_specifier_.from_plugin_); break; } - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - case kStsService: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *credential_specifier_.sts_service_); - break; - } case CREDENTIAL_SPECIFIER_NOT_SET: { break; } @@ -5147,10 +4260,6 @@ void GrpcService_GoogleGrpc_CallCredentials::MergeFrom(const GrpcService_GoogleG mutable_from_plugin()->::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::MergeFrom(from.from_plugin()); break; } - case kStsService: { - mutable_sts_service()->::GrpcService_GoogleGrpc_CallCredentials_StsService::MergeFrom(from.sts_service()); - break; - } case CREDENTIAL_SPECIFIER_NOT_SET: { break; } @@ -6628,9 +5737,6 @@ template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMC template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* Arena::CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin >(Arena* arena) { return Arena::CreateInternal< ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin >(arena); } -template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc_CallCredentials_StsService* Arena::CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_StsService >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService_GoogleGrpc_CallCredentials_StsService >(arena); -} template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc_CallCredentials* Arena::CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials >(Arena* arena) { return Arena::CreateInternal< ::GrpcService_GoogleGrpc_CallCredentials >(arena); } diff --git a/api/wasm/cpp/proxy_wasm_intrinsics.pb.h b/api/wasm/cpp/proxy_wasm_intrinsics.pb.h index 2e2dff727870d..7ad64f92d2d45 100644 --- a/api/wasm/cpp/proxy_wasm_intrinsics.pb.h +++ b/api/wasm/cpp/proxy_wasm_intrinsics.pb.h @@ -51,7 +51,7 @@ struct TableStruct_proxy_5fwasm_5fintrinsics_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[14] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[13] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; @@ -82,9 +82,6 @@ extern GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefau class GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials; class GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal; extern GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials_StsService; -class GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal; -extern GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_; class GrpcService_GoogleGrpc_ChannelCredentials; class GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal; extern GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_ChannelCredentials_default_instance_; @@ -109,7 +106,6 @@ template<> ::GrpcService_GoogleGrpc_CallCredentials* Arena::CreateMaybeMessage<: template<> ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials>(Arena*); template<> ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin>(Arena*); template<> ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials>(Arena*); -template<> ::GrpcService_GoogleGrpc_CallCredentials_StsService* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_CallCredentials_StsService>(Arena*); template<> ::GrpcService_GoogleGrpc_ChannelCredentials* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_ChannelCredentials>(Arena*); template<> ::GrpcService_GoogleGrpc_GoogleLocalCredentials* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_GoogleLocalCredentials>(Arena*); template<> ::GrpcService_GoogleGrpc_SslCredentials* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_SslCredentials>(Arena*); @@ -1501,247 +1497,6 @@ class GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin : }; // ------------------------------------------------------------------- -class GrpcService_GoogleGrpc_CallCredentials_StsService : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials.StsService) */ { - public: - GrpcService_GoogleGrpc_CallCredentials_StsService(); - virtual ~GrpcService_GoogleGrpc_CallCredentials_StsService(); - - GrpcService_GoogleGrpc_CallCredentials_StsService(const GrpcService_GoogleGrpc_CallCredentials_StsService& from); - GrpcService_GoogleGrpc_CallCredentials_StsService(GrpcService_GoogleGrpc_CallCredentials_StsService&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials_StsService() { - *this = ::std::move(from); - } - - inline GrpcService_GoogleGrpc_CallCredentials_StsService& operator=(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) { - CopyFrom(from); - return *this; - } - inline GrpcService_GoogleGrpc_CallCredentials_StsService& operator=(GrpcService_GoogleGrpc_CallCredentials_StsService&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const GrpcService_GoogleGrpc_CallCredentials_StsService& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GrpcService_GoogleGrpc_CallCredentials_StsService* internal_default_instance() { - return reinterpret_cast( - &_GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - friend void swap(GrpcService_GoogleGrpc_CallCredentials_StsService& a, GrpcService_GoogleGrpc_CallCredentials_StsService& b) { - a.Swap(&b); - } - inline void Swap(GrpcService_GoogleGrpc_CallCredentials_StsService* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GrpcService_GoogleGrpc_CallCredentials_StsService* New() const final { - return CreateMaybeMessage(nullptr); - } - - GrpcService_GoogleGrpc_CallCredentials_StsService* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from); - void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GrpcService_GoogleGrpc_CallCredentials_StsService* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService.GoogleGrpc.CallCredentials.StsService"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto); - return ::descriptor_table_proxy_5fwasm_5fintrinsics_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTokenExchangeServiceUriFieldNumber = 1, - kResourceFieldNumber = 2, - kAudienceFieldNumber = 3, - kScopeFieldNumber = 4, - kRequestedTokenTypeFieldNumber = 5, - kSubjectTokenPathFieldNumber = 6, - kSubjectTokenTypeFieldNumber = 7, - kActorTokenPathFieldNumber = 8, - kActorTokenTypeFieldNumber = 9, - }; - // string token_exchange_service_uri = 1; - void clear_token_exchange_service_uri(); - const std::string& token_exchange_service_uri() const; - void set_token_exchange_service_uri(const std::string& value); - void set_token_exchange_service_uri(std::string&& value); - void set_token_exchange_service_uri(const char* value); - void set_token_exchange_service_uri(const char* value, size_t size); - std::string* mutable_token_exchange_service_uri(); - std::string* release_token_exchange_service_uri(); - void set_allocated_token_exchange_service_uri(std::string* token_exchange_service_uri); - - // string resource = 2; - void clear_resource(); - const std::string& resource() const; - void set_resource(const std::string& value); - void set_resource(std::string&& value); - void set_resource(const char* value); - void set_resource(const char* value, size_t size); - std::string* mutable_resource(); - std::string* release_resource(); - void set_allocated_resource(std::string* resource); - - // string audience = 3; - void clear_audience(); - const std::string& audience() const; - void set_audience(const std::string& value); - void set_audience(std::string&& value); - void set_audience(const char* value); - void set_audience(const char* value, size_t size); - std::string* mutable_audience(); - std::string* release_audience(); - void set_allocated_audience(std::string* audience); - - // string scope = 4; - void clear_scope(); - const std::string& scope() const; - void set_scope(const std::string& value); - void set_scope(std::string&& value); - void set_scope(const char* value); - void set_scope(const char* value, size_t size); - std::string* mutable_scope(); - std::string* release_scope(); - void set_allocated_scope(std::string* scope); - - // string requested_token_type = 5; - void clear_requested_token_type(); - const std::string& requested_token_type() const; - void set_requested_token_type(const std::string& value); - void set_requested_token_type(std::string&& value); - void set_requested_token_type(const char* value); - void set_requested_token_type(const char* value, size_t size); - std::string* mutable_requested_token_type(); - std::string* release_requested_token_type(); - void set_allocated_requested_token_type(std::string* requested_token_type); - - // string subject_token_path = 6; - void clear_subject_token_path(); - const std::string& subject_token_path() const; - void set_subject_token_path(const std::string& value); - void set_subject_token_path(std::string&& value); - void set_subject_token_path(const char* value); - void set_subject_token_path(const char* value, size_t size); - std::string* mutable_subject_token_path(); - std::string* release_subject_token_path(); - void set_allocated_subject_token_path(std::string* subject_token_path); - - // string subject_token_type = 7; - void clear_subject_token_type(); - const std::string& subject_token_type() const; - void set_subject_token_type(const std::string& value); - void set_subject_token_type(std::string&& value); - void set_subject_token_type(const char* value); - void set_subject_token_type(const char* value, size_t size); - std::string* mutable_subject_token_type(); - std::string* release_subject_token_type(); - void set_allocated_subject_token_type(std::string* subject_token_type); - - // string actor_token_path = 8; - void clear_actor_token_path(); - const std::string& actor_token_path() const; - void set_actor_token_path(const std::string& value); - void set_actor_token_path(std::string&& value); - void set_actor_token_path(const char* value); - void set_actor_token_path(const char* value, size_t size); - std::string* mutable_actor_token_path(); - std::string* release_actor_token_path(); - void set_allocated_actor_token_path(std::string* actor_token_path); - - // string actor_token_type = 9; - void clear_actor_token_type(); - const std::string& actor_token_type() const; - void set_actor_token_type(const std::string& value); - void set_actor_token_type(std::string&& value); - void set_actor_token_type(const char* value); - void set_actor_token_type(const char* value, size_t size); - std::string* mutable_actor_token_type(); - std::string* release_actor_token_type(); - void set_allocated_actor_token_type(std::string* actor_token_type); - - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.StsService) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr token_exchange_service_uri_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resource_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr audience_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr scope_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr requested_token_type_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr subject_token_path_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr subject_token_type_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr actor_token_path_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr actor_token_type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; -}; -// ------------------------------------------------------------------- - class GrpcService_GoogleGrpc_CallCredentials : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials) */ { public: @@ -1785,7 +1540,6 @@ class GrpcService_GoogleGrpc_CallCredentials : kServiceAccountJwtAccess = 4, kGoogleIam = 5, kFromPlugin = 6, - kStsService = 7, CREDENTIAL_SPECIFIER_NOT_SET = 0, }; @@ -1795,7 +1549,7 @@ class GrpcService_GoogleGrpc_CallCredentials : &_GrpcService_GoogleGrpc_CallCredentials_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 9; friend void swap(GrpcService_GoogleGrpc_CallCredentials& a, GrpcService_GoogleGrpc_CallCredentials& b) { a.Swap(&b); @@ -1866,7 +1620,6 @@ class GrpcService_GoogleGrpc_CallCredentials : typedef GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials ServiceAccountJWTAccessCredentials; typedef GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials GoogleIAMCredentials; typedef GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin MetadataCredentialsFromPlugin; - typedef GrpcService_GoogleGrpc_CallCredentials_StsService StsService; // accessors ------------------------------------------------------- @@ -1877,7 +1630,6 @@ class GrpcService_GoogleGrpc_CallCredentials : kServiceAccountJwtAccessFieldNumber = 4, kGoogleIamFieldNumber = 5, kFromPluginFieldNumber = 6, - kStsServiceFieldNumber = 7, }; // string access_token = 1; private: @@ -1939,14 +1691,6 @@ class GrpcService_GoogleGrpc_CallCredentials : ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* mutable_from_plugin(); void set_allocated_from_plugin(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* from_plugin); - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - bool has_sts_service() const; - void clear_sts_service(); - const ::GrpcService_GoogleGrpc_CallCredentials_StsService& sts_service() const; - ::GrpcService_GoogleGrpc_CallCredentials_StsService* release_sts_service(); - ::GrpcService_GoogleGrpc_CallCredentials_StsService* mutable_sts_service(); - void set_allocated_sts_service(::GrpcService_GoogleGrpc_CallCredentials_StsService* sts_service); - void clear_credential_specifier(); CredentialSpecifierCase credential_specifier_case() const; // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials) @@ -1958,7 +1702,6 @@ class GrpcService_GoogleGrpc_CallCredentials : void set_has_service_account_jwt_access(); void set_has_google_iam(); void set_has_from_plugin(); - void set_has_sts_service(); inline bool has_credential_specifier() const; inline void clear_has_credential_specifier(); @@ -1972,7 +1715,6 @@ class GrpcService_GoogleGrpc_CallCredentials : ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* service_account_jwt_access_; ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* google_iam_; ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* from_plugin_; - ::GrpcService_GoogleGrpc_CallCredentials_StsService* sts_service_; } credential_specifier_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; @@ -2023,7 +1765,7 @@ class GrpcService_GoogleGrpc : &_GrpcService_GoogleGrpc_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 10; friend void swap(GrpcService_GoogleGrpc& a, GrpcService_GoogleGrpc& b) { a.Swap(&b); @@ -2224,7 +1966,7 @@ class GrpcService_HeaderValue : &_GrpcService_HeaderValue_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 11; friend void swap(GrpcService_HeaderValue& a, GrpcService_HeaderValue& b) { a.Swap(&b); @@ -2380,7 +2122,7 @@ class GrpcService : &_GrpcService_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 12; friend void swap(GrpcService& a, GrpcService& b) { a.Swap(&b); @@ -3516,469 +3258,6 @@ inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::Con } // ------------------------------------------------------------------- -// GrpcService_GoogleGrpc_CallCredentials_StsService - -// string token_exchange_service_uri = 1; -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_token_exchange_service_uri() { - token_exchange_service_uri_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::token_exchange_service_uri() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) - return token_exchange_service_uri_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_token_exchange_service_uri(const std::string& value) { - - token_exchange_service_uri_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_token_exchange_service_uri(std::string&& value) { - - token_exchange_service_uri_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_token_exchange_service_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_exchange_service_uri_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_token_exchange_service_uri(const char* value, size_t size) { - - token_exchange_service_uri_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_token_exchange_service_uri() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) - return token_exchange_service_uri_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_token_exchange_service_uri() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) - - return token_exchange_service_uri_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_token_exchange_service_uri(std::string* token_exchange_service_uri) { - if (token_exchange_service_uri != nullptr) { - - } else { - - } - token_exchange_service_uri_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), token_exchange_service_uri); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) -} - -// string resource = 2; -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_resource() { - resource_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::resource() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) - return resource_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_resource(const std::string& value) { - - resource_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_resource(std::string&& value) { - - resource_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_resource(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - resource_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_resource(const char* value, size_t size) { - - resource_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_resource() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) - return resource_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_resource() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) - - return resource_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_resource(std::string* resource) { - if (resource != nullptr) { - - } else { - - } - resource_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), resource); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) -} - -// string audience = 3; -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_audience() { - audience_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::audience() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) - return audience_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_audience(const std::string& value) { - - audience_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_audience(std::string&& value) { - - audience_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_audience(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - audience_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_audience(const char* value, size_t size) { - - audience_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_audience() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) - return audience_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_audience() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) - - return audience_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_audience(std::string* audience) { - if (audience != nullptr) { - - } else { - - } - audience_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), audience); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) -} - -// string scope = 4; -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_scope() { - scope_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::scope() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) - return scope_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_scope(const std::string& value) { - - scope_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_scope(std::string&& value) { - - scope_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_scope(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - scope_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_scope(const char* value, size_t size) { - - scope_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_scope() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) - return scope_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_scope() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) - - return scope_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_scope(std::string* scope) { - if (scope != nullptr) { - - } else { - - } - scope_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), scope); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) -} - -// string requested_token_type = 5; -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_requested_token_type() { - requested_token_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::requested_token_type() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) - return requested_token_type_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_requested_token_type(const std::string& value) { - - requested_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_requested_token_type(std::string&& value) { - - requested_token_type_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_requested_token_type(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - requested_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_requested_token_type(const char* value, size_t size) { - - requested_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_requested_token_type() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) - return requested_token_type_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_requested_token_type() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) - - return requested_token_type_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_requested_token_type(std::string* requested_token_type) { - if (requested_token_type != nullptr) { - - } else { - - } - requested_token_type_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), requested_token_type); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) -} - -// string subject_token_path = 6; -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_subject_token_path() { - subject_token_path_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::subject_token_path() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) - return subject_token_path_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_path(const std::string& value) { - - subject_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_path(std::string&& value) { - - subject_token_path_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_path(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - subject_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_path(const char* value, size_t size) { - - subject_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_subject_token_path() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) - return subject_token_path_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_subject_token_path() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) - - return subject_token_path_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_subject_token_path(std::string* subject_token_path) { - if (subject_token_path != nullptr) { - - } else { - - } - subject_token_path_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), subject_token_path); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) -} - -// string subject_token_type = 7; -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_subject_token_type() { - subject_token_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::subject_token_type() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) - return subject_token_type_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_type(const std::string& value) { - - subject_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_type(std::string&& value) { - - subject_token_type_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_type(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - subject_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_type(const char* value, size_t size) { - - subject_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_subject_token_type() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) - return subject_token_type_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_subject_token_type() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) - - return subject_token_type_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_subject_token_type(std::string* subject_token_type) { - if (subject_token_type != nullptr) { - - } else { - - } - subject_token_type_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), subject_token_type); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) -} - -// string actor_token_path = 8; -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_actor_token_path() { - actor_token_path_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::actor_token_path() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) - return actor_token_path_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_path(const std::string& value) { - - actor_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_path(std::string&& value) { - - actor_token_path_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_path(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - actor_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_path(const char* value, size_t size) { - - actor_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_actor_token_path() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) - return actor_token_path_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_actor_token_path() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) - - return actor_token_path_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_actor_token_path(std::string* actor_token_path) { - if (actor_token_path != nullptr) { - - } else { - - } - actor_token_path_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), actor_token_path); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) -} - -// string actor_token_type = 9; -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_actor_token_type() { - actor_token_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::actor_token_type() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) - return actor_token_type_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_type(const std::string& value) { - - actor_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_type(std::string&& value) { - - actor_token_type_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_type(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - actor_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_type(const char* value, size_t size) { - - actor_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_actor_token_type() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) - return actor_token_type_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_actor_token_type() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) - - return actor_token_type_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_actor_token_type(std::string* actor_token_type) { - if (actor_token_type != nullptr) { - - } else { - - } - actor_token_type_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), actor_token_type); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) -} - -// ------------------------------------------------------------------- - // GrpcService_GoogleGrpc_CallCredentials // string access_token = 1; @@ -4319,47 +3598,6 @@ inline ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* G return credential_specifier_.from_plugin_; } -// .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; -inline bool GrpcService_GoogleGrpc_CallCredentials::has_sts_service() const { - return credential_specifier_case() == kStsService; -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_has_sts_service() { - _oneof_case_[0] = kStsService; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_sts_service() { - if (has_sts_service()) { - delete credential_specifier_.sts_service_; - clear_has_credential_specifier(); - } -} -inline ::GrpcService_GoogleGrpc_CallCredentials_StsService* GrpcService_GoogleGrpc_CallCredentials::release_sts_service() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.sts_service) - if (has_sts_service()) { - clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_CallCredentials_StsService* temp = credential_specifier_.sts_service_; - credential_specifier_.sts_service_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_CallCredentials_StsService& GrpcService_GoogleGrpc_CallCredentials::sts_service() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.sts_service) - return has_sts_service() - ? *credential_specifier_.sts_service_ - : *reinterpret_cast< ::GrpcService_GoogleGrpc_CallCredentials_StsService*>(&::_GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_); -} -inline ::GrpcService_GoogleGrpc_CallCredentials_StsService* GrpcService_GoogleGrpc_CallCredentials::mutable_sts_service() { - if (!has_sts_service()) { - clear_credential_specifier(); - set_has_sts_service(); - credential_specifier_.sts_service_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_StsService >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.sts_service) - return credential_specifier_.sts_service_; -} - inline bool GrpcService_GoogleGrpc_CallCredentials::has_credential_specifier() const { return credential_specifier_case() != CREDENTIAL_SPECIFIER_NOT_SET; } @@ -4957,8 +4195,6 @@ inline GrpcService::TargetSpecifierCase GrpcService::target_specifier_case() con // ------------------------------------------------------------------- -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) diff --git a/api/wasm/cpp/proxy_wasm_intrinsics.proto b/api/wasm/cpp/proxy_wasm_intrinsics.proto index 20a9ccced1ea3..d22124a3af55b 100644 --- a/api/wasm/cpp/proxy_wasm_intrinsics.proto +++ b/api/wasm/cpp/proxy_wasm_intrinsics.proto @@ -54,17 +54,6 @@ message GrpcService { google.protobuf.Any typed_config = 3; } } - message StsService { - string token_exchange_service_uri = 1; - string resource = 2; - string audience = 3; - string scope = 4; - string requested_token_type = 5; - string subject_token_path = 6; - string subject_token_type = 7; - string actor_token_path = 8; - string actor_token_type = 9; - } oneof credential_specifier { string access_token = 1; google.protobuf.Empty google_compute_engine = 2; @@ -72,7 +61,6 @@ message GrpcService { ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; GoogleIAMCredentials google_iam = 5; MetadataCredentialsFromPlugin from_plugin = 6; - StsService sts_service = 7; } } repeated CallCredentials call_credentials = 3; diff --git a/api/wasm/cpp/proxy_wasm_intrinsics_lite.pb.cc b/api/wasm/cpp/proxy_wasm_intrinsics_lite.pb.cc index d30dcd4f9c751..72d56c4f38c63 100644 --- a/api/wasm/cpp/proxy_wasm_intrinsics_lite.pb.cc +++ b/api/wasm/cpp/proxy_wasm_intrinsics_lite.pb.cc @@ -16,11 +16,10 @@ extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTO extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DataSource_proxy_5fwasm_5fintrinsics_5flite_2eproto; extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_EnvoyGrpc_proxy_5fwasm_5fintrinsics_5flite_2eproto; extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_GrpcService_GoogleGrpc_proxy_5fwasm_5fintrinsics_5flite_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<5> scc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto; extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto; extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_proxy_5fwasm_5fintrinsics_5flite_2eproto; extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_5flite_2eproto; extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_GrpcService_GoogleGrpc_ChannelCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto; extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_Empty_proxy_5fwasm_5fintrinsics_5flite_2eproto; extern PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_GoogleLocalCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto; @@ -79,10 +78,6 @@ class GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaul const ::google::protobuf::Struct* config_; const ::Any* typed_config_; } _GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_; class GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; @@ -92,7 +87,6 @@ class GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal { const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* service_account_jwt_access_; const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* google_iam_; const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* from_plugin_; - const ::GrpcService_GoogleGrpc_CallCredentials_StsService* sts_service_; } _GrpcService_GoogleGrpc_CallCredentials_default_instance_; class GrpcService_GoogleGrpcDefaultTypeInternal { public: @@ -195,13 +189,12 @@ static void InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5f ::GrpcService_GoogleGrpc_CallCredentials::InitAsDefaultInstance(); } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<5> scc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 5, InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto}, { +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto}, { &scc_info_GrpcService_GoogleGrpc_Empty_proxy_5fwasm_5fintrinsics_5flite_2eproto.base, &scc_info_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto.base, &scc_info_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_proxy_5fwasm_5fintrinsics_5flite_2eproto.base, - &scc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_5flite_2eproto.base,}}; + &scc_info_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_proxy_5fwasm_5fintrinsics_5flite_2eproto.base,}}; static void InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -247,20 +240,6 @@ static void InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_ServiceA ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto}, {}}; -static void InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_5flite_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_; - new (ptr) ::GrpcService_GoogleGrpc_CallCredentials_StsService(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::GrpcService_GoogleGrpc_CallCredentials_StsService::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_5flite_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_5flite_2eproto}, {}}; - static void InitDefaultsscc_info_GrpcService_GoogleGrpc_ChannelCredentials_proxy_5fwasm_5fintrinsics_5flite_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -3461,651 +3440,6 @@ std::string GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin } -// =================================================================== - -void GrpcService_GoogleGrpc_CallCredentials_StsService::InitAsDefaultInstance() { -} -class GrpcService_GoogleGrpc_CallCredentials_StsService::_Internal { - public: -}; - -GrpcService_GoogleGrpc_CallCredentials_StsService::GrpcService_GoogleGrpc_CallCredentials_StsService() - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GrpcService.GoogleGrpc.CallCredentials.StsService) -} -GrpcService_GoogleGrpc_CallCredentials_StsService::GrpcService_GoogleGrpc_CallCredentials_StsService(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - token_exchange_service_uri_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.token_exchange_service_uri().empty()) { - token_exchange_service_uri_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.token_exchange_service_uri_); - } - resource_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.resource().empty()) { - resource_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.resource_); - } - audience_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.audience().empty()) { - audience_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.audience_); - } - scope_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.scope().empty()) { - scope_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.scope_); - } - requested_token_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.requested_token_type().empty()) { - requested_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.requested_token_type_); - } - subject_token_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.subject_token_path().empty()) { - subject_token_path_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.subject_token_path_); - } - subject_token_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.subject_token_type().empty()) { - subject_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.subject_token_type_); - } - actor_token_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.actor_token_path().empty()) { - actor_token_path_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.actor_token_path_); - } - actor_token_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.actor_token_type().empty()) { - actor_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.actor_token_type_); - } - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials.StsService) -} - -void GrpcService_GoogleGrpc_CallCredentials_StsService::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - token_exchange_service_uri_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - resource_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - audience_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - scope_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - requested_token_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - subject_token_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - subject_token_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - actor_token_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - actor_token_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -GrpcService_GoogleGrpc_CallCredentials_StsService::~GrpcService_GoogleGrpc_CallCredentials_StsService() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials.StsService) - SharedDtor(); -} - -void GrpcService_GoogleGrpc_CallCredentials_StsService::SharedDtor() { - token_exchange_service_uri_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - resource_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - audience_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - scope_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - requested_token_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - subject_token_path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - subject_token_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - actor_token_path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - actor_token_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void GrpcService_GoogleGrpc_CallCredentials_StsService::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GrpcService_GoogleGrpc_CallCredentials_StsService& GrpcService_GoogleGrpc_CallCredentials_StsService::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GrpcService_GoogleGrpc_CallCredentials_StsService_proxy_5fwasm_5fintrinsics_5flite_2eproto.base); - return *internal_default_instance(); -} - - -void GrpcService_GoogleGrpc_CallCredentials_StsService::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - token_exchange_service_uri_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - resource_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - audience_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - scope_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - requested_token_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - subject_token_path_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - subject_token_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - actor_token_path_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - actor_token_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GrpcService_GoogleGrpc_CallCredentials_StsService::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string token_exchange_service_uri = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_token_exchange_service_uri(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string resource = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_resource(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string audience = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_audience(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string scope = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_scope(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string requested_token_type = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_requested_token_type(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string subject_token_path = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_subject_token_path(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string subject_token_type = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_subject_token_type(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string actor_token_path = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_actor_token_path(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string actor_token_type = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_actor_token_type(), ptr, ctx, nullptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GrpcService_GoogleGrpc_CallCredentials_StsService::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string token_exchange_service_uri = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_token_exchange_service_uri())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->token_exchange_service_uri().data(), static_cast(this->token_exchange_service_uri().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri")); - } else { - goto handle_unusual; - } - break; - } - - // string resource = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_resource())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->resource().data(), static_cast(this->resource().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.resource")); - } else { - goto handle_unusual; - } - break; - } - - // string audience = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_audience())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->audience().data(), static_cast(this->audience().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.audience")); - } else { - goto handle_unusual; - } - break; - } - - // string scope = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_scope())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->scope().data(), static_cast(this->scope().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.scope")); - } else { - goto handle_unusual; - } - break; - } - - // string requested_token_type = 5; - case 5: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_requested_token_type())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->requested_token_type().data(), static_cast(this->requested_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type")); - } else { - goto handle_unusual; - } - break; - } - - // string subject_token_path = 6; - case 6: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_subject_token_path())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->subject_token_path().data(), static_cast(this->subject_token_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path")); - } else { - goto handle_unusual; - } - break; - } - - // string subject_token_type = 7; - case 7: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_subject_token_type())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->subject_token_type().data(), static_cast(this->subject_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type")); - } else { - goto handle_unusual; - } - break; - } - - // string actor_token_path = 8; - case 8: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_actor_token_path())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->actor_token_path().data(), static_cast(this->actor_token_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path")); - } else { - goto handle_unusual; - } - break; - } - - // string actor_token_type = 9; - case 9: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (74 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_actor_token_type())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->actor_token_type().data(), static_cast(this->actor_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type")); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GrpcService.GoogleGrpc.CallCredentials.StsService) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GrpcService.GoogleGrpc.CallCredentials.StsService) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GrpcService_GoogleGrpc_CallCredentials_StsService::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string token_exchange_service_uri = 1; - if (this->token_exchange_service_uri().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->token_exchange_service_uri().data(), static_cast(this->token_exchange_service_uri().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->token_exchange_service_uri(), output); - } - - // string resource = 2; - if (this->resource().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->resource().data(), static_cast(this->resource().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.resource"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->resource(), output); - } - - // string audience = 3; - if (this->audience().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->audience().data(), static_cast(this->audience().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.audience"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->audience(), output); - } - - // string scope = 4; - if (this->scope().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->scope().data(), static_cast(this->scope().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.scope"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->scope(), output); - } - - // string requested_token_type = 5; - if (this->requested_token_type().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->requested_token_type().data(), static_cast(this->requested_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->requested_token_type(), output); - } - - // string subject_token_path = 6; - if (this->subject_token_path().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->subject_token_path().data(), static_cast(this->subject_token_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 6, this->subject_token_path(), output); - } - - // string subject_token_type = 7; - if (this->subject_token_type().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->subject_token_type().data(), static_cast(this->subject_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 7, this->subject_token_type(), output); - } - - // string actor_token_path = 8; - if (this->actor_token_path().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->actor_token_path().data(), static_cast(this->actor_token_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 8, this->actor_token_path(), output); - } - - // string actor_token_type = 9; - if (this->actor_token_type().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->actor_token_type().data(), static_cast(this->actor_token_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 9, this->actor_token_type(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc.CallCredentials.StsService) -} - -size_t GrpcService_GoogleGrpc_CallCredentials_StsService::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string token_exchange_service_uri = 1; - if (this->token_exchange_service_uri().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->token_exchange_service_uri()); - } - - // string resource = 2; - if (this->resource().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->resource()); - } - - // string audience = 3; - if (this->audience().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->audience()); - } - - // string scope = 4; - if (this->scope().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->scope()); - } - - // string requested_token_type = 5; - if (this->requested_token_type().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->requested_token_type()); - } - - // string subject_token_path = 6; - if (this->subject_token_path().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->subject_token_path()); - } - - // string subject_token_type = 7; - if (this->subject_token_type().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->subject_token_type()); - } - - // string actor_token_path = 8; - if (this->actor_token_path().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->actor_token_path()); - } - - // string actor_token_type = 9; - if (this->actor_token_type().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->actor_token_type()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GrpcService_GoogleGrpc_CallCredentials_StsService::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void GrpcService_GoogleGrpc_CallCredentials_StsService::MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.token_exchange_service_uri().size() > 0) { - - token_exchange_service_uri_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.token_exchange_service_uri_); - } - if (from.resource().size() > 0) { - - resource_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.resource_); - } - if (from.audience().size() > 0) { - - audience_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.audience_); - } - if (from.scope().size() > 0) { - - scope_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.scope_); - } - if (from.requested_token_type().size() > 0) { - - requested_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.requested_token_type_); - } - if (from.subject_token_path().size() > 0) { - - subject_token_path_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.subject_token_path_); - } - if (from.subject_token_type().size() > 0) { - - subject_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.subject_token_type_); - } - if (from.actor_token_path().size() > 0) { - - actor_token_path_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.actor_token_path_); - } - if (from.actor_token_type().size() > 0) { - - actor_token_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.actor_token_type_); - } -} - -void GrpcService_GoogleGrpc_CallCredentials_StsService::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GrpcService_GoogleGrpc_CallCredentials_StsService::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_CallCredentials_StsService::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_StsService* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - token_exchange_service_uri_.Swap(&other->token_exchange_service_uri_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - resource_.Swap(&other->resource_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - audience_.Swap(&other->audience_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - scope_.Swap(&other->scope_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - requested_token_type_.Swap(&other->requested_token_type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - subject_token_path_.Swap(&other->subject_token_path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - subject_token_type_.Swap(&other->subject_token_type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - actor_token_path_.Swap(&other->actor_token_path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - actor_token_type_.Swap(&other->actor_token_type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -std::string GrpcService_GoogleGrpc_CallCredentials_StsService::GetTypeName() const { - return "GrpcService.GoogleGrpc.CallCredentials.StsService"; -} - - // =================================================================== void GrpcService_GoogleGrpc_CallCredentials::InitAsDefaultInstance() { @@ -4116,7 +3450,6 @@ class GrpcService_GoogleGrpc_CallCredentials::_Internal { static const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& service_account_jwt_access(const GrpcService_GoogleGrpc_CallCredentials* msg); static const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& google_iam(const GrpcService_GoogleGrpc_CallCredentials* msg); static const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from_plugin(const GrpcService_GoogleGrpc_CallCredentials* msg); - static const ::GrpcService_GoogleGrpc_CallCredentials_StsService& sts_service(const GrpcService_GoogleGrpc_CallCredentials* msg); }; const ::GrpcService_GoogleGrpc_Empty& @@ -4135,10 +3468,6 @@ const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& GrpcService_GoogleGrpc_CallCredentials::_Internal::from_plugin(const GrpcService_GoogleGrpc_CallCredentials* msg) { return *msg->credential_specifier_.from_plugin_; } -const ::GrpcService_GoogleGrpc_CallCredentials_StsService& -GrpcService_GoogleGrpc_CallCredentials::_Internal::sts_service(const GrpcService_GoogleGrpc_CallCredentials* msg) { - return *msg->credential_specifier_.sts_service_; -} void GrpcService_GoogleGrpc_CallCredentials::set_allocated_google_compute_engine(::GrpcService_GoogleGrpc_Empty* google_compute_engine) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); clear_credential_specifier(); @@ -4195,20 +3524,6 @@ void GrpcService_GoogleGrpc_CallCredentials::set_allocated_from_plugin(::GrpcSer } // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.from_plugin) } -void GrpcService_GoogleGrpc_CallCredentials::set_allocated_sts_service(::GrpcService_GoogleGrpc_CallCredentials_StsService* sts_service) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - clear_credential_specifier(); - if (sts_service) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - sts_service = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, sts_service, submessage_arena); - } - set_has_sts_service(); - credential_specifier_.sts_service_ = sts_service; - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.sts_service) -} GrpcService_GoogleGrpc_CallCredentials::GrpcService_GoogleGrpc_CallCredentials() : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) { SharedCtor(); @@ -4244,10 +3559,6 @@ GrpcService_GoogleGrpc_CallCredentials::GrpcService_GoogleGrpc_CallCredentials(c mutable_from_plugin()->::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::MergeFrom(from.from_plugin()); break; } - case kStsService: { - mutable_sts_service()->::GrpcService_GoogleGrpc_CallCredentials_StsService::MergeFrom(from.sts_service()); - break; - } case CREDENTIAL_SPECIFIER_NOT_SET: { break; } @@ -4307,10 +3618,6 @@ void GrpcService_GoogleGrpc_CallCredentials::clear_credential_specifier() { delete credential_specifier_.from_plugin_; break; } - case kStsService: { - delete credential_specifier_.sts_service_; - break; - } case CREDENTIAL_SPECIFIER_NOT_SET: { break; } @@ -4379,13 +3686,6 @@ const char* GrpcService_GoogleGrpc_CallCredentials::_InternalParse(const char* p CHK_(ptr); } else goto handle_unusual; continue; - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { - ptr = ctx->ParseMessage(mutable_sts_service(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -4496,17 +3796,6 @@ bool GrpcService_GoogleGrpc_CallCredentials::MergePartialFromCodedStream( break; } - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - case 7: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_sts_service())); - } else { - goto handle_unusual; - } - break; - } - default: { handle_unusual: if (tag == 0) { @@ -4578,12 +3867,6 @@ void GrpcService_GoogleGrpc_CallCredentials::SerializeWithCachedSizes( 6, _Internal::from_plugin(this), output); } - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - if (has_sts_service()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage( - 7, _Internal::sts_service(this), output); - } - output->WriteRaw(_internal_metadata_.unknown_fields().data(), static_cast(_internal_metadata_.unknown_fields().size())); // @@protoc_insertion_point(serialize_end:GrpcService.GoogleGrpc.CallCredentials) @@ -4642,13 +3925,6 @@ size_t GrpcService_GoogleGrpc_CallCredentials::ByteSizeLong() const { *credential_specifier_.from_plugin_); break; } - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - case kStsService: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *credential_specifier_.sts_service_); - break; - } case CREDENTIAL_SPECIFIER_NOT_SET: { break; } @@ -4696,10 +3972,6 @@ void GrpcService_GoogleGrpc_CallCredentials::MergeFrom(const GrpcService_GoogleG mutable_from_plugin()->::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::MergeFrom(from.from_plugin()); break; } - case kStsService: { - mutable_sts_service()->::GrpcService_GoogleGrpc_CallCredentials_StsService::MergeFrom(from.sts_service()); - break; - } case CREDENTIAL_SPECIFIER_NOT_SET: { break; } @@ -5920,9 +5192,6 @@ template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMC template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* Arena::CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin >(Arena* arena) { return Arena::CreateInternal< ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin >(arena); } -template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc_CallCredentials_StsService* Arena::CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_StsService >(Arena* arena) { - return Arena::CreateInternal< ::GrpcService_GoogleGrpc_CallCredentials_StsService >(arena); -} template<> PROTOBUF_NOINLINE ::GrpcService_GoogleGrpc_CallCredentials* Arena::CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials >(Arena* arena) { return Arena::CreateInternal< ::GrpcService_GoogleGrpc_CallCredentials >(arena); } diff --git a/api/wasm/cpp/proxy_wasm_intrinsics_lite.pb.h b/api/wasm/cpp/proxy_wasm_intrinsics_lite.pb.h index aa581ab0f6c32..501edccef7dfd 100644 --- a/api/wasm/cpp/proxy_wasm_intrinsics_lite.pb.h +++ b/api/wasm/cpp/proxy_wasm_intrinsics_lite.pb.h @@ -46,7 +46,7 @@ struct TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[16] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[15] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; @@ -79,9 +79,6 @@ extern GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefau class GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials; class GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal; extern GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials_StsService; -class GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal; -extern GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_; class GrpcService_GoogleGrpc_ChannelCredentials; class GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal; extern GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_ChannelCredentials_default_instance_; @@ -110,7 +107,6 @@ template<> ::GrpcService_GoogleGrpc_CallCredentials* Arena::CreateMaybeMessage<: template<> ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials>(Arena*); template<> ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin>(Arena*); template<> ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials>(Arena*); -template<> ::GrpcService_GoogleGrpc_CallCredentials_StsService* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_CallCredentials_StsService>(Arena*); template<> ::GrpcService_GoogleGrpc_ChannelCredentials* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_ChannelCredentials>(Arena*); template<> ::GrpcService_GoogleGrpc_Empty* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_Empty>(Arena*); template<> ::GrpcService_GoogleGrpc_GoogleLocalCredentials* Arena::CreateMaybeMessage<::GrpcService_GoogleGrpc_GoogleLocalCredentials>(Arena*); @@ -1588,230 +1584,6 @@ class GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin : }; // ------------------------------------------------------------------- -class GrpcService_GoogleGrpc_CallCredentials_StsService : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials.StsService) */ { - public: - GrpcService_GoogleGrpc_CallCredentials_StsService(); - virtual ~GrpcService_GoogleGrpc_CallCredentials_StsService(); - - GrpcService_GoogleGrpc_CallCredentials_StsService(const GrpcService_GoogleGrpc_CallCredentials_StsService& from); - GrpcService_GoogleGrpc_CallCredentials_StsService(GrpcService_GoogleGrpc_CallCredentials_StsService&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials_StsService() { - *this = ::std::move(from); - } - - inline GrpcService_GoogleGrpc_CallCredentials_StsService& operator=(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) { - CopyFrom(from); - return *this; - } - inline GrpcService_GoogleGrpc_CallCredentials_StsService& operator=(GrpcService_GoogleGrpc_CallCredentials_StsService&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const GrpcService_GoogleGrpc_CallCredentials_StsService& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GrpcService_GoogleGrpc_CallCredentials_StsService* internal_default_instance() { - return reinterpret_cast( - &_GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - friend void swap(GrpcService_GoogleGrpc_CallCredentials_StsService& a, GrpcService_GoogleGrpc_CallCredentials_StsService& b) { - a.Swap(&b); - } - inline void Swap(GrpcService_GoogleGrpc_CallCredentials_StsService* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline GrpcService_GoogleGrpc_CallCredentials_StsService* New() const final { - return CreateMaybeMessage(nullptr); - } - - GrpcService_GoogleGrpc_CallCredentials_StsService* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) - final; - void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from); - void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - #else - bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(GrpcService_GoogleGrpc_CallCredentials_StsService* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "GrpcService.GoogleGrpc.CallCredentials.StsService"; - } - private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTokenExchangeServiceUriFieldNumber = 1, - kResourceFieldNumber = 2, - kAudienceFieldNumber = 3, - kScopeFieldNumber = 4, - kRequestedTokenTypeFieldNumber = 5, - kSubjectTokenPathFieldNumber = 6, - kSubjectTokenTypeFieldNumber = 7, - kActorTokenPathFieldNumber = 8, - kActorTokenTypeFieldNumber = 9, - }; - // string token_exchange_service_uri = 1; - void clear_token_exchange_service_uri(); - const std::string& token_exchange_service_uri() const; - void set_token_exchange_service_uri(const std::string& value); - void set_token_exchange_service_uri(std::string&& value); - void set_token_exchange_service_uri(const char* value); - void set_token_exchange_service_uri(const char* value, size_t size); - std::string* mutable_token_exchange_service_uri(); - std::string* release_token_exchange_service_uri(); - void set_allocated_token_exchange_service_uri(std::string* token_exchange_service_uri); - - // string resource = 2; - void clear_resource(); - const std::string& resource() const; - void set_resource(const std::string& value); - void set_resource(std::string&& value); - void set_resource(const char* value); - void set_resource(const char* value, size_t size); - std::string* mutable_resource(); - std::string* release_resource(); - void set_allocated_resource(std::string* resource); - - // string audience = 3; - void clear_audience(); - const std::string& audience() const; - void set_audience(const std::string& value); - void set_audience(std::string&& value); - void set_audience(const char* value); - void set_audience(const char* value, size_t size); - std::string* mutable_audience(); - std::string* release_audience(); - void set_allocated_audience(std::string* audience); - - // string scope = 4; - void clear_scope(); - const std::string& scope() const; - void set_scope(const std::string& value); - void set_scope(std::string&& value); - void set_scope(const char* value); - void set_scope(const char* value, size_t size); - std::string* mutable_scope(); - std::string* release_scope(); - void set_allocated_scope(std::string* scope); - - // string requested_token_type = 5; - void clear_requested_token_type(); - const std::string& requested_token_type() const; - void set_requested_token_type(const std::string& value); - void set_requested_token_type(std::string&& value); - void set_requested_token_type(const char* value); - void set_requested_token_type(const char* value, size_t size); - std::string* mutable_requested_token_type(); - std::string* release_requested_token_type(); - void set_allocated_requested_token_type(std::string* requested_token_type); - - // string subject_token_path = 6; - void clear_subject_token_path(); - const std::string& subject_token_path() const; - void set_subject_token_path(const std::string& value); - void set_subject_token_path(std::string&& value); - void set_subject_token_path(const char* value); - void set_subject_token_path(const char* value, size_t size); - std::string* mutable_subject_token_path(); - std::string* release_subject_token_path(); - void set_allocated_subject_token_path(std::string* subject_token_path); - - // string subject_token_type = 7; - void clear_subject_token_type(); - const std::string& subject_token_type() const; - void set_subject_token_type(const std::string& value); - void set_subject_token_type(std::string&& value); - void set_subject_token_type(const char* value); - void set_subject_token_type(const char* value, size_t size); - std::string* mutable_subject_token_type(); - std::string* release_subject_token_type(); - void set_allocated_subject_token_type(std::string* subject_token_type); - - // string actor_token_path = 8; - void clear_actor_token_path(); - const std::string& actor_token_path() const; - void set_actor_token_path(const std::string& value); - void set_actor_token_path(std::string&& value); - void set_actor_token_path(const char* value); - void set_actor_token_path(const char* value, size_t size); - std::string* mutable_actor_token_path(); - std::string* release_actor_token_path(); - void set_allocated_actor_token_path(std::string* actor_token_path); - - // string actor_token_type = 9; - void clear_actor_token_type(); - const std::string& actor_token_type() const; - void set_actor_token_type(const std::string& value); - void set_actor_token_type(std::string&& value); - void set_actor_token_type(const char* value); - void set_actor_token_type(const char* value, size_t size); - std::string* mutable_actor_token_type(); - std::string* release_actor_token_type(); - void set_allocated_actor_token_type(std::string* actor_token_type); - - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.StsService) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr token_exchange_service_uri_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resource_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr audience_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr scope_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr requested_token_type_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr subject_token_path_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr subject_token_type_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr actor_token_path_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr actor_token_type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; -}; -// ------------------------------------------------------------------- - class GrpcService_GoogleGrpc_CallCredentials : public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials) */ { public: @@ -1846,7 +1618,6 @@ class GrpcService_GoogleGrpc_CallCredentials : kServiceAccountJwtAccess = 4, kGoogleIam = 5, kFromPlugin = 6, - kStsService = 7, CREDENTIAL_SPECIFIER_NOT_SET = 0, }; @@ -1856,7 +1627,7 @@ class GrpcService_GoogleGrpc_CallCredentials : &_GrpcService_GoogleGrpc_CallCredentials_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 11; friend void swap(GrpcService_GoogleGrpc_CallCredentials& a, GrpcService_GoogleGrpc_CallCredentials& b) { a.Swap(&b); @@ -1919,7 +1690,6 @@ class GrpcService_GoogleGrpc_CallCredentials : typedef GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials ServiceAccountJWTAccessCredentials; typedef GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials GoogleIAMCredentials; typedef GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin MetadataCredentialsFromPlugin; - typedef GrpcService_GoogleGrpc_CallCredentials_StsService StsService; // accessors ------------------------------------------------------- @@ -1930,7 +1700,6 @@ class GrpcService_GoogleGrpc_CallCredentials : kServiceAccountJwtAccessFieldNumber = 4, kGoogleIamFieldNumber = 5, kFromPluginFieldNumber = 6, - kStsServiceFieldNumber = 7, }; // string access_token = 1; private: @@ -1992,14 +1761,6 @@ class GrpcService_GoogleGrpc_CallCredentials : ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* mutable_from_plugin(); void set_allocated_from_plugin(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* from_plugin); - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - bool has_sts_service() const; - void clear_sts_service(); - const ::GrpcService_GoogleGrpc_CallCredentials_StsService& sts_service() const; - ::GrpcService_GoogleGrpc_CallCredentials_StsService* release_sts_service(); - ::GrpcService_GoogleGrpc_CallCredentials_StsService* mutable_sts_service(); - void set_allocated_sts_service(::GrpcService_GoogleGrpc_CallCredentials_StsService* sts_service); - void clear_credential_specifier(); CredentialSpecifierCase credential_specifier_case() const; // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials) @@ -2011,7 +1772,6 @@ class GrpcService_GoogleGrpc_CallCredentials : void set_has_service_account_jwt_access(); void set_has_google_iam(); void set_has_from_plugin(); - void set_has_sts_service(); inline bool has_credential_specifier() const; inline void clear_has_credential_specifier(); @@ -2025,7 +1785,6 @@ class GrpcService_GoogleGrpc_CallCredentials : ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* service_account_jwt_access_; ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* google_iam_; ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* from_plugin_; - ::GrpcService_GoogleGrpc_CallCredentials_StsService* sts_service_; } credential_specifier_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; @@ -2067,7 +1826,7 @@ class GrpcService_GoogleGrpc : &_GrpcService_GoogleGrpc_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 12; friend void swap(GrpcService_GoogleGrpc& a, GrpcService_GoogleGrpc& b) { a.Swap(&b); @@ -2252,7 +2011,7 @@ class GrpcService_HeaderValue : &_GrpcService_HeaderValue_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 13; friend void swap(GrpcService_HeaderValue& a, GrpcService_HeaderValue& b) { a.Swap(&b); @@ -2391,7 +2150,7 @@ class GrpcService : &_GrpcService_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 14; friend void swap(GrpcService& a, GrpcService& b) { a.Swap(&b); @@ -3631,469 +3390,6 @@ inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::Con } // ------------------------------------------------------------------- -// GrpcService_GoogleGrpc_CallCredentials_StsService - -// string token_exchange_service_uri = 1; -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_token_exchange_service_uri() { - token_exchange_service_uri_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::token_exchange_service_uri() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) - return token_exchange_service_uri_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_token_exchange_service_uri(const std::string& value) { - - token_exchange_service_uri_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_token_exchange_service_uri(std::string&& value) { - - token_exchange_service_uri_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_token_exchange_service_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_exchange_service_uri_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_token_exchange_service_uri(const char* value, size_t size) { - - token_exchange_service_uri_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_token_exchange_service_uri() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) - return token_exchange_service_uri_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_token_exchange_service_uri() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) - - return token_exchange_service_uri_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_token_exchange_service_uri(std::string* token_exchange_service_uri) { - if (token_exchange_service_uri != nullptr) { - - } else { - - } - token_exchange_service_uri_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), token_exchange_service_uri); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) -} - -// string resource = 2; -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_resource() { - resource_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::resource() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) - return resource_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_resource(const std::string& value) { - - resource_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_resource(std::string&& value) { - - resource_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_resource(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - resource_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_resource(const char* value, size_t size) { - - resource_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_resource() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) - return resource_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_resource() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) - - return resource_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_resource(std::string* resource) { - if (resource != nullptr) { - - } else { - - } - resource_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), resource); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) -} - -// string audience = 3; -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_audience() { - audience_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::audience() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) - return audience_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_audience(const std::string& value) { - - audience_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_audience(std::string&& value) { - - audience_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_audience(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - audience_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_audience(const char* value, size_t size) { - - audience_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_audience() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) - return audience_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_audience() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) - - return audience_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_audience(std::string* audience) { - if (audience != nullptr) { - - } else { - - } - audience_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), audience); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) -} - -// string scope = 4; -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_scope() { - scope_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::scope() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) - return scope_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_scope(const std::string& value) { - - scope_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_scope(std::string&& value) { - - scope_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_scope(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - scope_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_scope(const char* value, size_t size) { - - scope_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_scope() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) - return scope_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_scope() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) - - return scope_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_scope(std::string* scope) { - if (scope != nullptr) { - - } else { - - } - scope_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), scope); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) -} - -// string requested_token_type = 5; -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_requested_token_type() { - requested_token_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::requested_token_type() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) - return requested_token_type_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_requested_token_type(const std::string& value) { - - requested_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_requested_token_type(std::string&& value) { - - requested_token_type_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_requested_token_type(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - requested_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_requested_token_type(const char* value, size_t size) { - - requested_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_requested_token_type() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) - return requested_token_type_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_requested_token_type() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) - - return requested_token_type_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_requested_token_type(std::string* requested_token_type) { - if (requested_token_type != nullptr) { - - } else { - - } - requested_token_type_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), requested_token_type); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) -} - -// string subject_token_path = 6; -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_subject_token_path() { - subject_token_path_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::subject_token_path() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) - return subject_token_path_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_path(const std::string& value) { - - subject_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_path(std::string&& value) { - - subject_token_path_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_path(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - subject_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_path(const char* value, size_t size) { - - subject_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_subject_token_path() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) - return subject_token_path_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_subject_token_path() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) - - return subject_token_path_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_subject_token_path(std::string* subject_token_path) { - if (subject_token_path != nullptr) { - - } else { - - } - subject_token_path_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), subject_token_path); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) -} - -// string subject_token_type = 7; -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_subject_token_type() { - subject_token_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::subject_token_type() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) - return subject_token_type_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_type(const std::string& value) { - - subject_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_type(std::string&& value) { - - subject_token_type_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_type(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - subject_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_type(const char* value, size_t size) { - - subject_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_subject_token_type() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) - return subject_token_type_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_subject_token_type() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) - - return subject_token_type_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_subject_token_type(std::string* subject_token_type) { - if (subject_token_type != nullptr) { - - } else { - - } - subject_token_type_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), subject_token_type); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) -} - -// string actor_token_path = 8; -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_actor_token_path() { - actor_token_path_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::actor_token_path() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) - return actor_token_path_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_path(const std::string& value) { - - actor_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_path(std::string&& value) { - - actor_token_path_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_path(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - actor_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_path(const char* value, size_t size) { - - actor_token_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_actor_token_path() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) - return actor_token_path_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_actor_token_path() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) - - return actor_token_path_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_actor_token_path(std::string* actor_token_path) { - if (actor_token_path != nullptr) { - - } else { - - } - actor_token_path_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), actor_token_path); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) -} - -// string actor_token_type = 9; -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_actor_token_type() { - actor_token_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::actor_token_type() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) - return actor_token_type_.GetNoArena(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_type(const std::string& value) { - - actor_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_type(std::string&& value) { - - actor_token_type_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_type(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - actor_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_type(const char* value, size_t size) { - - actor_token_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_actor_token_type() { - - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) - return actor_token_type_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_actor_token_type() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) - - return actor_token_type_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_actor_token_type(std::string* actor_token_type) { - if (actor_token_type != nullptr) { - - } else { - - } - actor_token_type_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), actor_token_type); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) -} - -// ------------------------------------------------------------------- - // GrpcService_GoogleGrpc_CallCredentials // string access_token = 1; @@ -4440,47 +3736,6 @@ inline ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* G return credential_specifier_.from_plugin_; } -// .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; -inline bool GrpcService_GoogleGrpc_CallCredentials::has_sts_service() const { - return credential_specifier_case() == kStsService; -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_has_sts_service() { - _oneof_case_[0] = kStsService; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_sts_service() { - if (has_sts_service()) { - delete credential_specifier_.sts_service_; - clear_has_credential_specifier(); - } -} -inline ::GrpcService_GoogleGrpc_CallCredentials_StsService* GrpcService_GoogleGrpc_CallCredentials::release_sts_service() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.sts_service) - if (has_sts_service()) { - clear_has_credential_specifier(); - ::GrpcService_GoogleGrpc_CallCredentials_StsService* temp = credential_specifier_.sts_service_; - credential_specifier_.sts_service_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_CallCredentials_StsService& GrpcService_GoogleGrpc_CallCredentials::sts_service() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.sts_service) - return has_sts_service() - ? *credential_specifier_.sts_service_ - : *reinterpret_cast< ::GrpcService_GoogleGrpc_CallCredentials_StsService*>(&::_GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_); -} -inline ::GrpcService_GoogleGrpc_CallCredentials_StsService* GrpcService_GoogleGrpc_CallCredentials::mutable_sts_service() { - if (!has_sts_service()) { - clear_credential_specifier(); - set_has_sts_service(); - credential_specifier_.sts_service_ = CreateMaybeMessage< ::GrpcService_GoogleGrpc_CallCredentials_StsService >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.sts_service) - return credential_specifier_.sts_service_; -} - inline bool GrpcService_GoogleGrpc_CallCredentials::has_credential_specifier() const { return credential_specifier_case() != CREDENTIAL_SPECIFIER_NOT_SET; } @@ -5036,8 +4291,6 @@ inline GrpcService::TargetSpecifierCase GrpcService::target_specifier_case() con // ------------------------------------------------------------------- -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) diff --git a/api/wasm/cpp/proxy_wasm_intrinsics_lite.proto b/api/wasm/cpp/proxy_wasm_intrinsics_lite.proto index 82303187d3d6c..8160c9bb00557 100644 --- a/api/wasm/cpp/proxy_wasm_intrinsics_lite.proto +++ b/api/wasm/cpp/proxy_wasm_intrinsics_lite.proto @@ -59,17 +59,6 @@ message GrpcService { Any typed_config = 3; } } - message StsService { - string token_exchange_service_uri = 1; - string resource = 2; - string audience = 3; - string scope = 4; - string requested_token_type = 5; - string subject_token_path = 6; - string subject_token_type = 7; - string actor_token_path = 8; - string actor_token_type = 9; - } oneof credential_specifier { string access_token = 1; Empty google_compute_engine = 2; @@ -77,7 +66,6 @@ message GrpcService { ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; GoogleIAMCredentials google_iam = 5; MetadataCredentialsFromPlugin from_plugin = 6; - StsService sts_service = 7; } } repeated CallCredentials call_credentials = 3; diff --git a/bazel/dependency_imports.bzl b/bazel/dependency_imports.bzl index f45e22dda8e31..c2d1b0f907e37 100644 --- a/bazel/dependency_imports.bzl +++ b/bazel/dependency_imports.bzl @@ -2,8 +2,6 @@ load("@rules_foreign_cc//:workspace_definitions.bzl", "rules_foreign_cc_dependen load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") load("@envoy_build_tools//toolchains:rbe_toolchains_config.bzl", "rbe_toolchains_config") load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository") -load("@build_bazel_rules_apple//apple:repositories.bzl", "apple_rules_dependencies") -load("@upb//bazel:repository_defs.bzl", upb_bazel_version_repository = "bazel_version_repository") # go version for rules_go GO_VERSION = "1.13.3" @@ -14,8 +12,6 @@ def envoy_dependency_imports(go_version = GO_VERSION): go_register_toolchains(go_version) rbe_toolchains_config() gazelle_dependencies() - apple_rules_dependencies() - upb_bazel_version_repository(name = "upb_bazel_version") go_repository( name = "org_golang_google_grpc", diff --git a/bazel/envoy_test.bzl b/bazel/envoy_test.bzl index 9e10b95e8b8cb..8ae7e910e2a58 100644 --- a/bazel/envoy_test.bzl +++ b/bazel/envoy_test.bzl @@ -155,7 +155,8 @@ def envoy_cc_test( shard_count = None, coverage = True, local = False, - size = "medium"): + size = "medium", + flaky = False): if coverage: coverage_tags = tags + ["coverage_test_lib"] else: @@ -191,6 +192,7 @@ def envoy_cc_test( local = local, shard_count = shard_count, size = size, + flaky = flaky, ) # Envoy C++ test related libraries (that want gtest, gmock) should be specified diff --git a/bazel/grpc-protoinfo-1.patch b/bazel/grpc-protoinfo-1.patch new file mode 100644 index 0000000000000..f91e7a0357811 --- /dev/null +++ b/bazel/grpc-protoinfo-1.patch @@ -0,0 +1,56 @@ +commit 49f0fb9035120d0f5b5fa49846324c0b2d59c257 +Author: Marcel Hlopko +Date: Thu Jun 20 18:55:56 2019 +0200 + + Migrate from dep.proto to dep[ProtoInfo] + +diff --git a/WORKSPACE b/WORKSPACE +index 2db3c5db2f..60582d1a0f 100644 +--- a/WORKSPACE ++++ b/WORKSPACE +@@ -20,7 +20,7 @@ register_toolchains( + + git_repository( + name = "io_bazel_rules_python", +- commit = "8b5d0683a7d878b28fffe464779c8a53659fc645", ++ commit = "fdbb17a4118a1728d19e638a5291b4c4266ea5b8", + remote = "https://github.com/bazelbuild/rules_python.git", + ) + +diff --git a/bazel/generate_cc.bzl b/bazel/generate_cc.bzl +index b7edcda702..581165a190 100644 +--- a/bazel/generate_cc.bzl ++++ b/bazel/generate_cc.bzl +@@ -41,11 +41,11 @@ def _join_directories(directories): + + def generate_cc_impl(ctx): + """Implementation of the generate_cc rule.""" +- protos = [f for src in ctx.attr.srcs for f in src.proto.check_deps_sources.to_list()] ++ protos = [f for src in ctx.attr.srcs for f in src[ProtoInfo].check_deps_sources.to_list()] + includes = [ + f + for src in ctx.attr.srcs +- for f in src.proto.transitive_imports.to_list() ++ for f in src[ProtoInfo].transitive_imports.to_list() + ] + outs = [] + proto_root = get_proto_root( +diff --git a/bazel/python_rules.bzl b/bazel/python_rules.bzl +index 17004f3474..3df30f8262 100644 +--- a/bazel/python_rules.bzl ++++ b/bazel/python_rules.bzl +@@ -28,12 +28,12 @@ def _get_staged_proto_file(context, source_file): + def _generate_py_impl(context): + protos = [] + for src in context.attr.deps: +- for file in src.proto.direct_sources: ++ for file in src[ProtoInfo].direct_sources: + protos.append(_get_staged_proto_file(context, file)) + includes = [ + file + for src in context.attr.deps +- for file in src.proto.transitive_imports.to_list() ++ for file in src[ProtoInfo].transitive_imports.to_list() + ] + proto_root = get_proto_root(context.label.workspace_root) + format_str = (_GENERATED_GRPC_PROTO_FORMAT if context.executable.plugin else _GENERATED_PROTO_FORMAT) diff --git a/bazel/grpc-protoinfo-2.patch b/bazel/grpc-protoinfo-2.patch new file mode 100644 index 0000000000000..f1d62d8aaaa75 --- /dev/null +++ b/bazel/grpc-protoinfo-2.patch @@ -0,0 +1,32 @@ +commit ecf04ccf4d8be9378166ec9e0ccf44081e211d11 +Author: Marcel Hlopko +Date: Thu Jun 20 18:57:33 2019 +0200 + + Require ProtoInfo in attributes, not "proto" + +diff --git a/bazel/generate_cc.bzl b/bazel/generate_cc.bzl +index 581165a190..87e8b9d329 100644 +--- a/bazel/generate_cc.bzl ++++ b/bazel/generate_cc.bzl +@@ -146,7 +146,7 @@ _generate_cc = rule( + "srcs": attr.label_list( + mandatory = True, + allow_empty = False, +- providers = ["proto"], ++ providers = [ProtoInfo], + ), + "plugin": attr.label( + executable = True, +diff --git a/bazel/python_rules.bzl b/bazel/python_rules.bzl +index 3df30f8262..d4ff77094c 100644 +--- a/bazel/python_rules.bzl ++++ b/bazel/python_rules.bzl +@@ -99,7 +99,7 @@ __generate_py = rule( + "deps": attr.label_list( + mandatory = True, + allow_empty = False, +- providers = ["proto"], ++ providers = [ProtoInfo], + ), + "plugin": attr.label( + executable = True, diff --git a/bazel/grpc-protoinfo-3.patch b/bazel/grpc-protoinfo-3.patch new file mode 100644 index 0000000000000..97eab476f17b7 --- /dev/null +++ b/bazel/grpc-protoinfo-3.patch @@ -0,0 +1,31 @@ +commit e2ba3aa07009292617c3cabe734e8e44099b22ac +Author: Lukacs T. Berki +Date: Tue Aug 6 14:00:11 2019 +0200 + + Update C++ code generation to work with Bazel 0.29 . + + The above Bazel version changes proto compilation slightly: some proto + files are put into a `_virtual_imports` directory and thus + `_get_include_directory` needs to be updated accordingly. + + Ideally, it would use instead the `ProtoInfo` provider to tease out the + proto import directories, but that's a bit more intrusive change. + +diff --git a/bazel/protobuf.bzl b/bazel/protobuf.bzl +index f2df7bd87b..3066e1d550 100644 +--- a/bazel/protobuf.bzl ++++ b/bazel/protobuf.bzl +@@ -59,6 +59,13 @@ def proto_path_to_generated_filename(proto_path, fmt_str): + def _get_include_directory(include): + directory = include.path + prefix_len = 0 ++ ++ virtual_imports = "/_virtual_imports/" ++ if not include.is_source and virtual_imports in include.path: ++ root, relative = include.path.split(virtual_imports, 2) ++ result = root + virtual_imports + relative.split("/", 1)[0] ++ return result ++ + if not include.is_source and directory.startswith(include.root.path): + prefix_len = len(include.root.path) + 1 + diff --git a/bazel/grpc-rename-gettid.patch b/bazel/grpc-rename-gettid.patch new file mode 100644 index 0000000000000..90bd9115893f4 --- /dev/null +++ b/bazel/grpc-rename-gettid.patch @@ -0,0 +1,78 @@ +From d1d017390b799c59d6fdf7b8afa6136d218bdd61 Mon Sep 17 00:00:00 2001 +From: Benjamin Peterson +Date: Fri, 3 May 2019 08:11:00 -0700 +Subject: [PATCH] Rename gettid() functions. + +glibc 2.30 will declare its own gettid; see https://sourceware.org/git/?p=glibc.git;a=commit;h=1d0fc213824eaa2a8f8c4385daaa698ee8fb7c92. Rename the grpc versions to avoid naming conflicts. +--- + src/core/lib/gpr/log_linux.cc | 4 ++-- + src/core/lib/gpr/log_posix.cc | 4 ++-- + src/core/lib/iomgr/ev_epollex_linux.cc | 4 ++-- + 3 files changed, 6 insertions(+), 6 deletions(-) + +diff --git a/src/core/lib/gpr/log_linux.cc b/src/core/lib/gpr/log_linux.cc +index 561276f0c20..8b597b4cf2f 100644 +--- a/src/core/lib/gpr/log_linux.cc ++++ b/src/core/lib/gpr/log_linux.cc +@@ -40,7 +40,7 @@ + #include + #include + +-static long gettid(void) { return syscall(__NR_gettid); } ++static long sys_gettid(void) { return syscall(__NR_gettid); } + + void gpr_log(const char* file, int line, gpr_log_severity severity, + const char* format, ...) { +@@ -70,7 +70,7 @@ void gpr_default_log(gpr_log_func_args* args) { + gpr_timespec now = gpr_now(GPR_CLOCK_REALTIME); + struct tm tm; + static __thread long tid = 0; +- if (tid == 0) tid = gettid(); ++ if (tid == 0) tid = sys_gettid(); + + timer = static_cast(now.tv_sec); + final_slash = strrchr(args->file, '/'); +diff --git a/src/core/lib/gpr/log_posix.cc b/src/core/lib/gpr/log_posix.cc +index b6edc14ab6b..2f7c6ce3760 100644 +--- a/src/core/lib/gpr/log_posix.cc ++++ b/src/core/lib/gpr/log_posix.cc +@@ -31,7 +31,7 @@ + #include + #include + +-static intptr_t gettid(void) { return (intptr_t)pthread_self(); } ++static intptr_t sys_gettid(void) { return (intptr_t)pthread_self(); } + + void gpr_log(const char* file, int line, gpr_log_severity severity, + const char* format, ...) { +@@ -86,7 +86,7 @@ void gpr_default_log(gpr_log_func_args* args) { + char* prefix; + gpr_asprintf(&prefix, "%s%s.%09d %7" PRIdPTR " %s:%d]", + gpr_log_severity_string(args->severity), time_buffer, +- (int)(now.tv_nsec), gettid(), display_file, args->line); ++ (int)(now.tv_nsec), sys_gettid(), display_file, args->line); + + fprintf(stderr, "%-70s %s\n", prefix, args->message); + gpr_free(prefix); +diff --git a/src/core/lib/iomgr/ev_epollex_linux.cc b/src/core/lib/iomgr/ev_epollex_linux.cc +index 08116b3ab53..76f59844312 100644 +--- a/src/core/lib/iomgr/ev_epollex_linux.cc ++++ b/src/core/lib/iomgr/ev_epollex_linux.cc +@@ -1102,7 +1102,7 @@ static void end_worker(grpc_pollset* pollset, grpc_pollset_worker* worker, + } + + #ifndef NDEBUG +-static long gettid(void) { return syscall(__NR_gettid); } ++static long sys_gettid(void) { return syscall(__NR_gettid); } + #endif + + /* pollset->mu lock must be held by the caller before calling this. +@@ -1122,7 +1122,7 @@ static grpc_error* pollset_work(grpc_pollset* pollset, + #define WORKER_PTR (&worker) + #endif + #ifndef NDEBUG +- WORKER_PTR->originator = gettid(); ++ WORKER_PTR->originator = sys_gettid(); + #endif + if (GRPC_TRACE_FLAG_ENABLED(grpc_polling_trace)) { + gpr_log(GPR_INFO, diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 909009370c133..f6b3466a52b9c 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -140,6 +140,7 @@ def envoy_dependencies(skip_targets = []): _com_github_jbeder_yaml_cpp() _com_github_libevent_libevent() _com_github_luajit_luajit() + _com_github_nanopb_nanopb() _com_github_nghttp2_nghttp2() _com_github_nodejs_http_parser() _com_github_tencent_rapidjson() @@ -156,7 +157,6 @@ def envoy_dependencies(skip_targets = []): _com_lightstep_tracer_cpp() _io_opentracing_cpp() _net_zlib() - _upb() _repository_impl("com_googlesource_code_re2") _com_google_cel_cpp() _repository_impl("bazel_toolchains") @@ -650,8 +650,19 @@ def _org_llvm_releases_compiler_rt(): ) def _com_github_grpc_grpc(): - _repository_impl("com_github_grpc_grpc") - _repository_impl("build_bazel_rules_apple") + _repository_impl( + "com_github_grpc_grpc", + patches = [ + # Workaround for https://github.com/envoyproxy/envoy/issues/7863 + "@envoy//bazel:grpc-protoinfo-1.patch", + "@envoy//bazel:grpc-protoinfo-2.patch", + # Pre-integration of https://github.com/grpc/grpc/pull/19860 + "@envoy//bazel:grpc-protoinfo-3.patch", + # Pre-integration of https://github.com/grpc/grpc/pull/18950 + "@envoy//bazel:grpc-rename-gettid.patch", + ], + patch_args = ["-p1"], + ) # Rebind some stuff to match what the gRPC Bazel is expecting. native.bind( @@ -682,16 +693,15 @@ def _com_github_grpc_grpc(): actual = "@com_github_grpc_grpc//test/core/tsi/alts/fake_handshaker:fake_handshaker_lib", ) -def _upb(): +def _com_github_nanopb_nanopb(): _repository_impl( - name = "upb", - patches = ["@envoy//bazel:upb.patch"], - patch_args = ["-p1"], + name = "com_github_nanopb_nanopb", + build_file = "@com_github_grpc_grpc//third_party:nanopb.BUILD", ) native.bind( - name = "upb_lib", - actual = "@upb//:upb", + name = "nanopb", + actual = "@com_github_nanopb_nanopb//:nanopb", ) def _com_github_google_jwt_verify(): diff --git a/bazel/repository_locations.bzl b/bazel/repository_locations.bzl index 0b859bda6afdb..802e93916135f 100644 --- a/bazel/repository_locations.bzl +++ b/bazel/repository_locations.bzl @@ -16,11 +16,6 @@ REPOSITORY_LOCATIONS = dict( "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/1.1.0.tar.gz", ], ), - build_bazel_rules_apple = dict( - urls = ["https://github.com/bazelbuild/rules_apple/archive/b869b0d3868d78a1d4ffd866ccb304fb68aa12c3.tar.gz"], - strip_prefix = "rules_apple-b869b0d3868d78a1d4ffd866ccb304fb68aa12c3", - sha256 = "bdc8e66e70b8a75da23b79f1f8c6207356df07d041d96d2189add7ee0780cf4e", - ), envoy_build_tools = dict( sha256 = "d0f88bef8bd7f76c3684407977f5673f3d06a6c50d4ddaffb8f0e7df6b0ef69e", strip_prefix = "envoy-build-tools-a6b28555badcb18d6be924c8fc1bea49971656b8", @@ -108,15 +103,20 @@ REPOSITORY_LOCATIONS = dict( urls = ["https://github.com/gperftools/gperftools/archive/fc00474ddc21fff618fc3f009b46590e241e425e.tar.gz"], ), com_github_grpc_grpc = dict( - sha256 = "bbc8f020f4e85ec029b047fab939b8c81f3d67254b5c724e1003a2bc49ddd123", - strip_prefix = "grpc-d8f4928fa779f6005a7fe55a176bdb373b0f910f", - urls = ["https://github.com/grpc/grpc/archive/d8f4928fa779f6005a7fe55a176bdb373b0f910f.tar.gz"], + sha256 = "cce1d4585dd017980d4a407d8c5e9f8fc8c1dbb03f249b99e88a387ebb45a035", + strip_prefix = "grpc-1.22.1", + urls = ["https://github.com/grpc/grpc/archive/v1.22.1.tar.gz"], ), com_github_luajit_luajit = dict( sha256 = "409f7fe570d3c16558e594421c47bdd130238323c9d6fd6c83dedd2aaeb082a8", strip_prefix = "LuaJIT-2.1.0-beta3", urls = ["https://github.com/LuaJIT/LuaJIT/archive/v2.1.0-beta3.tar.gz"], ), + com_github_nanopb_nanopb = dict( + sha256 = "cbc8fba028635d959033c9ba8d8186a713165e94a9de02a030a20b3e64866a04", + strip_prefix = "nanopb-0.3.9.4", + urls = ["https://github.com/nanopb/nanopb/archive/0.3.9.4.tar.gz"], + ), com_github_nghttp2_nghttp2 = dict( sha256 = "25b623cd04dc6a863ca3b34ed6247844effe1aa5458229590b3f56a6d53cd692", strip_prefix = "nghttp2-1.39.1", @@ -308,9 +308,4 @@ REPOSITORY_LOCATIONS = dict( strip_prefix = "compiler-rt-9.0.0.src/lib/fuzzer", urls = ["http://releases.llvm.org/9.0.0/compiler-rt-9.0.0.src.tar.xz"], ), - upb = dict( - sha256 = "61d0417abd60e65ed589c9deee7c124fe76a4106831f6ad39464e1525cef1454", - strip_prefix = "upb-9effcbcb27f0a665f9f345030188c0b291e32482", - urls = ["https://github.com/protocolbuffers/upb/archive/9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz"], - ), ) diff --git a/bazel/upb.patch b/bazel/upb.patch deleted file mode 100644 index fb46445b658ef..0000000000000 --- a/bazel/upb.patch +++ /dev/null @@ -1,27 +0,0 @@ -# https://github.com/protocolbuffers/upb/pull/226 -diff --git a/bazel/upb_proto_library.bzl b/bazel/upb_proto_library.bzl -index f148745be..21ed34b48 100644 ---- a/bazel/upb_proto_library.bzl -+++ b/bazel/upb_proto_library.bzl -@@ -8,7 +8,7 @@ load("@bazel_tools//tools/cpp:toolchain_utils.bzl", "find_cpp_toolchain") - - # copybara:strip_for_google3_begin - load("@bazel_skylib//lib:versions.bzl", "versions") --load("@bazel_version//:bazel_version.bzl", "bazel_version") -+load("@upb_bazel_version//:bazel_version.bzl", "bazel_version") - # copybara:strip_end - - # Generic support code ######################################################### -diff --git a/bazel/workspace_deps.bzl b/bazel/workspace_deps.bzl -index 39bf524a7..aabbc3411 100644 ---- a/bazel/workspace_deps.bzl -+++ b/bazel/workspace_deps.bzl -@@ -5,7 +5,7 @@ load("//bazel:repository_defs.bzl", "bazel_version_repository") - - def upb_deps(): - bazel_version_repository( -- name = "bazel_version", -+ name = "upb_bazel_version", - ) - - git_repository( \ No newline at end of file diff --git a/source/common/grpc/google_grpc_creds_impl.cc b/source/common/grpc/google_grpc_creds_impl.cc index d513d63a0d572..d73ad3cb59997 100644 --- a/source/common/grpc/google_grpc_creds_impl.cc +++ b/source/common/grpc/google_grpc_creds_impl.cc @@ -73,21 +73,6 @@ CredsUtility::callCredentials(const envoy::api::v2::core::GrpcService::GoogleGrp credential.google_iam().authority_selector()); break; } - case envoy::api::v2::core::GrpcService::GoogleGrpc::CallCredentials::kStsService: { - grpc::experimental::StsCredentialsOptions options = { - credential.sts_service().token_exchange_service_uri(), - credential.sts_service().resource(), - credential.sts_service().audience(), - credential.sts_service().scope(), - credential.sts_service().requested_token_type(), - credential.sts_service().subject_token_path(), - credential.sts_service().subject_token_type(), - credential.sts_service().actor_token_path(), - credential.sts_service().actor_token_type(), - }; - new_call_creds = grpc::experimental::StsCredentials(options); - break; - } default: // We don't handle plugin credentials here, callers can do so instead if they want. continue; diff --git a/source/common/http/async_client_impl.h b/source/common/http/async_client_impl.h index 57f98a9d9e8fb..5f45456045692 100644 --- a/source/common/http/async_client_impl.h +++ b/source/common/http/async_client_impl.h @@ -144,9 +144,9 @@ class AsyncStreamImpl : public AsyncClient::Stream, } absl::optional maxInterval() const override { return absl::nullopt; } - const std::vector retriable_status_codes_{}; - const std::vector retriable_headers_{}; - const std::vector retriable_request_headers_{}; + const std::vector retriable_status_codes_; + const std::vector retriable_headers_; + const std::vector retriable_request_headers_; }; struct NullShadowPolicy : public Router::ShadowPolicy { diff --git a/source/extensions/tracers/opencensus/config.cc b/source/extensions/tracers/opencensus/config.cc index caafc23a28eec..ec0e766e532d7 100644 --- a/source/extensions/tracers/opencensus/config.cc +++ b/source/extensions/tracers/opencensus/config.cc @@ -16,8 +16,7 @@ OpenCensusTracerFactory::OpenCensusTracerFactory() : FactoryBase(TracerNames::ge Tracing::HttpTracerPtr OpenCensusTracerFactory::createHttpTracerTyped( const envoy::config::trace::v2::OpenCensusConfig& proto_config, Server::Instance& server) { - Tracing::DriverPtr driver = - std::make_unique(proto_config, server.localInfo(), server.api()); + Tracing::DriverPtr driver = std::make_unique(proto_config, server.localInfo()); return std::make_unique(std::move(driver), server.localInfo()); } diff --git a/source/extensions/tracers/opencensus/opencensus_tracer_impl.cc b/source/extensions/tracers/opencensus/opencensus_tracer_impl.cc index d11144334cc79..ffe49be821596 100644 --- a/source/extensions/tracers/opencensus/opencensus_tracer_impl.cc +++ b/source/extensions/tracers/opencensus/opencensus_tracer_impl.cc @@ -232,43 +232,10 @@ Tracing::SpanPtr Span::spawnChild(const Tracing::Config& /*config*/, const std:: void Span::setSampled(bool sampled) { span_.AddAnnotation("setSampled", {{"sampled", sampled}}); } -class GoogleUserProjHeaderInterceptor : public grpc::experimental::Interceptor { -public: - GoogleUserProjHeaderInterceptor(const std::string& project_id) : project_id_(project_id) {} - - virtual void Intercept(grpc::experimental::InterceptorBatchMethods* methods) { - if (methods->QueryInterceptionHookPoint( - grpc::experimental::InterceptionHookPoints::PRE_SEND_INITIAL_METADATA)) { - auto* metadata_map = methods->GetSendInitialMetadata(); - if (metadata_map != nullptr) { - metadata_map->insert(std::make_pair("x-goog-user-project", project_id_)); - } - } - methods->Proceed(); - } - -private: - const std::string& project_id_; -}; - -class GoogleUserProjHeaderInterceptorFactory - : public grpc::experimental::ClientInterceptorFactoryInterface { -public: - GoogleUserProjHeaderInterceptorFactory(const std::string& project_id) : project_id_(project_id) {} - - virtual grpc::experimental::Interceptor* - CreateClientInterceptor(grpc::experimental::ClientRpcInfo*) override { - return new GoogleUserProjHeaderInterceptor(project_id_); - } - -private: - std::string project_id_; -}; - } // namespace Driver::Driver(const envoy::config::trace::v2::OpenCensusConfig& oc_config, - const LocalInfo::LocalInfo& localinfo, Api::Api& api) + const LocalInfo::LocalInfo& localinfo) : oc_config_(oc_config), local_info_(localinfo) { if (oc_config.has_trace_config()) { applyTraceConfig(oc_config.trace_config()); @@ -276,53 +243,13 @@ Driver::Driver(const envoy::config::trace::v2::OpenCensusConfig& oc_config, if (oc_config.stdout_exporter_enabled()) { ::opencensus::exporters::trace::StdoutExporter::Register(); } - auto node_metadata = localinfo.node().metadata(); - std::string sts_port; - auto port_iter = node_metadata.fields().find("STS_PORT"); - if (port_iter != node_metadata.fields().end()) { - sts_port = port_iter->second.string_value(); - } if (oc_config.stackdriver_exporter_enabled()) { - // Try get GCP project ID from node metadata. - std::string project_id; - auto platform_md_iter = node_metadata.fields().find("PLATFORM_METADATA"); - if (platform_md_iter != node_metadata.fields().end()) { - auto platform_md = platform_md_iter->second.struct_value(); - auto proj_id_iter = platform_md.fields().find("gcp_project"); - if (proj_id_iter != platform_md.fields().end()) { - project_id = proj_id_iter->second.string_value(); - } - } ::opencensus::exporters::trace::StackdriverOptions opts; - if (!oc_config.stackdriver_project_id().empty()) { - opts.project_id = oc_config.stackdriver_project_id(); - } else if (!project_id.empty()) { - opts.project_id = project_id; - } + opts.project_id = oc_config.stackdriver_project_id(); if (!oc_config.stackdriver_address().empty()) { auto channel = grpc::CreateChannel(oc_config.stackdriver_address(), grpc::InsecureChannelCredentials()); opts.trace_service_stub = ::google::devtools::cloudtrace::v2::TraceService::NewStub(channel); - } else if (!sts_port.empty()) { - ::grpc::experimental::StsCredentialsOptions sts_options; - sts_options.token_exchange_service_uri = "http://localhost:" + sts_port + "/token"; - sts_options.subject_token_path = "/var/run/secrets/tokens/istio-token"; - sts_options.subject_token_type = "urn:ietf:params:oauth:token-type:jwt"; - sts_options.scope = "https://www.googleapis.com/auth/cloud-platform"; - auto call_creds = grpc::experimental::StsCredentials(sts_options); - auto ssl_creds_options = grpc::SslCredentialsOptions(); - ssl_creds_options.pem_root_certs = - api.fileSystem().fileReadToEnd("/etc/ssl/certs/ca-certificates.crt"); - auto channel_creds = grpc::SslCredentials(ssl_creds_options); - // Create an custom channel which includes an interceptor that inject user project header. - grpc::ChannelArguments args; - std::vector> creators; - creators.push_back(std::unique_ptr( - new GoogleUserProjHeaderInterceptorFactory(project_id))); - auto channel = ::grpc::experimental::CreateCustomChannelWithInterceptors( - "cloudtrace.googleapis.com", grpc::CompositeChannelCredentials(channel_creds, call_creds), - args, std::move(creators)); - opts.trace_service_stub = ::google::devtools::cloudtrace::v2::TraceService::NewStub(channel); } ::opencensus::exporters::trace::StackdriverExporter::Register(std::move(opts)); } diff --git a/source/extensions/tracers/opencensus/opencensus_tracer_impl.h b/source/extensions/tracers/opencensus/opencensus_tracer_impl.h index d2aeadbf6b50c..1b334e9281727 100644 --- a/source/extensions/tracers/opencensus/opencensus_tracer_impl.h +++ b/source/extensions/tracers/opencensus/opencensus_tracer_impl.h @@ -1,6 +1,5 @@ #pragma once -#include "envoy/api/api.h" #include "envoy/config/trace/v2/trace.pb.validate.h" #include "envoy/local_info/local_info.h" #include "envoy/tracing/http_tracer.h" @@ -18,7 +17,7 @@ namespace OpenCensus { class Driver : public Tracing::Driver, Logger::Loggable { public: Driver(const envoy::config::trace::v2::OpenCensusConfig& oc_config, - const LocalInfo::LocalInfo& localinfo, Api::Api& api); + const LocalInfo::LocalInfo& localinfo); /** * Implements the abstract Driver's startSpan operation. diff --git a/test/common/grpc/google_grpc_creds_test.cc b/test/common/grpc/google_grpc_creds_test.cc index 19b6b735dc6dd..a08fcf1625673 100644 --- a/test/common/grpc/google_grpc_creds_test.cc +++ b/test/common/grpc/google_grpc_creds_test.cc @@ -122,15 +122,6 @@ TEST_F(CredsUtilityTest, DefaultChannelCredentials) { google_grpc->add_call_credentials()->mutable_from_plugin()->set_name("foo"); EXPECT_NE(nullptr, CredsUtility::defaultChannelCredentials(config, *api_)); } - { - envoy::api::v2::core::GrpcService config; - TestUtility::setTestSslGoogleGrpcConfig(config, true); - auto* sts_service = config.mutable_google_grpc()->add_call_credentials()->mutable_sts_service(); - sts_service->set_token_exchange_service_uri("http://tokenexchangeservice.com"); - sts_service->set_subject_token_path("/var/run/example_token"); - sts_service->set_subject_token_type("urn:ietf:params:oauth:token-type:access_token"); - EXPECT_NE(nullptr, CredsUtility::defaultChannelCredentials(config, *api_)); - } } } // namespace diff --git a/test/extensions/filters/common/expr/context_test.cc b/test/extensions/filters/common/expr/context_test.cc index d982a09186871..75971170c0de0 100644 --- a/test/extensions/filters/common/expr/context_test.cc +++ b/test/extensions/filters/common/expr/context_test.cc @@ -239,6 +239,7 @@ TEST(Context, ResponseAttributes) { EXPECT_EQ(148, value.value().Int64OrDie()); } + { auto value = empty_response[CelValue::CreateString(TotalSize)]; EXPECT_TRUE(value.has_value()); diff --git a/test/extensions/filters/http/wasm/BUILD b/test/extensions/filters/http/wasm/BUILD index 5645faedb179d..65e43b0ed7471 100644 --- a/test/extensions/filters/http/wasm/BUILD +++ b/test/extensions/filters/http/wasm/BUILD @@ -53,22 +53,3 @@ envoy_extension_cc_test( "//test/test_common:environment_lib", ], ) - -envoy_extension_cc_test( - name = "wasm_filter_stress_test", - size = "large", - srcs = envoy_select_wasm(["wasm_filter_stress_test.cc"]), - data = [ - "//test/extensions/filters/http/wasm/test_data:modules", - ], - extension_name = "envoy.filters.http.wasm", - external_deps = ["abseil_optional"], - deps = [ - "//source/extensions/common/wasm:wasm_lib", - "//source/extensions/filters/http/wasm:config", - "//source/extensions/wasm:config", - "//test/proto:helloworld_proto_cc_proto", - "//test/stress:stress_test_lib", - "//test/test_common:environment_lib", - ], -) diff --git a/test/extensions/tracers/opencensus/tracer_test.cc b/test/extensions/tracers/opencensus/tracer_test.cc index f3e580f76fa8b..aef4d925b129c 100644 --- a/test/extensions/tracers/opencensus/tracer_test.cc +++ b/test/extensions/tracers/opencensus/tracer_test.cc @@ -103,8 +103,7 @@ TEST(OpenCensusTracerTest, Span) { registerSpanCatcher(); OpenCensusConfig oc_config; NiceMock local_info; - Api::ApiPtr api = Api::createApiForTest(); - std::unique_ptr driver(new OpenCensus::Driver(oc_config, local_info, *api)); + std::unique_ptr driver(new OpenCensus::Driver(oc_config, local_info)); NiceMock config; Http::TestHeaderMapImpl request_headers{ @@ -183,7 +182,6 @@ void testIncomingHeaders( registerSpanCatcher(); OpenCensusConfig oc_config; NiceMock local_info; - Api::ApiPtr api = Api::createApiForTest(); oc_config.add_incoming_trace_context(OpenCensusConfig::NONE); oc_config.add_incoming_trace_context(OpenCensusConfig::B3); oc_config.add_incoming_trace_context(OpenCensusConfig::TRACE_CONTEXT); @@ -194,7 +192,7 @@ void testIncomingHeaders( oc_config.add_outgoing_trace_context(OpenCensusConfig::TRACE_CONTEXT); oc_config.add_outgoing_trace_context(OpenCensusConfig::GRPC_TRACE_BIN); oc_config.add_outgoing_trace_context(OpenCensusConfig::CLOUD_TRACE_CONTEXT); - std::unique_ptr driver(new OpenCensus::Driver(oc_config, local_info, *api)); + std::unique_ptr driver(new OpenCensus::Driver(oc_config, local_info)); NiceMock config; Http::TestHeaderMapImpl request_headers{ {":path", "/"}, @@ -281,8 +279,7 @@ namespace { int SamplerTestHelper(const OpenCensusConfig& oc_config) { registerSpanCatcher(); NiceMock local_info; - Api::ApiPtr api = Api::createApiForTest(); - std::unique_ptr driver(new OpenCensus::Driver(oc_config, local_info, *api)); + std::unique_ptr driver(new OpenCensus::Driver(oc_config, local_info)); auto span = ::opencensus::trace::Span::StartSpan("test_span"); span.End(); // Retrieve SpanData from the OpenCensus trace exporter. diff --git a/test/integration/BUILD b/test/integration/BUILD index 6f1ceb5c22581..a2788937b5c35 100644 --- a/test/integration/BUILD +++ b/test/integration/BUILD @@ -294,6 +294,7 @@ envoy_cc_test( srcs = [ "protocol_integration_test.cc", ], + flaky = True, # As this test has many H1/H2/v4/v6 tests it takes a while to run. # Shard it enough to bring the run time in line with other integration tests. shard_count = 3, diff --git a/test/stress/BUILD b/test/stress/BUILD deleted file mode 100644 index 7b1098f1cc0c9..0000000000000 --- a/test/stress/BUILD +++ /dev/null @@ -1,40 +0,0 @@ -licenses(["notice"]) # Apache 2 - -load( - "//bazel:envoy_build_system.bzl", - "envoy_cc_test", - "envoy_cc_test_library", - "envoy_package", -) - -envoy_package() - -envoy_cc_test_library( - name = "stress_test_lib", - srcs = [ - "stress_test.cc", - "stress_test_common.cc", - "stress_test_downstream.cc", - "stress_test_upstream.cc", - ], - hdrs = [ - "stress_test.h", - "stress_test_common.h", - "stress_test_downstream.h", - "stress_test_upstream.h", - ], - deps = [ - "//source/server:server_lib", - "//test/integration:http_protocol_integration_lib", - ], -) - -envoy_cc_test( - name = "stress_test_self_test", - srcs = [ - "stress_test_self_test.cc", - ], - deps = [ - ":stress_test_lib", - ], -) diff --git a/test/stress/stress_test_common.cc b/test/stress/stress_test_common.cc deleted file mode 100644 index 553e24923370d..0000000000000 --- a/test/stress/stress_test_common.cc +++ /dev/null @@ -1,35 +0,0 @@ -#include "stress_test_common.h" - -#include "common/network/address_impl.h" - -namespace Envoy { -namespace Stress { - -Http::CodecClient::Type httpType(const std::string& str) { - return 0 == str.compare("http1") ? Http::CodecClient::Type::HTTP1 - : Http::CodecClient::Type::HTTP2; -} - -Network::Address::IpVersion ipVersion(const std::string& str) { - return 0 == str.compare("IPv4") ? Network::Address::IpVersion::v4 - : Network::Address::IpVersion::v6; -} - -Network::Address::InstanceConstSharedPtr loopbackAddress(Network::Address::IpVersion ip_version, - uint32_t port) { - switch (ip_version) { - case Network::Address::IpVersion::v6: { - Network::Address::InstanceConstSharedPtr addr{new Network::Address::Ipv6Instance("::1", port)}; - return addr; - } - case Network::Address::IpVersion::v4: - default: { - Network::Address::InstanceConstSharedPtr addr{ - new Network::Address::Ipv4Instance("127.0.0.1", port)}; - return addr; - } - } -} - -} // namespace Stress -} // namespace Envoy diff --git a/test/stress/stress_test_common.h b/test/stress/stress_test_common.h deleted file mode 100644 index fec235bd42ba3..0000000000000 --- a/test/stress/stress_test_common.h +++ /dev/null @@ -1,18 +0,0 @@ -#pragma once - -#include "envoy/network/address.h" - -#include "common/http/codec_client.h" - -namespace Envoy { -namespace Stress { - -extern Network::Address::InstanceConstSharedPtr -loopbackAddress(Network::Address::IpVersion ip_version, uint32_t port); - -extern Http::CodecClient::Type httpType(const std::string& str); - -extern Network::Address::IpVersion ipVersion(const std::string& str); - -} // namespace Stress -} // namespace Envoy