From 7916640406a983f8c8fec38ab0f925ae9ee4e281 Mon Sep 17 00:00:00 2001 From: wangbaiping/wbpcode <wbphub@gmail.com> Date: Thu, 27 Feb 2025 14:47:13 +0800 Subject: [PATCH 1/3] remove unnecessary proto from the SDK Signed-off-by: wangbaiping/wbpcode <wbphub@gmail.com> --- BUILD | 42 +- Dockerfile-sdk | 2 +- Makefile | 14 +- example/http_proto_example.cc | 2 + proxy_wasm_intrinsics.h | 2 - proxy_wasm_intrinsics.pb.cc | 4899 ---------------------- proxy_wasm_intrinsics.pb.h | 6398 ----------------------------- proxy_wasm_intrinsics.proto | 109 - proxy_wasm_intrinsics_full.h | 25 - proxy_wasm_intrinsics_lite.h | 25 - proxy_wasm_intrinsics_lite.pb.cc | 5137 ----------------------- proxy_wasm_intrinsics_lite.pb.h | 6520 ------------------------------ proxy_wasm_intrinsics_lite.proto | 113 - struct_lite.pb.cc | 999 ----- struct_lite.pb.h | 1157 ------ struct_lite.proto | 74 - 16 files changed, 6 insertions(+), 25512 deletions(-) delete mode 100644 proxy_wasm_intrinsics.pb.cc delete mode 100644 proxy_wasm_intrinsics.pb.h delete mode 100644 proxy_wasm_intrinsics.proto delete mode 100644 proxy_wasm_intrinsics_full.h delete mode 100644 proxy_wasm_intrinsics_lite.h delete mode 100644 proxy_wasm_intrinsics_lite.pb.cc delete mode 100644 proxy_wasm_intrinsics_lite.pb.h delete mode 100644 proxy_wasm_intrinsics_lite.proto delete mode 100644 struct_lite.pb.cc delete mode 100644 struct_lite.pb.h delete mode 100644 struct_lite.proto diff --git a/BUILD b/BUILD index 5b2730e..e112463 100644 --- a/BUILD +++ b/BUILD @@ -1,5 +1,4 @@ -load("@rules_cc//cc:defs.bzl", "cc_library", "cc_proto_library") -load("@rules_proto//proto:defs.bzl", "proto_library") +load("@rules_cc//cc:defs.bzl", "cc_library") licenses(["notice"]) # Apache 2 @@ -45,32 +44,14 @@ cc_library( visibility = ["//visibility:public"], ) -cc_proto_library( - name = "proxy_wasm_intrinsics_cc_proto", - deps = [":proxy_wasm_intrinsics_proto"], -) - -proto_library( - name = "proxy_wasm_intrinsics_proto", - srcs = ["proxy_wasm_intrinsics.proto"], - deps = [ - "@com_google_protobuf//:any_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:struct_proto", - ], -) - # include lite protobuf support cc_library( name = "proxy_wasm_intrinsics_lite", - hdrs = ["proxy_wasm_intrinsics_lite.h"], copts = ["-std=c++17"], defines = ["PROXY_WASM_PROTOBUF_LITE"], visibility = ["//visibility:public"], deps = [ ":proxy_wasm_intrinsics", - ":proxy_wasm_intrinsics_lite_cc_proto", "@com_google_protobuf//:protobuf_lite", ], ) @@ -78,36 +59,15 @@ cc_library( # include full protobuf support cc_library( name = "proxy_wasm_intrinsics_full", - hdrs = ["proxy_wasm_intrinsics_full.h"], copts = ["-std=c++17"], defines = ["PROXY_WASM_PROTOBUF_FULL"], visibility = ["//visibility:public"], deps = [ ":proxy_wasm_intrinsics", - ":proxy_wasm_intrinsics_cc_proto", "@com_google_protobuf//:protobuf", ], ) -cc_proto_library( - name = "proxy_wasm_intrinsics_lite_cc_proto", - deps = [":proxy_wasm_intrinsics_lite_proto"], -) - -proto_library( - name = "proxy_wasm_intrinsics_lite_proto", - srcs = [ - "proxy_wasm_intrinsics_lite.proto", - "struct_lite.proto", - ], - deps = [ - "@com_google_protobuf//:any_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:struct_proto", - ], -) - filegroup( name = "proxy_wasm_intrinsics_js", srcs = [ diff --git a/Dockerfile-sdk b/Dockerfile-sdk index 6a062b1..81adf55 100644 --- a/Dockerfile-sdk +++ b/Dockerfile-sdk @@ -1,6 +1,6 @@ FROM ubuntu:noble COPY *.sh / -COPY *.cc *.h *.js *.proto Makefile* /sdk/ +COPY *.cc *.h *.js Makefile* /sdk/ RUN ./sdk_container.sh diff --git a/Makefile b/Makefile index 165cf42..75f1fb0 100644 --- a/Makefile +++ b/Makefile @@ -7,13 +7,10 @@ endif PROTOBUF ?= none ifeq ($(PROTOBUF), full) PROTO_DEPS := protobuf - PROTO_OPTS := -DPROXY_WASM_PROTOBUF_FULL=1 \ - ${PROXY_WASM_CPP_SDK}/proxy_wasm_intrinsics.pb.cc + PROTO_OPTS := -DPROXY_WASM_PROTOBUF_FULL=1 else ifeq ($(PROTOBUF), lite) PROTO_DEPS := protobuf-lite - PROTO_OPTS := -DPROXY_WASM_PROTOBUF_LITE=1 \ - ${PROXY_WASM_CPP_SDK}/proxy_wasm_intrinsics_lite.pb.cc \ - ${PROXY_WASM_CPP_SDK}/struct_lite.pb.cc + PROTO_OPTS := -DPROXY_WASM_PROTOBUF_LITE=1 else PROTO_DEPS := PROTO_OPTS := @@ -48,10 +45,3 @@ debug-deps: clean: rm *.wasm - -# NOTE: How to regenerate .pb.h and .pb.cc files for a protobuf update: -# - download + extract protobuf release (currently v26.1) -# - regenerate: -# ./bin/protoc --cpp_out=../ -I../ -Iinclude/google/protobuf/ ../struct_lite.proto -# ./bin/protoc --cpp_out=../ -I../ -Iinclude/google/protobuf/ ../proxy_wasm_intrinsics_lite.proto -# ./bin/protoc --cpp_out=../ -I../ -Iinclude/google/protobuf/ ../proxy_wasm_intrinsics.proto diff --git a/example/http_proto_example.cc b/example/http_proto_example.cc index d382d8e..bcb90e3 100644 --- a/example/http_proto_example.cc +++ b/example/http_proto_example.cc @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "google/protobuf/struct.pb.h" + #include "proxy_wasm_intrinsics.h" class MyRootContext : public RootContext { diff --git a/proxy_wasm_intrinsics.h b/proxy_wasm_intrinsics.h index 3c8fbc1..f1d4e7a 100644 --- a/proxy_wasm_intrinsics.h +++ b/proxy_wasm_intrinsics.h @@ -38,10 +38,8 @@ #include "proxy_wasm_externs.h" #ifdef PROXY_WASM_PROTOBUF_FULL #define PROXY_WASM_PROTOBUF 1 -#include "proxy_wasm_intrinsics.pb.h" #endif #ifdef PROXY_WASM_PROTOBUF_LITE #define PROXY_WASM_PROTOBUF 1 -#include "proxy_wasm_intrinsics_lite.pb.h" #endif #include "proxy_wasm_api.h" diff --git a/proxy_wasm_intrinsics.pb.cc b/proxy_wasm_intrinsics.pb.cc deleted file mode 100644 index 274a951..0000000 --- a/proxy_wasm_intrinsics.pb.cc +++ /dev/null @@ -1,4899 +0,0 @@ -// Copyright 2016-2019 Envoy Project Authors -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: proxy_wasm_intrinsics.proto -// Protobuf C++ Version: 5.26.1 - -#include "proxy_wasm_intrinsics.pb.h" - -#include <algorithm> -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" -PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; - -inline constexpr GrpcService_HeaderValue::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - value_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template <typename> -PROTOBUF_CONSTEXPR GrpcService_HeaderValue::GrpcService_HeaderValue(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GrpcService_HeaderValueDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrpcService_HeaderValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrpcService_HeaderValueDefaultTypeInternal() {} - union { - GrpcService_HeaderValue _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_HeaderValueDefaultTypeInternal _GrpcService_HeaderValue_default_instance_; - template <typename> -PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_GoogleLocalCredentials::GrpcService_GoogleGrpc_GoogleLocalCredentials(::_pbi::ConstantInitialized) {} -struct GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal() {} - union { - GrpcService_GoogleGrpc_GoogleLocalCredentials _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_; - -inline constexpr GrpcService_GoogleGrpc_CallCredentials_StsService::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : token_exchange_service_uri_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - resource_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - audience_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - scope_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - requested_token_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - subject_token_path_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - subject_token_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - actor_token_path_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - actor_token_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template <typename> -PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_StsService::GrpcService_GoogleGrpc_CallCredentials_StsService(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal() {} - union { - GrpcService_GoogleGrpc_CallCredentials_StsService _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_; - -inline constexpr GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : json_key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - token_lifetime_seconds_{::uint64_t{0u}}, - _cached_size_{0} {} - -template <typename> -PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal() {} - union { - GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_; - -inline constexpr GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : authorization_token_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - authority_selector_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template <typename> -PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal() {} - union { - GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_; - -inline constexpr GrpcService_EnvoyGrpc::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : cluster_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template <typename> -PROTOBUF_CONSTEXPR GrpcService_EnvoyGrpc::GrpcService_EnvoyGrpc(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GrpcService_EnvoyGrpcDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrpcService_EnvoyGrpcDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrpcService_EnvoyGrpcDefaultTypeInternal() {} - union { - GrpcService_EnvoyGrpc _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_EnvoyGrpcDefaultTypeInternal _GrpcService_EnvoyGrpc_default_instance_; - -inline constexpr DataSource::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : specifier_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template <typename> -PROTOBUF_CONSTEXPR DataSource::DataSource(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DataSourceDefaultTypeInternal { - PROTOBUF_CONSTEXPR DataSourceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DataSourceDefaultTypeInternal() {} - union { - DataSource _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DataSourceDefaultTypeInternal _DataSource_default_instance_; - -inline constexpr WKT::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - struct__{nullptr} {} - -template <typename> -PROTOBUF_CONSTEXPR WKT::WKT(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct WKTDefaultTypeInternal { - PROTOBUF_CONSTEXPR WKTDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~WKTDefaultTypeInternal() {} - union { - WKT _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WKTDefaultTypeInternal _WKT_default_instance_; - -inline constexpr GrpcService_GoogleGrpc_SslCredentials::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - root_certs_{nullptr}, - private_key_{nullptr}, - cert_chain_{nullptr} {} - -template <typename> -PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_SslCredentials::GrpcService_GoogleGrpc_SslCredentials(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal() {} - union { - GrpcService_GoogleGrpc_SslCredentials _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_SslCredentials_default_instance_; - -inline constexpr GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - config_type_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template <typename> -PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal() {} - union { - GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_; - -inline constexpr GrpcService_GoogleGrpc_ChannelCredentials::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : credential_specifier_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template <typename> -PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_ChannelCredentials::GrpcService_GoogleGrpc_ChannelCredentials(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal() {} - union { - GrpcService_GoogleGrpc_ChannelCredentials _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_ChannelCredentials_default_instance_; - -inline constexpr GrpcService_GoogleGrpc_CallCredentials::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : credential_specifier_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template <typename> -PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials::GrpcService_GoogleGrpc_CallCredentials(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal() {} - union { - GrpcService_GoogleGrpc_CallCredentials _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_default_instance_; - -inline constexpr GrpcService_GoogleGrpc::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - call_credentials_{}, - target_uri_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - stat_prefix_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - credentials_factory_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - channel_credentials_{nullptr}, - config_{nullptr} {} - -template <typename> -PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc::GrpcService_GoogleGrpc(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GrpcService_GoogleGrpcDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrpcService_GoogleGrpcDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrpcService_GoogleGrpcDefaultTypeInternal() {} - union { - GrpcService_GoogleGrpc _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpcDefaultTypeInternal _GrpcService_GoogleGrpc_default_instance_; - -inline constexpr GrpcService::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - initial_metadata_{}, - timeout_{nullptr}, - target_specifier_{}, - _oneof_case_{} {} - -template <typename> -PROTOBUF_CONSTEXPR GrpcService::GrpcService(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GrpcServiceDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrpcServiceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrpcServiceDefaultTypeInternal() {} - union { - GrpcService _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcServiceDefaultTypeInternal _GrpcService_default_instance_; -static ::_pb::Metadata file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[14]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_proxy_5fwasm_5fintrinsics_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_proxy_5fwasm_5fintrinsics_2eproto = nullptr; -const ::uint32_t - TableStruct_proxy_5fwasm_5fintrinsics_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::WKT, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::WKT, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::WKT, _impl_.struct__), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::DataSource, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::DataSource, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::DataSource, _impl_.specifier_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::GrpcService_EnvoyGrpc, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::GrpcService_EnvoyGrpc, _impl_.cluster_name_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_SslCredentials, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_SslCredentials, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_SslCredentials, _impl_.root_certs_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_SslCredentials, _impl_.private_key_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_SslCredentials, _impl_.cert_chain_), - 0, - 1, - 2, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_GoogleLocalCredentials, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_ChannelCredentials, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_ChannelCredentials, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_ChannelCredentials, _impl_.credential_specifier_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _impl_.json_key_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _impl_.token_lifetime_seconds_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _impl_.authorization_token_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _impl_.authority_selector_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_.name_), - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_.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_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.token_exchange_service_uri_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.resource_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.audience_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.scope_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.requested_token_type_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.subject_token_path_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.subject_token_type_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.actor_token_path_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.actor_token_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc, _impl_.target_uri_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc, _impl_.channel_credentials_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc, _impl_.call_credentials_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc, _impl_.stat_prefix_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc, _impl_.credentials_factory_name_), - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc, _impl_.config_), - ~0u, - 0, - ~0u, - ~0u, - ~0u, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::GrpcService_HeaderValue, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::GrpcService_HeaderValue, _impl_.key_), - PROTOBUF_FIELD_OFFSET(::GrpcService_HeaderValue, _impl_.value_), - PROTOBUF_FIELD_OFFSET(::GrpcService, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::GrpcService, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::GrpcService, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::GrpcService, _impl_.timeout_), - PROTOBUF_FIELD_OFFSET(::GrpcService, _impl_.initial_metadata_), - PROTOBUF_FIELD_OFFSET(::GrpcService, _impl_.target_specifier_), - ~0u, - ~0u, - 0, - ~0u, -}; - -static const ::_pbi::MigrationSchema - schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - {0, 9, -1, sizeof(::WKT)}, - {10, -1, -1, sizeof(::DataSource)}, - {22, -1, -1, sizeof(::GrpcService_EnvoyGrpc)}, - {31, 42, -1, sizeof(::GrpcService_GoogleGrpc_SslCredentials)}, - {45, -1, -1, sizeof(::GrpcService_GoogleGrpc_GoogleLocalCredentials)}, - {53, -1, -1, sizeof(::GrpcService_GoogleGrpc_ChannelCredentials)}, - {65, -1, -1, sizeof(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials)}, - {75, -1, -1, sizeof(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials)}, - {85, -1, -1, sizeof(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin)}, - {97, -1, -1, sizeof(::GrpcService_GoogleGrpc_CallCredentials_StsService)}, - {114, -1, -1, sizeof(::GrpcService_GoogleGrpc_CallCredentials)}, - {130, 144, -1, sizeof(::GrpcService_GoogleGrpc)}, - {150, -1, -1, sizeof(::GrpcService_HeaderValue)}, - {160, 173, -1, sizeof(::GrpcService)}, -}; -static const ::_pb::Message* const file_default_instances[] = { - &::_WKT_default_instance_._instance, - &::_DataSource_default_instance_._instance, - &::_GrpcService_EnvoyGrpc_default_instance_._instance, - &::_GrpcService_GoogleGrpc_SslCredentials_default_instance_._instance, - &::_GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_._instance, - &::_GrpcService_GoogleGrpc_ChannelCredentials_default_instance_._instance, - &::_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_._instance, - &::_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_._instance, - &::_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_._instance, - &::_GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_._instance, - &::_GrpcService_GoogleGrpc_CallCredentials_default_instance_._instance, - &::_GrpcService_GoogleGrpc_default_instance_._instance, - &::_GrpcService_HeaderValue_default_instance_._instance, - &::_GrpcService_default_instance_._instance, -}; -const char descriptor_table_protodef_proxy_5fwasm_5fintrinsics_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - "\n\033proxy_wasm_intrinsics.proto\032\031google/pr" - "otobuf/any.proto\032\036google/protobuf/durati" - "on.proto\032\033google/protobuf/empty.proto\032\034g" - "oogle/protobuf/struct.proto\".\n\003WKT\022\'\n\006st" - "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" - "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" - "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" - ".GoogleGrpc.CallCredentials\022\023\n\013stat_pref" - "ix\030\004 \001(\t\022 \n\030credentials_factory_name\030\005 \001" - "(\t\022\'\n\006config\030\006 \001(\0132\027.google.protobuf.Str" - "uct\032t\n\016SslCredentials\022\037\n\nroot_certs\030\001 \001(" - "\0132\013.DataSource\022 \n\013private_key\030\002 \001(\0132\013.Da" - "taSource\022\037\n\ncert_chain\030\003 \001(\0132\013.DataSourc" - "e\032\030\n\026GoogleLocalCredentials\032\356\001\n\022ChannelC" - "redentials\022A\n\017ssl_credentials\030\001 \001(\0132&.Gr" - "pcService.GoogleGrpc.SslCredentialsH\000\0220\n" - "\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" - "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" - "\000\022p\n\032service_account_jwt_access\030\004 \001(\0132J." - "GrpcService.GoogleGrpc.CallCredentials.S" - "erviceAccountJWTAccessCredentialsH\000\022R\n\ng" - "oogle_iam\030\005 \001(\0132<.GrpcService.GoogleGrpc" - ".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" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_deps[4] = - { - &::descriptor_table_google_2fprotobuf_2fany_2eproto, - &::descriptor_table_google_2fprotobuf_2fduration_2eproto, - &::descriptor_table_google_2fprotobuf_2fempty_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, -}; -static ::absl::once_flag descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_proxy_5fwasm_5fintrinsics_2eproto = { - false, - false, - 2354, - descriptor_table_protodef_proxy_5fwasm_5fintrinsics_2eproto, - "proxy_wasm_intrinsics.proto", - &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, - descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_deps, - 4, - 14, - schemas, - file_default_instances, - TableStruct_proxy_5fwasm_5fintrinsics_2eproto::offsets, - file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto, - file_level_enum_descriptors_proxy_5fwasm_5fintrinsics_2eproto, - file_level_service_descriptors_proxy_5fwasm_5fintrinsics_2eproto, -}; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter() { - return &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto; -} -// =================================================================== - -class WKT::_Internal { - public: - using HasBits = decltype(std::declval<WKT>()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(WKT, _impl_._has_bits_); -}; - -void WKT::clear_struct_() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.struct__ != nullptr) _impl_.struct__->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -WKT::WKT(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:WKT) -} -inline PROTOBUF_NDEBUG_INLINE WKT::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -WKT::WKT( - ::google::protobuf::Arena* arena, - const WKT& from) - : ::google::protobuf::Message(arena) { - WKT* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.struct__ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::google::protobuf::Struct>( - arena, *from._impl_.struct__) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:WKT) -} -inline PROTOBUF_NDEBUG_INLINE WKT::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void WKT::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.struct__ = {}; -} -WKT::~WKT() { - // @@protoc_insertion_point(destructor:WKT) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void WKT::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.struct__; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -WKT::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(WKT, _impl_._cached_size_), - false, - }, - &WKT::MergeImpl, - &WKT::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void WKT::Clear() { -// @@protoc_insertion_point(message_clear_start:WKT) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.struct__ != nullptr); - _impl_.struct__->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* WKT::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> WKT::_table_ = { - { - PROTOBUF_FIELD_OFFSET(WKT, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_WKT_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::WKT>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .google.protobuf.Struct struct = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(WKT, _impl_.struct__)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.protobuf.Struct struct = 1; - {PROTOBUF_FIELD_OFFSET(WKT, _impl_.struct__), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - }}, -}; - -::uint8_t* WKT::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:WKT) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .google.protobuf.Struct struct = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.struct__, _impl_.struct__->GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:WKT) - return target; -} - -::size_t WKT::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:WKT) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .google.protobuf.Struct struct = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.struct__); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void WKT::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast<WKT*>(&to_msg); - auto& from = static_cast<const WKT&>(from_msg); - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:WKT) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.struct__ != nullptr); - if (_this->_impl_.struct__ == nullptr) { - _this->_impl_.struct__ = - ::google::protobuf::Message::CopyConstruct<::google::protobuf::Struct>(arena, *from._impl_.struct__); - } else { - _this->_impl_.struct__->MergeFrom(*from._impl_.struct__); - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void WKT::CopyFrom(const WKT& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:WKT) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool WKT::IsInitialized() const { - return true; -} - -void WKT::InternalSwap(WKT* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.struct__, other->_impl_.struct__); -} - -::google::protobuf::Metadata WKT::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, - &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, - file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[0]); -} -// =================================================================== - -class DataSource::_Internal { - public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::DataSource, _impl_._oneof_case_); -}; - -DataSource::DataSource(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:DataSource) -} -inline PROTOBUF_NDEBUG_INLINE DataSource::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : specifier_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -DataSource::DataSource( - ::google::protobuf::Arena* arena, - const DataSource& from) - : ::google::protobuf::Message(arena) { - DataSource* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (specifier_case()) { - case SPECIFIER_NOT_SET: - break; - case kFilename: - new (&_impl_.specifier_.filename_) decltype(_impl_.specifier_.filename_){arena, from._impl_.specifier_.filename_}; - break; - case kInlineBytes: - new (&_impl_.specifier_.inline_bytes_) decltype(_impl_.specifier_.inline_bytes_){arena, from._impl_.specifier_.inline_bytes_}; - break; - case kInlineString: - new (&_impl_.specifier_.inline_string_) decltype(_impl_.specifier_.inline_string_){arena, from._impl_.specifier_.inline_string_}; - break; - } - - // @@protoc_insertion_point(copy_constructor:DataSource) -} -inline PROTOBUF_NDEBUG_INLINE DataSource::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : specifier_{}, - _cached_size_{0}, - _oneof_case_{} {} - -inline void DataSource::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -DataSource::~DataSource() { - // @@protoc_insertion_point(destructor:DataSource) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void DataSource::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - if (has_specifier()) { - clear_specifier(); - } - _impl_.~Impl_(); -} - -void DataSource::clear_specifier() { -// @@protoc_insertion_point(one_of_clear_start:DataSource) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - switch (specifier_case()) { - case kFilename: { - _impl_.specifier_.filename_.Destroy(); - break; - } - case kInlineBytes: { - _impl_.specifier_.inline_bytes_.Destroy(); - break; - } - case kInlineString: { - _impl_.specifier_.inline_string_.Destroy(); - break; - } - case SPECIFIER_NOT_SET: { - break; - } - } - _impl_._oneof_case_[0] = SPECIFIER_NOT_SET; -} - - -const ::google::protobuf::MessageLite::ClassData* -DataSource::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(DataSource, _impl_._cached_size_), - false, - }, - &DataSource::MergeImpl, - &DataSource::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void DataSource::Clear() { -// @@protoc_insertion_point(message_clear_start:DataSource) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_specifier(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* DataSource::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 3, 0, 40, 2> DataSource::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_DataSource_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::DataSource>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string filename = 1; - {PROTOBUF_FIELD_OFFSET(DataSource, _impl_.specifier_.filename_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bytes inline_bytes = 2; - {PROTOBUF_FIELD_OFFSET(DataSource, _impl_.specifier_.inline_bytes_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)}, - // string inline_string = 3; - {PROTOBUF_FIELD_OFFSET(DataSource, _impl_.specifier_.inline_string_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\12\10\0\15\0\0\0\0" - "DataSource" - "filename" - "inline_string" - }}, -}; - -::uint8_t* DataSource::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:DataSource) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - switch (specifier_case()) { - case kFilename: { - const std::string& _s = this->_internal_filename(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "DataSource.filename"); - target = stream->WriteStringMaybeAliased(1, _s, target); - break; - } - case kInlineBytes: { - const std::string& _s = this->_internal_inline_bytes(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - break; - } - case kInlineString: { - const std::string& _s = this->_internal_inline_string(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "DataSource.inline_string"); - target = stream->WriteStringMaybeAliased(3, _s, target); - break; - } - default: - break; - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:DataSource) - return target; -} - -::size_t DataSource::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:DataSource) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - switch (specifier_case()) { - // string filename = 1; - case kFilename: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_filename()); - break; - } - // bytes inline_bytes = 2; - case kInlineBytes: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_inline_bytes()); - break; - } - // string inline_string = 3; - case kInlineString: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_inline_string()); - break; - } - case SPECIFIER_NOT_SET: { - break; - } - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void DataSource::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast<DataSource*>(&to_msg); - auto& from = static_cast<const DataSource&>(from_msg); - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:DataSource) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { - const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; - const bool oneof_needs_init = oneof_to_case != oneof_from_case; - if (oneof_needs_init) { - if (oneof_to_case != 0) { - _this->clear_specifier(); - } - _this->_impl_._oneof_case_[0] = oneof_from_case; - } - - switch (oneof_from_case) { - case kFilename: { - if (oneof_needs_init) { - _this->_impl_.specifier_.filename_.InitDefault(); - } - _this->_impl_.specifier_.filename_.Set(from._internal_filename(), arena); - break; - } - case kInlineBytes: { - if (oneof_needs_init) { - _this->_impl_.specifier_.inline_bytes_.InitDefault(); - } - _this->_impl_.specifier_.inline_bytes_.Set(from._internal_inline_bytes(), arena); - break; - } - case kInlineString: { - if (oneof_needs_init) { - _this->_impl_.specifier_.inline_string_.InitDefault(); - } - _this->_impl_.specifier_.inline_string_.Set(from._internal_inline_string(), arena); - break; - } - case SPECIFIER_NOT_SET: - break; - } - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void DataSource::CopyFrom(const DataSource& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:DataSource) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool DataSource::IsInitialized() const { - return true; -} - -void DataSource::InternalSwap(DataSource* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.specifier_, other->_impl_.specifier_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); -} - -::google::protobuf::Metadata DataSource::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, - &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, - file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[1]); -} -// =================================================================== - -class GrpcService_EnvoyGrpc::_Internal { - public: -}; - -GrpcService_EnvoyGrpc::GrpcService_EnvoyGrpc(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:GrpcService.EnvoyGrpc) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_EnvoyGrpc::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : cluster_name_(arena, from.cluster_name_), - _cached_size_{0} {} - -GrpcService_EnvoyGrpc::GrpcService_EnvoyGrpc( - ::google::protobuf::Arena* arena, - const GrpcService_EnvoyGrpc& from) - : ::google::protobuf::Message(arena) { - GrpcService_EnvoyGrpc* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:GrpcService.EnvoyGrpc) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_EnvoyGrpc::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : cluster_name_(arena), - _cached_size_{0} {} - -inline void GrpcService_EnvoyGrpc::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GrpcService_EnvoyGrpc::~GrpcService_EnvoyGrpc() { - // @@protoc_insertion_point(destructor:GrpcService.EnvoyGrpc) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GrpcService_EnvoyGrpc::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.cluster_name_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GrpcService_EnvoyGrpc::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GrpcService_EnvoyGrpc, _impl_._cached_size_), - false, - }, - &GrpcService_EnvoyGrpc::MergeImpl, - &GrpcService_EnvoyGrpc::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GrpcService_EnvoyGrpc::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.EnvoyGrpc) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.cluster_name_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GrpcService_EnvoyGrpc::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 42, 2> GrpcService_EnvoyGrpc::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GrpcService_EnvoyGrpc_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::GrpcService_EnvoyGrpc>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string cluster_name = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_EnvoyGrpc, _impl_.cluster_name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string cluster_name = 1; - {PROTOBUF_FIELD_OFFSET(GrpcService_EnvoyGrpc, _impl_.cluster_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\25\14\0\0\0\0\0\0" - "GrpcService.EnvoyGrpc" - "cluster_name" - }}, -}; - -::uint8_t* GrpcService_EnvoyGrpc::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.EnvoyGrpc) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string cluster_name = 1; - if (!this->_internal_cluster_name().empty()) { - const std::string& _s = this->_internal_cluster_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.EnvoyGrpc.cluster_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:GrpcService.EnvoyGrpc) - return target; -} - -::size_t GrpcService_EnvoyGrpc::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.EnvoyGrpc) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string cluster_name = 1; - if (!this->_internal_cluster_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_cluster_name()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GrpcService_EnvoyGrpc::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast<GrpcService_EnvoyGrpc*>(&to_msg); - auto& from = static_cast<const GrpcService_EnvoyGrpc&>(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.EnvoyGrpc) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_cluster_name().empty()) { - _this->_internal_set_cluster_name(from._internal_cluster_name()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GrpcService_EnvoyGrpc::CopyFrom(const GrpcService_EnvoyGrpc& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.EnvoyGrpc) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GrpcService_EnvoyGrpc::IsInitialized() const { - return true; -} - -void GrpcService_EnvoyGrpc::InternalSwap(GrpcService_EnvoyGrpc* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.cluster_name_, &other->_impl_.cluster_name_, arena); -} - -::google::protobuf::Metadata GrpcService_EnvoyGrpc::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, - &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, - file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[2]); -} -// =================================================================== - -class GrpcService_GoogleGrpc_SslCredentials::_Internal { - public: - using HasBits = decltype(std::declval<GrpcService_GoogleGrpc_SslCredentials>()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_._has_bits_); -}; - -GrpcService_GoogleGrpc_SslCredentials::GrpcService_GoogleGrpc_SslCredentials(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.SslCredentials) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_SslCredentials::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -GrpcService_GoogleGrpc_SslCredentials::GrpcService_GoogleGrpc_SslCredentials( - ::google::protobuf::Arena* arena, - const GrpcService_GoogleGrpc_SslCredentials& from) - : ::google::protobuf::Message(arena) { - GrpcService_GoogleGrpc_SslCredentials* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.root_certs_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::DataSource>( - arena, *from._impl_.root_certs_) - : nullptr; - _impl_.private_key_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::DataSource>( - arena, *from._impl_.private_key_) - : nullptr; - _impl_.cert_chain_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::DataSource>( - arena, *from._impl_.cert_chain_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.SslCredentials) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_SslCredentials::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void GrpcService_GoogleGrpc_SslCredentials::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast<char *>(&_impl_) + - offsetof(Impl_, root_certs_), - 0, - offsetof(Impl_, cert_chain_) - - offsetof(Impl_, root_certs_) + - sizeof(Impl_::cert_chain_)); -} -GrpcService_GoogleGrpc_SslCredentials::~GrpcService_GoogleGrpc_SslCredentials() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.SslCredentials) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GrpcService_GoogleGrpc_SslCredentials::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.root_certs_; - delete _impl_.private_key_; - delete _impl_.cert_chain_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GrpcService_GoogleGrpc_SslCredentials::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_._cached_size_), - false, - }, - &GrpcService_GoogleGrpc_SslCredentials::MergeImpl, - &GrpcService_GoogleGrpc_SslCredentials::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_SslCredentials::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.SslCredentials) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.root_certs_ != nullptr); - _impl_.root_certs_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.private_key_ != nullptr); - _impl_.private_key_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.cert_chain_ != nullptr); - _impl_.cert_chain_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GrpcService_GoogleGrpc_SslCredentials::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 3, 0, 2> GrpcService_GoogleGrpc_SslCredentials::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GrpcService_GoogleGrpc_SslCredentials_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_SslCredentials>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .DataSource root_certs = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.root_certs_)}}, - // .DataSource private_key = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.private_key_)}}, - // .DataSource cert_chain = 3; - {::_pbi::TcParser::FastMtS1, - {26, 2, 2, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.cert_chain_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .DataSource root_certs = 1; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.root_certs_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .DataSource private_key = 2; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.private_key_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .DataSource cert_chain = 3; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.cert_chain_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::DataSource>()}, - {::_pbi::TcParser::GetTable<::DataSource>()}, - {::_pbi::TcParser::GetTable<::DataSource>()}, - }}, {{ - }}, -}; - -::uint8_t* GrpcService_GoogleGrpc_SslCredentials::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.SslCredentials) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .DataSource root_certs = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.root_certs_, _impl_.root_certs_->GetCachedSize(), target, stream); - } - - // .DataSource private_key = 2; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.private_key_, _impl_.private_key_->GetCachedSize(), target, stream); - } - - // .DataSource cert_chain = 3; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *_impl_.cert_chain_, _impl_.cert_chain_->GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.SslCredentials) - return target; -} - -::size_t GrpcService_GoogleGrpc_SslCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.SslCredentials) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // .DataSource root_certs = 1; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.root_certs_); - } - - // .DataSource private_key = 2; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.private_key_); - } - - // .DataSource cert_chain = 3; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.cert_chain_); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GrpcService_GoogleGrpc_SslCredentials::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast<GrpcService_GoogleGrpc_SslCredentials*>(&to_msg); - auto& from = static_cast<const GrpcService_GoogleGrpc_SslCredentials&>(from_msg); - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.SslCredentials) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.root_certs_ != nullptr); - if (_this->_impl_.root_certs_ == nullptr) { - _this->_impl_.root_certs_ = - ::google::protobuf::Message::CopyConstruct<::DataSource>(arena, *from._impl_.root_certs_); - } else { - _this->_impl_.root_certs_->MergeFrom(*from._impl_.root_certs_); - } - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(from._impl_.private_key_ != nullptr); - if (_this->_impl_.private_key_ == nullptr) { - _this->_impl_.private_key_ = - ::google::protobuf::Message::CopyConstruct<::DataSource>(arena, *from._impl_.private_key_); - } else { - _this->_impl_.private_key_->MergeFrom(*from._impl_.private_key_); - } - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(from._impl_.cert_chain_ != nullptr); - if (_this->_impl_.cert_chain_ == nullptr) { - _this->_impl_.cert_chain_ = - ::google::protobuf::Message::CopyConstruct<::DataSource>(arena, *from._impl_.cert_chain_); - } else { - _this->_impl_.cert_chain_->MergeFrom(*from._impl_.cert_chain_); - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GrpcService_GoogleGrpc_SslCredentials::CopyFrom(const GrpcService_GoogleGrpc_SslCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.SslCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_SslCredentials::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_SslCredentials::InternalSwap(GrpcService_GoogleGrpc_SslCredentials* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.cert_chain_) - + sizeof(GrpcService_GoogleGrpc_SslCredentials::_impl_.cert_chain_) - - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.root_certs_)>( - reinterpret_cast<char*>(&_impl_.root_certs_), - reinterpret_cast<char*>(&other->_impl_.root_certs_)); -} - -::google::protobuf::Metadata GrpcService_GoogleGrpc_SslCredentials::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, - &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, - file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[3]); -} -// =================================================================== - -class GrpcService_GoogleGrpc_GoogleLocalCredentials::_Internal { - public: -}; - -GrpcService_GoogleGrpc_GoogleLocalCredentials::GrpcService_GoogleGrpc_GoogleLocalCredentials(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.GoogleLocalCredentials) -} -GrpcService_GoogleGrpc_GoogleLocalCredentials::GrpcService_GoogleGrpc_GoogleLocalCredentials( - ::google::protobuf::Arena* arena, - const GrpcService_GoogleGrpc_GoogleLocalCredentials& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - GrpcService_GoogleGrpc_GoogleLocalCredentials* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.GoogleLocalCredentials) -} - - - - - - - - - -::google::protobuf::Metadata GrpcService_GoogleGrpc_GoogleLocalCredentials::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, - &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, - file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[4]); -} -// =================================================================== - -class GrpcService_GoogleGrpc_ChannelCredentials::_Internal { - public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_ChannelCredentials, _impl_._oneof_case_); -}; - -void GrpcService_GoogleGrpc_ChannelCredentials::set_allocated_ssl_credentials(::GrpcService_GoogleGrpc_SslCredentials* ssl_credentials) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_credential_specifier(); - if (ssl_credentials) { - ::google::protobuf::Arena* submessage_arena = ssl_credentials->GetArena(); - if (message_arena != submessage_arena) { - ssl_credentials = ::google::protobuf::internal::GetOwnedMessage(message_arena, ssl_credentials, submessage_arena); - } - set_has_ssl_credentials(); - _impl_.credential_specifier_.ssl_credentials_ = ssl_credentials; - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.ChannelCredentials.ssl_credentials) -} -void GrpcService_GoogleGrpc_ChannelCredentials::set_allocated_google_default(::google::protobuf::Empty* google_default) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_credential_specifier(); - if (google_default) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(google_default)->GetArena(); - if (message_arena != submessage_arena) { - google_default = ::google::protobuf::internal::GetOwnedMessage(message_arena, google_default, submessage_arena); - } - set_has_google_default(); - _impl_.credential_specifier_.google_default_ = google_default; - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.ChannelCredentials.google_default) -} -void GrpcService_GoogleGrpc_ChannelCredentials::clear_google_default() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() == kGoogleDefault) { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.google_default_; - } - clear_has_credential_specifier(); - } -} -void GrpcService_GoogleGrpc_ChannelCredentials::set_allocated_local_credentials(::GrpcService_GoogleGrpc_GoogleLocalCredentials* local_credentials) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_credential_specifier(); - if (local_credentials) { - ::google::protobuf::Arena* submessage_arena = local_credentials->GetArena(); - if (message_arena != submessage_arena) { - local_credentials = ::google::protobuf::internal::GetOwnedMessage(message_arena, local_credentials, submessage_arena); - } - set_has_local_credentials(); - _impl_.credential_specifier_.local_credentials_ = local_credentials; - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.ChannelCredentials.local_credentials) -} -GrpcService_GoogleGrpc_ChannelCredentials::GrpcService_GoogleGrpc_ChannelCredentials(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.ChannelCredentials) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_ChannelCredentials::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : credential_specifier_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -GrpcService_GoogleGrpc_ChannelCredentials::GrpcService_GoogleGrpc_ChannelCredentials( - ::google::protobuf::Arena* arena, - const GrpcService_GoogleGrpc_ChannelCredentials& from) - : ::google::protobuf::Message(arena) { - GrpcService_GoogleGrpc_ChannelCredentials* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (credential_specifier_case()) { - case CREDENTIAL_SPECIFIER_NOT_SET: - break; - case kSslCredentials: - _impl_.credential_specifier_.ssl_credentials_ = ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_SslCredentials>(arena, *from._impl_.credential_specifier_.ssl_credentials_); - break; - case kGoogleDefault: - _impl_.credential_specifier_.google_default_ = ::google::protobuf::Message::CopyConstruct<::google::protobuf::Empty>(arena, *from._impl_.credential_specifier_.google_default_); - break; - case kLocalCredentials: - _impl_.credential_specifier_.local_credentials_ = ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_GoogleLocalCredentials>(arena, *from._impl_.credential_specifier_.local_credentials_); - break; - } - - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.ChannelCredentials) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_ChannelCredentials::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : credential_specifier_{}, - _cached_size_{0}, - _oneof_case_{} {} - -inline void GrpcService_GoogleGrpc_ChannelCredentials::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GrpcService_GoogleGrpc_ChannelCredentials::~GrpcService_GoogleGrpc_ChannelCredentials() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.ChannelCredentials) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - if (has_credential_specifier()) { - clear_credential_specifier(); - } - _impl_.~Impl_(); -} - -void GrpcService_GoogleGrpc_ChannelCredentials::clear_credential_specifier() { -// @@protoc_insertion_point(one_of_clear_start:GrpcService.GoogleGrpc.ChannelCredentials) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - switch (credential_specifier_case()) { - case kSslCredentials: { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.ssl_credentials_; - } - break; - } - case kGoogleDefault: { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.google_default_; - } - break; - } - case kLocalCredentials: { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.local_credentials_; - } - break; - } - case CREDENTIAL_SPECIFIER_NOT_SET: { - break; - } - } - _impl_._oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; -} - - -const ::google::protobuf::MessageLite::ClassData* -GrpcService_GoogleGrpc_ChannelCredentials::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_ChannelCredentials, _impl_._cached_size_), - false, - }, - &GrpcService_GoogleGrpc_ChannelCredentials::MergeImpl, - &GrpcService_GoogleGrpc_ChannelCredentials::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_ChannelCredentials::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.ChannelCredentials) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_credential_specifier(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GrpcService_GoogleGrpc_ChannelCredentials::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 3, 3, 0, 2> GrpcService_GoogleGrpc_ChannelCredentials::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GrpcService_GoogleGrpc_ChannelCredentials_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_ChannelCredentials>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .GrpcService.GoogleGrpc.SslCredentials ssl_credentials = 1; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_ChannelCredentials, _impl_.credential_specifier_.ssl_credentials_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Empty google_default = 2; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_ChannelCredentials, _impl_.credential_specifier_.google_default_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvDefault)}, - // .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_ChannelCredentials, _impl_.credential_specifier_.local_credentials_), _Internal::kOneofCaseOffset + 0, 2, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvDefault)}, - }}, {{ - {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_SslCredentials>()}, - {::_pbi::FieldAuxDefaultMessage{}, &::google::protobuf::_Empty_default_instance_}, - {::_pbi::FieldAuxDefaultMessage{}, &::_GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_}, - }}, {{ - }}, -}; - -::uint8_t* GrpcService_GoogleGrpc_ChannelCredentials::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.ChannelCredentials) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - switch (credential_specifier_case()) { - case kSslCredentials: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.credential_specifier_.ssl_credentials_, _impl_.credential_specifier_.ssl_credentials_->GetCachedSize(), target, stream); - break; - } - case kGoogleDefault: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.credential_specifier_.google_default_, _impl_.credential_specifier_.google_default_->GetCachedSize(), target, stream); - break; - } - case kLocalCredentials: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *_impl_.credential_specifier_.local_credentials_, _impl_.credential_specifier_.local_credentials_->GetCachedSize(), target, stream); - break; - } - default: - break; - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.ChannelCredentials) - return target; -} - -::size_t GrpcService_GoogleGrpc_ChannelCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.ChannelCredentials) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - switch (credential_specifier_case()) { - // .GrpcService.GoogleGrpc.SslCredentials ssl_credentials = 1; - case kSslCredentials: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.ssl_credentials_); - break; - } - // .google.protobuf.Empty google_default = 2; - case kGoogleDefault: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.google_default_); - break; - } - // .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; - case kLocalCredentials: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.local_credentials_); - break; - } - case CREDENTIAL_SPECIFIER_NOT_SET: { - break; - } - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GrpcService_GoogleGrpc_ChannelCredentials::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast<GrpcService_GoogleGrpc_ChannelCredentials*>(&to_msg); - auto& from = static_cast<const GrpcService_GoogleGrpc_ChannelCredentials&>(from_msg); - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.ChannelCredentials) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { - const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; - const bool oneof_needs_init = oneof_to_case != oneof_from_case; - if (oneof_needs_init) { - if (oneof_to_case != 0) { - _this->clear_credential_specifier(); - } - _this->_impl_._oneof_case_[0] = oneof_from_case; - } - - switch (oneof_from_case) { - case kSslCredentials: { - if (oneof_needs_init) { - _this->_impl_.credential_specifier_.ssl_credentials_ = - ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_SslCredentials>(arena, *from._impl_.credential_specifier_.ssl_credentials_); - } else { - _this->_impl_.credential_specifier_.ssl_credentials_->MergeFrom(from._internal_ssl_credentials()); - } - break; - } - case kGoogleDefault: { - if (oneof_needs_init) { - _this->_impl_.credential_specifier_.google_default_ = - ::google::protobuf::Message::CopyConstruct<::google::protobuf::Empty>(arena, *from._impl_.credential_specifier_.google_default_); - } else { - _this->_impl_.credential_specifier_.google_default_->MergeFrom(from._internal_google_default()); - } - break; - } - case kLocalCredentials: { - if (oneof_needs_init) { - _this->_impl_.credential_specifier_.local_credentials_ = - ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_GoogleLocalCredentials>(arena, *from._impl_.credential_specifier_.local_credentials_); - } else { - _this->_impl_.credential_specifier_.local_credentials_->MergeFrom(from._internal_local_credentials()); - } - break; - } - case CREDENTIAL_SPECIFIER_NOT_SET: - break; - } - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GrpcService_GoogleGrpc_ChannelCredentials::CopyFrom(const GrpcService_GoogleGrpc_ChannelCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.ChannelCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_ChannelCredentials::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_ChannelCredentials::InternalSwap(GrpcService_GoogleGrpc_ChannelCredentials* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.credential_specifier_, other->_impl_.credential_specifier_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); -} - -::google::protobuf::Metadata GrpcService_GoogleGrpc_ChannelCredentials::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, - &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, - file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[5]); -} -// =================================================================== - -class GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_Internal { - public: -}; - -GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : json_key_(arena, from.json_key_), - _cached_size_{0} {} - -GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials( - ::google::protobuf::Arena* arena, - const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) - : ::google::protobuf::Message(arena) { - GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.token_lifetime_seconds_ = from._impl_.token_lifetime_seconds_; - - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : json_key_(arena), - _cached_size_{0} {} - -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.token_lifetime_seconds_ = {}; -} -GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::~GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.json_key_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _impl_._cached_size_), - false, - }, - &GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::MergeImpl, - &GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.json_key_.ClearToEmpty(); - _impl_.token_lifetime_seconds_ = ::uint64_t{0u}; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 90, 2> GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // uint64 token_lifetime_seconds = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _impl_.token_lifetime_seconds_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _impl_.token_lifetime_seconds_)}}, - // string json_key = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _impl_.json_key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string json_key = 1; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _impl_.json_key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // uint64 token_lifetime_seconds = 2; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _impl_.token_lifetime_seconds_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, - // no aux_entries - {{ - "\111\10\0\0\0\0\0\0" - "GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials" - "json_key" - }}, -}; - -::uint8_t* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string json_key = 1; - if (!this->_internal_json_key().empty()) { - const std::string& _s = this->_internal_json_key(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // uint64 token_lifetime_seconds = 2; - if (this->_internal_token_lifetime_seconds() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_token_lifetime_seconds(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - return target; -} - -::size_t GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string json_key = 1; - if (!this->_internal_json_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_json_key()); - } - - // uint64 token_lifetime_seconds = 2; - if (this->_internal_token_lifetime_seconds() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_token_lifetime_seconds()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast<GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials*>(&to_msg); - auto& from = static_cast<const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials&>(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_json_key().empty()) { - _this->_internal_set_json_key(from._internal_json_key()); - } - if (from._internal_token_lifetime_seconds() != 0) { - _this->_impl_.token_lifetime_seconds_ = from._impl_.token_lifetime_seconds_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.json_key_, &other->_impl_.json_key_, arena); - swap(_impl_.token_lifetime_seconds_, other->_impl_.token_lifetime_seconds_); -} - -::google::protobuf::Metadata GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, - &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, - file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[6]); -} -// =================================================================== - -class GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_Internal { - public: -}; - -GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : authorization_token_(arena, from.authorization_token_), - authority_selector_(arena, from.authority_selector_), - _cached_size_{0} {} - -GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials( - ::google::protobuf::Arena* arena, - const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) - : ::google::protobuf::Message(arena) { - GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : authorization_token_(arena), - authority_selector_(arena), - _cached_size_{0} {} - -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::~GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.authorization_token_.Destroy(); - _impl_.authority_selector_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _impl_._cached_size_), - false, - }, - &GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::MergeImpl, - &GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.authorization_token_.ClearToEmpty(); - _impl_.authority_selector_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 105, 2> GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string authority_selector = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _impl_.authority_selector_)}}, - // string authorization_token = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _impl_.authorization_token_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string authorization_token = 1; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _impl_.authorization_token_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string authority_selector = 2; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _impl_.authority_selector_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\73\23\22\0\0\0\0\0" - "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials" - "authorization_token" - "authority_selector" - }}, -}; - -::uint8_t* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string authorization_token = 1; - if (!this->_internal_authorization_token().empty()) { - const std::string& _s = this->_internal_authorization_token(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // string authority_selector = 2; - if (!this->_internal_authority_selector().empty()) { - const std::string& _s = this->_internal_authority_selector(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - return target; -} - -::size_t GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string authorization_token = 1; - if (!this->_internal_authorization_token().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_authorization_token()); - } - - // string authority_selector = 2; - if (!this->_internal_authority_selector().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_authority_selector()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast<GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials*>(&to_msg); - auto& from = static_cast<const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials&>(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_authorization_token().empty()) { - _this->_internal_set_authorization_token(from._internal_authorization_token()); - } - if (!from._internal_authority_selector().empty()) { - _this->_internal_set_authority_selector(from._internal_authority_selector()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.authorization_token_, &other->_impl_.authorization_token_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.authority_selector_, &other->_impl_.authority_selector_, arena); -} - -::google::protobuf::Metadata GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, - &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, - file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[7]); -} -// =================================================================== - -class GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_Internal { - public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_._oneof_case_); -}; - -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_allocated_config(::google::protobuf::Struct* config) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_config_type(); - if (config) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(config)->GetArena(); - if (message_arena != submessage_arena) { - config = ::google::protobuf::internal::GetOwnedMessage(message_arena, config, submessage_arena); - } - set_has_config(); - _impl_.config_type_.config_ = config; - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) -} -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::clear_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (config_type_case() == kConfig) { - if (GetArena() == nullptr) { - delete _impl_.config_type_.config_; - } - clear_has_config_type(); - } -} -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_allocated_typed_config(::google::protobuf::Any* typed_config) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_config_type(); - if (typed_config) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(typed_config)->GetArena(); - if (message_arena != submessage_arena) { - typed_config = ::google::protobuf::internal::GetOwnedMessage(message_arena, typed_config, submessage_arena); - } - set_has_typed_config(); - _impl_.config_type_.typed_config_ = typed_config; - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) -} -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::clear_typed_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (config_type_case() == kTypedConfig) { - if (GetArena() == nullptr) { - delete _impl_.config_type_.typed_config_; - } - clear_has_config_type(); - } -} -GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - config_type_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin( - ::google::protobuf::Arena* arena, - const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from) - : ::google::protobuf::Message(arena) { - GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (config_type_case()) { - case CONFIG_TYPE_NOT_SET: - break; - case kConfig: - _impl_.config_type_.config_ = ::google::protobuf::Message::CopyConstruct<::google::protobuf::Struct>(arena, *from._impl_.config_type_.config_); - break; - case kTypedConfig: - _impl_.config_type_.typed_config_ = ::google::protobuf::Message::CopyConstruct<::google::protobuf::Any>(arena, *from._impl_.config_type_.typed_config_); - break; - } - - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - config_type_{}, - _cached_size_{0}, - _oneof_case_{} {} - -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::~GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - if (has_config_type()) { - clear_config_type(); - } - _impl_.~Impl_(); -} - -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::clear_config_type() { -// @@protoc_insertion_point(one_of_clear_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - switch (config_type_case()) { - case kConfig: { - if (GetArena() == nullptr) { - delete _impl_.config_type_.config_; - } - break; - } - case kTypedConfig: { - if (GetArena() == nullptr) { - delete _impl_.config_type_.typed_config_; - } - break; - } - case CONFIG_TYPE_NOT_SET: { - break; - } - } - _impl_._oneof_case_[0] = CONFIG_TYPE_NOT_SET; -} - - -const ::google::protobuf::MessageLite::ClassData* -GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_._cached_size_), - false, - }, - &GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::MergeImpl, - &GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.name_.ClearToEmpty(); - clear_config_type(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 3, 2, 81, 2> GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string name = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct config = 2 [deprecated = true]; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_.config_type_.config_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Any typed_config = 3; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_.config_type_.typed_config_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Any>()}, - }}, {{ - "\104\4\0\0\0\0\0\0" - "GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin" - "name" - }}, -}; - -::uint8_t* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string name = 1; - if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - switch (config_type_case()) { - case kConfig: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.config_type_.config_, _impl_.config_type_.config_->GetCachedSize(), target, stream); - break; - } - case kTypedConfig: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *_impl_.config_type_.typed_config_, _impl_.config_type_.typed_config_->GetCachedSize(), target, stream); - break; - } - default: - break; - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - return target; -} - -::size_t GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string name = 1; - if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - switch (config_type_case()) { - // .google.protobuf.Struct config = 2 [deprecated = true]; - case kConfig: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.config_type_.config_); - break; - } - // .google.protobuf.Any typed_config = 3; - case kTypedConfig: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.config_type_.typed_config_); - break; - } - case CONFIG_TYPE_NOT_SET: { - break; - } - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast<GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin*>(&to_msg); - auto& from = static_cast<const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin&>(from_msg); - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); - } - if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { - const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; - const bool oneof_needs_init = oneof_to_case != oneof_from_case; - if (oneof_needs_init) { - if (oneof_to_case != 0) { - _this->clear_config_type(); - } - _this->_impl_._oneof_case_[0] = oneof_from_case; - } - - switch (oneof_from_case) { - case kConfig: { - if (oneof_needs_init) { - _this->_impl_.config_type_.config_ = - ::google::protobuf::Message::CopyConstruct<::google::protobuf::Struct>(arena, *from._impl_.config_type_.config_); - } else { - _this->_impl_.config_type_.config_->MergeFrom(from._internal_config()); - } - break; - } - case kTypedConfig: { - if (oneof_needs_init) { - _this->_impl_.config_type_.typed_config_ = - ::google::protobuf::Message::CopyConstruct<::google::protobuf::Any>(arena, *from._impl_.config_type_.typed_config_); - } else { - _this->_impl_.config_type_.typed_config_->MergeFrom(from._internal_typed_config()); - } - break; - } - case CONFIG_TYPE_NOT_SET: - break; - } - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.config_type_, other->_impl_.config_type_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); -} - -::google::protobuf::Metadata GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, - &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, - file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[8]); -} -// =================================================================== - -class GrpcService_GoogleGrpc_CallCredentials_StsService::_Internal { - public: -}; - -GrpcService_GoogleGrpc_CallCredentials_StsService::GrpcService_GoogleGrpc_CallCredentials_StsService(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.CallCredentials.StsService) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_StsService::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : token_exchange_service_uri_(arena, from.token_exchange_service_uri_), - resource_(arena, from.resource_), - audience_(arena, from.audience_), - scope_(arena, from.scope_), - requested_token_type_(arena, from.requested_token_type_), - subject_token_path_(arena, from.subject_token_path_), - subject_token_type_(arena, from.subject_token_type_), - actor_token_path_(arena, from.actor_token_path_), - actor_token_type_(arena, from.actor_token_type_), - _cached_size_{0} {} - -GrpcService_GoogleGrpc_CallCredentials_StsService::GrpcService_GoogleGrpc_CallCredentials_StsService( - ::google::protobuf::Arena* arena, - const GrpcService_GoogleGrpc_CallCredentials_StsService& from) - : ::google::protobuf::Message(arena) { - GrpcService_GoogleGrpc_CallCredentials_StsService* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials.StsService) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_StsService::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : token_exchange_service_uri_(arena), - resource_(arena), - audience_(arena), - scope_(arena), - requested_token_type_(arena), - subject_token_path_(arena), - subject_token_type_(arena), - actor_token_path_(arena), - actor_token_type_(arena), - _cached_size_{0} {} - -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GrpcService_GoogleGrpc_CallCredentials_StsService::~GrpcService_GoogleGrpc_CallCredentials_StsService() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials.StsService) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.token_exchange_service_uri_.Destroy(); - _impl_.resource_.Destroy(); - _impl_.audience_.Destroy(); - _impl_.scope_.Destroy(); - _impl_.requested_token_type_.Destroy(); - _impl_.subject_token_path_.Destroy(); - _impl_.subject_token_type_.Destroy(); - _impl_.actor_token_path_.Destroy(); - _impl_.actor_token_type_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GrpcService_GoogleGrpc_CallCredentials_StsService::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_._cached_size_), - false, - }, - &GrpcService_GoogleGrpc_CallCredentials_StsService::MergeImpl, - &GrpcService_GoogleGrpc_CallCredentials_StsService::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.token_exchange_service_uri_.ClearToEmpty(); - _impl_.resource_.ClearToEmpty(); - _impl_.audience_.ClearToEmpty(); - _impl_.scope_.ClearToEmpty(); - _impl_.requested_token_type_.ClearToEmpty(); - _impl_.subject_token_path_.ClearToEmpty(); - _impl_.subject_token_type_.ClearToEmpty(); - _impl_.actor_token_path_.ClearToEmpty(); - _impl_.actor_token_type_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GrpcService_GoogleGrpc_CallCredentials_StsService::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 9, 0, 201, 2> GrpcService_GoogleGrpc_CallCredentials_StsService::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 9, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294966784, // skipmap - offsetof(decltype(_table_), field_entries), - 9, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_StsService>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string token_exchange_service_uri = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.token_exchange_service_uri_)}}, - // string resource = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.resource_)}}, - // string audience = 3; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.audience_)}}, - // string scope = 4; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.scope_)}}, - // string requested_token_type = 5; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.requested_token_type_)}}, - // string subject_token_path = 6; - {::_pbi::TcParser::FastUS1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.subject_token_path_)}}, - // string subject_token_type = 7; - {::_pbi::TcParser::FastUS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.subject_token_type_)}}, - // string actor_token_path = 8; - {::_pbi::TcParser::FastUS1, - {66, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.actor_token_path_)}}, - // string actor_token_type = 9; - {::_pbi::TcParser::FastUS1, - {74, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.actor_token_type_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string token_exchange_service_uri = 1; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.token_exchange_service_uri_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string resource = 2; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.resource_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string audience = 3; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.audience_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string scope = 4; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.scope_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string requested_token_type = 5; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.requested_token_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string subject_token_path = 6; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.subject_token_path_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string subject_token_type = 7; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.subject_token_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string actor_token_path = 8; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.actor_token_path_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string actor_token_type = 9; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.actor_token_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\61\32\10\10\5\24\22\22\20\20\0\0\0\0\0\0" - "GrpcService.GoogleGrpc.CallCredentials.StsService" - "token_exchange_service_uri" - "resource" - "audience" - "scope" - "requested_token_type" - "subject_token_path" - "subject_token_type" - "actor_token_path" - "actor_token_type" - }}, -}; - -::uint8_t* GrpcService_GoogleGrpc_CallCredentials_StsService::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string token_exchange_service_uri = 1; - if (!this->_internal_token_exchange_service_uri().empty()) { - const std::string& _s = this->_internal_token_exchange_service_uri(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // string resource = 2; - if (!this->_internal_resource().empty()) { - const std::string& _s = this->_internal_resource(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.resource"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - // string audience = 3; - if (!this->_internal_audience().empty()) { - const std::string& _s = this->_internal_audience(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.audience"); - target = stream->WriteStringMaybeAliased(3, _s, target); - } - - // string scope = 4; - if (!this->_internal_scope().empty()) { - const std::string& _s = this->_internal_scope(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.scope"); - target = stream->WriteStringMaybeAliased(4, _s, target); - } - - // string requested_token_type = 5; - if (!this->_internal_requested_token_type().empty()) { - const std::string& _s = this->_internal_requested_token_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type"); - target = stream->WriteStringMaybeAliased(5, _s, target); - } - - // string subject_token_path = 6; - if (!this->_internal_subject_token_path().empty()) { - const std::string& _s = this->_internal_subject_token_path(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path"); - target = stream->WriteStringMaybeAliased(6, _s, target); - } - - // string subject_token_type = 7; - if (!this->_internal_subject_token_type().empty()) { - const std::string& _s = this->_internal_subject_token_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type"); - target = stream->WriteStringMaybeAliased(7, _s, target); - } - - // string actor_token_path = 8; - if (!this->_internal_actor_token_path().empty()) { - const std::string& _s = this->_internal_actor_token_path(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path"); - target = stream->WriteStringMaybeAliased(8, _s, target); - } - - // string actor_token_type = 9; - if (!this->_internal_actor_token_type().empty()) { - const std::string& _s = this->_internal_actor_token_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type"); - target = stream->WriteStringMaybeAliased(9, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@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; - - ::uint32_t 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->_internal_token_exchange_service_uri().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_token_exchange_service_uri()); - } - - // string resource = 2; - if (!this->_internal_resource().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_resource()); - } - - // string audience = 3; - if (!this->_internal_audience().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_audience()); - } - - // string scope = 4; - if (!this->_internal_scope().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_scope()); - } - - // string requested_token_type = 5; - if (!this->_internal_requested_token_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_requested_token_type()); - } - - // string subject_token_path = 6; - if (!this->_internal_subject_token_path().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_subject_token_path()); - } - - // string subject_token_type = 7; - if (!this->_internal_subject_token_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_subject_token_type()); - } - - // string actor_token_path = 8; - if (!this->_internal_actor_token_path().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_actor_token_path()); - } - - // string actor_token_type = 9; - if (!this->_internal_actor_token_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_actor_token_type()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GrpcService_GoogleGrpc_CallCredentials_StsService::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast<GrpcService_GoogleGrpc_CallCredentials_StsService*>(&to_msg); - auto& from = static_cast<const GrpcService_GoogleGrpc_CallCredentials_StsService&>(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_token_exchange_service_uri().empty()) { - _this->_internal_set_token_exchange_service_uri(from._internal_token_exchange_service_uri()); - } - if (!from._internal_resource().empty()) { - _this->_internal_set_resource(from._internal_resource()); - } - if (!from._internal_audience().empty()) { - _this->_internal_set_audience(from._internal_audience()); - } - if (!from._internal_scope().empty()) { - _this->_internal_set_scope(from._internal_scope()); - } - if (!from._internal_requested_token_type().empty()) { - _this->_internal_set_requested_token_type(from._internal_requested_token_type()); - } - if (!from._internal_subject_token_path().empty()) { - _this->_internal_set_subject_token_path(from._internal_subject_token_path()); - } - if (!from._internal_subject_token_type().empty()) { - _this->_internal_set_subject_token_type(from._internal_subject_token_type()); - } - if (!from._internal_actor_token_path().empty()) { - _this->_internal_set_actor_token_path(from._internal_actor_token_path()); - } - if (!from._internal_actor_token_type().empty()) { - _this->_internal_set_actor_token_type(from._internal_actor_token_type()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -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); -} - -PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_CallCredentials_StsService::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_CallCredentials_StsService::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_StsService* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.token_exchange_service_uri_, &other->_impl_.token_exchange_service_uri_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.resource_, &other->_impl_.resource_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.audience_, &other->_impl_.audience_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.scope_, &other->_impl_.scope_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.requested_token_type_, &other->_impl_.requested_token_type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.subject_token_path_, &other->_impl_.subject_token_path_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.subject_token_type_, &other->_impl_.subject_token_type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.actor_token_path_, &other->_impl_.actor_token_path_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.actor_token_type_, &other->_impl_.actor_token_type_, arena); -} - -::google::protobuf::Metadata GrpcService_GoogleGrpc_CallCredentials_StsService::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, - &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, - file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[9]); -} -// =================================================================== - -class GrpcService_GoogleGrpc_CallCredentials::_Internal { - public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials, _impl_._oneof_case_); -}; - -void GrpcService_GoogleGrpc_CallCredentials::set_allocated_google_compute_engine(::google::protobuf::Empty* google_compute_engine) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_credential_specifier(); - if (google_compute_engine) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(google_compute_engine)->GetArena(); - if (message_arena != submessage_arena) { - google_compute_engine = ::google::protobuf::internal::GetOwnedMessage(message_arena, google_compute_engine, submessage_arena); - } - set_has_google_compute_engine(); - _impl_.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() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() == kGoogleComputeEngine) { - if (GetArena() == nullptr) { - delete _impl_.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) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_credential_specifier(); - if (service_account_jwt_access) { - ::google::protobuf::Arena* submessage_arena = service_account_jwt_access->GetArena(); - if (message_arena != submessage_arena) { - service_account_jwt_access = ::google::protobuf::internal::GetOwnedMessage(message_arena, service_account_jwt_access, submessage_arena); - } - set_has_service_account_jwt_access(); - _impl_.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) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_credential_specifier(); - if (google_iam) { - ::google::protobuf::Arena* submessage_arena = google_iam->GetArena(); - if (message_arena != submessage_arena) { - google_iam = ::google::protobuf::internal::GetOwnedMessage(message_arena, google_iam, submessage_arena); - } - set_has_google_iam(); - _impl_.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) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_credential_specifier(); - if (from_plugin) { - ::google::protobuf::Arena* submessage_arena = from_plugin->GetArena(); - if (message_arena != submessage_arena) { - from_plugin = ::google::protobuf::internal::GetOwnedMessage(message_arena, from_plugin, submessage_arena); - } - set_has_from_plugin(); - _impl_.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) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_credential_specifier(); - if (sts_service) { - ::google::protobuf::Arena* submessage_arena = sts_service->GetArena(); - if (message_arena != submessage_arena) { - sts_service = ::google::protobuf::internal::GetOwnedMessage(message_arena, sts_service, submessage_arena); - } - set_has_sts_service(); - _impl_.credential_specifier_.sts_service_ = sts_service; - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.sts_service) -} -GrpcService_GoogleGrpc_CallCredentials::GrpcService_GoogleGrpc_CallCredentials(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.CallCredentials) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : credential_specifier_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -GrpcService_GoogleGrpc_CallCredentials::GrpcService_GoogleGrpc_CallCredentials( - ::google::protobuf::Arena* arena, - const GrpcService_GoogleGrpc_CallCredentials& from) - : ::google::protobuf::Message(arena) { - GrpcService_GoogleGrpc_CallCredentials* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (credential_specifier_case()) { - case CREDENTIAL_SPECIFIER_NOT_SET: - break; - case kAccessToken: - new (&_impl_.credential_specifier_.access_token_) decltype(_impl_.credential_specifier_.access_token_){arena, from._impl_.credential_specifier_.access_token_}; - break; - case kGoogleComputeEngine: - _impl_.credential_specifier_.google_compute_engine_ = ::google::protobuf::Message::CopyConstruct<::google::protobuf::Empty>(arena, *from._impl_.credential_specifier_.google_compute_engine_); - break; - case kGoogleRefreshToken: - new (&_impl_.credential_specifier_.google_refresh_token_) decltype(_impl_.credential_specifier_.google_refresh_token_){arena, from._impl_.credential_specifier_.google_refresh_token_}; - break; - case kServiceAccountJwtAccess: - _impl_.credential_specifier_.service_account_jwt_access_ = ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials>(arena, *from._impl_.credential_specifier_.service_account_jwt_access_); - break; - case kGoogleIam: - _impl_.credential_specifier_.google_iam_ = ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials>(arena, *from._impl_.credential_specifier_.google_iam_); - break; - case kFromPlugin: - _impl_.credential_specifier_.from_plugin_ = ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin>(arena, *from._impl_.credential_specifier_.from_plugin_); - break; - case kStsService: - _impl_.credential_specifier_.sts_service_ = ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_StsService>(arena, *from._impl_.credential_specifier_.sts_service_); - break; - } - - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : credential_specifier_{}, - _cached_size_{0}, - _oneof_case_{} {} - -inline void GrpcService_GoogleGrpc_CallCredentials::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GrpcService_GoogleGrpc_CallCredentials::~GrpcService_GoogleGrpc_CallCredentials() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GrpcService_GoogleGrpc_CallCredentials::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - if (has_credential_specifier()) { - clear_credential_specifier(); - } - _impl_.~Impl_(); -} - -void GrpcService_GoogleGrpc_CallCredentials::clear_credential_specifier() { -// @@protoc_insertion_point(one_of_clear_start:GrpcService.GoogleGrpc.CallCredentials) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - switch (credential_specifier_case()) { - case kAccessToken: { - _impl_.credential_specifier_.access_token_.Destroy(); - break; - } - case kGoogleComputeEngine: { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.google_compute_engine_; - } - break; - } - case kGoogleRefreshToken: { - _impl_.credential_specifier_.google_refresh_token_.Destroy(); - break; - } - case kServiceAccountJwtAccess: { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.service_account_jwt_access_; - } - break; - } - case kGoogleIam: { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.google_iam_; - } - break; - } - case kFromPlugin: { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.from_plugin_; - } - break; - } - case kStsService: { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.sts_service_; - } - break; - } - case CREDENTIAL_SPECIFIER_NOT_SET: { - break; - } - } - _impl_._oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; -} - - -const ::google::protobuf::MessageLite::ClassData* -GrpcService_GoogleGrpc_CallCredentials::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_._cached_size_), - false, - }, - &GrpcService_GoogleGrpc_CallCredentials::MergeImpl, - &GrpcService_GoogleGrpc_CallCredentials::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_CallCredentials::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_credential_specifier(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GrpcService_GoogleGrpc_CallCredentials::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 7, 5, 79, 2> GrpcService_GoogleGrpc_CallCredentials::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 7, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967168, // skipmap - offsetof(decltype(_table_), field_entries), - 7, // num_field_entries - 5, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GrpcService_GoogleGrpc_CallCredentials_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string access_token = 1; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.access_token_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Empty google_compute_engine = 2; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.google_compute_engine_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvDefault)}, - // string google_refresh_token = 3; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.google_refresh_token_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.service_account_jwt_access_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.google_iam_), _Internal::kOneofCaseOffset + 0, 2, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.from_plugin_), _Internal::kOneofCaseOffset + 0, 3, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.sts_service_), _Internal::kOneofCaseOffset + 0, 4, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::FieldAuxDefaultMessage{}, &::google::protobuf::_Empty_default_instance_}, - {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials>()}, - {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials>()}, - {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin>()}, - {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_StsService>()}, - }}, {{ - "\46\14\0\24\0\0\0\0" - "GrpcService.GoogleGrpc.CallCredentials" - "access_token" - "google_refresh_token" - }}, -}; - -::uint8_t* GrpcService_GoogleGrpc_CallCredentials::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.CallCredentials) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - switch (credential_specifier_case()) { - case kAccessToken: { - const std::string& _s = this->_internal_access_token(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.access_token"); - target = stream->WriteStringMaybeAliased(1, _s, target); - break; - } - case kGoogleComputeEngine: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.credential_specifier_.google_compute_engine_, _impl_.credential_specifier_.google_compute_engine_->GetCachedSize(), target, stream); - break; - } - case kGoogleRefreshToken: { - const std::string& _s = this->_internal_google_refresh_token(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.google_refresh_token"); - target = stream->WriteStringMaybeAliased(3, _s, target); - break; - } - case kServiceAccountJwtAccess: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, *_impl_.credential_specifier_.service_account_jwt_access_, _impl_.credential_specifier_.service_account_jwt_access_->GetCachedSize(), target, stream); - break; - } - case kGoogleIam: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, *_impl_.credential_specifier_.google_iam_, _impl_.credential_specifier_.google_iam_->GetCachedSize(), target, stream); - break; - } - case kFromPlugin: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, *_impl_.credential_specifier_.from_plugin_, _impl_.credential_specifier_.from_plugin_->GetCachedSize(), target, stream); - break; - } - case kStsService: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, *_impl_.credential_specifier_.sts_service_, _impl_.credential_specifier_.sts_service_->GetCachedSize(), target, stream); - break; - } - default: - break; - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.CallCredentials) - return target; -} - -::size_t GrpcService_GoogleGrpc_CallCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - switch (credential_specifier_case()) { - // string access_token = 1; - case kAccessToken: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_access_token()); - break; - } - // .google.protobuf.Empty google_compute_engine = 2; - case kGoogleComputeEngine: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.google_compute_engine_); - break; - } - // string google_refresh_token = 3; - case kGoogleRefreshToken: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_google_refresh_token()); - break; - } - // .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; - case kServiceAccountJwtAccess: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.service_account_jwt_access_); - break; - } - // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; - case kGoogleIam: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.google_iam_); - break; - } - // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; - case kFromPlugin: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.from_plugin_); - break; - } - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - case kStsService: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.sts_service_); - break; - } - case CREDENTIAL_SPECIFIER_NOT_SET: { - break; - } - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GrpcService_GoogleGrpc_CallCredentials::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast<GrpcService_GoogleGrpc_CallCredentials*>(&to_msg); - auto& from = static_cast<const GrpcService_GoogleGrpc_CallCredentials&>(from_msg); - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { - const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; - const bool oneof_needs_init = oneof_to_case != oneof_from_case; - if (oneof_needs_init) { - if (oneof_to_case != 0) { - _this->clear_credential_specifier(); - } - _this->_impl_._oneof_case_[0] = oneof_from_case; - } - - switch (oneof_from_case) { - case kAccessToken: { - if (oneof_needs_init) { - _this->_impl_.credential_specifier_.access_token_.InitDefault(); - } - _this->_impl_.credential_specifier_.access_token_.Set(from._internal_access_token(), arena); - break; - } - case kGoogleComputeEngine: { - if (oneof_needs_init) { - _this->_impl_.credential_specifier_.google_compute_engine_ = - ::google::protobuf::Message::CopyConstruct<::google::protobuf::Empty>(arena, *from._impl_.credential_specifier_.google_compute_engine_); - } else { - _this->_impl_.credential_specifier_.google_compute_engine_->MergeFrom(from._internal_google_compute_engine()); - } - break; - } - case kGoogleRefreshToken: { - if (oneof_needs_init) { - _this->_impl_.credential_specifier_.google_refresh_token_.InitDefault(); - } - _this->_impl_.credential_specifier_.google_refresh_token_.Set(from._internal_google_refresh_token(), arena); - break; - } - case kServiceAccountJwtAccess: { - if (oneof_needs_init) { - _this->_impl_.credential_specifier_.service_account_jwt_access_ = - ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials>(arena, *from._impl_.credential_specifier_.service_account_jwt_access_); - } else { - _this->_impl_.credential_specifier_.service_account_jwt_access_->MergeFrom(from._internal_service_account_jwt_access()); - } - break; - } - case kGoogleIam: { - if (oneof_needs_init) { - _this->_impl_.credential_specifier_.google_iam_ = - ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials>(arena, *from._impl_.credential_specifier_.google_iam_); - } else { - _this->_impl_.credential_specifier_.google_iam_->MergeFrom(from._internal_google_iam()); - } - break; - } - case kFromPlugin: { - if (oneof_needs_init) { - _this->_impl_.credential_specifier_.from_plugin_ = - ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin>(arena, *from._impl_.credential_specifier_.from_plugin_); - } else { - _this->_impl_.credential_specifier_.from_plugin_->MergeFrom(from._internal_from_plugin()); - } - break; - } - case kStsService: { - if (oneof_needs_init) { - _this->_impl_.credential_specifier_.sts_service_ = - ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_StsService>(arena, *from._impl_.credential_specifier_.sts_service_); - } else { - _this->_impl_.credential_specifier_.sts_service_->MergeFrom(from._internal_sts_service()); - } - break; - } - case CREDENTIAL_SPECIFIER_NOT_SET: - break; - } - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GrpcService_GoogleGrpc_CallCredentials::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.CallCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_CallCredentials::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_CallCredentials::InternalSwap(GrpcService_GoogleGrpc_CallCredentials* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.credential_specifier_, other->_impl_.credential_specifier_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); -} - -::google::protobuf::Metadata GrpcService_GoogleGrpc_CallCredentials::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, - &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, - file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[10]); -} -// =================================================================== - -class GrpcService_GoogleGrpc::_Internal { - public: - using HasBits = decltype(std::declval<GrpcService_GoogleGrpc>()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_._has_bits_); -}; - -void GrpcService_GoogleGrpc::clear_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.config_ != nullptr) _impl_.config_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -GrpcService_GoogleGrpc::GrpcService_GoogleGrpc(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - call_credentials_{visibility, arena, from.call_credentials_}, - target_uri_(arena, from.target_uri_), - stat_prefix_(arena, from.stat_prefix_), - credentials_factory_name_(arena, from.credentials_factory_name_) {} - -GrpcService_GoogleGrpc::GrpcService_GoogleGrpc( - ::google::protobuf::Arena* arena, - const GrpcService_GoogleGrpc& from) - : ::google::protobuf::Message(arena) { - GrpcService_GoogleGrpc* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.channel_credentials_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_ChannelCredentials>( - arena, *from._impl_.channel_credentials_) - : nullptr; - _impl_.config_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::google::protobuf::Struct>( - arena, *from._impl_.config_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - call_credentials_{visibility, arena}, - target_uri_(arena), - stat_prefix_(arena), - credentials_factory_name_(arena) {} - -inline void GrpcService_GoogleGrpc::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast<char *>(&_impl_) + - offsetof(Impl_, channel_credentials_), - 0, - offsetof(Impl_, config_) - - offsetof(Impl_, channel_credentials_) + - sizeof(Impl_::config_)); -} -GrpcService_GoogleGrpc::~GrpcService_GoogleGrpc() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GrpcService_GoogleGrpc::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.target_uri_.Destroy(); - _impl_.stat_prefix_.Destroy(); - _impl_.credentials_factory_name_.Destroy(); - delete _impl_.channel_credentials_; - delete _impl_.config_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GrpcService_GoogleGrpc::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_._cached_size_), - false, - }, - &GrpcService_GoogleGrpc::MergeImpl, - &GrpcService_GoogleGrpc::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GrpcService_GoogleGrpc::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.call_credentials_.Clear(); - _impl_.target_uri_.ClearToEmpty(); - _impl_.stat_prefix_.ClearToEmpty(); - _impl_.credentials_factory_name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.channel_credentials_ != nullptr); - _impl_.channel_credentials_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.config_ != nullptr); - _impl_.config_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GrpcService_GoogleGrpc::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 3, 76, 2> GrpcService_GoogleGrpc::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_._has_bits_), - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GrpcService_GoogleGrpc_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string target_uri = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.target_uri_)}}, - // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.channel_credentials_)}}, - // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; - {::_pbi::TcParser::FastMtR1, - {26, 63, 1, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.call_credentials_)}}, - // string stat_prefix = 4; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.stat_prefix_)}}, - // string credentials_factory_name = 5; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.credentials_factory_name_)}}, - // .google.protobuf.Struct config = 6; - {::_pbi::TcParser::FastMtS1, - {50, 1, 2, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.config_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string target_uri = 1; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.target_uri_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.channel_credentials_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.call_credentials_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // string stat_prefix = 4; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.stat_prefix_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string credentials_factory_name = 5; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.credentials_factory_name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct config = 6; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.config_), _Internal::kHasBitsOffset + 1, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_ChannelCredentials>()}, - {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\26\12\0\0\13\30\0\0" - "GrpcService.GoogleGrpc" - "target_uri" - "stat_prefix" - "credentials_factory_name" - }}, -}; - -::uint8_t* GrpcService_GoogleGrpc::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string target_uri = 1; - if (!this->_internal_target_uri().empty()) { - const std::string& _s = this->_internal_target_uri(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.target_uri"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.channel_credentials_, _impl_.channel_credentials_->GetCachedSize(), target, stream); - } - - // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; - for (unsigned i = 0, n = static_cast<unsigned>( - this->_internal_call_credentials_size()); - i < n; i++) { - const auto& repfield = this->_internal_call_credentials().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, repfield, repfield.GetCachedSize(), - target, stream); - } - - // string stat_prefix = 4; - if (!this->_internal_stat_prefix().empty()) { - const std::string& _s = this->_internal_stat_prefix(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.stat_prefix"); - target = stream->WriteStringMaybeAliased(4, _s, target); - } - - // string credentials_factory_name = 5; - if (!this->_internal_credentials_factory_name().empty()) { - const std::string& _s = this->_internal_credentials_factory_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.credentials_factory_name"); - target = stream->WriteStringMaybeAliased(5, _s, target); - } - - // .google.protobuf.Struct config = 6; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, *_impl_.config_, _impl_.config_->GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc) - return target; -} - -::size_t GrpcService_GoogleGrpc::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; - total_size += 1UL * this->_internal_call_credentials_size(); - for (const auto& msg : this->_internal_call_credentials()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - // string target_uri = 1; - if (!this->_internal_target_uri().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_target_uri()); - } - - // string stat_prefix = 4; - if (!this->_internal_stat_prefix().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_stat_prefix()); - } - - // string credentials_factory_name = 5; - if (!this->_internal_credentials_factory_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_credentials_factory_name()); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.channel_credentials_); - } - - // .google.protobuf.Struct config = 6; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.config_); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GrpcService_GoogleGrpc::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast<GrpcService_GoogleGrpc*>(&to_msg); - auto& from = static_cast<const GrpcService_GoogleGrpc&>(from_msg); - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_call_credentials()->MergeFrom( - from._internal_call_credentials()); - if (!from._internal_target_uri().empty()) { - _this->_internal_set_target_uri(from._internal_target_uri()); - } - if (!from._internal_stat_prefix().empty()) { - _this->_internal_set_stat_prefix(from._internal_stat_prefix()); - } - if (!from._internal_credentials_factory_name().empty()) { - _this->_internal_set_credentials_factory_name(from._internal_credentials_factory_name()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.channel_credentials_ != nullptr); - if (_this->_impl_.channel_credentials_ == nullptr) { - _this->_impl_.channel_credentials_ = - ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc_ChannelCredentials>(arena, *from._impl_.channel_credentials_); - } else { - _this->_impl_.channel_credentials_->MergeFrom(*from._impl_.channel_credentials_); - } - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(from._impl_.config_ != nullptr); - if (_this->_impl_.config_ == nullptr) { - _this->_impl_.config_ = - ::google::protobuf::Message::CopyConstruct<::google::protobuf::Struct>(arena, *from._impl_.config_); - } else { - _this->_impl_.config_->MergeFrom(*from._impl_.config_); - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GrpcService_GoogleGrpc::CopyFrom(const GrpcService_GoogleGrpc& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc::InternalSwap(GrpcService_GoogleGrpc* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.call_credentials_.InternalSwap(&other->_impl_.call_credentials_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.target_uri_, &other->_impl_.target_uri_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.stat_prefix_, &other->_impl_.stat_prefix_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.credentials_factory_name_, &other->_impl_.credentials_factory_name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.config_) - + sizeof(GrpcService_GoogleGrpc::_impl_.config_) - - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.channel_credentials_)>( - reinterpret_cast<char*>(&_impl_.channel_credentials_), - reinterpret_cast<char*>(&other->_impl_.channel_credentials_)); -} - -::google::protobuf::Metadata GrpcService_GoogleGrpc::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, - &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, - file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[11]); -} -// =================================================================== - -class GrpcService_HeaderValue::_Internal { - public: -}; - -GrpcService_HeaderValue::GrpcService_HeaderValue(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:GrpcService.HeaderValue) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_HeaderValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : key_(arena, from.key_), - value_(arena, from.value_), - _cached_size_{0} {} - -GrpcService_HeaderValue::GrpcService_HeaderValue( - ::google::protobuf::Arena* arena, - const GrpcService_HeaderValue& from) - : ::google::protobuf::Message(arena) { - GrpcService_HeaderValue* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:GrpcService.HeaderValue) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_HeaderValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : key_(arena), - value_(arena), - _cached_size_{0} {} - -inline void GrpcService_HeaderValue::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GrpcService_HeaderValue::~GrpcService_HeaderValue() { - // @@protoc_insertion_point(destructor:GrpcService.HeaderValue) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GrpcService_HeaderValue::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.key_.Destroy(); - _impl_.value_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GrpcService_HeaderValue::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GrpcService_HeaderValue, _impl_._cached_size_), - false, - }, - &GrpcService_HeaderValue::MergeImpl, - &GrpcService_HeaderValue::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GrpcService_HeaderValue::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.HeaderValue) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.key_.ClearToEmpty(); - _impl_.value_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GrpcService_HeaderValue::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 40, 2> GrpcService_HeaderValue::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GrpcService_HeaderValue_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::GrpcService_HeaderValue>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string value = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_HeaderValue, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_HeaderValue, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(GrpcService_HeaderValue, _impl_.key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string value = 2; - {PROTOBUF_FIELD_OFFSET(GrpcService_HeaderValue, _impl_.value_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\27\3\5\0\0\0\0\0" - "GrpcService.HeaderValue" - "key" - "value" - }}, -}; - -::uint8_t* GrpcService_HeaderValue::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.HeaderValue) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string key = 1; - if (!this->_internal_key().empty()) { - const std::string& _s = this->_internal_key(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.HeaderValue.key"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // string value = 2; - if (!this->_internal_value().empty()) { - const std::string& _s = this->_internal_value(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.HeaderValue.value"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:GrpcService.HeaderValue) - return target; -} - -::size_t GrpcService_HeaderValue::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.HeaderValue) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string key = 1; - if (!this->_internal_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_key()); - } - - // string value = 2; - if (!this->_internal_value().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_value()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GrpcService_HeaderValue::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast<GrpcService_HeaderValue*>(&to_msg); - auto& from = static_cast<const GrpcService_HeaderValue&>(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.HeaderValue) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_key().empty()) { - _this->_internal_set_key(from._internal_key()); - } - if (!from._internal_value().empty()) { - _this->_internal_set_value(from._internal_value()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GrpcService_HeaderValue::CopyFrom(const GrpcService_HeaderValue& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.HeaderValue) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GrpcService_HeaderValue::IsInitialized() const { - return true; -} - -void GrpcService_HeaderValue::InternalSwap(GrpcService_HeaderValue* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, &other->_impl_.key_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.value_, &other->_impl_.value_, arena); -} - -::google::protobuf::Metadata GrpcService_HeaderValue::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, - &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, - file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[12]); -} -// =================================================================== - -class GrpcService::_Internal { - public: - using HasBits = decltype(std::declval<GrpcService>()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GrpcService, _impl_._has_bits_); - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::GrpcService, _impl_._oneof_case_); -}; - -void GrpcService::set_allocated_envoy_grpc(::GrpcService_EnvoyGrpc* envoy_grpc) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_target_specifier(); - if (envoy_grpc) { - ::google::protobuf::Arena* submessage_arena = envoy_grpc->GetArena(); - if (message_arena != submessage_arena) { - envoy_grpc = ::google::protobuf::internal::GetOwnedMessage(message_arena, envoy_grpc, submessage_arena); - } - set_has_envoy_grpc(); - _impl_.target_specifier_.envoy_grpc_ = envoy_grpc; - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.envoy_grpc) -} -void GrpcService::set_allocated_google_grpc(::GrpcService_GoogleGrpc* google_grpc) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_target_specifier(); - if (google_grpc) { - ::google::protobuf::Arena* submessage_arena = google_grpc->GetArena(); - if (message_arena != submessage_arena) { - google_grpc = ::google::protobuf::internal::GetOwnedMessage(message_arena, google_grpc, submessage_arena); - } - set_has_google_grpc(); - _impl_.target_specifier_.google_grpc_ = google_grpc; - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.google_grpc) -} -void GrpcService::clear_timeout() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.timeout_ != nullptr) _impl_.timeout_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -GrpcService::GrpcService(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:GrpcService) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - initial_metadata_{visibility, arena, from.initial_metadata_}, - target_specifier_{}, - _oneof_case_{from._oneof_case_[0]} {} - -GrpcService::GrpcService( - ::google::protobuf::Arena* arena, - const GrpcService& from) - : ::google::protobuf::Message(arena) { - GrpcService* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.timeout_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::google::protobuf::Duration>( - arena, *from._impl_.timeout_) - : nullptr; - switch (target_specifier_case()) { - case TARGET_SPECIFIER_NOT_SET: - break; - case kEnvoyGrpc: - _impl_.target_specifier_.envoy_grpc_ = ::google::protobuf::Message::CopyConstruct<::GrpcService_EnvoyGrpc>(arena, *from._impl_.target_specifier_.envoy_grpc_); - break; - case kGoogleGrpc: - _impl_.target_specifier_.google_grpc_ = ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc>(arena, *from._impl_.target_specifier_.google_grpc_); - break; - } - - // @@protoc_insertion_point(copy_constructor:GrpcService) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - initial_metadata_{visibility, arena}, - target_specifier_{}, - _oneof_case_{} {} - -inline void GrpcService::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.timeout_ = {}; -} -GrpcService::~GrpcService() { - // @@protoc_insertion_point(destructor:GrpcService) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GrpcService::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.timeout_; - if (has_target_specifier()) { - clear_target_specifier(); - } - _impl_.~Impl_(); -} - -void GrpcService::clear_target_specifier() { -// @@protoc_insertion_point(one_of_clear_start:GrpcService) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - switch (target_specifier_case()) { - case kEnvoyGrpc: { - if (GetArena() == nullptr) { - delete _impl_.target_specifier_.envoy_grpc_; - } - break; - } - case kGoogleGrpc: { - if (GetArena() == nullptr) { - delete _impl_.target_specifier_.google_grpc_; - } - break; - } - case TARGET_SPECIFIER_NOT_SET: { - break; - } - } - _impl_._oneof_case_[0] = TARGET_SPECIFIER_NOT_SET; -} - - -const ::google::protobuf::MessageLite::ClassData* -GrpcService::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GrpcService, _impl_._cached_size_), - false, - }, - &GrpcService::MergeImpl, - &GrpcService::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GrpcService::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.initial_metadata_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.timeout_ != nullptr); - _impl_.timeout_->Clear(); - } - clear_target_specifier(); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GrpcService::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 4, 0, 2> GrpcService::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GrpcService, _impl_._has_bits_), - 0, // no _extensions_ - 5, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967272, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 4, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GrpcService_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::GrpcService>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // repeated .GrpcService.HeaderValue initial_metadata = 5; - {::_pbi::TcParser::FastMtR1, - {42, 63, 3, PROTOBUF_FIELD_OFFSET(GrpcService, _impl_.initial_metadata_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .google.protobuf.Duration timeout = 3; - {::_pbi::TcParser::FastMtS1, - {26, 0, 2, PROTOBUF_FIELD_OFFSET(GrpcService, _impl_.timeout_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .GrpcService.EnvoyGrpc envoy_grpc = 1; - {PROTOBUF_FIELD_OFFSET(GrpcService, _impl_.target_specifier_.envoy_grpc_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .GrpcService.GoogleGrpc google_grpc = 2; - {PROTOBUF_FIELD_OFFSET(GrpcService, _impl_.target_specifier_.google_grpc_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Duration timeout = 3; - {PROTOBUF_FIELD_OFFSET(GrpcService, _impl_.timeout_), _Internal::kHasBitsOffset + 0, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .GrpcService.HeaderValue initial_metadata = 5; - {PROTOBUF_FIELD_OFFSET(GrpcService, _impl_.initial_metadata_), -1, 3, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::GrpcService_EnvoyGrpc>()}, - {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()}, - {::_pbi::TcParser::GetTable<::GrpcService_HeaderValue>()}, - }}, {{ - }}, -}; - -::uint8_t* GrpcService::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - switch (target_specifier_case()) { - case kEnvoyGrpc: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.target_specifier_.envoy_grpc_, _impl_.target_specifier_.envoy_grpc_->GetCachedSize(), target, stream); - break; - } - case kGoogleGrpc: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.target_specifier_.google_grpc_, _impl_.target_specifier_.google_grpc_->GetCachedSize(), target, stream); - break; - } - default: - break; - } - cached_has_bits = _impl_._has_bits_[0]; - // .google.protobuf.Duration timeout = 3; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *_impl_.timeout_, _impl_.timeout_->GetCachedSize(), target, stream); - } - - // repeated .GrpcService.HeaderValue initial_metadata = 5; - for (unsigned i = 0, n = static_cast<unsigned>( - this->_internal_initial_metadata_size()); - i < n; i++) { - const auto& repfield = this->_internal_initial_metadata().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, repfield, repfield.GetCachedSize(), - target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:GrpcService) - return target; -} - -::size_t GrpcService::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .GrpcService.HeaderValue initial_metadata = 5; - total_size += 1UL * this->_internal_initial_metadata_size(); - for (const auto& msg : this->_internal_initial_metadata()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - // .google.protobuf.Duration timeout = 3; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.timeout_); - } - - switch (target_specifier_case()) { - // .GrpcService.EnvoyGrpc envoy_grpc = 1; - case kEnvoyGrpc: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.target_specifier_.envoy_grpc_); - break; - } - // .GrpcService.GoogleGrpc google_grpc = 2; - case kGoogleGrpc: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.target_specifier_.google_grpc_); - break; - } - case TARGET_SPECIFIER_NOT_SET: { - break; - } - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GrpcService::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast<GrpcService*>(&to_msg); - auto& from = static_cast<const GrpcService&>(from_msg); - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_initial_metadata()->MergeFrom( - from._internal_initial_metadata()); - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.timeout_ != nullptr); - if (_this->_impl_.timeout_ == nullptr) { - _this->_impl_.timeout_ = - ::google::protobuf::Message::CopyConstruct<::google::protobuf::Duration>(arena, *from._impl_.timeout_); - } else { - _this->_impl_.timeout_->MergeFrom(*from._impl_.timeout_); - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { - const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; - const bool oneof_needs_init = oneof_to_case != oneof_from_case; - if (oneof_needs_init) { - if (oneof_to_case != 0) { - _this->clear_target_specifier(); - } - _this->_impl_._oneof_case_[0] = oneof_from_case; - } - - switch (oneof_from_case) { - case kEnvoyGrpc: { - if (oneof_needs_init) { - _this->_impl_.target_specifier_.envoy_grpc_ = - ::google::protobuf::Message::CopyConstruct<::GrpcService_EnvoyGrpc>(arena, *from._impl_.target_specifier_.envoy_grpc_); - } else { - _this->_impl_.target_specifier_.envoy_grpc_->MergeFrom(from._internal_envoy_grpc()); - } - break; - } - case kGoogleGrpc: { - if (oneof_needs_init) { - _this->_impl_.target_specifier_.google_grpc_ = - ::google::protobuf::Message::CopyConstruct<::GrpcService_GoogleGrpc>(arena, *from._impl_.target_specifier_.google_grpc_); - } else { - _this->_impl_.target_specifier_.google_grpc_->MergeFrom(from._internal_google_grpc()); - } - break; - } - case TARGET_SPECIFIER_NOT_SET: - break; - } - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GrpcService::CopyFrom(const GrpcService& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GrpcService::IsInitialized() const { - return true; -} - -void GrpcService::InternalSwap(GrpcService* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.initial_metadata_.InternalSwap(&other->_impl_.initial_metadata_); - swap(_impl_.timeout_, other->_impl_.timeout_); - swap(_impl_.target_specifier_, other->_impl_.target_specifier_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); -} - -::google::protobuf::Metadata GrpcService::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_getter, - &descriptor_table_proxy_5fwasm_5fintrinsics_2eproto_once, - file_level_metadata_proxy_5fwasm_5fintrinsics_2eproto[13]); -} -// @@protoc_insertion_point(namespace_scope) -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -// @@protoc_insertion_point(global_scope) -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::std::false_type _static_init_ PROTOBUF_UNUSED = - (::_pbi::AddDescriptors(&descriptor_table_proxy_5fwasm_5fintrinsics_2eproto), - ::std::false_type{}); -#include "google/protobuf/port_undef.inc" diff --git a/proxy_wasm_intrinsics.pb.h b/proxy_wasm_intrinsics.pb.h deleted file mode 100644 index b9e7062..0000000 --- a/proxy_wasm_intrinsics.pb.h +++ /dev/null @@ -1,6398 +0,0 @@ -// Copyright 2016-2019 Envoy Project Authors -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: proxy_wasm_intrinsics.proto -// Protobuf C++ Version: 5.26.1 - -#ifndef GOOGLE_PROTOBUF_INCLUDED_proxy_5fwasm_5fintrinsics_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_proxy_5fwasm_5fintrinsics_2eproto_2epb_2eh - -#include <limits> -#include <string> -#include <type_traits> -#include <utility> - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION != 5026001 -#error "Protobuf C++ gencode is built with an incompatible version of" -#error "Protobuf C++ headers/runtime. See" -#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" -#endif -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_bases.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" -#include "google/protobuf/any.pb.h" -#include "google/protobuf/duration.pb.h" -#include "google/protobuf/empty.pb.h" -#include "google/protobuf/struct.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - -#define PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_2eproto - -namespace google { -namespace protobuf { -namespace internal { -class AnyMetadata; -} // namespace internal -} // namespace protobuf -} // namespace google - -// Internal implementation detail -- do not use these members. -struct TableStruct_proxy_5fwasm_5fintrinsics_2eproto { - static const ::uint32_t offsets[]; -}; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_proxy_5fwasm_5fintrinsics_2eproto; -class DataSource; -struct DataSourceDefaultTypeInternal; -extern DataSourceDefaultTypeInternal _DataSource_default_instance_; -class GrpcService; -struct GrpcServiceDefaultTypeInternal; -extern GrpcServiceDefaultTypeInternal _GrpcService_default_instance_; -class GrpcService_EnvoyGrpc; -struct GrpcService_EnvoyGrpcDefaultTypeInternal; -extern GrpcService_EnvoyGrpcDefaultTypeInternal _GrpcService_EnvoyGrpc_default_instance_; -class GrpcService_GoogleGrpc; -struct GrpcService_GoogleGrpcDefaultTypeInternal; -extern GrpcService_GoogleGrpcDefaultTypeInternal _GrpcService_GoogleGrpc_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials; -struct GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal; -extern GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials; -struct GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal; -extern GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin; -struct GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal; -extern GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials; -struct GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal; -extern GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials_StsService; -struct GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal; -extern GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_; -class GrpcService_GoogleGrpc_ChannelCredentials; -struct GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal; -extern GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_ChannelCredentials_default_instance_; -class GrpcService_GoogleGrpc_GoogleLocalCredentials; -struct GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal; -extern GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_; -class GrpcService_GoogleGrpc_SslCredentials; -struct GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal; -extern GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_SslCredentials_default_instance_; -class GrpcService_HeaderValue; -struct GrpcService_HeaderValueDefaultTypeInternal; -extern GrpcService_HeaderValueDefaultTypeInternal _GrpcService_HeaderValue_default_instance_; -class WKT; -struct WKTDefaultTypeInternal; -extern WKTDefaultTypeInternal _WKT_default_instance_; -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - - -// =================================================================== - - -// ------------------------------------------------------------------- - -class GrpcService_HeaderValue final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:GrpcService.HeaderValue) */ { - public: - inline GrpcService_HeaderValue() : GrpcService_HeaderValue(nullptr) {} - ~GrpcService_HeaderValue() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR GrpcService_HeaderValue( - ::google::protobuf::internal::ConstantInitialized); - - inline GrpcService_HeaderValue(const GrpcService_HeaderValue& from) : GrpcService_HeaderValue(nullptr, from) {} - inline GrpcService_HeaderValue(GrpcService_HeaderValue&& from) noexcept - : GrpcService_HeaderValue(nullptr, std::move(from)) {} - inline GrpcService_HeaderValue& operator=(const GrpcService_HeaderValue& from) { - CopyFrom(from); - return *this; - } - inline GrpcService_HeaderValue& operator=(GrpcService_HeaderValue&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GrpcService_HeaderValue& default_instance() { - return *internal_default_instance(); - } - static inline const GrpcService_HeaderValue* internal_default_instance() { - return reinterpret_cast<const GrpcService_HeaderValue*>( - &_GrpcService_HeaderValue_default_instance_); - } - static constexpr int kIndexInFileMessages = 12; - friend void swap(GrpcService_HeaderValue& a, GrpcService_HeaderValue& b) { a.Swap(&b); } - inline void Swap(GrpcService_HeaderValue* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrpcService_HeaderValue* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrpcService_HeaderValue* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct<GrpcService_HeaderValue>(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GrpcService_HeaderValue& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GrpcService_HeaderValue& from) { GrpcService_HeaderValue::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GrpcService_HeaderValue* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "GrpcService.HeaderValue"; } - - protected: - explicit GrpcService_HeaderValue(::google::protobuf::Arena* arena); - GrpcService_HeaderValue(::google::protobuf::Arena* arena, const GrpcService_HeaderValue& from); - GrpcService_HeaderValue(::google::protobuf::Arena* arena, GrpcService_HeaderValue&& from) noexcept - : GrpcService_HeaderValue(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kKeyFieldNumber = 1, - kValueFieldNumber = 2, - }; - // string key = 1; - void clear_key() ; - const std::string& key() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_key(Arg_&& arg, Args_... args); - std::string* mutable_key(); - PROTOBUF_NODISCARD std::string* release_key(); - void set_allocated_key(std::string* value); - - private: - const std::string& _internal_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_key( - const std::string& value); - std::string* _internal_mutable_key(); - - public: - // string value = 2; - void clear_value() ; - const std::string& value() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_value(Arg_&& arg, Args_... args); - std::string* mutable_value(); - PROTOBUF_NODISCARD std::string* release_value(); - void set_allocated_value(std::string* value); - - private: - const std::string& _internal_value() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_value( - const std::string& value); - std::string* _internal_mutable_value(); - - public: - // @@protoc_insertion_point(class_scope:GrpcService.HeaderValue) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 40, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr key_; - ::google::protobuf::internal::ArenaStringPtr value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_GoogleGrpc_GoogleLocalCredentials final : public ::google::protobuf::internal::ZeroFieldsBase -/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.GoogleLocalCredentials) */ { - public: - inline GrpcService_GoogleGrpc_GoogleLocalCredentials() : GrpcService_GoogleGrpc_GoogleLocalCredentials(nullptr) {} - template <typename = void> - explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_GoogleLocalCredentials( - ::google::protobuf::internal::ConstantInitialized); - - inline GrpcService_GoogleGrpc_GoogleLocalCredentials(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from) : GrpcService_GoogleGrpc_GoogleLocalCredentials(nullptr, from) {} - inline GrpcService_GoogleGrpc_GoogleLocalCredentials(GrpcService_GoogleGrpc_GoogleLocalCredentials&& from) noexcept - : GrpcService_GoogleGrpc_GoogleLocalCredentials(nullptr, std::move(from)) {} - inline GrpcService_GoogleGrpc_GoogleLocalCredentials& operator=(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from) { - CopyFrom(from); - return *this; - } - inline GrpcService_GoogleGrpc_GoogleLocalCredentials& operator=(GrpcService_GoogleGrpc_GoogleLocalCredentials&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GrpcService_GoogleGrpc_GoogleLocalCredentials& default_instance() { - return *internal_default_instance(); - } - static inline const GrpcService_GoogleGrpc_GoogleLocalCredentials* internal_default_instance() { - return reinterpret_cast<const GrpcService_GoogleGrpc_GoogleLocalCredentials*>( - &_GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_); - } - static constexpr int kIndexInFileMessages = 4; - friend void swap(GrpcService_GoogleGrpc_GoogleLocalCredentials& a, GrpcService_GoogleGrpc_GoogleLocalCredentials& b) { a.Swap(&b); } - inline void Swap(GrpcService_GoogleGrpc_GoogleLocalCredentials* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrpcService_GoogleGrpc_GoogleLocalCredentials* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrpcService_GoogleGrpc_GoogleLocalCredentials* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct<GrpcService_GoogleGrpc_GoogleLocalCredentials>(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.GoogleLocalCredentials"; } - - protected: - explicit GrpcService_GoogleGrpc_GoogleLocalCredentials(::google::protobuf::Arena* arena); - GrpcService_GoogleGrpc_GoogleLocalCredentials(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_GoogleLocalCredentials& from); - GrpcService_GoogleGrpc_GoogleLocalCredentials(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_GoogleLocalCredentials&& from) noexcept - : GrpcService_GoogleGrpc_GoogleLocalCredentials(arena) { - *this = ::std::move(from); - } - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.GoogleLocalCredentials) - private: - class _Internal; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_GoogleGrpc_CallCredentials_StsService final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials.StsService) */ { - public: - inline GrpcService_GoogleGrpc_CallCredentials_StsService() : GrpcService_GoogleGrpc_CallCredentials_StsService(nullptr) {} - ~GrpcService_GoogleGrpc_CallCredentials_StsService() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_StsService( - ::google::protobuf::internal::ConstantInitialized); - - inline GrpcService_GoogleGrpc_CallCredentials_StsService(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) : GrpcService_GoogleGrpc_CallCredentials_StsService(nullptr, from) {} - inline GrpcService_GoogleGrpc_CallCredentials_StsService(GrpcService_GoogleGrpc_CallCredentials_StsService&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials_StsService(nullptr, 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 (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GrpcService_GoogleGrpc_CallCredentials_StsService& default_instance() { - return *internal_default_instance(); - } - static inline const GrpcService_GoogleGrpc_CallCredentials_StsService* internal_default_instance() { - return reinterpret_cast<const GrpcService_GoogleGrpc_CallCredentials_StsService*>( - &_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; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrpcService_GoogleGrpc_CallCredentials_StsService* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrpcService_GoogleGrpc_CallCredentials_StsService* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct<GrpcService_GoogleGrpc_CallCredentials_StsService>(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) { GrpcService_GoogleGrpc_CallCredentials_StsService::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GrpcService_GoogleGrpc_CallCredentials_StsService* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.CallCredentials.StsService"; } - - protected: - explicit GrpcService_GoogleGrpc_CallCredentials_StsService(::google::protobuf::Arena* arena); - GrpcService_GoogleGrpc_CallCredentials_StsService(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_CallCredentials_StsService& from); - GrpcService_GoogleGrpc_CallCredentials_StsService(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_CallCredentials_StsService&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials_StsService(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() 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; - template <typename Arg_ = const std::string&, typename... Args_> - void set_token_exchange_service_uri(Arg_&& arg, Args_... args); - std::string* mutable_token_exchange_service_uri(); - PROTOBUF_NODISCARD std::string* release_token_exchange_service_uri(); - void set_allocated_token_exchange_service_uri(std::string* value); - - private: - const std::string& _internal_token_exchange_service_uri() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_token_exchange_service_uri( - const std::string& value); - std::string* _internal_mutable_token_exchange_service_uri(); - - public: - // string resource = 2; - void clear_resource() ; - const std::string& resource() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_resource(Arg_&& arg, Args_... args); - std::string* mutable_resource(); - PROTOBUF_NODISCARD std::string* release_resource(); - void set_allocated_resource(std::string* value); - - private: - const std::string& _internal_resource() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_resource( - const std::string& value); - std::string* _internal_mutable_resource(); - - public: - // string audience = 3; - void clear_audience() ; - const std::string& audience() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_audience(Arg_&& arg, Args_... args); - std::string* mutable_audience(); - PROTOBUF_NODISCARD std::string* release_audience(); - void set_allocated_audience(std::string* value); - - private: - const std::string& _internal_audience() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_audience( - const std::string& value); - std::string* _internal_mutable_audience(); - - public: - // string scope = 4; - void clear_scope() ; - const std::string& scope() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_scope(Arg_&& arg, Args_... args); - std::string* mutable_scope(); - PROTOBUF_NODISCARD std::string* release_scope(); - void set_allocated_scope(std::string* value); - - private: - const std::string& _internal_scope() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_scope( - const std::string& value); - std::string* _internal_mutable_scope(); - - public: - // string requested_token_type = 5; - void clear_requested_token_type() ; - const std::string& requested_token_type() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_requested_token_type(Arg_&& arg, Args_... args); - std::string* mutable_requested_token_type(); - PROTOBUF_NODISCARD std::string* release_requested_token_type(); - void set_allocated_requested_token_type(std::string* value); - - private: - const std::string& _internal_requested_token_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_requested_token_type( - const std::string& value); - std::string* _internal_mutable_requested_token_type(); - - public: - // string subject_token_path = 6; - void clear_subject_token_path() ; - const std::string& subject_token_path() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_subject_token_path(Arg_&& arg, Args_... args); - std::string* mutable_subject_token_path(); - PROTOBUF_NODISCARD std::string* release_subject_token_path(); - void set_allocated_subject_token_path(std::string* value); - - private: - const std::string& _internal_subject_token_path() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_subject_token_path( - const std::string& value); - std::string* _internal_mutable_subject_token_path(); - - public: - // string subject_token_type = 7; - void clear_subject_token_type() ; - const std::string& subject_token_type() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_subject_token_type(Arg_&& arg, Args_... args); - std::string* mutable_subject_token_type(); - PROTOBUF_NODISCARD std::string* release_subject_token_type(); - void set_allocated_subject_token_type(std::string* value); - - private: - const std::string& _internal_subject_token_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_subject_token_type( - const std::string& value); - std::string* _internal_mutable_subject_token_type(); - - public: - // string actor_token_path = 8; - void clear_actor_token_path() ; - const std::string& actor_token_path() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_actor_token_path(Arg_&& arg, Args_... args); - std::string* mutable_actor_token_path(); - PROTOBUF_NODISCARD std::string* release_actor_token_path(); - void set_allocated_actor_token_path(std::string* value); - - private: - const std::string& _internal_actor_token_path() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_actor_token_path( - const std::string& value); - std::string* _internal_mutable_actor_token_path(); - - public: - // string actor_token_type = 9; - void clear_actor_token_type() ; - const std::string& actor_token_type() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_actor_token_type(Arg_&& arg, Args_... args); - std::string* mutable_actor_token_type(); - PROTOBUF_NODISCARD std::string* release_actor_token_type(); - void set_allocated_actor_token_type(std::string* value); - - private: - const std::string& _internal_actor_token_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_actor_token_type( - const std::string& value); - std::string* _internal_mutable_actor_token_type(); - - public: - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.StsService) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 9, 0, - 201, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr token_exchange_service_uri_; - ::google::protobuf::internal::ArenaStringPtr resource_; - ::google::protobuf::internal::ArenaStringPtr audience_; - ::google::protobuf::internal::ArenaStringPtr scope_; - ::google::protobuf::internal::ArenaStringPtr requested_token_type_; - ::google::protobuf::internal::ArenaStringPtr subject_token_path_; - ::google::protobuf::internal::ArenaStringPtr subject_token_type_; - ::google::protobuf::internal::ArenaStringPtr actor_token_path_; - ::google::protobuf::internal::ArenaStringPtr actor_token_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) */ { - public: - inline GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials() : GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(nullptr) {} - ~GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials( - ::google::protobuf::internal::ConstantInitialized); - - inline GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) : GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(nullptr, from) {} - inline GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(nullptr, std::move(from)) {} - inline GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& operator=(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) { - CopyFrom(from); - return *this; - } - inline GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& operator=(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& default_instance() { - return *internal_default_instance(); - } - static inline const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* internal_default_instance() { - return reinterpret_cast<const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials*>( - &_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_); - } - static constexpr int kIndexInFileMessages = 6; - friend void swap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& a, GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& b) { a.Swap(&b); } - inline void Swap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct<GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials>(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) { GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials"; } - - protected: - explicit GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(::google::protobuf::Arena* arena); - GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from); - GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kJsonKeyFieldNumber = 1, - kTokenLifetimeSecondsFieldNumber = 2, - }; - // string json_key = 1; - void clear_json_key() ; - const std::string& json_key() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_json_key(Arg_&& arg, Args_... args); - std::string* mutable_json_key(); - PROTOBUF_NODISCARD std::string* release_json_key(); - void set_allocated_json_key(std::string* value); - - private: - const std::string& _internal_json_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_json_key( - const std::string& value); - std::string* _internal_mutable_json_key(); - - public: - // uint64 token_lifetime_seconds = 2; - void clear_token_lifetime_seconds() ; - ::uint64_t token_lifetime_seconds() const; - void set_token_lifetime_seconds(::uint64_t value); - - private: - ::uint64_t _internal_token_lifetime_seconds() const; - void _internal_set_token_lifetime_seconds(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 90, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr json_key_; - ::uint64_t token_lifetime_seconds_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) */ { - public: - inline GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials() : GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(nullptr) {} - ~GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials( - ::google::protobuf::internal::ConstantInitialized); - - inline GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) : GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(nullptr, from) {} - inline GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(nullptr, std::move(from)) {} - inline GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& operator=(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) { - CopyFrom(from); - return *this; - } - inline GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& operator=(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& default_instance() { - return *internal_default_instance(); - } - static inline const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* internal_default_instance() { - return reinterpret_cast<const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials*>( - &_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_); - } - static constexpr int kIndexInFileMessages = 7; - friend void swap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& a, GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& b) { a.Swap(&b); } - inline void Swap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct<GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials>(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) { GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials"; } - - protected: - explicit GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(::google::protobuf::Arena* arena); - GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from); - GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kAuthorizationTokenFieldNumber = 1, - kAuthoritySelectorFieldNumber = 2, - }; - // string authorization_token = 1; - void clear_authorization_token() ; - const std::string& authorization_token() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_authorization_token(Arg_&& arg, Args_... args); - std::string* mutable_authorization_token(); - PROTOBUF_NODISCARD std::string* release_authorization_token(); - void set_allocated_authorization_token(std::string* value); - - private: - const std::string& _internal_authorization_token() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_authorization_token( - const std::string& value); - std::string* _internal_mutable_authorization_token(); - - public: - // string authority_selector = 2; - void clear_authority_selector() ; - const std::string& authority_selector() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_authority_selector(Arg_&& arg, Args_... args); - std::string* mutable_authority_selector(); - PROTOBUF_NODISCARD std::string* release_authority_selector(); - void set_allocated_authority_selector(std::string* value); - - private: - const std::string& _internal_authority_selector() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_authority_selector( - const std::string& value); - std::string* _internal_mutable_authority_selector(); - - public: - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 105, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr authorization_token_; - ::google::protobuf::internal::ArenaStringPtr authority_selector_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_EnvoyGrpc final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:GrpcService.EnvoyGrpc) */ { - public: - inline GrpcService_EnvoyGrpc() : GrpcService_EnvoyGrpc(nullptr) {} - ~GrpcService_EnvoyGrpc() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR GrpcService_EnvoyGrpc( - ::google::protobuf::internal::ConstantInitialized); - - inline GrpcService_EnvoyGrpc(const GrpcService_EnvoyGrpc& from) : GrpcService_EnvoyGrpc(nullptr, from) {} - inline GrpcService_EnvoyGrpc(GrpcService_EnvoyGrpc&& from) noexcept - : GrpcService_EnvoyGrpc(nullptr, std::move(from)) {} - inline GrpcService_EnvoyGrpc& operator=(const GrpcService_EnvoyGrpc& from) { - CopyFrom(from); - return *this; - } - inline GrpcService_EnvoyGrpc& operator=(GrpcService_EnvoyGrpc&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GrpcService_EnvoyGrpc& default_instance() { - return *internal_default_instance(); - } - static inline const GrpcService_EnvoyGrpc* internal_default_instance() { - return reinterpret_cast<const GrpcService_EnvoyGrpc*>( - &_GrpcService_EnvoyGrpc_default_instance_); - } - static constexpr int kIndexInFileMessages = 2; - friend void swap(GrpcService_EnvoyGrpc& a, GrpcService_EnvoyGrpc& b) { a.Swap(&b); } - inline void Swap(GrpcService_EnvoyGrpc* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrpcService_EnvoyGrpc* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrpcService_EnvoyGrpc* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct<GrpcService_EnvoyGrpc>(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GrpcService_EnvoyGrpc& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GrpcService_EnvoyGrpc& from) { GrpcService_EnvoyGrpc::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GrpcService_EnvoyGrpc* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "GrpcService.EnvoyGrpc"; } - - protected: - explicit GrpcService_EnvoyGrpc(::google::protobuf::Arena* arena); - GrpcService_EnvoyGrpc(::google::protobuf::Arena* arena, const GrpcService_EnvoyGrpc& from); - GrpcService_EnvoyGrpc(::google::protobuf::Arena* arena, GrpcService_EnvoyGrpc&& from) noexcept - : GrpcService_EnvoyGrpc(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kClusterNameFieldNumber = 1, - }; - // string cluster_name = 1; - void clear_cluster_name() ; - const std::string& cluster_name() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_cluster_name(Arg_&& arg, Args_... args); - std::string* mutable_cluster_name(); - PROTOBUF_NODISCARD std::string* release_cluster_name(); - void set_allocated_cluster_name(std::string* value); - - private: - const std::string& _internal_cluster_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_cluster_name( - const std::string& value); - std::string* _internal_mutable_cluster_name(); - - public: - // @@protoc_insertion_point(class_scope:GrpcService.EnvoyGrpc) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 42, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr cluster_name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; -}; -// ------------------------------------------------------------------- - -class DataSource final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:DataSource) */ { - public: - inline DataSource() : DataSource(nullptr) {} - ~DataSource() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR DataSource( - ::google::protobuf::internal::ConstantInitialized); - - inline DataSource(const DataSource& from) : DataSource(nullptr, from) {} - inline DataSource(DataSource&& from) noexcept - : DataSource(nullptr, std::move(from)) {} - inline DataSource& operator=(const DataSource& from) { - CopyFrom(from); - return *this; - } - inline DataSource& operator=(DataSource&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const DataSource& default_instance() { - return *internal_default_instance(); - } - enum SpecifierCase { - kFilename = 1, - kInlineBytes = 2, - kInlineString = 3, - SPECIFIER_NOT_SET = 0, - }; - static inline const DataSource* internal_default_instance() { - return reinterpret_cast<const DataSource*>( - &_DataSource_default_instance_); - } - static constexpr int kIndexInFileMessages = 1; - friend void swap(DataSource& a, DataSource& b) { a.Swap(&b); } - inline void Swap(DataSource* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DataSource* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DataSource* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct<DataSource>(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const DataSource& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const DataSource& from) { DataSource::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(DataSource* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "DataSource"; } - - protected: - explicit DataSource(::google::protobuf::Arena* arena); - DataSource(::google::protobuf::Arena* arena, const DataSource& from); - DataSource(::google::protobuf::Arena* arena, DataSource&& from) noexcept - : DataSource(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kFilenameFieldNumber = 1, - kInlineBytesFieldNumber = 2, - kInlineStringFieldNumber = 3, - }; - // string filename = 1; - bool has_filename() const; - void clear_filename() ; - const std::string& filename() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_filename(Arg_&& arg, Args_... args); - std::string* mutable_filename(); - PROTOBUF_NODISCARD std::string* release_filename(); - void set_allocated_filename(std::string* value); - - private: - const std::string& _internal_filename() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_filename( - const std::string& value); - std::string* _internal_mutable_filename(); - - public: - // bytes inline_bytes = 2; - bool has_inline_bytes() const; - void clear_inline_bytes() ; - const std::string& inline_bytes() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_inline_bytes(Arg_&& arg, Args_... args); - std::string* mutable_inline_bytes(); - PROTOBUF_NODISCARD std::string* release_inline_bytes(); - void set_allocated_inline_bytes(std::string* value); - - private: - const std::string& _internal_inline_bytes() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_inline_bytes( - const std::string& value); - std::string* _internal_mutable_inline_bytes(); - - public: - // string inline_string = 3; - bool has_inline_string() const; - void clear_inline_string() ; - const std::string& inline_string() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_inline_string(Arg_&& arg, Args_... args); - std::string* mutable_inline_string(); - PROTOBUF_NODISCARD std::string* release_inline_string(); - void set_allocated_inline_string(std::string* value); - - private: - const std::string& _internal_inline_string() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_inline_string( - const std::string& value); - std::string* _internal_mutable_inline_string(); - - public: - void clear_specifier(); - SpecifierCase specifier_case() const; - // @@protoc_insertion_point(class_scope:DataSource) - private: - class _Internal; - void set_has_filename(); - void set_has_inline_bytes(); - void set_has_inline_string(); - inline bool has_specifier() const; - inline void clear_has_specifier(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 3, 0, - 40, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - union SpecifierUnion { - constexpr SpecifierUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::google::protobuf::internal::ArenaStringPtr filename_; - ::google::protobuf::internal::ArenaStringPtr inline_bytes_; - ::google::protobuf::internal::ArenaStringPtr inline_string_; - } specifier_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; -}; -// ------------------------------------------------------------------- - -class WKT final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:WKT) */ { - public: - inline WKT() : WKT(nullptr) {} - ~WKT() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR WKT( - ::google::protobuf::internal::ConstantInitialized); - - inline WKT(const WKT& from) : WKT(nullptr, from) {} - inline WKT(WKT&& from) noexcept - : WKT(nullptr, std::move(from)) {} - inline WKT& operator=(const WKT& from) { - CopyFrom(from); - return *this; - } - inline WKT& operator=(WKT&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const WKT& default_instance() { - return *internal_default_instance(); - } - static inline const WKT* internal_default_instance() { - return reinterpret_cast<const WKT*>( - &_WKT_default_instance_); - } - static constexpr int kIndexInFileMessages = 0; - friend void swap(WKT& a, WKT& b) { a.Swap(&b); } - inline void Swap(WKT* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(WKT* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - WKT* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct<WKT>(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const WKT& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const WKT& from) { WKT::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(WKT* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "WKT"; } - - protected: - explicit WKT(::google::protobuf::Arena* arena); - WKT(::google::protobuf::Arena* arena, const WKT& from); - WKT(::google::protobuf::Arena* arena, WKT&& from) noexcept - : WKT(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kStructFieldNumber = 1, - }; - // .google.protobuf.Struct struct = 1; - bool has_struct_() const; - void clear_struct_() ; - const ::google::protobuf::Struct& struct_() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_struct_(); - ::google::protobuf::Struct* mutable_struct_(); - void set_allocated_struct_(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_struct_(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_struct_(); - - private: - const ::google::protobuf::Struct& _internal_struct_() const; - ::google::protobuf::Struct* _internal_mutable_struct_(); - - public: - // @@protoc_insertion_point(class_scope:WKT) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::Struct* struct__; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_GoogleGrpc_SslCredentials final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.SslCredentials) */ { - public: - inline GrpcService_GoogleGrpc_SslCredentials() : GrpcService_GoogleGrpc_SslCredentials(nullptr) {} - ~GrpcService_GoogleGrpc_SslCredentials() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_SslCredentials( - ::google::protobuf::internal::ConstantInitialized); - - inline GrpcService_GoogleGrpc_SslCredentials(const GrpcService_GoogleGrpc_SslCredentials& from) : GrpcService_GoogleGrpc_SslCredentials(nullptr, from) {} - inline GrpcService_GoogleGrpc_SslCredentials(GrpcService_GoogleGrpc_SslCredentials&& from) noexcept - : GrpcService_GoogleGrpc_SslCredentials(nullptr, std::move(from)) {} - inline GrpcService_GoogleGrpc_SslCredentials& operator=(const GrpcService_GoogleGrpc_SslCredentials& from) { - CopyFrom(from); - return *this; - } - inline GrpcService_GoogleGrpc_SslCredentials& operator=(GrpcService_GoogleGrpc_SslCredentials&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GrpcService_GoogleGrpc_SslCredentials& default_instance() { - return *internal_default_instance(); - } - static inline const GrpcService_GoogleGrpc_SslCredentials* internal_default_instance() { - return reinterpret_cast<const GrpcService_GoogleGrpc_SslCredentials*>( - &_GrpcService_GoogleGrpc_SslCredentials_default_instance_); - } - static constexpr int kIndexInFileMessages = 3; - friend void swap(GrpcService_GoogleGrpc_SslCredentials& a, GrpcService_GoogleGrpc_SslCredentials& b) { a.Swap(&b); } - inline void Swap(GrpcService_GoogleGrpc_SslCredentials* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrpcService_GoogleGrpc_SslCredentials* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrpcService_GoogleGrpc_SslCredentials* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct<GrpcService_GoogleGrpc_SslCredentials>(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GrpcService_GoogleGrpc_SslCredentials& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GrpcService_GoogleGrpc_SslCredentials& from) { GrpcService_GoogleGrpc_SslCredentials::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GrpcService_GoogleGrpc_SslCredentials* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.SslCredentials"; } - - protected: - explicit GrpcService_GoogleGrpc_SslCredentials(::google::protobuf::Arena* arena); - GrpcService_GoogleGrpc_SslCredentials(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_SslCredentials& from); - GrpcService_GoogleGrpc_SslCredentials(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_SslCredentials&& from) noexcept - : GrpcService_GoogleGrpc_SslCredentials(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kRootCertsFieldNumber = 1, - kPrivateKeyFieldNumber = 2, - kCertChainFieldNumber = 3, - }; - // .DataSource root_certs = 1; - bool has_root_certs() const; - void clear_root_certs() ; - const ::DataSource& root_certs() const; - PROTOBUF_NODISCARD ::DataSource* release_root_certs(); - ::DataSource* mutable_root_certs(); - void set_allocated_root_certs(::DataSource* value); - void unsafe_arena_set_allocated_root_certs(::DataSource* value); - ::DataSource* unsafe_arena_release_root_certs(); - - private: - const ::DataSource& _internal_root_certs() const; - ::DataSource* _internal_mutable_root_certs(); - - public: - // .DataSource private_key = 2; - bool has_private_key() const; - void clear_private_key() ; - const ::DataSource& private_key() const; - PROTOBUF_NODISCARD ::DataSource* release_private_key(); - ::DataSource* mutable_private_key(); - void set_allocated_private_key(::DataSource* value); - void unsafe_arena_set_allocated_private_key(::DataSource* value); - ::DataSource* unsafe_arena_release_private_key(); - - private: - const ::DataSource& _internal_private_key() const; - ::DataSource* _internal_mutable_private_key(); - - public: - // .DataSource cert_chain = 3; - bool has_cert_chain() const; - void clear_cert_chain() ; - const ::DataSource& cert_chain() const; - PROTOBUF_NODISCARD ::DataSource* release_cert_chain(); - ::DataSource* mutable_cert_chain(); - void set_allocated_cert_chain(::DataSource* value); - void unsafe_arena_set_allocated_cert_chain(::DataSource* value); - ::DataSource* unsafe_arena_release_cert_chain(); - - private: - const ::DataSource& _internal_cert_chain() const; - ::DataSource* _internal_mutable_cert_chain(); - - public: - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.SslCredentials) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 3, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::DataSource* root_certs_; - ::DataSource* private_key_; - ::DataSource* cert_chain_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) */ { - public: - inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin() : GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(nullptr) {} - ~GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin( - ::google::protobuf::internal::ConstantInitialized); - - inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from) : GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(nullptr, from) {} - inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(nullptr, std::move(from)) {} - inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& operator=(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from) { - CopyFrom(from); - return *this; - } - inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& operator=(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& default_instance() { - return *internal_default_instance(); - } - enum ConfigTypeCase { - kConfig = 2, - kTypedConfig = 3, - CONFIG_TYPE_NOT_SET = 0, - }; - static inline const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* internal_default_instance() { - return reinterpret_cast<const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin*>( - &_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_); - } - static constexpr int kIndexInFileMessages = 8; - friend void swap(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& a, GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& b) { a.Swap(&b); } - inline void Swap(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct<GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin>(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from) { GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin"; } - - protected: - explicit GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(::google::protobuf::Arena* arena); - GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from); - GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kNameFieldNumber = 1, - kConfigFieldNumber = 2, - kTypedConfigFieldNumber = 3, - }; - // string name = 1; - void clear_name() ; - const std::string& name() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // .google.protobuf.Struct config = 2 [deprecated = true]; - [[deprecated]] bool has_config() const; - private: - bool _internal_has_config() const; - - public: - [[deprecated]] void clear_config() ; - [[deprecated]] const ::google::protobuf::Struct& config() const; - [[deprecated]] PROTOBUF_NODISCARD ::google::protobuf::Struct* release_config(); - [[deprecated]] ::google::protobuf::Struct* mutable_config(); - [[deprecated]] void set_allocated_config(::google::protobuf::Struct* value); - [[deprecated]] void unsafe_arena_set_allocated_config(::google::protobuf::Struct* value); - [[deprecated]] ::google::protobuf::Struct* unsafe_arena_release_config(); - - private: - const ::google::protobuf::Struct& _internal_config() const; - ::google::protobuf::Struct* _internal_mutable_config(); - - public: - // .google.protobuf.Any typed_config = 3; - bool has_typed_config() const; - private: - bool _internal_has_typed_config() const; - - public: - void clear_typed_config() ; - const ::google::protobuf::Any& typed_config() const; - PROTOBUF_NODISCARD ::google::protobuf::Any* release_typed_config(); - ::google::protobuf::Any* mutable_typed_config(); - void set_allocated_typed_config(::google::protobuf::Any* value); - void unsafe_arena_set_allocated_typed_config(::google::protobuf::Any* value); - ::google::protobuf::Any* unsafe_arena_release_typed_config(); - - private: - const ::google::protobuf::Any& _internal_typed_config() const; - ::google::protobuf::Any* _internal_mutable_typed_config(); - - public: - void clear_config_type(); - ConfigTypeCase config_type_case() const; - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - private: - class _Internal; - void set_has_config(); - void set_has_typed_config(); - inline bool has_config_type() const; - inline void clear_has_config_type(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 3, 2, - 81, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - union ConfigTypeUnion { - constexpr ConfigTypeUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::google::protobuf::Struct* config_; - ::google::protobuf::Any* typed_config_; - } config_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_GoogleGrpc_ChannelCredentials final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.ChannelCredentials) */ { - public: - inline GrpcService_GoogleGrpc_ChannelCredentials() : GrpcService_GoogleGrpc_ChannelCredentials(nullptr) {} - ~GrpcService_GoogleGrpc_ChannelCredentials() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_ChannelCredentials( - ::google::protobuf::internal::ConstantInitialized); - - inline GrpcService_GoogleGrpc_ChannelCredentials(const GrpcService_GoogleGrpc_ChannelCredentials& from) : GrpcService_GoogleGrpc_ChannelCredentials(nullptr, from) {} - inline GrpcService_GoogleGrpc_ChannelCredentials(GrpcService_GoogleGrpc_ChannelCredentials&& from) noexcept - : GrpcService_GoogleGrpc_ChannelCredentials(nullptr, std::move(from)) {} - inline GrpcService_GoogleGrpc_ChannelCredentials& operator=(const GrpcService_GoogleGrpc_ChannelCredentials& from) { - CopyFrom(from); - return *this; - } - inline GrpcService_GoogleGrpc_ChannelCredentials& operator=(GrpcService_GoogleGrpc_ChannelCredentials&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GrpcService_GoogleGrpc_ChannelCredentials& default_instance() { - return *internal_default_instance(); - } - enum CredentialSpecifierCase { - kSslCredentials = 1, - kGoogleDefault = 2, - kLocalCredentials = 3, - CREDENTIAL_SPECIFIER_NOT_SET = 0, - }; - static inline const GrpcService_GoogleGrpc_ChannelCredentials* internal_default_instance() { - return reinterpret_cast<const GrpcService_GoogleGrpc_ChannelCredentials*>( - &_GrpcService_GoogleGrpc_ChannelCredentials_default_instance_); - } - static constexpr int kIndexInFileMessages = 5; - friend void swap(GrpcService_GoogleGrpc_ChannelCredentials& a, GrpcService_GoogleGrpc_ChannelCredentials& b) { a.Swap(&b); } - inline void Swap(GrpcService_GoogleGrpc_ChannelCredentials* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrpcService_GoogleGrpc_ChannelCredentials* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrpcService_GoogleGrpc_ChannelCredentials* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct<GrpcService_GoogleGrpc_ChannelCredentials>(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GrpcService_GoogleGrpc_ChannelCredentials& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GrpcService_GoogleGrpc_ChannelCredentials& from) { GrpcService_GoogleGrpc_ChannelCredentials::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GrpcService_GoogleGrpc_ChannelCredentials* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.ChannelCredentials"; } - - protected: - explicit GrpcService_GoogleGrpc_ChannelCredentials(::google::protobuf::Arena* arena); - GrpcService_GoogleGrpc_ChannelCredentials(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_ChannelCredentials& from); - GrpcService_GoogleGrpc_ChannelCredentials(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_ChannelCredentials&& from) noexcept - : GrpcService_GoogleGrpc_ChannelCredentials(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kSslCredentialsFieldNumber = 1, - kGoogleDefaultFieldNumber = 2, - kLocalCredentialsFieldNumber = 3, - }; - // .GrpcService.GoogleGrpc.SslCredentials ssl_credentials = 1; - bool has_ssl_credentials() const; - private: - bool _internal_has_ssl_credentials() const; - - public: - void clear_ssl_credentials() ; - const ::GrpcService_GoogleGrpc_SslCredentials& ssl_credentials() const; - PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_SslCredentials* release_ssl_credentials(); - ::GrpcService_GoogleGrpc_SslCredentials* mutable_ssl_credentials(); - void set_allocated_ssl_credentials(::GrpcService_GoogleGrpc_SslCredentials* value); - void unsafe_arena_set_allocated_ssl_credentials(::GrpcService_GoogleGrpc_SslCredentials* value); - ::GrpcService_GoogleGrpc_SslCredentials* unsafe_arena_release_ssl_credentials(); - - private: - const ::GrpcService_GoogleGrpc_SslCredentials& _internal_ssl_credentials() const; - ::GrpcService_GoogleGrpc_SslCredentials* _internal_mutable_ssl_credentials(); - - public: - // .google.protobuf.Empty google_default = 2; - bool has_google_default() const; - private: - bool _internal_has_google_default() const; - - public: - void clear_google_default() ; - const ::google::protobuf::Empty& google_default() const; - PROTOBUF_NODISCARD ::google::protobuf::Empty* release_google_default(); - ::google::protobuf::Empty* mutable_google_default(); - void set_allocated_google_default(::google::protobuf::Empty* value); - void unsafe_arena_set_allocated_google_default(::google::protobuf::Empty* value); - ::google::protobuf::Empty* unsafe_arena_release_google_default(); - - private: - const ::google::protobuf::Empty& _internal_google_default() const; - ::google::protobuf::Empty* _internal_mutable_google_default(); - - public: - // .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; - bool has_local_credentials() const; - private: - bool _internal_has_local_credentials() const; - - public: - void clear_local_credentials() ; - const ::GrpcService_GoogleGrpc_GoogleLocalCredentials& local_credentials() const; - PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_GoogleLocalCredentials* release_local_credentials(); - ::GrpcService_GoogleGrpc_GoogleLocalCredentials* mutable_local_credentials(); - void set_allocated_local_credentials(::GrpcService_GoogleGrpc_GoogleLocalCredentials* value); - void unsafe_arena_set_allocated_local_credentials(::GrpcService_GoogleGrpc_GoogleLocalCredentials* value); - ::GrpcService_GoogleGrpc_GoogleLocalCredentials* unsafe_arena_release_local_credentials(); - - private: - const ::GrpcService_GoogleGrpc_GoogleLocalCredentials& _internal_local_credentials() const; - ::GrpcService_GoogleGrpc_GoogleLocalCredentials* _internal_mutable_local_credentials(); - - public: - void clear_credential_specifier(); - CredentialSpecifierCase credential_specifier_case() const; - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.ChannelCredentials) - private: - class _Internal; - void set_has_ssl_credentials(); - void set_has_google_default(); - void set_has_local_credentials(); - inline bool has_credential_specifier() const; - inline void clear_has_credential_specifier(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 3, 3, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - union CredentialSpecifierUnion { - constexpr CredentialSpecifierUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::GrpcService_GoogleGrpc_SslCredentials* ssl_credentials_; - ::google::protobuf::Empty* google_default_; - ::GrpcService_GoogleGrpc_GoogleLocalCredentials* local_credentials_; - } credential_specifier_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_GoogleGrpc_CallCredentials final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials) */ { - public: - inline GrpcService_GoogleGrpc_CallCredentials() : GrpcService_GoogleGrpc_CallCredentials(nullptr) {} - ~GrpcService_GoogleGrpc_CallCredentials() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials( - ::google::protobuf::internal::ConstantInitialized); - - inline GrpcService_GoogleGrpc_CallCredentials(const GrpcService_GoogleGrpc_CallCredentials& from) : GrpcService_GoogleGrpc_CallCredentials(nullptr, from) {} - inline GrpcService_GoogleGrpc_CallCredentials(GrpcService_GoogleGrpc_CallCredentials&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials(nullptr, std::move(from)) {} - inline GrpcService_GoogleGrpc_CallCredentials& operator=(const GrpcService_GoogleGrpc_CallCredentials& from) { - CopyFrom(from); - return *this; - } - inline GrpcService_GoogleGrpc_CallCredentials& operator=(GrpcService_GoogleGrpc_CallCredentials&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GrpcService_GoogleGrpc_CallCredentials& default_instance() { - return *internal_default_instance(); - } - enum CredentialSpecifierCase { - kAccessToken = 1, - kGoogleComputeEngine = 2, - kGoogleRefreshToken = 3, - kServiceAccountJwtAccess = 4, - kGoogleIam = 5, - kFromPlugin = 6, - kStsService = 7, - CREDENTIAL_SPECIFIER_NOT_SET = 0, - }; - static inline const GrpcService_GoogleGrpc_CallCredentials* internal_default_instance() { - return reinterpret_cast<const GrpcService_GoogleGrpc_CallCredentials*>( - &_GrpcService_GoogleGrpc_CallCredentials_default_instance_); - } - static constexpr int kIndexInFileMessages = 10; - friend void swap(GrpcService_GoogleGrpc_CallCredentials& a, GrpcService_GoogleGrpc_CallCredentials& b) { a.Swap(&b); } - inline void Swap(GrpcService_GoogleGrpc_CallCredentials* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrpcService_GoogleGrpc_CallCredentials* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrpcService_GoogleGrpc_CallCredentials* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct<GrpcService_GoogleGrpc_CallCredentials>(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials& from) { GrpcService_GoogleGrpc_CallCredentials::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GrpcService_GoogleGrpc_CallCredentials* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.CallCredentials"; } - - protected: - explicit GrpcService_GoogleGrpc_CallCredentials(::google::protobuf::Arena* arena); - GrpcService_GoogleGrpc_CallCredentials(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_CallCredentials& from); - GrpcService_GoogleGrpc_CallCredentials(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_CallCredentials&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - using ServiceAccountJWTAccessCredentials = GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials; - using GoogleIAMCredentials = GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials; - using MetadataCredentialsFromPlugin = GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin; - using StsService = GrpcService_GoogleGrpc_CallCredentials_StsService; - - // accessors ------------------------------------------------------- - enum : int { - kAccessTokenFieldNumber = 1, - kGoogleComputeEngineFieldNumber = 2, - kGoogleRefreshTokenFieldNumber = 3, - kServiceAccountJwtAccessFieldNumber = 4, - kGoogleIamFieldNumber = 5, - kFromPluginFieldNumber = 6, - kStsServiceFieldNumber = 7, - }; - // string access_token = 1; - bool has_access_token() const; - void clear_access_token() ; - const std::string& access_token() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_access_token(Arg_&& arg, Args_... args); - std::string* mutable_access_token(); - PROTOBUF_NODISCARD std::string* release_access_token(); - void set_allocated_access_token(std::string* value); - - private: - const std::string& _internal_access_token() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_access_token( - const std::string& value); - std::string* _internal_mutable_access_token(); - - public: - // .google.protobuf.Empty google_compute_engine = 2; - bool has_google_compute_engine() const; - private: - bool _internal_has_google_compute_engine() const; - - public: - void clear_google_compute_engine() ; - const ::google::protobuf::Empty& google_compute_engine() const; - PROTOBUF_NODISCARD ::google::protobuf::Empty* release_google_compute_engine(); - ::google::protobuf::Empty* mutable_google_compute_engine(); - void set_allocated_google_compute_engine(::google::protobuf::Empty* value); - void unsafe_arena_set_allocated_google_compute_engine(::google::protobuf::Empty* value); - ::google::protobuf::Empty* unsafe_arena_release_google_compute_engine(); - - private: - const ::google::protobuf::Empty& _internal_google_compute_engine() const; - ::google::protobuf::Empty* _internal_mutable_google_compute_engine(); - - public: - // string google_refresh_token = 3; - bool has_google_refresh_token() const; - void clear_google_refresh_token() ; - const std::string& google_refresh_token() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_google_refresh_token(Arg_&& arg, Args_... args); - std::string* mutable_google_refresh_token(); - PROTOBUF_NODISCARD std::string* release_google_refresh_token(); - void set_allocated_google_refresh_token(std::string* value); - - private: - const std::string& _internal_google_refresh_token() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_google_refresh_token( - const std::string& value); - std::string* _internal_mutable_google_refresh_token(); - - public: - // .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; - bool has_service_account_jwt_access() const; - private: - bool _internal_has_service_account_jwt_access() const; - - public: - void clear_service_account_jwt_access() ; - const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& service_account_jwt_access() const; - PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* release_service_account_jwt_access(); - ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* mutable_service_account_jwt_access(); - void set_allocated_service_account_jwt_access(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* value); - void unsafe_arena_set_allocated_service_account_jwt_access(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* value); - ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* unsafe_arena_release_service_account_jwt_access(); - - private: - const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& _internal_service_account_jwt_access() const; - ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* _internal_mutable_service_account_jwt_access(); - - public: - // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; - bool has_google_iam() const; - private: - bool _internal_has_google_iam() const; - - public: - void clear_google_iam() ; - const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& google_iam() const; - PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* release_google_iam(); - ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* mutable_google_iam(); - void set_allocated_google_iam(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* value); - void unsafe_arena_set_allocated_google_iam(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* value); - ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* unsafe_arena_release_google_iam(); - - private: - const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& _internal_google_iam() const; - ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* _internal_mutable_google_iam(); - - public: - // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; - bool has_from_plugin() const; - private: - bool _internal_has_from_plugin() const; - - public: - void clear_from_plugin() ; - const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from_plugin() const; - PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* release_from_plugin(); - ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* mutable_from_plugin(); - void set_allocated_from_plugin(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* value); - void unsafe_arena_set_allocated_from_plugin(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* value); - ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* unsafe_arena_release_from_plugin(); - - private: - const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& _internal_from_plugin() const; - ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* _internal_mutable_from_plugin(); - - public: - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - bool has_sts_service() const; - private: - bool _internal_has_sts_service() const; - - public: - void clear_sts_service() ; - const ::GrpcService_GoogleGrpc_CallCredentials_StsService& sts_service() const; - PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_CallCredentials_StsService* release_sts_service(); - ::GrpcService_GoogleGrpc_CallCredentials_StsService* mutable_sts_service(); - void set_allocated_sts_service(::GrpcService_GoogleGrpc_CallCredentials_StsService* value); - void unsafe_arena_set_allocated_sts_service(::GrpcService_GoogleGrpc_CallCredentials_StsService* value); - ::GrpcService_GoogleGrpc_CallCredentials_StsService* unsafe_arena_release_sts_service(); - - private: - const ::GrpcService_GoogleGrpc_CallCredentials_StsService& _internal_sts_service() const; - ::GrpcService_GoogleGrpc_CallCredentials_StsService* _internal_mutable_sts_service(); - - public: - void clear_credential_specifier(); - CredentialSpecifierCase credential_specifier_case() const; - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials) - private: - class _Internal; - void set_has_access_token(); - void set_has_google_compute_engine(); - void set_has_google_refresh_token(); - 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(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 7, 5, - 79, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - union CredentialSpecifierUnion { - constexpr CredentialSpecifierUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::google::protobuf::internal::ArenaStringPtr access_token_; - ::google::protobuf::Empty* google_compute_engine_; - ::google::protobuf::internal::ArenaStringPtr google_refresh_token_; - ::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 ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_GoogleGrpc final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc) */ { - public: - inline GrpcService_GoogleGrpc() : GrpcService_GoogleGrpc(nullptr) {} - ~GrpcService_GoogleGrpc() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc( - ::google::protobuf::internal::ConstantInitialized); - - inline GrpcService_GoogleGrpc(const GrpcService_GoogleGrpc& from) : GrpcService_GoogleGrpc(nullptr, from) {} - inline GrpcService_GoogleGrpc(GrpcService_GoogleGrpc&& from) noexcept - : GrpcService_GoogleGrpc(nullptr, std::move(from)) {} - inline GrpcService_GoogleGrpc& operator=(const GrpcService_GoogleGrpc& from) { - CopyFrom(from); - return *this; - } - inline GrpcService_GoogleGrpc& operator=(GrpcService_GoogleGrpc&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GrpcService_GoogleGrpc& default_instance() { - return *internal_default_instance(); - } - static inline const GrpcService_GoogleGrpc* internal_default_instance() { - return reinterpret_cast<const GrpcService_GoogleGrpc*>( - &_GrpcService_GoogleGrpc_default_instance_); - } - static constexpr int kIndexInFileMessages = 11; - friend void swap(GrpcService_GoogleGrpc& a, GrpcService_GoogleGrpc& b) { a.Swap(&b); } - inline void Swap(GrpcService_GoogleGrpc* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrpcService_GoogleGrpc* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrpcService_GoogleGrpc* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct<GrpcService_GoogleGrpc>(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GrpcService_GoogleGrpc& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GrpcService_GoogleGrpc& from) { GrpcService_GoogleGrpc::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GrpcService_GoogleGrpc* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc"; } - - protected: - explicit GrpcService_GoogleGrpc(::google::protobuf::Arena* arena); - GrpcService_GoogleGrpc(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc& from); - GrpcService_GoogleGrpc(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc&& from) noexcept - : GrpcService_GoogleGrpc(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - using SslCredentials = GrpcService_GoogleGrpc_SslCredentials; - using GoogleLocalCredentials = GrpcService_GoogleGrpc_GoogleLocalCredentials; - using ChannelCredentials = GrpcService_GoogleGrpc_ChannelCredentials; - using CallCredentials = GrpcService_GoogleGrpc_CallCredentials; - - // accessors ------------------------------------------------------- - enum : int { - kCallCredentialsFieldNumber = 3, - kTargetUriFieldNumber = 1, - kStatPrefixFieldNumber = 4, - kCredentialsFactoryNameFieldNumber = 5, - kChannelCredentialsFieldNumber = 2, - kConfigFieldNumber = 6, - }; - // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; - int call_credentials_size() const; - private: - int _internal_call_credentials_size() const; - - public: - void clear_call_credentials() ; - ::GrpcService_GoogleGrpc_CallCredentials* mutable_call_credentials(int index); - ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>* mutable_call_credentials(); - - private: - const ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>& _internal_call_credentials() const; - ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>* _internal_mutable_call_credentials(); - public: - const ::GrpcService_GoogleGrpc_CallCredentials& call_credentials(int index) const; - ::GrpcService_GoogleGrpc_CallCredentials* add_call_credentials(); - const ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>& call_credentials() const; - // string target_uri = 1; - void clear_target_uri() ; - const std::string& target_uri() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_target_uri(Arg_&& arg, Args_... args); - std::string* mutable_target_uri(); - PROTOBUF_NODISCARD std::string* release_target_uri(); - void set_allocated_target_uri(std::string* value); - - private: - const std::string& _internal_target_uri() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_target_uri( - const std::string& value); - std::string* _internal_mutable_target_uri(); - - public: - // string stat_prefix = 4; - void clear_stat_prefix() ; - const std::string& stat_prefix() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_stat_prefix(Arg_&& arg, Args_... args); - std::string* mutable_stat_prefix(); - PROTOBUF_NODISCARD std::string* release_stat_prefix(); - void set_allocated_stat_prefix(std::string* value); - - private: - const std::string& _internal_stat_prefix() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_stat_prefix( - const std::string& value); - std::string* _internal_mutable_stat_prefix(); - - public: - // string credentials_factory_name = 5; - void clear_credentials_factory_name() ; - const std::string& credentials_factory_name() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_credentials_factory_name(Arg_&& arg, Args_... args); - std::string* mutable_credentials_factory_name(); - PROTOBUF_NODISCARD std::string* release_credentials_factory_name(); - void set_allocated_credentials_factory_name(std::string* value); - - private: - const std::string& _internal_credentials_factory_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_credentials_factory_name( - const std::string& value); - std::string* _internal_mutable_credentials_factory_name(); - - public: - // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; - bool has_channel_credentials() const; - void clear_channel_credentials() ; - const ::GrpcService_GoogleGrpc_ChannelCredentials& channel_credentials() const; - PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_ChannelCredentials* release_channel_credentials(); - ::GrpcService_GoogleGrpc_ChannelCredentials* mutable_channel_credentials(); - void set_allocated_channel_credentials(::GrpcService_GoogleGrpc_ChannelCredentials* value); - void unsafe_arena_set_allocated_channel_credentials(::GrpcService_GoogleGrpc_ChannelCredentials* value); - ::GrpcService_GoogleGrpc_ChannelCredentials* unsafe_arena_release_channel_credentials(); - - private: - const ::GrpcService_GoogleGrpc_ChannelCredentials& _internal_channel_credentials() const; - ::GrpcService_GoogleGrpc_ChannelCredentials* _internal_mutable_channel_credentials(); - - public: - // .google.protobuf.Struct config = 6; - bool has_config() const; - void clear_config() ; - const ::google::protobuf::Struct& config() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_config(); - ::google::protobuf::Struct* mutable_config(); - void set_allocated_config(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_config(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_config(); - - private: - const ::google::protobuf::Struct& _internal_config() const; - ::google::protobuf::Struct* _internal_mutable_config(); - - public: - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 3, - 76, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::GrpcService_GoogleGrpc_CallCredentials > call_credentials_; - ::google::protobuf::internal::ArenaStringPtr target_uri_; - ::google::protobuf::internal::ArenaStringPtr stat_prefix_; - ::google::protobuf::internal::ArenaStringPtr credentials_factory_name_; - ::GrpcService_GoogleGrpc_ChannelCredentials* channel_credentials_; - ::google::protobuf::Struct* config_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:GrpcService) */ { - public: - inline GrpcService() : GrpcService(nullptr) {} - ~GrpcService() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR GrpcService( - ::google::protobuf::internal::ConstantInitialized); - - inline GrpcService(const GrpcService& from) : GrpcService(nullptr, from) {} - inline GrpcService(GrpcService&& from) noexcept - : GrpcService(nullptr, std::move(from)) {} - inline GrpcService& operator=(const GrpcService& from) { - CopyFrom(from); - return *this; - } - inline GrpcService& operator=(GrpcService&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GrpcService& default_instance() { - return *internal_default_instance(); - } - enum TargetSpecifierCase { - kEnvoyGrpc = 1, - kGoogleGrpc = 2, - TARGET_SPECIFIER_NOT_SET = 0, - }; - static inline const GrpcService* internal_default_instance() { - return reinterpret_cast<const GrpcService*>( - &_GrpcService_default_instance_); - } - static constexpr int kIndexInFileMessages = 13; - friend void swap(GrpcService& a, GrpcService& b) { a.Swap(&b); } - inline void Swap(GrpcService* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrpcService* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrpcService* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct<GrpcService>(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GrpcService& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GrpcService& from) { GrpcService::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GrpcService* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "GrpcService"; } - - protected: - explicit GrpcService(::google::protobuf::Arena* arena); - GrpcService(::google::protobuf::Arena* arena, const GrpcService& from); - GrpcService(::google::protobuf::Arena* arena, GrpcService&& from) noexcept - : GrpcService(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - using EnvoyGrpc = GrpcService_EnvoyGrpc; - using GoogleGrpc = GrpcService_GoogleGrpc; - using HeaderValue = GrpcService_HeaderValue; - - // accessors ------------------------------------------------------- - enum : int { - kInitialMetadataFieldNumber = 5, - kTimeoutFieldNumber = 3, - kEnvoyGrpcFieldNumber = 1, - kGoogleGrpcFieldNumber = 2, - }; - // repeated .GrpcService.HeaderValue initial_metadata = 5; - int initial_metadata_size() const; - private: - int _internal_initial_metadata_size() const; - - public: - void clear_initial_metadata() ; - ::GrpcService_HeaderValue* mutable_initial_metadata(int index); - ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>* mutable_initial_metadata(); - - private: - const ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>& _internal_initial_metadata() const; - ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>* _internal_mutable_initial_metadata(); - public: - const ::GrpcService_HeaderValue& initial_metadata(int index) const; - ::GrpcService_HeaderValue* add_initial_metadata(); - const ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>& initial_metadata() const; - // .google.protobuf.Duration timeout = 3; - bool has_timeout() const; - void clear_timeout() ; - const ::google::protobuf::Duration& timeout() const; - PROTOBUF_NODISCARD ::google::protobuf::Duration* release_timeout(); - ::google::protobuf::Duration* mutable_timeout(); - void set_allocated_timeout(::google::protobuf::Duration* value); - void unsafe_arena_set_allocated_timeout(::google::protobuf::Duration* value); - ::google::protobuf::Duration* unsafe_arena_release_timeout(); - - private: - const ::google::protobuf::Duration& _internal_timeout() const; - ::google::protobuf::Duration* _internal_mutable_timeout(); - - public: - // .GrpcService.EnvoyGrpc envoy_grpc = 1; - bool has_envoy_grpc() const; - private: - bool _internal_has_envoy_grpc() const; - - public: - void clear_envoy_grpc() ; - const ::GrpcService_EnvoyGrpc& envoy_grpc() const; - PROTOBUF_NODISCARD ::GrpcService_EnvoyGrpc* release_envoy_grpc(); - ::GrpcService_EnvoyGrpc* mutable_envoy_grpc(); - void set_allocated_envoy_grpc(::GrpcService_EnvoyGrpc* value); - void unsafe_arena_set_allocated_envoy_grpc(::GrpcService_EnvoyGrpc* value); - ::GrpcService_EnvoyGrpc* unsafe_arena_release_envoy_grpc(); - - private: - const ::GrpcService_EnvoyGrpc& _internal_envoy_grpc() const; - ::GrpcService_EnvoyGrpc* _internal_mutable_envoy_grpc(); - - public: - // .GrpcService.GoogleGrpc google_grpc = 2; - bool has_google_grpc() const; - private: - bool _internal_has_google_grpc() const; - - public: - void clear_google_grpc() ; - const ::GrpcService_GoogleGrpc& google_grpc() const; - PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc* release_google_grpc(); - ::GrpcService_GoogleGrpc* mutable_google_grpc(); - void set_allocated_google_grpc(::GrpcService_GoogleGrpc* value); - void unsafe_arena_set_allocated_google_grpc(::GrpcService_GoogleGrpc* value); - ::GrpcService_GoogleGrpc* unsafe_arena_release_google_grpc(); - - private: - const ::GrpcService_GoogleGrpc& _internal_google_grpc() const; - ::GrpcService_GoogleGrpc* _internal_mutable_google_grpc(); - - public: - void clear_target_specifier(); - TargetSpecifierCase target_specifier_case() const; - // @@protoc_insertion_point(class_scope:GrpcService) - private: - class _Internal; - void set_has_envoy_grpc(); - void set_has_google_grpc(); - inline bool has_target_specifier() const; - inline void clear_has_target_specifier(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 4, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::GrpcService_HeaderValue > initial_metadata_; - ::google::protobuf::Duration* timeout_; - union TargetSpecifierUnion { - constexpr TargetSpecifierUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::GrpcService_EnvoyGrpc* envoy_grpc_; - ::GrpcService_GoogleGrpc* google_grpc_; - } target_specifier_; - ::uint32_t _oneof_case_[1]; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_2eproto; -}; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// WKT - -// .google.protobuf.Struct struct = 1; -inline bool WKT::has_struct_() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.struct__ != nullptr); - return value; -} -inline const ::google::protobuf::Struct& WKT::_internal_struct_() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.struct__; - return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Struct&>(::google::protobuf::_Struct_default_instance_); -} -inline const ::google::protobuf::Struct& WKT::struct_() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:WKT.struct) - return _internal_struct_(); -} -inline void WKT::unsafe_arena_set_allocated_struct_(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.struct__); - } - _impl_.struct__ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:WKT.struct) -} -inline ::google::protobuf::Struct* WKT::release_struct_() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.struct__; - _impl_.struct__ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::google::protobuf::Struct* WKT::unsafe_arena_release_struct_() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:WKT.struct) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.struct__; - _impl_.struct__ = nullptr; - return temp; -} -inline ::google::protobuf::Struct* WKT::_internal_mutable_struct_() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.struct__ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Struct>(GetArena()); - _impl_.struct__ = reinterpret_cast<::google::protobuf::Struct*>(p); - } - return _impl_.struct__; -} -inline ::google::protobuf::Struct* WKT::mutable_struct_() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::google::protobuf::Struct* _msg = _internal_mutable_struct_(); - // @@protoc_insertion_point(field_mutable:WKT.struct) - return _msg; -} -inline void WKT::set_allocated_struct_(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.struct__); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.struct__ = reinterpret_cast<::google::protobuf::Struct*>(value); - // @@protoc_insertion_point(field_set_allocated:WKT.struct) -} - -// ------------------------------------------------------------------- - -// DataSource - -// string filename = 1; -inline bool DataSource::has_filename() const { - return specifier_case() == kFilename; -} -inline void DataSource::set_has_filename() { - _impl_._oneof_case_[0] = kFilename; -} -inline void DataSource::clear_filename() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (specifier_case() == kFilename) { - _impl_.specifier_.filename_.Destroy(); - clear_has_specifier(); - } -} -inline const std::string& DataSource::filename() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:DataSource.filename) - return _internal_filename(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void DataSource::set_filename(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (specifier_case() != kFilename) { - clear_specifier(); - - set_has_filename(); - _impl_.specifier_.filename_.InitDefault(); - } - _impl_.specifier_.filename_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:DataSource.filename) -} -inline std::string* DataSource::mutable_filename() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_filename(); - // @@protoc_insertion_point(field_mutable:DataSource.filename) - return _s; -} -inline const std::string& DataSource::_internal_filename() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (specifier_case() != kFilename) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); - } - return _impl_.specifier_.filename_.Get(); -} -inline void DataSource::_internal_set_filename(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (specifier_case() != kFilename) { - clear_specifier(); - - set_has_filename(); - _impl_.specifier_.filename_.InitDefault(); - } - _impl_.specifier_.filename_.Set(value, GetArena()); -} -inline std::string* DataSource::_internal_mutable_filename() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (specifier_case() != kFilename) { - clear_specifier(); - - set_has_filename(); - _impl_.specifier_.filename_.InitDefault(); - } - return _impl_.specifier_.filename_.Mutable( GetArena()); -} -inline std::string* DataSource::release_filename() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:DataSource.filename) - if (specifier_case() != kFilename) { - return nullptr; - } - clear_has_specifier(); - return _impl_.specifier_.filename_.Release(); -} -inline void DataSource::set_allocated_filename(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (has_specifier()) { - clear_specifier(); - } - if (value != nullptr) { - set_has_filename(); - _impl_.specifier_.filename_.InitAllocated(value, GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:DataSource.filename) -} - -// bytes inline_bytes = 2; -inline bool DataSource::has_inline_bytes() const { - return specifier_case() == kInlineBytes; -} -inline void DataSource::set_has_inline_bytes() { - _impl_._oneof_case_[0] = kInlineBytes; -} -inline void DataSource::clear_inline_bytes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (specifier_case() == kInlineBytes) { - _impl_.specifier_.inline_bytes_.Destroy(); - clear_has_specifier(); - } -} -inline const std::string& DataSource::inline_bytes() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:DataSource.inline_bytes) - return _internal_inline_bytes(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void DataSource::set_inline_bytes(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (specifier_case() != kInlineBytes) { - clear_specifier(); - - set_has_inline_bytes(); - _impl_.specifier_.inline_bytes_.InitDefault(); - } - _impl_.specifier_.inline_bytes_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:DataSource.inline_bytes) -} -inline std::string* DataSource::mutable_inline_bytes() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_inline_bytes(); - // @@protoc_insertion_point(field_mutable:DataSource.inline_bytes) - return _s; -} -inline const std::string& DataSource::_internal_inline_bytes() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (specifier_case() != kInlineBytes) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); - } - return _impl_.specifier_.inline_bytes_.Get(); -} -inline void DataSource::_internal_set_inline_bytes(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (specifier_case() != kInlineBytes) { - clear_specifier(); - - set_has_inline_bytes(); - _impl_.specifier_.inline_bytes_.InitDefault(); - } - _impl_.specifier_.inline_bytes_.Set(value, GetArena()); -} -inline std::string* DataSource::_internal_mutable_inline_bytes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (specifier_case() != kInlineBytes) { - clear_specifier(); - - set_has_inline_bytes(); - _impl_.specifier_.inline_bytes_.InitDefault(); - } - return _impl_.specifier_.inline_bytes_.Mutable( GetArena()); -} -inline std::string* DataSource::release_inline_bytes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:DataSource.inline_bytes) - if (specifier_case() != kInlineBytes) { - return nullptr; - } - clear_has_specifier(); - return _impl_.specifier_.inline_bytes_.Release(); -} -inline void DataSource::set_allocated_inline_bytes(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (has_specifier()) { - clear_specifier(); - } - if (value != nullptr) { - set_has_inline_bytes(); - _impl_.specifier_.inline_bytes_.InitAllocated(value, GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:DataSource.inline_bytes) -} - -// string inline_string = 3; -inline bool DataSource::has_inline_string() const { - return specifier_case() == kInlineString; -} -inline void DataSource::set_has_inline_string() { - _impl_._oneof_case_[0] = kInlineString; -} -inline void DataSource::clear_inline_string() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (specifier_case() == kInlineString) { - _impl_.specifier_.inline_string_.Destroy(); - clear_has_specifier(); - } -} -inline const std::string& DataSource::inline_string() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:DataSource.inline_string) - return _internal_inline_string(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void DataSource::set_inline_string(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (specifier_case() != kInlineString) { - clear_specifier(); - - set_has_inline_string(); - _impl_.specifier_.inline_string_.InitDefault(); - } - _impl_.specifier_.inline_string_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:DataSource.inline_string) -} -inline std::string* DataSource::mutable_inline_string() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_inline_string(); - // @@protoc_insertion_point(field_mutable:DataSource.inline_string) - return _s; -} -inline const std::string& DataSource::_internal_inline_string() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (specifier_case() != kInlineString) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); - } - return _impl_.specifier_.inline_string_.Get(); -} -inline void DataSource::_internal_set_inline_string(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (specifier_case() != kInlineString) { - clear_specifier(); - - set_has_inline_string(); - _impl_.specifier_.inline_string_.InitDefault(); - } - _impl_.specifier_.inline_string_.Set(value, GetArena()); -} -inline std::string* DataSource::_internal_mutable_inline_string() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (specifier_case() != kInlineString) { - clear_specifier(); - - set_has_inline_string(); - _impl_.specifier_.inline_string_.InitDefault(); - } - return _impl_.specifier_.inline_string_.Mutable( GetArena()); -} -inline std::string* DataSource::release_inline_string() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:DataSource.inline_string) - if (specifier_case() != kInlineString) { - return nullptr; - } - clear_has_specifier(); - return _impl_.specifier_.inline_string_.Release(); -} -inline void DataSource::set_allocated_inline_string(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (has_specifier()) { - clear_specifier(); - } - if (value != nullptr) { - set_has_inline_string(); - _impl_.specifier_.inline_string_.InitAllocated(value, GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:DataSource.inline_string) -} - -inline bool DataSource::has_specifier() const { - return specifier_case() != SPECIFIER_NOT_SET; -} -inline void DataSource::clear_has_specifier() { - _impl_._oneof_case_[0] = SPECIFIER_NOT_SET; -} -inline DataSource::SpecifierCase DataSource::specifier_case() const { - return DataSource::SpecifierCase(_impl_._oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// GrpcService_EnvoyGrpc - -// string cluster_name = 1; -inline void GrpcService_EnvoyGrpc::clear_cluster_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.cluster_name_.ClearToEmpty(); -} -inline const std::string& GrpcService_EnvoyGrpc::cluster_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.EnvoyGrpc.cluster_name) - return _internal_cluster_name(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_EnvoyGrpc::set_cluster_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.cluster_name_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.EnvoyGrpc.cluster_name) -} -inline std::string* GrpcService_EnvoyGrpc::mutable_cluster_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_cluster_name(); - // @@protoc_insertion_point(field_mutable:GrpcService.EnvoyGrpc.cluster_name) - return _s; -} -inline const std::string& GrpcService_EnvoyGrpc::_internal_cluster_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.cluster_name_.Get(); -} -inline void GrpcService_EnvoyGrpc::_internal_set_cluster_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.cluster_name_.Set(value, GetArena()); -} -inline std::string* GrpcService_EnvoyGrpc::_internal_mutable_cluster_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.cluster_name_.Mutable( GetArena()); -} -inline std::string* GrpcService_EnvoyGrpc::release_cluster_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.EnvoyGrpc.cluster_name) - return _impl_.cluster_name_.Release(); -} -inline void GrpcService_EnvoyGrpc::set_allocated_cluster_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.cluster_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.cluster_name_.IsDefault()) { - _impl_.cluster_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:GrpcService.EnvoyGrpc.cluster_name) -} - -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_SslCredentials - -// .DataSource root_certs = 1; -inline bool GrpcService_GoogleGrpc_SslCredentials::has_root_certs() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.root_certs_ != nullptr); - return value; -} -inline void GrpcService_GoogleGrpc_SslCredentials::clear_root_certs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.root_certs_ != nullptr) _impl_.root_certs_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::_internal_root_certs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::DataSource* p = _impl_.root_certs_; - return p != nullptr ? *p : reinterpret_cast<const ::DataSource&>(::_DataSource_default_instance_); -} -inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::root_certs() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.SslCredentials.root_certs) - return _internal_root_certs(); -} -inline void GrpcService_GoogleGrpc_SslCredentials::unsafe_arena_set_allocated_root_certs(::DataSource* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.root_certs_); - } - _impl_.root_certs_ = reinterpret_cast<::DataSource*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.SslCredentials.root_certs) -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::release_root_certs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::DataSource* released = _impl_.root_certs_; - _impl_.root_certs_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::unsafe_arena_release_root_certs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.SslCredentials.root_certs) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::DataSource* temp = _impl_.root_certs_; - _impl_.root_certs_ = nullptr; - return temp; -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::_internal_mutable_root_certs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.root_certs_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::DataSource>(GetArena()); - _impl_.root_certs_ = reinterpret_cast<::DataSource*>(p); - } - return _impl_.root_certs_; -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::mutable_root_certs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::DataSource* _msg = _internal_mutable_root_certs(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.SslCredentials.root_certs) - return _msg; -} -inline void GrpcService_GoogleGrpc_SslCredentials::set_allocated_root_certs(::DataSource* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.root_certs_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.root_certs_ = reinterpret_cast<::DataSource*>(value); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.SslCredentials.root_certs) -} - -// .DataSource private_key = 2; -inline bool GrpcService_GoogleGrpc_SslCredentials::has_private_key() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.private_key_ != nullptr); - return value; -} -inline void GrpcService_GoogleGrpc_SslCredentials::clear_private_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.private_key_ != nullptr) _impl_.private_key_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::_internal_private_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::DataSource* p = _impl_.private_key_; - return p != nullptr ? *p : reinterpret_cast<const ::DataSource&>(::_DataSource_default_instance_); -} -inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::private_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.SslCredentials.private_key) - return _internal_private_key(); -} -inline void GrpcService_GoogleGrpc_SslCredentials::unsafe_arena_set_allocated_private_key(::DataSource* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.private_key_); - } - _impl_.private_key_ = reinterpret_cast<::DataSource*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.SslCredentials.private_key) -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::release_private_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::DataSource* released = _impl_.private_key_; - _impl_.private_key_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::unsafe_arena_release_private_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.SslCredentials.private_key) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::DataSource* temp = _impl_.private_key_; - _impl_.private_key_ = nullptr; - return temp; -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::_internal_mutable_private_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.private_key_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::DataSource>(GetArena()); - _impl_.private_key_ = reinterpret_cast<::DataSource*>(p); - } - return _impl_.private_key_; -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::mutable_private_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000002u; - ::DataSource* _msg = _internal_mutable_private_key(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.SslCredentials.private_key) - return _msg; -} -inline void GrpcService_GoogleGrpc_SslCredentials::set_allocated_private_key(::DataSource* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.private_key_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - - _impl_.private_key_ = reinterpret_cast<::DataSource*>(value); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.SslCredentials.private_key) -} - -// .DataSource cert_chain = 3; -inline bool GrpcService_GoogleGrpc_SslCredentials::has_cert_chain() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.cert_chain_ != nullptr); - return value; -} -inline void GrpcService_GoogleGrpc_SslCredentials::clear_cert_chain() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.cert_chain_ != nullptr) _impl_.cert_chain_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; -} -inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::_internal_cert_chain() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::DataSource* p = _impl_.cert_chain_; - return p != nullptr ? *p : reinterpret_cast<const ::DataSource&>(::_DataSource_default_instance_); -} -inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::cert_chain() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.SslCredentials.cert_chain) - return _internal_cert_chain(); -} -inline void GrpcService_GoogleGrpc_SslCredentials::unsafe_arena_set_allocated_cert_chain(::DataSource* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cert_chain_); - } - _impl_.cert_chain_ = reinterpret_cast<::DataSource*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; - } else { - _impl_._has_bits_[0] &= ~0x00000004u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.SslCredentials.cert_chain) -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::release_cert_chain() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::DataSource* released = _impl_.cert_chain_; - _impl_.cert_chain_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::unsafe_arena_release_cert_chain() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.SslCredentials.cert_chain) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::DataSource* temp = _impl_.cert_chain_; - _impl_.cert_chain_ = nullptr; - return temp; -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::_internal_mutable_cert_chain() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.cert_chain_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::DataSource>(GetArena()); - _impl_.cert_chain_ = reinterpret_cast<::DataSource*>(p); - } - return _impl_.cert_chain_; -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::mutable_cert_chain() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000004u; - ::DataSource* _msg = _internal_mutable_cert_chain(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.SslCredentials.cert_chain) - return _msg; -} -inline void GrpcService_GoogleGrpc_SslCredentials::set_allocated_cert_chain(::DataSource* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.cert_chain_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000004u; - } else { - _impl_._has_bits_[0] &= ~0x00000004u; - } - - _impl_.cert_chain_ = reinterpret_cast<::DataSource*>(value); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.SslCredentials.cert_chain) -} - -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_GoogleLocalCredentials - -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_ChannelCredentials - -// .GrpcService.GoogleGrpc.SslCredentials ssl_credentials = 1; -inline bool GrpcService_GoogleGrpc_ChannelCredentials::has_ssl_credentials() const { - return credential_specifier_case() == kSslCredentials; -} -inline bool GrpcService_GoogleGrpc_ChannelCredentials::_internal_has_ssl_credentials() const { - return credential_specifier_case() == kSslCredentials; -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::set_has_ssl_credentials() { - _impl_._oneof_case_[0] = kSslCredentials; -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::clear_ssl_credentials() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() == kSslCredentials) { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.ssl_credentials_; - } - clear_has_credential_specifier(); - } -} -inline ::GrpcService_GoogleGrpc_SslCredentials* GrpcService_GoogleGrpc_ChannelCredentials::release_ssl_credentials() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.ChannelCredentials.ssl_credentials) - if (credential_specifier_case() == kSslCredentials) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.ssl_credentials_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.credential_specifier_.ssl_credentials_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_SslCredentials& GrpcService_GoogleGrpc_ChannelCredentials::_internal_ssl_credentials() const { - return credential_specifier_case() == kSslCredentials ? *_impl_.credential_specifier_.ssl_credentials_ : reinterpret_cast<::GrpcService_GoogleGrpc_SslCredentials&>(::_GrpcService_GoogleGrpc_SslCredentials_default_instance_); -} -inline const ::GrpcService_GoogleGrpc_SslCredentials& GrpcService_GoogleGrpc_ChannelCredentials::ssl_credentials() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.ChannelCredentials.ssl_credentials) - return _internal_ssl_credentials(); -} -inline ::GrpcService_GoogleGrpc_SslCredentials* GrpcService_GoogleGrpc_ChannelCredentials::unsafe_arena_release_ssl_credentials() { - // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.ChannelCredentials.ssl_credentials) - if (credential_specifier_case() == kSslCredentials) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.ssl_credentials_; - _impl_.credential_specifier_.ssl_credentials_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::unsafe_arena_set_allocated_ssl_credentials(::GrpcService_GoogleGrpc_SslCredentials* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_credential_specifier(); - if (value) { - set_has_ssl_credentials(); - _impl_.credential_specifier_.ssl_credentials_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.ChannelCredentials.ssl_credentials) -} -inline ::GrpcService_GoogleGrpc_SslCredentials* GrpcService_GoogleGrpc_ChannelCredentials::_internal_mutable_ssl_credentials() { - if (credential_specifier_case() != kSslCredentials) { - clear_credential_specifier(); - set_has_ssl_credentials(); - _impl_.credential_specifier_.ssl_credentials_ = - ::google::protobuf::Message::DefaultConstruct<::GrpcService_GoogleGrpc_SslCredentials>(GetArena()); - } - return _impl_.credential_specifier_.ssl_credentials_; -} -inline ::GrpcService_GoogleGrpc_SslCredentials* GrpcService_GoogleGrpc_ChannelCredentials::mutable_ssl_credentials() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::GrpcService_GoogleGrpc_SslCredentials* _msg = _internal_mutable_ssl_credentials(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.ChannelCredentials.ssl_credentials) - return _msg; -} - -// .google.protobuf.Empty google_default = 2; -inline bool GrpcService_GoogleGrpc_ChannelCredentials::has_google_default() const { - return credential_specifier_case() == kGoogleDefault; -} -inline bool GrpcService_GoogleGrpc_ChannelCredentials::_internal_has_google_default() const { - return credential_specifier_case() == kGoogleDefault; -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::set_has_google_default() { - _impl_._oneof_case_[0] = kGoogleDefault; -} -inline ::google::protobuf::Empty* GrpcService_GoogleGrpc_ChannelCredentials::release_google_default() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.ChannelCredentials.google_default) - if (credential_specifier_case() == kGoogleDefault) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.google_default_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.credential_specifier_.google_default_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::google::protobuf::Empty& GrpcService_GoogleGrpc_ChannelCredentials::_internal_google_default() const { - return credential_specifier_case() == kGoogleDefault ? *_impl_.credential_specifier_.google_default_ : reinterpret_cast<::google::protobuf::Empty&>(::google::protobuf::_Empty_default_instance_); -} -inline const ::google::protobuf::Empty& GrpcService_GoogleGrpc_ChannelCredentials::google_default() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.ChannelCredentials.google_default) - return _internal_google_default(); -} -inline ::google::protobuf::Empty* GrpcService_GoogleGrpc_ChannelCredentials::unsafe_arena_release_google_default() { - // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.ChannelCredentials.google_default) - if (credential_specifier_case() == kGoogleDefault) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.google_default_; - _impl_.credential_specifier_.google_default_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::unsafe_arena_set_allocated_google_default(::google::protobuf::Empty* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_credential_specifier(); - if (value) { - set_has_google_default(); - _impl_.credential_specifier_.google_default_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.ChannelCredentials.google_default) -} -inline ::google::protobuf::Empty* GrpcService_GoogleGrpc_ChannelCredentials::_internal_mutable_google_default() { - if (credential_specifier_case() != kGoogleDefault) { - clear_credential_specifier(); - set_has_google_default(); - _impl_.credential_specifier_.google_default_ = - ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Empty>(GetArena()); - } - return _impl_.credential_specifier_.google_default_; -} -inline ::google::protobuf::Empty* GrpcService_GoogleGrpc_ChannelCredentials::mutable_google_default() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Empty* _msg = _internal_mutable_google_default(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.ChannelCredentials.google_default) - return _msg; -} - -// .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; -inline bool GrpcService_GoogleGrpc_ChannelCredentials::has_local_credentials() const { - return credential_specifier_case() == kLocalCredentials; -} -inline bool GrpcService_GoogleGrpc_ChannelCredentials::_internal_has_local_credentials() const { - return credential_specifier_case() == kLocalCredentials; -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::set_has_local_credentials() { - _impl_._oneof_case_[0] = kLocalCredentials; -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::clear_local_credentials() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() == kLocalCredentials) { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.local_credentials_; - } - clear_has_credential_specifier(); - } -} -inline ::GrpcService_GoogleGrpc_GoogleLocalCredentials* GrpcService_GoogleGrpc_ChannelCredentials::release_local_credentials() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.ChannelCredentials.local_credentials) - if (credential_specifier_case() == kLocalCredentials) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.local_credentials_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.credential_specifier_.local_credentials_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_GoogleLocalCredentials& GrpcService_GoogleGrpc_ChannelCredentials::_internal_local_credentials() const { - return credential_specifier_case() == kLocalCredentials ? *_impl_.credential_specifier_.local_credentials_ : reinterpret_cast<::GrpcService_GoogleGrpc_GoogleLocalCredentials&>(::_GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_); -} -inline const ::GrpcService_GoogleGrpc_GoogleLocalCredentials& GrpcService_GoogleGrpc_ChannelCredentials::local_credentials() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.ChannelCredentials.local_credentials) - return _internal_local_credentials(); -} -inline ::GrpcService_GoogleGrpc_GoogleLocalCredentials* GrpcService_GoogleGrpc_ChannelCredentials::unsafe_arena_release_local_credentials() { - // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.ChannelCredentials.local_credentials) - if (credential_specifier_case() == kLocalCredentials) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.local_credentials_; - _impl_.credential_specifier_.local_credentials_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::unsafe_arena_set_allocated_local_credentials(::GrpcService_GoogleGrpc_GoogleLocalCredentials* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_credential_specifier(); - if (value) { - set_has_local_credentials(); - _impl_.credential_specifier_.local_credentials_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.ChannelCredentials.local_credentials) -} -inline ::GrpcService_GoogleGrpc_GoogleLocalCredentials* GrpcService_GoogleGrpc_ChannelCredentials::_internal_mutable_local_credentials() { - if (credential_specifier_case() != kLocalCredentials) { - clear_credential_specifier(); - set_has_local_credentials(); - _impl_.credential_specifier_.local_credentials_ = - ::google::protobuf::Message::DefaultConstruct<::GrpcService_GoogleGrpc_GoogleLocalCredentials>(GetArena()); - } - return _impl_.credential_specifier_.local_credentials_; -} -inline ::GrpcService_GoogleGrpc_GoogleLocalCredentials* GrpcService_GoogleGrpc_ChannelCredentials::mutable_local_credentials() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::GrpcService_GoogleGrpc_GoogleLocalCredentials* _msg = _internal_mutable_local_credentials(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.ChannelCredentials.local_credentials) - return _msg; -} - -inline bool GrpcService_GoogleGrpc_ChannelCredentials::has_credential_specifier() const { - return credential_specifier_case() != CREDENTIAL_SPECIFIER_NOT_SET; -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::clear_has_credential_specifier() { - _impl_._oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; -} -inline GrpcService_GoogleGrpc_ChannelCredentials::CredentialSpecifierCase GrpcService_GoogleGrpc_ChannelCredentials::credential_specifier_case() const { - return GrpcService_GoogleGrpc_ChannelCredentials::CredentialSpecifierCase(_impl_._oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials - -// string json_key = 1; -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::clear_json_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.json_key_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::json_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) - return _internal_json_key(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_json_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.json_key_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::mutable_json_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_json_key(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_internal_json_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.json_key_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_internal_set_json_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.json_key_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_internal_mutable_json_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.json_key_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::release_json_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) - return _impl_.json_key_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_allocated_json_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.json_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.json_key_.IsDefault()) { - _impl_.json_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) -} - -// uint64 token_lifetime_seconds = 2; -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::clear_token_lifetime_seconds() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.token_lifetime_seconds_ = ::uint64_t{0u}; -} -inline ::uint64_t GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::token_lifetime_seconds() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.token_lifetime_seconds) - return _internal_token_lifetime_seconds(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_token_lifetime_seconds(::uint64_t value) { - _internal_set_token_lifetime_seconds(value); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.token_lifetime_seconds) -} -inline ::uint64_t GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_internal_token_lifetime_seconds() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.token_lifetime_seconds_; -} -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_internal_set_token_lifetime_seconds(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.token_lifetime_seconds_ = value; -} - -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials - -// string authorization_token = 1; -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::clear_authorization_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authorization_token_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::authorization_token() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) - return _internal_authorization_token(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authorization_token(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authorization_token_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::mutable_authorization_token() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_authorization_token(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_internal_authorization_token() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.authorization_token_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_internal_set_authorization_token(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authorization_token_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_internal_mutable_authorization_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.authorization_token_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::release_authorization_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) - return _impl_.authorization_token_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_allocated_authorization_token(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authorization_token_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.authorization_token_.IsDefault()) { - _impl_.authorization_token_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) -} - -// string authority_selector = 2; -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::clear_authority_selector() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authority_selector_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::authority_selector() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) - return _internal_authority_selector(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authority_selector(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authority_selector_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::mutable_authority_selector() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_authority_selector(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_internal_authority_selector() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.authority_selector_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_internal_set_authority_selector(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authority_selector_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_internal_mutable_authority_selector() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.authority_selector_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::release_authority_selector() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) - return _impl_.authority_selector_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_allocated_authority_selector(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authority_selector_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.authority_selector_.IsDefault()) { - _impl_.authority_selector_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) -} - -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin - -// string name = 1; -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) - return _internal_name(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.name_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) - return _impl_.name_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) -} - -// .google.protobuf.Struct config = 2 [deprecated = true]; -inline bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::has_config() const { - return config_type_case() == kConfig; -} -inline bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_has_config() const { - return config_type_case() == kConfig; -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_has_config() { - _impl_._oneof_case_[0] = kConfig; -} -inline ::google::protobuf::Struct* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::release_config() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) - if (config_type_case() == kConfig) { - clear_has_config_type(); - auto* temp = _impl_.config_type_.config_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.config_type_.config_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::google::protobuf::Struct& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_config() const { - return config_type_case() == kConfig ? *_impl_.config_type_.config_ : reinterpret_cast<::google::protobuf::Struct&>(::google::protobuf::_Struct_default_instance_); -} -inline const ::google::protobuf::Struct& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) - return _internal_config(); -} -inline ::google::protobuf::Struct* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::unsafe_arena_release_config() { - // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) - if (config_type_case() == kConfig) { - clear_has_config_type(); - auto* temp = _impl_.config_type_.config_; - _impl_.config_type_.config_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::unsafe_arena_set_allocated_config(::google::protobuf::Struct* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_config_type(); - if (value) { - set_has_config(); - _impl_.config_type_.config_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) -} -inline ::google::protobuf::Struct* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_mutable_config() { - if (config_type_case() != kConfig) { - clear_config_type(); - set_has_config(); - _impl_.config_type_.config_ = - ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Struct>(GetArena()); - } - return _impl_.config_type_.config_; -} -inline ::google::protobuf::Struct* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::mutable_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_config(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) - return _msg; -} - -// .google.protobuf.Any typed_config = 3; -inline bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::has_typed_config() const { - return config_type_case() == kTypedConfig; -} -inline bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_has_typed_config() const { - return config_type_case() == kTypedConfig; -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_has_typed_config() { - _impl_._oneof_case_[0] = kTypedConfig; -} -inline ::google::protobuf::Any* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::release_typed_config() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) - if (config_type_case() == kTypedConfig) { - clear_has_config_type(); - auto* temp = _impl_.config_type_.typed_config_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.config_type_.typed_config_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::google::protobuf::Any& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_typed_config() const { - return config_type_case() == kTypedConfig ? *_impl_.config_type_.typed_config_ : reinterpret_cast<::google::protobuf::Any&>(::google::protobuf::_Any_default_instance_); -} -inline const ::google::protobuf::Any& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::typed_config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) - return _internal_typed_config(); -} -inline ::google::protobuf::Any* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::unsafe_arena_release_typed_config() { - // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) - if (config_type_case() == kTypedConfig) { - clear_has_config_type(); - auto* temp = _impl_.config_type_.typed_config_; - _impl_.config_type_.typed_config_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::unsafe_arena_set_allocated_typed_config(::google::protobuf::Any* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_config_type(); - if (value) { - set_has_typed_config(); - _impl_.config_type_.typed_config_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) -} -inline ::google::protobuf::Any* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_mutable_typed_config() { - if (config_type_case() != kTypedConfig) { - clear_config_type(); - set_has_typed_config(); - _impl_.config_type_.typed_config_ = - ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Any>(GetArena()); - } - return _impl_.config_type_.typed_config_; -} -inline ::google::protobuf::Any* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::mutable_typed_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Any* _msg = _internal_mutable_typed_config(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) - return _msg; -} - -inline bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::has_config_type() const { - return config_type_case() != CONFIG_TYPE_NOT_SET; -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::clear_has_config_type() { - _impl_._oneof_case_[0] = CONFIG_TYPE_NOT_SET; -} -inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::ConfigTypeCase GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::config_type_case() const { - return GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::ConfigTypeCase(_impl_._oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_CallCredentials_StsService - -// string token_exchange_service_uri = 1; -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_token_exchange_service_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.token_exchange_service_uri_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::token_exchange_service_uri() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) - return _internal_token_exchange_service_uri(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_token_exchange_service_uri(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.token_exchange_service_uri_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_token_exchange_service_uri() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_token_exchange_service_uri(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_token_exchange_service_uri() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.token_exchange_service_uri_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_token_exchange_service_uri(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.token_exchange_service_uri_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_token_exchange_service_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.token_exchange_service_uri_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_token_exchange_service_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) - return _impl_.token_exchange_service_uri_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_token_exchange_service_uri(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.token_exchange_service_uri_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.token_exchange_service_uri_.IsDefault()) { - _impl_.token_exchange_service_uri_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@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() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::resource() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) - return _internal_resource(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_resource(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_resource() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_resource(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_resource() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.resource_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_resource(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_resource() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.resource_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_resource() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) - return _impl_.resource_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_resource(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.resource_.IsDefault()) { - _impl_.resource_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) -} - -// string audience = 3; -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_audience() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.audience_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::audience() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) - return _internal_audience(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_audience(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.audience_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_audience() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_audience(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_audience() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.audience_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_audience(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.audience_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_audience() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.audience_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_audience() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) - return _impl_.audience_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_audience(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.audience_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.audience_.IsDefault()) { - _impl_.audience_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) -} - -// string scope = 4; -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_scope() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.scope_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::scope() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) - return _internal_scope(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_scope(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.scope_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_scope() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_scope(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_scope() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.scope_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_scope(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.scope_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_scope() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.scope_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_scope() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) - return _impl_.scope_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_scope(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.scope_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.scope_.IsDefault()) { - _impl_.scope_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@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() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.requested_token_type_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::requested_token_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) - return _internal_requested_token_type(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_requested_token_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.requested_token_type_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_requested_token_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_requested_token_type(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_requested_token_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.requested_token_type_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_requested_token_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.requested_token_type_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_requested_token_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.requested_token_type_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_requested_token_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) - return _impl_.requested_token_type_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_requested_token_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.requested_token_type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.requested_token_type_.IsDefault()) { - _impl_.requested_token_type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@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() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.subject_token_path_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::subject_token_path() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) - return _internal_subject_token_path(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_path(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.subject_token_path_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_subject_token_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_subject_token_path(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_subject_token_path() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.subject_token_path_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_subject_token_path(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.subject_token_path_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_subject_token_path() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.subject_token_path_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_subject_token_path() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) - return _impl_.subject_token_path_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_subject_token_path(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.subject_token_path_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.subject_token_path_.IsDefault()) { - _impl_.subject_token_path_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@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() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.subject_token_type_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::subject_token_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) - return _internal_subject_token_type(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.subject_token_type_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_subject_token_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_subject_token_type(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_subject_token_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.subject_token_type_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_subject_token_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.subject_token_type_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_subject_token_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.subject_token_type_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_subject_token_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) - return _impl_.subject_token_type_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_subject_token_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.subject_token_type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.subject_token_type_.IsDefault()) { - _impl_.subject_token_type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@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() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.actor_token_path_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::actor_token_path() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) - return _internal_actor_token_path(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_path(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.actor_token_path_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_actor_token_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_actor_token_path(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_actor_token_path() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.actor_token_path_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_actor_token_path(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.actor_token_path_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_actor_token_path() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.actor_token_path_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_actor_token_path() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) - return _impl_.actor_token_path_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_actor_token_path(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.actor_token_path_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.actor_token_path_.IsDefault()) { - _impl_.actor_token_path_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@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() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.actor_token_type_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::actor_token_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) - return _internal_actor_token_type(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.actor_token_type_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_actor_token_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_actor_token_type(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_actor_token_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.actor_token_type_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_actor_token_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.actor_token_type_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_actor_token_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.actor_token_type_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_actor_token_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) - return _impl_.actor_token_type_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_actor_token_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.actor_token_type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.actor_token_type_.IsDefault()) { - _impl_.actor_token_type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) -} - -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_CallCredentials - -// string access_token = 1; -inline bool GrpcService_GoogleGrpc_CallCredentials::has_access_token() const { - return credential_specifier_case() == kAccessToken; -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_has_access_token() { - _impl_._oneof_case_[0] = kAccessToken; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_access_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() == kAccessToken) { - _impl_.credential_specifier_.access_token_.Destroy(); - clear_has_credential_specifier(); - } -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials::access_token() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.access_token) - return _internal_access_token(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials::set_access_token(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() != kAccessToken) { - clear_credential_specifier(); - - set_has_access_token(); - _impl_.credential_specifier_.access_token_.InitDefault(); - } - _impl_.credential_specifier_.access_token_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.access_token) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials::mutable_access_token() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_access_token(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.access_token) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials::_internal_access_token() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (credential_specifier_case() != kAccessToken) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); - } - return _impl_.credential_specifier_.access_token_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials::_internal_set_access_token(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() != kAccessToken) { - clear_credential_specifier(); - - set_has_access_token(); - _impl_.credential_specifier_.access_token_.InitDefault(); - } - _impl_.credential_specifier_.access_token_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_access_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() != kAccessToken) { - clear_credential_specifier(); - - set_has_access_token(); - _impl_.credential_specifier_.access_token_.InitDefault(); - } - return _impl_.credential_specifier_.access_token_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials::release_access_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.access_token) - if (credential_specifier_case() != kAccessToken) { - return nullptr; - } - clear_has_credential_specifier(); - return _impl_.credential_specifier_.access_token_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_allocated_access_token(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (has_credential_specifier()) { - clear_credential_specifier(); - } - if (value != nullptr) { - set_has_access_token(); - _impl_.credential_specifier_.access_token_.InitAllocated(value, GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.access_token) -} - -// .google.protobuf.Empty google_compute_engine = 2; -inline bool GrpcService_GoogleGrpc_CallCredentials::has_google_compute_engine() const { - return credential_specifier_case() == kGoogleComputeEngine; -} -inline bool GrpcService_GoogleGrpc_CallCredentials::_internal_has_google_compute_engine() const { - return credential_specifier_case() == kGoogleComputeEngine; -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_has_google_compute_engine() { - _impl_._oneof_case_[0] = kGoogleComputeEngine; -} -inline ::google::protobuf::Empty* GrpcService_GoogleGrpc_CallCredentials::release_google_compute_engine() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) - if (credential_specifier_case() == kGoogleComputeEngine) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.google_compute_engine_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.credential_specifier_.google_compute_engine_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::google::protobuf::Empty& GrpcService_GoogleGrpc_CallCredentials::_internal_google_compute_engine() const { - return credential_specifier_case() == kGoogleComputeEngine ? *_impl_.credential_specifier_.google_compute_engine_ : reinterpret_cast<::google::protobuf::Empty&>(::google::protobuf::_Empty_default_instance_); -} -inline const ::google::protobuf::Empty& GrpcService_GoogleGrpc_CallCredentials::google_compute_engine() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) - return _internal_google_compute_engine(); -} -inline ::google::protobuf::Empty* GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_release_google_compute_engine() { - // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) - if (credential_specifier_case() == kGoogleComputeEngine) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.google_compute_engine_; - _impl_.credential_specifier_.google_compute_engine_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_set_allocated_google_compute_engine(::google::protobuf::Empty* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_credential_specifier(); - if (value) { - set_has_google_compute_engine(); - _impl_.credential_specifier_.google_compute_engine_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) -} -inline ::google::protobuf::Empty* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_google_compute_engine() { - if (credential_specifier_case() != kGoogleComputeEngine) { - clear_credential_specifier(); - set_has_google_compute_engine(); - _impl_.credential_specifier_.google_compute_engine_ = - ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Empty>(GetArena()); - } - return _impl_.credential_specifier_.google_compute_engine_; -} -inline ::google::protobuf::Empty* GrpcService_GoogleGrpc_CallCredentials::mutable_google_compute_engine() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Empty* _msg = _internal_mutable_google_compute_engine(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) - return _msg; -} - -// string google_refresh_token = 3; -inline bool GrpcService_GoogleGrpc_CallCredentials::has_google_refresh_token() const { - return credential_specifier_case() == kGoogleRefreshToken; -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_has_google_refresh_token() { - _impl_._oneof_case_[0] = kGoogleRefreshToken; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_google_refresh_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() == kGoogleRefreshToken) { - _impl_.credential_specifier_.google_refresh_token_.Destroy(); - clear_has_credential_specifier(); - } -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials::google_refresh_token() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) - return _internal_google_refresh_token(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials::set_google_refresh_token(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() != kGoogleRefreshToken) { - clear_credential_specifier(); - - set_has_google_refresh_token(); - _impl_.credential_specifier_.google_refresh_token_.InitDefault(); - } - _impl_.credential_specifier_.google_refresh_token_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials::mutable_google_refresh_token() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_google_refresh_token(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials::_internal_google_refresh_token() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (credential_specifier_case() != kGoogleRefreshToken) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); - } - return _impl_.credential_specifier_.google_refresh_token_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials::_internal_set_google_refresh_token(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() != kGoogleRefreshToken) { - clear_credential_specifier(); - - set_has_google_refresh_token(); - _impl_.credential_specifier_.google_refresh_token_.InitDefault(); - } - _impl_.credential_specifier_.google_refresh_token_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_google_refresh_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() != kGoogleRefreshToken) { - clear_credential_specifier(); - - set_has_google_refresh_token(); - _impl_.credential_specifier_.google_refresh_token_.InitDefault(); - } - return _impl_.credential_specifier_.google_refresh_token_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials::release_google_refresh_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) - if (credential_specifier_case() != kGoogleRefreshToken) { - return nullptr; - } - clear_has_credential_specifier(); - return _impl_.credential_specifier_.google_refresh_token_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_allocated_google_refresh_token(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (has_credential_specifier()) { - clear_credential_specifier(); - } - if (value != nullptr) { - set_has_google_refresh_token(); - _impl_.credential_specifier_.google_refresh_token_.InitAllocated(value, GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) -} - -// .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; -inline bool GrpcService_GoogleGrpc_CallCredentials::has_service_account_jwt_access() const { - return credential_specifier_case() == kServiceAccountJwtAccess; -} -inline bool GrpcService_GoogleGrpc_CallCredentials::_internal_has_service_account_jwt_access() const { - return credential_specifier_case() == kServiceAccountJwtAccess; -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_has_service_account_jwt_access() { - _impl_._oneof_case_[0] = kServiceAccountJwtAccess; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_service_account_jwt_access() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() == kServiceAccountJwtAccess) { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.service_account_jwt_access_; - } - clear_has_credential_specifier(); - } -} -inline ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* GrpcService_GoogleGrpc_CallCredentials::release_service_account_jwt_access() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.service_account_jwt_access) - if (credential_specifier_case() == kServiceAccountJwtAccess) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.service_account_jwt_access_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.credential_specifier_.service_account_jwt_access_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& GrpcService_GoogleGrpc_CallCredentials::_internal_service_account_jwt_access() const { - return credential_specifier_case() == kServiceAccountJwtAccess ? *_impl_.credential_specifier_.service_account_jwt_access_ : reinterpret_cast<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials&>(::_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_); -} -inline const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& GrpcService_GoogleGrpc_CallCredentials::service_account_jwt_access() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.service_account_jwt_access) - return _internal_service_account_jwt_access(); -} -inline ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_release_service_account_jwt_access() { - // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.service_account_jwt_access) - if (credential_specifier_case() == kServiceAccountJwtAccess) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.service_account_jwt_access_; - _impl_.credential_specifier_.service_account_jwt_access_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_set_allocated_service_account_jwt_access(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_credential_specifier(); - if (value) { - set_has_service_account_jwt_access(); - _impl_.credential_specifier_.service_account_jwt_access_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.service_account_jwt_access) -} -inline ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_service_account_jwt_access() { - if (credential_specifier_case() != kServiceAccountJwtAccess) { - clear_credential_specifier(); - set_has_service_account_jwt_access(); - _impl_.credential_specifier_.service_account_jwt_access_ = - ::google::protobuf::Message::DefaultConstruct<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials>(GetArena()); - } - return _impl_.credential_specifier_.service_account_jwt_access_; -} -inline ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* GrpcService_GoogleGrpc_CallCredentials::mutable_service_account_jwt_access() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* _msg = _internal_mutable_service_account_jwt_access(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.service_account_jwt_access) - return _msg; -} - -// .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; -inline bool GrpcService_GoogleGrpc_CallCredentials::has_google_iam() const { - return credential_specifier_case() == kGoogleIam; -} -inline bool GrpcService_GoogleGrpc_CallCredentials::_internal_has_google_iam() const { - return credential_specifier_case() == kGoogleIam; -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_has_google_iam() { - _impl_._oneof_case_[0] = kGoogleIam; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_google_iam() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() == kGoogleIam) { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.google_iam_; - } - clear_has_credential_specifier(); - } -} -inline ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* GrpcService_GoogleGrpc_CallCredentials::release_google_iam() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.google_iam) - if (credential_specifier_case() == kGoogleIam) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.google_iam_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.credential_specifier_.google_iam_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& GrpcService_GoogleGrpc_CallCredentials::_internal_google_iam() const { - return credential_specifier_case() == kGoogleIam ? *_impl_.credential_specifier_.google_iam_ : reinterpret_cast<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials&>(::_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_); -} -inline const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& GrpcService_GoogleGrpc_CallCredentials::google_iam() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.google_iam) - return _internal_google_iam(); -} -inline ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_release_google_iam() { - // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.google_iam) - if (credential_specifier_case() == kGoogleIam) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.google_iam_; - _impl_.credential_specifier_.google_iam_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_set_allocated_google_iam(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_credential_specifier(); - if (value) { - set_has_google_iam(); - _impl_.credential_specifier_.google_iam_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.google_iam) -} -inline ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_google_iam() { - if (credential_specifier_case() != kGoogleIam) { - clear_credential_specifier(); - set_has_google_iam(); - _impl_.credential_specifier_.google_iam_ = - ::google::protobuf::Message::DefaultConstruct<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials>(GetArena()); - } - return _impl_.credential_specifier_.google_iam_; -} -inline ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* GrpcService_GoogleGrpc_CallCredentials::mutable_google_iam() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* _msg = _internal_mutable_google_iam(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.google_iam) - return _msg; -} - -// .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; -inline bool GrpcService_GoogleGrpc_CallCredentials::has_from_plugin() const { - return credential_specifier_case() == kFromPlugin; -} -inline bool GrpcService_GoogleGrpc_CallCredentials::_internal_has_from_plugin() const { - return credential_specifier_case() == kFromPlugin; -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_has_from_plugin() { - _impl_._oneof_case_[0] = kFromPlugin; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_from_plugin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() == kFromPlugin) { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.from_plugin_; - } - clear_has_credential_specifier(); - } -} -inline ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* GrpcService_GoogleGrpc_CallCredentials::release_from_plugin() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.from_plugin) - if (credential_specifier_case() == kFromPlugin) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.from_plugin_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.credential_specifier_.from_plugin_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& GrpcService_GoogleGrpc_CallCredentials::_internal_from_plugin() const { - return credential_specifier_case() == kFromPlugin ? *_impl_.credential_specifier_.from_plugin_ : reinterpret_cast<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin&>(::_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_); -} -inline const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& GrpcService_GoogleGrpc_CallCredentials::from_plugin() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.from_plugin) - return _internal_from_plugin(); -} -inline ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_release_from_plugin() { - // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.from_plugin) - if (credential_specifier_case() == kFromPlugin) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.from_plugin_; - _impl_.credential_specifier_.from_plugin_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_set_allocated_from_plugin(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_credential_specifier(); - if (value) { - set_has_from_plugin(); - _impl_.credential_specifier_.from_plugin_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.from_plugin) -} -inline ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_from_plugin() { - if (credential_specifier_case() != kFromPlugin) { - clear_credential_specifier(); - set_has_from_plugin(); - _impl_.credential_specifier_.from_plugin_ = - ::google::protobuf::Message::DefaultConstruct<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin>(GetArena()); - } - return _impl_.credential_specifier_.from_plugin_; -} -inline ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* GrpcService_GoogleGrpc_CallCredentials::mutable_from_plugin() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* _msg = _internal_mutable_from_plugin(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.from_plugin) - return _msg; -} - -// .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; -inline bool GrpcService_GoogleGrpc_CallCredentials::has_sts_service() const { - return credential_specifier_case() == kStsService; -} -inline bool GrpcService_GoogleGrpc_CallCredentials::_internal_has_sts_service() const { - return credential_specifier_case() == kStsService; -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_has_sts_service() { - _impl_._oneof_case_[0] = kStsService; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_sts_service() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() == kStsService) { - if (GetArena() == nullptr) { - delete _impl_.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 (credential_specifier_case() == kStsService) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.sts_service_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.credential_specifier_.sts_service_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_CallCredentials_StsService& GrpcService_GoogleGrpc_CallCredentials::_internal_sts_service() const { - return credential_specifier_case() == kStsService ? *_impl_.credential_specifier_.sts_service_ : reinterpret_cast<::GrpcService_GoogleGrpc_CallCredentials_StsService&>(::_GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_); -} -inline const ::GrpcService_GoogleGrpc_CallCredentials_StsService& GrpcService_GoogleGrpc_CallCredentials::sts_service() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.sts_service) - return _internal_sts_service(); -} -inline ::GrpcService_GoogleGrpc_CallCredentials_StsService* GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_release_sts_service() { - // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.sts_service) - if (credential_specifier_case() == kStsService) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.sts_service_; - _impl_.credential_specifier_.sts_service_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_set_allocated_sts_service(::GrpcService_GoogleGrpc_CallCredentials_StsService* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_credential_specifier(); - if (value) { - set_has_sts_service(); - _impl_.credential_specifier_.sts_service_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.sts_service) -} -inline ::GrpcService_GoogleGrpc_CallCredentials_StsService* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_sts_service() { - if (credential_specifier_case() != kStsService) { - clear_credential_specifier(); - set_has_sts_service(); - _impl_.credential_specifier_.sts_service_ = - ::google::protobuf::Message::DefaultConstruct<::GrpcService_GoogleGrpc_CallCredentials_StsService>(GetArena()); - } - return _impl_.credential_specifier_.sts_service_; -} -inline ::GrpcService_GoogleGrpc_CallCredentials_StsService* GrpcService_GoogleGrpc_CallCredentials::mutable_sts_service() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::GrpcService_GoogleGrpc_CallCredentials_StsService* _msg = _internal_mutable_sts_service(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.sts_service) - return _msg; -} - -inline bool GrpcService_GoogleGrpc_CallCredentials::has_credential_specifier() const { - return credential_specifier_case() != CREDENTIAL_SPECIFIER_NOT_SET; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_has_credential_specifier() { - _impl_._oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; -} -inline GrpcService_GoogleGrpc_CallCredentials::CredentialSpecifierCase GrpcService_GoogleGrpc_CallCredentials::credential_specifier_case() const { - return GrpcService_GoogleGrpc_CallCredentials::CredentialSpecifierCase(_impl_._oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc - -// string target_uri = 1; -inline void GrpcService_GoogleGrpc::clear_target_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.target_uri_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc::target_uri() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.target_uri) - return _internal_target_uri(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc::set_target_uri(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.target_uri_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.target_uri) -} -inline std::string* GrpcService_GoogleGrpc::mutable_target_uri() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_target_uri(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.target_uri) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc::_internal_target_uri() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.target_uri_.Get(); -} -inline void GrpcService_GoogleGrpc::_internal_set_target_uri(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.target_uri_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc::_internal_mutable_target_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.target_uri_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc::release_target_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.target_uri) - return _impl_.target_uri_.Release(); -} -inline void GrpcService_GoogleGrpc::set_allocated_target_uri(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.target_uri_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.target_uri_.IsDefault()) { - _impl_.target_uri_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.target_uri) -} - -// .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; -inline bool GrpcService_GoogleGrpc::has_channel_credentials() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.channel_credentials_ != nullptr); - return value; -} -inline void GrpcService_GoogleGrpc::clear_channel_credentials() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.channel_credentials_ != nullptr) _impl_.channel_credentials_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::GrpcService_GoogleGrpc_ChannelCredentials& GrpcService_GoogleGrpc::_internal_channel_credentials() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::GrpcService_GoogleGrpc_ChannelCredentials* p = _impl_.channel_credentials_; - return p != nullptr ? *p : reinterpret_cast<const ::GrpcService_GoogleGrpc_ChannelCredentials&>(::_GrpcService_GoogleGrpc_ChannelCredentials_default_instance_); -} -inline const ::GrpcService_GoogleGrpc_ChannelCredentials& GrpcService_GoogleGrpc::channel_credentials() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.channel_credentials) - return _internal_channel_credentials(); -} -inline void GrpcService_GoogleGrpc::unsafe_arena_set_allocated_channel_credentials(::GrpcService_GoogleGrpc_ChannelCredentials* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.channel_credentials_); - } - _impl_.channel_credentials_ = reinterpret_cast<::GrpcService_GoogleGrpc_ChannelCredentials*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.channel_credentials) -} -inline ::GrpcService_GoogleGrpc_ChannelCredentials* GrpcService_GoogleGrpc::release_channel_credentials() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::GrpcService_GoogleGrpc_ChannelCredentials* released = _impl_.channel_credentials_; - _impl_.channel_credentials_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::GrpcService_GoogleGrpc_ChannelCredentials* GrpcService_GoogleGrpc::unsafe_arena_release_channel_credentials() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.channel_credentials) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::GrpcService_GoogleGrpc_ChannelCredentials* temp = _impl_.channel_credentials_; - _impl_.channel_credentials_ = nullptr; - return temp; -} -inline ::GrpcService_GoogleGrpc_ChannelCredentials* GrpcService_GoogleGrpc::_internal_mutable_channel_credentials() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.channel_credentials_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::GrpcService_GoogleGrpc_ChannelCredentials>(GetArena()); - _impl_.channel_credentials_ = reinterpret_cast<::GrpcService_GoogleGrpc_ChannelCredentials*>(p); - } - return _impl_.channel_credentials_; -} -inline ::GrpcService_GoogleGrpc_ChannelCredentials* GrpcService_GoogleGrpc::mutable_channel_credentials() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::GrpcService_GoogleGrpc_ChannelCredentials* _msg = _internal_mutable_channel_credentials(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.channel_credentials) - return _msg; -} -inline void GrpcService_GoogleGrpc::set_allocated_channel_credentials(::GrpcService_GoogleGrpc_ChannelCredentials* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.channel_credentials_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.channel_credentials_ = reinterpret_cast<::GrpcService_GoogleGrpc_ChannelCredentials*>(value); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.channel_credentials) -} - -// repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; -inline int GrpcService_GoogleGrpc::_internal_call_credentials_size() const { - return _internal_call_credentials().size(); -} -inline int GrpcService_GoogleGrpc::call_credentials_size() const { - return _internal_call_credentials_size(); -} -inline void GrpcService_GoogleGrpc::clear_call_credentials() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.call_credentials_.Clear(); -} -inline ::GrpcService_GoogleGrpc_CallCredentials* GrpcService_GoogleGrpc::mutable_call_credentials(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.call_credentials) - return _internal_mutable_call_credentials()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>* GrpcService_GoogleGrpc::mutable_call_credentials() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:GrpcService.GoogleGrpc.call_credentials) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_call_credentials(); -} -inline const ::GrpcService_GoogleGrpc_CallCredentials& GrpcService_GoogleGrpc::call_credentials(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.call_credentials) - return _internal_call_credentials().Get(index); -} -inline ::GrpcService_GoogleGrpc_CallCredentials* GrpcService_GoogleGrpc::add_call_credentials() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::GrpcService_GoogleGrpc_CallCredentials* _add = _internal_mutable_call_credentials()->Add(); - // @@protoc_insertion_point(field_add:GrpcService.GoogleGrpc.call_credentials) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>& GrpcService_GoogleGrpc::call_credentials() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:GrpcService.GoogleGrpc.call_credentials) - return _internal_call_credentials(); -} -inline const ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>& -GrpcService_GoogleGrpc::_internal_call_credentials() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.call_credentials_; -} -inline ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>* -GrpcService_GoogleGrpc::_internal_mutable_call_credentials() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.call_credentials_; -} - -// string stat_prefix = 4; -inline void GrpcService_GoogleGrpc::clear_stat_prefix() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.stat_prefix_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc::stat_prefix() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.stat_prefix) - return _internal_stat_prefix(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc::set_stat_prefix(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.stat_prefix_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.stat_prefix) -} -inline std::string* GrpcService_GoogleGrpc::mutable_stat_prefix() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_stat_prefix(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.stat_prefix) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc::_internal_stat_prefix() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.stat_prefix_.Get(); -} -inline void GrpcService_GoogleGrpc::_internal_set_stat_prefix(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.stat_prefix_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc::_internal_mutable_stat_prefix() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.stat_prefix_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc::release_stat_prefix() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.stat_prefix) - return _impl_.stat_prefix_.Release(); -} -inline void GrpcService_GoogleGrpc::set_allocated_stat_prefix(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.stat_prefix_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.stat_prefix_.IsDefault()) { - _impl_.stat_prefix_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.stat_prefix) -} - -// string credentials_factory_name = 5; -inline void GrpcService_GoogleGrpc::clear_credentials_factory_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.credentials_factory_name_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc::credentials_factory_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.credentials_factory_name) - return _internal_credentials_factory_name(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc::set_credentials_factory_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.credentials_factory_name_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.credentials_factory_name) -} -inline std::string* GrpcService_GoogleGrpc::mutable_credentials_factory_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_credentials_factory_name(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.credentials_factory_name) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc::_internal_credentials_factory_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.credentials_factory_name_.Get(); -} -inline void GrpcService_GoogleGrpc::_internal_set_credentials_factory_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.credentials_factory_name_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc::_internal_mutable_credentials_factory_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.credentials_factory_name_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc::release_credentials_factory_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.credentials_factory_name) - return _impl_.credentials_factory_name_.Release(); -} -inline void GrpcService_GoogleGrpc::set_allocated_credentials_factory_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.credentials_factory_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.credentials_factory_name_.IsDefault()) { - _impl_.credentials_factory_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.credentials_factory_name) -} - -// .google.protobuf.Struct config = 6; -inline bool GrpcService_GoogleGrpc::has_config() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.config_ != nullptr); - return value; -} -inline const ::google::protobuf::Struct& GrpcService_GoogleGrpc::_internal_config() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.config_; - return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Struct&>(::google::protobuf::_Struct_default_instance_); -} -inline const ::google::protobuf::Struct& GrpcService_GoogleGrpc::config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.config) - return _internal_config(); -} -inline void GrpcService_GoogleGrpc::unsafe_arena_set_allocated_config(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.config_); - } - _impl_.config_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.config) -} -inline ::google::protobuf::Struct* GrpcService_GoogleGrpc::release_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* released = _impl_.config_; - _impl_.config_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::google::protobuf::Struct* GrpcService_GoogleGrpc::unsafe_arena_release_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.config) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* temp = _impl_.config_; - _impl_.config_ = nullptr; - return temp; -} -inline ::google::protobuf::Struct* GrpcService_GoogleGrpc::_internal_mutable_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.config_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Struct>(GetArena()); - _impl_.config_ = reinterpret_cast<::google::protobuf::Struct*>(p); - } - return _impl_.config_; -} -inline ::google::protobuf::Struct* GrpcService_GoogleGrpc::mutable_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000002u; - ::google::protobuf::Struct* _msg = _internal_mutable_config(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.config) - return _msg; -} -inline void GrpcService_GoogleGrpc::set_allocated_config(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.config_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - - _impl_.config_ = reinterpret_cast<::google::protobuf::Struct*>(value); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.config) -} - -// ------------------------------------------------------------------- - -// GrpcService_HeaderValue - -// string key = 1; -inline void GrpcService_HeaderValue::clear_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.key_.ClearToEmpty(); -} -inline const std::string& GrpcService_HeaderValue::key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.HeaderValue.key) - return _internal_key(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_HeaderValue::set_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.key_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.HeaderValue.key) -} -inline std::string* GrpcService_HeaderValue::mutable_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_key(); - // @@protoc_insertion_point(field_mutable:GrpcService.HeaderValue.key) - return _s; -} -inline const std::string& GrpcService_HeaderValue::_internal_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.key_.Get(); -} -inline void GrpcService_HeaderValue::_internal_set_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.key_.Set(value, GetArena()); -} -inline std::string* GrpcService_HeaderValue::_internal_mutable_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.key_.Mutable( GetArena()); -} -inline std::string* GrpcService_HeaderValue::release_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.HeaderValue.key) - return _impl_.key_.Release(); -} -inline void GrpcService_HeaderValue::set_allocated_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.key_.IsDefault()) { - _impl_.key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:GrpcService.HeaderValue.key) -} - -// string value = 2; -inline void GrpcService_HeaderValue::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_.ClearToEmpty(); -} -inline const std::string& GrpcService_HeaderValue::value() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.HeaderValue.value) - return _internal_value(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_HeaderValue::set_value(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.HeaderValue.value) -} -inline std::string* GrpcService_HeaderValue::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_value(); - // @@protoc_insertion_point(field_mutable:GrpcService.HeaderValue.value) - return _s; -} -inline const std::string& GrpcService_HeaderValue::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.value_.Get(); -} -inline void GrpcService_HeaderValue::_internal_set_value(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_.Set(value, GetArena()); -} -inline std::string* GrpcService_HeaderValue::_internal_mutable_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.value_.Mutable( GetArena()); -} -inline std::string* GrpcService_HeaderValue::release_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.HeaderValue.value) - return _impl_.value_.Release(); -} -inline void GrpcService_HeaderValue::set_allocated_value(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.value_.IsDefault()) { - _impl_.value_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:GrpcService.HeaderValue.value) -} - -// ------------------------------------------------------------------- - -// GrpcService - -// .GrpcService.EnvoyGrpc envoy_grpc = 1; -inline bool GrpcService::has_envoy_grpc() const { - return target_specifier_case() == kEnvoyGrpc; -} -inline bool GrpcService::_internal_has_envoy_grpc() const { - return target_specifier_case() == kEnvoyGrpc; -} -inline void GrpcService::set_has_envoy_grpc() { - _impl_._oneof_case_[0] = kEnvoyGrpc; -} -inline void GrpcService::clear_envoy_grpc() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (target_specifier_case() == kEnvoyGrpc) { - if (GetArena() == nullptr) { - delete _impl_.target_specifier_.envoy_grpc_; - } - clear_has_target_specifier(); - } -} -inline ::GrpcService_EnvoyGrpc* GrpcService::release_envoy_grpc() { - // @@protoc_insertion_point(field_release:GrpcService.envoy_grpc) - if (target_specifier_case() == kEnvoyGrpc) { - clear_has_target_specifier(); - auto* temp = _impl_.target_specifier_.envoy_grpc_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.target_specifier_.envoy_grpc_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_EnvoyGrpc& GrpcService::_internal_envoy_grpc() const { - return target_specifier_case() == kEnvoyGrpc ? *_impl_.target_specifier_.envoy_grpc_ : reinterpret_cast<::GrpcService_EnvoyGrpc&>(::_GrpcService_EnvoyGrpc_default_instance_); -} -inline const ::GrpcService_EnvoyGrpc& GrpcService::envoy_grpc() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.envoy_grpc) - return _internal_envoy_grpc(); -} -inline ::GrpcService_EnvoyGrpc* GrpcService::unsafe_arena_release_envoy_grpc() { - // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.envoy_grpc) - if (target_specifier_case() == kEnvoyGrpc) { - clear_has_target_specifier(); - auto* temp = _impl_.target_specifier_.envoy_grpc_; - _impl_.target_specifier_.envoy_grpc_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void GrpcService::unsafe_arena_set_allocated_envoy_grpc(::GrpcService_EnvoyGrpc* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_target_specifier(); - if (value) { - set_has_envoy_grpc(); - _impl_.target_specifier_.envoy_grpc_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.envoy_grpc) -} -inline ::GrpcService_EnvoyGrpc* GrpcService::_internal_mutable_envoy_grpc() { - if (target_specifier_case() != kEnvoyGrpc) { - clear_target_specifier(); - set_has_envoy_grpc(); - _impl_.target_specifier_.envoy_grpc_ = - ::google::protobuf::Message::DefaultConstruct<::GrpcService_EnvoyGrpc>(GetArena()); - } - return _impl_.target_specifier_.envoy_grpc_; -} -inline ::GrpcService_EnvoyGrpc* GrpcService::mutable_envoy_grpc() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::GrpcService_EnvoyGrpc* _msg = _internal_mutable_envoy_grpc(); - // @@protoc_insertion_point(field_mutable:GrpcService.envoy_grpc) - return _msg; -} - -// .GrpcService.GoogleGrpc google_grpc = 2; -inline bool GrpcService::has_google_grpc() const { - return target_specifier_case() == kGoogleGrpc; -} -inline bool GrpcService::_internal_has_google_grpc() const { - return target_specifier_case() == kGoogleGrpc; -} -inline void GrpcService::set_has_google_grpc() { - _impl_._oneof_case_[0] = kGoogleGrpc; -} -inline void GrpcService::clear_google_grpc() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (target_specifier_case() == kGoogleGrpc) { - if (GetArena() == nullptr) { - delete _impl_.target_specifier_.google_grpc_; - } - clear_has_target_specifier(); - } -} -inline ::GrpcService_GoogleGrpc* GrpcService::release_google_grpc() { - // @@protoc_insertion_point(field_release:GrpcService.google_grpc) - if (target_specifier_case() == kGoogleGrpc) { - clear_has_target_specifier(); - auto* temp = _impl_.target_specifier_.google_grpc_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.target_specifier_.google_grpc_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc& GrpcService::_internal_google_grpc() const { - return target_specifier_case() == kGoogleGrpc ? *_impl_.target_specifier_.google_grpc_ : reinterpret_cast<::GrpcService_GoogleGrpc&>(::_GrpcService_GoogleGrpc_default_instance_); -} -inline const ::GrpcService_GoogleGrpc& GrpcService::google_grpc() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.google_grpc) - return _internal_google_grpc(); -} -inline ::GrpcService_GoogleGrpc* GrpcService::unsafe_arena_release_google_grpc() { - // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.google_grpc) - if (target_specifier_case() == kGoogleGrpc) { - clear_has_target_specifier(); - auto* temp = _impl_.target_specifier_.google_grpc_; - _impl_.target_specifier_.google_grpc_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void GrpcService::unsafe_arena_set_allocated_google_grpc(::GrpcService_GoogleGrpc* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_target_specifier(); - if (value) { - set_has_google_grpc(); - _impl_.target_specifier_.google_grpc_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.google_grpc) -} -inline ::GrpcService_GoogleGrpc* GrpcService::_internal_mutable_google_grpc() { - if (target_specifier_case() != kGoogleGrpc) { - clear_target_specifier(); - set_has_google_grpc(); - _impl_.target_specifier_.google_grpc_ = - ::google::protobuf::Message::DefaultConstruct<::GrpcService_GoogleGrpc>(GetArena()); - } - return _impl_.target_specifier_.google_grpc_; -} -inline ::GrpcService_GoogleGrpc* GrpcService::mutable_google_grpc() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::GrpcService_GoogleGrpc* _msg = _internal_mutable_google_grpc(); - // @@protoc_insertion_point(field_mutable:GrpcService.google_grpc) - return _msg; -} - -// .google.protobuf.Duration timeout = 3; -inline bool GrpcService::has_timeout() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.timeout_ != nullptr); - return value; -} -inline const ::google::protobuf::Duration& GrpcService::_internal_timeout() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Duration* p = _impl_.timeout_; - return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Duration&>(::google::protobuf::_Duration_default_instance_); -} -inline const ::google::protobuf::Duration& GrpcService::timeout() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.timeout) - return _internal_timeout(); -} -inline void GrpcService::unsafe_arena_set_allocated_timeout(::google::protobuf::Duration* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.timeout_); - } - _impl_.timeout_ = reinterpret_cast<::google::protobuf::Duration*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.timeout) -} -inline ::google::protobuf::Duration* GrpcService::release_timeout() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Duration* released = _impl_.timeout_; - _impl_.timeout_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::google::protobuf::Duration* GrpcService::unsafe_arena_release_timeout() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.timeout) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Duration* temp = _impl_.timeout_; - _impl_.timeout_ = nullptr; - return temp; -} -inline ::google::protobuf::Duration* GrpcService::_internal_mutable_timeout() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.timeout_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Duration>(GetArena()); - _impl_.timeout_ = reinterpret_cast<::google::protobuf::Duration*>(p); - } - return _impl_.timeout_; -} -inline ::google::protobuf::Duration* GrpcService::mutable_timeout() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::google::protobuf::Duration* _msg = _internal_mutable_timeout(); - // @@protoc_insertion_point(field_mutable:GrpcService.timeout) - return _msg; -} -inline void GrpcService::set_allocated_timeout(::google::protobuf::Duration* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.timeout_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.timeout_ = reinterpret_cast<::google::protobuf::Duration*>(value); - // @@protoc_insertion_point(field_set_allocated:GrpcService.timeout) -} - -// repeated .GrpcService.HeaderValue initial_metadata = 5; -inline int GrpcService::_internal_initial_metadata_size() const { - return _internal_initial_metadata().size(); -} -inline int GrpcService::initial_metadata_size() const { - return _internal_initial_metadata_size(); -} -inline void GrpcService::clear_initial_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.initial_metadata_.Clear(); -} -inline ::GrpcService_HeaderValue* GrpcService::mutable_initial_metadata(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:GrpcService.initial_metadata) - return _internal_mutable_initial_metadata()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>* GrpcService::mutable_initial_metadata() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:GrpcService.initial_metadata) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_initial_metadata(); -} -inline const ::GrpcService_HeaderValue& GrpcService::initial_metadata(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.initial_metadata) - return _internal_initial_metadata().Get(index); -} -inline ::GrpcService_HeaderValue* GrpcService::add_initial_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::GrpcService_HeaderValue* _add = _internal_mutable_initial_metadata()->Add(); - // @@protoc_insertion_point(field_add:GrpcService.initial_metadata) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>& GrpcService::initial_metadata() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:GrpcService.initial_metadata) - return _internal_initial_metadata(); -} -inline const ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>& -GrpcService::_internal_initial_metadata() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.initial_metadata_; -} -inline ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>* -GrpcService::_internal_mutable_initial_metadata() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.initial_metadata_; -} - -inline bool GrpcService::has_target_specifier() const { - return target_specifier_case() != TARGET_SPECIFIER_NOT_SET; -} -inline void GrpcService::clear_has_target_specifier() { - _impl_._oneof_case_[0] = TARGET_SPECIFIER_NOT_SET; -} -inline GrpcService::TargetSpecifierCase GrpcService::target_specifier_case() const { - return GrpcService::TargetSpecifierCase(_impl_._oneof_case_[0]); -} -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - - -// @@protoc_insertion_point(global_scope) - -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_proxy_5fwasm_5fintrinsics_2eproto_2epb_2eh diff --git a/proxy_wasm_intrinsics.proto b/proxy_wasm_intrinsics.proto deleted file mode 100644 index 68ef9a9..0000000 --- a/proxy_wasm_intrinsics.proto +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright 2016-2019 Envoy Project Authors -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = 'proto3'; - -import "google/protobuf/any.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/struct.proto"; - -message WKT { - google.protobuf.Struct struct = 1; -} - -message DataSource { - oneof specifier { - string filename = 1; - bytes inline_bytes = 2; - string inline_string = 3; - } -} - -message GrpcService { - message EnvoyGrpc { - string cluster_name = 1; - } - message GoogleGrpc { - string target_uri = 1; - message SslCredentials { - DataSource root_certs = 1; - DataSource private_key = 2; - DataSource cert_chain = 3; - } - message GoogleLocalCredentials { - } - message ChannelCredentials { - oneof credential_specifier { - SslCredentials ssl_credentials = 1; - google.protobuf.Empty google_default = 2; - GoogleLocalCredentials local_credentials = 3; - } - } - ChannelCredentials channel_credentials = 2; - message CallCredentials { - message ServiceAccountJWTAccessCredentials { - string json_key = 1; - uint64 token_lifetime_seconds = 2; - } - message GoogleIAMCredentials { - string authorization_token = 1; - string authority_selector = 2; - } - message MetadataCredentialsFromPlugin { - string name = 1; - oneof config_type { - google.protobuf.Struct config = 2 [deprecated = true]; - 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; - string google_refresh_token = 3; - ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; - GoogleIAMCredentials google_iam = 5; - MetadataCredentialsFromPlugin from_plugin = 6; - StsService sts_service = 7; - } - } - repeated CallCredentials call_credentials = 3; - string stat_prefix = 4; - string credentials_factory_name = 5; - google.protobuf.Struct config = 6; - } - oneof target_specifier { - EnvoyGrpc envoy_grpc = 1; - GoogleGrpc google_grpc = 2; - } - google.protobuf.Duration timeout = 3; - reserved 4; - message HeaderValue { - string key = 1; - string value = 2; - } - repeated HeaderValue initial_metadata = 5; -} diff --git a/proxy_wasm_intrinsics_full.h b/proxy_wasm_intrinsics_full.h deleted file mode 100644 index 07a4931..0000000 --- a/proxy_wasm_intrinsics_full.h +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2016-2019 Envoy Project Authors - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/* - * API Available to WASM modules. - */ -// NOLINT(namespace-envoy) -#pragma once - -#define PROXY_WASM_PROTOBUF_FULL 1 -#include "proxy_wasm_intrinsics.h" diff --git a/proxy_wasm_intrinsics_lite.h b/proxy_wasm_intrinsics_lite.h deleted file mode 100644 index 9792ff5..0000000 --- a/proxy_wasm_intrinsics_lite.h +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2016-2019 Envoy Project Authors - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/* - * API Available to WASM modules. - */ -// NOLINT(namespace-envoy) -#pragma once - -#define PROXY_WASM_PROTOBUF_LITE 1 -#include "proxy_wasm_intrinsics.h" diff --git a/proxy_wasm_intrinsics_lite.pb.cc b/proxy_wasm_intrinsics_lite.pb.cc deleted file mode 100644 index d8250b0..0000000 --- a/proxy_wasm_intrinsics_lite.pb.cc +++ /dev/null @@ -1,5137 +0,0 @@ -// Copyright 2016-2019 Envoy Project Authors -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: proxy_wasm_intrinsics_lite.proto -// Protobuf C++ Version: 5.26.1 - -#include "proxy_wasm_intrinsics_lite.pb.h" - -#include <algorithm> -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/io/zero_copy_stream_impl_lite.h" -#include "google/protobuf/generated_message_tctable_impl.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" -PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; - -inline constexpr GrpcService_HeaderValue::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - value_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template <typename> -PROTOBUF_CONSTEXPR GrpcService_HeaderValue::GrpcService_HeaderValue(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GrpcService_HeaderValueDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrpcService_HeaderValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrpcService_HeaderValueDefaultTypeInternal() {} - union { - GrpcService_HeaderValue _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_HeaderValueDefaultTypeInternal _GrpcService_HeaderValue_default_instance_; - -inline constexpr GrpcService_GoogleGrpc_GoogleLocalCredentials::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0} {} - -template <typename> -PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_GoogleLocalCredentials::GrpcService_GoogleGrpc_GoogleLocalCredentials(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal() {} - union { - GrpcService_GoogleGrpc_GoogleLocalCredentials _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_; - -inline constexpr GrpcService_GoogleGrpc_Empty::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0} {} - -template <typename> -PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_Empty::GrpcService_GoogleGrpc_Empty(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GrpcService_GoogleGrpc_EmptyDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_EmptyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrpcService_GoogleGrpc_EmptyDefaultTypeInternal() {} - union { - GrpcService_GoogleGrpc_Empty _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_EmptyDefaultTypeInternal _GrpcService_GoogleGrpc_Empty_default_instance_; - -inline constexpr GrpcService_GoogleGrpc_CallCredentials_StsService::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : token_exchange_service_uri_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - resource_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - audience_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - scope_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - requested_token_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - subject_token_path_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - subject_token_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - actor_token_path_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - actor_token_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template <typename> -PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_StsService::GrpcService_GoogleGrpc_CallCredentials_StsService(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal() {} - union { - GrpcService_GoogleGrpc_CallCredentials_StsService _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_; - -inline constexpr GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : json_key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - token_lifetime_seconds_{::uint64_t{0u}}, - _cached_size_{0} {} - -template <typename> -PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal() {} - union { - GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_; - -inline constexpr GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : authorization_token_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - authority_selector_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template <typename> -PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal() {} - union { - GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_; - -inline constexpr GrpcService_EnvoyGrpc::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : cluster_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template <typename> -PROTOBUF_CONSTEXPR GrpcService_EnvoyGrpc::GrpcService_EnvoyGrpc(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GrpcService_EnvoyGrpcDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrpcService_EnvoyGrpcDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrpcService_EnvoyGrpcDefaultTypeInternal() {} - union { - GrpcService_EnvoyGrpc _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_EnvoyGrpcDefaultTypeInternal _GrpcService_EnvoyGrpc_default_instance_; - -inline constexpr DataSource::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : specifier_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template <typename> -PROTOBUF_CONSTEXPR DataSource::DataSource(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct DataSourceDefaultTypeInternal { - PROTOBUF_CONSTEXPR DataSourceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DataSourceDefaultTypeInternal() {} - union { - DataSource _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DataSourceDefaultTypeInternal _DataSource_default_instance_; - -inline constexpr Any::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : type_url_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - value_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template <typename> -PROTOBUF_CONSTEXPR Any::Any(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AnyDefaultTypeInternal { - PROTOBUF_CONSTEXPR AnyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AnyDefaultTypeInternal() {} - union { - Any _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AnyDefaultTypeInternal _Any_default_instance_; - -inline constexpr WKT::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - struct__{nullptr} {} - -template <typename> -PROTOBUF_CONSTEXPR WKT::WKT(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct WKTDefaultTypeInternal { - PROTOBUF_CONSTEXPR WKTDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~WKTDefaultTypeInternal() {} - union { - WKT _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WKTDefaultTypeInternal _WKT_default_instance_; - -inline constexpr GrpcService_GoogleGrpc_SslCredentials::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - root_certs_{nullptr}, - private_key_{nullptr}, - cert_chain_{nullptr} {} - -template <typename> -PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_SslCredentials::GrpcService_GoogleGrpc_SslCredentials(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal() {} - union { - GrpcService_GoogleGrpc_SslCredentials _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_SslCredentials_default_instance_; - -inline constexpr GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - config_type_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template <typename> -PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal() {} - union { - GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_; - -inline constexpr GrpcService_GoogleGrpc_ChannelCredentials::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : credential_specifier_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template <typename> -PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_ChannelCredentials::GrpcService_GoogleGrpc_ChannelCredentials(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal() {} - union { - GrpcService_GoogleGrpc_ChannelCredentials _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_ChannelCredentials_default_instance_; - -inline constexpr GrpcService_GoogleGrpc_CallCredentials::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : credential_specifier_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template <typename> -PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials::GrpcService_GoogleGrpc_CallCredentials(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal() {} - union { - GrpcService_GoogleGrpc_CallCredentials _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_default_instance_; - -inline constexpr GrpcService_GoogleGrpc::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - call_credentials_{}, - target_uri_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - stat_prefix_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - credentials_factory_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - channel_credentials_{nullptr}, - config_{nullptr} {} - -template <typename> -PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc::GrpcService_GoogleGrpc(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GrpcService_GoogleGrpcDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrpcService_GoogleGrpcDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrpcService_GoogleGrpcDefaultTypeInternal() {} - union { - GrpcService_GoogleGrpc _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcService_GoogleGrpcDefaultTypeInternal _GrpcService_GoogleGrpc_default_instance_; - -inline constexpr GrpcService::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : initial_metadata_{}, - target_specifier_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template <typename> -PROTOBUF_CONSTEXPR GrpcService::GrpcService(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GrpcServiceDefaultTypeInternal { - PROTOBUF_CONSTEXPR GrpcServiceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GrpcServiceDefaultTypeInternal() {} - union { - GrpcService _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcServiceDefaultTypeInternal _GrpcService_default_instance_; -// =================================================================== - -class WKT::_Internal { - public: - using HasBits = decltype(std::declval<WKT>()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(WKT, _impl_._has_bits_); -}; - -void WKT::clear_struct_() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.struct__ != nullptr) _impl_.struct__->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -WKT::WKT(::google::protobuf::Arena* arena) - : ::google::protobuf::MessageLite(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:WKT) -} -inline PROTOBUF_NDEBUG_INLINE WKT::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -WKT::WKT( - ::google::protobuf::Arena* arena, - const WKT& from) - : ::google::protobuf::MessageLite(arena) { - WKT* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.struct__ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::MessageLite::CopyConstruct<::google::protobuf::Struct>( - arena, *from._impl_.struct__) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:WKT) -} -inline PROTOBUF_NDEBUG_INLINE WKT::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void WKT::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.struct__ = {}; -} -WKT::~WKT() { - // @@protoc_insertion_point(destructor:WKT) - _internal_metadata_.Delete<std::string>(); - SharedDtor(); -} -inline void WKT::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.struct__; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -WKT::GetClassData() const { - struct ClassData_ { - ::google::protobuf::MessageLite::ClassData header; - char type_name[4]; - }; - - PROTOBUF_CONSTINIT static const ClassData_ _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(WKT, _impl_._cached_size_), - true, - }, - "WKT", - }; - - return &_data_.header; -} -PROTOBUF_NOINLINE void WKT::Clear() { -// @@protoc_insertion_point(message_clear_start:WKT) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.struct__ != nullptr); - _impl_.struct__->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<std::string>(); -} - -const char* WKT::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> WKT::_table_ = { - { - PROTOBUF_FIELD_OFFSET(WKT, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_WKT_default_instance_._instance, - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::WKT>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .google.protobuf.Struct struct = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(WKT, _impl_.struct__)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.protobuf.Struct struct = 1; - {PROTOBUF_FIELD_OFFSET(WKT, _impl_.struct__), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - }}, -}; - -::uint8_t* WKT::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:WKT) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .google.protobuf.Struct struct = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.struct__, _impl_.struct__->GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:WKT) - return target; -} - -::size_t WKT::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:WKT) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .google.protobuf.Struct struct = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.struct__); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void WKT::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::_pbi::DownCast<const WKT*>( - &from)); -} - -void WKT::MergeFrom(const WKT& from) { - WKT* const _this = this; - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:WKT) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.struct__ != nullptr); - if (_this->_impl_.struct__ == nullptr) { - _this->_impl_.struct__ = - ::google::protobuf::MessageLite::CopyConstruct<::google::protobuf::Struct>(arena, *from._impl_.struct__); - } else { - _this->_impl_.struct__->MergeFrom(*from._impl_.struct__); - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_); -} - -void WKT::CopyFrom(const WKT& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:WKT) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool WKT::IsInitialized() const { - return true; -} - -void WKT::InternalSwap(WKT* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.struct__, other->_impl_.struct__); -} - -// =================================================================== - -class DataSource::_Internal { - public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::DataSource, _impl_._oneof_case_); -}; - -DataSource::DataSource(::google::protobuf::Arena* arena) - : ::google::protobuf::MessageLite(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:DataSource) -} -inline PROTOBUF_NDEBUG_INLINE DataSource::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : specifier_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -DataSource::DataSource( - ::google::protobuf::Arena* arena, - const DataSource& from) - : ::google::protobuf::MessageLite(arena) { - DataSource* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (specifier_case()) { - case SPECIFIER_NOT_SET: - break; - case kFilename: - new (&_impl_.specifier_.filename_) decltype(_impl_.specifier_.filename_){arena, from._impl_.specifier_.filename_}; - break; - case kInlineBytes: - new (&_impl_.specifier_.inline_bytes_) decltype(_impl_.specifier_.inline_bytes_){arena, from._impl_.specifier_.inline_bytes_}; - break; - case kInlineString: - new (&_impl_.specifier_.inline_string_) decltype(_impl_.specifier_.inline_string_){arena, from._impl_.specifier_.inline_string_}; - break; - } - - // @@protoc_insertion_point(copy_constructor:DataSource) -} -inline PROTOBUF_NDEBUG_INLINE DataSource::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : specifier_{}, - _cached_size_{0}, - _oneof_case_{} {} - -inline void DataSource::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -DataSource::~DataSource() { - // @@protoc_insertion_point(destructor:DataSource) - _internal_metadata_.Delete<std::string>(); - SharedDtor(); -} -inline void DataSource::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - if (has_specifier()) { - clear_specifier(); - } - _impl_.~Impl_(); -} - -void DataSource::clear_specifier() { -// @@protoc_insertion_point(one_of_clear_start:DataSource) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - switch (specifier_case()) { - case kFilename: { - _impl_.specifier_.filename_.Destroy(); - break; - } - case kInlineBytes: { - _impl_.specifier_.inline_bytes_.Destroy(); - break; - } - case kInlineString: { - _impl_.specifier_.inline_string_.Destroy(); - break; - } - case SPECIFIER_NOT_SET: { - break; - } - } - _impl_._oneof_case_[0] = SPECIFIER_NOT_SET; -} - - -const ::google::protobuf::MessageLite::ClassData* -DataSource::GetClassData() const { - struct ClassData_ { - ::google::protobuf::MessageLite::ClassData header; - char type_name[11]; - }; - - PROTOBUF_CONSTINIT static const ClassData_ _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(DataSource, _impl_._cached_size_), - true, - }, - "DataSource", - }; - - return &_data_.header; -} -PROTOBUF_NOINLINE void DataSource::Clear() { -// @@protoc_insertion_point(message_clear_start:DataSource) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_specifier(); - _internal_metadata_.Clear<std::string>(); -} - -const char* DataSource::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 3, 0, 40, 2> DataSource::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_DataSource_default_instance_._instance, - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::DataSource>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string filename = 1; - {PROTOBUF_FIELD_OFFSET(DataSource, _impl_.specifier_.filename_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bytes inline_bytes = 2; - {PROTOBUF_FIELD_OFFSET(DataSource, _impl_.specifier_.inline_bytes_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)}, - // string inline_string = 3; - {PROTOBUF_FIELD_OFFSET(DataSource, _impl_.specifier_.inline_string_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\12\10\0\15\0\0\0\0" - "DataSource" - "filename" - "inline_string" - }}, -}; - -::uint8_t* DataSource::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:DataSource) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - switch (specifier_case()) { - case kFilename: { - const std::string& _s = this->_internal_filename(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "DataSource.filename"); - target = stream->WriteStringMaybeAliased(1, _s, target); - break; - } - case kInlineBytes: { - const std::string& _s = this->_internal_inline_bytes(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - break; - } - case kInlineString: { - const std::string& _s = this->_internal_inline_string(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "DataSource.inline_string"); - target = stream->WriteStringMaybeAliased(3, _s, target); - break; - } - default: - break; - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:DataSource) - return target; -} - -::size_t DataSource::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:DataSource) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - switch (specifier_case()) { - // string filename = 1; - case kFilename: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_filename()); - break; - } - // bytes inline_bytes = 2; - case kInlineBytes: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_inline_bytes()); - break; - } - // string inline_string = 3; - case kInlineString: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_inline_string()); - break; - } - case SPECIFIER_NOT_SET: { - break; - } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void DataSource::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::_pbi::DownCast<const DataSource*>( - &from)); -} - -void DataSource::MergeFrom(const DataSource& from) { - DataSource* const _this = this; - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:DataSource) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { - const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; - const bool oneof_needs_init = oneof_to_case != oneof_from_case; - if (oneof_needs_init) { - if (oneof_to_case != 0) { - _this->clear_specifier(); - } - _this->_impl_._oneof_case_[0] = oneof_from_case; - } - - switch (oneof_from_case) { - case kFilename: { - if (oneof_needs_init) { - _this->_impl_.specifier_.filename_.InitDefault(); - } - _this->_impl_.specifier_.filename_.Set(from._internal_filename(), arena); - break; - } - case kInlineBytes: { - if (oneof_needs_init) { - _this->_impl_.specifier_.inline_bytes_.InitDefault(); - } - _this->_impl_.specifier_.inline_bytes_.Set(from._internal_inline_bytes(), arena); - break; - } - case kInlineString: { - if (oneof_needs_init) { - _this->_impl_.specifier_.inline_string_.InitDefault(); - } - _this->_impl_.specifier_.inline_string_.Set(from._internal_inline_string(), arena); - break; - } - case SPECIFIER_NOT_SET: - break; - } - } - _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_); -} - -void DataSource::CopyFrom(const DataSource& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:DataSource) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool DataSource::IsInitialized() const { - return true; -} - -void DataSource::InternalSwap(DataSource* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.specifier_, other->_impl_.specifier_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); -} - -// =================================================================== - -class Any::_Internal { - public: -}; - -Any::Any(::google::protobuf::Arena* arena) - : ::google::protobuf::MessageLite(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:Any) -} -inline PROTOBUF_NDEBUG_INLINE Any::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : type_url_(arena, from.type_url_), - value_(arena, from.value_), - _cached_size_{0} {} - -Any::Any( - ::google::protobuf::Arena* arena, - const Any& from) - : ::google::protobuf::MessageLite(arena) { - Any* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:Any) -} -inline PROTOBUF_NDEBUG_INLINE Any::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : type_url_(arena), - value_(arena), - _cached_size_{0} {} - -inline void Any::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -Any::~Any() { - // @@protoc_insertion_point(destructor:Any) - _internal_metadata_.Delete<std::string>(); - SharedDtor(); -} -inline void Any::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.type_url_.Destroy(); - _impl_.value_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -Any::GetClassData() const { - struct ClassData_ { - ::google::protobuf::MessageLite::ClassData header; - char type_name[4]; - }; - - PROTOBUF_CONSTINIT static const ClassData_ _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(Any, _impl_._cached_size_), - true, - }, - "Any", - }; - - return &_data_.header; -} -PROTOBUF_NOINLINE void Any::Clear() { -// @@protoc_insertion_point(message_clear_start:Any) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.type_url_.ClearToEmpty(); - _impl_.value_.ClearToEmpty(); - _internal_metadata_.Clear<std::string>(); -} - -const char* Any::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 20, 2> Any::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Any_default_instance_._instance, - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::Any>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // bytes value = 2; - {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Any, _impl_.value_)}}, - // string type_url = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Any, _impl_.type_url_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string type_url = 1; - {PROTOBUF_FIELD_OFFSET(Any, _impl_.type_url_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bytes value = 2; - {PROTOBUF_FIELD_OFFSET(Any, _impl_.value_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\3\10\0\0\0\0\0\0" - "Any" - "type_url" - }}, -}; - -::uint8_t* Any::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Any) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string type_url = 1; - if (!this->_internal_type_url().empty()) { - const std::string& _s = this->_internal_type_url(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Any.type_url"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // bytes value = 2; - if (!this->_internal_value().empty()) { - const std::string& _s = this->_internal_value(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:Any) - return target; -} - -::size_t Any::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Any) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string type_url = 1; - if (!this->_internal_type_url().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_type_url()); - } - - // bytes value = 2; - if (!this->_internal_value().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_value()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void Any::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::_pbi::DownCast<const Any*>( - &from)); -} - -void Any::MergeFrom(const Any& from) { - Any* const _this = this; - // @@protoc_insertion_point(class_specific_merge_from_start:Any) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_type_url().empty()) { - _this->_internal_set_type_url(from._internal_type_url()); - } - if (!from._internal_value().empty()) { - _this->_internal_set_value(from._internal_value()); - } - _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_); -} - -void Any::CopyFrom(const Any& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:Any) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool Any::IsInitialized() const { - return true; -} - -void Any::InternalSwap(Any* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_url_, &other->_impl_.type_url_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.value_, &other->_impl_.value_, arena); -} - -// =================================================================== - -class GrpcService_EnvoyGrpc::_Internal { - public: -}; - -GrpcService_EnvoyGrpc::GrpcService_EnvoyGrpc(::google::protobuf::Arena* arena) - : ::google::protobuf::MessageLite(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:GrpcService.EnvoyGrpc) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_EnvoyGrpc::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : cluster_name_(arena, from.cluster_name_), - _cached_size_{0} {} - -GrpcService_EnvoyGrpc::GrpcService_EnvoyGrpc( - ::google::protobuf::Arena* arena, - const GrpcService_EnvoyGrpc& from) - : ::google::protobuf::MessageLite(arena) { - GrpcService_EnvoyGrpc* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:GrpcService.EnvoyGrpc) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_EnvoyGrpc::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : cluster_name_(arena), - _cached_size_{0} {} - -inline void GrpcService_EnvoyGrpc::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GrpcService_EnvoyGrpc::~GrpcService_EnvoyGrpc() { - // @@protoc_insertion_point(destructor:GrpcService.EnvoyGrpc) - _internal_metadata_.Delete<std::string>(); - SharedDtor(); -} -inline void GrpcService_EnvoyGrpc::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.cluster_name_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GrpcService_EnvoyGrpc::GetClassData() const { - struct ClassData_ { - ::google::protobuf::MessageLite::ClassData header; - char type_name[22]; - }; - - PROTOBUF_CONSTINIT static const ClassData_ _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GrpcService_EnvoyGrpc, _impl_._cached_size_), - true, - }, - "GrpcService.EnvoyGrpc", - }; - - return &_data_.header; -} -PROTOBUF_NOINLINE void GrpcService_EnvoyGrpc::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.EnvoyGrpc) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.cluster_name_.ClearToEmpty(); - _internal_metadata_.Clear<std::string>(); -} - -const char* GrpcService_EnvoyGrpc::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 42, 2> GrpcService_EnvoyGrpc::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GrpcService_EnvoyGrpc_default_instance_._instance, - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::GrpcService_EnvoyGrpc>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string cluster_name = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_EnvoyGrpc, _impl_.cluster_name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string cluster_name = 1; - {PROTOBUF_FIELD_OFFSET(GrpcService_EnvoyGrpc, _impl_.cluster_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\25\14\0\0\0\0\0\0" - "GrpcService.EnvoyGrpc" - "cluster_name" - }}, -}; - -::uint8_t* GrpcService_EnvoyGrpc::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.EnvoyGrpc) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string cluster_name = 1; - if (!this->_internal_cluster_name().empty()) { - const std::string& _s = this->_internal_cluster_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.EnvoyGrpc.cluster_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:GrpcService.EnvoyGrpc) - return target; -} - -::size_t GrpcService_EnvoyGrpc::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.EnvoyGrpc) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string cluster_name = 1; - if (!this->_internal_cluster_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_cluster_name()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void GrpcService_EnvoyGrpc::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::_pbi::DownCast<const GrpcService_EnvoyGrpc*>( - &from)); -} - -void GrpcService_EnvoyGrpc::MergeFrom(const GrpcService_EnvoyGrpc& from) { - GrpcService_EnvoyGrpc* const _this = this; - // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.EnvoyGrpc) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_cluster_name().empty()) { - _this->_internal_set_cluster_name(from._internal_cluster_name()); - } - _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_); -} - -void GrpcService_EnvoyGrpc::CopyFrom(const GrpcService_EnvoyGrpc& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.EnvoyGrpc) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GrpcService_EnvoyGrpc::IsInitialized() const { - return true; -} - -void GrpcService_EnvoyGrpc::InternalSwap(GrpcService_EnvoyGrpc* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.cluster_name_, &other->_impl_.cluster_name_, arena); -} - -// =================================================================== - -class GrpcService_GoogleGrpc_SslCredentials::_Internal { - public: - using HasBits = decltype(std::declval<GrpcService_GoogleGrpc_SslCredentials>()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_._has_bits_); -}; - -GrpcService_GoogleGrpc_SslCredentials::GrpcService_GoogleGrpc_SslCredentials(::google::protobuf::Arena* arena) - : ::google::protobuf::MessageLite(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.SslCredentials) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_SslCredentials::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -GrpcService_GoogleGrpc_SslCredentials::GrpcService_GoogleGrpc_SslCredentials( - ::google::protobuf::Arena* arena, - const GrpcService_GoogleGrpc_SslCredentials& from) - : ::google::protobuf::MessageLite(arena) { - GrpcService_GoogleGrpc_SslCredentials* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.root_certs_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::MessageLite::CopyConstruct<::DataSource>( - arena, *from._impl_.root_certs_) - : nullptr; - _impl_.private_key_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::MessageLite::CopyConstruct<::DataSource>( - arena, *from._impl_.private_key_) - : nullptr; - _impl_.cert_chain_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::MessageLite::CopyConstruct<::DataSource>( - arena, *from._impl_.cert_chain_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.SslCredentials) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_SslCredentials::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void GrpcService_GoogleGrpc_SslCredentials::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast<char *>(&_impl_) + - offsetof(Impl_, root_certs_), - 0, - offsetof(Impl_, cert_chain_) - - offsetof(Impl_, root_certs_) + - sizeof(Impl_::cert_chain_)); -} -GrpcService_GoogleGrpc_SslCredentials::~GrpcService_GoogleGrpc_SslCredentials() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.SslCredentials) - _internal_metadata_.Delete<std::string>(); - SharedDtor(); -} -inline void GrpcService_GoogleGrpc_SslCredentials::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.root_certs_; - delete _impl_.private_key_; - delete _impl_.cert_chain_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GrpcService_GoogleGrpc_SslCredentials::GetClassData() const { - struct ClassData_ { - ::google::protobuf::MessageLite::ClassData header; - char type_name[38]; - }; - - PROTOBUF_CONSTINIT static const ClassData_ _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_._cached_size_), - true, - }, - "GrpcService.GoogleGrpc.SslCredentials", - }; - - return &_data_.header; -} -PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_SslCredentials::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.SslCredentials) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.root_certs_ != nullptr); - _impl_.root_certs_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.private_key_ != nullptr); - _impl_.private_key_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.cert_chain_ != nullptr); - _impl_.cert_chain_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<std::string>(); -} - -const char* GrpcService_GoogleGrpc_SslCredentials::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 3, 0, 2> GrpcService_GoogleGrpc_SslCredentials::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GrpcService_GoogleGrpc_SslCredentials_default_instance_._instance, - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_SslCredentials>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .DataSource root_certs = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.root_certs_)}}, - // .DataSource private_key = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.private_key_)}}, - // .DataSource cert_chain = 3; - {::_pbi::TcParser::FastMtS1, - {26, 2, 2, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.cert_chain_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .DataSource root_certs = 1; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.root_certs_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .DataSource private_key = 2; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.private_key_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .DataSource cert_chain = 3; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.cert_chain_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::DataSource>()}, - {::_pbi::TcParser::GetTable<::DataSource>()}, - {::_pbi::TcParser::GetTable<::DataSource>()}, - }}, {{ - }}, -}; - -::uint8_t* GrpcService_GoogleGrpc_SslCredentials::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.SslCredentials) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .DataSource root_certs = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.root_certs_, _impl_.root_certs_->GetCachedSize(), target, stream); - } - - // .DataSource private_key = 2; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.private_key_, _impl_.private_key_->GetCachedSize(), target, stream); - } - - // .DataSource cert_chain = 3; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *_impl_.cert_chain_, _impl_.cert_chain_->GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.SslCredentials) - return target; -} - -::size_t GrpcService_GoogleGrpc_SslCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.SslCredentials) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // .DataSource root_certs = 1; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.root_certs_); - } - - // .DataSource private_key = 2; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.private_key_); - } - - // .DataSource cert_chain = 3; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.cert_chain_); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void GrpcService_GoogleGrpc_SslCredentials::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::_pbi::DownCast<const GrpcService_GoogleGrpc_SslCredentials*>( - &from)); -} - -void GrpcService_GoogleGrpc_SslCredentials::MergeFrom(const GrpcService_GoogleGrpc_SslCredentials& from) { - GrpcService_GoogleGrpc_SslCredentials* const _this = this; - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.SslCredentials) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.root_certs_ != nullptr); - if (_this->_impl_.root_certs_ == nullptr) { - _this->_impl_.root_certs_ = - ::google::protobuf::MessageLite::CopyConstruct<::DataSource>(arena, *from._impl_.root_certs_); - } else { - _this->_impl_.root_certs_->MergeFrom(*from._impl_.root_certs_); - } - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(from._impl_.private_key_ != nullptr); - if (_this->_impl_.private_key_ == nullptr) { - _this->_impl_.private_key_ = - ::google::protobuf::MessageLite::CopyConstruct<::DataSource>(arena, *from._impl_.private_key_); - } else { - _this->_impl_.private_key_->MergeFrom(*from._impl_.private_key_); - } - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(from._impl_.cert_chain_ != nullptr); - if (_this->_impl_.cert_chain_ == nullptr) { - _this->_impl_.cert_chain_ = - ::google::protobuf::MessageLite::CopyConstruct<::DataSource>(arena, *from._impl_.cert_chain_); - } else { - _this->_impl_.cert_chain_->MergeFrom(*from._impl_.cert_chain_); - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_); -} - -void GrpcService_GoogleGrpc_SslCredentials::CopyFrom(const GrpcService_GoogleGrpc_SslCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.SslCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_SslCredentials::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_SslCredentials::InternalSwap(GrpcService_GoogleGrpc_SslCredentials* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.cert_chain_) - + sizeof(GrpcService_GoogleGrpc_SslCredentials::_impl_.cert_chain_) - - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_SslCredentials, _impl_.root_certs_)>( - reinterpret_cast<char*>(&_impl_.root_certs_), - reinterpret_cast<char*>(&other->_impl_.root_certs_)); -} - -// =================================================================== - -class GrpcService_GoogleGrpc_GoogleLocalCredentials::_Internal { - public: -}; - -GrpcService_GoogleGrpc_GoogleLocalCredentials::GrpcService_GoogleGrpc_GoogleLocalCredentials(::google::protobuf::Arena* arena) - : ::google::protobuf::MessageLite(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.GoogleLocalCredentials) -} -GrpcService_GoogleGrpc_GoogleLocalCredentials::GrpcService_GoogleGrpc_GoogleLocalCredentials( - ::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_GoogleLocalCredentials& from) - : GrpcService_GoogleGrpc_GoogleLocalCredentials(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_GoogleLocalCredentials::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void GrpcService_GoogleGrpc_GoogleLocalCredentials::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GrpcService_GoogleGrpc_GoogleLocalCredentials::~GrpcService_GoogleGrpc_GoogleLocalCredentials() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.GoogleLocalCredentials) - _internal_metadata_.Delete<std::string>(); - SharedDtor(); -} -inline void GrpcService_GoogleGrpc_GoogleLocalCredentials::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GrpcService_GoogleGrpc_GoogleLocalCredentials::GetClassData() const { - struct ClassData_ { - ::google::protobuf::MessageLite::ClassData header; - char type_name[46]; - }; - - PROTOBUF_CONSTINIT static const ClassData_ _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_GoogleLocalCredentials, _impl_._cached_size_), - true, - }, - "GrpcService.GoogleGrpc.GoogleLocalCredentials", - }; - - return &_data_.header; -} -PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_GoogleLocalCredentials::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.GoogleLocalCredentials) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear<std::string>(); -} - -const char* GrpcService_GoogleGrpc_GoogleLocalCredentials::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 0, 0, 0, 2> GrpcService_GoogleGrpc_GoogleLocalCredentials::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 0, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967295, // skipmap - offsetof(decltype(_table_), field_names), // no field_entries - 0, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_._instance, - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_GoogleLocalCredentials>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, - // no field_entries, or aux_entries - {{ - }}, -}; - -::uint8_t* GrpcService_GoogleGrpc_GoogleLocalCredentials::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.GoogleLocalCredentials) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.GoogleLocalCredentials) - return target; -} - -::size_t GrpcService_GoogleGrpc_GoogleLocalCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.GoogleLocalCredentials) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void GrpcService_GoogleGrpc_GoogleLocalCredentials::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::_pbi::DownCast<const GrpcService_GoogleGrpc_GoogleLocalCredentials*>( - &from)); -} - -void GrpcService_GoogleGrpc_GoogleLocalCredentials::MergeFrom(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from) { - GrpcService_GoogleGrpc_GoogleLocalCredentials* const _this = this; - // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.GoogleLocalCredentials) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_); -} - -void GrpcService_GoogleGrpc_GoogleLocalCredentials::CopyFrom(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.GoogleLocalCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_GoogleLocalCredentials::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_GoogleLocalCredentials::InternalSwap(GrpcService_GoogleGrpc_GoogleLocalCredentials* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); -} - -// =================================================================== - -class GrpcService_GoogleGrpc_Empty::_Internal { - public: -}; - -GrpcService_GoogleGrpc_Empty::GrpcService_GoogleGrpc_Empty(::google::protobuf::Arena* arena) - : ::google::protobuf::MessageLite(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.Empty) -} -GrpcService_GoogleGrpc_Empty::GrpcService_GoogleGrpc_Empty( - ::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_Empty& from) - : GrpcService_GoogleGrpc_Empty(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_Empty::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void GrpcService_GoogleGrpc_Empty::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GrpcService_GoogleGrpc_Empty::~GrpcService_GoogleGrpc_Empty() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.Empty) - _internal_metadata_.Delete<std::string>(); - SharedDtor(); -} -inline void GrpcService_GoogleGrpc_Empty::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GrpcService_GoogleGrpc_Empty::GetClassData() const { - struct ClassData_ { - ::google::protobuf::MessageLite::ClassData header; - char type_name[29]; - }; - - PROTOBUF_CONSTINIT static const ClassData_ _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_Empty, _impl_._cached_size_), - true, - }, - "GrpcService.GoogleGrpc.Empty", - }; - - return &_data_.header; -} -PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_Empty::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.Empty) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear<std::string>(); -} - -const char* GrpcService_GoogleGrpc_Empty::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 0, 0, 0, 2> GrpcService_GoogleGrpc_Empty::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 0, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967295, // skipmap - offsetof(decltype(_table_), field_names), // no field_entries - 0, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GrpcService_GoogleGrpc_Empty_default_instance_._instance, - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_Empty>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, - // no field_entries, or aux_entries - {{ - }}, -}; - -::uint8_t* GrpcService_GoogleGrpc_Empty::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.Empty) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.Empty) - return target; -} - -::size_t GrpcService_GoogleGrpc_Empty::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.Empty) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void GrpcService_GoogleGrpc_Empty::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::_pbi::DownCast<const GrpcService_GoogleGrpc_Empty*>( - &from)); -} - -void GrpcService_GoogleGrpc_Empty::MergeFrom(const GrpcService_GoogleGrpc_Empty& from) { - GrpcService_GoogleGrpc_Empty* const _this = this; - // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.Empty) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_); -} - -void GrpcService_GoogleGrpc_Empty::CopyFrom(const GrpcService_GoogleGrpc_Empty& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.Empty) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_Empty::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_Empty::InternalSwap(GrpcService_GoogleGrpc_Empty* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); -} - -// =================================================================== - -class GrpcService_GoogleGrpc_ChannelCredentials::_Internal { - public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_ChannelCredentials, _impl_._oneof_case_); -}; - -void GrpcService_GoogleGrpc_ChannelCredentials::set_allocated_ssl_credentials(::GrpcService_GoogleGrpc_SslCredentials* ssl_credentials) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_credential_specifier(); - if (ssl_credentials) { - ::google::protobuf::Arena* submessage_arena = ssl_credentials->GetArena(); - if (message_arena != submessage_arena) { - ssl_credentials = ::google::protobuf::internal::GetOwnedMessage(message_arena, ssl_credentials, submessage_arena); - } - set_has_ssl_credentials(); - _impl_.credential_specifier_.ssl_credentials_ = ssl_credentials; - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.ChannelCredentials.ssl_credentials) -} -void GrpcService_GoogleGrpc_ChannelCredentials::set_allocated_google_default(::GrpcService_GoogleGrpc_Empty* google_default) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_credential_specifier(); - if (google_default) { - ::google::protobuf::Arena* submessage_arena = google_default->GetArena(); - if (message_arena != submessage_arena) { - google_default = ::google::protobuf::internal::GetOwnedMessage(message_arena, google_default, submessage_arena); - } - set_has_google_default(); - _impl_.credential_specifier_.google_default_ = google_default; - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.ChannelCredentials.google_default) -} -void GrpcService_GoogleGrpc_ChannelCredentials::set_allocated_local_credentials(::GrpcService_GoogleGrpc_GoogleLocalCredentials* local_credentials) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_credential_specifier(); - if (local_credentials) { - ::google::protobuf::Arena* submessage_arena = local_credentials->GetArena(); - if (message_arena != submessage_arena) { - local_credentials = ::google::protobuf::internal::GetOwnedMessage(message_arena, local_credentials, submessage_arena); - } - set_has_local_credentials(); - _impl_.credential_specifier_.local_credentials_ = local_credentials; - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.ChannelCredentials.local_credentials) -} -GrpcService_GoogleGrpc_ChannelCredentials::GrpcService_GoogleGrpc_ChannelCredentials(::google::protobuf::Arena* arena) - : ::google::protobuf::MessageLite(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.ChannelCredentials) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_ChannelCredentials::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : credential_specifier_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -GrpcService_GoogleGrpc_ChannelCredentials::GrpcService_GoogleGrpc_ChannelCredentials( - ::google::protobuf::Arena* arena, - const GrpcService_GoogleGrpc_ChannelCredentials& from) - : ::google::protobuf::MessageLite(arena) { - GrpcService_GoogleGrpc_ChannelCredentials* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (credential_specifier_case()) { - case CREDENTIAL_SPECIFIER_NOT_SET: - break; - case kSslCredentials: - _impl_.credential_specifier_.ssl_credentials_ = ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_SslCredentials>(arena, *from._impl_.credential_specifier_.ssl_credentials_); - break; - case kGoogleDefault: - _impl_.credential_specifier_.google_default_ = ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_Empty>(arena, *from._impl_.credential_specifier_.google_default_); - break; - case kLocalCredentials: - _impl_.credential_specifier_.local_credentials_ = ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_GoogleLocalCredentials>(arena, *from._impl_.credential_specifier_.local_credentials_); - break; - } - - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.ChannelCredentials) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_ChannelCredentials::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : credential_specifier_{}, - _cached_size_{0}, - _oneof_case_{} {} - -inline void GrpcService_GoogleGrpc_ChannelCredentials::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GrpcService_GoogleGrpc_ChannelCredentials::~GrpcService_GoogleGrpc_ChannelCredentials() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.ChannelCredentials) - _internal_metadata_.Delete<std::string>(); - SharedDtor(); -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - if (has_credential_specifier()) { - clear_credential_specifier(); - } - _impl_.~Impl_(); -} - -void GrpcService_GoogleGrpc_ChannelCredentials::clear_credential_specifier() { -// @@protoc_insertion_point(one_of_clear_start:GrpcService.GoogleGrpc.ChannelCredentials) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - switch (credential_specifier_case()) { - case kSslCredentials: { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.ssl_credentials_; - } - break; - } - case kGoogleDefault: { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.google_default_; - } - break; - } - case kLocalCredentials: { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.local_credentials_; - } - break; - } - case CREDENTIAL_SPECIFIER_NOT_SET: { - break; - } - } - _impl_._oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; -} - - -const ::google::protobuf::MessageLite::ClassData* -GrpcService_GoogleGrpc_ChannelCredentials::GetClassData() const { - struct ClassData_ { - ::google::protobuf::MessageLite::ClassData header; - char type_name[42]; - }; - - PROTOBUF_CONSTINIT static const ClassData_ _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_ChannelCredentials, _impl_._cached_size_), - true, - }, - "GrpcService.GoogleGrpc.ChannelCredentials", - }; - - return &_data_.header; -} -PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_ChannelCredentials::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.ChannelCredentials) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_credential_specifier(); - _internal_metadata_.Clear<std::string>(); -} - -const char* GrpcService_GoogleGrpc_ChannelCredentials::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 3, 3, 0, 2> GrpcService_GoogleGrpc_ChannelCredentials::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GrpcService_GoogleGrpc_ChannelCredentials_default_instance_._instance, - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_ChannelCredentials>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .GrpcService.GoogleGrpc.SslCredentials ssl_credentials = 1; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_ChannelCredentials, _impl_.credential_specifier_.ssl_credentials_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .GrpcService.GoogleGrpc.Empty google_default = 2; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_ChannelCredentials, _impl_.credential_specifier_.google_default_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_ChannelCredentials, _impl_.credential_specifier_.local_credentials_), _Internal::kOneofCaseOffset + 0, 2, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_SslCredentials>()}, - {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_Empty>()}, - {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_GoogleLocalCredentials>()}, - }}, {{ - }}, -}; - -::uint8_t* GrpcService_GoogleGrpc_ChannelCredentials::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.ChannelCredentials) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - switch (credential_specifier_case()) { - case kSslCredentials: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.credential_specifier_.ssl_credentials_, _impl_.credential_specifier_.ssl_credentials_->GetCachedSize(), target, stream); - break; - } - case kGoogleDefault: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.credential_specifier_.google_default_, _impl_.credential_specifier_.google_default_->GetCachedSize(), target, stream); - break; - } - case kLocalCredentials: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *_impl_.credential_specifier_.local_credentials_, _impl_.credential_specifier_.local_credentials_->GetCachedSize(), target, stream); - break; - } - default: - break; - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.ChannelCredentials) - return target; -} - -::size_t GrpcService_GoogleGrpc_ChannelCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.ChannelCredentials) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - switch (credential_specifier_case()) { - // .GrpcService.GoogleGrpc.SslCredentials ssl_credentials = 1; - case kSslCredentials: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.ssl_credentials_); - break; - } - // .GrpcService.GoogleGrpc.Empty google_default = 2; - case kGoogleDefault: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.google_default_); - break; - } - // .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; - case kLocalCredentials: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.local_credentials_); - break; - } - case CREDENTIAL_SPECIFIER_NOT_SET: { - break; - } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void GrpcService_GoogleGrpc_ChannelCredentials::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::_pbi::DownCast<const GrpcService_GoogleGrpc_ChannelCredentials*>( - &from)); -} - -void GrpcService_GoogleGrpc_ChannelCredentials::MergeFrom(const GrpcService_GoogleGrpc_ChannelCredentials& from) { - GrpcService_GoogleGrpc_ChannelCredentials* const _this = this; - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.ChannelCredentials) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { - const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; - const bool oneof_needs_init = oneof_to_case != oneof_from_case; - if (oneof_needs_init) { - if (oneof_to_case != 0) { - _this->clear_credential_specifier(); - } - _this->_impl_._oneof_case_[0] = oneof_from_case; - } - - switch (oneof_from_case) { - case kSslCredentials: { - if (oneof_needs_init) { - _this->_impl_.credential_specifier_.ssl_credentials_ = - ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_SslCredentials>(arena, *from._impl_.credential_specifier_.ssl_credentials_); - } else { - _this->_impl_.credential_specifier_.ssl_credentials_->MergeFrom(from._internal_ssl_credentials()); - } - break; - } - case kGoogleDefault: { - if (oneof_needs_init) { - _this->_impl_.credential_specifier_.google_default_ = - ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_Empty>(arena, *from._impl_.credential_specifier_.google_default_); - } else { - _this->_impl_.credential_specifier_.google_default_->MergeFrom(from._internal_google_default()); - } - break; - } - case kLocalCredentials: { - if (oneof_needs_init) { - _this->_impl_.credential_specifier_.local_credentials_ = - ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_GoogleLocalCredentials>(arena, *from._impl_.credential_specifier_.local_credentials_); - } else { - _this->_impl_.credential_specifier_.local_credentials_->MergeFrom(from._internal_local_credentials()); - } - break; - } - case CREDENTIAL_SPECIFIER_NOT_SET: - break; - } - } - _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_); -} - -void GrpcService_GoogleGrpc_ChannelCredentials::CopyFrom(const GrpcService_GoogleGrpc_ChannelCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.ChannelCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_ChannelCredentials::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_ChannelCredentials::InternalSwap(GrpcService_GoogleGrpc_ChannelCredentials* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.credential_specifier_, other->_impl_.credential_specifier_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); -} - -// =================================================================== - -class GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_Internal { - public: -}; - -GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(::google::protobuf::Arena* arena) - : ::google::protobuf::MessageLite(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : json_key_(arena, from.json_key_), - _cached_size_{0} {} - -GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials( - ::google::protobuf::Arena* arena, - const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) - : ::google::protobuf::MessageLite(arena) { - GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.token_lifetime_seconds_ = from._impl_.token_lifetime_seconds_; - - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : json_key_(arena), - _cached_size_{0} {} - -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.token_lifetime_seconds_ = {}; -} -GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::~GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - _internal_metadata_.Delete<std::string>(); - SharedDtor(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.json_key_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::GetClassData() const { - struct ClassData_ { - ::google::protobuf::MessageLite::ClassData header; - char type_name[74]; - }; - - PROTOBUF_CONSTINIT static const ClassData_ _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _impl_._cached_size_), - true, - }, - "GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials", - }; - - return &_data_.header; -} -PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.json_key_.ClearToEmpty(); - _impl_.token_lifetime_seconds_ = ::uint64_t{0u}; - _internal_metadata_.Clear<std::string>(); -} - -const char* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 90, 2> GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_._instance, - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // uint64 token_lifetime_seconds = 2; - {::_pbi::TcParser::FastV64S1, - {16, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _impl_.token_lifetime_seconds_)}}, - // string json_key = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _impl_.json_key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string json_key = 1; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _impl_.json_key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // uint64 token_lifetime_seconds = 2; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials, _impl_.token_lifetime_seconds_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, - // no aux_entries - {{ - "\111\10\0\0\0\0\0\0" - "GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials" - "json_key" - }}, -}; - -::uint8_t* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string json_key = 1; - if (!this->_internal_json_key().empty()) { - const std::string& _s = this->_internal_json_key(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // uint64 token_lifetime_seconds = 2; - if (this->_internal_token_lifetime_seconds() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_token_lifetime_seconds(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - return target; -} - -::size_t GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string json_key = 1; - if (!this->_internal_json_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_json_key()); - } - - // uint64 token_lifetime_seconds = 2; - if (this->_internal_token_lifetime_seconds() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_token_lifetime_seconds()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::_pbi::DownCast<const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials*>( - &from)); -} - -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) { - GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* const _this = this; - // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_json_key().empty()) { - _this->_internal_set_json_key(from._internal_json_key()); - } - if (from._internal_token_lifetime_seconds() != 0) { - _this->_impl_.token_lifetime_seconds_ = from._impl_.token_lifetime_seconds_; - } - _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_); -} - -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.json_key_, &other->_impl_.json_key_, arena); - swap(_impl_.token_lifetime_seconds_, other->_impl_.token_lifetime_seconds_); -} - -// =================================================================== - -class GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_Internal { - public: -}; - -GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(::google::protobuf::Arena* arena) - : ::google::protobuf::MessageLite(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : authorization_token_(arena, from.authorization_token_), - authority_selector_(arena, from.authority_selector_), - _cached_size_{0} {} - -GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials( - ::google::protobuf::Arena* arena, - const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) - : ::google::protobuf::MessageLite(arena) { - GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : authorization_token_(arena), - authority_selector_(arena), - _cached_size_{0} {} - -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::~GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - _internal_metadata_.Delete<std::string>(); - SharedDtor(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.authorization_token_.Destroy(); - _impl_.authority_selector_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::GetClassData() const { - struct ClassData_ { - ::google::protobuf::MessageLite::ClassData header; - char type_name[60]; - }; - - PROTOBUF_CONSTINIT static const ClassData_ _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _impl_._cached_size_), - true, - }, - "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials", - }; - - return &_data_.header; -} -PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.authorization_token_.ClearToEmpty(); - _impl_.authority_selector_.ClearToEmpty(); - _internal_metadata_.Clear<std::string>(); -} - -const char* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 105, 2> GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_._instance, - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string authority_selector = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _impl_.authority_selector_)}}, - // string authorization_token = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _impl_.authorization_token_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string authorization_token = 1; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _impl_.authorization_token_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string authority_selector = 2; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials, _impl_.authority_selector_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\73\23\22\0\0\0\0\0" - "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials" - "authorization_token" - "authority_selector" - }}, -}; - -::uint8_t* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string authorization_token = 1; - if (!this->_internal_authorization_token().empty()) { - const std::string& _s = this->_internal_authorization_token(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // string authority_selector = 2; - if (!this->_internal_authority_selector().empty()) { - const std::string& _s = this->_internal_authority_selector(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - return target; -} - -::size_t GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string authorization_token = 1; - if (!this->_internal_authorization_token().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_authorization_token()); - } - - // string authority_selector = 2; - if (!this->_internal_authority_selector().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_authority_selector()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::_pbi::DownCast<const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials*>( - &from)); -} - -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) { - GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* const _this = this; - // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_authorization_token().empty()) { - _this->_internal_set_authorization_token(from._internal_authorization_token()); - } - if (!from._internal_authority_selector().empty()) { - _this->_internal_set_authority_selector(from._internal_authority_selector()); - } - _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_); -} - -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.authorization_token_, &other->_impl_.authorization_token_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.authority_selector_, &other->_impl_.authority_selector_, arena); -} - -// =================================================================== - -class GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_Internal { - public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_._oneof_case_); -}; - -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_allocated_config(::google::protobuf::Struct* config) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_config_type(); - if (config) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(config)->GetArena(); - if (message_arena != submessage_arena) { - config = ::google::protobuf::internal::GetOwnedMessage(message_arena, config, submessage_arena); - } - set_has_config(); - _impl_.config_type_.config_ = config; - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) -} -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::clear_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (config_type_case() == kConfig) { - if (GetArena() == nullptr) { - delete _impl_.config_type_.config_; - } - clear_has_config_type(); - } -} -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_allocated_typed_config(::Any* typed_config) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_config_type(); - if (typed_config) { - ::google::protobuf::Arena* submessage_arena = typed_config->GetArena(); - if (message_arena != submessage_arena) { - typed_config = ::google::protobuf::internal::GetOwnedMessage(message_arena, typed_config, submessage_arena); - } - set_has_typed_config(); - _impl_.config_type_.typed_config_ = typed_config; - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) -} -GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(::google::protobuf::Arena* arena) - : ::google::protobuf::MessageLite(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - config_type_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin( - ::google::protobuf::Arena* arena, - const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from) - : ::google::protobuf::MessageLite(arena) { - GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (config_type_case()) { - case CONFIG_TYPE_NOT_SET: - break; - case kConfig: - _impl_.config_type_.config_ = ::google::protobuf::MessageLite::CopyConstruct<::google::protobuf::Struct>(arena, *from._impl_.config_type_.config_); - break; - case kTypedConfig: - _impl_.config_type_.typed_config_ = ::google::protobuf::MessageLite::CopyConstruct<::Any>(arena, *from._impl_.config_type_.typed_config_); - break; - } - - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - config_type_{}, - _cached_size_{0}, - _oneof_case_{} {} - -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::~GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - _internal_metadata_.Delete<std::string>(); - SharedDtor(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - if (has_config_type()) { - clear_config_type(); - } - _impl_.~Impl_(); -} - -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::clear_config_type() { -// @@protoc_insertion_point(one_of_clear_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - switch (config_type_case()) { - case kConfig: { - if (GetArena() == nullptr) { - delete _impl_.config_type_.config_; - } - break; - } - case kTypedConfig: { - if (GetArena() == nullptr) { - delete _impl_.config_type_.typed_config_; - } - break; - } - case CONFIG_TYPE_NOT_SET: { - break; - } - } - _impl_._oneof_case_[0] = CONFIG_TYPE_NOT_SET; -} - - -const ::google::protobuf::MessageLite::ClassData* -GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::GetClassData() const { - struct ClassData_ { - ::google::protobuf::MessageLite::ClassData header; - char type_name[69]; - }; - - PROTOBUF_CONSTINIT static const ClassData_ _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_._cached_size_), - true, - }, - "GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin", - }; - - return &_data_.header; -} -PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.name_.ClearToEmpty(); - clear_config_type(); - _internal_metadata_.Clear<std::string>(); -} - -const char* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 3, 2, 81, 2> GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_._instance, - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string name = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct config = 2 [deprecated = true]; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_.config_type_.config_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .Any typed_config = 3; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin, _impl_.config_type_.typed_config_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - {::_pbi::TcParser::GetTable<::Any>()}, - }}, {{ - "\104\4\0\0\0\0\0\0" - "GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin" - "name" - }}, -}; - -::uint8_t* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string name = 1; - if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - switch (config_type_case()) { - case kConfig: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.config_type_.config_, _impl_.config_type_.config_->GetCachedSize(), target, stream); - break; - } - case kTypedConfig: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *_impl_.config_type_.typed_config_, _impl_.config_type_.typed_config_->GetCachedSize(), target, stream); - break; - } - default: - break; - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - return target; -} - -::size_t GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string name = 1; - if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - switch (config_type_case()) { - // .google.protobuf.Struct config = 2 [deprecated = true]; - case kConfig: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.config_type_.config_); - break; - } - // .Any typed_config = 3; - case kTypedConfig: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.config_type_.typed_config_); - break; - } - case CONFIG_TYPE_NOT_SET: { - break; - } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::_pbi::DownCast<const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin*>( - &from)); -} - -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from) { - GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* const _this = this; - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); - } - if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { - const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; - const bool oneof_needs_init = oneof_to_case != oneof_from_case; - if (oneof_needs_init) { - if (oneof_to_case != 0) { - _this->clear_config_type(); - } - _this->_impl_._oneof_case_[0] = oneof_from_case; - } - - switch (oneof_from_case) { - case kConfig: { - if (oneof_needs_init) { - _this->_impl_.config_type_.config_ = - ::google::protobuf::MessageLite::CopyConstruct<::google::protobuf::Struct>(arena, *from._impl_.config_type_.config_); - } else { - _this->_impl_.config_type_.config_->MergeFrom(from._internal_config()); - } - break; - } - case kTypedConfig: { - if (oneof_needs_init) { - _this->_impl_.config_type_.typed_config_ = - ::google::protobuf::MessageLite::CopyConstruct<::Any>(arena, *from._impl_.config_type_.typed_config_); - } else { - _this->_impl_.config_type_.typed_config_->MergeFrom(from._internal_typed_config()); - } - break; - } - case CONFIG_TYPE_NOT_SET: - break; - } - } - _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_); -} - -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - swap(_impl_.config_type_, other->_impl_.config_type_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); -} - -// =================================================================== - -class GrpcService_GoogleGrpc_CallCredentials_StsService::_Internal { - public: -}; - -GrpcService_GoogleGrpc_CallCredentials_StsService::GrpcService_GoogleGrpc_CallCredentials_StsService(::google::protobuf::Arena* arena) - : ::google::protobuf::MessageLite(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.CallCredentials.StsService) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_StsService::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : token_exchange_service_uri_(arena, from.token_exchange_service_uri_), - resource_(arena, from.resource_), - audience_(arena, from.audience_), - scope_(arena, from.scope_), - requested_token_type_(arena, from.requested_token_type_), - subject_token_path_(arena, from.subject_token_path_), - subject_token_type_(arena, from.subject_token_type_), - actor_token_path_(arena, from.actor_token_path_), - actor_token_type_(arena, from.actor_token_type_), - _cached_size_{0} {} - -GrpcService_GoogleGrpc_CallCredentials_StsService::GrpcService_GoogleGrpc_CallCredentials_StsService( - ::google::protobuf::Arena* arena, - const GrpcService_GoogleGrpc_CallCredentials_StsService& from) - : ::google::protobuf::MessageLite(arena) { - GrpcService_GoogleGrpc_CallCredentials_StsService* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials.StsService) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials_StsService::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : token_exchange_service_uri_(arena), - resource_(arena), - audience_(arena), - scope_(arena), - requested_token_type_(arena), - subject_token_path_(arena), - subject_token_type_(arena), - actor_token_path_(arena), - actor_token_type_(arena), - _cached_size_{0} {} - -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GrpcService_GoogleGrpc_CallCredentials_StsService::~GrpcService_GoogleGrpc_CallCredentials_StsService() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials.StsService) - _internal_metadata_.Delete<std::string>(); - SharedDtor(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.token_exchange_service_uri_.Destroy(); - _impl_.resource_.Destroy(); - _impl_.audience_.Destroy(); - _impl_.scope_.Destroy(); - _impl_.requested_token_type_.Destroy(); - _impl_.subject_token_path_.Destroy(); - _impl_.subject_token_type_.Destroy(); - _impl_.actor_token_path_.Destroy(); - _impl_.actor_token_type_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GrpcService_GoogleGrpc_CallCredentials_StsService::GetClassData() const { - struct ClassData_ { - ::google::protobuf::MessageLite::ClassData header; - char type_name[50]; - }; - - PROTOBUF_CONSTINIT static const ClassData_ _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_._cached_size_), - true, - }, - "GrpcService.GoogleGrpc.CallCredentials.StsService", - }; - - return &_data_.header; -} -PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.token_exchange_service_uri_.ClearToEmpty(); - _impl_.resource_.ClearToEmpty(); - _impl_.audience_.ClearToEmpty(); - _impl_.scope_.ClearToEmpty(); - _impl_.requested_token_type_.ClearToEmpty(); - _impl_.subject_token_path_.ClearToEmpty(); - _impl_.subject_token_type_.ClearToEmpty(); - _impl_.actor_token_path_.ClearToEmpty(); - _impl_.actor_token_type_.ClearToEmpty(); - _internal_metadata_.Clear<std::string>(); -} - -const char* GrpcService_GoogleGrpc_CallCredentials_StsService::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 9, 0, 201, 2> GrpcService_GoogleGrpc_CallCredentials_StsService::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 9, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294966784, // skipmap - offsetof(decltype(_table_), field_entries), - 9, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_._instance, - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_StsService>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string token_exchange_service_uri = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.token_exchange_service_uri_)}}, - // string resource = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.resource_)}}, - // string audience = 3; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.audience_)}}, - // string scope = 4; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.scope_)}}, - // string requested_token_type = 5; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.requested_token_type_)}}, - // string subject_token_path = 6; - {::_pbi::TcParser::FastUS1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.subject_token_path_)}}, - // string subject_token_type = 7; - {::_pbi::TcParser::FastUS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.subject_token_type_)}}, - // string actor_token_path = 8; - {::_pbi::TcParser::FastUS1, - {66, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.actor_token_path_)}}, - // string actor_token_type = 9; - {::_pbi::TcParser::FastUS1, - {74, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.actor_token_type_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string token_exchange_service_uri = 1; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.token_exchange_service_uri_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string resource = 2; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.resource_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string audience = 3; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.audience_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string scope = 4; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.scope_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string requested_token_type = 5; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.requested_token_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string subject_token_path = 6; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.subject_token_path_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string subject_token_type = 7; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.subject_token_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string actor_token_path = 8; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.actor_token_path_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string actor_token_type = 9; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials_StsService, _impl_.actor_token_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\61\32\10\10\5\24\22\22\20\20\0\0\0\0\0\0" - "GrpcService.GoogleGrpc.CallCredentials.StsService" - "token_exchange_service_uri" - "resource" - "audience" - "scope" - "requested_token_type" - "subject_token_path" - "subject_token_type" - "actor_token_path" - "actor_token_type" - }}, -}; - -::uint8_t* GrpcService_GoogleGrpc_CallCredentials_StsService::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string token_exchange_service_uri = 1; - if (!this->_internal_token_exchange_service_uri().empty()) { - const std::string& _s = this->_internal_token_exchange_service_uri(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // string resource = 2; - if (!this->_internal_resource().empty()) { - const std::string& _s = this->_internal_resource(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.resource"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - // string audience = 3; - if (!this->_internal_audience().empty()) { - const std::string& _s = this->_internal_audience(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.audience"); - target = stream->WriteStringMaybeAliased(3, _s, target); - } - - // string scope = 4; - if (!this->_internal_scope().empty()) { - const std::string& _s = this->_internal_scope(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.scope"); - target = stream->WriteStringMaybeAliased(4, _s, target); - } - - // string requested_token_type = 5; - if (!this->_internal_requested_token_type().empty()) { - const std::string& _s = this->_internal_requested_token_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type"); - target = stream->WriteStringMaybeAliased(5, _s, target); - } - - // string subject_token_path = 6; - if (!this->_internal_subject_token_path().empty()) { - const std::string& _s = this->_internal_subject_token_path(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path"); - target = stream->WriteStringMaybeAliased(6, _s, target); - } - - // string subject_token_type = 7; - if (!this->_internal_subject_token_type().empty()) { - const std::string& _s = this->_internal_subject_token_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type"); - target = stream->WriteStringMaybeAliased(7, _s, target); - } - - // string actor_token_path = 8; - if (!this->_internal_actor_token_path().empty()) { - const std::string& _s = this->_internal_actor_token_path(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path"); - target = stream->WriteStringMaybeAliased(8, _s, target); - } - - // string actor_token_type = 9; - if (!this->_internal_actor_token_type().empty()) { - const std::string& _s = this->_internal_actor_token_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type"); - target = stream->WriteStringMaybeAliased(9, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size()), 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; - - ::uint32_t 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->_internal_token_exchange_service_uri().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_token_exchange_service_uri()); - } - - // string resource = 2; - if (!this->_internal_resource().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_resource()); - } - - // string audience = 3; - if (!this->_internal_audience().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_audience()); - } - - // string scope = 4; - if (!this->_internal_scope().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_scope()); - } - - // string requested_token_type = 5; - if (!this->_internal_requested_token_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_requested_token_type()); - } - - // string subject_token_path = 6; - if (!this->_internal_subject_token_path().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_subject_token_path()); - } - - // string subject_token_type = 7; - if (!this->_internal_subject_token_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_subject_token_type()); - } - - // string actor_token_path = 8; - if (!this->_internal_actor_token_path().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_actor_token_path()); - } - - // string actor_token_type = 9; - if (!this->_internal_actor_token_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_actor_token_type()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void GrpcService_GoogleGrpc_CallCredentials_StsService::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::_pbi::DownCast<const GrpcService_GoogleGrpc_CallCredentials_StsService*>( - &from)); -} - -void GrpcService_GoogleGrpc_CallCredentials_StsService::MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) { - GrpcService_GoogleGrpc_CallCredentials_StsService* const _this = this; - // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials.StsService) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_token_exchange_service_uri().empty()) { - _this->_internal_set_token_exchange_service_uri(from._internal_token_exchange_service_uri()); - } - if (!from._internal_resource().empty()) { - _this->_internal_set_resource(from._internal_resource()); - } - if (!from._internal_audience().empty()) { - _this->_internal_set_audience(from._internal_audience()); - } - if (!from._internal_scope().empty()) { - _this->_internal_set_scope(from._internal_scope()); - } - if (!from._internal_requested_token_type().empty()) { - _this->_internal_set_requested_token_type(from._internal_requested_token_type()); - } - if (!from._internal_subject_token_path().empty()) { - _this->_internal_set_subject_token_path(from._internal_subject_token_path()); - } - if (!from._internal_subject_token_type().empty()) { - _this->_internal_set_subject_token_type(from._internal_subject_token_type()); - } - if (!from._internal_actor_token_path().empty()) { - _this->_internal_set_actor_token_path(from._internal_actor_token_path()); - } - if (!from._internal_actor_token_type().empty()) { - _this->_internal_set_actor_token_type(from._internal_actor_token_type()); - } - _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_); -} - -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); -} - -PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_CallCredentials_StsService::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_CallCredentials_StsService::InternalSwap(GrpcService_GoogleGrpc_CallCredentials_StsService* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.token_exchange_service_uri_, &other->_impl_.token_exchange_service_uri_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.resource_, &other->_impl_.resource_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.audience_, &other->_impl_.audience_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.scope_, &other->_impl_.scope_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.requested_token_type_, &other->_impl_.requested_token_type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.subject_token_path_, &other->_impl_.subject_token_path_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.subject_token_type_, &other->_impl_.subject_token_type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.actor_token_path_, &other->_impl_.actor_token_path_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.actor_token_type_, &other->_impl_.actor_token_type_, arena); -} - -// =================================================================== - -class GrpcService_GoogleGrpc_CallCredentials::_Internal { - public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::GrpcService_GoogleGrpc_CallCredentials, _impl_._oneof_case_); -}; - -void GrpcService_GoogleGrpc_CallCredentials::set_allocated_google_compute_engine(::GrpcService_GoogleGrpc_Empty* google_compute_engine) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_credential_specifier(); - if (google_compute_engine) { - ::google::protobuf::Arena* submessage_arena = google_compute_engine->GetArena(); - if (message_arena != submessage_arena) { - google_compute_engine = ::google::protobuf::internal::GetOwnedMessage(message_arena, google_compute_engine, submessage_arena); - } - set_has_google_compute_engine(); - _impl_.credential_specifier_.google_compute_engine_ = google_compute_engine; - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) -} -void GrpcService_GoogleGrpc_CallCredentials::set_allocated_service_account_jwt_access(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* service_account_jwt_access) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_credential_specifier(); - if (service_account_jwt_access) { - ::google::protobuf::Arena* submessage_arena = service_account_jwt_access->GetArena(); - if (message_arena != submessage_arena) { - service_account_jwt_access = ::google::protobuf::internal::GetOwnedMessage(message_arena, service_account_jwt_access, submessage_arena); - } - set_has_service_account_jwt_access(); - _impl_.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) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_credential_specifier(); - if (google_iam) { - ::google::protobuf::Arena* submessage_arena = google_iam->GetArena(); - if (message_arena != submessage_arena) { - google_iam = ::google::protobuf::internal::GetOwnedMessage(message_arena, google_iam, submessage_arena); - } - set_has_google_iam(); - _impl_.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) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_credential_specifier(); - if (from_plugin) { - ::google::protobuf::Arena* submessage_arena = from_plugin->GetArena(); - if (message_arena != submessage_arena) { - from_plugin = ::google::protobuf::internal::GetOwnedMessage(message_arena, from_plugin, submessage_arena); - } - set_has_from_plugin(); - _impl_.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) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_credential_specifier(); - if (sts_service) { - ::google::protobuf::Arena* submessage_arena = sts_service->GetArena(); - if (message_arena != submessage_arena) { - sts_service = ::google::protobuf::internal::GetOwnedMessage(message_arena, sts_service, submessage_arena); - } - set_has_sts_service(); - _impl_.credential_specifier_.sts_service_ = sts_service; - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.sts_service) -} -GrpcService_GoogleGrpc_CallCredentials::GrpcService_GoogleGrpc_CallCredentials(::google::protobuf::Arena* arena) - : ::google::protobuf::MessageLite(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc.CallCredentials) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : credential_specifier_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -GrpcService_GoogleGrpc_CallCredentials::GrpcService_GoogleGrpc_CallCredentials( - ::google::protobuf::Arena* arena, - const GrpcService_GoogleGrpc_CallCredentials& from) - : ::google::protobuf::MessageLite(arena) { - GrpcService_GoogleGrpc_CallCredentials* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (credential_specifier_case()) { - case CREDENTIAL_SPECIFIER_NOT_SET: - break; - case kAccessToken: - new (&_impl_.credential_specifier_.access_token_) decltype(_impl_.credential_specifier_.access_token_){arena, from._impl_.credential_specifier_.access_token_}; - break; - case kGoogleComputeEngine: - _impl_.credential_specifier_.google_compute_engine_ = ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_Empty>(arena, *from._impl_.credential_specifier_.google_compute_engine_); - break; - case kGoogleRefreshToken: - new (&_impl_.credential_specifier_.google_refresh_token_) decltype(_impl_.credential_specifier_.google_refresh_token_){arena, from._impl_.credential_specifier_.google_refresh_token_}; - break; - case kServiceAccountJwtAccess: - _impl_.credential_specifier_.service_account_jwt_access_ = ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials>(arena, *from._impl_.credential_specifier_.service_account_jwt_access_); - break; - case kGoogleIam: - _impl_.credential_specifier_.google_iam_ = ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials>(arena, *from._impl_.credential_specifier_.google_iam_); - break; - case kFromPlugin: - _impl_.credential_specifier_.from_plugin_ = ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin>(arena, *from._impl_.credential_specifier_.from_plugin_); - break; - case kStsService: - _impl_.credential_specifier_.sts_service_ = ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_StsService>(arena, *from._impl_.credential_specifier_.sts_service_); - break; - } - - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc.CallCredentials) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc_CallCredentials::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : credential_specifier_{}, - _cached_size_{0}, - _oneof_case_{} {} - -inline void GrpcService_GoogleGrpc_CallCredentials::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GrpcService_GoogleGrpc_CallCredentials::~GrpcService_GoogleGrpc_CallCredentials() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc.CallCredentials) - _internal_metadata_.Delete<std::string>(); - SharedDtor(); -} -inline void GrpcService_GoogleGrpc_CallCredentials::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - if (has_credential_specifier()) { - clear_credential_specifier(); - } - _impl_.~Impl_(); -} - -void GrpcService_GoogleGrpc_CallCredentials::clear_credential_specifier() { -// @@protoc_insertion_point(one_of_clear_start:GrpcService.GoogleGrpc.CallCredentials) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - switch (credential_specifier_case()) { - case kAccessToken: { - _impl_.credential_specifier_.access_token_.Destroy(); - break; - } - case kGoogleComputeEngine: { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.google_compute_engine_; - } - break; - } - case kGoogleRefreshToken: { - _impl_.credential_specifier_.google_refresh_token_.Destroy(); - break; - } - case kServiceAccountJwtAccess: { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.service_account_jwt_access_; - } - break; - } - case kGoogleIam: { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.google_iam_; - } - break; - } - case kFromPlugin: { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.from_plugin_; - } - break; - } - case kStsService: { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.sts_service_; - } - break; - } - case CREDENTIAL_SPECIFIER_NOT_SET: { - break; - } - } - _impl_._oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; -} - - -const ::google::protobuf::MessageLite::ClassData* -GrpcService_GoogleGrpc_CallCredentials::GetClassData() const { - struct ClassData_ { - ::google::protobuf::MessageLite::ClassData header; - char type_name[39]; - }; - - PROTOBUF_CONSTINIT static const ClassData_ _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_._cached_size_), - true, - }, - "GrpcService.GoogleGrpc.CallCredentials", - }; - - return &_data_.header; -} -PROTOBUF_NOINLINE void GrpcService_GoogleGrpc_CallCredentials::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc.CallCredentials) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_credential_specifier(); - _internal_metadata_.Clear<std::string>(); -} - -const char* GrpcService_GoogleGrpc_CallCredentials::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 7, 5, 79, 2> GrpcService_GoogleGrpc_CallCredentials::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 7, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967168, // skipmap - offsetof(decltype(_table_), field_entries), - 7, // num_field_entries - 5, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GrpcService_GoogleGrpc_CallCredentials_default_instance_._instance, - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string access_token = 1; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.access_token_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .GrpcService.GoogleGrpc.Empty google_compute_engine = 2; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.google_compute_engine_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // string google_refresh_token = 3; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.google_refresh_token_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.service_account_jwt_access_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.google_iam_), _Internal::kOneofCaseOffset + 0, 2, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.from_plugin_), _Internal::kOneofCaseOffset + 0, 3, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc_CallCredentials, _impl_.credential_specifier_.sts_service_), _Internal::kOneofCaseOffset + 0, 4, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_Empty>()}, - {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials>()}, - {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials>()}, - {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin>()}, - {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials_StsService>()}, - }}, {{ - "\46\14\0\24\0\0\0\0" - "GrpcService.GoogleGrpc.CallCredentials" - "access_token" - "google_refresh_token" - }}, -}; - -::uint8_t* GrpcService_GoogleGrpc_CallCredentials::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc.CallCredentials) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - switch (credential_specifier_case()) { - case kAccessToken: { - const std::string& _s = this->_internal_access_token(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.access_token"); - target = stream->WriteStringMaybeAliased(1, _s, target); - break; - } - case kGoogleComputeEngine: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.credential_specifier_.google_compute_engine_, _impl_.credential_specifier_.google_compute_engine_->GetCachedSize(), target, stream); - break; - } - case kGoogleRefreshToken: { - const std::string& _s = this->_internal_google_refresh_token(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.CallCredentials.google_refresh_token"); - target = stream->WriteStringMaybeAliased(3, _s, target); - break; - } - case kServiceAccountJwtAccess: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, *_impl_.credential_specifier_.service_account_jwt_access_, _impl_.credential_specifier_.service_account_jwt_access_->GetCachedSize(), target, stream); - break; - } - case kGoogleIam: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, *_impl_.credential_specifier_.google_iam_, _impl_.credential_specifier_.google_iam_->GetCachedSize(), target, stream); - break; - } - case kFromPlugin: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, *_impl_.credential_specifier_.from_plugin_, _impl_.credential_specifier_.from_plugin_->GetCachedSize(), target, stream); - break; - } - case kStsService: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, *_impl_.credential_specifier_.sts_service_, _impl_.credential_specifier_.sts_service_->GetCachedSize(), target, stream); - break; - } - default: - break; - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc.CallCredentials) - return target; -} - -::size_t GrpcService_GoogleGrpc_CallCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc.CallCredentials) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - switch (credential_specifier_case()) { - // string access_token = 1; - case kAccessToken: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_access_token()); - break; - } - // .GrpcService.GoogleGrpc.Empty google_compute_engine = 2; - case kGoogleComputeEngine: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.google_compute_engine_); - break; - } - // string google_refresh_token = 3; - case kGoogleRefreshToken: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_google_refresh_token()); - break; - } - // .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; - case kServiceAccountJwtAccess: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.service_account_jwt_access_); - break; - } - // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; - case kGoogleIam: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.google_iam_); - break; - } - // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; - case kFromPlugin: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.from_plugin_); - break; - } - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - case kStsService: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.credential_specifier_.sts_service_); - break; - } - case CREDENTIAL_SPECIFIER_NOT_SET: { - break; - } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void GrpcService_GoogleGrpc_CallCredentials::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::_pbi::DownCast<const GrpcService_GoogleGrpc_CallCredentials*>( - &from)); -} - -void GrpcService_GoogleGrpc_CallCredentials::MergeFrom(const GrpcService_GoogleGrpc_CallCredentials& from) { - GrpcService_GoogleGrpc_CallCredentials* const _this = this; - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc.CallCredentials) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { - const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; - const bool oneof_needs_init = oneof_to_case != oneof_from_case; - if (oneof_needs_init) { - if (oneof_to_case != 0) { - _this->clear_credential_specifier(); - } - _this->_impl_._oneof_case_[0] = oneof_from_case; - } - - switch (oneof_from_case) { - case kAccessToken: { - if (oneof_needs_init) { - _this->_impl_.credential_specifier_.access_token_.InitDefault(); - } - _this->_impl_.credential_specifier_.access_token_.Set(from._internal_access_token(), arena); - break; - } - case kGoogleComputeEngine: { - if (oneof_needs_init) { - _this->_impl_.credential_specifier_.google_compute_engine_ = - ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_Empty>(arena, *from._impl_.credential_specifier_.google_compute_engine_); - } else { - _this->_impl_.credential_specifier_.google_compute_engine_->MergeFrom(from._internal_google_compute_engine()); - } - break; - } - case kGoogleRefreshToken: { - if (oneof_needs_init) { - _this->_impl_.credential_specifier_.google_refresh_token_.InitDefault(); - } - _this->_impl_.credential_specifier_.google_refresh_token_.Set(from._internal_google_refresh_token(), arena); - break; - } - case kServiceAccountJwtAccess: { - if (oneof_needs_init) { - _this->_impl_.credential_specifier_.service_account_jwt_access_ = - ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials>(arena, *from._impl_.credential_specifier_.service_account_jwt_access_); - } else { - _this->_impl_.credential_specifier_.service_account_jwt_access_->MergeFrom(from._internal_service_account_jwt_access()); - } - break; - } - case kGoogleIam: { - if (oneof_needs_init) { - _this->_impl_.credential_specifier_.google_iam_ = - ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials>(arena, *from._impl_.credential_specifier_.google_iam_); - } else { - _this->_impl_.credential_specifier_.google_iam_->MergeFrom(from._internal_google_iam()); - } - break; - } - case kFromPlugin: { - if (oneof_needs_init) { - _this->_impl_.credential_specifier_.from_plugin_ = - ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin>(arena, *from._impl_.credential_specifier_.from_plugin_); - } else { - _this->_impl_.credential_specifier_.from_plugin_->MergeFrom(from._internal_from_plugin()); - } - break; - } - case kStsService: { - if (oneof_needs_init) { - _this->_impl_.credential_specifier_.sts_service_ = - ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_CallCredentials_StsService>(arena, *from._impl_.credential_specifier_.sts_service_); - } else { - _this->_impl_.credential_specifier_.sts_service_->MergeFrom(from._internal_sts_service()); - } - break; - } - case CREDENTIAL_SPECIFIER_NOT_SET: - break; - } - } - _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_); -} - -void GrpcService_GoogleGrpc_CallCredentials::CopyFrom(const GrpcService_GoogleGrpc_CallCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc.CallCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc_CallCredentials::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc_CallCredentials::InternalSwap(GrpcService_GoogleGrpc_CallCredentials* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.credential_specifier_, other->_impl_.credential_specifier_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); -} - -// =================================================================== - -class GrpcService_GoogleGrpc::_Internal { - public: - using HasBits = decltype(std::declval<GrpcService_GoogleGrpc>()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_._has_bits_); -}; - -void GrpcService_GoogleGrpc::clear_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.config_ != nullptr) _impl_.config_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -GrpcService_GoogleGrpc::GrpcService_GoogleGrpc(::google::protobuf::Arena* arena) - : ::google::protobuf::MessageLite(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:GrpcService.GoogleGrpc) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - call_credentials_{visibility, arena, from.call_credentials_}, - target_uri_(arena, from.target_uri_), - stat_prefix_(arena, from.stat_prefix_), - credentials_factory_name_(arena, from.credentials_factory_name_) {} - -GrpcService_GoogleGrpc::GrpcService_GoogleGrpc( - ::google::protobuf::Arena* arena, - const GrpcService_GoogleGrpc& from) - : ::google::protobuf::MessageLite(arena) { - GrpcService_GoogleGrpc* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.channel_credentials_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_ChannelCredentials>( - arena, *from._impl_.channel_credentials_) - : nullptr; - _impl_.config_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::MessageLite::CopyConstruct<::google::protobuf::Struct>( - arena, *from._impl_.config_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:GrpcService.GoogleGrpc) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_GoogleGrpc::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - call_credentials_{visibility, arena}, - target_uri_(arena), - stat_prefix_(arena), - credentials_factory_name_(arena) {} - -inline void GrpcService_GoogleGrpc::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast<char *>(&_impl_) + - offsetof(Impl_, channel_credentials_), - 0, - offsetof(Impl_, config_) - - offsetof(Impl_, channel_credentials_) + - sizeof(Impl_::config_)); -} -GrpcService_GoogleGrpc::~GrpcService_GoogleGrpc() { - // @@protoc_insertion_point(destructor:GrpcService.GoogleGrpc) - _internal_metadata_.Delete<std::string>(); - SharedDtor(); -} -inline void GrpcService_GoogleGrpc::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.target_uri_.Destroy(); - _impl_.stat_prefix_.Destroy(); - _impl_.credentials_factory_name_.Destroy(); - delete _impl_.channel_credentials_; - delete _impl_.config_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GrpcService_GoogleGrpc::GetClassData() const { - struct ClassData_ { - ::google::protobuf::MessageLite::ClassData header; - char type_name[23]; - }; - - PROTOBUF_CONSTINIT static const ClassData_ _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_._cached_size_), - true, - }, - "GrpcService.GoogleGrpc", - }; - - return &_data_.header; -} -PROTOBUF_NOINLINE void GrpcService_GoogleGrpc::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.GoogleGrpc) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.call_credentials_.Clear(); - _impl_.target_uri_.ClearToEmpty(); - _impl_.stat_prefix_.ClearToEmpty(); - _impl_.credentials_factory_name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.channel_credentials_ != nullptr); - _impl_.channel_credentials_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.config_ != nullptr); - _impl_.config_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<std::string>(); -} - -const char* GrpcService_GoogleGrpc::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 3, 76, 2> GrpcService_GoogleGrpc::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_._has_bits_), - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GrpcService_GoogleGrpc_default_instance_._instance, - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string target_uri = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.target_uri_)}}, - // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.channel_credentials_)}}, - // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; - {::_pbi::TcParser::FastMtR1, - {26, 63, 1, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.call_credentials_)}}, - // string stat_prefix = 4; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.stat_prefix_)}}, - // string credentials_factory_name = 5; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.credentials_factory_name_)}}, - // .google.protobuf.Struct config = 6; - {::_pbi::TcParser::FastMtS1, - {50, 1, 2, PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.config_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string target_uri = 1; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.target_uri_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.channel_credentials_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.call_credentials_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // string stat_prefix = 4; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.stat_prefix_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string credentials_factory_name = 5; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.credentials_factory_name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Struct config = 6; - {PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.config_), _Internal::kHasBitsOffset + 1, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_ChannelCredentials>()}, - {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc_CallCredentials>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - }}, {{ - "\26\12\0\0\13\30\0\0" - "GrpcService.GoogleGrpc" - "target_uri" - "stat_prefix" - "credentials_factory_name" - }}, -}; - -::uint8_t* GrpcService_GoogleGrpc::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.GoogleGrpc) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string target_uri = 1; - if (!this->_internal_target_uri().empty()) { - const std::string& _s = this->_internal_target_uri(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.target_uri"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.channel_credentials_, _impl_.channel_credentials_->GetCachedSize(), target, stream); - } - - // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; - for (unsigned i = 0, n = static_cast<unsigned>( - this->_internal_call_credentials_size()); - i < n; i++) { - const auto& repfield = this->_internal_call_credentials().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, repfield, repfield.GetCachedSize(), - target, stream); - } - - // string stat_prefix = 4; - if (!this->_internal_stat_prefix().empty()) { - const std::string& _s = this->_internal_stat_prefix(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.stat_prefix"); - target = stream->WriteStringMaybeAliased(4, _s, target); - } - - // string credentials_factory_name = 5; - if (!this->_internal_credentials_factory_name().empty()) { - const std::string& _s = this->_internal_credentials_factory_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.GoogleGrpc.credentials_factory_name"); - target = stream->WriteStringMaybeAliased(5, _s, target); - } - - // .google.protobuf.Struct config = 6; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, *_impl_.config_, _impl_.config_->GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:GrpcService.GoogleGrpc) - return target; -} - -::size_t GrpcService_GoogleGrpc::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.GoogleGrpc) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; - total_size += 1UL * this->_internal_call_credentials_size(); - for (const auto& msg : this->_internal_call_credentials()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - // string target_uri = 1; - if (!this->_internal_target_uri().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_target_uri()); - } - - // string stat_prefix = 4; - if (!this->_internal_stat_prefix().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_stat_prefix()); - } - - // string credentials_factory_name = 5; - if (!this->_internal_credentials_factory_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_credentials_factory_name()); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.channel_credentials_); - } - - // .google.protobuf.Struct config = 6; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.config_); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void GrpcService_GoogleGrpc::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::_pbi::DownCast<const GrpcService_GoogleGrpc*>( - &from)); -} - -void GrpcService_GoogleGrpc::MergeFrom(const GrpcService_GoogleGrpc& from) { - GrpcService_GoogleGrpc* const _this = this; - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.GoogleGrpc) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_call_credentials()->MergeFrom( - from._internal_call_credentials()); - if (!from._internal_target_uri().empty()) { - _this->_internal_set_target_uri(from._internal_target_uri()); - } - if (!from._internal_stat_prefix().empty()) { - _this->_internal_set_stat_prefix(from._internal_stat_prefix()); - } - if (!from._internal_credentials_factory_name().empty()) { - _this->_internal_set_credentials_factory_name(from._internal_credentials_factory_name()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.channel_credentials_ != nullptr); - if (_this->_impl_.channel_credentials_ == nullptr) { - _this->_impl_.channel_credentials_ = - ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc_ChannelCredentials>(arena, *from._impl_.channel_credentials_); - } else { - _this->_impl_.channel_credentials_->MergeFrom(*from._impl_.channel_credentials_); - } - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(from._impl_.config_ != nullptr); - if (_this->_impl_.config_ == nullptr) { - _this->_impl_.config_ = - ::google::protobuf::MessageLite::CopyConstruct<::google::protobuf::Struct>(arena, *from._impl_.config_); - } else { - _this->_impl_.config_->MergeFrom(*from._impl_.config_); - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_); -} - -void GrpcService_GoogleGrpc::CopyFrom(const GrpcService_GoogleGrpc& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.GoogleGrpc) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GrpcService_GoogleGrpc::IsInitialized() const { - return true; -} - -void GrpcService_GoogleGrpc::InternalSwap(GrpcService_GoogleGrpc* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.call_credentials_.InternalSwap(&other->_impl_.call_credentials_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.target_uri_, &other->_impl_.target_uri_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.stat_prefix_, &other->_impl_.stat_prefix_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.credentials_factory_name_, &other->_impl_.credentials_factory_name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.config_) - + sizeof(GrpcService_GoogleGrpc::_impl_.config_) - - PROTOBUF_FIELD_OFFSET(GrpcService_GoogleGrpc, _impl_.channel_credentials_)>( - reinterpret_cast<char*>(&_impl_.channel_credentials_), - reinterpret_cast<char*>(&other->_impl_.channel_credentials_)); -} - -// =================================================================== - -class GrpcService_HeaderValue::_Internal { - public: -}; - -GrpcService_HeaderValue::GrpcService_HeaderValue(::google::protobuf::Arena* arena) - : ::google::protobuf::MessageLite(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:GrpcService.HeaderValue) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_HeaderValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : key_(arena, from.key_), - value_(arena, from.value_), - _cached_size_{0} {} - -GrpcService_HeaderValue::GrpcService_HeaderValue( - ::google::protobuf::Arena* arena, - const GrpcService_HeaderValue& from) - : ::google::protobuf::MessageLite(arena) { - GrpcService_HeaderValue* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:GrpcService.HeaderValue) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService_HeaderValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : key_(arena), - value_(arena), - _cached_size_{0} {} - -inline void GrpcService_HeaderValue::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GrpcService_HeaderValue::~GrpcService_HeaderValue() { - // @@protoc_insertion_point(destructor:GrpcService.HeaderValue) - _internal_metadata_.Delete<std::string>(); - SharedDtor(); -} -inline void GrpcService_HeaderValue::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.key_.Destroy(); - _impl_.value_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GrpcService_HeaderValue::GetClassData() const { - struct ClassData_ { - ::google::protobuf::MessageLite::ClassData header; - char type_name[24]; - }; - - PROTOBUF_CONSTINIT static const ClassData_ _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GrpcService_HeaderValue, _impl_._cached_size_), - true, - }, - "GrpcService.HeaderValue", - }; - - return &_data_.header; -} -PROTOBUF_NOINLINE void GrpcService_HeaderValue::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService.HeaderValue) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.key_.ClearToEmpty(); - _impl_.value_.ClearToEmpty(); - _internal_metadata_.Clear<std::string>(); -} - -const char* GrpcService_HeaderValue::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 40, 2> GrpcService_HeaderValue::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_GrpcService_HeaderValue_default_instance_._instance, - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::GrpcService_HeaderValue>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string value = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_HeaderValue, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GrpcService_HeaderValue, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(GrpcService_HeaderValue, _impl_.key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string value = 2; - {PROTOBUF_FIELD_OFFSET(GrpcService_HeaderValue, _impl_.value_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\27\3\5\0\0\0\0\0" - "GrpcService.HeaderValue" - "key" - "value" - }}, -}; - -::uint8_t* GrpcService_HeaderValue::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService.HeaderValue) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string key = 1; - if (!this->_internal_key().empty()) { - const std::string& _s = this->_internal_key(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.HeaderValue.key"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // string value = 2; - if (!this->_internal_value().empty()) { - const std::string& _s = this->_internal_value(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "GrpcService.HeaderValue.value"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:GrpcService.HeaderValue) - return target; -} - -::size_t GrpcService_HeaderValue::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService.HeaderValue) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string key = 1; - if (!this->_internal_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_key()); - } - - // string value = 2; - if (!this->_internal_value().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_value()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void GrpcService_HeaderValue::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::_pbi::DownCast<const GrpcService_HeaderValue*>( - &from)); -} - -void GrpcService_HeaderValue::MergeFrom(const GrpcService_HeaderValue& from) { - GrpcService_HeaderValue* const _this = this; - // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService.HeaderValue) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_key().empty()) { - _this->_internal_set_key(from._internal_key()); - } - if (!from._internal_value().empty()) { - _this->_internal_set_value(from._internal_value()); - } - _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_); -} - -void GrpcService_HeaderValue::CopyFrom(const GrpcService_HeaderValue& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService.HeaderValue) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GrpcService_HeaderValue::IsInitialized() const { - return true; -} - -void GrpcService_HeaderValue::InternalSwap(GrpcService_HeaderValue* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, &other->_impl_.key_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.value_, &other->_impl_.value_, arena); -} - -// =================================================================== - -class GrpcService::_Internal { - public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::GrpcService, _impl_._oneof_case_); -}; - -void GrpcService::set_allocated_envoy_grpc(::GrpcService_EnvoyGrpc* envoy_grpc) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_target_specifier(); - if (envoy_grpc) { - ::google::protobuf::Arena* submessage_arena = envoy_grpc->GetArena(); - if (message_arena != submessage_arena) { - envoy_grpc = ::google::protobuf::internal::GetOwnedMessage(message_arena, envoy_grpc, submessage_arena); - } - set_has_envoy_grpc(); - _impl_.target_specifier_.envoy_grpc_ = envoy_grpc; - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.envoy_grpc) -} -void GrpcService::set_allocated_google_grpc(::GrpcService_GoogleGrpc* google_grpc) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_target_specifier(); - if (google_grpc) { - ::google::protobuf::Arena* submessage_arena = google_grpc->GetArena(); - if (message_arena != submessage_arena) { - google_grpc = ::google::protobuf::internal::GetOwnedMessage(message_arena, google_grpc, submessage_arena); - } - set_has_google_grpc(); - _impl_.target_specifier_.google_grpc_ = google_grpc; - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.google_grpc) -} -GrpcService::GrpcService(::google::protobuf::Arena* arena) - : ::google::protobuf::MessageLite(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:GrpcService) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : initial_metadata_{visibility, arena, from.initial_metadata_}, - target_specifier_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -GrpcService::GrpcService( - ::google::protobuf::Arena* arena, - const GrpcService& from) - : ::google::protobuf::MessageLite(arena) { - GrpcService* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (target_specifier_case()) { - case TARGET_SPECIFIER_NOT_SET: - break; - case kEnvoyGrpc: - _impl_.target_specifier_.envoy_grpc_ = ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_EnvoyGrpc>(arena, *from._impl_.target_specifier_.envoy_grpc_); - break; - case kGoogleGrpc: - _impl_.target_specifier_.google_grpc_ = ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc>(arena, *from._impl_.target_specifier_.google_grpc_); - break; - } - - // @@protoc_insertion_point(copy_constructor:GrpcService) -} -inline PROTOBUF_NDEBUG_INLINE GrpcService::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : initial_metadata_{visibility, arena}, - target_specifier_{}, - _cached_size_{0}, - _oneof_case_{} {} - -inline void GrpcService::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GrpcService::~GrpcService() { - // @@protoc_insertion_point(destructor:GrpcService) - _internal_metadata_.Delete<std::string>(); - SharedDtor(); -} -inline void GrpcService::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - if (has_target_specifier()) { - clear_target_specifier(); - } - _impl_.~Impl_(); -} - -void GrpcService::clear_target_specifier() { -// @@protoc_insertion_point(one_of_clear_start:GrpcService) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - switch (target_specifier_case()) { - case kEnvoyGrpc: { - if (GetArena() == nullptr) { - delete _impl_.target_specifier_.envoy_grpc_; - } - break; - } - case kGoogleGrpc: { - if (GetArena() == nullptr) { - delete _impl_.target_specifier_.google_grpc_; - } - break; - } - case TARGET_SPECIFIER_NOT_SET: { - break; - } - } - _impl_._oneof_case_[0] = TARGET_SPECIFIER_NOT_SET; -} - - -const ::google::protobuf::MessageLite::ClassData* -GrpcService::GetClassData() const { - struct ClassData_ { - ::google::protobuf::MessageLite::ClassData header; - char type_name[12]; - }; - - PROTOBUF_CONSTINIT static const ClassData_ _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GrpcService, _impl_._cached_size_), - true, - }, - "GrpcService", - }; - - return &_data_.header; -} -PROTOBUF_NOINLINE void GrpcService::Clear() { -// @@protoc_insertion_point(message_clear_start:GrpcService) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.initial_metadata_.Clear(); - clear_target_specifier(); - _internal_metadata_.Clear<std::string>(); -} - -const char* GrpcService::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 3, 3, 0, 2> GrpcService::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 5, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967276, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GrpcService_default_instance_._instance, - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::GrpcService>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // repeated .GrpcService.HeaderValue initial_metadata = 5; - {::_pbi::TcParser::FastMtR1, - {42, 63, 2, PROTOBUF_FIELD_OFFSET(GrpcService, _impl_.initial_metadata_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .GrpcService.EnvoyGrpc envoy_grpc = 1; - {PROTOBUF_FIELD_OFFSET(GrpcService, _impl_.target_specifier_.envoy_grpc_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .GrpcService.GoogleGrpc google_grpc = 2; - {PROTOBUF_FIELD_OFFSET(GrpcService, _impl_.target_specifier_.google_grpc_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .GrpcService.HeaderValue initial_metadata = 5; - {PROTOBUF_FIELD_OFFSET(GrpcService, _impl_.initial_metadata_), 0, 2, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::GrpcService_EnvoyGrpc>()}, - {::_pbi::TcParser::GetTable<::GrpcService_GoogleGrpc>()}, - {::_pbi::TcParser::GetTable<::GrpcService_HeaderValue>()}, - }}, {{ - }}, -}; - -::uint8_t* GrpcService::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:GrpcService) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - switch (target_specifier_case()) { - case kEnvoyGrpc: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.target_specifier_.envoy_grpc_, _impl_.target_specifier_.envoy_grpc_->GetCachedSize(), target, stream); - break; - } - case kGoogleGrpc: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.target_specifier_.google_grpc_, _impl_.target_specifier_.google_grpc_->GetCachedSize(), target, stream); - break; - } - default: - break; - } - // repeated .GrpcService.HeaderValue initial_metadata = 5; - for (unsigned i = 0, n = static_cast<unsigned>( - this->_internal_initial_metadata_size()); - i < n; i++) { - const auto& repfield = this->_internal_initial_metadata().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, repfield, repfield.GetCachedSize(), - target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:GrpcService) - return target; -} - -::size_t GrpcService::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GrpcService) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .GrpcService.HeaderValue initial_metadata = 5; - total_size += 1UL * this->_internal_initial_metadata_size(); - for (const auto& msg : this->_internal_initial_metadata()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - switch (target_specifier_case()) { - // .GrpcService.EnvoyGrpc envoy_grpc = 1; - case kEnvoyGrpc: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.target_specifier_.envoy_grpc_); - break; - } - // .GrpcService.GoogleGrpc google_grpc = 2; - case kGoogleGrpc: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.target_specifier_.google_grpc_); - break; - } - case TARGET_SPECIFIER_NOT_SET: { - break; - } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void GrpcService::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::_pbi::DownCast<const GrpcService*>( - &from)); -} - -void GrpcService::MergeFrom(const GrpcService& from) { - GrpcService* const _this = this; - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:GrpcService) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_initial_metadata()->MergeFrom( - from._internal_initial_metadata()); - if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { - const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; - const bool oneof_needs_init = oneof_to_case != oneof_from_case; - if (oneof_needs_init) { - if (oneof_to_case != 0) { - _this->clear_target_specifier(); - } - _this->_impl_._oneof_case_[0] = oneof_from_case; - } - - switch (oneof_from_case) { - case kEnvoyGrpc: { - if (oneof_needs_init) { - _this->_impl_.target_specifier_.envoy_grpc_ = - ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_EnvoyGrpc>(arena, *from._impl_.target_specifier_.envoy_grpc_); - } else { - _this->_impl_.target_specifier_.envoy_grpc_->MergeFrom(from._internal_envoy_grpc()); - } - break; - } - case kGoogleGrpc: { - if (oneof_needs_init) { - _this->_impl_.target_specifier_.google_grpc_ = - ::google::protobuf::MessageLite::CopyConstruct<::GrpcService_GoogleGrpc>(arena, *from._impl_.target_specifier_.google_grpc_); - } else { - _this->_impl_.target_specifier_.google_grpc_->MergeFrom(from._internal_google_grpc()); - } - break; - } - case TARGET_SPECIFIER_NOT_SET: - break; - } - } - _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_); -} - -void GrpcService::CopyFrom(const GrpcService& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:GrpcService) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GrpcService::IsInitialized() const { - return true; -} - -void GrpcService::InternalSwap(GrpcService* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.initial_metadata_.InternalSwap(&other->_impl_.initial_metadata_); - swap(_impl_.target_specifier_, other->_impl_.target_specifier_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); -} - -// @@protoc_insertion_point(namespace_scope) -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -// @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" diff --git a/proxy_wasm_intrinsics_lite.pb.h b/proxy_wasm_intrinsics_lite.pb.h deleted file mode 100644 index 1b1231a..0000000 --- a/proxy_wasm_intrinsics_lite.pb.h +++ /dev/null @@ -1,6520 +0,0 @@ -// Copyright 2016-2019 Envoy Project Authors -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: proxy_wasm_intrinsics_lite.proto -// Protobuf C++ Version: 5.26.1 - -#ifndef GOOGLE_PROTOBUF_INCLUDED_proxy_5fwasm_5fintrinsics_5flite_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_proxy_5fwasm_5fintrinsics_5flite_2eproto_2epb_2eh - -#include <limits> -#include <string> -#include <type_traits> -#include <utility> - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION != 5026001 -#error "Protobuf C++ gencode is built with an incompatible version of" -#error "Protobuf C++ headers/runtime. See" -#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" -#endif -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/message_lite.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "struct_lite.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - -#define PROTOBUF_INTERNAL_EXPORT_proxy_5fwasm_5fintrinsics_5flite_2eproto - -namespace google { -namespace protobuf { -namespace internal { -class AnyMetadata; -} // namespace internal -} // namespace protobuf -} // namespace google - -// Internal implementation detail -- do not use these members. -struct TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto { - static const ::uint32_t offsets[]; -}; -class Any; -struct AnyDefaultTypeInternal; -extern AnyDefaultTypeInternal _Any_default_instance_; -class DataSource; -struct DataSourceDefaultTypeInternal; -extern DataSourceDefaultTypeInternal _DataSource_default_instance_; -class GrpcService; -struct GrpcServiceDefaultTypeInternal; -extern GrpcServiceDefaultTypeInternal _GrpcService_default_instance_; -class GrpcService_EnvoyGrpc; -struct GrpcService_EnvoyGrpcDefaultTypeInternal; -extern GrpcService_EnvoyGrpcDefaultTypeInternal _GrpcService_EnvoyGrpc_default_instance_; -class GrpcService_GoogleGrpc; -struct GrpcService_GoogleGrpcDefaultTypeInternal; -extern GrpcService_GoogleGrpcDefaultTypeInternal _GrpcService_GoogleGrpc_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials; -struct GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal; -extern GrpcService_GoogleGrpc_CallCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials; -struct GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal; -extern GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin; -struct GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal; -extern GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPluginDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials; -struct GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal; -extern GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_; -class GrpcService_GoogleGrpc_CallCredentials_StsService; -struct GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal; -extern GrpcService_GoogleGrpc_CallCredentials_StsServiceDefaultTypeInternal _GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_; -class GrpcService_GoogleGrpc_ChannelCredentials; -struct GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal; -extern GrpcService_GoogleGrpc_ChannelCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_ChannelCredentials_default_instance_; -class GrpcService_GoogleGrpc_Empty; -struct GrpcService_GoogleGrpc_EmptyDefaultTypeInternal; -extern GrpcService_GoogleGrpc_EmptyDefaultTypeInternal _GrpcService_GoogleGrpc_Empty_default_instance_; -class GrpcService_GoogleGrpc_GoogleLocalCredentials; -struct GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal; -extern GrpcService_GoogleGrpc_GoogleLocalCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_; -class GrpcService_GoogleGrpc_SslCredentials; -struct GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal; -extern GrpcService_GoogleGrpc_SslCredentialsDefaultTypeInternal _GrpcService_GoogleGrpc_SslCredentials_default_instance_; -class GrpcService_HeaderValue; -struct GrpcService_HeaderValueDefaultTypeInternal; -extern GrpcService_HeaderValueDefaultTypeInternal _GrpcService_HeaderValue_default_instance_; -class WKT; -struct WKTDefaultTypeInternal; -extern WKTDefaultTypeInternal _WKT_default_instance_; -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - - -// =================================================================== - - -// ------------------------------------------------------------------- - -class GrpcService_HeaderValue final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:GrpcService.HeaderValue) */ { - public: - inline GrpcService_HeaderValue() : GrpcService_HeaderValue(nullptr) {} - ~GrpcService_HeaderValue() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR GrpcService_HeaderValue( - ::google::protobuf::internal::ConstantInitialized); - - inline GrpcService_HeaderValue(const GrpcService_HeaderValue& from) : GrpcService_HeaderValue(nullptr, from) {} - inline GrpcService_HeaderValue(GrpcService_HeaderValue&& from) noexcept - : GrpcService_HeaderValue(nullptr, std::move(from)) {} - inline GrpcService_HeaderValue& operator=(const GrpcService_HeaderValue& from) { - CopyFrom(from); - return *this; - } - inline GrpcService_HeaderValue& operator=(GrpcService_HeaderValue&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<std::string>(); - } - - static const GrpcService_HeaderValue& default_instance() { - return *internal_default_instance(); - } - static inline const GrpcService_HeaderValue* internal_default_instance() { - return reinterpret_cast<const GrpcService_HeaderValue*>( - &_GrpcService_HeaderValue_default_instance_); - } - static constexpr int kIndexInFileMessages = 14; - friend void swap(GrpcService_HeaderValue& a, GrpcService_HeaderValue& b) { a.Swap(&b); } - inline void Swap(GrpcService_HeaderValue* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrpcService_HeaderValue* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrpcService_HeaderValue* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::MessageLite::DefaultConstruct<GrpcService_HeaderValue>(arena); - } - void CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) final; - void CopyFrom(const GrpcService_HeaderValue& from); - void MergeFrom(const GrpcService_HeaderValue& from); - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GrpcService_HeaderValue* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "GrpcService.HeaderValue"; } - - protected: - explicit GrpcService_HeaderValue(::google::protobuf::Arena* arena); - GrpcService_HeaderValue(::google::protobuf::Arena* arena, const GrpcService_HeaderValue& from); - GrpcService_HeaderValue(::google::protobuf::Arena* arena, GrpcService_HeaderValue&& from) noexcept - : GrpcService_HeaderValue(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kKeyFieldNumber = 1, - kValueFieldNumber = 2, - }; - // string key = 1; - void clear_key() ; - const std::string& key() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_key(Arg_&& arg, Args_... args); - std::string* mutable_key(); - PROTOBUF_NODISCARD std::string* release_key(); - void set_allocated_key(std::string* value); - - private: - const std::string& _internal_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_key( - const std::string& value); - std::string* _internal_mutable_key(); - - public: - // string value = 2; - void clear_value() ; - const std::string& value() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_value(Arg_&& arg, Args_... args); - std::string* mutable_value(); - PROTOBUF_NODISCARD std::string* release_value(); - void set_allocated_value(std::string* value); - - private: - const std::string& _internal_value() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_value( - const std::string& value); - std::string* _internal_mutable_value(); - - public: - // @@protoc_insertion_point(class_scope:GrpcService.HeaderValue) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 40, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr key_; - ::google::protobuf::internal::ArenaStringPtr value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_GoogleGrpc_GoogleLocalCredentials final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.GoogleLocalCredentials) */ { - public: - inline GrpcService_GoogleGrpc_GoogleLocalCredentials() : GrpcService_GoogleGrpc_GoogleLocalCredentials(nullptr) {} - ~GrpcService_GoogleGrpc_GoogleLocalCredentials() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_GoogleLocalCredentials( - ::google::protobuf::internal::ConstantInitialized); - - inline GrpcService_GoogleGrpc_GoogleLocalCredentials(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from) : GrpcService_GoogleGrpc_GoogleLocalCredentials(nullptr, from) {} - inline GrpcService_GoogleGrpc_GoogleLocalCredentials(GrpcService_GoogleGrpc_GoogleLocalCredentials&& from) noexcept - : GrpcService_GoogleGrpc_GoogleLocalCredentials(nullptr, std::move(from)) {} - inline GrpcService_GoogleGrpc_GoogleLocalCredentials& operator=(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from) { - CopyFrom(from); - return *this; - } - inline GrpcService_GoogleGrpc_GoogleLocalCredentials& operator=(GrpcService_GoogleGrpc_GoogleLocalCredentials&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<std::string>(); - } - - static const GrpcService_GoogleGrpc_GoogleLocalCredentials& default_instance() { - return *internal_default_instance(); - } - static inline const GrpcService_GoogleGrpc_GoogleLocalCredentials* internal_default_instance() { - return reinterpret_cast<const GrpcService_GoogleGrpc_GoogleLocalCredentials*>( - &_GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_); - } - static constexpr int kIndexInFileMessages = 5; - friend void swap(GrpcService_GoogleGrpc_GoogleLocalCredentials& a, GrpcService_GoogleGrpc_GoogleLocalCredentials& b) { a.Swap(&b); } - inline void Swap(GrpcService_GoogleGrpc_GoogleLocalCredentials* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrpcService_GoogleGrpc_GoogleLocalCredentials* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrpcService_GoogleGrpc_GoogleLocalCredentials* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::MessageLite::DefaultConstruct<GrpcService_GoogleGrpc_GoogleLocalCredentials>(arena); - } - void CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) final; - void CopyFrom(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from); - void MergeFrom(const GrpcService_GoogleGrpc_GoogleLocalCredentials& from); - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GrpcService_GoogleGrpc_GoogleLocalCredentials* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.GoogleLocalCredentials"; } - - protected: - explicit GrpcService_GoogleGrpc_GoogleLocalCredentials(::google::protobuf::Arena* arena); - GrpcService_GoogleGrpc_GoogleLocalCredentials(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_GoogleLocalCredentials& from); - GrpcService_GoogleGrpc_GoogleLocalCredentials(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_GoogleLocalCredentials&& from) noexcept - : GrpcService_GoogleGrpc_GoogleLocalCredentials(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.GoogleLocalCredentials) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 0, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_GoogleGrpc_Empty final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.Empty) */ { - public: - inline GrpcService_GoogleGrpc_Empty() : GrpcService_GoogleGrpc_Empty(nullptr) {} - ~GrpcService_GoogleGrpc_Empty() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_Empty( - ::google::protobuf::internal::ConstantInitialized); - - inline GrpcService_GoogleGrpc_Empty(const GrpcService_GoogleGrpc_Empty& from) : GrpcService_GoogleGrpc_Empty(nullptr, from) {} - inline GrpcService_GoogleGrpc_Empty(GrpcService_GoogleGrpc_Empty&& from) noexcept - : GrpcService_GoogleGrpc_Empty(nullptr, std::move(from)) {} - inline GrpcService_GoogleGrpc_Empty& operator=(const GrpcService_GoogleGrpc_Empty& from) { - CopyFrom(from); - return *this; - } - inline GrpcService_GoogleGrpc_Empty& operator=(GrpcService_GoogleGrpc_Empty&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<std::string>(); - } - - static const GrpcService_GoogleGrpc_Empty& default_instance() { - return *internal_default_instance(); - } - static inline const GrpcService_GoogleGrpc_Empty* internal_default_instance() { - return reinterpret_cast<const GrpcService_GoogleGrpc_Empty*>( - &_GrpcService_GoogleGrpc_Empty_default_instance_); - } - static constexpr int kIndexInFileMessages = 6; - friend void swap(GrpcService_GoogleGrpc_Empty& a, GrpcService_GoogleGrpc_Empty& b) { a.Swap(&b); } - inline void Swap(GrpcService_GoogleGrpc_Empty* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrpcService_GoogleGrpc_Empty* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrpcService_GoogleGrpc_Empty* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::MessageLite::DefaultConstruct<GrpcService_GoogleGrpc_Empty>(arena); - } - void CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) final; - void CopyFrom(const GrpcService_GoogleGrpc_Empty& from); - void MergeFrom(const GrpcService_GoogleGrpc_Empty& from); - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GrpcService_GoogleGrpc_Empty* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.Empty"; } - - protected: - explicit GrpcService_GoogleGrpc_Empty(::google::protobuf::Arena* arena); - GrpcService_GoogleGrpc_Empty(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_Empty& from); - GrpcService_GoogleGrpc_Empty(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_Empty&& from) noexcept - : GrpcService_GoogleGrpc_Empty(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.Empty) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 0, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_GoogleGrpc_CallCredentials_StsService final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials.StsService) */ { - public: - inline GrpcService_GoogleGrpc_CallCredentials_StsService() : GrpcService_GoogleGrpc_CallCredentials_StsService(nullptr) {} - ~GrpcService_GoogleGrpc_CallCredentials_StsService() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_StsService( - ::google::protobuf::internal::ConstantInitialized); - - inline GrpcService_GoogleGrpc_CallCredentials_StsService(const GrpcService_GoogleGrpc_CallCredentials_StsService& from) : GrpcService_GoogleGrpc_CallCredentials_StsService(nullptr, from) {} - inline GrpcService_GoogleGrpc_CallCredentials_StsService(GrpcService_GoogleGrpc_CallCredentials_StsService&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials_StsService(nullptr, 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 (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<std::string>(); - } - - static const GrpcService_GoogleGrpc_CallCredentials_StsService& default_instance() { - return *internal_default_instance(); - } - static inline const GrpcService_GoogleGrpc_CallCredentials_StsService* internal_default_instance() { - return reinterpret_cast<const GrpcService_GoogleGrpc_CallCredentials_StsService*>( - &_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; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrpcService_GoogleGrpc_CallCredentials_StsService* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrpcService_GoogleGrpc_CallCredentials_StsService* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::MessageLite::DefaultConstruct<GrpcService_GoogleGrpc_CallCredentials_StsService>(arena); - } - void CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) final; - void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from); - void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_StsService& from); - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GrpcService_GoogleGrpc_CallCredentials_StsService* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.CallCredentials.StsService"; } - - protected: - explicit GrpcService_GoogleGrpc_CallCredentials_StsService(::google::protobuf::Arena* arena); - GrpcService_GoogleGrpc_CallCredentials_StsService(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_CallCredentials_StsService& from); - GrpcService_GoogleGrpc_CallCredentials_StsService(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_CallCredentials_StsService&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials_StsService(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - 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; - template <typename Arg_ = const std::string&, typename... Args_> - void set_token_exchange_service_uri(Arg_&& arg, Args_... args); - std::string* mutable_token_exchange_service_uri(); - PROTOBUF_NODISCARD std::string* release_token_exchange_service_uri(); - void set_allocated_token_exchange_service_uri(std::string* value); - - private: - const std::string& _internal_token_exchange_service_uri() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_token_exchange_service_uri( - const std::string& value); - std::string* _internal_mutable_token_exchange_service_uri(); - - public: - // string resource = 2; - void clear_resource() ; - const std::string& resource() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_resource(Arg_&& arg, Args_... args); - std::string* mutable_resource(); - PROTOBUF_NODISCARD std::string* release_resource(); - void set_allocated_resource(std::string* value); - - private: - const std::string& _internal_resource() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_resource( - const std::string& value); - std::string* _internal_mutable_resource(); - - public: - // string audience = 3; - void clear_audience() ; - const std::string& audience() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_audience(Arg_&& arg, Args_... args); - std::string* mutable_audience(); - PROTOBUF_NODISCARD std::string* release_audience(); - void set_allocated_audience(std::string* value); - - private: - const std::string& _internal_audience() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_audience( - const std::string& value); - std::string* _internal_mutable_audience(); - - public: - // string scope = 4; - void clear_scope() ; - const std::string& scope() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_scope(Arg_&& arg, Args_... args); - std::string* mutable_scope(); - PROTOBUF_NODISCARD std::string* release_scope(); - void set_allocated_scope(std::string* value); - - private: - const std::string& _internal_scope() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_scope( - const std::string& value); - std::string* _internal_mutable_scope(); - - public: - // string requested_token_type = 5; - void clear_requested_token_type() ; - const std::string& requested_token_type() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_requested_token_type(Arg_&& arg, Args_... args); - std::string* mutable_requested_token_type(); - PROTOBUF_NODISCARD std::string* release_requested_token_type(); - void set_allocated_requested_token_type(std::string* value); - - private: - const std::string& _internal_requested_token_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_requested_token_type( - const std::string& value); - std::string* _internal_mutable_requested_token_type(); - - public: - // string subject_token_path = 6; - void clear_subject_token_path() ; - const std::string& subject_token_path() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_subject_token_path(Arg_&& arg, Args_... args); - std::string* mutable_subject_token_path(); - PROTOBUF_NODISCARD std::string* release_subject_token_path(); - void set_allocated_subject_token_path(std::string* value); - - private: - const std::string& _internal_subject_token_path() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_subject_token_path( - const std::string& value); - std::string* _internal_mutable_subject_token_path(); - - public: - // string subject_token_type = 7; - void clear_subject_token_type() ; - const std::string& subject_token_type() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_subject_token_type(Arg_&& arg, Args_... args); - std::string* mutable_subject_token_type(); - PROTOBUF_NODISCARD std::string* release_subject_token_type(); - void set_allocated_subject_token_type(std::string* value); - - private: - const std::string& _internal_subject_token_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_subject_token_type( - const std::string& value); - std::string* _internal_mutable_subject_token_type(); - - public: - // string actor_token_path = 8; - void clear_actor_token_path() ; - const std::string& actor_token_path() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_actor_token_path(Arg_&& arg, Args_... args); - std::string* mutable_actor_token_path(); - PROTOBUF_NODISCARD std::string* release_actor_token_path(); - void set_allocated_actor_token_path(std::string* value); - - private: - const std::string& _internal_actor_token_path() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_actor_token_path( - const std::string& value); - std::string* _internal_mutable_actor_token_path(); - - public: - // string actor_token_type = 9; - void clear_actor_token_type() ; - const std::string& actor_token_type() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_actor_token_type(Arg_&& arg, Args_... args); - std::string* mutable_actor_token_type(); - PROTOBUF_NODISCARD std::string* release_actor_token_type(); - void set_allocated_actor_token_type(std::string* value); - - private: - const std::string& _internal_actor_token_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_actor_token_type( - const std::string& value); - std::string* _internal_mutable_actor_token_type(); - - public: - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.StsService) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 9, 0, - 201, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr token_exchange_service_uri_; - ::google::protobuf::internal::ArenaStringPtr resource_; - ::google::protobuf::internal::ArenaStringPtr audience_; - ::google::protobuf::internal::ArenaStringPtr scope_; - ::google::protobuf::internal::ArenaStringPtr requested_token_type_; - ::google::protobuf::internal::ArenaStringPtr subject_token_path_; - ::google::protobuf::internal::ArenaStringPtr subject_token_type_; - ::google::protobuf::internal::ArenaStringPtr actor_token_path_; - ::google::protobuf::internal::ArenaStringPtr actor_token_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) */ { - public: - inline GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials() : GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(nullptr) {} - ~GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials( - ::google::protobuf::internal::ConstantInitialized); - - inline GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) : GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(nullptr, from) {} - inline GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(nullptr, std::move(from)) {} - inline GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& operator=(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from) { - CopyFrom(from); - return *this; - } - inline GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& operator=(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<std::string>(); - } - - static const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& default_instance() { - return *internal_default_instance(); - } - static inline const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* internal_default_instance() { - return reinterpret_cast<const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials*>( - &_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_); - } - static constexpr int kIndexInFileMessages = 8; - friend void swap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& a, GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& b) { a.Swap(&b); } - inline void Swap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::MessageLite::DefaultConstruct<GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials>(arena); - } - void CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) final; - void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from); - void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from); - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials"; } - - protected: - explicit GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(::google::protobuf::Arena* arena); - GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& from); - GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kJsonKeyFieldNumber = 1, - kTokenLifetimeSecondsFieldNumber = 2, - }; - // string json_key = 1; - void clear_json_key() ; - const std::string& json_key() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_json_key(Arg_&& arg, Args_... args); - std::string* mutable_json_key(); - PROTOBUF_NODISCARD std::string* release_json_key(); - void set_allocated_json_key(std::string* value); - - private: - const std::string& _internal_json_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_json_key( - const std::string& value); - std::string* _internal_mutable_json_key(); - - public: - // uint64 token_lifetime_seconds = 2; - void clear_token_lifetime_seconds() ; - ::uint64_t token_lifetime_seconds() const; - void set_token_lifetime_seconds(::uint64_t value); - - private: - ::uint64_t _internal_token_lifetime_seconds() const; - void _internal_set_token_lifetime_seconds(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 90, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr json_key_; - ::uint64_t token_lifetime_seconds_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) */ { - public: - inline GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials() : GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(nullptr) {} - ~GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials( - ::google::protobuf::internal::ConstantInitialized); - - inline GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) : GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(nullptr, from) {} - inline GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(nullptr, std::move(from)) {} - inline GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& operator=(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from) { - CopyFrom(from); - return *this; - } - inline GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& operator=(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<std::string>(); - } - - static const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& default_instance() { - return *internal_default_instance(); - } - static inline const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* internal_default_instance() { - return reinterpret_cast<const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials*>( - &_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_); - } - static constexpr int kIndexInFileMessages = 9; - friend void swap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& a, GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& b) { a.Swap(&b); } - inline void Swap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::MessageLite::DefaultConstruct<GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials>(arena); - } - void CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) final; - void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from); - void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from); - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials"; } - - protected: - explicit GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(::google::protobuf::Arena* arena); - GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& from); - GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kAuthorizationTokenFieldNumber = 1, - kAuthoritySelectorFieldNumber = 2, - }; - // string authorization_token = 1; - void clear_authorization_token() ; - const std::string& authorization_token() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_authorization_token(Arg_&& arg, Args_... args); - std::string* mutable_authorization_token(); - PROTOBUF_NODISCARD std::string* release_authorization_token(); - void set_allocated_authorization_token(std::string* value); - - private: - const std::string& _internal_authorization_token() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_authorization_token( - const std::string& value); - std::string* _internal_mutable_authorization_token(); - - public: - // string authority_selector = 2; - void clear_authority_selector() ; - const std::string& authority_selector() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_authority_selector(Arg_&& arg, Args_... args); - std::string* mutable_authority_selector(); - PROTOBUF_NODISCARD std::string* release_authority_selector(); - void set_allocated_authority_selector(std::string* value); - - private: - const std::string& _internal_authority_selector() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_authority_selector( - const std::string& value); - std::string* _internal_mutable_authority_selector(); - - public: - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 105, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr authorization_token_; - ::google::protobuf::internal::ArenaStringPtr authority_selector_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_EnvoyGrpc final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:GrpcService.EnvoyGrpc) */ { - public: - inline GrpcService_EnvoyGrpc() : GrpcService_EnvoyGrpc(nullptr) {} - ~GrpcService_EnvoyGrpc() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR GrpcService_EnvoyGrpc( - ::google::protobuf::internal::ConstantInitialized); - - inline GrpcService_EnvoyGrpc(const GrpcService_EnvoyGrpc& from) : GrpcService_EnvoyGrpc(nullptr, from) {} - inline GrpcService_EnvoyGrpc(GrpcService_EnvoyGrpc&& from) noexcept - : GrpcService_EnvoyGrpc(nullptr, std::move(from)) {} - inline GrpcService_EnvoyGrpc& operator=(const GrpcService_EnvoyGrpc& from) { - CopyFrom(from); - return *this; - } - inline GrpcService_EnvoyGrpc& operator=(GrpcService_EnvoyGrpc&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<std::string>(); - } - - static const GrpcService_EnvoyGrpc& default_instance() { - return *internal_default_instance(); - } - static inline const GrpcService_EnvoyGrpc* internal_default_instance() { - return reinterpret_cast<const GrpcService_EnvoyGrpc*>( - &_GrpcService_EnvoyGrpc_default_instance_); - } - static constexpr int kIndexInFileMessages = 3; - friend void swap(GrpcService_EnvoyGrpc& a, GrpcService_EnvoyGrpc& b) { a.Swap(&b); } - inline void Swap(GrpcService_EnvoyGrpc* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrpcService_EnvoyGrpc* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrpcService_EnvoyGrpc* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::MessageLite::DefaultConstruct<GrpcService_EnvoyGrpc>(arena); - } - void CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) final; - void CopyFrom(const GrpcService_EnvoyGrpc& from); - void MergeFrom(const GrpcService_EnvoyGrpc& from); - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GrpcService_EnvoyGrpc* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "GrpcService.EnvoyGrpc"; } - - protected: - explicit GrpcService_EnvoyGrpc(::google::protobuf::Arena* arena); - GrpcService_EnvoyGrpc(::google::protobuf::Arena* arena, const GrpcService_EnvoyGrpc& from); - GrpcService_EnvoyGrpc(::google::protobuf::Arena* arena, GrpcService_EnvoyGrpc&& from) noexcept - : GrpcService_EnvoyGrpc(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kClusterNameFieldNumber = 1, - }; - // string cluster_name = 1; - void clear_cluster_name() ; - const std::string& cluster_name() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_cluster_name(Arg_&& arg, Args_... args); - std::string* mutable_cluster_name(); - PROTOBUF_NODISCARD std::string* release_cluster_name(); - void set_allocated_cluster_name(std::string* value); - - private: - const std::string& _internal_cluster_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_cluster_name( - const std::string& value); - std::string* _internal_mutable_cluster_name(); - - public: - // @@protoc_insertion_point(class_scope:GrpcService.EnvoyGrpc) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 42, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr cluster_name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; -}; -// ------------------------------------------------------------------- - -class DataSource final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:DataSource) */ { - public: - inline DataSource() : DataSource(nullptr) {} - ~DataSource() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR DataSource( - ::google::protobuf::internal::ConstantInitialized); - - inline DataSource(const DataSource& from) : DataSource(nullptr, from) {} - inline DataSource(DataSource&& from) noexcept - : DataSource(nullptr, std::move(from)) {} - inline DataSource& operator=(const DataSource& from) { - CopyFrom(from); - return *this; - } - inline DataSource& operator=(DataSource&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<std::string>(); - } - - static const DataSource& default_instance() { - return *internal_default_instance(); - } - enum SpecifierCase { - kFilename = 1, - kInlineBytes = 2, - kInlineString = 3, - SPECIFIER_NOT_SET = 0, - }; - static inline const DataSource* internal_default_instance() { - return reinterpret_cast<const DataSource*>( - &_DataSource_default_instance_); - } - static constexpr int kIndexInFileMessages = 1; - friend void swap(DataSource& a, DataSource& b) { a.Swap(&b); } - inline void Swap(DataSource* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DataSource* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DataSource* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::MessageLite::DefaultConstruct<DataSource>(arena); - } - void CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) final; - void CopyFrom(const DataSource& from); - void MergeFrom(const DataSource& from); - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(DataSource* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "DataSource"; } - - protected: - explicit DataSource(::google::protobuf::Arena* arena); - DataSource(::google::protobuf::Arena* arena, const DataSource& from); - DataSource(::google::protobuf::Arena* arena, DataSource&& from) noexcept - : DataSource(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kFilenameFieldNumber = 1, - kInlineBytesFieldNumber = 2, - kInlineStringFieldNumber = 3, - }; - // string filename = 1; - bool has_filename() const; - void clear_filename() ; - const std::string& filename() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_filename(Arg_&& arg, Args_... args); - std::string* mutable_filename(); - PROTOBUF_NODISCARD std::string* release_filename(); - void set_allocated_filename(std::string* value); - - private: - const std::string& _internal_filename() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_filename( - const std::string& value); - std::string* _internal_mutable_filename(); - - public: - // bytes inline_bytes = 2; - bool has_inline_bytes() const; - void clear_inline_bytes() ; - const std::string& inline_bytes() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_inline_bytes(Arg_&& arg, Args_... args); - std::string* mutable_inline_bytes(); - PROTOBUF_NODISCARD std::string* release_inline_bytes(); - void set_allocated_inline_bytes(std::string* value); - - private: - const std::string& _internal_inline_bytes() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_inline_bytes( - const std::string& value); - std::string* _internal_mutable_inline_bytes(); - - public: - // string inline_string = 3; - bool has_inline_string() const; - void clear_inline_string() ; - const std::string& inline_string() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_inline_string(Arg_&& arg, Args_... args); - std::string* mutable_inline_string(); - PROTOBUF_NODISCARD std::string* release_inline_string(); - void set_allocated_inline_string(std::string* value); - - private: - const std::string& _internal_inline_string() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_inline_string( - const std::string& value); - std::string* _internal_mutable_inline_string(); - - public: - void clear_specifier(); - SpecifierCase specifier_case() const; - // @@protoc_insertion_point(class_scope:DataSource) - private: - class _Internal; - void set_has_filename(); - void set_has_inline_bytes(); - void set_has_inline_string(); - inline bool has_specifier() const; - inline void clear_has_specifier(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 3, 0, - 40, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - union SpecifierUnion { - constexpr SpecifierUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::google::protobuf::internal::ArenaStringPtr filename_; - ::google::protobuf::internal::ArenaStringPtr inline_bytes_; - ::google::protobuf::internal::ArenaStringPtr inline_string_; - } specifier_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; -}; -// ------------------------------------------------------------------- - -class Any final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:Any) */ { - public: - inline Any() : Any(nullptr) {} - ~Any() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR Any( - ::google::protobuf::internal::ConstantInitialized); - - inline Any(const Any& from) : Any(nullptr, from) {} - inline Any(Any&& from) noexcept - : Any(nullptr, std::move(from)) {} - inline Any& operator=(const Any& from) { - CopyFrom(from); - return *this; - } - inline Any& operator=(Any&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<std::string>(); - } - - static const Any& default_instance() { - return *internal_default_instance(); - } - static inline const Any* internal_default_instance() { - return reinterpret_cast<const Any*>( - &_Any_default_instance_); - } - static constexpr int kIndexInFileMessages = 2; - friend void swap(Any& a, Any& b) { a.Swap(&b); } - inline void Swap(Any* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Any* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Any* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::MessageLite::DefaultConstruct<Any>(arena); - } - void CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) final; - void CopyFrom(const Any& from); - void MergeFrom(const Any& from); - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Any* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "Any"; } - - protected: - explicit Any(::google::protobuf::Arena* arena); - Any(::google::protobuf::Arena* arena, const Any& from); - Any(::google::protobuf::Arena* arena, Any&& from) noexcept - : Any(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kTypeUrlFieldNumber = 1, - kValueFieldNumber = 2, - }; - // string type_url = 1; - void clear_type_url() ; - const std::string& type_url() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_type_url(Arg_&& arg, Args_... args); - std::string* mutable_type_url(); - PROTOBUF_NODISCARD std::string* release_type_url(); - void set_allocated_type_url(std::string* value); - - private: - const std::string& _internal_type_url() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_type_url( - const std::string& value); - std::string* _internal_mutable_type_url(); - - public: - // bytes value = 2; - void clear_value() ; - const std::string& value() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_value(Arg_&& arg, Args_... args); - std::string* mutable_value(); - PROTOBUF_NODISCARD std::string* release_value(); - void set_allocated_value(std::string* value); - - private: - const std::string& _internal_value() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_value( - const std::string& value); - std::string* _internal_mutable_value(); - - public: - // @@protoc_insertion_point(class_scope:Any) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 20, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr type_url_; - ::google::protobuf::internal::ArenaStringPtr value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; -}; -// ------------------------------------------------------------------- - -class WKT final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:WKT) */ { - public: - inline WKT() : WKT(nullptr) {} - ~WKT() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR WKT( - ::google::protobuf::internal::ConstantInitialized); - - inline WKT(const WKT& from) : WKT(nullptr, from) {} - inline WKT(WKT&& from) noexcept - : WKT(nullptr, std::move(from)) {} - inline WKT& operator=(const WKT& from) { - CopyFrom(from); - return *this; - } - inline WKT& operator=(WKT&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<std::string>(); - } - - static const WKT& default_instance() { - return *internal_default_instance(); - } - static inline const WKT* internal_default_instance() { - return reinterpret_cast<const WKT*>( - &_WKT_default_instance_); - } - static constexpr int kIndexInFileMessages = 0; - friend void swap(WKT& a, WKT& b) { a.Swap(&b); } - inline void Swap(WKT* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(WKT* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - WKT* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::MessageLite::DefaultConstruct<WKT>(arena); - } - void CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) final; - void CopyFrom(const WKT& from); - void MergeFrom(const WKT& from); - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(WKT* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "WKT"; } - - protected: - explicit WKT(::google::protobuf::Arena* arena); - WKT(::google::protobuf::Arena* arena, const WKT& from); - WKT(::google::protobuf::Arena* arena, WKT&& from) noexcept - : WKT(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kStructFieldNumber = 1, - }; - // .google.protobuf.Struct struct = 1; - bool has_struct_() const; - void clear_struct_() ; - const ::google::protobuf::Struct& struct_() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_struct_(); - ::google::protobuf::Struct* mutable_struct_(); - void set_allocated_struct_(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_struct_(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_struct_(); - - private: - const ::google::protobuf::Struct& _internal_struct_() const; - ::google::protobuf::Struct* _internal_mutable_struct_(); - - public: - // @@protoc_insertion_point(class_scope:WKT) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::Struct* struct__; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_GoogleGrpc_SslCredentials final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.SslCredentials) */ { - public: - inline GrpcService_GoogleGrpc_SslCredentials() : GrpcService_GoogleGrpc_SslCredentials(nullptr) {} - ~GrpcService_GoogleGrpc_SslCredentials() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_SslCredentials( - ::google::protobuf::internal::ConstantInitialized); - - inline GrpcService_GoogleGrpc_SslCredentials(const GrpcService_GoogleGrpc_SslCredentials& from) : GrpcService_GoogleGrpc_SslCredentials(nullptr, from) {} - inline GrpcService_GoogleGrpc_SslCredentials(GrpcService_GoogleGrpc_SslCredentials&& from) noexcept - : GrpcService_GoogleGrpc_SslCredentials(nullptr, std::move(from)) {} - inline GrpcService_GoogleGrpc_SslCredentials& operator=(const GrpcService_GoogleGrpc_SslCredentials& from) { - CopyFrom(from); - return *this; - } - inline GrpcService_GoogleGrpc_SslCredentials& operator=(GrpcService_GoogleGrpc_SslCredentials&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<std::string>(); - } - - static const GrpcService_GoogleGrpc_SslCredentials& default_instance() { - return *internal_default_instance(); - } - static inline const GrpcService_GoogleGrpc_SslCredentials* internal_default_instance() { - return reinterpret_cast<const GrpcService_GoogleGrpc_SslCredentials*>( - &_GrpcService_GoogleGrpc_SslCredentials_default_instance_); - } - static constexpr int kIndexInFileMessages = 4; - friend void swap(GrpcService_GoogleGrpc_SslCredentials& a, GrpcService_GoogleGrpc_SslCredentials& b) { a.Swap(&b); } - inline void Swap(GrpcService_GoogleGrpc_SslCredentials* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrpcService_GoogleGrpc_SslCredentials* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrpcService_GoogleGrpc_SslCredentials* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::MessageLite::DefaultConstruct<GrpcService_GoogleGrpc_SslCredentials>(arena); - } - void CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) final; - void CopyFrom(const GrpcService_GoogleGrpc_SslCredentials& from); - void MergeFrom(const GrpcService_GoogleGrpc_SslCredentials& from); - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GrpcService_GoogleGrpc_SslCredentials* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.SslCredentials"; } - - protected: - explicit GrpcService_GoogleGrpc_SslCredentials(::google::protobuf::Arena* arena); - GrpcService_GoogleGrpc_SslCredentials(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_SslCredentials& from); - GrpcService_GoogleGrpc_SslCredentials(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_SslCredentials&& from) noexcept - : GrpcService_GoogleGrpc_SslCredentials(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kRootCertsFieldNumber = 1, - kPrivateKeyFieldNumber = 2, - kCertChainFieldNumber = 3, - }; - // .DataSource root_certs = 1; - bool has_root_certs() const; - void clear_root_certs() ; - const ::DataSource& root_certs() const; - PROTOBUF_NODISCARD ::DataSource* release_root_certs(); - ::DataSource* mutable_root_certs(); - void set_allocated_root_certs(::DataSource* value); - void unsafe_arena_set_allocated_root_certs(::DataSource* value); - ::DataSource* unsafe_arena_release_root_certs(); - - private: - const ::DataSource& _internal_root_certs() const; - ::DataSource* _internal_mutable_root_certs(); - - public: - // .DataSource private_key = 2; - bool has_private_key() const; - void clear_private_key() ; - const ::DataSource& private_key() const; - PROTOBUF_NODISCARD ::DataSource* release_private_key(); - ::DataSource* mutable_private_key(); - void set_allocated_private_key(::DataSource* value); - void unsafe_arena_set_allocated_private_key(::DataSource* value); - ::DataSource* unsafe_arena_release_private_key(); - - private: - const ::DataSource& _internal_private_key() const; - ::DataSource* _internal_mutable_private_key(); - - public: - // .DataSource cert_chain = 3; - bool has_cert_chain() const; - void clear_cert_chain() ; - const ::DataSource& cert_chain() const; - PROTOBUF_NODISCARD ::DataSource* release_cert_chain(); - ::DataSource* mutable_cert_chain(); - void set_allocated_cert_chain(::DataSource* value); - void unsafe_arena_set_allocated_cert_chain(::DataSource* value); - ::DataSource* unsafe_arena_release_cert_chain(); - - private: - const ::DataSource& _internal_cert_chain() const; - ::DataSource* _internal_mutable_cert_chain(); - - public: - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.SslCredentials) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 3, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::DataSource* root_certs_; - ::DataSource* private_key_; - ::DataSource* cert_chain_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) */ { - public: - inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin() : GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(nullptr) {} - ~GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin( - ::google::protobuf::internal::ConstantInitialized); - - inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from) : GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(nullptr, from) {} - inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(nullptr, std::move(from)) {} - inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& operator=(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from) { - CopyFrom(from); - return *this; - } - inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& operator=(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<std::string>(); - } - - static const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& default_instance() { - return *internal_default_instance(); - } - enum ConfigTypeCase { - kConfig = 2, - kTypedConfig = 3, - CONFIG_TYPE_NOT_SET = 0, - }; - static inline const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* internal_default_instance() { - return reinterpret_cast<const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin*>( - &_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_); - } - static constexpr int kIndexInFileMessages = 10; - friend void swap(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& a, GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& b) { a.Swap(&b); } - inline void Swap(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::MessageLite::DefaultConstruct<GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin>(arena); - } - void CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) final; - void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from); - void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from); - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin"; } - - protected: - explicit GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(::google::protobuf::Arena* arena); - GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from); - GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kNameFieldNumber = 1, - kConfigFieldNumber = 2, - kTypedConfigFieldNumber = 3, - }; - // string name = 1; - void clear_name() ; - const std::string& name() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // .google.protobuf.Struct config = 2 [deprecated = true]; - [[deprecated]] bool has_config() const; - private: - bool _internal_has_config() const; - - public: - [[deprecated]] void clear_config() ; - [[deprecated]] const ::google::protobuf::Struct& config() const; - [[deprecated]] PROTOBUF_NODISCARD ::google::protobuf::Struct* release_config(); - [[deprecated]] ::google::protobuf::Struct* mutable_config(); - [[deprecated]] void set_allocated_config(::google::protobuf::Struct* value); - [[deprecated]] void unsafe_arena_set_allocated_config(::google::protobuf::Struct* value); - [[deprecated]] ::google::protobuf::Struct* unsafe_arena_release_config(); - - private: - const ::google::protobuf::Struct& _internal_config() const; - ::google::protobuf::Struct* _internal_mutable_config(); - - public: - // .Any typed_config = 3; - bool has_typed_config() const; - private: - bool _internal_has_typed_config() const; - - public: - void clear_typed_config() ; - const ::Any& typed_config() const; - PROTOBUF_NODISCARD ::Any* release_typed_config(); - ::Any* mutable_typed_config(); - void set_allocated_typed_config(::Any* value); - void unsafe_arena_set_allocated_typed_config(::Any* value); - ::Any* unsafe_arena_release_typed_config(); - - private: - const ::Any& _internal_typed_config() const; - ::Any* _internal_mutable_typed_config(); - - public: - void clear_config_type(); - ConfigTypeCase config_type_case() const; - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin) - private: - class _Internal; - void set_has_config(); - void set_has_typed_config(); - inline bool has_config_type() const; - inline void clear_has_config_type(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 3, 2, - 81, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - union ConfigTypeUnion { - constexpr ConfigTypeUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::google::protobuf::Struct* config_; - ::Any* typed_config_; - } config_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_GoogleGrpc_ChannelCredentials final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.ChannelCredentials) */ { - public: - inline GrpcService_GoogleGrpc_ChannelCredentials() : GrpcService_GoogleGrpc_ChannelCredentials(nullptr) {} - ~GrpcService_GoogleGrpc_ChannelCredentials() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_ChannelCredentials( - ::google::protobuf::internal::ConstantInitialized); - - inline GrpcService_GoogleGrpc_ChannelCredentials(const GrpcService_GoogleGrpc_ChannelCredentials& from) : GrpcService_GoogleGrpc_ChannelCredentials(nullptr, from) {} - inline GrpcService_GoogleGrpc_ChannelCredentials(GrpcService_GoogleGrpc_ChannelCredentials&& from) noexcept - : GrpcService_GoogleGrpc_ChannelCredentials(nullptr, std::move(from)) {} - inline GrpcService_GoogleGrpc_ChannelCredentials& operator=(const GrpcService_GoogleGrpc_ChannelCredentials& from) { - CopyFrom(from); - return *this; - } - inline GrpcService_GoogleGrpc_ChannelCredentials& operator=(GrpcService_GoogleGrpc_ChannelCredentials&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<std::string>(); - } - - static const GrpcService_GoogleGrpc_ChannelCredentials& default_instance() { - return *internal_default_instance(); - } - enum CredentialSpecifierCase { - kSslCredentials = 1, - kGoogleDefault = 2, - kLocalCredentials = 3, - CREDENTIAL_SPECIFIER_NOT_SET = 0, - }; - static inline const GrpcService_GoogleGrpc_ChannelCredentials* internal_default_instance() { - return reinterpret_cast<const GrpcService_GoogleGrpc_ChannelCredentials*>( - &_GrpcService_GoogleGrpc_ChannelCredentials_default_instance_); - } - static constexpr int kIndexInFileMessages = 7; - friend void swap(GrpcService_GoogleGrpc_ChannelCredentials& a, GrpcService_GoogleGrpc_ChannelCredentials& b) { a.Swap(&b); } - inline void Swap(GrpcService_GoogleGrpc_ChannelCredentials* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrpcService_GoogleGrpc_ChannelCredentials* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrpcService_GoogleGrpc_ChannelCredentials* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::MessageLite::DefaultConstruct<GrpcService_GoogleGrpc_ChannelCredentials>(arena); - } - void CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) final; - void CopyFrom(const GrpcService_GoogleGrpc_ChannelCredentials& from); - void MergeFrom(const GrpcService_GoogleGrpc_ChannelCredentials& from); - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GrpcService_GoogleGrpc_ChannelCredentials* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.ChannelCredentials"; } - - protected: - explicit GrpcService_GoogleGrpc_ChannelCredentials(::google::protobuf::Arena* arena); - GrpcService_GoogleGrpc_ChannelCredentials(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_ChannelCredentials& from); - GrpcService_GoogleGrpc_ChannelCredentials(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_ChannelCredentials&& from) noexcept - : GrpcService_GoogleGrpc_ChannelCredentials(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kSslCredentialsFieldNumber = 1, - kGoogleDefaultFieldNumber = 2, - kLocalCredentialsFieldNumber = 3, - }; - // .GrpcService.GoogleGrpc.SslCredentials ssl_credentials = 1; - bool has_ssl_credentials() const; - private: - bool _internal_has_ssl_credentials() const; - - public: - void clear_ssl_credentials() ; - const ::GrpcService_GoogleGrpc_SslCredentials& ssl_credentials() const; - PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_SslCredentials* release_ssl_credentials(); - ::GrpcService_GoogleGrpc_SslCredentials* mutable_ssl_credentials(); - void set_allocated_ssl_credentials(::GrpcService_GoogleGrpc_SslCredentials* value); - void unsafe_arena_set_allocated_ssl_credentials(::GrpcService_GoogleGrpc_SslCredentials* value); - ::GrpcService_GoogleGrpc_SslCredentials* unsafe_arena_release_ssl_credentials(); - - private: - const ::GrpcService_GoogleGrpc_SslCredentials& _internal_ssl_credentials() const; - ::GrpcService_GoogleGrpc_SslCredentials* _internal_mutable_ssl_credentials(); - - public: - // .GrpcService.GoogleGrpc.Empty google_default = 2; - bool has_google_default() const; - private: - bool _internal_has_google_default() const; - - public: - void clear_google_default() ; - const ::GrpcService_GoogleGrpc_Empty& google_default() const; - PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_Empty* release_google_default(); - ::GrpcService_GoogleGrpc_Empty* mutable_google_default(); - void set_allocated_google_default(::GrpcService_GoogleGrpc_Empty* value); - void unsafe_arena_set_allocated_google_default(::GrpcService_GoogleGrpc_Empty* value); - ::GrpcService_GoogleGrpc_Empty* unsafe_arena_release_google_default(); - - private: - const ::GrpcService_GoogleGrpc_Empty& _internal_google_default() const; - ::GrpcService_GoogleGrpc_Empty* _internal_mutable_google_default(); - - public: - // .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; - bool has_local_credentials() const; - private: - bool _internal_has_local_credentials() const; - - public: - void clear_local_credentials() ; - const ::GrpcService_GoogleGrpc_GoogleLocalCredentials& local_credentials() const; - PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_GoogleLocalCredentials* release_local_credentials(); - ::GrpcService_GoogleGrpc_GoogleLocalCredentials* mutable_local_credentials(); - void set_allocated_local_credentials(::GrpcService_GoogleGrpc_GoogleLocalCredentials* value); - void unsafe_arena_set_allocated_local_credentials(::GrpcService_GoogleGrpc_GoogleLocalCredentials* value); - ::GrpcService_GoogleGrpc_GoogleLocalCredentials* unsafe_arena_release_local_credentials(); - - private: - const ::GrpcService_GoogleGrpc_GoogleLocalCredentials& _internal_local_credentials() const; - ::GrpcService_GoogleGrpc_GoogleLocalCredentials* _internal_mutable_local_credentials(); - - public: - void clear_credential_specifier(); - CredentialSpecifierCase credential_specifier_case() const; - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.ChannelCredentials) - private: - class _Internal; - void set_has_ssl_credentials(); - void set_has_google_default(); - void set_has_local_credentials(); - inline bool has_credential_specifier() const; - inline void clear_has_credential_specifier(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 3, 3, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - union CredentialSpecifierUnion { - constexpr CredentialSpecifierUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::GrpcService_GoogleGrpc_SslCredentials* ssl_credentials_; - ::GrpcService_GoogleGrpc_Empty* google_default_; - ::GrpcService_GoogleGrpc_GoogleLocalCredentials* local_credentials_; - } credential_specifier_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_GoogleGrpc_CallCredentials final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc.CallCredentials) */ { - public: - inline GrpcService_GoogleGrpc_CallCredentials() : GrpcService_GoogleGrpc_CallCredentials(nullptr) {} - ~GrpcService_GoogleGrpc_CallCredentials() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc_CallCredentials( - ::google::protobuf::internal::ConstantInitialized); - - inline GrpcService_GoogleGrpc_CallCredentials(const GrpcService_GoogleGrpc_CallCredentials& from) : GrpcService_GoogleGrpc_CallCredentials(nullptr, from) {} - inline GrpcService_GoogleGrpc_CallCredentials(GrpcService_GoogleGrpc_CallCredentials&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials(nullptr, std::move(from)) {} - inline GrpcService_GoogleGrpc_CallCredentials& operator=(const GrpcService_GoogleGrpc_CallCredentials& from) { - CopyFrom(from); - return *this; - } - inline GrpcService_GoogleGrpc_CallCredentials& operator=(GrpcService_GoogleGrpc_CallCredentials&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<std::string>(); - } - - static const GrpcService_GoogleGrpc_CallCredentials& default_instance() { - return *internal_default_instance(); - } - enum CredentialSpecifierCase { - kAccessToken = 1, - kGoogleComputeEngine = 2, - kGoogleRefreshToken = 3, - kServiceAccountJwtAccess = 4, - kGoogleIam = 5, - kFromPlugin = 6, - kStsService = 7, - CREDENTIAL_SPECIFIER_NOT_SET = 0, - }; - static inline const GrpcService_GoogleGrpc_CallCredentials* internal_default_instance() { - return reinterpret_cast<const GrpcService_GoogleGrpc_CallCredentials*>( - &_GrpcService_GoogleGrpc_CallCredentials_default_instance_); - } - static constexpr int kIndexInFileMessages = 12; - friend void swap(GrpcService_GoogleGrpc_CallCredentials& a, GrpcService_GoogleGrpc_CallCredentials& b) { a.Swap(&b); } - inline void Swap(GrpcService_GoogleGrpc_CallCredentials* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrpcService_GoogleGrpc_CallCredentials* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrpcService_GoogleGrpc_CallCredentials* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::MessageLite::DefaultConstruct<GrpcService_GoogleGrpc_CallCredentials>(arena); - } - void CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) final; - void CopyFrom(const GrpcService_GoogleGrpc_CallCredentials& from); - void MergeFrom(const GrpcService_GoogleGrpc_CallCredentials& from); - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GrpcService_GoogleGrpc_CallCredentials* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc.CallCredentials"; } - - protected: - explicit GrpcService_GoogleGrpc_CallCredentials(::google::protobuf::Arena* arena); - GrpcService_GoogleGrpc_CallCredentials(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc_CallCredentials& from); - GrpcService_GoogleGrpc_CallCredentials(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc_CallCredentials&& from) noexcept - : GrpcService_GoogleGrpc_CallCredentials(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - // nested types ---------------------------------------------------- - using ServiceAccountJWTAccessCredentials = GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials; - using GoogleIAMCredentials = GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials; - using MetadataCredentialsFromPlugin = GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin; - using StsService = GrpcService_GoogleGrpc_CallCredentials_StsService; - - // accessors ------------------------------------------------------- - enum : int { - kAccessTokenFieldNumber = 1, - kGoogleComputeEngineFieldNumber = 2, - kGoogleRefreshTokenFieldNumber = 3, - kServiceAccountJwtAccessFieldNumber = 4, - kGoogleIamFieldNumber = 5, - kFromPluginFieldNumber = 6, - kStsServiceFieldNumber = 7, - }; - // string access_token = 1; - bool has_access_token() const; - void clear_access_token() ; - const std::string& access_token() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_access_token(Arg_&& arg, Args_... args); - std::string* mutable_access_token(); - PROTOBUF_NODISCARD std::string* release_access_token(); - void set_allocated_access_token(std::string* value); - - private: - const std::string& _internal_access_token() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_access_token( - const std::string& value); - std::string* _internal_mutable_access_token(); - - public: - // .GrpcService.GoogleGrpc.Empty google_compute_engine = 2; - bool has_google_compute_engine() const; - private: - bool _internal_has_google_compute_engine() const; - - public: - void clear_google_compute_engine() ; - const ::GrpcService_GoogleGrpc_Empty& google_compute_engine() const; - PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_Empty* release_google_compute_engine(); - ::GrpcService_GoogleGrpc_Empty* mutable_google_compute_engine(); - void set_allocated_google_compute_engine(::GrpcService_GoogleGrpc_Empty* value); - void unsafe_arena_set_allocated_google_compute_engine(::GrpcService_GoogleGrpc_Empty* value); - ::GrpcService_GoogleGrpc_Empty* unsafe_arena_release_google_compute_engine(); - - private: - const ::GrpcService_GoogleGrpc_Empty& _internal_google_compute_engine() const; - ::GrpcService_GoogleGrpc_Empty* _internal_mutable_google_compute_engine(); - - public: - // string google_refresh_token = 3; - bool has_google_refresh_token() const; - void clear_google_refresh_token() ; - const std::string& google_refresh_token() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_google_refresh_token(Arg_&& arg, Args_... args); - std::string* mutable_google_refresh_token(); - PROTOBUF_NODISCARD std::string* release_google_refresh_token(); - void set_allocated_google_refresh_token(std::string* value); - - private: - const std::string& _internal_google_refresh_token() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_google_refresh_token( - const std::string& value); - std::string* _internal_mutable_google_refresh_token(); - - public: - // .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; - bool has_service_account_jwt_access() const; - private: - bool _internal_has_service_account_jwt_access() const; - - public: - void clear_service_account_jwt_access() ; - const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& service_account_jwt_access() const; - PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* release_service_account_jwt_access(); - ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* mutable_service_account_jwt_access(); - void set_allocated_service_account_jwt_access(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* value); - void unsafe_arena_set_allocated_service_account_jwt_access(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* value); - ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* unsafe_arena_release_service_account_jwt_access(); - - private: - const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& _internal_service_account_jwt_access() const; - ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* _internal_mutable_service_account_jwt_access(); - - public: - // .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; - bool has_google_iam() const; - private: - bool _internal_has_google_iam() const; - - public: - void clear_google_iam() ; - const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& google_iam() const; - PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* release_google_iam(); - ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* mutable_google_iam(); - void set_allocated_google_iam(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* value); - void unsafe_arena_set_allocated_google_iam(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* value); - ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* unsafe_arena_release_google_iam(); - - private: - const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& _internal_google_iam() const; - ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* _internal_mutable_google_iam(); - - public: - // .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; - bool has_from_plugin() const; - private: - bool _internal_has_from_plugin() const; - - public: - void clear_from_plugin() ; - const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& from_plugin() const; - PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* release_from_plugin(); - ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* mutable_from_plugin(); - void set_allocated_from_plugin(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* value); - void unsafe_arena_set_allocated_from_plugin(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* value); - ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* unsafe_arena_release_from_plugin(); - - private: - const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& _internal_from_plugin() const; - ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* _internal_mutable_from_plugin(); - - public: - // .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; - bool has_sts_service() const; - private: - bool _internal_has_sts_service() const; - - public: - void clear_sts_service() ; - const ::GrpcService_GoogleGrpc_CallCredentials_StsService& sts_service() const; - PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_CallCredentials_StsService* release_sts_service(); - ::GrpcService_GoogleGrpc_CallCredentials_StsService* mutable_sts_service(); - void set_allocated_sts_service(::GrpcService_GoogleGrpc_CallCredentials_StsService* value); - void unsafe_arena_set_allocated_sts_service(::GrpcService_GoogleGrpc_CallCredentials_StsService* value); - ::GrpcService_GoogleGrpc_CallCredentials_StsService* unsafe_arena_release_sts_service(); - - private: - const ::GrpcService_GoogleGrpc_CallCredentials_StsService& _internal_sts_service() const; - ::GrpcService_GoogleGrpc_CallCredentials_StsService* _internal_mutable_sts_service(); - - public: - void clear_credential_specifier(); - CredentialSpecifierCase credential_specifier_case() const; - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc.CallCredentials) - private: - class _Internal; - void set_has_access_token(); - void set_has_google_compute_engine(); - void set_has_google_refresh_token(); - 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(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 7, 5, - 79, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - union CredentialSpecifierUnion { - constexpr CredentialSpecifierUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::google::protobuf::internal::ArenaStringPtr access_token_; - ::GrpcService_GoogleGrpc_Empty* google_compute_engine_; - ::google::protobuf::internal::ArenaStringPtr google_refresh_token_; - ::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 ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService_GoogleGrpc final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:GrpcService.GoogleGrpc) */ { - public: - inline GrpcService_GoogleGrpc() : GrpcService_GoogleGrpc(nullptr) {} - ~GrpcService_GoogleGrpc() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR GrpcService_GoogleGrpc( - ::google::protobuf::internal::ConstantInitialized); - - inline GrpcService_GoogleGrpc(const GrpcService_GoogleGrpc& from) : GrpcService_GoogleGrpc(nullptr, from) {} - inline GrpcService_GoogleGrpc(GrpcService_GoogleGrpc&& from) noexcept - : GrpcService_GoogleGrpc(nullptr, std::move(from)) {} - inline GrpcService_GoogleGrpc& operator=(const GrpcService_GoogleGrpc& from) { - CopyFrom(from); - return *this; - } - inline GrpcService_GoogleGrpc& operator=(GrpcService_GoogleGrpc&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<std::string>(); - } - - static const GrpcService_GoogleGrpc& default_instance() { - return *internal_default_instance(); - } - static inline const GrpcService_GoogleGrpc* internal_default_instance() { - return reinterpret_cast<const GrpcService_GoogleGrpc*>( - &_GrpcService_GoogleGrpc_default_instance_); - } - static constexpr int kIndexInFileMessages = 13; - friend void swap(GrpcService_GoogleGrpc& a, GrpcService_GoogleGrpc& b) { a.Swap(&b); } - inline void Swap(GrpcService_GoogleGrpc* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrpcService_GoogleGrpc* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrpcService_GoogleGrpc* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::MessageLite::DefaultConstruct<GrpcService_GoogleGrpc>(arena); - } - void CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) final; - void CopyFrom(const GrpcService_GoogleGrpc& from); - void MergeFrom(const GrpcService_GoogleGrpc& from); - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GrpcService_GoogleGrpc* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "GrpcService.GoogleGrpc"; } - - protected: - explicit GrpcService_GoogleGrpc(::google::protobuf::Arena* arena); - GrpcService_GoogleGrpc(::google::protobuf::Arena* arena, const GrpcService_GoogleGrpc& from); - GrpcService_GoogleGrpc(::google::protobuf::Arena* arena, GrpcService_GoogleGrpc&& from) noexcept - : GrpcService_GoogleGrpc(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - // nested types ---------------------------------------------------- - using SslCredentials = GrpcService_GoogleGrpc_SslCredentials; - using GoogleLocalCredentials = GrpcService_GoogleGrpc_GoogleLocalCredentials; - using Empty = GrpcService_GoogleGrpc_Empty; - using ChannelCredentials = GrpcService_GoogleGrpc_ChannelCredentials; - using CallCredentials = GrpcService_GoogleGrpc_CallCredentials; - - // accessors ------------------------------------------------------- - enum : int { - kCallCredentialsFieldNumber = 3, - kTargetUriFieldNumber = 1, - kStatPrefixFieldNumber = 4, - kCredentialsFactoryNameFieldNumber = 5, - kChannelCredentialsFieldNumber = 2, - kConfigFieldNumber = 6, - }; - // repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; - int call_credentials_size() const; - private: - int _internal_call_credentials_size() const; - - public: - void clear_call_credentials() ; - ::GrpcService_GoogleGrpc_CallCredentials* mutable_call_credentials(int index); - ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>* mutable_call_credentials(); - - private: - const ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>& _internal_call_credentials() const; - ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>* _internal_mutable_call_credentials(); - public: - const ::GrpcService_GoogleGrpc_CallCredentials& call_credentials(int index) const; - ::GrpcService_GoogleGrpc_CallCredentials* add_call_credentials(); - const ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>& call_credentials() const; - // string target_uri = 1; - void clear_target_uri() ; - const std::string& target_uri() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_target_uri(Arg_&& arg, Args_... args); - std::string* mutable_target_uri(); - PROTOBUF_NODISCARD std::string* release_target_uri(); - void set_allocated_target_uri(std::string* value); - - private: - const std::string& _internal_target_uri() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_target_uri( - const std::string& value); - std::string* _internal_mutable_target_uri(); - - public: - // string stat_prefix = 4; - void clear_stat_prefix() ; - const std::string& stat_prefix() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_stat_prefix(Arg_&& arg, Args_... args); - std::string* mutable_stat_prefix(); - PROTOBUF_NODISCARD std::string* release_stat_prefix(); - void set_allocated_stat_prefix(std::string* value); - - private: - const std::string& _internal_stat_prefix() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_stat_prefix( - const std::string& value); - std::string* _internal_mutable_stat_prefix(); - - public: - // string credentials_factory_name = 5; - void clear_credentials_factory_name() ; - const std::string& credentials_factory_name() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_credentials_factory_name(Arg_&& arg, Args_... args); - std::string* mutable_credentials_factory_name(); - PROTOBUF_NODISCARD std::string* release_credentials_factory_name(); - void set_allocated_credentials_factory_name(std::string* value); - - private: - const std::string& _internal_credentials_factory_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_credentials_factory_name( - const std::string& value); - std::string* _internal_mutable_credentials_factory_name(); - - public: - // .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; - bool has_channel_credentials() const; - void clear_channel_credentials() ; - const ::GrpcService_GoogleGrpc_ChannelCredentials& channel_credentials() const; - PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc_ChannelCredentials* release_channel_credentials(); - ::GrpcService_GoogleGrpc_ChannelCredentials* mutable_channel_credentials(); - void set_allocated_channel_credentials(::GrpcService_GoogleGrpc_ChannelCredentials* value); - void unsafe_arena_set_allocated_channel_credentials(::GrpcService_GoogleGrpc_ChannelCredentials* value); - ::GrpcService_GoogleGrpc_ChannelCredentials* unsafe_arena_release_channel_credentials(); - - private: - const ::GrpcService_GoogleGrpc_ChannelCredentials& _internal_channel_credentials() const; - ::GrpcService_GoogleGrpc_ChannelCredentials* _internal_mutable_channel_credentials(); - - public: - // .google.protobuf.Struct config = 6; - bool has_config() const; - void clear_config() ; - const ::google::protobuf::Struct& config() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_config(); - ::google::protobuf::Struct* mutable_config(); - void set_allocated_config(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_config(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_config(); - - private: - const ::google::protobuf::Struct& _internal_config() const; - ::google::protobuf::Struct* _internal_mutable_config(); - - public: - // @@protoc_insertion_point(class_scope:GrpcService.GoogleGrpc) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 3, - 76, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::GrpcService_GoogleGrpc_CallCredentials > call_credentials_; - ::google::protobuf::internal::ArenaStringPtr target_uri_; - ::google::protobuf::internal::ArenaStringPtr stat_prefix_; - ::google::protobuf::internal::ArenaStringPtr credentials_factory_name_; - ::GrpcService_GoogleGrpc_ChannelCredentials* channel_credentials_; - ::google::protobuf::Struct* config_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; -}; -// ------------------------------------------------------------------- - -class GrpcService final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:GrpcService) */ { - public: - inline GrpcService() : GrpcService(nullptr) {} - ~GrpcService() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR GrpcService( - ::google::protobuf::internal::ConstantInitialized); - - inline GrpcService(const GrpcService& from) : GrpcService(nullptr, from) {} - inline GrpcService(GrpcService&& from) noexcept - : GrpcService(nullptr, std::move(from)) {} - inline GrpcService& operator=(const GrpcService& from) { - CopyFrom(from); - return *this; - } - inline GrpcService& operator=(GrpcService&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<std::string>(); - } - - static const GrpcService& default_instance() { - return *internal_default_instance(); - } - enum TargetSpecifierCase { - kEnvoyGrpc = 1, - kGoogleGrpc = 2, - TARGET_SPECIFIER_NOT_SET = 0, - }; - static inline const GrpcService* internal_default_instance() { - return reinterpret_cast<const GrpcService*>( - &_GrpcService_default_instance_); - } - static constexpr int kIndexInFileMessages = 15; - friend void swap(GrpcService& a, GrpcService& b) { a.Swap(&b); } - inline void Swap(GrpcService* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrpcService* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrpcService* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::MessageLite::DefaultConstruct<GrpcService>(arena); - } - void CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) final; - void CopyFrom(const GrpcService& from); - void MergeFrom(const GrpcService& from); - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GrpcService* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "GrpcService"; } - - protected: - explicit GrpcService(::google::protobuf::Arena* arena); - GrpcService(::google::protobuf::Arena* arena, const GrpcService& from); - GrpcService(::google::protobuf::Arena* arena, GrpcService&& from) noexcept - : GrpcService(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - // nested types ---------------------------------------------------- - using EnvoyGrpc = GrpcService_EnvoyGrpc; - using GoogleGrpc = GrpcService_GoogleGrpc; - using HeaderValue = GrpcService_HeaderValue; - - // accessors ------------------------------------------------------- - enum : int { - kInitialMetadataFieldNumber = 5, - kEnvoyGrpcFieldNumber = 1, - kGoogleGrpcFieldNumber = 2, - }; - // repeated .GrpcService.HeaderValue initial_metadata = 5; - int initial_metadata_size() const; - private: - int _internal_initial_metadata_size() const; - - public: - void clear_initial_metadata() ; - ::GrpcService_HeaderValue* mutable_initial_metadata(int index); - ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>* mutable_initial_metadata(); - - private: - const ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>& _internal_initial_metadata() const; - ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>* _internal_mutable_initial_metadata(); - public: - const ::GrpcService_HeaderValue& initial_metadata(int index) const; - ::GrpcService_HeaderValue* add_initial_metadata(); - const ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>& initial_metadata() const; - // .GrpcService.EnvoyGrpc envoy_grpc = 1; - bool has_envoy_grpc() const; - private: - bool _internal_has_envoy_grpc() const; - - public: - void clear_envoy_grpc() ; - const ::GrpcService_EnvoyGrpc& envoy_grpc() const; - PROTOBUF_NODISCARD ::GrpcService_EnvoyGrpc* release_envoy_grpc(); - ::GrpcService_EnvoyGrpc* mutable_envoy_grpc(); - void set_allocated_envoy_grpc(::GrpcService_EnvoyGrpc* value); - void unsafe_arena_set_allocated_envoy_grpc(::GrpcService_EnvoyGrpc* value); - ::GrpcService_EnvoyGrpc* unsafe_arena_release_envoy_grpc(); - - private: - const ::GrpcService_EnvoyGrpc& _internal_envoy_grpc() const; - ::GrpcService_EnvoyGrpc* _internal_mutable_envoy_grpc(); - - public: - // .GrpcService.GoogleGrpc google_grpc = 2; - bool has_google_grpc() const; - private: - bool _internal_has_google_grpc() const; - - public: - void clear_google_grpc() ; - const ::GrpcService_GoogleGrpc& google_grpc() const; - PROTOBUF_NODISCARD ::GrpcService_GoogleGrpc* release_google_grpc(); - ::GrpcService_GoogleGrpc* mutable_google_grpc(); - void set_allocated_google_grpc(::GrpcService_GoogleGrpc* value); - void unsafe_arena_set_allocated_google_grpc(::GrpcService_GoogleGrpc* value); - ::GrpcService_GoogleGrpc* unsafe_arena_release_google_grpc(); - - private: - const ::GrpcService_GoogleGrpc& _internal_google_grpc() const; - ::GrpcService_GoogleGrpc* _internal_mutable_google_grpc(); - - public: - void clear_target_specifier(); - TargetSpecifierCase target_specifier_case() const; - // @@protoc_insertion_point(class_scope:GrpcService) - private: - class _Internal; - void set_has_envoy_grpc(); - void set_has_google_grpc(); - inline bool has_target_specifier() const; - inline void clear_has_target_specifier(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 3, 3, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::GrpcService_HeaderValue > initial_metadata_; - union TargetSpecifierUnion { - constexpr TargetSpecifierUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::GrpcService_EnvoyGrpc* envoy_grpc_; - ::GrpcService_GoogleGrpc* google_grpc_; - } target_specifier_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proxy_5fwasm_5fintrinsics_5flite_2eproto; -}; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// WKT - -// .google.protobuf.Struct struct = 1; -inline bool WKT::has_struct_() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.struct__ != nullptr); - return value; -} -inline const ::google::protobuf::Struct& WKT::_internal_struct_() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.struct__; - return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Struct&>(::google::protobuf::_Struct_default_instance_); -} -inline const ::google::protobuf::Struct& WKT::struct_() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:WKT.struct) - return _internal_struct_(); -} -inline void WKT::unsafe_arena_set_allocated_struct_(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.struct__); - } - _impl_.struct__ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:WKT.struct) -} -inline ::google::protobuf::Struct* WKT::release_struct_() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* released = _impl_.struct__; - _impl_.struct__ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::google::protobuf::Struct* WKT::unsafe_arena_release_struct_() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:WKT.struct) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::google::protobuf::Struct* temp = _impl_.struct__; - _impl_.struct__ = nullptr; - return temp; -} -inline ::google::protobuf::Struct* WKT::_internal_mutable_struct_() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.struct__ == nullptr) { - auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::google::protobuf::Struct>(GetArena()); - _impl_.struct__ = reinterpret_cast<::google::protobuf::Struct*>(p); - } - return _impl_.struct__; -} -inline ::google::protobuf::Struct* WKT::mutable_struct_() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::google::protobuf::Struct* _msg = _internal_mutable_struct_(); - // @@protoc_insertion_point(field_mutable:WKT.struct) - return _msg; -} -inline void WKT::set_allocated_struct_(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.struct__); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.struct__ = reinterpret_cast<::google::protobuf::Struct*>(value); - // @@protoc_insertion_point(field_set_allocated:WKT.struct) -} - -// ------------------------------------------------------------------- - -// DataSource - -// string filename = 1; -inline bool DataSource::has_filename() const { - return specifier_case() == kFilename; -} -inline void DataSource::set_has_filename() { - _impl_._oneof_case_[0] = kFilename; -} -inline void DataSource::clear_filename() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (specifier_case() == kFilename) { - _impl_.specifier_.filename_.Destroy(); - clear_has_specifier(); - } -} -inline const std::string& DataSource::filename() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:DataSource.filename) - return _internal_filename(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void DataSource::set_filename(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (specifier_case() != kFilename) { - clear_specifier(); - - set_has_filename(); - _impl_.specifier_.filename_.InitDefault(); - } - _impl_.specifier_.filename_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:DataSource.filename) -} -inline std::string* DataSource::mutable_filename() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_filename(); - // @@protoc_insertion_point(field_mutable:DataSource.filename) - return _s; -} -inline const std::string& DataSource::_internal_filename() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (specifier_case() != kFilename) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); - } - return _impl_.specifier_.filename_.Get(); -} -inline void DataSource::_internal_set_filename(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (specifier_case() != kFilename) { - clear_specifier(); - - set_has_filename(); - _impl_.specifier_.filename_.InitDefault(); - } - _impl_.specifier_.filename_.Set(value, GetArena()); -} -inline std::string* DataSource::_internal_mutable_filename() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (specifier_case() != kFilename) { - clear_specifier(); - - set_has_filename(); - _impl_.specifier_.filename_.InitDefault(); - } - return _impl_.specifier_.filename_.Mutable( GetArena()); -} -inline std::string* DataSource::release_filename() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:DataSource.filename) - if (specifier_case() != kFilename) { - return nullptr; - } - clear_has_specifier(); - return _impl_.specifier_.filename_.Release(); -} -inline void DataSource::set_allocated_filename(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (has_specifier()) { - clear_specifier(); - } - if (value != nullptr) { - set_has_filename(); - _impl_.specifier_.filename_.InitAllocated(value, GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:DataSource.filename) -} - -// bytes inline_bytes = 2; -inline bool DataSource::has_inline_bytes() const { - return specifier_case() == kInlineBytes; -} -inline void DataSource::set_has_inline_bytes() { - _impl_._oneof_case_[0] = kInlineBytes; -} -inline void DataSource::clear_inline_bytes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (specifier_case() == kInlineBytes) { - _impl_.specifier_.inline_bytes_.Destroy(); - clear_has_specifier(); - } -} -inline const std::string& DataSource::inline_bytes() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:DataSource.inline_bytes) - return _internal_inline_bytes(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void DataSource::set_inline_bytes(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (specifier_case() != kInlineBytes) { - clear_specifier(); - - set_has_inline_bytes(); - _impl_.specifier_.inline_bytes_.InitDefault(); - } - _impl_.specifier_.inline_bytes_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:DataSource.inline_bytes) -} -inline std::string* DataSource::mutable_inline_bytes() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_inline_bytes(); - // @@protoc_insertion_point(field_mutable:DataSource.inline_bytes) - return _s; -} -inline const std::string& DataSource::_internal_inline_bytes() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (specifier_case() != kInlineBytes) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); - } - return _impl_.specifier_.inline_bytes_.Get(); -} -inline void DataSource::_internal_set_inline_bytes(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (specifier_case() != kInlineBytes) { - clear_specifier(); - - set_has_inline_bytes(); - _impl_.specifier_.inline_bytes_.InitDefault(); - } - _impl_.specifier_.inline_bytes_.Set(value, GetArena()); -} -inline std::string* DataSource::_internal_mutable_inline_bytes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (specifier_case() != kInlineBytes) { - clear_specifier(); - - set_has_inline_bytes(); - _impl_.specifier_.inline_bytes_.InitDefault(); - } - return _impl_.specifier_.inline_bytes_.Mutable( GetArena()); -} -inline std::string* DataSource::release_inline_bytes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:DataSource.inline_bytes) - if (specifier_case() != kInlineBytes) { - return nullptr; - } - clear_has_specifier(); - return _impl_.specifier_.inline_bytes_.Release(); -} -inline void DataSource::set_allocated_inline_bytes(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (has_specifier()) { - clear_specifier(); - } - if (value != nullptr) { - set_has_inline_bytes(); - _impl_.specifier_.inline_bytes_.InitAllocated(value, GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:DataSource.inline_bytes) -} - -// string inline_string = 3; -inline bool DataSource::has_inline_string() const { - return specifier_case() == kInlineString; -} -inline void DataSource::set_has_inline_string() { - _impl_._oneof_case_[0] = kInlineString; -} -inline void DataSource::clear_inline_string() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (specifier_case() == kInlineString) { - _impl_.specifier_.inline_string_.Destroy(); - clear_has_specifier(); - } -} -inline const std::string& DataSource::inline_string() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:DataSource.inline_string) - return _internal_inline_string(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void DataSource::set_inline_string(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (specifier_case() != kInlineString) { - clear_specifier(); - - set_has_inline_string(); - _impl_.specifier_.inline_string_.InitDefault(); - } - _impl_.specifier_.inline_string_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:DataSource.inline_string) -} -inline std::string* DataSource::mutable_inline_string() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_inline_string(); - // @@protoc_insertion_point(field_mutable:DataSource.inline_string) - return _s; -} -inline const std::string& DataSource::_internal_inline_string() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (specifier_case() != kInlineString) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); - } - return _impl_.specifier_.inline_string_.Get(); -} -inline void DataSource::_internal_set_inline_string(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (specifier_case() != kInlineString) { - clear_specifier(); - - set_has_inline_string(); - _impl_.specifier_.inline_string_.InitDefault(); - } - _impl_.specifier_.inline_string_.Set(value, GetArena()); -} -inline std::string* DataSource::_internal_mutable_inline_string() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (specifier_case() != kInlineString) { - clear_specifier(); - - set_has_inline_string(); - _impl_.specifier_.inline_string_.InitDefault(); - } - return _impl_.specifier_.inline_string_.Mutable( GetArena()); -} -inline std::string* DataSource::release_inline_string() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:DataSource.inline_string) - if (specifier_case() != kInlineString) { - return nullptr; - } - clear_has_specifier(); - return _impl_.specifier_.inline_string_.Release(); -} -inline void DataSource::set_allocated_inline_string(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (has_specifier()) { - clear_specifier(); - } - if (value != nullptr) { - set_has_inline_string(); - _impl_.specifier_.inline_string_.InitAllocated(value, GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:DataSource.inline_string) -} - -inline bool DataSource::has_specifier() const { - return specifier_case() != SPECIFIER_NOT_SET; -} -inline void DataSource::clear_has_specifier() { - _impl_._oneof_case_[0] = SPECIFIER_NOT_SET; -} -inline DataSource::SpecifierCase DataSource::specifier_case() const { - return DataSource::SpecifierCase(_impl_._oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// Any - -// string type_url = 1; -inline void Any::clear_type_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_url_.ClearToEmpty(); -} -inline const std::string& Any::type_url() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:Any.type_url) - return _internal_type_url(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void Any::set_type_url(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_url_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:Any.type_url) -} -inline std::string* Any::mutable_type_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_type_url(); - // @@protoc_insertion_point(field_mutable:Any.type_url) - return _s; -} -inline const std::string& Any::_internal_type_url() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.type_url_.Get(); -} -inline void Any::_internal_set_type_url(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_url_.Set(value, GetArena()); -} -inline std::string* Any::_internal_mutable_type_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.type_url_.Mutable( GetArena()); -} -inline std::string* Any::release_type_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:Any.type_url) - return _impl_.type_url_.Release(); -} -inline void Any::set_allocated_type_url(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_url_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.type_url_.IsDefault()) { - _impl_.type_url_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:Any.type_url) -} - -// bytes value = 2; -inline void Any::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_.ClearToEmpty(); -} -inline const std::string& Any::value() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:Any.value) - return _internal_value(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void Any::set_value(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:Any.value) -} -inline std::string* Any::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_value(); - // @@protoc_insertion_point(field_mutable:Any.value) - return _s; -} -inline const std::string& Any::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.value_.Get(); -} -inline void Any::_internal_set_value(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_.Set(value, GetArena()); -} -inline std::string* Any::_internal_mutable_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.value_.Mutable( GetArena()); -} -inline std::string* Any::release_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:Any.value) - return _impl_.value_.Release(); -} -inline void Any::set_allocated_value(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.value_.IsDefault()) { - _impl_.value_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:Any.value) -} - -// ------------------------------------------------------------------- - -// GrpcService_EnvoyGrpc - -// string cluster_name = 1; -inline void GrpcService_EnvoyGrpc::clear_cluster_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.cluster_name_.ClearToEmpty(); -} -inline const std::string& GrpcService_EnvoyGrpc::cluster_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.EnvoyGrpc.cluster_name) - return _internal_cluster_name(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_EnvoyGrpc::set_cluster_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.cluster_name_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.EnvoyGrpc.cluster_name) -} -inline std::string* GrpcService_EnvoyGrpc::mutable_cluster_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_cluster_name(); - // @@protoc_insertion_point(field_mutable:GrpcService.EnvoyGrpc.cluster_name) - return _s; -} -inline const std::string& GrpcService_EnvoyGrpc::_internal_cluster_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.cluster_name_.Get(); -} -inline void GrpcService_EnvoyGrpc::_internal_set_cluster_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.cluster_name_.Set(value, GetArena()); -} -inline std::string* GrpcService_EnvoyGrpc::_internal_mutable_cluster_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.cluster_name_.Mutable( GetArena()); -} -inline std::string* GrpcService_EnvoyGrpc::release_cluster_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.EnvoyGrpc.cluster_name) - return _impl_.cluster_name_.Release(); -} -inline void GrpcService_EnvoyGrpc::set_allocated_cluster_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.cluster_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.cluster_name_.IsDefault()) { - _impl_.cluster_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:GrpcService.EnvoyGrpc.cluster_name) -} - -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_SslCredentials - -// .DataSource root_certs = 1; -inline bool GrpcService_GoogleGrpc_SslCredentials::has_root_certs() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.root_certs_ != nullptr); - return value; -} -inline void GrpcService_GoogleGrpc_SslCredentials::clear_root_certs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.root_certs_ != nullptr) _impl_.root_certs_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::_internal_root_certs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::DataSource* p = _impl_.root_certs_; - return p != nullptr ? *p : reinterpret_cast<const ::DataSource&>(::_DataSource_default_instance_); -} -inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::root_certs() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.SslCredentials.root_certs) - return _internal_root_certs(); -} -inline void GrpcService_GoogleGrpc_SslCredentials::unsafe_arena_set_allocated_root_certs(::DataSource* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.root_certs_); - } - _impl_.root_certs_ = reinterpret_cast<::DataSource*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.SslCredentials.root_certs) -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::release_root_certs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::DataSource* released = _impl_.root_certs_; - _impl_.root_certs_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::unsafe_arena_release_root_certs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.SslCredentials.root_certs) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::DataSource* temp = _impl_.root_certs_; - _impl_.root_certs_ = nullptr; - return temp; -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::_internal_mutable_root_certs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.root_certs_ == nullptr) { - auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::DataSource>(GetArena()); - _impl_.root_certs_ = reinterpret_cast<::DataSource*>(p); - } - return _impl_.root_certs_; -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::mutable_root_certs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::DataSource* _msg = _internal_mutable_root_certs(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.SslCredentials.root_certs) - return _msg; -} -inline void GrpcService_GoogleGrpc_SslCredentials::set_allocated_root_certs(::DataSource* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.root_certs_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.root_certs_ = reinterpret_cast<::DataSource*>(value); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.SslCredentials.root_certs) -} - -// .DataSource private_key = 2; -inline bool GrpcService_GoogleGrpc_SslCredentials::has_private_key() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.private_key_ != nullptr); - return value; -} -inline void GrpcService_GoogleGrpc_SslCredentials::clear_private_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.private_key_ != nullptr) _impl_.private_key_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::_internal_private_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::DataSource* p = _impl_.private_key_; - return p != nullptr ? *p : reinterpret_cast<const ::DataSource&>(::_DataSource_default_instance_); -} -inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::private_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.SslCredentials.private_key) - return _internal_private_key(); -} -inline void GrpcService_GoogleGrpc_SslCredentials::unsafe_arena_set_allocated_private_key(::DataSource* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.private_key_); - } - _impl_.private_key_ = reinterpret_cast<::DataSource*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.SslCredentials.private_key) -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::release_private_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::DataSource* released = _impl_.private_key_; - _impl_.private_key_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::unsafe_arena_release_private_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.SslCredentials.private_key) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::DataSource* temp = _impl_.private_key_; - _impl_.private_key_ = nullptr; - return temp; -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::_internal_mutable_private_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.private_key_ == nullptr) { - auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::DataSource>(GetArena()); - _impl_.private_key_ = reinterpret_cast<::DataSource*>(p); - } - return _impl_.private_key_; -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::mutable_private_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000002u; - ::DataSource* _msg = _internal_mutable_private_key(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.SslCredentials.private_key) - return _msg; -} -inline void GrpcService_GoogleGrpc_SslCredentials::set_allocated_private_key(::DataSource* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.private_key_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - - _impl_.private_key_ = reinterpret_cast<::DataSource*>(value); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.SslCredentials.private_key) -} - -// .DataSource cert_chain = 3; -inline bool GrpcService_GoogleGrpc_SslCredentials::has_cert_chain() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.cert_chain_ != nullptr); - return value; -} -inline void GrpcService_GoogleGrpc_SslCredentials::clear_cert_chain() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.cert_chain_ != nullptr) _impl_.cert_chain_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; -} -inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::_internal_cert_chain() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::DataSource* p = _impl_.cert_chain_; - return p != nullptr ? *p : reinterpret_cast<const ::DataSource&>(::_DataSource_default_instance_); -} -inline const ::DataSource& GrpcService_GoogleGrpc_SslCredentials::cert_chain() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.SslCredentials.cert_chain) - return _internal_cert_chain(); -} -inline void GrpcService_GoogleGrpc_SslCredentials::unsafe_arena_set_allocated_cert_chain(::DataSource* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cert_chain_); - } - _impl_.cert_chain_ = reinterpret_cast<::DataSource*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; - } else { - _impl_._has_bits_[0] &= ~0x00000004u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.SslCredentials.cert_chain) -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::release_cert_chain() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::DataSource* released = _impl_.cert_chain_; - _impl_.cert_chain_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::unsafe_arena_release_cert_chain() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.SslCredentials.cert_chain) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::DataSource* temp = _impl_.cert_chain_; - _impl_.cert_chain_ = nullptr; - return temp; -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::_internal_mutable_cert_chain() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.cert_chain_ == nullptr) { - auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::DataSource>(GetArena()); - _impl_.cert_chain_ = reinterpret_cast<::DataSource*>(p); - } - return _impl_.cert_chain_; -} -inline ::DataSource* GrpcService_GoogleGrpc_SslCredentials::mutable_cert_chain() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000004u; - ::DataSource* _msg = _internal_mutable_cert_chain(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.SslCredentials.cert_chain) - return _msg; -} -inline void GrpcService_GoogleGrpc_SslCredentials::set_allocated_cert_chain(::DataSource* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.cert_chain_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000004u; - } else { - _impl_._has_bits_[0] &= ~0x00000004u; - } - - _impl_.cert_chain_ = reinterpret_cast<::DataSource*>(value); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.SslCredentials.cert_chain) -} - -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_GoogleLocalCredentials - -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_Empty - -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_ChannelCredentials - -// .GrpcService.GoogleGrpc.SslCredentials ssl_credentials = 1; -inline bool GrpcService_GoogleGrpc_ChannelCredentials::has_ssl_credentials() const { - return credential_specifier_case() == kSslCredentials; -} -inline bool GrpcService_GoogleGrpc_ChannelCredentials::_internal_has_ssl_credentials() const { - return credential_specifier_case() == kSslCredentials; -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::set_has_ssl_credentials() { - _impl_._oneof_case_[0] = kSslCredentials; -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::clear_ssl_credentials() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() == kSslCredentials) { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.ssl_credentials_; - } - clear_has_credential_specifier(); - } -} -inline ::GrpcService_GoogleGrpc_SslCredentials* GrpcService_GoogleGrpc_ChannelCredentials::release_ssl_credentials() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.ChannelCredentials.ssl_credentials) - if (credential_specifier_case() == kSslCredentials) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.ssl_credentials_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.credential_specifier_.ssl_credentials_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_SslCredentials& GrpcService_GoogleGrpc_ChannelCredentials::_internal_ssl_credentials() const { - return credential_specifier_case() == kSslCredentials ? *_impl_.credential_specifier_.ssl_credentials_ : reinterpret_cast<::GrpcService_GoogleGrpc_SslCredentials&>(::_GrpcService_GoogleGrpc_SslCredentials_default_instance_); -} -inline const ::GrpcService_GoogleGrpc_SslCredentials& GrpcService_GoogleGrpc_ChannelCredentials::ssl_credentials() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.ChannelCredentials.ssl_credentials) - return _internal_ssl_credentials(); -} -inline ::GrpcService_GoogleGrpc_SslCredentials* GrpcService_GoogleGrpc_ChannelCredentials::unsafe_arena_release_ssl_credentials() { - // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.ChannelCredentials.ssl_credentials) - if (credential_specifier_case() == kSslCredentials) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.ssl_credentials_; - _impl_.credential_specifier_.ssl_credentials_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::unsafe_arena_set_allocated_ssl_credentials(::GrpcService_GoogleGrpc_SslCredentials* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_credential_specifier(); - if (value) { - set_has_ssl_credentials(); - _impl_.credential_specifier_.ssl_credentials_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.ChannelCredentials.ssl_credentials) -} -inline ::GrpcService_GoogleGrpc_SslCredentials* GrpcService_GoogleGrpc_ChannelCredentials::_internal_mutable_ssl_credentials() { - if (credential_specifier_case() != kSslCredentials) { - clear_credential_specifier(); - set_has_ssl_credentials(); - _impl_.credential_specifier_.ssl_credentials_ = - ::google::protobuf::MessageLite::DefaultConstruct<::GrpcService_GoogleGrpc_SslCredentials>(GetArena()); - } - return _impl_.credential_specifier_.ssl_credentials_; -} -inline ::GrpcService_GoogleGrpc_SslCredentials* GrpcService_GoogleGrpc_ChannelCredentials::mutable_ssl_credentials() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::GrpcService_GoogleGrpc_SslCredentials* _msg = _internal_mutable_ssl_credentials(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.ChannelCredentials.ssl_credentials) - return _msg; -} - -// .GrpcService.GoogleGrpc.Empty google_default = 2; -inline bool GrpcService_GoogleGrpc_ChannelCredentials::has_google_default() const { - return credential_specifier_case() == kGoogleDefault; -} -inline bool GrpcService_GoogleGrpc_ChannelCredentials::_internal_has_google_default() const { - return credential_specifier_case() == kGoogleDefault; -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::set_has_google_default() { - _impl_._oneof_case_[0] = kGoogleDefault; -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::clear_google_default() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() == kGoogleDefault) { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.google_default_; - } - clear_has_credential_specifier(); - } -} -inline ::GrpcService_GoogleGrpc_Empty* GrpcService_GoogleGrpc_ChannelCredentials::release_google_default() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.ChannelCredentials.google_default) - if (credential_specifier_case() == kGoogleDefault) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.google_default_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.credential_specifier_.google_default_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_Empty& GrpcService_GoogleGrpc_ChannelCredentials::_internal_google_default() const { - return credential_specifier_case() == kGoogleDefault ? *_impl_.credential_specifier_.google_default_ : reinterpret_cast<::GrpcService_GoogleGrpc_Empty&>(::_GrpcService_GoogleGrpc_Empty_default_instance_); -} -inline const ::GrpcService_GoogleGrpc_Empty& GrpcService_GoogleGrpc_ChannelCredentials::google_default() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.ChannelCredentials.google_default) - return _internal_google_default(); -} -inline ::GrpcService_GoogleGrpc_Empty* GrpcService_GoogleGrpc_ChannelCredentials::unsafe_arena_release_google_default() { - // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.ChannelCredentials.google_default) - if (credential_specifier_case() == kGoogleDefault) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.google_default_; - _impl_.credential_specifier_.google_default_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::unsafe_arena_set_allocated_google_default(::GrpcService_GoogleGrpc_Empty* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_credential_specifier(); - if (value) { - set_has_google_default(); - _impl_.credential_specifier_.google_default_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.ChannelCredentials.google_default) -} -inline ::GrpcService_GoogleGrpc_Empty* GrpcService_GoogleGrpc_ChannelCredentials::_internal_mutable_google_default() { - if (credential_specifier_case() != kGoogleDefault) { - clear_credential_specifier(); - set_has_google_default(); - _impl_.credential_specifier_.google_default_ = - ::google::protobuf::MessageLite::DefaultConstruct<::GrpcService_GoogleGrpc_Empty>(GetArena()); - } - return _impl_.credential_specifier_.google_default_; -} -inline ::GrpcService_GoogleGrpc_Empty* GrpcService_GoogleGrpc_ChannelCredentials::mutable_google_default() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::GrpcService_GoogleGrpc_Empty* _msg = _internal_mutable_google_default(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.ChannelCredentials.google_default) - return _msg; -} - -// .GrpcService.GoogleGrpc.GoogleLocalCredentials local_credentials = 3; -inline bool GrpcService_GoogleGrpc_ChannelCredentials::has_local_credentials() const { - return credential_specifier_case() == kLocalCredentials; -} -inline bool GrpcService_GoogleGrpc_ChannelCredentials::_internal_has_local_credentials() const { - return credential_specifier_case() == kLocalCredentials; -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::set_has_local_credentials() { - _impl_._oneof_case_[0] = kLocalCredentials; -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::clear_local_credentials() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() == kLocalCredentials) { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.local_credentials_; - } - clear_has_credential_specifier(); - } -} -inline ::GrpcService_GoogleGrpc_GoogleLocalCredentials* GrpcService_GoogleGrpc_ChannelCredentials::release_local_credentials() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.ChannelCredentials.local_credentials) - if (credential_specifier_case() == kLocalCredentials) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.local_credentials_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.credential_specifier_.local_credentials_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_GoogleLocalCredentials& GrpcService_GoogleGrpc_ChannelCredentials::_internal_local_credentials() const { - return credential_specifier_case() == kLocalCredentials ? *_impl_.credential_specifier_.local_credentials_ : reinterpret_cast<::GrpcService_GoogleGrpc_GoogleLocalCredentials&>(::_GrpcService_GoogleGrpc_GoogleLocalCredentials_default_instance_); -} -inline const ::GrpcService_GoogleGrpc_GoogleLocalCredentials& GrpcService_GoogleGrpc_ChannelCredentials::local_credentials() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.ChannelCredentials.local_credentials) - return _internal_local_credentials(); -} -inline ::GrpcService_GoogleGrpc_GoogleLocalCredentials* GrpcService_GoogleGrpc_ChannelCredentials::unsafe_arena_release_local_credentials() { - // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.ChannelCredentials.local_credentials) - if (credential_specifier_case() == kLocalCredentials) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.local_credentials_; - _impl_.credential_specifier_.local_credentials_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::unsafe_arena_set_allocated_local_credentials(::GrpcService_GoogleGrpc_GoogleLocalCredentials* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_credential_specifier(); - if (value) { - set_has_local_credentials(); - _impl_.credential_specifier_.local_credentials_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.ChannelCredentials.local_credentials) -} -inline ::GrpcService_GoogleGrpc_GoogleLocalCredentials* GrpcService_GoogleGrpc_ChannelCredentials::_internal_mutable_local_credentials() { - if (credential_specifier_case() != kLocalCredentials) { - clear_credential_specifier(); - set_has_local_credentials(); - _impl_.credential_specifier_.local_credentials_ = - ::google::protobuf::MessageLite::DefaultConstruct<::GrpcService_GoogleGrpc_GoogleLocalCredentials>(GetArena()); - } - return _impl_.credential_specifier_.local_credentials_; -} -inline ::GrpcService_GoogleGrpc_GoogleLocalCredentials* GrpcService_GoogleGrpc_ChannelCredentials::mutable_local_credentials() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::GrpcService_GoogleGrpc_GoogleLocalCredentials* _msg = _internal_mutable_local_credentials(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.ChannelCredentials.local_credentials) - return _msg; -} - -inline bool GrpcService_GoogleGrpc_ChannelCredentials::has_credential_specifier() const { - return credential_specifier_case() != CREDENTIAL_SPECIFIER_NOT_SET; -} -inline void GrpcService_GoogleGrpc_ChannelCredentials::clear_has_credential_specifier() { - _impl_._oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; -} -inline GrpcService_GoogleGrpc_ChannelCredentials::CredentialSpecifierCase GrpcService_GoogleGrpc_ChannelCredentials::credential_specifier_case() const { - return GrpcService_GoogleGrpc_ChannelCredentials::CredentialSpecifierCase(_impl_._oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials - -// string json_key = 1; -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::clear_json_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.json_key_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::json_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) - return _internal_json_key(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_json_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.json_key_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::mutable_json_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_json_key(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_internal_json_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.json_key_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_internal_set_json_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.json_key_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_internal_mutable_json_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.json_key_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::release_json_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) - return _impl_.json_key_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_allocated_json_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.json_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.json_key_.IsDefault()) { - _impl_.json_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.json_key) -} - -// uint64 token_lifetime_seconds = 2; -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::clear_token_lifetime_seconds() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.token_lifetime_seconds_ = ::uint64_t{0u}; -} -inline ::uint64_t GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::token_lifetime_seconds() const { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.token_lifetime_seconds) - return _internal_token_lifetime_seconds(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::set_token_lifetime_seconds(::uint64_t value) { - _internal_set_token_lifetime_seconds(value); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials.token_lifetime_seconds) -} -inline ::uint64_t GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_internal_token_lifetime_seconds() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.token_lifetime_seconds_; -} -inline void GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials::_internal_set_token_lifetime_seconds(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.token_lifetime_seconds_ = value; -} - -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials - -// string authorization_token = 1; -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::clear_authorization_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authorization_token_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::authorization_token() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) - return _internal_authorization_token(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authorization_token(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authorization_token_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::mutable_authorization_token() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_authorization_token(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_internal_authorization_token() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.authorization_token_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_internal_set_authorization_token(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authorization_token_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_internal_mutable_authorization_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.authorization_token_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::release_authorization_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) - return _impl_.authorization_token_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_allocated_authorization_token(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authorization_token_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.authorization_token_.IsDefault()) { - _impl_.authorization_token_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authorization_token) -} - -// string authority_selector = 2; -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::clear_authority_selector() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authority_selector_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::authority_selector() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) - return _internal_authority_selector(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_authority_selector(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authority_selector_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::mutable_authority_selector() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_authority_selector(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_internal_authority_selector() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.authority_selector_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_internal_set_authority_selector(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authority_selector_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::_internal_mutable_authority_selector() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.authority_selector_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::release_authority_selector() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) - return _impl_.authority_selector_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials::set_allocated_authority_selector(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.authority_selector_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.authority_selector_.IsDefault()) { - _impl_.authority_selector_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials.authority_selector) -} - -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin - -// string name = 1; -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) - return _internal_name(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.name_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) - return _impl_.name_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.name) -} - -// .google.protobuf.Struct config = 2 [deprecated = true]; -inline bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::has_config() const { - return config_type_case() == kConfig; -} -inline bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_has_config() const { - return config_type_case() == kConfig; -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_has_config() { - _impl_._oneof_case_[0] = kConfig; -} -inline ::google::protobuf::Struct* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::release_config() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) - if (config_type_case() == kConfig) { - clear_has_config_type(); - auto* temp = _impl_.config_type_.config_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.config_type_.config_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::google::protobuf::Struct& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_config() const { - return config_type_case() == kConfig ? *_impl_.config_type_.config_ : reinterpret_cast<::google::protobuf::Struct&>(::google::protobuf::_Struct_default_instance_); -} -inline const ::google::protobuf::Struct& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) - return _internal_config(); -} -inline ::google::protobuf::Struct* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::unsafe_arena_release_config() { - // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) - if (config_type_case() == kConfig) { - clear_has_config_type(); - auto* temp = _impl_.config_type_.config_; - _impl_.config_type_.config_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::unsafe_arena_set_allocated_config(::google::protobuf::Struct* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_config_type(); - if (value) { - set_has_config(); - _impl_.config_type_.config_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) -} -inline ::google::protobuf::Struct* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_mutable_config() { - if (config_type_case() != kConfig) { - clear_config_type(); - set_has_config(); - _impl_.config_type_.config_ = - ::google::protobuf::MessageLite::DefaultConstruct<::google::protobuf::Struct>(GetArena()); - } - return _impl_.config_type_.config_; -} -inline ::google::protobuf::Struct* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::mutable_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_config(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.config) - return _msg; -} - -// .Any typed_config = 3; -inline bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::has_typed_config() const { - return config_type_case() == kTypedConfig; -} -inline bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_has_typed_config() const { - return config_type_case() == kTypedConfig; -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::set_has_typed_config() { - _impl_._oneof_case_[0] = kTypedConfig; -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::clear_typed_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (config_type_case() == kTypedConfig) { - if (GetArena() == nullptr) { - delete _impl_.config_type_.typed_config_; - } - clear_has_config_type(); - } -} -inline ::Any* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::release_typed_config() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) - if (config_type_case() == kTypedConfig) { - clear_has_config_type(); - auto* temp = _impl_.config_type_.typed_config_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.config_type_.typed_config_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::Any& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_typed_config() const { - return config_type_case() == kTypedConfig ? *_impl_.config_type_.typed_config_ : reinterpret_cast<::Any&>(::_Any_default_instance_); -} -inline const ::Any& GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::typed_config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) - return _internal_typed_config(); -} -inline ::Any* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::unsafe_arena_release_typed_config() { - // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) - if (config_type_case() == kTypedConfig) { - clear_has_config_type(); - auto* temp = _impl_.config_type_.typed_config_; - _impl_.config_type_.typed_config_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::unsafe_arena_set_allocated_typed_config(::Any* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_config_type(); - if (value) { - set_has_typed_config(); - _impl_.config_type_.typed_config_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) -} -inline ::Any* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::_internal_mutable_typed_config() { - if (config_type_case() != kTypedConfig) { - clear_config_type(); - set_has_typed_config(); - _impl_.config_type_.typed_config_ = - ::google::protobuf::MessageLite::DefaultConstruct<::Any>(GetArena()); - } - return _impl_.config_type_.typed_config_; -} -inline ::Any* GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::mutable_typed_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::Any* _msg = _internal_mutable_typed_config(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin.typed_config) - return _msg; -} - -inline bool GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::has_config_type() const { - return config_type_case() != CONFIG_TYPE_NOT_SET; -} -inline void GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::clear_has_config_type() { - _impl_._oneof_case_[0] = CONFIG_TYPE_NOT_SET; -} -inline GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::ConfigTypeCase GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::config_type_case() const { - return GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin::ConfigTypeCase(_impl_._oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_CallCredentials_StsService - -// string token_exchange_service_uri = 1; -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_token_exchange_service_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.token_exchange_service_uri_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::token_exchange_service_uri() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) - return _internal_token_exchange_service_uri(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_token_exchange_service_uri(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.token_exchange_service_uri_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_token_exchange_service_uri() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_token_exchange_service_uri(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_token_exchange_service_uri() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.token_exchange_service_uri_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_token_exchange_service_uri(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.token_exchange_service_uri_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_token_exchange_service_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.token_exchange_service_uri_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_token_exchange_service_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.token_exchange_service_uri) - return _impl_.token_exchange_service_uri_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_token_exchange_service_uri(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.token_exchange_service_uri_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.token_exchange_service_uri_.IsDefault()) { - _impl_.token_exchange_service_uri_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@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() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::resource() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) - return _internal_resource(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_resource(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_resource() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_resource(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_resource() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.resource_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_resource(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_resource() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.resource_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_resource() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) - return _impl_.resource_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_resource(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.resource_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.resource_.IsDefault()) { - _impl_.resource_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.resource) -} - -// string audience = 3; -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_audience() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.audience_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::audience() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) - return _internal_audience(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_audience(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.audience_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_audience() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_audience(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_audience() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.audience_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_audience(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.audience_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_audience() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.audience_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_audience() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) - return _impl_.audience_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_audience(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.audience_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.audience_.IsDefault()) { - _impl_.audience_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.audience) -} - -// string scope = 4; -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::clear_scope() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.scope_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::scope() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) - return _internal_scope(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_scope(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.scope_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_scope() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_scope(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_scope() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.scope_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_scope(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.scope_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_scope() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.scope_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_scope() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.scope) - return _impl_.scope_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_scope(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.scope_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.scope_.IsDefault()) { - _impl_.scope_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@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() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.requested_token_type_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::requested_token_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) - return _internal_requested_token_type(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_requested_token_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.requested_token_type_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_requested_token_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_requested_token_type(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_requested_token_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.requested_token_type_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_requested_token_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.requested_token_type_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_requested_token_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.requested_token_type_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_requested_token_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.requested_token_type) - return _impl_.requested_token_type_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_requested_token_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.requested_token_type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.requested_token_type_.IsDefault()) { - _impl_.requested_token_type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@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() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.subject_token_path_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::subject_token_path() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) - return _internal_subject_token_path(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_path(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.subject_token_path_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_subject_token_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_subject_token_path(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_subject_token_path() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.subject_token_path_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_subject_token_path(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.subject_token_path_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_subject_token_path() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.subject_token_path_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_subject_token_path() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_path) - return _impl_.subject_token_path_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_subject_token_path(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.subject_token_path_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.subject_token_path_.IsDefault()) { - _impl_.subject_token_path_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@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() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.subject_token_type_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::subject_token_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) - return _internal_subject_token_type(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_subject_token_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.subject_token_type_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_subject_token_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_subject_token_type(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_subject_token_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.subject_token_type_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_subject_token_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.subject_token_type_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_subject_token_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.subject_token_type_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_subject_token_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.subject_token_type) - return _impl_.subject_token_type_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_subject_token_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.subject_token_type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.subject_token_type_.IsDefault()) { - _impl_.subject_token_type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@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() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.actor_token_path_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::actor_token_path() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) - return _internal_actor_token_path(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_path(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.actor_token_path_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_actor_token_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_actor_token_path(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_actor_token_path() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.actor_token_path_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_actor_token_path(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.actor_token_path_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_actor_token_path() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.actor_token_path_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_actor_token_path() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_path) - return _impl_.actor_token_path_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_actor_token_path(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.actor_token_path_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.actor_token_path_.IsDefault()) { - _impl_.actor_token_path_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@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() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.actor_token_type_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::actor_token_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) - return _internal_actor_token_type(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials_StsService::set_actor_token_type(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.actor_token_type_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::mutable_actor_token_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_actor_token_type(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_actor_token_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.actor_token_type_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_set_actor_token_type(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.actor_token_type_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::_internal_mutable_actor_token_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.actor_token_type_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials_StsService::release_actor_token_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) - return _impl_.actor_token_type_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials_StsService::set_allocated_actor_token_type(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.actor_token_type_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.actor_token_type_.IsDefault()) { - _impl_.actor_token_type_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.StsService.actor_token_type) -} - -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc_CallCredentials - -// string access_token = 1; -inline bool GrpcService_GoogleGrpc_CallCredentials::has_access_token() const { - return credential_specifier_case() == kAccessToken; -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_has_access_token() { - _impl_._oneof_case_[0] = kAccessToken; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_access_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() == kAccessToken) { - _impl_.credential_specifier_.access_token_.Destroy(); - clear_has_credential_specifier(); - } -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials::access_token() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.access_token) - return _internal_access_token(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials::set_access_token(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() != kAccessToken) { - clear_credential_specifier(); - - set_has_access_token(); - _impl_.credential_specifier_.access_token_.InitDefault(); - } - _impl_.credential_specifier_.access_token_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.access_token) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials::mutable_access_token() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_access_token(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.access_token) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials::_internal_access_token() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (credential_specifier_case() != kAccessToken) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); - } - return _impl_.credential_specifier_.access_token_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials::_internal_set_access_token(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() != kAccessToken) { - clear_credential_specifier(); - - set_has_access_token(); - _impl_.credential_specifier_.access_token_.InitDefault(); - } - _impl_.credential_specifier_.access_token_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_access_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() != kAccessToken) { - clear_credential_specifier(); - - set_has_access_token(); - _impl_.credential_specifier_.access_token_.InitDefault(); - } - return _impl_.credential_specifier_.access_token_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials::release_access_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.access_token) - if (credential_specifier_case() != kAccessToken) { - return nullptr; - } - clear_has_credential_specifier(); - return _impl_.credential_specifier_.access_token_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_allocated_access_token(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (has_credential_specifier()) { - clear_credential_specifier(); - } - if (value != nullptr) { - set_has_access_token(); - _impl_.credential_specifier_.access_token_.InitAllocated(value, GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.access_token) -} - -// .GrpcService.GoogleGrpc.Empty google_compute_engine = 2; -inline bool GrpcService_GoogleGrpc_CallCredentials::has_google_compute_engine() const { - return credential_specifier_case() == kGoogleComputeEngine; -} -inline bool GrpcService_GoogleGrpc_CallCredentials::_internal_has_google_compute_engine() const { - return credential_specifier_case() == kGoogleComputeEngine; -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_has_google_compute_engine() { - _impl_._oneof_case_[0] = kGoogleComputeEngine; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_google_compute_engine() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() == kGoogleComputeEngine) { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.google_compute_engine_; - } - clear_has_credential_specifier(); - } -} -inline ::GrpcService_GoogleGrpc_Empty* GrpcService_GoogleGrpc_CallCredentials::release_google_compute_engine() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) - if (credential_specifier_case() == kGoogleComputeEngine) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.google_compute_engine_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.credential_specifier_.google_compute_engine_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_Empty& GrpcService_GoogleGrpc_CallCredentials::_internal_google_compute_engine() const { - return credential_specifier_case() == kGoogleComputeEngine ? *_impl_.credential_specifier_.google_compute_engine_ : reinterpret_cast<::GrpcService_GoogleGrpc_Empty&>(::_GrpcService_GoogleGrpc_Empty_default_instance_); -} -inline const ::GrpcService_GoogleGrpc_Empty& GrpcService_GoogleGrpc_CallCredentials::google_compute_engine() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) - return _internal_google_compute_engine(); -} -inline ::GrpcService_GoogleGrpc_Empty* GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_release_google_compute_engine() { - // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) - if (credential_specifier_case() == kGoogleComputeEngine) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.google_compute_engine_; - _impl_.credential_specifier_.google_compute_engine_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_set_allocated_google_compute_engine(::GrpcService_GoogleGrpc_Empty* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_credential_specifier(); - if (value) { - set_has_google_compute_engine(); - _impl_.credential_specifier_.google_compute_engine_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) -} -inline ::GrpcService_GoogleGrpc_Empty* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_google_compute_engine() { - if (credential_specifier_case() != kGoogleComputeEngine) { - clear_credential_specifier(); - set_has_google_compute_engine(); - _impl_.credential_specifier_.google_compute_engine_ = - ::google::protobuf::MessageLite::DefaultConstruct<::GrpcService_GoogleGrpc_Empty>(GetArena()); - } - return _impl_.credential_specifier_.google_compute_engine_; -} -inline ::GrpcService_GoogleGrpc_Empty* GrpcService_GoogleGrpc_CallCredentials::mutable_google_compute_engine() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::GrpcService_GoogleGrpc_Empty* _msg = _internal_mutable_google_compute_engine(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.google_compute_engine) - return _msg; -} - -// string google_refresh_token = 3; -inline bool GrpcService_GoogleGrpc_CallCredentials::has_google_refresh_token() const { - return credential_specifier_case() == kGoogleRefreshToken; -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_has_google_refresh_token() { - _impl_._oneof_case_[0] = kGoogleRefreshToken; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_google_refresh_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() == kGoogleRefreshToken) { - _impl_.credential_specifier_.google_refresh_token_.Destroy(); - clear_has_credential_specifier(); - } -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials::google_refresh_token() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) - return _internal_google_refresh_token(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc_CallCredentials::set_google_refresh_token(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() != kGoogleRefreshToken) { - clear_credential_specifier(); - - set_has_google_refresh_token(); - _impl_.credential_specifier_.google_refresh_token_.InitDefault(); - } - _impl_.credential_specifier_.google_refresh_token_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials::mutable_google_refresh_token() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_google_refresh_token(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc_CallCredentials::_internal_google_refresh_token() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (credential_specifier_case() != kGoogleRefreshToken) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); - } - return _impl_.credential_specifier_.google_refresh_token_.Get(); -} -inline void GrpcService_GoogleGrpc_CallCredentials::_internal_set_google_refresh_token(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() != kGoogleRefreshToken) { - clear_credential_specifier(); - - set_has_google_refresh_token(); - _impl_.credential_specifier_.google_refresh_token_.InitDefault(); - } - _impl_.credential_specifier_.google_refresh_token_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_google_refresh_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() != kGoogleRefreshToken) { - clear_credential_specifier(); - - set_has_google_refresh_token(); - _impl_.credential_specifier_.google_refresh_token_.InitDefault(); - } - return _impl_.credential_specifier_.google_refresh_token_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc_CallCredentials::release_google_refresh_token() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) - if (credential_specifier_case() != kGoogleRefreshToken) { - return nullptr; - } - clear_has_credential_specifier(); - return _impl_.credential_specifier_.google_refresh_token_.Release(); -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_allocated_google_refresh_token(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (has_credential_specifier()) { - clear_credential_specifier(); - } - if (value != nullptr) { - set_has_google_refresh_token(); - _impl_.credential_specifier_.google_refresh_token_.InitAllocated(value, GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.CallCredentials.google_refresh_token) -} - -// .GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; -inline bool GrpcService_GoogleGrpc_CallCredentials::has_service_account_jwt_access() const { - return credential_specifier_case() == kServiceAccountJwtAccess; -} -inline bool GrpcService_GoogleGrpc_CallCredentials::_internal_has_service_account_jwt_access() const { - return credential_specifier_case() == kServiceAccountJwtAccess; -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_has_service_account_jwt_access() { - _impl_._oneof_case_[0] = kServiceAccountJwtAccess; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_service_account_jwt_access() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() == kServiceAccountJwtAccess) { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.service_account_jwt_access_; - } - clear_has_credential_specifier(); - } -} -inline ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* GrpcService_GoogleGrpc_CallCredentials::release_service_account_jwt_access() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.service_account_jwt_access) - if (credential_specifier_case() == kServiceAccountJwtAccess) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.service_account_jwt_access_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.credential_specifier_.service_account_jwt_access_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& GrpcService_GoogleGrpc_CallCredentials::_internal_service_account_jwt_access() const { - return credential_specifier_case() == kServiceAccountJwtAccess ? *_impl_.credential_specifier_.service_account_jwt_access_ : reinterpret_cast<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials&>(::_GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials_default_instance_); -} -inline const ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials& GrpcService_GoogleGrpc_CallCredentials::service_account_jwt_access() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.service_account_jwt_access) - return _internal_service_account_jwt_access(); -} -inline ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_release_service_account_jwt_access() { - // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.service_account_jwt_access) - if (credential_specifier_case() == kServiceAccountJwtAccess) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.service_account_jwt_access_; - _impl_.credential_specifier_.service_account_jwt_access_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_set_allocated_service_account_jwt_access(::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_credential_specifier(); - if (value) { - set_has_service_account_jwt_access(); - _impl_.credential_specifier_.service_account_jwt_access_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.service_account_jwt_access) -} -inline ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_service_account_jwt_access() { - if (credential_specifier_case() != kServiceAccountJwtAccess) { - clear_credential_specifier(); - set_has_service_account_jwt_access(); - _impl_.credential_specifier_.service_account_jwt_access_ = - ::google::protobuf::MessageLite::DefaultConstruct<::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials>(GetArena()); - } - return _impl_.credential_specifier_.service_account_jwt_access_; -} -inline ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* GrpcService_GoogleGrpc_CallCredentials::mutable_service_account_jwt_access() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::GrpcService_GoogleGrpc_CallCredentials_ServiceAccountJWTAccessCredentials* _msg = _internal_mutable_service_account_jwt_access(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.service_account_jwt_access) - return _msg; -} - -// .GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials google_iam = 5; -inline bool GrpcService_GoogleGrpc_CallCredentials::has_google_iam() const { - return credential_specifier_case() == kGoogleIam; -} -inline bool GrpcService_GoogleGrpc_CallCredentials::_internal_has_google_iam() const { - return credential_specifier_case() == kGoogleIam; -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_has_google_iam() { - _impl_._oneof_case_[0] = kGoogleIam; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_google_iam() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() == kGoogleIam) { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.google_iam_; - } - clear_has_credential_specifier(); - } -} -inline ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* GrpcService_GoogleGrpc_CallCredentials::release_google_iam() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.google_iam) - if (credential_specifier_case() == kGoogleIam) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.google_iam_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.credential_specifier_.google_iam_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& GrpcService_GoogleGrpc_CallCredentials::_internal_google_iam() const { - return credential_specifier_case() == kGoogleIam ? *_impl_.credential_specifier_.google_iam_ : reinterpret_cast<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials&>(::_GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials_default_instance_); -} -inline const ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials& GrpcService_GoogleGrpc_CallCredentials::google_iam() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.google_iam) - return _internal_google_iam(); -} -inline ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_release_google_iam() { - // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.google_iam) - if (credential_specifier_case() == kGoogleIam) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.google_iam_; - _impl_.credential_specifier_.google_iam_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_set_allocated_google_iam(::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_credential_specifier(); - if (value) { - set_has_google_iam(); - _impl_.credential_specifier_.google_iam_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.google_iam) -} -inline ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_google_iam() { - if (credential_specifier_case() != kGoogleIam) { - clear_credential_specifier(); - set_has_google_iam(); - _impl_.credential_specifier_.google_iam_ = - ::google::protobuf::MessageLite::DefaultConstruct<::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials>(GetArena()); - } - return _impl_.credential_specifier_.google_iam_; -} -inline ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* GrpcService_GoogleGrpc_CallCredentials::mutable_google_iam() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::GrpcService_GoogleGrpc_CallCredentials_GoogleIAMCredentials* _msg = _internal_mutable_google_iam(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.google_iam) - return _msg; -} - -// .GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin from_plugin = 6; -inline bool GrpcService_GoogleGrpc_CallCredentials::has_from_plugin() const { - return credential_specifier_case() == kFromPlugin; -} -inline bool GrpcService_GoogleGrpc_CallCredentials::_internal_has_from_plugin() const { - return credential_specifier_case() == kFromPlugin; -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_has_from_plugin() { - _impl_._oneof_case_[0] = kFromPlugin; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_from_plugin() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() == kFromPlugin) { - if (GetArena() == nullptr) { - delete _impl_.credential_specifier_.from_plugin_; - } - clear_has_credential_specifier(); - } -} -inline ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* GrpcService_GoogleGrpc_CallCredentials::release_from_plugin() { - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.CallCredentials.from_plugin) - if (credential_specifier_case() == kFromPlugin) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.from_plugin_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.credential_specifier_.from_plugin_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& GrpcService_GoogleGrpc_CallCredentials::_internal_from_plugin() const { - return credential_specifier_case() == kFromPlugin ? *_impl_.credential_specifier_.from_plugin_ : reinterpret_cast<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin&>(::_GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_default_instance_); -} -inline const ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin& GrpcService_GoogleGrpc_CallCredentials::from_plugin() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.from_plugin) - return _internal_from_plugin(); -} -inline ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_release_from_plugin() { - // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.from_plugin) - if (credential_specifier_case() == kFromPlugin) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.from_plugin_; - _impl_.credential_specifier_.from_plugin_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_set_allocated_from_plugin(::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_credential_specifier(); - if (value) { - set_has_from_plugin(); - _impl_.credential_specifier_.from_plugin_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.from_plugin) -} -inline ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_from_plugin() { - if (credential_specifier_case() != kFromPlugin) { - clear_credential_specifier(); - set_has_from_plugin(); - _impl_.credential_specifier_.from_plugin_ = - ::google::protobuf::MessageLite::DefaultConstruct<::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin>(GetArena()); - } - return _impl_.credential_specifier_.from_plugin_; -} -inline ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* GrpcService_GoogleGrpc_CallCredentials::mutable_from_plugin() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin* _msg = _internal_mutable_from_plugin(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.from_plugin) - return _msg; -} - -// .GrpcService.GoogleGrpc.CallCredentials.StsService sts_service = 7; -inline bool GrpcService_GoogleGrpc_CallCredentials::has_sts_service() const { - return credential_specifier_case() == kStsService; -} -inline bool GrpcService_GoogleGrpc_CallCredentials::_internal_has_sts_service() const { - return credential_specifier_case() == kStsService; -} -inline void GrpcService_GoogleGrpc_CallCredentials::set_has_sts_service() { - _impl_._oneof_case_[0] = kStsService; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_sts_service() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (credential_specifier_case() == kStsService) { - if (GetArena() == nullptr) { - delete _impl_.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 (credential_specifier_case() == kStsService) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.sts_service_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.credential_specifier_.sts_service_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc_CallCredentials_StsService& GrpcService_GoogleGrpc_CallCredentials::_internal_sts_service() const { - return credential_specifier_case() == kStsService ? *_impl_.credential_specifier_.sts_service_ : reinterpret_cast<::GrpcService_GoogleGrpc_CallCredentials_StsService&>(::_GrpcService_GoogleGrpc_CallCredentials_StsService_default_instance_); -} -inline const ::GrpcService_GoogleGrpc_CallCredentials_StsService& GrpcService_GoogleGrpc_CallCredentials::sts_service() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.CallCredentials.sts_service) - return _internal_sts_service(); -} -inline ::GrpcService_GoogleGrpc_CallCredentials_StsService* GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_release_sts_service() { - // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.GoogleGrpc.CallCredentials.sts_service) - if (credential_specifier_case() == kStsService) { - clear_has_credential_specifier(); - auto* temp = _impl_.credential_specifier_.sts_service_; - _impl_.credential_specifier_.sts_service_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void GrpcService_GoogleGrpc_CallCredentials::unsafe_arena_set_allocated_sts_service(::GrpcService_GoogleGrpc_CallCredentials_StsService* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_credential_specifier(); - if (value) { - set_has_sts_service(); - _impl_.credential_specifier_.sts_service_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.CallCredentials.sts_service) -} -inline ::GrpcService_GoogleGrpc_CallCredentials_StsService* GrpcService_GoogleGrpc_CallCredentials::_internal_mutable_sts_service() { - if (credential_specifier_case() != kStsService) { - clear_credential_specifier(); - set_has_sts_service(); - _impl_.credential_specifier_.sts_service_ = - ::google::protobuf::MessageLite::DefaultConstruct<::GrpcService_GoogleGrpc_CallCredentials_StsService>(GetArena()); - } - return _impl_.credential_specifier_.sts_service_; -} -inline ::GrpcService_GoogleGrpc_CallCredentials_StsService* GrpcService_GoogleGrpc_CallCredentials::mutable_sts_service() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::GrpcService_GoogleGrpc_CallCredentials_StsService* _msg = _internal_mutable_sts_service(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.CallCredentials.sts_service) - return _msg; -} - -inline bool GrpcService_GoogleGrpc_CallCredentials::has_credential_specifier() const { - return credential_specifier_case() != CREDENTIAL_SPECIFIER_NOT_SET; -} -inline void GrpcService_GoogleGrpc_CallCredentials::clear_has_credential_specifier() { - _impl_._oneof_case_[0] = CREDENTIAL_SPECIFIER_NOT_SET; -} -inline GrpcService_GoogleGrpc_CallCredentials::CredentialSpecifierCase GrpcService_GoogleGrpc_CallCredentials::credential_specifier_case() const { - return GrpcService_GoogleGrpc_CallCredentials::CredentialSpecifierCase(_impl_._oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// GrpcService_GoogleGrpc - -// string target_uri = 1; -inline void GrpcService_GoogleGrpc::clear_target_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.target_uri_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc::target_uri() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.target_uri) - return _internal_target_uri(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc::set_target_uri(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.target_uri_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.target_uri) -} -inline std::string* GrpcService_GoogleGrpc::mutable_target_uri() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_target_uri(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.target_uri) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc::_internal_target_uri() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.target_uri_.Get(); -} -inline void GrpcService_GoogleGrpc::_internal_set_target_uri(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.target_uri_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc::_internal_mutable_target_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.target_uri_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc::release_target_uri() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.target_uri) - return _impl_.target_uri_.Release(); -} -inline void GrpcService_GoogleGrpc::set_allocated_target_uri(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.target_uri_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.target_uri_.IsDefault()) { - _impl_.target_uri_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.target_uri) -} - -// .GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2; -inline bool GrpcService_GoogleGrpc::has_channel_credentials() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.channel_credentials_ != nullptr); - return value; -} -inline void GrpcService_GoogleGrpc::clear_channel_credentials() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.channel_credentials_ != nullptr) _impl_.channel_credentials_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::GrpcService_GoogleGrpc_ChannelCredentials& GrpcService_GoogleGrpc::_internal_channel_credentials() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::GrpcService_GoogleGrpc_ChannelCredentials* p = _impl_.channel_credentials_; - return p != nullptr ? *p : reinterpret_cast<const ::GrpcService_GoogleGrpc_ChannelCredentials&>(::_GrpcService_GoogleGrpc_ChannelCredentials_default_instance_); -} -inline const ::GrpcService_GoogleGrpc_ChannelCredentials& GrpcService_GoogleGrpc::channel_credentials() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.channel_credentials) - return _internal_channel_credentials(); -} -inline void GrpcService_GoogleGrpc::unsafe_arena_set_allocated_channel_credentials(::GrpcService_GoogleGrpc_ChannelCredentials* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.channel_credentials_); - } - _impl_.channel_credentials_ = reinterpret_cast<::GrpcService_GoogleGrpc_ChannelCredentials*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.channel_credentials) -} -inline ::GrpcService_GoogleGrpc_ChannelCredentials* GrpcService_GoogleGrpc::release_channel_credentials() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::GrpcService_GoogleGrpc_ChannelCredentials* released = _impl_.channel_credentials_; - _impl_.channel_credentials_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::GrpcService_GoogleGrpc_ChannelCredentials* GrpcService_GoogleGrpc::unsafe_arena_release_channel_credentials() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.channel_credentials) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::GrpcService_GoogleGrpc_ChannelCredentials* temp = _impl_.channel_credentials_; - _impl_.channel_credentials_ = nullptr; - return temp; -} -inline ::GrpcService_GoogleGrpc_ChannelCredentials* GrpcService_GoogleGrpc::_internal_mutable_channel_credentials() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.channel_credentials_ == nullptr) { - auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::GrpcService_GoogleGrpc_ChannelCredentials>(GetArena()); - _impl_.channel_credentials_ = reinterpret_cast<::GrpcService_GoogleGrpc_ChannelCredentials*>(p); - } - return _impl_.channel_credentials_; -} -inline ::GrpcService_GoogleGrpc_ChannelCredentials* GrpcService_GoogleGrpc::mutable_channel_credentials() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::GrpcService_GoogleGrpc_ChannelCredentials* _msg = _internal_mutable_channel_credentials(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.channel_credentials) - return _msg; -} -inline void GrpcService_GoogleGrpc::set_allocated_channel_credentials(::GrpcService_GoogleGrpc_ChannelCredentials* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.channel_credentials_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.channel_credentials_ = reinterpret_cast<::GrpcService_GoogleGrpc_ChannelCredentials*>(value); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.channel_credentials) -} - -// repeated .GrpcService.GoogleGrpc.CallCredentials call_credentials = 3; -inline int GrpcService_GoogleGrpc::_internal_call_credentials_size() const { - return _internal_call_credentials().size(); -} -inline int GrpcService_GoogleGrpc::call_credentials_size() const { - return _internal_call_credentials_size(); -} -inline void GrpcService_GoogleGrpc::clear_call_credentials() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.call_credentials_.Clear(); -} -inline ::GrpcService_GoogleGrpc_CallCredentials* GrpcService_GoogleGrpc::mutable_call_credentials(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.call_credentials) - return _internal_mutable_call_credentials()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>* GrpcService_GoogleGrpc::mutable_call_credentials() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:GrpcService.GoogleGrpc.call_credentials) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_call_credentials(); -} -inline const ::GrpcService_GoogleGrpc_CallCredentials& GrpcService_GoogleGrpc::call_credentials(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.call_credentials) - return _internal_call_credentials().Get(index); -} -inline ::GrpcService_GoogleGrpc_CallCredentials* GrpcService_GoogleGrpc::add_call_credentials() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::GrpcService_GoogleGrpc_CallCredentials* _add = _internal_mutable_call_credentials()->Add(); - // @@protoc_insertion_point(field_add:GrpcService.GoogleGrpc.call_credentials) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>& GrpcService_GoogleGrpc::call_credentials() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:GrpcService.GoogleGrpc.call_credentials) - return _internal_call_credentials(); -} -inline const ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>& -GrpcService_GoogleGrpc::_internal_call_credentials() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.call_credentials_; -} -inline ::google::protobuf::RepeatedPtrField<::GrpcService_GoogleGrpc_CallCredentials>* -GrpcService_GoogleGrpc::_internal_mutable_call_credentials() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.call_credentials_; -} - -// string stat_prefix = 4; -inline void GrpcService_GoogleGrpc::clear_stat_prefix() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.stat_prefix_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc::stat_prefix() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.stat_prefix) - return _internal_stat_prefix(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc::set_stat_prefix(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.stat_prefix_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.stat_prefix) -} -inline std::string* GrpcService_GoogleGrpc::mutable_stat_prefix() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_stat_prefix(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.stat_prefix) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc::_internal_stat_prefix() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.stat_prefix_.Get(); -} -inline void GrpcService_GoogleGrpc::_internal_set_stat_prefix(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.stat_prefix_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc::_internal_mutable_stat_prefix() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.stat_prefix_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc::release_stat_prefix() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.stat_prefix) - return _impl_.stat_prefix_.Release(); -} -inline void GrpcService_GoogleGrpc::set_allocated_stat_prefix(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.stat_prefix_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.stat_prefix_.IsDefault()) { - _impl_.stat_prefix_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.stat_prefix) -} - -// string credentials_factory_name = 5; -inline void GrpcService_GoogleGrpc::clear_credentials_factory_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.credentials_factory_name_.ClearToEmpty(); -} -inline const std::string& GrpcService_GoogleGrpc::credentials_factory_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.credentials_factory_name) - return _internal_credentials_factory_name(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_GoogleGrpc::set_credentials_factory_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.credentials_factory_name_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.GoogleGrpc.credentials_factory_name) -} -inline std::string* GrpcService_GoogleGrpc::mutable_credentials_factory_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_credentials_factory_name(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.credentials_factory_name) - return _s; -} -inline const std::string& GrpcService_GoogleGrpc::_internal_credentials_factory_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.credentials_factory_name_.Get(); -} -inline void GrpcService_GoogleGrpc::_internal_set_credentials_factory_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.credentials_factory_name_.Set(value, GetArena()); -} -inline std::string* GrpcService_GoogleGrpc::_internal_mutable_credentials_factory_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.credentials_factory_name_.Mutable( GetArena()); -} -inline std::string* GrpcService_GoogleGrpc::release_credentials_factory_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.credentials_factory_name) - return _impl_.credentials_factory_name_.Release(); -} -inline void GrpcService_GoogleGrpc::set_allocated_credentials_factory_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.credentials_factory_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.credentials_factory_name_.IsDefault()) { - _impl_.credentials_factory_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.credentials_factory_name) -} - -// .google.protobuf.Struct config = 6; -inline bool GrpcService_GoogleGrpc::has_config() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.config_ != nullptr); - return value; -} -inline const ::google::protobuf::Struct& GrpcService_GoogleGrpc::_internal_config() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Struct* p = _impl_.config_; - return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Struct&>(::google::protobuf::_Struct_default_instance_); -} -inline const ::google::protobuf::Struct& GrpcService_GoogleGrpc::config() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.GoogleGrpc.config) - return _internal_config(); -} -inline void GrpcService_GoogleGrpc::unsafe_arena_set_allocated_config(::google::protobuf::Struct* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.config_); - } - _impl_.config_ = reinterpret_cast<::google::protobuf::Struct*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.GoogleGrpc.config) -} -inline ::google::protobuf::Struct* GrpcService_GoogleGrpc::release_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* released = _impl_.config_; - _impl_.config_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::google::protobuf::Struct* GrpcService_GoogleGrpc::unsafe_arena_release_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.GoogleGrpc.config) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Struct* temp = _impl_.config_; - _impl_.config_ = nullptr; - return temp; -} -inline ::google::protobuf::Struct* GrpcService_GoogleGrpc::_internal_mutable_config() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.config_ == nullptr) { - auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::google::protobuf::Struct>(GetArena()); - _impl_.config_ = reinterpret_cast<::google::protobuf::Struct*>(p); - } - return _impl_.config_; -} -inline ::google::protobuf::Struct* GrpcService_GoogleGrpc::mutable_config() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000002u; - ::google::protobuf::Struct* _msg = _internal_mutable_config(); - // @@protoc_insertion_point(field_mutable:GrpcService.GoogleGrpc.config) - return _msg; -} -inline void GrpcService_GoogleGrpc::set_allocated_config(::google::protobuf::Struct* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.config_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - - _impl_.config_ = reinterpret_cast<::google::protobuf::Struct*>(value); - // @@protoc_insertion_point(field_set_allocated:GrpcService.GoogleGrpc.config) -} - -// ------------------------------------------------------------------- - -// GrpcService_HeaderValue - -// string key = 1; -inline void GrpcService_HeaderValue::clear_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.key_.ClearToEmpty(); -} -inline const std::string& GrpcService_HeaderValue::key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.HeaderValue.key) - return _internal_key(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_HeaderValue::set_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.key_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.HeaderValue.key) -} -inline std::string* GrpcService_HeaderValue::mutable_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_key(); - // @@protoc_insertion_point(field_mutable:GrpcService.HeaderValue.key) - return _s; -} -inline const std::string& GrpcService_HeaderValue::_internal_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.key_.Get(); -} -inline void GrpcService_HeaderValue::_internal_set_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.key_.Set(value, GetArena()); -} -inline std::string* GrpcService_HeaderValue::_internal_mutable_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.key_.Mutable( GetArena()); -} -inline std::string* GrpcService_HeaderValue::release_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.HeaderValue.key) - return _impl_.key_.Release(); -} -inline void GrpcService_HeaderValue::set_allocated_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.key_.IsDefault()) { - _impl_.key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:GrpcService.HeaderValue.key) -} - -// string value = 2; -inline void GrpcService_HeaderValue::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_.ClearToEmpty(); -} -inline const std::string& GrpcService_HeaderValue::value() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.HeaderValue.value) - return _internal_value(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void GrpcService_HeaderValue::set_value(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:GrpcService.HeaderValue.value) -} -inline std::string* GrpcService_HeaderValue::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_value(); - // @@protoc_insertion_point(field_mutable:GrpcService.HeaderValue.value) - return _s; -} -inline const std::string& GrpcService_HeaderValue::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.value_.Get(); -} -inline void GrpcService_HeaderValue::_internal_set_value(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_.Set(value, GetArena()); -} -inline std::string* GrpcService_HeaderValue::_internal_mutable_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.value_.Mutable( GetArena()); -} -inline std::string* GrpcService_HeaderValue::release_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:GrpcService.HeaderValue.value) - return _impl_.value_.Release(); -} -inline void GrpcService_HeaderValue::set_allocated_value(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.value_.IsDefault()) { - _impl_.value_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:GrpcService.HeaderValue.value) -} - -// ------------------------------------------------------------------- - -// GrpcService - -// .GrpcService.EnvoyGrpc envoy_grpc = 1; -inline bool GrpcService::has_envoy_grpc() const { - return target_specifier_case() == kEnvoyGrpc; -} -inline bool GrpcService::_internal_has_envoy_grpc() const { - return target_specifier_case() == kEnvoyGrpc; -} -inline void GrpcService::set_has_envoy_grpc() { - _impl_._oneof_case_[0] = kEnvoyGrpc; -} -inline void GrpcService::clear_envoy_grpc() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (target_specifier_case() == kEnvoyGrpc) { - if (GetArena() == nullptr) { - delete _impl_.target_specifier_.envoy_grpc_; - } - clear_has_target_specifier(); - } -} -inline ::GrpcService_EnvoyGrpc* GrpcService::release_envoy_grpc() { - // @@protoc_insertion_point(field_release:GrpcService.envoy_grpc) - if (target_specifier_case() == kEnvoyGrpc) { - clear_has_target_specifier(); - auto* temp = _impl_.target_specifier_.envoy_grpc_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.target_specifier_.envoy_grpc_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_EnvoyGrpc& GrpcService::_internal_envoy_grpc() const { - return target_specifier_case() == kEnvoyGrpc ? *_impl_.target_specifier_.envoy_grpc_ : reinterpret_cast<::GrpcService_EnvoyGrpc&>(::_GrpcService_EnvoyGrpc_default_instance_); -} -inline const ::GrpcService_EnvoyGrpc& GrpcService::envoy_grpc() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.envoy_grpc) - return _internal_envoy_grpc(); -} -inline ::GrpcService_EnvoyGrpc* GrpcService::unsafe_arena_release_envoy_grpc() { - // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.envoy_grpc) - if (target_specifier_case() == kEnvoyGrpc) { - clear_has_target_specifier(); - auto* temp = _impl_.target_specifier_.envoy_grpc_; - _impl_.target_specifier_.envoy_grpc_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void GrpcService::unsafe_arena_set_allocated_envoy_grpc(::GrpcService_EnvoyGrpc* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_target_specifier(); - if (value) { - set_has_envoy_grpc(); - _impl_.target_specifier_.envoy_grpc_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.envoy_grpc) -} -inline ::GrpcService_EnvoyGrpc* GrpcService::_internal_mutable_envoy_grpc() { - if (target_specifier_case() != kEnvoyGrpc) { - clear_target_specifier(); - set_has_envoy_grpc(); - _impl_.target_specifier_.envoy_grpc_ = - ::google::protobuf::MessageLite::DefaultConstruct<::GrpcService_EnvoyGrpc>(GetArena()); - } - return _impl_.target_specifier_.envoy_grpc_; -} -inline ::GrpcService_EnvoyGrpc* GrpcService::mutable_envoy_grpc() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::GrpcService_EnvoyGrpc* _msg = _internal_mutable_envoy_grpc(); - // @@protoc_insertion_point(field_mutable:GrpcService.envoy_grpc) - return _msg; -} - -// .GrpcService.GoogleGrpc google_grpc = 2; -inline bool GrpcService::has_google_grpc() const { - return target_specifier_case() == kGoogleGrpc; -} -inline bool GrpcService::_internal_has_google_grpc() const { - return target_specifier_case() == kGoogleGrpc; -} -inline void GrpcService::set_has_google_grpc() { - _impl_._oneof_case_[0] = kGoogleGrpc; -} -inline void GrpcService::clear_google_grpc() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (target_specifier_case() == kGoogleGrpc) { - if (GetArena() == nullptr) { - delete _impl_.target_specifier_.google_grpc_; - } - clear_has_target_specifier(); - } -} -inline ::GrpcService_GoogleGrpc* GrpcService::release_google_grpc() { - // @@protoc_insertion_point(field_release:GrpcService.google_grpc) - if (target_specifier_case() == kGoogleGrpc) { - clear_has_target_specifier(); - auto* temp = _impl_.target_specifier_.google_grpc_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.target_specifier_.google_grpc_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::GrpcService_GoogleGrpc& GrpcService::_internal_google_grpc() const { - return target_specifier_case() == kGoogleGrpc ? *_impl_.target_specifier_.google_grpc_ : reinterpret_cast<::GrpcService_GoogleGrpc&>(::_GrpcService_GoogleGrpc_default_instance_); -} -inline const ::GrpcService_GoogleGrpc& GrpcService::google_grpc() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.google_grpc) - return _internal_google_grpc(); -} -inline ::GrpcService_GoogleGrpc* GrpcService::unsafe_arena_release_google_grpc() { - // @@protoc_insertion_point(field_unsafe_arena_release:GrpcService.google_grpc) - if (target_specifier_case() == kGoogleGrpc) { - clear_has_target_specifier(); - auto* temp = _impl_.target_specifier_.google_grpc_; - _impl_.target_specifier_.google_grpc_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void GrpcService::unsafe_arena_set_allocated_google_grpc(::GrpcService_GoogleGrpc* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_target_specifier(); - if (value) { - set_has_google_grpc(); - _impl_.target_specifier_.google_grpc_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GrpcService.google_grpc) -} -inline ::GrpcService_GoogleGrpc* GrpcService::_internal_mutable_google_grpc() { - if (target_specifier_case() != kGoogleGrpc) { - clear_target_specifier(); - set_has_google_grpc(); - _impl_.target_specifier_.google_grpc_ = - ::google::protobuf::MessageLite::DefaultConstruct<::GrpcService_GoogleGrpc>(GetArena()); - } - return _impl_.target_specifier_.google_grpc_; -} -inline ::GrpcService_GoogleGrpc* GrpcService::mutable_google_grpc() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::GrpcService_GoogleGrpc* _msg = _internal_mutable_google_grpc(); - // @@protoc_insertion_point(field_mutable:GrpcService.google_grpc) - return _msg; -} - -// repeated .GrpcService.HeaderValue initial_metadata = 5; -inline int GrpcService::_internal_initial_metadata_size() const { - return _internal_initial_metadata().size(); -} -inline int GrpcService::initial_metadata_size() const { - return _internal_initial_metadata_size(); -} -inline void GrpcService::clear_initial_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.initial_metadata_.Clear(); -} -inline ::GrpcService_HeaderValue* GrpcService::mutable_initial_metadata(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:GrpcService.initial_metadata) - return _internal_mutable_initial_metadata()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>* GrpcService::mutable_initial_metadata() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:GrpcService.initial_metadata) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_initial_metadata(); -} -inline const ::GrpcService_HeaderValue& GrpcService::initial_metadata(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:GrpcService.initial_metadata) - return _internal_initial_metadata().Get(index); -} -inline ::GrpcService_HeaderValue* GrpcService::add_initial_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::GrpcService_HeaderValue* _add = _internal_mutable_initial_metadata()->Add(); - // @@protoc_insertion_point(field_add:GrpcService.initial_metadata) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>& GrpcService::initial_metadata() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:GrpcService.initial_metadata) - return _internal_initial_metadata(); -} -inline const ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>& -GrpcService::_internal_initial_metadata() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.initial_metadata_; -} -inline ::google::protobuf::RepeatedPtrField<::GrpcService_HeaderValue>* -GrpcService::_internal_mutable_initial_metadata() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.initial_metadata_; -} - -inline bool GrpcService::has_target_specifier() const { - return target_specifier_case() != TARGET_SPECIFIER_NOT_SET; -} -inline void GrpcService::clear_has_target_specifier() { - _impl_._oneof_case_[0] = TARGET_SPECIFIER_NOT_SET; -} -inline GrpcService::TargetSpecifierCase GrpcService::target_specifier_case() const { - return GrpcService::TargetSpecifierCase(_impl_._oneof_case_[0]); -} -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - - -// @@protoc_insertion_point(global_scope) - -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_proxy_5fwasm_5fintrinsics_5flite_2eproto_2epb_2eh diff --git a/proxy_wasm_intrinsics_lite.proto b/proxy_wasm_intrinsics_lite.proto deleted file mode 100644 index 565bba9..0000000 --- a/proxy_wasm_intrinsics_lite.proto +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright 2016-2019 Envoy Project Authors -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = 'proto3'; -option optimize_for = LITE_RUNTIME; - -import "struct_lite.proto"; - -message WKT { - google.protobuf.Struct struct = 1; -} - -message DataSource { - oneof specifier { - string filename = 1; - bytes inline_bytes = 2; - string inline_string = 3; - } -} - -message Any { - string type_url = 1; - bytes value = 2; -} - -message GrpcService { - message EnvoyGrpc { - string cluster_name = 1; - } - message GoogleGrpc { - string target_uri = 1; - message SslCredentials { - DataSource root_certs = 1; - DataSource private_key = 2; - DataSource cert_chain = 3; - } - message GoogleLocalCredentials { - } - message Empty { - } - message ChannelCredentials { - oneof credential_specifier { - SslCredentials ssl_credentials = 1; - Empty google_default = 2; - GoogleLocalCredentials local_credentials = 3; - } - } - ChannelCredentials channel_credentials = 2; - message CallCredentials { - message ServiceAccountJWTAccessCredentials { - string json_key = 1; - uint64 token_lifetime_seconds = 2; - } - message GoogleIAMCredentials { - string authorization_token = 1; - string authority_selector = 2; - } - message MetadataCredentialsFromPlugin { - string name = 1; - oneof config_type { - google.protobuf.Struct config = 2 [deprecated = true]; - 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; - string google_refresh_token = 3; - ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; - GoogleIAMCredentials google_iam = 5; - MetadataCredentialsFromPlugin from_plugin = 6; - StsService sts_service = 7; - } - } - repeated CallCredentials call_credentials = 3; - string stat_prefix = 4; - string credentials_factory_name = 5; - google.protobuf.Struct config = 6; - } - oneof target_specifier { - EnvoyGrpc envoy_grpc = 1; - GoogleGrpc google_grpc = 2; - } - reserved 4; - message HeaderValue { - string key = 1; - string value = 2; - } - repeated HeaderValue initial_metadata = 5; -} diff --git a/struct_lite.pb.cc b/struct_lite.pb.cc deleted file mode 100644 index caba06f..0000000 --- a/struct_lite.pb.cc +++ /dev/null @@ -1,999 +0,0 @@ -// Copyright 2016-2019 Envoy Project Authors -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: struct_lite.proto -// Protobuf C++ Version: 5.26.1 - -#include "struct_lite.pb.h" - -#include <algorithm> -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/io/zero_copy_stream_impl_lite.h" -#include "google/protobuf/generated_message_tctable_impl.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" -PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; -namespace google { -namespace protobuf { - -inline constexpr ListValue::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : values_{}, - _cached_size_{0} {} - -template <typename> -PROTOBUF_CONSTEXPR ListValue::ListValue(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListValueDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListValueDefaultTypeInternal() {} - union { - ListValue _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListValueDefaultTypeInternal _ListValue_default_instance_; - -inline constexpr Struct::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : fields_{}, - _cached_size_{0} {} - -template <typename> -PROTOBUF_CONSTEXPR Struct::Struct(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct StructDefaultTypeInternal { - PROTOBUF_CONSTEXPR StructDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StructDefaultTypeInternal() {} - union { - Struct _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructDefaultTypeInternal _Struct_default_instance_; - -inline constexpr Value::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : kind_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template <typename> -PROTOBUF_CONSTEXPR Value::Value(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ValueDefaultTypeInternal { - PROTOBUF_CONSTEXPR ValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ValueDefaultTypeInternal() {} - union { - Value _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValueDefaultTypeInternal _Value_default_instance_; -} // namespace protobuf -} // namespace google -namespace google { -namespace protobuf { -PROTOBUF_CONSTINIT const uint32_t NullValue_internal_data_[] = { - 65536u, 0u, }; -bool NullValue_IsValid(int value) { - return 0 <= value && value <= 0; -} -static ::google::protobuf::internal::ExplicitlyConstructed<std::string> - NullValue_strings[1] = {}; - -static const char NullValue_names[] = { - "NULL_VALUE" -}; - -static const ::google::protobuf::internal::EnumEntry NullValue_entries[] = - { - {{&NullValue_names[0], 10}, 0}, -}; - -static const int NullValue_entries_by_number[] = { - 0, // 0 -> NULL_VALUE -}; - -const std::string& NullValue_Name(NullValue value) { - static const bool kDummy = - ::google::protobuf::internal::InitializeEnumStrings( - NullValue_entries, NullValue_entries_by_number, - 1, NullValue_strings); - (void)kDummy; - - int idx = ::google::protobuf::internal::LookUpEnumName( - NullValue_entries, NullValue_entries_by_number, 1, - value); - return idx == -1 ? ::google::protobuf::internal::GetEmptyString() - : NullValue_strings[idx].get(); -} - -bool NullValue_Parse(absl::string_view name, NullValue* value) { - int int_value; - bool success = ::google::protobuf::internal::LookUpEnumValue( - NullValue_entries, 1, name, &int_value); - if (success) { - *value = static_cast<NullValue>(int_value); - } - return success; -} -// =================================================================== - -// =================================================================== - -class Struct::_Internal { - public: -}; - -Struct::Struct(::google::protobuf::Arena* arena) - : ::google::protobuf::MessageLite(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:google.protobuf.Struct) -} -inline PROTOBUF_NDEBUG_INLINE Struct::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : fields_{visibility, arena, from.fields_}, - _cached_size_{0} {} - -Struct::Struct( - ::google::protobuf::Arena* arena, - const Struct& from) - : ::google::protobuf::MessageLite(arena) { - Struct* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:google.protobuf.Struct) -} -inline PROTOBUF_NDEBUG_INLINE Struct::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : fields_{visibility, arena}, - _cached_size_{0} {} - -inline void Struct::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -Struct::~Struct() { - // @@protoc_insertion_point(destructor:google.protobuf.Struct) - _internal_metadata_.Delete<std::string>(); - SharedDtor(); -} -inline void Struct::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -Struct::GetClassData() const { - struct ClassData_ { - ::google::protobuf::MessageLite::ClassData header; - char type_name[23]; - }; - - PROTOBUF_CONSTINIT static const ClassData_ _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(Struct, _impl_._cached_size_), - true, - }, - "google.protobuf.Struct", - }; - - return &_data_.header; -} -PROTOBUF_NOINLINE void Struct::Clear() { -// @@protoc_insertion_point(message_clear_start:google.protobuf.Struct) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.fields_.Clear(); - _internal_metadata_.Clear<std::string>(); -} - -const char* Struct::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 2, 37, 2> Struct::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Struct_default_instance_._instance, - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::google::protobuf::Struct>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // map<string, .google.protobuf.Value> fields = 1; - {PROTOBUF_FIELD_OFFSET(Struct, _impl_.fields_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - }}, {{ - {::_pbi::TcParser::GetMapAuxInfo< - decltype(Struct()._impl_.fields_)>( - 1, 0, 0, 9, - 11)}, - {::_pbi::TcParser::CreateInArenaStorageCb<::google::protobuf::Value>}, - }}, {{ - "\26\6\0\0\0\0\0\0" - "google.protobuf.Struct" - "fields" - }}, -}; - -::uint8_t* Struct::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Struct) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // map<string, .google.protobuf.Value> fields = 1; - if (!_internal_fields().empty()) { - using MapType = ::google::protobuf::Map<std::string, ::google::protobuf::Value>; - using WireHelper = _pbi::MapEntryFuncs<std::string, ::google::protobuf::Value, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_MESSAGE>; - const auto& field = _internal_fields(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) { - target = WireHelper::InternalSerialize( - 1, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast<int>(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Struct.fields"); - } - } else { - for (const auto& entry : field) { - target = WireHelper::InternalSerialize( - 1, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast<int>(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Struct.fields"); - } - } - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Struct) - return target; -} - -::size_t Struct::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:google.protobuf.Struct) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // map<string, .google.protobuf.Value> fields = 1; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_fields_size()); - for (const auto& entry : _internal_fields()) { - total_size += _pbi::MapEntryFuncs<std::string, ::google::protobuf::Value, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void Struct::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::_pbi::DownCast<const Struct*>( - &from)); -} - -void Struct::MergeFrom(const Struct& from) { - Struct* const _this = this; - // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Struct) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_impl_.fields_.MergeFrom(from._impl_.fields_); - _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_); -} - -void Struct::CopyFrom(const Struct& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Struct) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool Struct::IsInitialized() const { - return true; -} - -void Struct::InternalSwap(Struct* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.fields_.InternalSwap(&other->_impl_.fields_); -} - -// =================================================================== - -class Value::_Internal { - public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::google::protobuf::Value, _impl_._oneof_case_); -}; - -void Value::set_allocated_struct_value(::google::protobuf::Struct* struct_value) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_kind(); - if (struct_value) { - ::google::protobuf::Arena* submessage_arena = struct_value->GetArena(); - if (message_arena != submessage_arena) { - struct_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, struct_value, submessage_arena); - } - set_has_struct_value(); - _impl_.kind_.struct_value_ = struct_value; - } - // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.struct_value) -} -void Value::set_allocated_list_value(::google::protobuf::ListValue* list_value) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_kind(); - if (list_value) { - ::google::protobuf::Arena* submessage_arena = list_value->GetArena(); - if (message_arena != submessage_arena) { - list_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, list_value, submessage_arena); - } - set_has_list_value(); - _impl_.kind_.list_value_ = list_value; - } - // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.list_value) -} -Value::Value(::google::protobuf::Arena* arena) - : ::google::protobuf::MessageLite(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:google.protobuf.Value) -} -inline PROTOBUF_NDEBUG_INLINE Value::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : kind_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -Value::Value( - ::google::protobuf::Arena* arena, - const Value& from) - : ::google::protobuf::MessageLite(arena) { - Value* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (kind_case()) { - case KIND_NOT_SET: - break; - case kNullValue: - _impl_.kind_.null_value_ = from._impl_.kind_.null_value_; - break; - case kNumberValue: - _impl_.kind_.number_value_ = from._impl_.kind_.number_value_; - break; - case kStringValue: - new (&_impl_.kind_.string_value_) decltype(_impl_.kind_.string_value_){arena, from._impl_.kind_.string_value_}; - break; - case kBoolValue: - _impl_.kind_.bool_value_ = from._impl_.kind_.bool_value_; - break; - case kStructValue: - _impl_.kind_.struct_value_ = ::google::protobuf::MessageLite::CopyConstruct<::google::protobuf::Struct>(arena, *from._impl_.kind_.struct_value_); - break; - case kListValue: - _impl_.kind_.list_value_ = ::google::protobuf::MessageLite::CopyConstruct<::google::protobuf::ListValue>(arena, *from._impl_.kind_.list_value_); - break; - } - - // @@protoc_insertion_point(copy_constructor:google.protobuf.Value) -} -inline PROTOBUF_NDEBUG_INLINE Value::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : kind_{}, - _cached_size_{0}, - _oneof_case_{} {} - -inline void Value::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -Value::~Value() { - // @@protoc_insertion_point(destructor:google.protobuf.Value) - _internal_metadata_.Delete<std::string>(); - SharedDtor(); -} -inline void Value::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - if (has_kind()) { - clear_kind(); - } - _impl_.~Impl_(); -} - -void Value::clear_kind() { -// @@protoc_insertion_point(one_of_clear_start:google.protobuf.Value) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - switch (kind_case()) { - case kNullValue: { - // No need to clear - break; - } - case kNumberValue: { - // No need to clear - break; - } - case kStringValue: { - _impl_.kind_.string_value_.Destroy(); - break; - } - case kBoolValue: { - // No need to clear - break; - } - case kStructValue: { - if (GetArena() == nullptr) { - delete _impl_.kind_.struct_value_; - } - break; - } - case kListValue: { - if (GetArena() == nullptr) { - delete _impl_.kind_.list_value_; - } - break; - } - case KIND_NOT_SET: { - break; - } - } - _impl_._oneof_case_[0] = KIND_NOT_SET; -} - - -const ::google::protobuf::MessageLite::ClassData* -Value::GetClassData() const { - struct ClassData_ { - ::google::protobuf::MessageLite::ClassData header; - char type_name[22]; - }; - - PROTOBUF_CONSTINIT static const ClassData_ _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(Value, _impl_._cached_size_), - true, - }, - "google.protobuf.Value", - }; - - return &_data_.header; -} -PROTOBUF_NOINLINE void Value::Clear() { -// @@protoc_insertion_point(message_clear_start:google.protobuf.Value) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_kind(); - _internal_metadata_.Clear<std::string>(); -} - -const char* Value::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 6, 2, 42, 2> Value::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 6, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Value_default_instance_._instance, - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::google::protobuf::Value>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .google.protobuf.NullValue null_value = 1; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.null_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kOpenEnum)}, - // double number_value = 2; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.number_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kDouble)}, - // string string_value = 3; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.string_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool bool_value = 4; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.bool_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kBool)}, - // .google.protobuf.Struct struct_value = 5; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.struct_value_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.ListValue list_value = 6; - {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.list_value_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Struct>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::ListValue>()}, - }}, {{ - "\25\0\0\14\0\0\0\0" - "google.protobuf.Value" - "string_value" - }}, -}; - -::uint8_t* Value::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Value) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - switch (kind_case()) { - case kNullValue: { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_null_value(), target); - break; - } - case kNumberValue: { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_number_value(), target); - break; - } - case kStringValue: { - const std::string& _s = this->_internal_string_value(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Value.string_value"); - target = stream->WriteStringMaybeAliased(3, _s, target); - break; - } - case kBoolValue: { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this->_internal_bool_value(), target); - break; - } - case kStructValue: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, *_impl_.kind_.struct_value_, _impl_.kind_.struct_value_->GetCachedSize(), target, stream); - break; - } - case kListValue: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, *_impl_.kind_.list_value_, _impl_.kind_.list_value_->GetCachedSize(), target, stream); - break; - } - default: - break; - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Value) - return target; -} - -::size_t Value::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:google.protobuf.Value) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - switch (kind_case()) { - // .google.protobuf.NullValue null_value = 1; - case kNullValue: { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_null_value()); - break; - } - // double number_value = 2; - case kNumberValue: { - total_size += 9; - break; - } - // string string_value = 3; - case kStringValue: { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_string_value()); - break; - } - // bool bool_value = 4; - case kBoolValue: { - total_size += 2; - break; - } - // .google.protobuf.Struct struct_value = 5; - case kStructValue: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.kind_.struct_value_); - break; - } - // .google.protobuf.ListValue list_value = 6; - case kListValue: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.kind_.list_value_); - break; - } - case KIND_NOT_SET: { - break; - } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void Value::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::_pbi::DownCast<const Value*>( - &from)); -} - -void Value::MergeFrom(const Value& from) { - Value* const _this = this; - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Value) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { - const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; - const bool oneof_needs_init = oneof_to_case != oneof_from_case; - if (oneof_needs_init) { - if (oneof_to_case != 0) { - _this->clear_kind(); - } - _this->_impl_._oneof_case_[0] = oneof_from_case; - } - - switch (oneof_from_case) { - case kNullValue: { - _this->_impl_.kind_.null_value_ = from._impl_.kind_.null_value_; - break; - } - case kNumberValue: { - _this->_impl_.kind_.number_value_ = from._impl_.kind_.number_value_; - break; - } - case kStringValue: { - if (oneof_needs_init) { - _this->_impl_.kind_.string_value_.InitDefault(); - } - _this->_impl_.kind_.string_value_.Set(from._internal_string_value(), arena); - break; - } - case kBoolValue: { - _this->_impl_.kind_.bool_value_ = from._impl_.kind_.bool_value_; - break; - } - case kStructValue: { - if (oneof_needs_init) { - _this->_impl_.kind_.struct_value_ = - ::google::protobuf::MessageLite::CopyConstruct<::google::protobuf::Struct>(arena, *from._impl_.kind_.struct_value_); - } else { - _this->_impl_.kind_.struct_value_->MergeFrom(from._internal_struct_value()); - } - break; - } - case kListValue: { - if (oneof_needs_init) { - _this->_impl_.kind_.list_value_ = - ::google::protobuf::MessageLite::CopyConstruct<::google::protobuf::ListValue>(arena, *from._impl_.kind_.list_value_); - } else { - _this->_impl_.kind_.list_value_->MergeFrom(from._internal_list_value()); - } - break; - } - case KIND_NOT_SET: - break; - } - } - _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_); -} - -void Value::CopyFrom(const Value& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Value) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool Value::IsInitialized() const { - return true; -} - -void Value::InternalSwap(Value* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.kind_, other->_impl_.kind_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); -} - -// =================================================================== - -class ListValue::_Internal { - public: -}; - -ListValue::ListValue(::google::protobuf::Arena* arena) - : ::google::protobuf::MessageLite(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:google.protobuf.ListValue) -} -inline PROTOBUF_NDEBUG_INLINE ListValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : values_{visibility, arena, from.values_}, - _cached_size_{0} {} - -ListValue::ListValue( - ::google::protobuf::Arena* arena, - const ListValue& from) - : ::google::protobuf::MessageLite(arena) { - ListValue* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:google.protobuf.ListValue) -} -inline PROTOBUF_NDEBUG_INLINE ListValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : values_{visibility, arena}, - _cached_size_{0} {} - -inline void ListValue::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -ListValue::~ListValue() { - // @@protoc_insertion_point(destructor:google.protobuf.ListValue) - _internal_metadata_.Delete<std::string>(); - SharedDtor(); -} -inline void ListValue::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -ListValue::GetClassData() const { - struct ClassData_ { - ::google::protobuf::MessageLite::ClassData header; - char type_name[26]; - }; - - PROTOBUF_CONSTINIT static const ClassData_ _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(ListValue, _impl_._cached_size_), - true, - }, - "google.protobuf.ListValue", - }; - - return &_data_.header; -} -PROTOBUF_NOINLINE void ListValue::Clear() { -// @@protoc_insertion_point(message_clear_start:google.protobuf.ListValue) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.values_.Clear(); - _internal_metadata_.Clear<std::string>(); -} - -const char* ListValue::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListValue::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ListValue_default_instance_._instance, - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::google::protobuf::ListValue>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // repeated .google.protobuf.Value values = 1; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListValue, _impl_.values_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .google.protobuf.Value values = 1; - {PROTOBUF_FIELD_OFFSET(ListValue, _impl_.values_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, - }}, {{ - }}, -}; - -::uint8_t* ListValue::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ListValue) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // repeated .google.protobuf.Value values = 1; - for (unsigned i = 0, n = static_cast<unsigned>( - this->_internal_values_size()); - i < n; i++) { - const auto& repfield = this->_internal_values().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, repfield, repfield.GetCachedSize(), - target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ListValue) - return target; -} - -::size_t ListValue::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:google.protobuf.ListValue) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .google.protobuf.Value values = 1; - total_size += 1UL * this->_internal_values_size(); - for (const auto& msg : this->_internal_values()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - _impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void ListValue::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::_pbi::DownCast<const ListValue*>( - &from)); -} - -void ListValue::MergeFrom(const ListValue& from) { - ListValue* const _this = this; - // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.ListValue) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_values()->MergeFrom( - from._internal_values()); - _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_); -} - -void ListValue::CopyFrom(const ListValue& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.ListValue) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool ListValue::IsInitialized() const { - return true; -} - -void ListValue::InternalSwap(ListValue* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.values_.InternalSwap(&other->_impl_.values_); -} - -// @@protoc_insertion_point(namespace_scope) -} // namespace protobuf -} // namespace google -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -// @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" diff --git a/struct_lite.pb.h b/struct_lite.pb.h deleted file mode 100644 index e9556a3..0000000 --- a/struct_lite.pb.h +++ /dev/null @@ -1,1157 +0,0 @@ -// Copyright 2016-2019 Envoy Project Authors -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: struct_lite.proto -// Protobuf C++ Version: 5.26.1 - -#ifndef GOOGLE_PROTOBUF_INCLUDED_struct_5flite_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_struct_5flite_2eproto_2epb_2eh - -#include <limits> -#include <string> -#include <type_traits> -#include <utility> - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION != 5026001 -#error "Protobuf C++ gencode is built with an incompatible version of" -#error "Protobuf C++ headers/runtime. See" -#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" -#endif -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/message_lite.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/map.h" // IWYU pragma: export -#include "google/protobuf/map_field_lite.h" -#include "google/protobuf/generated_enum_util.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - -#define PROTOBUF_INTERNAL_EXPORT_struct_5flite_2eproto - -namespace google { -namespace protobuf { -namespace internal { -class AnyMetadata; -} // namespace internal -} // namespace protobuf -} // namespace google - -// Internal implementation detail -- do not use these members. -struct TableStruct_struct_5flite_2eproto { - static const ::uint32_t offsets[]; -}; -namespace google { -namespace protobuf { -class ListValue; -struct ListValueDefaultTypeInternal; -extern ListValueDefaultTypeInternal _ListValue_default_instance_; -class Struct; -struct StructDefaultTypeInternal; -extern StructDefaultTypeInternal _Struct_default_instance_; -class Value; -struct ValueDefaultTypeInternal; -extern ValueDefaultTypeInternal _Value_default_instance_; -} // namespace protobuf -} // namespace google - -namespace google { -namespace protobuf { -enum NullValue : int { - NULL_VALUE = 0, - NullValue_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - NullValue_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), -}; - -bool NullValue_IsValid(int value); -extern const uint32_t NullValue_internal_data_[]; -constexpr NullValue NullValue_MIN = static_cast<NullValue>(0); -constexpr NullValue NullValue_MAX = static_cast<NullValue>(0); -constexpr int NullValue_ARRAYSIZE = 0 + 1; -const std::string& NullValue_Name(NullValue value); -template <typename T> -const std::string& NullValue_Name(T value) { - static_assert(std::is_same<T, NullValue>::value || - std::is_integral<T>::value, - "Incorrect type passed to NullValue_Name()."); - return NullValue_Name(static_cast<NullValue>(value)); -} -bool NullValue_Parse(absl::string_view name, NullValue* value); - -// =================================================================== - - -// ------------------------------------------------------------------- - -class ListValue final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:google.protobuf.ListValue) */ { - public: - inline ListValue() : ListValue(nullptr) {} - ~ListValue() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR ListValue( - ::google::protobuf::internal::ConstantInitialized); - - inline ListValue(const ListValue& from) : ListValue(nullptr, from) {} - inline ListValue(ListValue&& from) noexcept - : ListValue(nullptr, std::move(from)) {} - inline ListValue& operator=(const ListValue& from) { - CopyFrom(from); - return *this; - } - inline ListValue& operator=(ListValue&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<std::string>(); - } - - static const ListValue& default_instance() { - return *internal_default_instance(); - } - static inline const ListValue* internal_default_instance() { - return reinterpret_cast<const ListValue*>( - &_ListValue_default_instance_); - } - static constexpr int kIndexInFileMessages = 3; - friend void swap(ListValue& a, ListValue& b) { a.Swap(&b); } - inline void Swap(ListValue* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ListValue* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ListValue* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::MessageLite::DefaultConstruct<ListValue>(arena); - } - void CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) final; - void CopyFrom(const ListValue& from); - void MergeFrom(const ListValue& from); - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ListValue* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "google.protobuf.ListValue"; } - - protected: - explicit ListValue(::google::protobuf::Arena* arena); - ListValue(::google::protobuf::Arena* arena, const ListValue& from); - ListValue(::google::protobuf::Arena* arena, ListValue&& from) noexcept - : ListValue(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kValuesFieldNumber = 1, - }; - // repeated .google.protobuf.Value values = 1; - int values_size() const; - private: - int _internal_values_size() const; - - public: - void clear_values() ; - ::google::protobuf::Value* mutable_values(int index); - ::google::protobuf::RepeatedPtrField<::google::protobuf::Value>* mutable_values(); - - private: - const ::google::protobuf::RepeatedPtrField<::google::protobuf::Value>& _internal_values() const; - ::google::protobuf::RepeatedPtrField<::google::protobuf::Value>* _internal_mutable_values(); - public: - const ::google::protobuf::Value& values(int index) const; - ::google::protobuf::Value* add_values(); - const ::google::protobuf::RepeatedPtrField<::google::protobuf::Value>& values() const; - // @@protoc_insertion_point(class_scope:google.protobuf.ListValue) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value > values_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_struct_5flite_2eproto; -}; -// ------------------------------------------------------------------- - -class Struct final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:google.protobuf.Struct) */ { - public: - inline Struct() : Struct(nullptr) {} - ~Struct() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR Struct( - ::google::protobuf::internal::ConstantInitialized); - - inline Struct(const Struct& from) : Struct(nullptr, from) {} - inline Struct(Struct&& from) noexcept - : Struct(nullptr, std::move(from)) {} - inline Struct& operator=(const Struct& from) { - CopyFrom(from); - return *this; - } - inline Struct& operator=(Struct&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<std::string>(); - } - - static const Struct& default_instance() { - return *internal_default_instance(); - } - static inline const Struct* internal_default_instance() { - return reinterpret_cast<const Struct*>( - &_Struct_default_instance_); - } - static constexpr int kIndexInFileMessages = 1; - friend void swap(Struct& a, Struct& b) { a.Swap(&b); } - inline void Swap(Struct* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Struct* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Struct* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::MessageLite::DefaultConstruct<Struct>(arena); - } - void CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) final; - void CopyFrom(const Struct& from); - void MergeFrom(const Struct& from); - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Struct* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "google.protobuf.Struct"; } - - protected: - explicit Struct(::google::protobuf::Arena* arena); - Struct(::google::protobuf::Arena* arena, const Struct& from); - Struct(::google::protobuf::Arena* arena, Struct&& from) noexcept - : Struct(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kFieldsFieldNumber = 1, - }; - // map<string, .google.protobuf.Value> fields = 1; - int fields_size() const; - private: - int _internal_fields_size() const; - - public: - void clear_fields() ; - const ::google::protobuf::Map<std::string, ::google::protobuf::Value>& fields() const; - ::google::protobuf::Map<std::string, ::google::protobuf::Value>* mutable_fields(); - - private: - const ::google::protobuf::Map<std::string, ::google::protobuf::Value>& _internal_fields() const; - ::google::protobuf::Map<std::string, ::google::protobuf::Value>* _internal_mutable_fields(); - - public: - // @@protoc_insertion_point(class_scope:google.protobuf.Struct) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 2, - 37, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::MapFieldLite<std::string, ::google::protobuf::Value> fields_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_struct_5flite_2eproto; -}; -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -class Value final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:google.protobuf.Value) */ { - public: - inline Value() : Value(nullptr) {} - ~Value() override; - template <typename = void> - explicit PROTOBUF_CONSTEXPR Value( - ::google::protobuf::internal::ConstantInitialized); - - inline Value(const Value& from) : Value(nullptr, from) {} - inline Value(Value&& from) noexcept - : Value(nullptr, std::move(from)) {} - inline Value& operator=(const Value& from) { - CopyFrom(from); - return *this; - } - inline Value& operator=(Value&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<std::string>(::google::protobuf::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<std::string>(); - } - - static const Value& default_instance() { - return *internal_default_instance(); - } - enum KindCase { - kNullValue = 1, - kNumberValue = 2, - kStringValue = 3, - kBoolValue = 4, - kStructValue = 5, - kListValue = 6, - KIND_NOT_SET = 0, - }; - static inline const Value* internal_default_instance() { - return reinterpret_cast<const Value*>( - &_Value_default_instance_); - } - static constexpr int kIndexInFileMessages = 2; - friend void swap(Value& a, Value& b) { a.Swap(&b); } - inline void Swap(Value* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Value* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Value* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::MessageLite::DefaultConstruct<Value>(arena); - } - void CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) final; - void CopyFrom(const Value& from); - void MergeFrom(const Value& from); - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Value* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "google.protobuf.Value"; } - - protected: - explicit Value(::google::protobuf::Arena* arena); - Value(::google::protobuf::Arena* arena, const Value& from); - Value(::google::protobuf::Arena* arena, Value&& from) noexcept - : Value(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kNullValueFieldNumber = 1, - kNumberValueFieldNumber = 2, - kStringValueFieldNumber = 3, - kBoolValueFieldNumber = 4, - kStructValueFieldNumber = 5, - kListValueFieldNumber = 6, - }; - // .google.protobuf.NullValue null_value = 1; - bool has_null_value() const; - void clear_null_value() ; - ::google::protobuf::NullValue null_value() const; - void set_null_value(::google::protobuf::NullValue value); - - private: - ::google::protobuf::NullValue _internal_null_value() const; - void _internal_set_null_value(::google::protobuf::NullValue value); - - public: - // double number_value = 2; - bool has_number_value() const; - void clear_number_value() ; - double number_value() const; - void set_number_value(double value); - - private: - double _internal_number_value() const; - void _internal_set_number_value(double value); - - public: - // string string_value = 3; - bool has_string_value() const; - void clear_string_value() ; - const std::string& string_value() const; - template <typename Arg_ = const std::string&, typename... Args_> - void set_string_value(Arg_&& arg, Args_... args); - std::string* mutable_string_value(); - PROTOBUF_NODISCARD std::string* release_string_value(); - void set_allocated_string_value(std::string* value); - - private: - const std::string& _internal_string_value() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_string_value( - const std::string& value); - std::string* _internal_mutable_string_value(); - - public: - // bool bool_value = 4; - bool has_bool_value() const; - void clear_bool_value() ; - bool bool_value() const; - void set_bool_value(bool value); - - private: - bool _internal_bool_value() const; - void _internal_set_bool_value(bool value); - - public: - // .google.protobuf.Struct struct_value = 5; - bool has_struct_value() const; - private: - bool _internal_has_struct_value() const; - - public: - void clear_struct_value() ; - const ::google::protobuf::Struct& struct_value() const; - PROTOBUF_NODISCARD ::google::protobuf::Struct* release_struct_value(); - ::google::protobuf::Struct* mutable_struct_value(); - void set_allocated_struct_value(::google::protobuf::Struct* value); - void unsafe_arena_set_allocated_struct_value(::google::protobuf::Struct* value); - ::google::protobuf::Struct* unsafe_arena_release_struct_value(); - - private: - const ::google::protobuf::Struct& _internal_struct_value() const; - ::google::protobuf::Struct* _internal_mutable_struct_value(); - - public: - // .google.protobuf.ListValue list_value = 6; - bool has_list_value() const; - private: - bool _internal_has_list_value() const; - - public: - void clear_list_value() ; - const ::google::protobuf::ListValue& list_value() const; - PROTOBUF_NODISCARD ::google::protobuf::ListValue* release_list_value(); - ::google::protobuf::ListValue* mutable_list_value(); - void set_allocated_list_value(::google::protobuf::ListValue* value); - void unsafe_arena_set_allocated_list_value(::google::protobuf::ListValue* value); - ::google::protobuf::ListValue* unsafe_arena_release_list_value(); - - private: - const ::google::protobuf::ListValue& _internal_list_value() const; - ::google::protobuf::ListValue* _internal_mutable_list_value(); - - public: - void clear_kind(); - KindCase kind_case() const; - // @@protoc_insertion_point(class_scope:google.protobuf.Value) - private: - class _Internal; - void set_has_null_value(); - void set_has_number_value(); - void set_has_string_value(); - void set_has_bool_value(); - void set_has_struct_value(); - void set_has_list_value(); - inline bool has_kind() const; - inline void clear_has_kind(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 6, 2, - 42, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template <typename T> - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - union KindUnion { - constexpr KindUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - int null_value_; - double number_value_; - ::google::protobuf::internal::ArenaStringPtr string_value_; - bool bool_value_; - ::google::protobuf::Struct* struct_value_; - ::google::protobuf::ListValue* list_value_; - } kind_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_struct_5flite_2eproto; -}; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// Struct - -// map<string, .google.protobuf.Value> fields = 1; -inline int Struct::_internal_fields_size() const { - return _internal_fields().size(); -} -inline int Struct::fields_size() const { - return _internal_fields_size(); -} -inline void Struct::clear_fields() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.fields_.Clear(); -} -inline const ::google::protobuf::Map<std::string, ::google::protobuf::Value>& Struct::_internal_fields() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.fields_.GetMap(); -} -inline const ::google::protobuf::Map<std::string, ::google::protobuf::Value>& Struct::fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_map:google.protobuf.Struct.fields) - return _internal_fields(); -} -inline ::google::protobuf::Map<std::string, ::google::protobuf::Value>* Struct::_internal_mutable_fields() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.fields_.MutableMap(); -} -inline ::google::protobuf::Map<std::string, ::google::protobuf::Value>* Struct::mutable_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_map:google.protobuf.Struct.fields) - return _internal_mutable_fields(); -} - -// ------------------------------------------------------------------- - -// Value - -// .google.protobuf.NullValue null_value = 1; -inline bool Value::has_null_value() const { - return kind_case() == kNullValue; -} -inline void Value::set_has_null_value() { - _impl_._oneof_case_[0] = kNullValue; -} -inline void Value::clear_null_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kNullValue) { - _impl_.kind_.null_value_ = 0; - clear_has_kind(); - } -} -inline ::google::protobuf::NullValue Value::null_value() const { - // @@protoc_insertion_point(field_get:google.protobuf.Value.null_value) - return _internal_null_value(); -} -inline void Value::set_null_value(::google::protobuf::NullValue value) { - if (kind_case() != kNullValue) { - clear_kind(); - set_has_null_value(); - } - _impl_.kind_.null_value_ = value; - // @@protoc_insertion_point(field_set:google.protobuf.Value.null_value) -} -inline ::google::protobuf::NullValue Value::_internal_null_value() const { - if (kind_case() == kNullValue) { - return static_cast<::google::protobuf::NullValue>(_impl_.kind_.null_value_); - } - return static_cast<::google::protobuf::NullValue>(0); -} - -// double number_value = 2; -inline bool Value::has_number_value() const { - return kind_case() == kNumberValue; -} -inline void Value::set_has_number_value() { - _impl_._oneof_case_[0] = kNumberValue; -} -inline void Value::clear_number_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kNumberValue) { - _impl_.kind_.number_value_ = 0; - clear_has_kind(); - } -} -inline double Value::number_value() const { - // @@protoc_insertion_point(field_get:google.protobuf.Value.number_value) - return _internal_number_value(); -} -inline void Value::set_number_value(double value) { - if (kind_case() != kNumberValue) { - clear_kind(); - set_has_number_value(); - } - _impl_.kind_.number_value_ = value; - // @@protoc_insertion_point(field_set:google.protobuf.Value.number_value) -} -inline double Value::_internal_number_value() const { - if (kind_case() == kNumberValue) { - return _impl_.kind_.number_value_; - } - return 0; -} - -// string string_value = 3; -inline bool Value::has_string_value() const { - return kind_case() == kStringValue; -} -inline void Value::set_has_string_value() { - _impl_._oneof_case_[0] = kStringValue; -} -inline void Value::clear_string_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kStringValue) { - _impl_.kind_.string_value_.Destroy(); - clear_has_kind(); - } -} -inline const std::string& Value::string_value() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:google.protobuf.Value.string_value) - return _internal_string_value(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void Value::set_string_value(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() != kStringValue) { - clear_kind(); - - set_has_string_value(); - _impl_.kind_.string_value_.InitDefault(); - } - _impl_.kind_.string_value_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:google.protobuf.Value.string_value) -} -inline std::string* Value::mutable_string_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_string_value(); - // @@protoc_insertion_point(field_mutable:google.protobuf.Value.string_value) - return _s; -} -inline const std::string& Value::_internal_string_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - if (kind_case() != kStringValue) { - return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); - } - return _impl_.kind_.string_value_.Get(); -} -inline void Value::_internal_set_string_value(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() != kStringValue) { - clear_kind(); - - set_has_string_value(); - _impl_.kind_.string_value_.InitDefault(); - } - _impl_.kind_.string_value_.Set(value, GetArena()); -} -inline std::string* Value::_internal_mutable_string_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() != kStringValue) { - clear_kind(); - - set_has_string_value(); - _impl_.kind_.string_value_.InitDefault(); - } - return _impl_.kind_.string_value_.Mutable( GetArena()); -} -inline std::string* Value::release_string_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:google.protobuf.Value.string_value) - if (kind_case() != kStringValue) { - return nullptr; - } - clear_has_kind(); - return _impl_.kind_.string_value_.Release(); -} -inline void Value::set_allocated_string_value(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (has_kind()) { - clear_kind(); - } - if (value != nullptr) { - set_has_string_value(); - _impl_.kind_.string_value_.InitAllocated(value, GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.string_value) -} - -// bool bool_value = 4; -inline bool Value::has_bool_value() const { - return kind_case() == kBoolValue; -} -inline void Value::set_has_bool_value() { - _impl_._oneof_case_[0] = kBoolValue; -} -inline void Value::clear_bool_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kBoolValue) { - _impl_.kind_.bool_value_ = false; - clear_has_kind(); - } -} -inline bool Value::bool_value() const { - // @@protoc_insertion_point(field_get:google.protobuf.Value.bool_value) - return _internal_bool_value(); -} -inline void Value::set_bool_value(bool value) { - if (kind_case() != kBoolValue) { - clear_kind(); - set_has_bool_value(); - } - _impl_.kind_.bool_value_ = value; - // @@protoc_insertion_point(field_set:google.protobuf.Value.bool_value) -} -inline bool Value::_internal_bool_value() const { - if (kind_case() == kBoolValue) { - return _impl_.kind_.bool_value_; - } - return false; -} - -// .google.protobuf.Struct struct_value = 5; -inline bool Value::has_struct_value() const { - return kind_case() == kStructValue; -} -inline bool Value::_internal_has_struct_value() const { - return kind_case() == kStructValue; -} -inline void Value::set_has_struct_value() { - _impl_._oneof_case_[0] = kStructValue; -} -inline void Value::clear_struct_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kStructValue) { - if (GetArena() == nullptr) { - delete _impl_.kind_.struct_value_; - } - clear_has_kind(); - } -} -inline ::google::protobuf::Struct* Value::release_struct_value() { - // @@protoc_insertion_point(field_release:google.protobuf.Value.struct_value) - if (kind_case() == kStructValue) { - clear_has_kind(); - auto* temp = _impl_.kind_.struct_value_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.kind_.struct_value_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::google::protobuf::Struct& Value::_internal_struct_value() const { - return kind_case() == kStructValue ? *_impl_.kind_.struct_value_ : reinterpret_cast<::google::protobuf::Struct&>(::google::protobuf::_Struct_default_instance_); -} -inline const ::google::protobuf::Struct& Value::struct_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:google.protobuf.Value.struct_value) - return _internal_struct_value(); -} -inline ::google::protobuf::Struct* Value::unsafe_arena_release_struct_value() { - // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.struct_value) - if (kind_case() == kStructValue) { - clear_has_kind(); - auto* temp = _impl_.kind_.struct_value_; - _impl_.kind_.struct_value_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Value::unsafe_arena_set_allocated_struct_value(::google::protobuf::Struct* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_kind(); - if (value) { - set_has_struct_value(); - _impl_.kind_.struct_value_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Value.struct_value) -} -inline ::google::protobuf::Struct* Value::_internal_mutable_struct_value() { - if (kind_case() != kStructValue) { - clear_kind(); - set_has_struct_value(); - _impl_.kind_.struct_value_ = - ::google::protobuf::MessageLite::DefaultConstruct<::google::protobuf::Struct>(GetArena()); - } - return _impl_.kind_.struct_value_; -} -inline ::google::protobuf::Struct* Value::mutable_struct_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::Struct* _msg = _internal_mutable_struct_value(); - // @@protoc_insertion_point(field_mutable:google.protobuf.Value.struct_value) - return _msg; -} - -// .google.protobuf.ListValue list_value = 6; -inline bool Value::has_list_value() const { - return kind_case() == kListValue; -} -inline bool Value::_internal_has_list_value() const { - return kind_case() == kListValue; -} -inline void Value::set_has_list_value() { - _impl_._oneof_case_[0] = kListValue; -} -inline void Value::clear_list_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (kind_case() == kListValue) { - if (GetArena() == nullptr) { - delete _impl_.kind_.list_value_; - } - clear_has_kind(); - } -} -inline ::google::protobuf::ListValue* Value::release_list_value() { - // @@protoc_insertion_point(field_release:google.protobuf.Value.list_value) - if (kind_case() == kListValue) { - clear_has_kind(); - auto* temp = _impl_.kind_.list_value_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.kind_.list_value_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::google::protobuf::ListValue& Value::_internal_list_value() const { - return kind_case() == kListValue ? *_impl_.kind_.list_value_ : reinterpret_cast<::google::protobuf::ListValue&>(::google::protobuf::_ListValue_default_instance_); -} -inline const ::google::protobuf::ListValue& Value::list_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:google.protobuf.Value.list_value) - return _internal_list_value(); -} -inline ::google::protobuf::ListValue* Value::unsafe_arena_release_list_value() { - // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.list_value) - if (kind_case() == kListValue) { - clear_has_kind(); - auto* temp = _impl_.kind_.list_value_; - _impl_.kind_.list_value_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Value::unsafe_arena_set_allocated_list_value(::google::protobuf::ListValue* value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_kind(); - if (value) { - set_has_list_value(); - _impl_.kind_.list_value_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Value.list_value) -} -inline ::google::protobuf::ListValue* Value::_internal_mutable_list_value() { - if (kind_case() != kListValue) { - clear_kind(); - set_has_list_value(); - _impl_.kind_.list_value_ = - ::google::protobuf::MessageLite::DefaultConstruct<::google::protobuf::ListValue>(GetArena()); - } - return _impl_.kind_.list_value_; -} -inline ::google::protobuf::ListValue* Value::mutable_list_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::ListValue* _msg = _internal_mutable_list_value(); - // @@protoc_insertion_point(field_mutable:google.protobuf.Value.list_value) - return _msg; -} - -inline bool Value::has_kind() const { - return kind_case() != KIND_NOT_SET; -} -inline void Value::clear_has_kind() { - _impl_._oneof_case_[0] = KIND_NOT_SET; -} -inline Value::KindCase Value::kind_case() const { - return Value::KindCase(_impl_._oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// ListValue - -// repeated .google.protobuf.Value values = 1; -inline int ListValue::_internal_values_size() const { - return _internal_values().size(); -} -inline int ListValue::values_size() const { - return _internal_values_size(); -} -inline void ListValue::clear_values() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.values_.Clear(); -} -inline ::google::protobuf::Value* ListValue::mutable_values(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:google.protobuf.ListValue.values) - return _internal_mutable_values()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Value>* ListValue::mutable_values() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:google.protobuf.ListValue.values) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_values(); -} -inline const ::google::protobuf::Value& ListValue::values(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:google.protobuf.ListValue.values) - return _internal_values().Get(index); -} -inline ::google::protobuf::Value* ListValue::add_values() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::google::protobuf::Value* _add = _internal_mutable_values()->Add(); - // @@protoc_insertion_point(field_add:google.protobuf.ListValue.values) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Value>& ListValue::values() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:google.protobuf.ListValue.values) - return _internal_values(); -} -inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Value>& -ListValue::_internal_values() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.values_; -} -inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Value>* -ListValue::_internal_mutable_values() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.values_; -} - -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) -} // namespace protobuf -} // namespace google - - -namespace google { -namespace protobuf { - -template <> -struct is_proto_enum<::google::protobuf::NullValue> : std::true_type {}; - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_struct_5flite_2eproto_2epb_2eh diff --git a/struct_lite.proto b/struct_lite.proto deleted file mode 100644 index 5940cdf..0000000 --- a/struct_lite.proto +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright 2008 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.protobuf; - -option cc_enable_arenas = true; -option optimize_for = LITE_RUNTIME; - -// `Struct` represents a structured data value, consisting of fields -// which map to dynamically typed values. In some languages, `Struct` -// might be supported by a native representation. For example, in -// scripting languages like JS a struct is represented as an -// object. The details of that representation are described together -// with the proto support for the language. -// -// The JSON representation for `Struct` is JSON object. -message Struct { - // Unordered map of dynamically typed values. - map<string, Value> fields = 1; -} - -// `Value` represents a dynamically typed value which can be either -// null, a number, a string, a boolean, a recursive struct value, or a -// list of values. A producer of value is expected to set one of that -// variants, absence of any variant indicates an error. -// -// The JSON representation for `Value` is JSON value. -message Value { - // The kind of value. - oneof kind { - // Represents a null value. - NullValue null_value = 1; - // Represents a double value. - double number_value = 2; - // Represents a string value. - string string_value = 3; - // Represents a boolean value. - bool bool_value = 4; - // Represents a structured value. - Struct struct_value = 5; - // Represents a repeated `Value`. - ListValue list_value = 6; - } -} - -// `NullValue` is a singleton enumeration to represent the null value for the -// `Value` type union. -// -// The JSON representation for `NullValue` is JSON `null`. -enum NullValue { - // Null value. - NULL_VALUE = 0; -} - -// `ListValue` is a wrapper around a repeated field of values. -// -// The JSON representation for `ListValue` is JSON array. -message ListValue { - // Repeated field of dynamically typed values. - repeated Value values = 1; -} From bcb7dc5dbb6ec08b845b24c84cd70963b9aaebc1 Mon Sep 17 00:00:00 2001 From: wangbaiping/wbpcode <wbphub@gmail.com> Date: Thu, 27 Feb 2025 15:01:31 +0800 Subject: [PATCH 2/3] fix build Signed-off-by: wangbaiping/wbpcode <wbphub@gmail.com> --- example/BUILD | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/example/BUILD b/example/BUILD index d603f06..002dbe7 100644 --- a/example/BUILD +++ b/example/BUILD @@ -26,6 +26,9 @@ proxy_wasm_cc_binary( srcs = ["http_proto_example.cc"], copts = ["-std=c++17"], protobuf = "lite", + deps = [ + "@com_google_protobuf//:struct_cc_proto", + ], ) proxy_wasm_cc_binary( @@ -33,4 +36,7 @@ proxy_wasm_cc_binary( srcs = ["http_proto_example.cc"], copts = ["-std=c++17"], protobuf = "full", + deps = [ + "@com_google_protobuf//:struct_cc_proto", + ], ) From 6aab1914b83181c1866890a780719c1c042090be Mon Sep 17 00:00:00 2001 From: "wangbaiping(wbpcode)" <wbphub@gmail.com> Date: Thu, 27 Feb 2025 09:35:22 +0000 Subject: [PATCH 3/3] add compile db support Signed-off-by: wangbaiping(wbpcode) <wbphub@gmail.com> --- .gitignore | 2 + CONTRIBUTING.md | 4 ++ DEVELOPMENT.md | 11 +++++ bazel/repositories.bzl | 9 ++++ example/BUILD | 39 ++++++++++++--- example/example.proto | 23 +++++++++ example/http_proto_example.cc | 12 ++++- proxy_wasm_api.h | 4 ++ tools/gen_compilation_database.py | 79 +++++++++++++++++++++++++++++++ 9 files changed, 174 insertions(+), 9 deletions(-) create mode 100644 DEVELOPMENT.md create mode 100644 example/example.proto create mode 100755 tools/gen_compilation_database.py diff --git a/.gitignore b/.gitignore index a6ef824..187826e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ /bazel-* +.cache +compile_commands.json diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 654a071..d3f60f5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -26,3 +26,7 @@ information on using pull requests. This project follows [Google's Open Source Community Guidelines](https://opensource.google/conduct/). + +## Development + +See the [Development Guidelines](DEVELOPMENT.md). diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md new file mode 100644 index 0000000..92dbf13 --- /dev/null +++ b/DEVELOPMENT.md @@ -0,0 +1,11 @@ +# Development guidelines + +## Generate compilation database + +[JSON Compilation Database](https://clang.llvm.org/docs/JSONCompilationDatabase.html) files can be used by [clangd](https://clangd.llvm.org/) or similar tools to add source code cross-references and code completion functionality to editors. + +The following command can be used to generate the `compile_commands.json` file: + +``` +./tools/gen_compilation_database.py --include_all //example/... //:proxy_wasm_intrinsics_full +``` diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 8442da5..3ec004d 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -56,3 +56,12 @@ def proxy_wasm_cpp_sdk_repositories(): strip_prefix = "re2-2023-07-01", url = "https://github.com/google/re2/archive/2023-07-01.tar.gz", ) + + # Compile DB dependencies. + maybe( + http_archive, + name = "bazel_compdb", + sha256 = "acd2a9eaf49272bb1480c67d99b82662f005b596a8c11739046a4220ec73c4da", + strip_prefix = "bazel-compilation-database-40864791135333e1446a04553b63cbe744d358d0", + url = "https://github.com/grailbio/bazel-compilation-database/archive/40864791135333e1446a04553b63cbe744d358d0.tar.gz", + ) diff --git a/example/BUILD b/example/BUILD index 002dbe7..d60b0fa 100644 --- a/example/BUILD +++ b/example/BUILD @@ -1,4 +1,6 @@ load("@proxy_wasm_cpp_sdk//bazel:defs.bzl", "proxy_wasm_cc_binary") +load("@rules_cc//cc:defs.bzl", "cc_proto_library") +load("@rules_proto//proto:defs.bzl", "proto_library") licenses(["notice"]) # Apache 2 @@ -21,22 +23,45 @@ proxy_wasm_cc_binary( copts = ["-std=c++17"], ) -proxy_wasm_cc_binary( - name = "http_proto_example_lite.wasm", +proto_library( + name = "example_proto", + srcs = ["example.proto"], + deps = ["@com_google_protobuf//:struct_proto"], +) + +cc_proto_library( + name = "example_proto_cc", + deps = [":example_proto"], +) + +cc_library( + name = "http_proto_example_lite_lib", srcs = ["http_proto_example.cc"], copts = ["-std=c++17"], - protobuf = "lite", deps = [ - "@com_google_protobuf//:struct_cc_proto", + ":example_proto_cc", + "@proxy_wasm_cpp_sdk//:proxy_wasm_intrinsics_lite", ], + alwayslink = 1, ) proxy_wasm_cc_binary( - name = "http_proto_example_full.wasm", + name = "http_proto_example_lite.wasm", + deps = [":http_proto_example_lite_lib"], +) + +cc_library( + name = "http_proto_example_full_lib", srcs = ["http_proto_example.cc"], copts = ["-std=c++17"], - protobuf = "full", deps = [ - "@com_google_protobuf//:struct_cc_proto", + ":example_proto_cc", + "@proxy_wasm_cpp_sdk//:proxy_wasm_intrinsics_full", ], + alwayslink = 1, +) + +proxy_wasm_cc_binary( + name = "http_proto_example_full.wasm", + deps = [":http_proto_example_full_lib"], ) diff --git a/example/example.proto b/example/example.proto new file mode 100644 index 0000000..4ca5bed --- /dev/null +++ b/example/example.proto @@ -0,0 +1,23 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package example; + +import "google/protobuf/struct.proto"; + +message Example { + google.protobuf.Struct data = 1; +} diff --git a/example/http_proto_example.cc b/example/http_proto_example.cc index bcb90e3..5b4bf2d 100644 --- a/example/http_proto_example.cc +++ b/example/http_proto_example.cc @@ -12,10 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "google/protobuf/struct.pb.h" - #include "proxy_wasm_intrinsics.h" +#ifdef PROXY_WASM_PROTOBUF +#include "example/example.pb.h" +#endif + class MyRootContext : public RootContext { public: explicit MyRootContext(uint32_t id, std::string_view root_id) : RootContext(id, root_id) {} @@ -25,10 +27,16 @@ class MyRootContext : public RootContext { LOG_TRACE("onStart with protobuf (full)"); google::protobuf::Value value; value.set_string_value("unused"); + + example::Example example_proto; + (*example_proto.mutable_data()->mutable_fields())["key"] = value; #elif defined(PROXY_WASM_PROTOBUF_LITE) LOG_TRACE("onStart with protobuf (lite)"); google::protobuf::Value value; value.set_string_value("unused"); + + example::Example example_proto; + (*example_proto.mutable_data()->mutable_fields())["key"] = value; #else LOG_TRACE("onStart without protobuf"); #endif diff --git a/proxy_wasm_api.h b/proxy_wasm_api.h index f9f49b8..9217b67 100644 --- a/proxy_wasm_api.h +++ b/proxy_wasm_api.h @@ -35,6 +35,10 @@ #include <utility> #include <vector> +#include "proxy_wasm_common.h" +#include "proxy_wasm_enums.h" +#include "proxy_wasm_externs.h" + // Macro to log a message and abort the plugin if the given value is not // `WasmResult::Ok`. #define CHECK_RESULT(_c) \ diff --git a/tools/gen_compilation_database.py b/tools/gen_compilation_database.py new file mode 100755 index 0000000..bff3d82 --- /dev/null +++ b/tools/gen_compilation_database.py @@ -0,0 +1,79 @@ +#!/usr/bin/env python3 + +# Copyright 2016-2019 Envoy Project Authors +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import argparse +import json +import os +import shlex +import subprocess +from pathlib import Path + +# This is copied from https://github.com/envoyproxy/envoy and remove unnecessary code. + +# This method is equivalent to https://github.com/grailbio/bazel-compilation-database/blob/master/generate.py +def generate_compilation_database(args): + # We need to download all remote outputs for generated source code. This option lives here to override those + # specified in bazelrc. + bazel_startup_options = shlex.split(os.environ.get("BAZEL_STARTUP_OPTION_LIST", "")) + bazel_options = shlex.split(os.environ.get("BAZEL_BUILD_OPTION_LIST", "")) + [ + "--remote_download_outputs=all", + ] + + source_dir_targets = args.bazel_targets + + subprocess.check_call(["bazel", *bazel_startup_options, "build"] + bazel_options + [ + "--aspects=@bazel_compdb//:aspects.bzl%compilation_database_aspect", + "--output_groups=compdb_files,header_files" + ] + source_dir_targets) + + execroot = subprocess.check_output( + ["bazel", *bazel_startup_options, "info", *bazel_options, + "execution_root"]).decode().strip() + + db_entries = [] + for db in Path(execroot).glob('**/*.compile_commands.json'): + db_entries.extend(json.loads(db.read_text())) + + def replace_execroot_marker(db_entry): + if 'directory' in db_entry and db_entry['directory'] == '__EXEC_ROOT__': + db_entry['directory'] = execroot + if 'command' in db_entry: + db_entry['command'] = ( + db_entry['command'].replace('-isysroot __BAZEL_XCODE_SDKROOT__', '')) + return db_entry + + return list(map(replace_execroot_marker, db_entries)) + +if __name__ == "__main__": + parser = argparse.ArgumentParser(description='Generate JSON compilation database') + parser.add_argument('--include_external', action='store_true') + parser.add_argument('--include_genfiles', action='store_true') + parser.add_argument('--include_headers', action='store_true') + parser.add_argument('--include_all', action='store_true') + parser.add_argument( + '--system-clang', + action='store_true', + help= + 'Use `clang++` instead of the bazel wrapper for commands. This may help if `clangd` cannot find/run the tools.' + ) + parser.add_argument('bazel_targets', nargs='*', default=[]) + + args = parser.parse_args() + db = generate_compilation_database(args) + + with open("compile_commands.json", "w") as db_file: + json.dump(db, db_file, indent=2)