| // clang-format off | |
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |
| // NO CHECKED-IN PROTOBUF GENCODE | |
| // source: google/protobuf/api.proto | |
| // Protobuf C++ Version: 7.38.0-dev | |
| #include "google/protobuf/api.pb.h" | |
| #include <algorithm> | |
| #include <type_traits> | |
| #include "google/protobuf/io/coded_stream.h" | |
| #include "google/protobuf/generated_message_tctable_impl.h" | |
| #include "google/protobuf/internal_visibility.h" | |
| #include "google/protobuf/extension_set.h" | |
| #include "google/protobuf/generated_message_util.h" | |
| #include "google/protobuf/private_access.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" | |
| // @@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; | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| #define PROTOBUF_NO_CUSTOM_VTABLE_INLINE | |
| #else | |
| #define PROTOBUF_NO_CUSTOM_VTABLE_INLINE PROTOBUF_ALWAYS_INLINE | |
| #endif | |
| namespace { | |
| PROTOBUF_CONSTINIT ::google::protobuf::internal::ReflectionData | |
| file_reflection_data[] = { | |
| // ::google::protobuf::Api | |
| {&::_pbi::kDescriptorMethods, &::descriptor_table_google_2fprotobuf_2fapi_2eproto, /* tracker*/ nullptr,}, | |
| // ::google::protobuf::Method | |
| {&::_pbi::kDescriptorMethods, &::descriptor_table_google_2fprotobuf_2fapi_2eproto, /* tracker*/ nullptr,}, | |
| // ::google::protobuf::Mixin | |
| {&::_pbi::kDescriptorMethods, &::descriptor_table_google_2fprotobuf_2fapi_2eproto, /* tracker*/ nullptr,}, | |
| }; | |
| } // namespace | |
| namespace google { | |
| namespace protobuf { | |
| class Mixin::_Internal { | |
| public: | |
| using HasBits = decltype(::std::declval<Mixin>()._impl_._has_bits_); | |
| static constexpr ::int32_t kHasBitsOffset = | |
| 8 * PROTOBUF_FIELD_OFFSET(Mixin, _impl_._has_bits_); | |
| static constexpr Mixin::ParseTableT_ GenerateParseTable( | |
| const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); | |
| static constexpr auto GenerateClassData(); | |
| static void* PROTOBUF_NONNULL PlacementNew(const void* PROTOBUF_NONNULL, | |
| void* PROTOBUF_NONNULL mem, | |
| ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); | |
| static constexpr auto NewImpl(); | |
| }; | |
| constexpr Mixin::ParseTableT_ Mixin::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { | |
| return ParseTableT_{ | |
| { | |
| PROTOBUF_FIELD_OFFSET(Mixin, _impl_._has_bits_), | |
| 0, // no _extensions_ | |
| 2, 8, // max_field_number, fast_idx_mask | |
| offsetof(ParseTableT_, field_lookup_table), | |
| 4294967292, // skipmap | |
| offsetof(ParseTableT_, field_entries), | |
| 2, // num_field_entries | |
| 0, // num_aux_entries | |
| offsetof(ParseTableT_, field_names), // no aux_entries | |
| class_data, | |
| nullptr, // post_loop_handler | |
| ::_pbi::TcParser::MpUnknownFields, // fallback | |
| }, {{ | |
| // string root = 2; | |
| {::_pbi::TcParser::FastUS1, | |
| {18, 1, 0, | |
| PROTOBUF_FIELD_OFFSET(Mixin, _impl_.root_)}}, | |
| // string name = 1; | |
| {::_pbi::TcParser::FastUS1, | |
| {10, 0, 0, | |
| PROTOBUF_FIELD_OFFSET(Mixin, _impl_.name_)}}, | |
| }}, {{ | |
| 65535, 65535 | |
| }}, {{ | |
| // string name = 1; | |
| {PROTOBUF_FIELD_OFFSET(Mixin, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, | |
| // string root = 2; | |
| {PROTOBUF_FIELD_OFFSET(Mixin, _impl_.root_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, | |
| }}, | |
| // no aux_entries | |
| {{ | |
| "\25\4\4\0\0\0\0\0" | |
| "google.protobuf.Mixin" | |
| "name" | |
| "root" | |
| }}, | |
| }; | |
| } | |
| inline constexpr Mixin::Impl_::Impl_( | |
| [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, | |
| ::_pbi::ConstantInitialized) noexcept | |
| : name_( | |
| &::google::protobuf::internal::fixed_address_empty_string, | |
| ::_pbi::ConstantInitialized()), | |
| root_( | |
| &::google::protobuf::internal::fixed_address_empty_string, | |
| ::_pbi::ConstantInitialized()) {} | |
| template <typename> | |
| constexpr Mixin::Mixin(::_pbi::ConstantInitialized, | |
| const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) | |
| : Super_( | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| class_data | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| ), | |
| _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { | |
| } | |
| inline void* PROTOBUF_NONNULL Mixin::_Internal::PlacementNew( | |
| const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, | |
| ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { | |
| return ::new (mem) Mixin(arena); | |
| } | |
| constexpr auto Mixin::_Internal::NewImpl() { | |
| return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Mixin), alignof(Mixin)); | |
| } | |
| constexpr auto Mixin::_Internal::GenerateClassData() { | |
| return ::google::protobuf::internal::ClassData{ | |
| nullptr, // IsInitialized | |
| &Mixin::MergeImpl, | |
| Super_::GetNewImpl<Mixin>(), | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| &Mixin::SharedDtor, | |
| &Clear, &ByteSizeLong, &_InternalSerialize, | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| PROTOBUF_FIELD_OFFSET(Mixin, _impl_._cached_size_), | |
| &file_reflection_data[2], | |
| }; | |
| } | |
| struct MixinGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { | |
| constexpr MixinGlobalsTypeInternal() | |
| : MessageGlobalsBase( | |
| ::_pbi::PrivateAccess::GenerateClassData<Mixin>()), | |
| _default(::_pbi::ConstantInitialized{}, GetClassData()), | |
| _table( | |
| ::_pbi::PrivateAccess::GenerateParseTable<Mixin>( | |
| GetClassData())) {} | |
| ~MixinGlobalsTypeInternal() {} | |
| union { | |
| alignas(::_pbi::kMaxMessageAlignment) Mixin _default; | |
| }; | |
| decltype(::_pbi::PrivateAccess::GenerateParseTable<Mixin>( | |
| ::std::declval<const ::_pbi::ClassData*>())) _table; | |
| }; | |
| static_assert(PROTOBUF_FIELD_OFFSET(MixinGlobalsTypeInternal, _default) == | |
| ::_pbi::MessageGlobalsBase::OffsetToDefault()); | |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT | |
| PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const MixinGlobalsTypeInternal Mixin_globals_ | |
| PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); | |
| class Method::_Internal { | |
| public: | |
| using HasBits = decltype(::std::declval<Method>()._impl_._has_bits_); | |
| static constexpr ::int32_t kHasBitsOffset = | |
| 8 * PROTOBUF_FIELD_OFFSET(Method, _impl_._has_bits_); | |
| static constexpr Method::ParseTableT_ GenerateParseTable( | |
| const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); | |
| static constexpr auto GenerateClassData(); | |
| static void* PROTOBUF_NONNULL PlacementNew(const void* PROTOBUF_NONNULL, | |
| void* PROTOBUF_NONNULL mem, | |
| ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); | |
| static constexpr auto NewImpl(); | |
| }; | |
| constexpr Method::ParseTableT_ Method::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { | |
| return ParseTableT_{ | |
| { | |
| PROTOBUF_FIELD_OFFSET(Method, _impl_._has_bits_), | |
| 0, // no _extensions_ | |
| 8, 56, // max_field_number, fast_idx_mask | |
| offsetof(ParseTableT_, field_lookup_table), | |
| 4294967040, // skipmap | |
| offsetof(ParseTableT_, field_entries), | |
| 8, // num_field_entries | |
| 1, // num_aux_entries | |
| offsetof(ParseTableT_, aux_entries), | |
| class_data, | |
| nullptr, // post_loop_handler | |
| ::_pbi::TcParser::MpUnknownFields, // fallback | |
| }, {{ | |
| // string edition = 8 [deprecated = true]; | |
| {::_pbi::TcParser::FastUS1, | |
| {66, 4, 0, | |
| PROTOBUF_FIELD_OFFSET(Method, _impl_.edition_)}}, | |
| // string name = 1; | |
| {::_pbi::TcParser::FastUS1, | |
| {10, 1, 0, | |
| PROTOBUF_FIELD_OFFSET(Method, _impl_.name_)}}, | |
| // string request_type_url = 2; | |
| {::_pbi::TcParser::FastUS1, | |
| {18, 2, 0, | |
| PROTOBUF_FIELD_OFFSET(Method, _impl_.request_type_url_)}}, | |
| // bool request_streaming = 3; | |
| {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(Method, _impl_.request_streaming_), 5>(), | |
| {24, 5, 0, | |
| PROTOBUF_FIELD_OFFSET(Method, _impl_.request_streaming_)}}, | |
| // string response_type_url = 4; | |
| {::_pbi::TcParser::FastUS1, | |
| {34, 3, 0, | |
| PROTOBUF_FIELD_OFFSET(Method, _impl_.response_type_url_)}}, | |
| // bool response_streaming = 5; | |
| {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(Method, _impl_.response_streaming_), 6>(), | |
| {40, 6, 0, | |
| PROTOBUF_FIELD_OFFSET(Method, _impl_.response_streaming_)}}, | |
| // repeated .google.protobuf.Option options = 6; | |
| {::_pbi::TcParser::FastMcR1, | |
| {50, 0, 0, | |
| PROTOBUF_FIELD_OFFSET(Method, _impl_.options_)}}, | |
| // .google.protobuf.Syntax syntax = 7 [deprecated = true]; | |
| {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Method, _impl_.syntax_), 7>(), | |
| {56, 7, 0, | |
| PROTOBUF_FIELD_OFFSET(Method, _impl_.syntax_)}}, | |
| }}, {{ | |
| 65535, 65535 | |
| }}, {{ | |
| // string name = 1; | |
| {PROTOBUF_FIELD_OFFSET(Method, _impl_.name_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, | |
| // string request_type_url = 2; | |
| {PROTOBUF_FIELD_OFFSET(Method, _impl_.request_type_url_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, | |
| // bool request_streaming = 3; | |
| {PROTOBUF_FIELD_OFFSET(Method, _impl_.request_streaming_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, | |
| // string response_type_url = 4; | |
| {PROTOBUF_FIELD_OFFSET(Method, _impl_.response_type_url_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, | |
| // bool response_streaming = 5; | |
| {PROTOBUF_FIELD_OFFSET(Method, _impl_.response_streaming_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, | |
| // repeated .google.protobuf.Option options = 6; | |
| {PROTOBUF_FIELD_OFFSET(Method, _impl_.options_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvClassData)}, | |
| // .google.protobuf.Syntax syntax = 7 [deprecated = true]; | |
| {PROTOBUF_FIELD_OFFSET(Method, _impl_.syntax_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, | |
| // string edition = 8 [deprecated = true]; | |
| {PROTOBUF_FIELD_OFFSET(Method, _impl_.edition_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, | |
| }}, | |
| {{ | |
| {::_pbi::FieldAuxClassData(), &::google::protobuf::Option_globals_}, | |
| }}, | |
| {{ | |
| "\26\4\20\0\21\0\0\0\7\0\0\0\0\0\0\0" | |
| "google.protobuf.Method" | |
| "name" | |
| "request_type_url" | |
| "response_type_url" | |
| "edition" | |
| }}, | |
| }; | |
| } | |
| inline constexpr Method::Impl_::Impl_( | |
| [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, | |
| ::_pbi::ConstantInitialized) noexcept | |
| : options_ { visibility, ::_pbi::InternalMetadataOffset::Build< | |
| ::google::protobuf::Method, | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Method, _impl_.options_)>() | |
| } | |
| , | |
| name_( | |
| &::google::protobuf::internal::fixed_address_empty_string, | |
| ::_pbi::ConstantInitialized()), | |
| request_type_url_( | |
| &::google::protobuf::internal::fixed_address_empty_string, | |
| ::_pbi::ConstantInitialized()), | |
| response_type_url_( | |
| &::google::protobuf::internal::fixed_address_empty_string, | |
| ::_pbi::ConstantInitialized()), | |
| edition_( | |
| &::google::protobuf::internal::fixed_address_empty_string, | |
| ::_pbi::ConstantInitialized()), | |
| request_streaming_{false}, | |
| response_streaming_{false}, | |
| syntax_{static_cast< ::google::protobuf::Syntax >(0)} {} | |
| template <typename> | |
| constexpr Method::Method(::_pbi::ConstantInitialized, | |
| const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) | |
| : Super_( | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| class_data | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| ), | |
| _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { | |
| } | |
| inline void* PROTOBUF_NONNULL Method::_Internal::PlacementNew( | |
| const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, | |
| ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { | |
| return ::new (mem) Method(arena); | |
| } | |
| constexpr auto Method::_Internal::NewImpl() { | |
| return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Method), alignof(Method)); | |
| } | |
| constexpr auto Method::_Internal::GenerateClassData() { | |
| return ::google::protobuf::internal::ClassData{ | |
| nullptr, // IsInitialized | |
| &Method::MergeImpl, | |
| Super_::GetNewImpl<Method>(), | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| &Method::SharedDtor, | |
| &Clear, &ByteSizeLong, &_InternalSerialize, | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| PROTOBUF_FIELD_OFFSET(Method, _impl_._cached_size_), | |
| &file_reflection_data[1], | |
| }; | |
| } | |
| struct MethodGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { | |
| constexpr MethodGlobalsTypeInternal() | |
| : MessageGlobalsBase( | |
| ::_pbi::PrivateAccess::GenerateClassData<Method>()), | |
| _default(::_pbi::ConstantInitialized{}, GetClassData()), | |
| _table( | |
| ::_pbi::PrivateAccess::GenerateParseTable<Method>( | |
| GetClassData())) {} | |
| ~MethodGlobalsTypeInternal() {} | |
| union { | |
| alignas(::_pbi::kMaxMessageAlignment) Method _default; | |
| }; | |
| decltype(::_pbi::PrivateAccess::GenerateParseTable<Method>( | |
| ::std::declval<const ::_pbi::ClassData*>())) _table; | |
| }; | |
| static_assert(PROTOBUF_FIELD_OFFSET(MethodGlobalsTypeInternal, _default) == | |
| ::_pbi::MessageGlobalsBase::OffsetToDefault()); | |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT | |
| PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const MethodGlobalsTypeInternal Method_globals_ | |
| PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); | |
| class Api::_Internal { | |
| public: | |
| using HasBits = decltype(::std::declval<Api>()._impl_._has_bits_); | |
| static constexpr ::int32_t kHasBitsOffset = | |
| 8 * PROTOBUF_FIELD_OFFSET(Api, _impl_._has_bits_); | |
| static constexpr Api::ParseTableT_ GenerateParseTable( | |
| const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); | |
| static constexpr auto GenerateClassData(); | |
| static void* PROTOBUF_NONNULL PlacementNew(const void* PROTOBUF_NONNULL, | |
| void* PROTOBUF_NONNULL mem, | |
| ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); | |
| static constexpr auto NewImpl(); | |
| }; | |
| constexpr Api::ParseTableT_ Api::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { | |
| return ParseTableT_{ | |
| { | |
| PROTOBUF_FIELD_OFFSET(Api, _impl_._has_bits_), | |
| 0, // no _extensions_ | |
| 8, 56, // max_field_number, fast_idx_mask | |
| offsetof(ParseTableT_, field_lookup_table), | |
| 4294967040, // skipmap | |
| offsetof(ParseTableT_, field_entries), | |
| 8, // num_field_entries | |
| 4, // num_aux_entries | |
| offsetof(ParseTableT_, aux_entries), | |
| class_data, | |
| nullptr, // post_loop_handler | |
| ::_pbi::TcParser::MpUnknownFields, // fallback | |
| }, {{ | |
| // string edition = 8; | |
| {::_pbi::TcParser::FastUS1, | |
| {66, 5, 0, | |
| PROTOBUF_FIELD_OFFSET(Api, _impl_.edition_)}}, | |
| // string name = 1; | |
| {::_pbi::TcParser::FastUS1, | |
| {10, 3, 0, | |
| PROTOBUF_FIELD_OFFSET(Api, _impl_.name_)}}, | |
| // repeated .google.protobuf.Method methods = 2; | |
| {::_pbi::TcParser::FastMcR1, | |
| {18, 0, 0, | |
| PROTOBUF_FIELD_OFFSET(Api, _impl_.methods_)}}, | |
| // repeated .google.protobuf.Option options = 3; | |
| {::_pbi::TcParser::FastMcR1, | |
| {26, 1, 1, | |
| PROTOBUF_FIELD_OFFSET(Api, _impl_.options_)}}, | |
| // string version = 4; | |
| {::_pbi::TcParser::FastUS1, | |
| {34, 4, 0, | |
| PROTOBUF_FIELD_OFFSET(Api, _impl_.version_)}}, | |
| // .google.protobuf.SourceContext source_context = 5; | |
| {::_pbi::TcParser::FastMcS1, | |
| {42, 6, 2, | |
| PROTOBUF_FIELD_OFFSET(Api, _impl_.source_context_)}}, | |
| // repeated .google.protobuf.Mixin mixins = 6; | |
| {::_pbi::TcParser::FastMcR1, | |
| {50, 2, 3, | |
| PROTOBUF_FIELD_OFFSET(Api, _impl_.mixins_)}}, | |
| // .google.protobuf.Syntax syntax = 7; | |
| {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Api, _impl_.syntax_), 7>(), | |
| {56, 7, 0, | |
| PROTOBUF_FIELD_OFFSET(Api, _impl_.syntax_)}}, | |
| }}, {{ | |
| 65535, 65535 | |
| }}, {{ | |
| // string name = 1; | |
| {PROTOBUF_FIELD_OFFSET(Api, _impl_.name_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, | |
| // repeated .google.protobuf.Method methods = 2; | |
| {PROTOBUF_FIELD_OFFSET(Api, _impl_.methods_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvClassData)}, | |
| // repeated .google.protobuf.Option options = 3; | |
| {PROTOBUF_FIELD_OFFSET(Api, _impl_.options_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvClassData)}, | |
| // string version = 4; | |
| {PROTOBUF_FIELD_OFFSET(Api, _impl_.version_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, | |
| // .google.protobuf.SourceContext source_context = 5; | |
| {PROTOBUF_FIELD_OFFSET(Api, _impl_.source_context_), _Internal::kHasBitsOffset + 6, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvClassData)}, | |
| // repeated .google.protobuf.Mixin mixins = 6; | |
| {PROTOBUF_FIELD_OFFSET(Api, _impl_.mixins_), _Internal::kHasBitsOffset + 2, 3, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvClassData)}, | |
| // .google.protobuf.Syntax syntax = 7; | |
| {PROTOBUF_FIELD_OFFSET(Api, _impl_.syntax_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, | |
| // string edition = 8; | |
| {PROTOBUF_FIELD_OFFSET(Api, _impl_.edition_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, | |
| }}, | |
| {{ | |
| {::_pbi::FieldAuxClassData(), &::google::protobuf::Method_globals_}, | |
| {::_pbi::FieldAuxClassData(), &::google::protobuf::Option_globals_}, | |
| {::_pbi::FieldAuxClassData(), &::google::protobuf::SourceContext_globals_}, | |
| {::_pbi::FieldAuxClassData(), &::google::protobuf::Mixin_globals_}, | |
| }}, | |
| {{ | |
| "\23\4\0\0\7\0\0\0\7\0\0\0\0\0\0\0" | |
| "google.protobuf.Api" | |
| "name" | |
| "version" | |
| "edition" | |
| }}, | |
| }; | |
| } | |
| inline constexpr Api::Impl_::Impl_( | |
| [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, | |
| ::_pbi::ConstantInitialized) noexcept | |
| : methods_ { visibility, ::_pbi::InternalMetadataOffset::Build< | |
| ::google::protobuf::Api, | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Api, _impl_.methods_)>() | |
| } | |
| , | |
| options_ { visibility, ::_pbi::InternalMetadataOffset::Build< | |
| ::google::protobuf::Api, | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Api, _impl_.options_)>() | |
| } | |
| , | |
| mixins_ { visibility, ::_pbi::InternalMetadataOffset::Build< | |
| ::google::protobuf::Api, | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Api, _impl_.mixins_)>() | |
| } | |
| , | |
| name_( | |
| &::google::protobuf::internal::fixed_address_empty_string, | |
| ::_pbi::ConstantInitialized()), | |
| version_( | |
| &::google::protobuf::internal::fixed_address_empty_string, | |
| ::_pbi::ConstantInitialized()), | |
| edition_( | |
| &::google::protobuf::internal::fixed_address_empty_string, | |
| ::_pbi::ConstantInitialized()), | |
| source_context_{nullptr}, | |
| syntax_{static_cast< ::google::protobuf::Syntax >(0)} {} | |
| template <typename> | |
| constexpr Api::Api(::_pbi::ConstantInitialized, | |
| const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) | |
| : Super_( | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| class_data | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| ), | |
| _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { | |
| } | |
| inline void* PROTOBUF_NONNULL Api::_Internal::PlacementNew( | |
| const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, | |
| ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { | |
| return ::new (mem) Api(arena); | |
| } | |
| constexpr auto Api::_Internal::NewImpl() { | |
| return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Api), alignof(Api)); | |
| } | |
| constexpr auto Api::_Internal::GenerateClassData() { | |
| return ::google::protobuf::internal::ClassData{ | |
| nullptr, // IsInitialized | |
| &Api::MergeImpl, | |
| Super_::GetNewImpl<Api>(), | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| &Api::SharedDtor, | |
| &Clear, &ByteSizeLong, &_InternalSerialize, | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| PROTOBUF_FIELD_OFFSET(Api, _impl_._cached_size_), | |
| &file_reflection_data[0], | |
| }; | |
| } | |
| struct ApiGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { | |
| constexpr ApiGlobalsTypeInternal() | |
| : MessageGlobalsBase( | |
| ::_pbi::PrivateAccess::GenerateClassData<Api>()), | |
| _default(::_pbi::ConstantInitialized{}, GetClassData()), | |
| _table( | |
| ::_pbi::PrivateAccess::GenerateParseTable<Api>( | |
| GetClassData())) {} | |
| ~ApiGlobalsTypeInternal() {} | |
| union { | |
| alignas(::_pbi::kMaxMessageAlignment) Api _default; | |
| }; | |
| decltype(::_pbi::PrivateAccess::GenerateParseTable<Api>( | |
| ::std::declval<const ::_pbi::ClassData*>())) _table; | |
| }; | |
| static_assert(PROTOBUF_FIELD_OFFSET(ApiGlobalsTypeInternal, _default) == | |
| ::_pbi::MessageGlobalsBase::OffsetToDefault()); | |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT | |
| PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ApiGlobalsTypeInternal Api_globals_ | |
| PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); | |
| } // namespace protobuf | |
| } // namespace google | |
| static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE | |
| file_level_enum_descriptors_google_2fprotobuf_2fapi_2eproto = nullptr; | |
| static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE | |
| file_level_service_descriptors_google_2fprotobuf_2fapi_2eproto = nullptr; | |
| const ::uint32_t | |
| TableStruct_google_2fprotobuf_2fapi_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( | |
| protodesc_cold) = { | |
| 0x081, // bitmap | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Api, _impl_._has_bits_), | |
| 11, // hasbit index offset | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Api, _impl_.name_), | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Api, _impl_.methods_), | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Api, _impl_.options_), | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Api, _impl_.version_), | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Api, _impl_.source_context_), | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Api, _impl_.mixins_), | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Api, _impl_.syntax_), | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Api, _impl_.edition_), | |
| 3, | |
| 0, | |
| 1, | |
| 4, | |
| 6, | |
| 2, | |
| 7, | |
| 5, | |
| 0x081, // bitmap | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Method, _impl_._has_bits_), | |
| 11, // hasbit index offset | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Method, _impl_.name_), | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Method, _impl_.request_type_url_), | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Method, _impl_.request_streaming_), | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Method, _impl_.response_type_url_), | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Method, _impl_.response_streaming_), | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Method, _impl_.options_), | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Method, _impl_.syntax_), | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Method, _impl_.edition_), | |
| 1, | |
| 2, | |
| 5, | |
| 3, | |
| 6, | |
| 0, | |
| 7, | |
| 4, | |
| 0x081, // bitmap | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Mixin, _impl_._has_bits_), | |
| 5, // hasbit index offset | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Mixin, _impl_.name_), | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Mixin, _impl_.root_), | |
| 0, | |
| 1, | |
| }; | |
| static const ::_pbi::MigrationSchema | |
| schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { | |
| {0, sizeof(::google::protobuf::Api)}, | |
| {19, sizeof(::google::protobuf::Method)}, | |
| {38, sizeof(::google::protobuf::Mixin)}, | |
| }; | |
| static const ::_pbi::MessageGlobalsBase* PROTOBUF_NONNULL const | |
| file_message_globals[] = { | |
| &::google::protobuf::Api_globals_, | |
| &::google::protobuf::Method_globals_, | |
| &::google::protobuf::Mixin_globals_, | |
| }; | |
| const char descriptor_table_protodef_google_2fprotobuf_2fapi_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( | |
| protodesc_cold) = { | |
| "\n\031google/protobuf/api.proto\022\017google.prot" | |
| "obuf\032$google/protobuf/source_context.pro" | |
| "to\032\032google/protobuf/type.proto\"\222\002\n\003Api\022\014" | |
| "\n\004name\030\001 \001(\t\022(\n\007methods\030\002 \003(\0132\027.google.p" | |
| "rotobuf.Method\022(\n\007options\030\003 \003(\0132\027.google" | |
| ".protobuf.Option\022\017\n\007version\030\004 \001(\t\0226\n\016sou" | |
| "rce_context\030\005 \001(\0132\036.google.protobuf.Sour" | |
| "ceContext\022&\n\006mixins\030\006 \003(\0132\026.google.proto" | |
| "buf.Mixin\022\'\n\006syntax\030\007 \001(\0162\027.google.proto" | |
| "buf.Syntax\022\017\n\007edition\030\010 \001(\t\"\356\001\n\006Method\022\014" | |
| "\n\004name\030\001 \001(\t\022\030\n\020request_type_url\030\002 \001(\t\022\031" | |
| "\n\021request_streaming\030\003 \001(\010\022\031\n\021response_ty" | |
| "pe_url\030\004 \001(\t\022\032\n\022response_streaming\030\005 \001(\010" | |
| "\022(\n\007options\030\006 \003(\0132\027.google.protobuf.Opti" | |
| "on\022+\n\006syntax\030\007 \001(\0162\027.google.protobuf.Syn" | |
| "taxB\002\030\001\022\023\n\007edition\030\010 \001(\tB\002\030\001\"#\n\005Mixin\022\014\n" | |
| "\004name\030\001 \001(\t\022\014\n\004root\030\002 \001(\tBv\n\023com.google." | |
| "protobufB\010ApiProtoP\001Z,google.golang.org/" | |
| "protobuf/types/known/apipb\242\002\003GPB\252\002\036Googl" | |
| "e.Protobuf.WellKnownTypesb\006proto3" | |
| }; | |
| static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const | |
| descriptor_table_google_2fprotobuf_2fapi_2eproto_deps[2] = { | |
| &::descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto, | |
| &::descriptor_table_google_2fprotobuf_2ftype_2eproto, | |
| }; | |
| static ::absl::once_flag descriptor_table_google_2fprotobuf_2fapi_2eproto_once; | |
| PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_google_2fprotobuf_2fapi_2eproto = { | |
| false, | |
| false, | |
| 793, | |
| descriptor_table_protodef_google_2fprotobuf_2fapi_2eproto, | |
| "google/protobuf/api.proto", | |
| &descriptor_table_google_2fprotobuf_2fapi_2eproto_once, | |
| descriptor_table_google_2fprotobuf_2fapi_2eproto_deps, | |
| 2, | |
| 3, | |
| schemas, | |
| file_message_globals, | |
| TableStruct_google_2fprotobuf_2fapi_2eproto::offsets, | |
| file_level_enum_descriptors_google_2fprotobuf_2fapi_2eproto, | |
| file_level_service_descriptors_google_2fprotobuf_2fapi_2eproto, | |
| }; | |
| namespace google { | |
| namespace protobuf { | |
| // =================================================================== | |
| void Api::clear_options() { | |
| ::google::protobuf::internal::TSanWrite(&_impl_); | |
| _impl_.options_.Clear(); | |
| ClearHasBit(_impl_._has_bits_[0], 0x00000002U); | |
| } | |
| void Api::clear_source_context() { | |
| ::google::protobuf::internal::TSanWrite(&_impl_); | |
| if (_impl_.source_context_ != nullptr) _impl_.source_context_->Clear(); | |
| ClearHasBit(_impl_._has_bits_[0], 0x00000040U); | |
| } | |
| Api::Api(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| : Super_(arena, &Api_globals_.class_data) { | |
| #else // PROTOBUF_CUSTOM_VTABLE | |
| : Super_(arena) { | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| SharedCtor(arena); | |
| // @@protoc_insertion_point(arena_constructor:google.protobuf.Api) | |
| } | |
| PROTOBUF_NDEBUG_INLINE Api::Impl_::Impl_( | |
| [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, | |
| [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, | |
| [[maybe_unused]] const ::google::protobuf::Api& from_msg) | |
| : _has_bits_{from._has_bits_}, | |
| methods_ { | |
| visibility, ::_pbi::InternalMetadataOffset::Build< | |
| ::google::protobuf::Api, | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Api, _impl_.methods_)>() | |
| , arena, from.methods_ | |
| } | |
| , | |
| options_ { | |
| visibility, ::_pbi::InternalMetadataOffset::Build< | |
| ::google::protobuf::Api, | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Api, _impl_.options_)>() | |
| , arena, from.options_ | |
| } | |
| , | |
| mixins_ { | |
| visibility, ::_pbi::InternalMetadataOffset::Build< | |
| ::google::protobuf::Api, | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Api, _impl_.mixins_)>() | |
| , arena, from.mixins_ | |
| } | |
| , | |
| name_(arena, from.name_), | |
| version_(arena, from.version_), | |
| edition_(arena, from.edition_) {} | |
| Api::Api( | |
| ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, | |
| const Api& from) | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| : Super_(arena, &Api_globals_.class_data) { | |
| #else // PROTOBUF_CUSTOM_VTABLE | |
| : Super_(arena) { | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| Api& this_ [[maybe_unused]] = *this; | |
| _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( | |
| from._internal_metadata_); | |
| new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); | |
| ::uint32_t cached_has_bits = _impl_._has_bits_[0]; | |
| _impl_.source_context_ = (CheckHasBit(cached_has_bits, 0x00000040U)) | |
| ? Super_::CopyConstruct(arena, *from._impl_.source_context_) | |
| : nullptr; | |
| _impl_.syntax_ = from._impl_.syntax_; | |
| // @@protoc_insertion_point(copy_constructor:google.protobuf.Api) | |
| } | |
| PROTOBUF_NDEBUG_INLINE Api::Impl_::Impl_( | |
| [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, | |
| [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) | |
| : methods_ { visibility, ::_pbi::InternalMetadataOffset::Build< | |
| ::google::protobuf::Api, | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Api, _impl_.methods_)>() | |
| } | |
| , | |
| options_ { visibility, ::_pbi::InternalMetadataOffset::Build< | |
| ::google::protobuf::Api, | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Api, _impl_.options_)>() | |
| } | |
| , | |
| mixins_ { visibility, ::_pbi::InternalMetadataOffset::Build< | |
| ::google::protobuf::Api, | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Api, _impl_.mixins_)>() | |
| } | |
| , | |
| name_(arena), | |
| version_(arena), | |
| edition_(arena) {} | |
| inline void Api::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { | |
| new (&_impl_) Impl_(internal_visibility(), arena); | |
| ::memset(reinterpret_cast<char*>(&_impl_) + | |
| offsetof(Impl_, source_context_), | |
| 0, | |
| offsetof(Impl_, syntax_) - | |
| offsetof(Impl_, source_context_) + | |
| sizeof(Impl_::syntax_)); | |
| } | |
| Api::~Api() { | |
| // @@protoc_insertion_point(destructor:google.protobuf.Api) | |
| SharedDtor(*this); | |
| } | |
| PROTOBUF_NO_CUSTOM_VTABLE_INLINE void Api::SharedDtor( | |
| MessageLite& self) { | |
| Api& this_ = static_cast<Api&>(self); | |
| if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { | |
| this_.CheckHasBitConsistency(); | |
| } | |
| this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); | |
| ABSL_DCHECK(!::_pbi::HasArena(this_)); | |
| this_._impl_.name_.Destroy(); | |
| this_._impl_.version_.Destroy(); | |
| this_._impl_.edition_.Destroy(); | |
| delete this_._impl_.source_context_; | |
| this_._impl_.~Impl_(); | |
| } | |
| PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL | |
| Api::GetClassData() const { | |
| ::google::protobuf::internal::PrefetchToLocalCache(&Api_globals_); | |
| ::google::protobuf::internal::PrefetchToLocalCache( | |
| ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Api_globals_)); | |
| return &Api_globals_.class_data; | |
| } | |
| PROTOBUF_NO_CUSTOM_VTABLE_INLINE | |
| void Api::Clear(MessageLite& base) { | |
| Api& this_ = static_cast<Api&>(base); | |
| // @@protoc_insertion_point(message_clear_start:google.protobuf.Api) | |
| ::google::protobuf::internal::TSanWrite(&this_._impl_); | |
| ::uint32_t cached_has_bits [[maybe_unused]] = 0; | |
| this_._impl_.syntax_ = 0; | |
| cached_has_bits = this_._impl_._has_bits_[0]; | |
| if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) { | |
| if (CheckHasBit(cached_has_bits, 0x00000001U)) { | |
| this_._impl_.methods_.Clear(); | |
| } | |
| if (CheckHasBit(cached_has_bits, 0x00000002U)) { | |
| this_._impl_.options_.Clear(); | |
| } | |
| if (CheckHasBit(cached_has_bits, 0x00000004U)) { | |
| this_._impl_.mixins_.Clear(); | |
| } | |
| if (CheckHasBit(cached_has_bits, 0x00000008U)) { | |
| this_._impl_.name_.ClearNonDefaultToEmpty(); | |
| } | |
| if (CheckHasBit(cached_has_bits, 0x00000010U)) { | |
| this_._impl_.version_.ClearNonDefaultToEmpty(); | |
| } | |
| if (CheckHasBit(cached_has_bits, 0x00000020U)) { | |
| this_._impl_.edition_.ClearNonDefaultToEmpty(); | |
| } | |
| if (CheckHasBit(cached_has_bits, 0x00000040U)) { | |
| ABSL_DCHECK(this_._impl_.source_context_ != nullptr); | |
| this_._impl_.source_context_->Clear(); | |
| } | |
| } | |
| this_._impl_._has_bits_.Clear(); | |
| this_._internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); | |
| } | |
| #if !defined(PROTOBUF_CUSTOM_VTABLE) | |
| PROTOBUF_NOINLINE void Api::Clear() { Clear(*this); } | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| PROTOBUF_NO_CUSTOM_VTABLE_INLINE | |
| ::uint8_t* PROTOBUF_NULLABLE Api::_InternalSerialize( | |
| const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NULLABLE target, | |
| ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { | |
| const Api& this_ = static_cast<const Api&>(base); | |
| if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { | |
| this_.CheckHasBitConsistency(); | |
| } | |
| // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Api) | |
| ::uint32_t cached_has_bits = 0; | |
| (void)cached_has_bits; | |
| cached_has_bits = this_._impl_._has_bits_[0]; | |
| if (BatchCheckHasBit(cached_has_bits, 0xffffffffU)) { | |
| // string name = 1; | |
| if (CheckHasBit(cached_has_bits, 0x00000008U)) { | |
| 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, "google.protobuf.Api.name"); | |
| target = stream->WriteStringMaybeAliased(1, _s, target); | |
| } | |
| } | |
| // repeated .google.protobuf.Method methods = 2; | |
| if (CheckHasBit(cached_has_bits, 0x00000001U)) { | |
| for (const auto& sub : this_._impl_.methods_) { | |
| target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( | |
| 2, sub, sub.GetCachedSize(), target, stream); | |
| } | |
| } | |
| // repeated .google.protobuf.Option options = 3; | |
| if (CheckHasBit(cached_has_bits, 0x00000002U)) { | |
| for (const auto& sub : this_._impl_.options_) { | |
| target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( | |
| 3, sub, sub.GetCachedSize(), target, stream); | |
| } | |
| } | |
| // string version = 4; | |
| if (CheckHasBit(cached_has_bits, 0x00000010U)) { | |
| if (!this_._internal_version().empty()) { | |
| const ::std::string& _s = this_._internal_version(); | |
| ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( | |
| _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Api.version"); | |
| target = stream->WriteStringMaybeAliased(4, _s, target); | |
| } | |
| } | |
| // .google.protobuf.SourceContext source_context = 5; | |
| if (CheckHasBit(cached_has_bits, 0x00000040U)) { | |
| { | |
| auto* sub = this_._impl_.source_context_; | |
| target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( | |
| 5, *sub, sub->GetCachedSize(), target, stream); | |
| } | |
| } | |
| // repeated .google.protobuf.Mixin mixins = 6; | |
| if (CheckHasBit(cached_has_bits, 0x00000004U)) { | |
| for (const auto& sub : this_._impl_.mixins_) { | |
| target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( | |
| 6, sub, sub.GetCachedSize(), target, stream); | |
| } | |
| } | |
| // .google.protobuf.Syntax syntax = 7; | |
| if (CheckHasBit(cached_has_bits, 0x00000080U)) { | |
| if (this_._internal_syntax() != 0) { | |
| target = stream->EnsureSpace(target); | |
| target = ::_pbi::WireFormatLite::WriteEnumToArray( | |
| 7, this_._internal_syntax(), target); | |
| } | |
| } | |
| // string edition = 8; | |
| if (CheckHasBit(cached_has_bits, 0x00000020U)) { | |
| if (!this_._internal_edition().empty()) { | |
| const ::std::string& _s = this_._internal_edition(); | |
| ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( | |
| _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Api.edition"); | |
| target = stream->WriteStringMaybeAliased(8, _s, target); | |
| } | |
| } | |
| } | |
| if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { | |
| target = | |
| ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( | |
| this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); | |
| } | |
| // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Api) | |
| return target; | |
| } | |
| #if !defined(PROTOBUF_CUSTOM_VTABLE) | |
| ::uint8_t* PROTOBUF_NULLABLE Api::_InternalSerialize( | |
| ::uint8_t* PROTOBUF_NULLABLE target, | |
| ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { | |
| return _InternalSerialize(*this, target, stream); | |
| } | |
| #endif // !PROTOBUF_CUSTOM_VTABLE | |
| PROTOBUF_NO_CUSTOM_VTABLE_INLINE | |
| ::size_t Api::ByteSizeLong(const MessageLite& base) { | |
| const Api& this_ = static_cast<const Api&>(base); | |
| // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Api) | |
| ::size_t total_size = 0; | |
| ::uint32_t cached_has_bits [[maybe_unused]] = 0; | |
| ::_pbi::Prefetch5LinesFrom7Lines(&this_); | |
| cached_has_bits = this_._impl_._has_bits_[0]; | |
| if (BatchCheckHasBit(cached_has_bits, 0xffffffffU)) { | |
| // repeated .google.protobuf.Method methods = 2; | |
| if (CheckHasBit(cached_has_bits, 0x00000001U)) { | |
| if (const auto& value = this_._impl_.methods_; !value.empty()) { | |
| total_size += 1UL * value.size(); | |
| for (const auto& msg : value) { | |
| total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); | |
| } | |
| } | |
| } | |
| // repeated .google.protobuf.Option options = 3; | |
| if (CheckHasBit(cached_has_bits, 0x00000002U)) { | |
| if (const auto& value = this_._impl_.options_; !value.empty()) { | |
| total_size += 1UL * value.size(); | |
| for (const auto& msg : value) { | |
| total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); | |
| } | |
| } | |
| } | |
| // repeated .google.protobuf.Mixin mixins = 6; | |
| if (CheckHasBit(cached_has_bits, 0x00000004U)) { | |
| if (const auto& value = this_._impl_.mixins_; !value.empty()) { | |
| total_size += 1UL * value.size(); | |
| for (const auto& msg : value) { | |
| total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); | |
| } | |
| } | |
| } | |
| // string name = 1; | |
| if (CheckHasBit(cached_has_bits, 0x00000008U)) { | |
| if (!this_._internal_name().empty()) { | |
| total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( | |
| this_._impl_.name_.Get()); | |
| } | |
| } | |
| // string version = 4; | |
| if (CheckHasBit(cached_has_bits, 0x00000010U)) { | |
| if (!this_._internal_version().empty()) { | |
| total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( | |
| this_._impl_.version_.Get()); | |
| } | |
| } | |
| // string edition = 8; | |
| if (CheckHasBit(cached_has_bits, 0x00000020U)) { | |
| if (!this_._internal_edition().empty()) { | |
| total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( | |
| this_._impl_.edition_.Get()); | |
| } | |
| } | |
| // .google.protobuf.SourceContext source_context = 5; | |
| if (CheckHasBit(cached_has_bits, 0x00000040U)) { | |
| total_size += | |
| 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.source_context_); | |
| } | |
| // .google.protobuf.Syntax syntax = 7; | |
| if (CheckHasBit(cached_has_bits, 0x00000080U)) { | |
| if (this_._internal_syntax() != 0) { | |
| total_size += | |
| 1 + ::_pbi::WireFormatLite::EnumSize(this_._impl_.syntax_); | |
| } | |
| } | |
| } | |
| return this_.MaybeComputeUnknownFieldsSize(total_size, | |
| &this_._impl_._cached_size_); | |
| } | |
| #if !defined(PROTOBUF_CUSTOM_VTABLE) | |
| ::size_t Api::ByteSizeLong() const { return ByteSizeLong(*this); } | |
| #endif // !PROTOBUF_CUSTOM_VTABLE | |
| void Api::MergeImpl(::google::protobuf::MessageLite& to_msg, | |
| const ::google::protobuf::MessageLite& from_msg) { | |
| Api& this_ = static_cast<Api&>(to_msg); | |
| auto& from = static_cast<const Api&>(from_msg); | |
| if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { | |
| from.CheckHasBitConsistency(); | |
| } | |
| ::google::protobuf::Arena* arena = this_.GetArena(); | |
| // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Api) | |
| ABSL_DCHECK_NE(&from, &this_); | |
| ::uint32_t cached_has_bits = 0; | |
| (void)cached_has_bits; | |
| cached_has_bits = from._impl_._has_bits_[0]; | |
| if (BatchCheckHasBit(cached_has_bits, 0xffffffffU)) { | |
| if (CheckHasBit(cached_has_bits, 0x00000001U)) { | |
| if (const auto& sub = from._impl_.methods_; !sub.empty()) { | |
| this_._internal_mutable_methods()->InternalMergeFromWithArena( | |
| ::google::protobuf::MessageLite::internal_visibility(), arena, sub); | |
| } | |
| } | |
| if (CheckHasBit(cached_has_bits, 0x00000002U)) { | |
| if (const auto& sub = from._impl_.options_; !sub.empty()) { | |
| this_._internal_mutable_options()->InternalMergeFromWithArena( | |
| ::google::protobuf::MessageLite::internal_visibility(), arena, sub); | |
| } | |
| } | |
| if (CheckHasBit(cached_has_bits, 0x00000004U)) { | |
| if (const auto& sub = from._impl_.mixins_; !sub.empty()) { | |
| this_._internal_mutable_mixins()->InternalMergeFromWithArena( | |
| ::google::protobuf::MessageLite::internal_visibility(), arena, sub); | |
| } | |
| } | |
| if (CheckHasBit(cached_has_bits, 0x00000008U)) { | |
| if (!from._internal_name().empty()) { | |
| this_._internal_set_name(from._impl_.name_.Get()); | |
| } else if (this_._impl_.name_.IsDefault()) { | |
| this_._internal_set_name(""); | |
| } | |
| } | |
| if (CheckHasBit(cached_has_bits, 0x00000010U)) { | |
| if (!from._internal_version().empty()) { | |
| this_._internal_set_version(from._impl_.version_.Get()); | |
| } else if (this_._impl_.version_.IsDefault()) { | |
| this_._internal_set_version(""); | |
| } | |
| } | |
| if (CheckHasBit(cached_has_bits, 0x00000020U)) { | |
| if (!from._internal_edition().empty()) { | |
| this_._internal_set_edition(from._impl_.edition_.Get()); | |
| } else if (this_._impl_.edition_.IsDefault()) { | |
| this_._internal_set_edition(""); | |
| } | |
| } | |
| if (CheckHasBit(cached_has_bits, 0x00000040U)) { | |
| ABSL_DCHECK(from._impl_.source_context_ != nullptr); | |
| { | |
| auto*& sub = this_._impl_.source_context_; | |
| if (sub == nullptr) { | |
| sub = Super_::CopyConstruct(arena, *from._impl_.source_context_); | |
| } else { | |
| sub->MergeFrom(*from._impl_.source_context_); | |
| } | |
| } | |
| } | |
| if (CheckHasBit(cached_has_bits, 0x00000080U)) { | |
| if (from._internal_syntax() != 0) { | |
| this_._impl_.syntax_ = from._impl_.syntax_; | |
| } | |
| } | |
| } | |
| this_._impl_._has_bits_[0] |= cached_has_bits; | |
| this_._internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( | |
| from._internal_metadata_); | |
| } | |
| void Api::CopyFrom(const Api& from) { | |
| // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Api) | |
| if (&from == this) return; | |
| Clear(); | |
| MergeFrom(from); | |
| } | |
| void Api::InternalSwap(Api* PROTOBUF_RESTRICT PROTOBUF_NONNULL 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_.methods_.InternalSwap(&other->_impl_.methods_); | |
| _impl_.options_.InternalSwap(&other->_impl_.options_); | |
| _impl_.mixins_.InternalSwap(&other->_impl_.mixins_); | |
| ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); | |
| ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.version_, &other->_impl_.version_, arena); | |
| ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.edition_, &other->_impl_.edition_, arena); | |
| ::google::protobuf::internal::memswap< | |
| PROTOBUF_FIELD_OFFSET(Api, _impl_.syntax_) | |
| + sizeof(Api::_impl_.syntax_) | |
| - PROTOBUF_FIELD_OFFSET(Api, _impl_.source_context_)>( | |
| reinterpret_cast<char*>(&_impl_.source_context_), | |
| reinterpret_cast<char*>(&other->_impl_.source_context_)); | |
| } | |
| ::google::protobuf::Metadata Api::GetMetadata() const { | |
| return Super_::GetMetadataImpl(Api_globals_.class_data); | |
| } | |
| // =================================================================== | |
| void Method::clear_options() { | |
| ::google::protobuf::internal::TSanWrite(&_impl_); | |
| _impl_.options_.Clear(); | |
| ClearHasBit(_impl_._has_bits_[0], 0x00000001U); | |
| } | |
| Method::Method(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| : Super_(arena, &Method_globals_.class_data) { | |
| #else // PROTOBUF_CUSTOM_VTABLE | |
| : Super_(arena) { | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| SharedCtor(arena); | |
| // @@protoc_insertion_point(arena_constructor:google.protobuf.Method) | |
| } | |
| PROTOBUF_NDEBUG_INLINE Method::Impl_::Impl_( | |
| [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, | |
| [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, | |
| [[maybe_unused]] const ::google::protobuf::Method& from_msg) | |
| : _has_bits_{from._has_bits_}, | |
| options_ { | |
| visibility, ::_pbi::InternalMetadataOffset::Build< | |
| ::google::protobuf::Method, | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Method, _impl_.options_)>() | |
| , arena, from.options_ | |
| } | |
| , | |
| name_(arena, from.name_), | |
| request_type_url_(arena, from.request_type_url_), | |
| response_type_url_(arena, from.response_type_url_), | |
| edition_(arena, from.edition_) {} | |
| Method::Method( | |
| ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, | |
| const Method& from) | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| : Super_(arena, &Method_globals_.class_data) { | |
| #else // PROTOBUF_CUSTOM_VTABLE | |
| : Super_(arena) { | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| Method& this_ [[maybe_unused]] = *this; | |
| _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( | |
| from._internal_metadata_); | |
| new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); | |
| ::memcpy(reinterpret_cast<char*>(&_impl_) + | |
| offsetof(Impl_, request_streaming_), | |
| reinterpret_cast<const char*>(&from._impl_) + | |
| offsetof(Impl_, request_streaming_), | |
| offsetof(Impl_, syntax_) - | |
| offsetof(Impl_, request_streaming_) + | |
| sizeof(Impl_::syntax_)); | |
| // @@protoc_insertion_point(copy_constructor:google.protobuf.Method) | |
| } | |
| PROTOBUF_NDEBUG_INLINE Method::Impl_::Impl_( | |
| [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, | |
| [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) | |
| : options_ { visibility, ::_pbi::InternalMetadataOffset::Build< | |
| ::google::protobuf::Method, | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Method, _impl_.options_)>() | |
| } | |
| , | |
| name_(arena), | |
| request_type_url_(arena), | |
| response_type_url_(arena), | |
| edition_(arena) {} | |
| inline void Method::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { | |
| new (&_impl_) Impl_(internal_visibility(), arena); | |
| ::memset(reinterpret_cast<char*>(&_impl_) + | |
| offsetof(Impl_, request_streaming_), | |
| 0, | |
| offsetof(Impl_, syntax_) - | |
| offsetof(Impl_, request_streaming_) + | |
| sizeof(Impl_::syntax_)); | |
| } | |
| Method::~Method() { | |
| // @@protoc_insertion_point(destructor:google.protobuf.Method) | |
| SharedDtor(*this); | |
| } | |
| PROTOBUF_NO_CUSTOM_VTABLE_INLINE void Method::SharedDtor( | |
| MessageLite& self) { | |
| Method& this_ = static_cast<Method&>(self); | |
| if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { | |
| this_.CheckHasBitConsistency(); | |
| } | |
| this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); | |
| ABSL_DCHECK(!::_pbi::HasArena(this_)); | |
| this_._impl_.name_.Destroy(); | |
| this_._impl_.request_type_url_.Destroy(); | |
| this_._impl_.response_type_url_.Destroy(); | |
| this_._impl_.edition_.Destroy(); | |
| this_._impl_.~Impl_(); | |
| } | |
| PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL | |
| Method::GetClassData() const { | |
| ::google::protobuf::internal::PrefetchToLocalCache(&Method_globals_); | |
| ::google::protobuf::internal::PrefetchToLocalCache( | |
| ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Method_globals_)); | |
| return &Method_globals_.class_data; | |
| } | |
| PROTOBUF_NO_CUSTOM_VTABLE_INLINE | |
| void Method::Clear(MessageLite& base) { | |
| Method& this_ = static_cast<Method&>(base); | |
| // @@protoc_insertion_point(message_clear_start:google.protobuf.Method) | |
| ::google::protobuf::internal::TSanWrite(&this_._impl_); | |
| ::uint32_t cached_has_bits [[maybe_unused]] = 0; | |
| ::memset(&this_._impl_.request_streaming_, 0, | |
| PROTOBUF_FIELD_OFFSET(Impl_, syntax_) - | |
| PROTOBUF_FIELD_OFFSET(Impl_, request_streaming_) + | |
| sizeof(Impl_::syntax_)); | |
| cached_has_bits = this_._impl_._has_bits_[0]; | |
| if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { | |
| if (CheckHasBit(cached_has_bits, 0x00000001U)) { | |
| this_._impl_.options_.Clear(); | |
| } | |
| if (CheckHasBit(cached_has_bits, 0x00000002U)) { | |
| this_._impl_.name_.ClearNonDefaultToEmpty(); | |
| } | |
| if (CheckHasBit(cached_has_bits, 0x00000004U)) { | |
| this_._impl_.request_type_url_.ClearNonDefaultToEmpty(); | |
| } | |
| if (CheckHasBit(cached_has_bits, 0x00000008U)) { | |
| this_._impl_.response_type_url_.ClearNonDefaultToEmpty(); | |
| } | |
| if (CheckHasBit(cached_has_bits, 0x00000010U)) { | |
| this_._impl_.edition_.ClearNonDefaultToEmpty(); | |
| } | |
| } | |
| this_._impl_._has_bits_.Clear(); | |
| this_._internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); | |
| } | |
| #if !defined(PROTOBUF_CUSTOM_VTABLE) | |
| PROTOBUF_NOINLINE void Method::Clear() { Clear(*this); } | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| PROTOBUF_NO_CUSTOM_VTABLE_INLINE | |
| ::uint8_t* PROTOBUF_NULLABLE Method::_InternalSerialize( | |
| const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NULLABLE target, | |
| ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { | |
| const Method& this_ = static_cast<const Method&>(base); | |
| if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { | |
| this_.CheckHasBitConsistency(); | |
| } | |
| // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Method) | |
| ::uint32_t cached_has_bits = 0; | |
| (void)cached_has_bits; | |
| cached_has_bits = this_._impl_._has_bits_[0]; | |
| if (BatchCheckHasBit(cached_has_bits, 0xffffffffU)) { | |
| // string name = 1; | |
| if (CheckHasBit(cached_has_bits, 0x00000002U)) { | |
| 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, "google.protobuf.Method.name"); | |
| target = stream->WriteStringMaybeAliased(1, _s, target); | |
| } | |
| } | |
| // string request_type_url = 2; | |
| if (CheckHasBit(cached_has_bits, 0x00000004U)) { | |
| if (!this_._internal_request_type_url().empty()) { | |
| const ::std::string& _s = this_._internal_request_type_url(); | |
| ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( | |
| _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Method.request_type_url"); | |
| target = stream->WriteStringMaybeAliased(2, _s, target); | |
| } | |
| } | |
| // bool request_streaming = 3; | |
| if (CheckHasBit(cached_has_bits, 0x00000020U)) { | |
| if (this_._internal_request_streaming() != 0) { | |
| target = stream->EnsureSpace(target); | |
| target = ::_pbi::WireFormatLite::WriteBoolToArray( | |
| 3, this_._internal_request_streaming(), target); | |
| } | |
| } | |
| // string response_type_url = 4; | |
| if (CheckHasBit(cached_has_bits, 0x00000008U)) { | |
| if (!this_._internal_response_type_url().empty()) { | |
| const ::std::string& _s = this_._internal_response_type_url(); | |
| ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( | |
| _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Method.response_type_url"); | |
| target = stream->WriteStringMaybeAliased(4, _s, target); | |
| } | |
| } | |
| // bool response_streaming = 5; | |
| if (CheckHasBit(cached_has_bits, 0x00000040U)) { | |
| if (this_._internal_response_streaming() != 0) { | |
| target = stream->EnsureSpace(target); | |
| target = ::_pbi::WireFormatLite::WriteBoolToArray( | |
| 5, this_._internal_response_streaming(), target); | |
| } | |
| } | |
| // repeated .google.protobuf.Option options = 6; | |
| if (CheckHasBit(cached_has_bits, 0x00000001U)) { | |
| for (const auto& sub : this_._impl_.options_) { | |
| target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( | |
| 6, sub, sub.GetCachedSize(), target, stream); | |
| } | |
| } | |
| // .google.protobuf.Syntax syntax = 7 [deprecated = true]; | |
| if (CheckHasBit(cached_has_bits, 0x00000080U)) { | |
| if (this_._internal_syntax() != 0) { | |
| target = stream->EnsureSpace(target); | |
| target = ::_pbi::WireFormatLite::WriteEnumToArray( | |
| 7, this_._internal_syntax(), target); | |
| } | |
| } | |
| // string edition = 8 [deprecated = true]; | |
| if (CheckHasBit(cached_has_bits, 0x00000010U)) { | |
| if (!this_._internal_edition().empty()) { | |
| const ::std::string& _s = this_._internal_edition(); | |
| ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( | |
| _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Method.edition"); | |
| target = stream->WriteStringMaybeAliased(8, _s, target); | |
| } | |
| } | |
| } | |
| if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { | |
| target = | |
| ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( | |
| this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); | |
| } | |
| // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Method) | |
| return target; | |
| } | |
| #if !defined(PROTOBUF_CUSTOM_VTABLE) | |
| ::uint8_t* PROTOBUF_NULLABLE Method::_InternalSerialize( | |
| ::uint8_t* PROTOBUF_NULLABLE target, | |
| ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { | |
| return _InternalSerialize(*this, target, stream); | |
| } | |
| #endif // !PROTOBUF_CUSTOM_VTABLE | |
| PROTOBUF_NO_CUSTOM_VTABLE_INLINE | |
| ::size_t Method::ByteSizeLong(const MessageLite& base) { | |
| const Method& this_ = static_cast<const Method&>(base); | |
| // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Method) | |
| ::size_t total_size = 0; | |
| ::uint32_t cached_has_bits [[maybe_unused]] = 0; | |
| ::_pbi::Prefetch5LinesFrom7Lines(&this_); | |
| cached_has_bits = this_._impl_._has_bits_[0]; | |
| if (BatchCheckHasBit(cached_has_bits, 0xffffffffU)) { | |
| // repeated .google.protobuf.Option options = 6; | |
| if (CheckHasBit(cached_has_bits, 0x00000001U)) { | |
| if (const auto& value = this_._impl_.options_; !value.empty()) { | |
| total_size += 1UL * value.size(); | |
| for (const auto& msg : value) { | |
| total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); | |
| } | |
| } | |
| } | |
| // string name = 1; | |
| if (CheckHasBit(cached_has_bits, 0x00000002U)) { | |
| if (!this_._internal_name().empty()) { | |
| total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( | |
| this_._impl_.name_.Get()); | |
| } | |
| } | |
| // string request_type_url = 2; | |
| if (CheckHasBit(cached_has_bits, 0x00000004U)) { | |
| if (!this_._internal_request_type_url().empty()) { | |
| total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( | |
| this_._impl_.request_type_url_.Get()); | |
| } | |
| } | |
| // string response_type_url = 4; | |
| if (CheckHasBit(cached_has_bits, 0x00000008U)) { | |
| if (!this_._internal_response_type_url().empty()) { | |
| total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( | |
| this_._impl_.response_type_url_.Get()); | |
| } | |
| } | |
| // string edition = 8 [deprecated = true]; | |
| if (CheckHasBit(cached_has_bits, 0x00000010U)) { | |
| if (!this_._internal_edition().empty()) { | |
| total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( | |
| this_._impl_.edition_.Get()); | |
| } | |
| } | |
| // bool request_streaming = 3; | |
| if (CheckHasBit(cached_has_bits, 0x00000020U)) { | |
| if (this_._internal_request_streaming() != 0) { | |
| total_size += 2; | |
| } | |
| } | |
| // bool response_streaming = 5; | |
| if (CheckHasBit(cached_has_bits, 0x00000040U)) { | |
| if (this_._internal_response_streaming() != 0) { | |
| total_size += 2; | |
| } | |
| } | |
| // .google.protobuf.Syntax syntax = 7 [deprecated = true]; | |
| if (CheckHasBit(cached_has_bits, 0x00000080U)) { | |
| if (this_._internal_syntax() != 0) { | |
| total_size += | |
| 1 + ::_pbi::WireFormatLite::EnumSize(this_._impl_.syntax_); | |
| } | |
| } | |
| } | |
| return this_.MaybeComputeUnknownFieldsSize(total_size, | |
| &this_._impl_._cached_size_); | |
| } | |
| #if !defined(PROTOBUF_CUSTOM_VTABLE) | |
| ::size_t Method::ByteSizeLong() const { return ByteSizeLong(*this); } | |
| #endif // !PROTOBUF_CUSTOM_VTABLE | |
| void Method::MergeImpl(::google::protobuf::MessageLite& to_msg, | |
| const ::google::protobuf::MessageLite& from_msg) { | |
| Method& this_ = static_cast<Method&>(to_msg); | |
| auto& from = static_cast<const Method&>(from_msg); | |
| if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { | |
| from.CheckHasBitConsistency(); | |
| } | |
| ::google::protobuf::Arena* arena = this_.GetArena(); | |
| // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Method) | |
| ABSL_DCHECK_NE(&from, &this_); | |
| ::uint32_t cached_has_bits = 0; | |
| (void)cached_has_bits; | |
| cached_has_bits = from._impl_._has_bits_[0]; | |
| if (BatchCheckHasBit(cached_has_bits, 0xffffffffU)) { | |
| if (CheckHasBit(cached_has_bits, 0x00000001U)) { | |
| if (const auto& sub = from._impl_.options_; !sub.empty()) { | |
| this_._internal_mutable_options()->InternalMergeFromWithArena( | |
| ::google::protobuf::MessageLite::internal_visibility(), arena, sub); | |
| } | |
| } | |
| if (CheckHasBit(cached_has_bits, 0x00000002U)) { | |
| if (!from._internal_name().empty()) { | |
| this_._internal_set_name(from._impl_.name_.Get()); | |
| } else if (this_._impl_.name_.IsDefault()) { | |
| this_._internal_set_name(""); | |
| } | |
| } | |
| if (CheckHasBit(cached_has_bits, 0x00000004U)) { | |
| if (!from._internal_request_type_url().empty()) { | |
| this_._internal_set_request_type_url(from._impl_.request_type_url_.Get()); | |
| } else if (this_._impl_.request_type_url_.IsDefault()) { | |
| this_._internal_set_request_type_url(""); | |
| } | |
| } | |
| if (CheckHasBit(cached_has_bits, 0x00000008U)) { | |
| if (!from._internal_response_type_url().empty()) { | |
| this_._internal_set_response_type_url(from._impl_.response_type_url_.Get()); | |
| } else if (this_._impl_.response_type_url_.IsDefault()) { | |
| this_._internal_set_response_type_url(""); | |
| } | |
| } | |
| if (CheckHasBit(cached_has_bits, 0x00000010U)) { | |
| if (!from._internal_edition().empty()) { | |
| this_._internal_set_edition(from._impl_.edition_.Get()); | |
| } else if (this_._impl_.edition_.IsDefault()) { | |
| this_._internal_set_edition(""); | |
| } | |
| } | |
| if (CheckHasBit(cached_has_bits, 0x00000020U)) { | |
| if (from._internal_request_streaming() != 0) { | |
| this_._impl_.request_streaming_ = from._impl_.request_streaming_; | |
| } | |
| } | |
| if (CheckHasBit(cached_has_bits, 0x00000040U)) { | |
| if (from._internal_response_streaming() != 0) { | |
| this_._impl_.response_streaming_ = from._impl_.response_streaming_; | |
| } | |
| } | |
| if (CheckHasBit(cached_has_bits, 0x00000080U)) { | |
| if (from._internal_syntax() != 0) { | |
| this_._impl_.syntax_ = from._impl_.syntax_; | |
| } | |
| } | |
| } | |
| this_._impl_._has_bits_[0] |= cached_has_bits; | |
| this_._internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( | |
| from._internal_metadata_); | |
| } | |
| void Method::CopyFrom(const Method& from) { | |
| // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Method) | |
| if (&from == this) return; | |
| Clear(); | |
| MergeFrom(from); | |
| } | |
| void Method::InternalSwap(Method* PROTOBUF_RESTRICT PROTOBUF_NONNULL 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_.options_.InternalSwap(&other->_impl_.options_); | |
| ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); | |
| ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.request_type_url_, &other->_impl_.request_type_url_, arena); | |
| ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.response_type_url_, &other->_impl_.response_type_url_, arena); | |
| ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.edition_, &other->_impl_.edition_, arena); | |
| ::google::protobuf::internal::memswap< | |
| PROTOBUF_FIELD_OFFSET(Method, _impl_.syntax_) | |
| + sizeof(Method::_impl_.syntax_) | |
| - PROTOBUF_FIELD_OFFSET(Method, _impl_.request_streaming_)>( | |
| reinterpret_cast<char*>(&_impl_.request_streaming_), | |
| reinterpret_cast<char*>(&other->_impl_.request_streaming_)); | |
| } | |
| ::google::protobuf::Metadata Method::GetMetadata() const { | |
| return Super_::GetMetadataImpl(Method_globals_.class_data); | |
| } | |
| // =================================================================== | |
| Mixin::Mixin(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| : Super_(arena, &Mixin_globals_.class_data) { | |
| #else // PROTOBUF_CUSTOM_VTABLE | |
| : Super_(arena) { | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| SharedCtor(arena); | |
| // @@protoc_insertion_point(arena_constructor:google.protobuf.Mixin) | |
| } | |
| PROTOBUF_NDEBUG_INLINE Mixin::Impl_::Impl_( | |
| [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, | |
| [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, | |
| [[maybe_unused]] const ::google::protobuf::Mixin& from_msg) | |
| : _has_bits_{from._has_bits_}, | |
| name_(arena, from.name_), | |
| root_(arena, from.root_) {} | |
| Mixin::Mixin( | |
| ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, | |
| const Mixin& from) | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| : Super_(arena, &Mixin_globals_.class_data) { | |
| #else // PROTOBUF_CUSTOM_VTABLE | |
| : Super_(arena) { | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| Mixin& this_ [[maybe_unused]] = *this; | |
| _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( | |
| from._internal_metadata_); | |
| new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); | |
| // @@protoc_insertion_point(copy_constructor:google.protobuf.Mixin) | |
| } | |
| PROTOBUF_NDEBUG_INLINE Mixin::Impl_::Impl_( | |
| [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, | |
| [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) | |
| : name_(arena), | |
| root_(arena) {} | |
| inline void Mixin::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { | |
| new (&_impl_) Impl_(internal_visibility(), arena); | |
| } | |
| Mixin::~Mixin() { | |
| // @@protoc_insertion_point(destructor:google.protobuf.Mixin) | |
| SharedDtor(*this); | |
| } | |
| PROTOBUF_NO_CUSTOM_VTABLE_INLINE void Mixin::SharedDtor( | |
| MessageLite& self) { | |
| Mixin& this_ = static_cast<Mixin&>(self); | |
| if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { | |
| this_.CheckHasBitConsistency(); | |
| } | |
| this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); | |
| ABSL_DCHECK(!::_pbi::HasArena(this_)); | |
| this_._impl_.name_.Destroy(); | |
| this_._impl_.root_.Destroy(); | |
| this_._impl_.~Impl_(); | |
| } | |
| PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL | |
| Mixin::GetClassData() const { | |
| ::google::protobuf::internal::PrefetchToLocalCache(&Mixin_globals_); | |
| ::google::protobuf::internal::PrefetchToLocalCache( | |
| ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Mixin_globals_)); | |
| return &Mixin_globals_.class_data; | |
| } | |
| PROTOBUF_NO_CUSTOM_VTABLE_INLINE | |
| void Mixin::Clear(MessageLite& base) { | |
| Mixin& this_ = static_cast<Mixin&>(base); | |
| // @@protoc_insertion_point(message_clear_start:google.protobuf.Mixin) | |
| ::google::protobuf::internal::TSanWrite(&this_._impl_); | |
| ::uint32_t cached_has_bits [[maybe_unused]] = 0; | |
| cached_has_bits = this_._impl_._has_bits_[0]; | |
| if (BatchCheckHasBit(cached_has_bits, 0xffffffffU)) { | |
| if (CheckHasBit(cached_has_bits, 0x00000001U)) { | |
| this_._impl_.name_.ClearNonDefaultToEmpty(); | |
| } | |
| if (CheckHasBit(cached_has_bits, 0x00000002U)) { | |
| this_._impl_.root_.ClearNonDefaultToEmpty(); | |
| } | |
| } | |
| this_._impl_._has_bits_.Clear(); | |
| this_._internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); | |
| } | |
| #if !defined(PROTOBUF_CUSTOM_VTABLE) | |
| PROTOBUF_NOINLINE void Mixin::Clear() { Clear(*this); } | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| PROTOBUF_NO_CUSTOM_VTABLE_INLINE | |
| ::uint8_t* PROTOBUF_NULLABLE Mixin::_InternalSerialize( | |
| const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NULLABLE target, | |
| ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { | |
| const Mixin& this_ = static_cast<const Mixin&>(base); | |
| if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { | |
| this_.CheckHasBitConsistency(); | |
| } | |
| // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Mixin) | |
| ::uint32_t cached_has_bits = 0; | |
| (void)cached_has_bits; | |
| cached_has_bits = this_._impl_._has_bits_[0]; | |
| if (BatchCheckHasBit(cached_has_bits, 0xffffffffU)) { | |
| // string name = 1; | |
| if (CheckHasBit(cached_has_bits, 0x00000001U)) { | |
| 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, "google.protobuf.Mixin.name"); | |
| target = stream->WriteStringMaybeAliased(1, _s, target); | |
| } | |
| } | |
| // string root = 2; | |
| if (CheckHasBit(cached_has_bits, 0x00000002U)) { | |
| if (!this_._internal_root().empty()) { | |
| const ::std::string& _s = this_._internal_root(); | |
| ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( | |
| _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.protobuf.Mixin.root"); | |
| target = stream->WriteStringMaybeAliased(2, _s, target); | |
| } | |
| } | |
| } | |
| if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { | |
| target = | |
| ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( | |
| this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); | |
| } | |
| // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Mixin) | |
| return target; | |
| } | |
| #if !defined(PROTOBUF_CUSTOM_VTABLE) | |
| ::uint8_t* PROTOBUF_NULLABLE Mixin::_InternalSerialize( | |
| ::uint8_t* PROTOBUF_NULLABLE target, | |
| ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { | |
| return _InternalSerialize(*this, target, stream); | |
| } | |
| #endif // !PROTOBUF_CUSTOM_VTABLE | |
| PROTOBUF_NO_CUSTOM_VTABLE_INLINE | |
| ::size_t Mixin::ByteSizeLong(const MessageLite& base) { | |
| const Mixin& this_ = static_cast<const Mixin&>(base); | |
| // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Mixin) | |
| ::size_t total_size = 0; | |
| ::uint32_t cached_has_bits [[maybe_unused]] = 0; | |
| ::_pbi::Prefetch5LinesFrom7Lines(&this_); | |
| cached_has_bits = this_._impl_._has_bits_[0]; | |
| if (BatchCheckHasBit(cached_has_bits, 0xffffffffU)) { | |
| // string name = 1; | |
| if (CheckHasBit(cached_has_bits, 0x00000001U)) { | |
| if (!this_._internal_name().empty()) { | |
| total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( | |
| this_._impl_.name_.Get()); | |
| } | |
| } | |
| // string root = 2; | |
| if (CheckHasBit(cached_has_bits, 0x00000002U)) { | |
| if (!this_._internal_root().empty()) { | |
| total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( | |
| this_._impl_.root_.Get()); | |
| } | |
| } | |
| } | |
| return this_.MaybeComputeUnknownFieldsSize(total_size, | |
| &this_._impl_._cached_size_); | |
| } | |
| #if !defined(PROTOBUF_CUSTOM_VTABLE) | |
| ::size_t Mixin::ByteSizeLong() const { return ByteSizeLong(*this); } | |
| #endif // !PROTOBUF_CUSTOM_VTABLE | |
| void Mixin::MergeImpl(::google::protobuf::MessageLite& to_msg, | |
| const ::google::protobuf::MessageLite& from_msg) { | |
| Mixin& this_ = static_cast<Mixin&>(to_msg); | |
| auto& from = static_cast<const Mixin&>(from_msg); | |
| if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { | |
| from.CheckHasBitConsistency(); | |
| } | |
| // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Mixin) | |
| ABSL_DCHECK_NE(&from, &this_); | |
| ::uint32_t cached_has_bits = 0; | |
| (void)cached_has_bits; | |
| cached_has_bits = from._impl_._has_bits_[0]; | |
| if (BatchCheckHasBit(cached_has_bits, 0xffffffffU)) { | |
| if (CheckHasBit(cached_has_bits, 0x00000001U)) { | |
| if (!from._internal_name().empty()) { | |
| this_._internal_set_name(from._impl_.name_.Get()); | |
| } else if (this_._impl_.name_.IsDefault()) { | |
| this_._internal_set_name(""); | |
| } | |
| } | |
| if (CheckHasBit(cached_has_bits, 0x00000002U)) { | |
| if (!from._internal_root().empty()) { | |
| this_._internal_set_root(from._impl_.root_.Get()); | |
| } else if (this_._impl_.root_.IsDefault()) { | |
| this_._internal_set_root(""); | |
| } | |
| } | |
| } | |
| this_._impl_._has_bits_[0] |= cached_has_bits; | |
| this_._internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( | |
| from._internal_metadata_); | |
| } | |
| void Mixin::CopyFrom(const Mixin& from) { | |
| // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Mixin) | |
| if (&from == this) return; | |
| Clear(); | |
| MergeFrom(from); | |
| } | |
| void Mixin::InternalSwap(Mixin* PROTOBUF_RESTRICT PROTOBUF_NONNULL 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]); | |
| ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); | |
| ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.root_, &other->_impl_.root_, arena); | |
| } | |
| ::google::protobuf::Metadata Mixin::GetMetadata() const { | |
| return Super_::GetMetadataImpl(Mixin_globals_.class_data); | |
| } | |
| // @@protoc_insertion_point(namespace_scope) | |
| } // namespace protobuf | |
| } // namespace google | |
| namespace google { | |
| namespace protobuf { | |
| } // namespace protobuf | |
| } // namespace google | |
| // @@protoc_insertion_point(global_scope) | |
| PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type | |
| _static_init2_ [[maybe_unused]] = | |
| (::_pbi::AddDescriptors(&descriptor_table_google_2fprotobuf_2fapi_2eproto), | |
| ::std::false_type{}); | |
| #include "google/protobuf/port_undef.inc" | |
| // clang-format on |