| // clang-format off | |
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |
| // NO CHECKED-IN PROTOBUF GENCODE | |
| // source: google/protobuf/struct.proto | |
| // Protobuf C++ Version: 7.38.0-dev | |
| #include "google/protobuf/struct.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::Struct_FieldsEntry_DoNotUse | |
| {&::_pbi::kDescriptorMethods, &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, /* tracker*/ nullptr,}, | |
| // ::google::protobuf::Struct | |
| {&::_pbi::kDescriptorMethods, &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, /* tracker*/ nullptr,}, | |
| // ::google::protobuf::Value | |
| {&::_pbi::kDescriptorMethods, &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, /* tracker*/ nullptr,}, | |
| // ::google::protobuf::ListValue | |
| {&::_pbi::kDescriptorMethods, &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, /* tracker*/ nullptr,}, | |
| }; | |
| } // namespace | |
| namespace google { | |
| namespace protobuf { | |
| class ListValue::_Internal { | |
| public: | |
| using HasBits = decltype(::std::declval<ListValue>()._impl_._has_bits_); | |
| static constexpr ::int32_t kHasBitsOffset = | |
| 8 * PROTOBUF_FIELD_OFFSET(ListValue, _impl_._has_bits_); | |
| static constexpr ListValue::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 ListValue::ParseTableT_ ListValue::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { | |
| return ParseTableT_{ | |
| { | |
| PROTOBUF_FIELD_OFFSET(ListValue, _impl_._has_bits_), | |
| 0, // no _extensions_ | |
| 1, 0, // max_field_number, fast_idx_mask | |
| offsetof(ParseTableT_, field_lookup_table), | |
| 4294967294, // skipmap | |
| offsetof(ParseTableT_, field_entries), | |
| 1, // num_field_entries | |
| 1, // num_aux_entries | |
| offsetof(ParseTableT_, aux_entries), | |
| class_data, | |
| nullptr, // post_loop_handler | |
| ::_pbi::TcParser::MpUnknownFields, // fallback | |
| }, {{ | |
| // repeated .google.protobuf.Value values = 1; | |
| {::_pbi::TcParser::FastMcR1, | |
| {10, 0, 0, | |
| PROTOBUF_FIELD_OFFSET(ListValue, _impl_.values_)}}, | |
| }}, {{ | |
| 65535, 65535 | |
| }}, {{ | |
| // repeated .google.protobuf.Value values = 1; | |
| {PROTOBUF_FIELD_OFFSET(ListValue, _impl_.values_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvClassData)}, | |
| }}, | |
| {{ | |
| {::_pbi::FieldAuxClassData(), &::google::protobuf::Value_globals_}, | |
| }}, | |
| {{ | |
| }}, | |
| }; | |
| } | |
| inline constexpr ListValue::Impl_::Impl_( | |
| [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, | |
| ::_pbi::ConstantInitialized) noexcept | |
| : values_ { visibility, ::_pbi::InternalMetadataOffset::Build< | |
| ::google::protobuf::ListValue, | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::ListValue, _impl_.values_)>() | |
| } | |
| {} | |
| template <typename> | |
| constexpr ListValue::ListValue(::_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 ListValue::_Internal::PlacementNew( | |
| const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, | |
| ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { | |
| return ::new (mem) ListValue(arena); | |
| } | |
| constexpr auto ListValue::_Internal::NewImpl() { | |
| return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ListValue), alignof(ListValue)); | |
| } | |
| constexpr auto ListValue::_Internal::GenerateClassData() { | |
| return ::google::protobuf::internal::ClassData{ | |
| nullptr, // IsInitialized | |
| &ListValue::MergeImpl, | |
| Super_::GetNewImpl<ListValue>(), | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| &ListValue::SharedDtor, | |
| &Clear, &ByteSizeLong, &_InternalSerialize, | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| PROTOBUF_FIELD_OFFSET(ListValue, _impl_._cached_size_), | |
| &file_reflection_data[3], | |
| }; | |
| } | |
| struct ListValueGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { | |
| constexpr ListValueGlobalsTypeInternal() | |
| : MessageGlobalsBase( | |
| ::_pbi::PrivateAccess::GenerateClassData<ListValue>()), | |
| _default(::_pbi::ConstantInitialized{}, GetClassData()), | |
| _table( | |
| ::_pbi::PrivateAccess::GenerateParseTable<ListValue>( | |
| GetClassData())) {} | |
| ~ListValueGlobalsTypeInternal() {} | |
| union { | |
| alignas(::_pbi::kMaxMessageAlignment) ListValue _default; | |
| }; | |
| decltype(::_pbi::PrivateAccess::GenerateParseTable<ListValue>( | |
| ::std::declval<const ::_pbi::ClassData*>())) _table; | |
| }; | |
| static_assert(PROTOBUF_FIELD_OFFSET(ListValueGlobalsTypeInternal, _default) == | |
| ::_pbi::MessageGlobalsBase::OffsetToDefault()); | |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT | |
| PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ListValueGlobalsTypeInternal ListValue_globals_ | |
| PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); | |
| class Struct::_Internal { | |
| public: | |
| using HasBits = decltype(::std::declval<Struct>()._impl_._has_bits_); | |
| static constexpr ::int32_t kHasBitsOffset = | |
| 8 * PROTOBUF_FIELD_OFFSET(Struct, _impl_._has_bits_); | |
| static constexpr Struct::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 Struct::ParseTableT_ Struct::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { | |
| return ParseTableT_{ | |
| { | |
| PROTOBUF_FIELD_OFFSET(Struct, _impl_._has_bits_), | |
| 0, // no _extensions_ | |
| 1, 0, // max_field_number, fast_idx_mask | |
| offsetof(ParseTableT_, field_lookup_table), | |
| 4294967294, // skipmap | |
| offsetof(ParseTableT_, field_entries), | |
| 1, // num_field_entries | |
| 2, // num_aux_entries | |
| offsetof(ParseTableT_, aux_entries), | |
| class_data, | |
| nullptr, // post_loop_handler | |
| ::_pbi::TcParser::MpUnknownFields, // fallback | |
| }, {{ | |
| // map<string, .google.protobuf.Value> fields = 1; | |
| {::_pbi::TcParser::FastMiniParse1, | |
| {10, ::uint8_t{7}, | |
| ::uint32_t{ | |
| PROTOBUF_FIELD_OFFSET(ParseTableT_, field_entries) + | |
| sizeof(_pbi::TcParseTableBase::FieldEntry) * 0}}}, | |
| }}, {{ | |
| 65535, 65535 | |
| }}, {{ | |
| // map<string, .google.protobuf.Value> fields = 1; | |
| {PROTOBUF_FIELD_OFFSET(Struct, _impl_.fields_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, | |
| }}, | |
| {{ | |
| {::_pbi::TcParser::GetMapAuxInfo( | |
| 1, 0, 9, 11, 0)}, | |
| {::_pbi::FieldAuxClassData(), &::google::protobuf::Value_globals_}, | |
| }}, | |
| {{ | |
| "\26\6\0\0\0\0\0\0" | |
| "google.protobuf.Struct" | |
| "fields" | |
| }}, | |
| }; | |
| } | |
| inline constexpr Struct::Impl_::Impl_( | |
| [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, | |
| ::_pbi::ConstantInitialized) noexcept | |
| : fields_ { visibility, ::_pbi::InternalMetadataOffset::Build< | |
| ::google::protobuf::Struct, | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Struct, _impl_.fields_)>() | |
| } | |
| {} | |
| template <typename> | |
| constexpr Struct::Struct(::_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 Struct::_Internal::PlacementNew( | |
| const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, | |
| ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { | |
| return ::new (mem) Struct(arena); | |
| } | |
| constexpr auto Struct::_Internal::NewImpl() { | |
| return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Struct), alignof(Struct)); | |
| } | |
| constexpr auto Struct::_Internal::GenerateClassData() { | |
| return ::google::protobuf::internal::ClassData{ | |
| nullptr, // IsInitialized | |
| &Struct::MergeImpl, | |
| Super_::GetNewImpl<Struct>(), | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| &Struct::SharedDtor, | |
| &Clear, &ByteSizeLong, &_InternalSerialize, | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| PROTOBUF_FIELD_OFFSET(Struct, _impl_._cached_size_), | |
| &file_reflection_data[1], | |
| }; | |
| } | |
| struct StructGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { | |
| constexpr StructGlobalsTypeInternal() | |
| : MessageGlobalsBase( | |
| ::_pbi::PrivateAccess::GenerateClassData<Struct>()), | |
| _default(::_pbi::ConstantInitialized{}, GetClassData()), | |
| _table( | |
| ::_pbi::PrivateAccess::GenerateParseTable<Struct>( | |
| GetClassData())) {} | |
| ~StructGlobalsTypeInternal() {} | |
| union { | |
| alignas(::_pbi::kMaxMessageAlignment) Struct _default; | |
| }; | |
| decltype(::_pbi::PrivateAccess::GenerateParseTable<Struct>( | |
| ::std::declval<const ::_pbi::ClassData*>())) _table; | |
| }; | |
| static_assert(PROTOBUF_FIELD_OFFSET(StructGlobalsTypeInternal, _default) == | |
| ::_pbi::MessageGlobalsBase::OffsetToDefault()); | |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT | |
| PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const StructGlobalsTypeInternal Struct_globals_ | |
| PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); | |
| class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Struct_FieldsEntry_DoNotUse final | |
| : public ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, | |
| ::google::protobuf::internal::WireFormatLite::TYPE_STRING, | |
| ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { | |
| using Super_ = | |
| ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, | |
| ::google::protobuf::internal::WireFormatLite::TYPE_STRING, | |
| ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; | |
| public: | |
| Struct_FieldsEntry_DoNotUse(); | |
| template <typename = void> | |
| explicit constexpr Struct_FieldsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, | |
| const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL | |
| class_data); | |
| explicit Struct_FieldsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); | |
| private: | |
| friend class ::google::protobuf::MessageLite; | |
| friend struct ::TableStruct_google_2fprotobuf_2fstruct_2eproto; | |
| friend ::google::protobuf::internal::PrivateAccess; | |
| friend Struct_FieldsEntry_DoNotUseGlobalsTypeInternal; | |
| using ParseTableT_ = | |
| ::google::protobuf::internal::TcParseTable<1, 2, | |
| 1, 46, | |
| 2>; | |
| class _Internal; | |
| const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; | |
| }; | |
| class Struct_FieldsEntry_DoNotUse::_Internal { | |
| public: | |
| using HasBits = decltype(::std::declval<Struct_FieldsEntry_DoNotUse>()._impl_._has_bits_); | |
| static constexpr ::int32_t kHasBitsOffset = | |
| 8 * PROTOBUF_FIELD_OFFSET(Struct_FieldsEntry_DoNotUse, _impl_._has_bits_); | |
| static constexpr Struct_FieldsEntry_DoNotUse::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 Struct_FieldsEntry_DoNotUse::ParseTableT_ Struct_FieldsEntry_DoNotUse::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { | |
| return ParseTableT_{ | |
| { | |
| PROTOBUF_FIELD_OFFSET(Struct_FieldsEntry_DoNotUse, _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 | |
| 1, // num_aux_entries | |
| offsetof(ParseTableT_, aux_entries), | |
| class_data, | |
| nullptr, // post_loop_handler | |
| ::_pbi::TcParser::DiscardEverythingFallback, // fallback | |
| }, {{ | |
| // .google.protobuf.Value value = 2; | |
| {::_pbi::TcParser::FastMcS1, | |
| {18, 1, 0, | |
| PROTOBUF_FIELD_OFFSET(Struct_FieldsEntry_DoNotUse, _impl_.value_)}}, | |
| // string key = 1; | |
| {::_pbi::TcParser::FastUS1, | |
| {10, 0, 0, | |
| PROTOBUF_FIELD_OFFSET(Struct_FieldsEntry_DoNotUse, _impl_.key_)}}, | |
| }}, {{ | |
| 65535, 65535 | |
| }}, {{ | |
| // string key = 1; | |
| {PROTOBUF_FIELD_OFFSET(Struct_FieldsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, | |
| // .google.protobuf.Value value = 2; | |
| {PROTOBUF_FIELD_OFFSET(Struct_FieldsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvClassData)}, | |
| }}, | |
| {{ | |
| {::_pbi::FieldAuxClassData(), &::google::protobuf::Value_globals_}, | |
| }}, | |
| {{ | |
| "\42\3\0\0\0\0\0\0" | |
| "google.protobuf.Struct.FieldsEntry" | |
| "key" | |
| }}, | |
| }; | |
| } | |
| template <typename> | |
| constexpr Struct_FieldsEntry_DoNotUse::Struct_FieldsEntry_DoNotUse(::_pbi::ConstantInitialized, | |
| const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) | |
| : Super_( | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| class_data | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| ) { | |
| } | |
| inline void* PROTOBUF_NONNULL Struct_FieldsEntry_DoNotUse::_Internal::PlacementNew( | |
| const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, | |
| ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { | |
| return ::new (mem) Struct_FieldsEntry_DoNotUse(arena); | |
| } | |
| constexpr auto Struct_FieldsEntry_DoNotUse::_Internal::NewImpl() { | |
| return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Struct_FieldsEntry_DoNotUse), alignof(Struct_FieldsEntry_DoNotUse)); | |
| } | |
| constexpr auto Struct_FieldsEntry_DoNotUse::_Internal::GenerateClassData() { | |
| return ::google::protobuf::internal::ClassData{ | |
| nullptr, // IsInitialized | |
| &Struct_FieldsEntry_DoNotUse::MergeImpl, | |
| Super_::GetNewImpl<Struct_FieldsEntry_DoNotUse>(), | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| &Struct_FieldsEntry_DoNotUse::SharedDtor, | |
| &Struct_FieldsEntry_DoNotUse::ClearImpl, Super_::ByteSizeLongImpl, | |
| Super_::_InternalSerializeImpl, | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| PROTOBUF_FIELD_OFFSET(Struct_FieldsEntry_DoNotUse, _impl_._cached_size_), | |
| &file_reflection_data[0], | |
| }; | |
| } | |
| struct Struct_FieldsEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { | |
| constexpr Struct_FieldsEntry_DoNotUseGlobalsTypeInternal() | |
| : MessageGlobalsBase( | |
| ::_pbi::PrivateAccess::GenerateClassData<Struct_FieldsEntry_DoNotUse>()), | |
| _default(::_pbi::ConstantInitialized{}, GetClassData()), | |
| _table( | |
| ::_pbi::PrivateAccess::GenerateParseTable<Struct_FieldsEntry_DoNotUse>( | |
| GetClassData())) {} | |
| ~Struct_FieldsEntry_DoNotUseGlobalsTypeInternal() {} | |
| union { | |
| alignas(::_pbi::kMaxMessageAlignment) Struct_FieldsEntry_DoNotUse _default; | |
| }; | |
| decltype(::_pbi::PrivateAccess::GenerateParseTable<Struct_FieldsEntry_DoNotUse>( | |
| ::std::declval<const ::_pbi::ClassData*>())) _table; | |
| }; | |
| static_assert(PROTOBUF_FIELD_OFFSET(Struct_FieldsEntry_DoNotUseGlobalsTypeInternal, _default) == | |
| ::_pbi::MessageGlobalsBase::OffsetToDefault()); | |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT | |
| PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Struct_FieldsEntry_DoNotUseGlobalsTypeInternal Struct_FieldsEntry_DoNotUse_globals_ | |
| PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); | |
| class Value::_Internal { | |
| public: | |
| static constexpr ::int32_t kOneofCaseOffset = | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Value, _impl_._oneof_case_); | |
| static constexpr Value::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 Value::ParseTableT_ Value::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { | |
| return ParseTableT_{ | |
| { | |
| PROTOBUF_FIELD_OFFSET(Value, | |
| _impl_._cached_size_), // no hasbits | |
| 0, // no _extensions_ | |
| 6, 0, // max_field_number, fast_idx_mask | |
| offsetof(ParseTableT_, field_lookup_table), | |
| 4294967232, // skipmap | |
| offsetof(ParseTableT_, field_entries), | |
| 6, // num_field_entries | |
| 2, // num_aux_entries | |
| offsetof(ParseTableT_, aux_entries), | |
| class_data, | |
| nullptr, // post_loop_handler | |
| ::_pbi::TcParser::MpUnknownFields, // fallback | |
| }, {{ | |
| // bool bool_value = 4; | |
| {::_pbi::TcParser::FastMiniParse1, | |
| {32, ::uint8_t{1}, | |
| ::uint32_t{ | |
| PROTOBUF_FIELD_OFFSET(ParseTableT_, field_entries) + | |
| sizeof(_pbi::TcParseTableBase::FieldEntry) * 3}}}, | |
| }}, {{ | |
| 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::kTvClassData)}, | |
| // .google.protobuf.ListValue list_value = 6; | |
| {PROTOBUF_FIELD_OFFSET(Value, _impl_.kind_.list_value_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvClassData)}, | |
| }}, | |
| {{ | |
| {::_pbi::FieldAuxClassData(), &::google::protobuf::Struct_globals_}, | |
| {::_pbi::FieldAuxClassData(), &::google::protobuf::ListValue_globals_}, | |
| }}, | |
| {{ | |
| "\25\0\0\14\0\0\0\0" | |
| "google.protobuf.Value" | |
| "string_value" | |
| }}, | |
| }; | |
| } | |
| inline constexpr Value::Impl_::Impl_( | |
| [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, | |
| ::_pbi::ConstantInitialized) noexcept | |
| : kind_{}, | |
| _oneof_case_{} {} | |
| template <typename> | |
| constexpr Value::Value(::_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 Value::_Internal::PlacementNew( | |
| const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, | |
| ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { | |
| return ::new (mem) Value(arena); | |
| } | |
| constexpr auto Value::_Internal::NewImpl() { | |
| return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Value), alignof(Value)); | |
| } | |
| constexpr auto Value::_Internal::GenerateClassData() { | |
| return ::google::protobuf::internal::ClassData{ | |
| nullptr, // IsInitialized | |
| &Value::MergeImpl, | |
| Super_::GetNewImpl<Value>(), | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| &Value::SharedDtor, | |
| &Clear, &ByteSizeLong, &_InternalSerialize, | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| PROTOBUF_FIELD_OFFSET(Value, _impl_._cached_size_), | |
| &file_reflection_data[2], | |
| }; | |
| } | |
| struct ValueGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { | |
| constexpr ValueGlobalsTypeInternal() | |
| : MessageGlobalsBase( | |
| ::_pbi::PrivateAccess::GenerateClassData<Value>()), | |
| _default(::_pbi::ConstantInitialized{}, GetClassData()), | |
| _table( | |
| ::_pbi::PrivateAccess::GenerateParseTable<Value>( | |
| GetClassData())) {} | |
| ~ValueGlobalsTypeInternal() {} | |
| union { | |
| alignas(::_pbi::kMaxMessageAlignment) Value _default; | |
| }; | |
| decltype(::_pbi::PrivateAccess::GenerateParseTable<Value>( | |
| ::std::declval<const ::_pbi::ClassData*>())) _table; | |
| }; | |
| static_assert(PROTOBUF_FIELD_OFFSET(ValueGlobalsTypeInternal, _default) == | |
| ::_pbi::MessageGlobalsBase::OffsetToDefault()); | |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT | |
| PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ValueGlobalsTypeInternal Value_globals_ | |
| PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); | |
| } // namespace protobuf | |
| } // namespace google | |
| static const ::_pb::EnumDescriptor* PROTOBUF_NONNULL | |
| file_level_enum_descriptors_google_2fprotobuf_2fstruct_2eproto[1]; | |
| static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE | |
| file_level_service_descriptors_google_2fprotobuf_2fstruct_2eproto = nullptr; | |
| const ::uint32_t | |
| TableStruct_google_2fprotobuf_2fstruct_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( | |
| protodesc_cold) = { | |
| 0x081, // bitmap | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Struct_FieldsEntry_DoNotUse, _impl_._has_bits_), | |
| 5, // hasbit index offset | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Struct_FieldsEntry_DoNotUse, _impl_.key_), | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Struct_FieldsEntry_DoNotUse, _impl_.value_), | |
| 0, | |
| 1, | |
| 0x081, // bitmap | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Struct, _impl_._has_bits_), | |
| 4, // hasbit index offset | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Struct, _impl_.fields_), | |
| 0, | |
| 0x004, // bitmap | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Value, _impl_._oneof_case_[0]), | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Value, _impl_.kind_), | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Value, _impl_.kind_), | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Value, _impl_.kind_), | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Value, _impl_.kind_), | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Value, _impl_.kind_), | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Value, _impl_.kind_), | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Value, _impl_.kind_), | |
| 0x081, // bitmap | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::ListValue, _impl_._has_bits_), | |
| 4, // hasbit index offset | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::ListValue, _impl_.values_), | |
| 0, | |
| }; | |
| static const ::_pbi::MigrationSchema | |
| schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { | |
| {0, sizeof(::google::protobuf::Struct_FieldsEntry_DoNotUse)}, | |
| {7, sizeof(::google::protobuf::Struct)}, | |
| {12, sizeof(::google::protobuf::Value)}, | |
| {21, sizeof(::google::protobuf::ListValue)}, | |
| }; | |
| static const ::_pbi::MessageGlobalsBase* PROTOBUF_NONNULL const | |
| file_message_globals[] = { | |
| &::google::protobuf::Struct_FieldsEntry_DoNotUse_globals_, | |
| &::google::protobuf::Struct_globals_, | |
| &::google::protobuf::Value_globals_, | |
| &::google::protobuf::ListValue_globals_, | |
| }; | |
| const char descriptor_table_protodef_google_2fprotobuf_2fstruct_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( | |
| protodesc_cold) = { | |
| "\n\034google/protobuf/struct.proto\022\017google.p" | |
| "rotobuf\"\204\001\n\006Struct\0223\n\006fields\030\001 \003(\0132#.goo" | |
| "gle.protobuf.Struct.FieldsEntry\032E\n\013Field" | |
| "sEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goo" | |
| "gle.protobuf.Value:\0028\001\"\352\001\n\005Value\0220\n\nnull" | |
| "_value\030\001 \001(\0162\032.google.protobuf.NullValue" | |
| "H\000\022\026\n\014number_value\030\002 \001(\001H\000\022\026\n\014string_val" | |
| "ue\030\003 \001(\tH\000\022\024\n\nbool_value\030\004 \001(\010H\000\022/\n\014stru" | |
| "ct_value\030\005 \001(\0132\027.google.protobuf.StructH" | |
| "\000\0220\n\nlist_value\030\006 \001(\0132\032.google.protobuf." | |
| "ListValueH\000B\006\n\004kind\"3\n\tListValue\022&\n\006valu" | |
| "es\030\001 \003(\0132\026.google.protobuf.Value*\033\n\tNull" | |
| "Value\022\016\n\nNULL_VALUE\020\000B\177\n\023com.google.prot" | |
| "obufB\013StructProtoP\001Z/google.golang.org/p" | |
| "rotobuf/types/known/structpb\370\001\001\242\002\003GPB\252\002\036" | |
| "Google.Protobuf.WellKnownTypesb\006proto3" | |
| }; | |
| static ::absl::once_flag descriptor_table_google_2fprotobuf_2fstruct_2eproto_once; | |
| PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_google_2fprotobuf_2fstruct_2eproto = { | |
| false, | |
| false, | |
| 638, | |
| descriptor_table_protodef_google_2fprotobuf_2fstruct_2eproto, | |
| "google/protobuf/struct.proto", | |
| &descriptor_table_google_2fprotobuf_2fstruct_2eproto_once, | |
| nullptr, | |
| 0, | |
| 4, | |
| schemas, | |
| file_message_globals, | |
| TableStruct_google_2fprotobuf_2fstruct_2eproto::offsets, | |
| file_level_enum_descriptors_google_2fprotobuf_2fstruct_2eproto, | |
| file_level_service_descriptors_google_2fprotobuf_2fstruct_2eproto, | |
| }; | |
| namespace google { | |
| namespace protobuf { | |
| [[nodiscard]] const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL | |
| NullValue_descriptor() { | |
| ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2fprotobuf_2fstruct_2eproto); | |
| return file_level_enum_descriptors_google_2fprotobuf_2fstruct_2eproto[0]; | |
| } | |
| PROTOBUF_CONSTINIT const uint32_t NullValue_internal_data_[] = { | |
| 65536u, 0u, }; | |
| // =================================================================== | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| Struct_FieldsEntry_DoNotUse::Struct_FieldsEntry_DoNotUse() : Super_(&Struct_FieldsEntry_DoNotUse_globals_.class_data) {} | |
| Struct_FieldsEntry_DoNotUse::Struct_FieldsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) | |
| : Super_(arena, &Struct_FieldsEntry_DoNotUse_globals_.class_data) {} | |
| #else // PROTOBUF_CUSTOM_VTABLE | |
| Struct_FieldsEntry_DoNotUse::Struct_FieldsEntry_DoNotUse() : Super_() {} | |
| Struct_FieldsEntry_DoNotUse::Struct_FieldsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : Super_(arena) {} | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL | |
| Struct_FieldsEntry_DoNotUse::GetClassData() const { | |
| ::google::protobuf::internal::PrefetchToLocalCache(&Struct_FieldsEntry_DoNotUse_globals_); | |
| ::google::protobuf::internal::PrefetchToLocalCache( | |
| ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Struct_FieldsEntry_DoNotUse_globals_)); | |
| return &Struct_FieldsEntry_DoNotUse_globals_.class_data; | |
| } | |
| // =================================================================== | |
| Struct::Struct(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| : Super_(arena, &Struct_globals_.class_data) { | |
| #else // PROTOBUF_CUSTOM_VTABLE | |
| : Super_(arena) { | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| SharedCtor(arena); | |
| // @@protoc_insertion_point(arena_constructor:google.protobuf.Struct) | |
| } | |
| PROTOBUF_NDEBUG_INLINE Struct::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::Struct& from_msg) | |
| : _has_bits_{from._has_bits_}, | |
| fields_ { | |
| visibility, ::_pbi::InternalMetadataOffset::Build< | |
| ::google::protobuf::Struct, | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Struct, _impl_.fields_)>() | |
| , arena, from.fields_ | |
| } | |
| {} | |
| Struct::Struct( | |
| ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, | |
| const Struct& from) | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| : Super_(arena, &Struct_globals_.class_data) { | |
| #else // PROTOBUF_CUSTOM_VTABLE | |
| : Super_(arena) { | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| Struct& 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.Struct) | |
| } | |
| PROTOBUF_NDEBUG_INLINE Struct::Impl_::Impl_( | |
| [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, | |
| [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) | |
| : fields_ { visibility, ::_pbi::InternalMetadataOffset::Build< | |
| ::google::protobuf::Struct, | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::Struct, _impl_.fields_)>() | |
| } | |
| {} | |
| inline void Struct::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { | |
| new (&_impl_) Impl_(internal_visibility(), arena); | |
| } | |
| Struct::~Struct() { | |
| // @@protoc_insertion_point(destructor:google.protobuf.Struct) | |
| SharedDtor(*this); | |
| } | |
| PROTOBUF_NO_CUSTOM_VTABLE_INLINE void Struct::SharedDtor( | |
| MessageLite& self) { | |
| Struct& this_ = static_cast<Struct&>(self); | |
| if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { | |
| this_.CheckHasBitConsistency(); | |
| } | |
| this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); | |
| ABSL_DCHECK(!::_pbi::HasArena(this_)); | |
| this_._impl_.~Impl_(); | |
| } | |
| PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL | |
| Struct::GetClassData() const { | |
| ::google::protobuf::internal::PrefetchToLocalCache(&Struct_globals_); | |
| ::google::protobuf::internal::PrefetchToLocalCache( | |
| ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Struct_globals_)); | |
| return &Struct_globals_.class_data; | |
| } | |
| PROTOBUF_NO_CUSTOM_VTABLE_INLINE | |
| void Struct::Clear(MessageLite& base) { | |
| Struct& this_ = static_cast<Struct&>(base); | |
| // @@protoc_insertion_point(message_clear_start:google.protobuf.Struct) | |
| ::google::protobuf::internal::TSanWrite(&this_._impl_); | |
| ::uint32_t cached_has_bits [[maybe_unused]] = 0; | |
| cached_has_bits = this_._impl_._has_bits_[0]; | |
| if (CheckHasBit(cached_has_bits, 0x00000001U)) { | |
| this_._impl_.fields_.Clear(); | |
| } | |
| this_._impl_._has_bits_.Clear(); | |
| this_._internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); | |
| } | |
| #if !defined(PROTOBUF_CUSTOM_VTABLE) | |
| PROTOBUF_NOINLINE void Struct::Clear() { Clear(*this); } | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| PROTOBUF_NO_CUSTOM_VTABLE_INLINE | |
| ::uint8_t* PROTOBUF_NULLABLE Struct::_InternalSerialize( | |
| const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NULLABLE target, | |
| ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { | |
| const Struct& this_ = static_cast<const Struct&>(base); | |
| if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { | |
| this_.CheckHasBitConsistency(); | |
| } | |
| // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Struct) | |
| ::uint32_t cached_has_bits = 0; | |
| (void)cached_has_bits; | |
| cached_has_bits = this_._impl_._has_bits_[0]; | |
| // map<string, .google.protobuf.Value> fields = 1; | |
| if (CheckHasBit(cached_has_bits, 0x00000001U)) { | |
| if (!this_._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 = this_._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 (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.Struct) | |
| return target; | |
| } | |
| #if !defined(PROTOBUF_CUSTOM_VTABLE) | |
| ::uint8_t* PROTOBUF_NULLABLE Struct::_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 Struct::ByteSizeLong(const MessageLite& base) { | |
| const Struct& this_ = static_cast<const Struct&>(base); | |
| // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Struct) | |
| ::size_t total_size = 0; | |
| ::uint32_t cached_has_bits [[maybe_unused]] = 0; | |
| ::_pbi::Prefetch5LinesFrom7Lines(&this_); | |
| { | |
| // map<string, .google.protobuf.Value> fields = 1; | |
| cached_has_bits = this_._impl_._has_bits_[0]; | |
| if (CheckHasBit(cached_has_bits, 0x00000001U)) { | |
| total_size += | |
| 1 * ::google::protobuf::internal::FromIntSize(this_._internal_fields_size()); | |
| for (const auto& entry : this_._internal_fields()) { | |
| total_size += _pbi::MapEntryFuncs<::std::string, ::google::protobuf::Value, | |
| _pbi::WireFormatLite::TYPE_STRING, | |
| _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); | |
| } | |
| } | |
| } | |
| return this_.MaybeComputeUnknownFieldsSize(total_size, | |
| &this_._impl_._cached_size_); | |
| } | |
| #if !defined(PROTOBUF_CUSTOM_VTABLE) | |
| ::size_t Struct::ByteSizeLong() const { return ByteSizeLong(*this); } | |
| #endif // !PROTOBUF_CUSTOM_VTABLE | |
| void Struct::MergeImpl(::google::protobuf::MessageLite& to_msg, | |
| const ::google::protobuf::MessageLite& from_msg) { | |
| Struct& this_ = static_cast<Struct&>(to_msg); | |
| auto& from = static_cast<const Struct&>(from_msg); | |
| if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { | |
| from.CheckHasBitConsistency(); | |
| } | |
| // @@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; | |
| cached_has_bits = from._impl_._has_bits_[0]; | |
| if (CheckHasBit(cached_has_bits, 0x00000001U)) { | |
| this_._impl_.fields_.MergeFrom(from._impl_.fields_); | |
| } | |
| this_._impl_._has_bits_[0] |= cached_has_bits; | |
| this_._internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( | |
| 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); | |
| } | |
| void Struct::InternalSwap(Struct* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { | |
| using ::std::swap; | |
| _internal_metadata_.InternalSwap(&other->_internal_metadata_); | |
| swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); | |
| _impl_.fields_.InternalSwap(&other->_impl_.fields_); | |
| } | |
| ::google::protobuf::Metadata Struct::GetMetadata() const { | |
| return Super_::GetMetadataImpl(Struct_globals_.class_data); | |
| } | |
| // =================================================================== | |
| void Value::set_allocated_struct_value(::google::protobuf::Struct* PROTOBUF_NULLABLE 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* PROTOBUF_NULLABLE 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* PROTOBUF_NULLABLE arena) | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| : Super_(arena, &Value_globals_.class_data) { | |
| #else // PROTOBUF_CUSTOM_VTABLE | |
| : Super_(arena) { | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| SharedCtor(arena); | |
| // @@protoc_insertion_point(arena_constructor:google.protobuf.Value) | |
| } | |
| PROTOBUF_NDEBUG_INLINE Value::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::Value& from_msg) | |
| : kind_{}, | |
| _oneof_case_{from._oneof_case_[0]} {} | |
| Value::Value( | |
| ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, | |
| const Value& from) | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| : Super_(arena, &Value_globals_.class_data) { | |
| #else // PROTOBUF_CUSTOM_VTABLE | |
| : Super_(arena) { | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| Value& this_ [[maybe_unused]] = *this; | |
| _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( | |
| from._internal_metadata_); | |
| new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); | |
| 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_ = Super_::CopyConstruct(arena, *from._impl_.kind_.struct_value_); | |
| break; | |
| case kListValue: | |
| _impl_.kind_.list_value_ = Super_::CopyConstruct(arena, *from._impl_.kind_.list_value_); | |
| break; | |
| } | |
| // @@protoc_insertion_point(copy_constructor:google.protobuf.Value) | |
| } | |
| PROTOBUF_NDEBUG_INLINE Value::Impl_::Impl_( | |
| [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, | |
| [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) | |
| : kind_{}, | |
| _oneof_case_{} {} | |
| inline void Value::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { | |
| new (&_impl_) Impl_(internal_visibility(), arena); | |
| } | |
| Value::~Value() { | |
| // @@protoc_insertion_point(destructor:google.protobuf.Value) | |
| SharedDtor(*this); | |
| } | |
| PROTOBUF_NO_CUSTOM_VTABLE_INLINE void Value::SharedDtor( | |
| MessageLite& self) { | |
| Value& this_ = static_cast<Value&>(self); | |
| if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { | |
| this_.CheckHasBitConsistency(); | |
| } | |
| this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); | |
| ABSL_DCHECK(!::_pbi::HasArena(this_)); | |
| if (this_.has_kind()) { | |
| this_.clear_kind(); | |
| } | |
| this_._impl_.~Impl_(); | |
| } | |
| void Value::clear_kind() { | |
| // @@protoc_insertion_point(one_of_clear_start:google.protobuf.Value) | |
| ::google::protobuf::internal::TSanWrite(&_impl_); | |
| 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 (!::google::protobuf::internal::HasArena(*this)) { | |
| delete _impl_.kind_.struct_value_; | |
| } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { | |
| ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.kind_.struct_value_); | |
| } | |
| break; | |
| } | |
| case kListValue: { | |
| if (!::google::protobuf::internal::HasArena(*this)) { | |
| delete _impl_.kind_.list_value_; | |
| } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { | |
| ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.kind_.list_value_); | |
| } | |
| break; | |
| } | |
| case KIND_NOT_SET: { | |
| break; | |
| } | |
| } | |
| _impl_._oneof_case_[0] = KIND_NOT_SET; | |
| } | |
| PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL | |
| Value::GetClassData() const { | |
| ::google::protobuf::internal::PrefetchToLocalCache(&Value_globals_); | |
| ::google::protobuf::internal::PrefetchToLocalCache( | |
| ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Value_globals_)); | |
| return &Value_globals_.class_data; | |
| } | |
| PROTOBUF_NO_CUSTOM_VTABLE_INLINE | |
| void Value::Clear(MessageLite& base) { | |
| Value& this_ = static_cast<Value&>(base); | |
| // @@protoc_insertion_point(message_clear_start:google.protobuf.Value) | |
| ::google::protobuf::internal::TSanWrite(&this_._impl_); | |
| ::uint32_t cached_has_bits [[maybe_unused]] = 0; | |
| this_.clear_kind(); | |
| this_._internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); | |
| } | |
| #if !defined(PROTOBUF_CUSTOM_VTABLE) | |
| PROTOBUF_NOINLINE void Value::Clear() { Clear(*this); } | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| PROTOBUF_NO_CUSTOM_VTABLE_INLINE | |
| ::uint8_t* PROTOBUF_NULLABLE Value::_InternalSerialize( | |
| const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NULLABLE target, | |
| ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { | |
| const Value& this_ = static_cast<const Value&>(base); | |
| if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { | |
| this_.CheckHasBitConsistency(); | |
| } | |
| // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Value) | |
| ::uint32_t cached_has_bits = 0; | |
| (void)cached_has_bits; | |
| switch (this_.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: { | |
| { | |
| auto* sub = this_._impl_.kind_.struct_value_; | |
| target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( | |
| 5, *sub, sub->GetCachedSize(), target, stream); | |
| } | |
| break; | |
| } | |
| case kListValue: { | |
| { | |
| auto* sub = this_._impl_.kind_.list_value_; | |
| target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( | |
| 6, *sub, sub->GetCachedSize(), target, stream); | |
| } | |
| break; | |
| } | |
| default: | |
| break; | |
| } | |
| 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.Value) | |
| return target; | |
| } | |
| #if !defined(PROTOBUF_CUSTOM_VTABLE) | |
| ::uint8_t* PROTOBUF_NULLABLE Value::_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 Value::ByteSizeLong(const MessageLite& base) { | |
| const Value& this_ = static_cast<const Value&>(base); | |
| // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Value) | |
| ::size_t total_size = 0; | |
| ::uint32_t cached_has_bits [[maybe_unused]] = 0; | |
| switch (this_.kind_case()) { | |
| // .google.protobuf.NullValue null_value = 1; | |
| case kNullValue: { | |
| total_size += | |
| 1 + ::_pbi::WireFormatLite::EnumSize(this_._impl_.kind_.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_._impl_.kind_.string_value_.Get()); | |
| 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(*this_._impl_.kind_.struct_value_); | |
| break; | |
| } | |
| // .google.protobuf.ListValue list_value = 6; | |
| case kListValue: { | |
| total_size += | |
| 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.kind_.list_value_); | |
| break; | |
| } | |
| case KIND_NOT_SET: { | |
| break; | |
| } | |
| } | |
| return this_.MaybeComputeUnknownFieldsSize(total_size, | |
| &this_._impl_._cached_size_); | |
| } | |
| #if !defined(PROTOBUF_CUSTOM_VTABLE) | |
| ::size_t Value::ByteSizeLong() const { return ByteSizeLong(*this); } | |
| #endif // !PROTOBUF_CUSTOM_VTABLE | |
| void Value::MergeImpl(::google::protobuf::MessageLite& to_msg, | |
| const ::google::protobuf::MessageLite& from_msg) { | |
| Value& this_ = static_cast<Value&>(to_msg); | |
| auto& from = static_cast<const Value&>(from_msg); | |
| if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { | |
| from.CheckHasBitConsistency(); | |
| } | |
| ::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_ = Super_::CopyConstruct(arena, *from._impl_.kind_.struct_value_); | |
| } else { | |
| this_._impl_.kind_.struct_value_->MergeFrom(*from._impl_.kind_.struct_value_); | |
| } | |
| break; | |
| } | |
| case kListValue: { | |
| if (oneof_needs_init) { | |
| this_._impl_.kind_.list_value_ = Super_::CopyConstruct(arena, *from._impl_.kind_.list_value_); | |
| } else { | |
| this_._impl_.kind_.list_value_->MergeFrom(*from._impl_.kind_.list_value_); | |
| } | |
| break; | |
| } | |
| case KIND_NOT_SET: | |
| break; | |
| } | |
| } | |
| this_._internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( | |
| 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); | |
| } | |
| void Value::InternalSwap(Value* PROTOBUF_RESTRICT PROTOBUF_NONNULL 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]); | |
| } | |
| ::google::protobuf::Metadata Value::GetMetadata() const { | |
| return Super_::GetMetadataImpl(Value_globals_.class_data); | |
| } | |
| // =================================================================== | |
| ListValue::ListValue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| : Super_(arena, &ListValue_globals_.class_data) { | |
| #else // PROTOBUF_CUSTOM_VTABLE | |
| : Super_(arena) { | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| SharedCtor(arena); | |
| // @@protoc_insertion_point(arena_constructor:google.protobuf.ListValue) | |
| } | |
| PROTOBUF_NDEBUG_INLINE ListValue::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::ListValue& from_msg) | |
| : _has_bits_{from._has_bits_}, | |
| values_ { | |
| visibility, ::_pbi::InternalMetadataOffset::Build< | |
| ::google::protobuf::ListValue, | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::ListValue, _impl_.values_)>() | |
| , arena, from.values_ | |
| } | |
| {} | |
| ListValue::ListValue( | |
| ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, | |
| const ListValue& from) | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| : Super_(arena, &ListValue_globals_.class_data) { | |
| #else // PROTOBUF_CUSTOM_VTABLE | |
| : Super_(arena) { | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| ListValue& 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.ListValue) | |
| } | |
| PROTOBUF_NDEBUG_INLINE ListValue::Impl_::Impl_( | |
| [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, | |
| [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) | |
| : values_ { visibility, ::_pbi::InternalMetadataOffset::Build< | |
| ::google::protobuf::ListValue, | |
| PROTOBUF_FIELD_OFFSET(::google::protobuf::ListValue, _impl_.values_)>() | |
| } | |
| {} | |
| inline void ListValue::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { | |
| new (&_impl_) Impl_(internal_visibility(), arena); | |
| } | |
| ListValue::~ListValue() { | |
| // @@protoc_insertion_point(destructor:google.protobuf.ListValue) | |
| SharedDtor(*this); | |
| } | |
| PROTOBUF_NO_CUSTOM_VTABLE_INLINE void ListValue::SharedDtor( | |
| MessageLite& self) { | |
| ListValue& this_ = static_cast<ListValue&>(self); | |
| if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { | |
| this_.CheckHasBitConsistency(); | |
| } | |
| this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); | |
| ABSL_DCHECK(!::_pbi::HasArena(this_)); | |
| this_._impl_.~Impl_(); | |
| } | |
| PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL | |
| ListValue::GetClassData() const { | |
| ::google::protobuf::internal::PrefetchToLocalCache(&ListValue_globals_); | |
| ::google::protobuf::internal::PrefetchToLocalCache( | |
| ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&ListValue_globals_)); | |
| return &ListValue_globals_.class_data; | |
| } | |
| PROTOBUF_NO_CUSTOM_VTABLE_INLINE | |
| void ListValue::Clear(MessageLite& base) { | |
| ListValue& this_ = static_cast<ListValue&>(base); | |
| // @@protoc_insertion_point(message_clear_start:google.protobuf.ListValue) | |
| ::google::protobuf::internal::TSanWrite(&this_._impl_); | |
| ::uint32_t cached_has_bits [[maybe_unused]] = 0; | |
| cached_has_bits = this_._impl_._has_bits_[0]; | |
| if (CheckHasBit(cached_has_bits, 0x00000001U)) { | |
| this_._impl_.values_.Clear(); | |
| } | |
| this_._impl_._has_bits_.Clear(); | |
| this_._internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); | |
| } | |
| #if !defined(PROTOBUF_CUSTOM_VTABLE) | |
| PROTOBUF_NOINLINE void ListValue::Clear() { Clear(*this); } | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| PROTOBUF_NO_CUSTOM_VTABLE_INLINE | |
| ::uint8_t* PROTOBUF_NULLABLE ListValue::_InternalSerialize( | |
| const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NULLABLE target, | |
| ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { | |
| const ListValue& this_ = static_cast<const ListValue&>(base); | |
| if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { | |
| this_.CheckHasBitConsistency(); | |
| } | |
| // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ListValue) | |
| ::uint32_t cached_has_bits = 0; | |
| (void)cached_has_bits; | |
| cached_has_bits = this_._impl_._has_bits_[0]; | |
| // repeated .google.protobuf.Value values = 1; | |
| if (CheckHasBit(cached_has_bits, 0x00000001U)) { | |
| for (const auto& sub : this_._impl_.values_) { | |
| target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( | |
| 1, sub, sub.GetCachedSize(), target, stream); | |
| } | |
| } | |
| 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.ListValue) | |
| return target; | |
| } | |
| #if !defined(PROTOBUF_CUSTOM_VTABLE) | |
| ::uint8_t* PROTOBUF_NULLABLE ListValue::_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 ListValue::ByteSizeLong(const MessageLite& base) { | |
| const ListValue& this_ = static_cast<const ListValue&>(base); | |
| // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ListValue) | |
| ::size_t total_size = 0; | |
| ::uint32_t cached_has_bits [[maybe_unused]] = 0; | |
| ::_pbi::Prefetch5LinesFrom7Lines(&this_); | |
| { | |
| // repeated .google.protobuf.Value values = 1; | |
| cached_has_bits = this_._impl_._has_bits_[0]; | |
| if (CheckHasBit(cached_has_bits, 0x00000001U)) { | |
| if (const auto& value = this_._impl_.values_; !value.empty()) { | |
| total_size += 1UL * value.size(); | |
| for (const auto& msg : value) { | |
| total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); | |
| } | |
| } | |
| } | |
| } | |
| return this_.MaybeComputeUnknownFieldsSize(total_size, | |
| &this_._impl_._cached_size_); | |
| } | |
| #if !defined(PROTOBUF_CUSTOM_VTABLE) | |
| ::size_t ListValue::ByteSizeLong() const { return ByteSizeLong(*this); } | |
| #endif // !PROTOBUF_CUSTOM_VTABLE | |
| void ListValue::MergeImpl(::google::protobuf::MessageLite& to_msg, | |
| const ::google::protobuf::MessageLite& from_msg) { | |
| ListValue& this_ = static_cast<ListValue&>(to_msg); | |
| auto& from = static_cast<const ListValue&>(from_msg); | |
| if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { | |
| from.CheckHasBitConsistency(); | |
| } | |
| ::google::protobuf::Arena* arena = this_.GetArena(); | |
| // @@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; | |
| cached_has_bits = from._impl_._has_bits_[0]; | |
| if (CheckHasBit(cached_has_bits, 0x00000001U)) { | |
| if (const auto& sub = from._impl_.values_; !sub.empty()) { | |
| this_._internal_mutable_values()->InternalMergeFromWithArena( | |
| ::google::protobuf::MessageLite::internal_visibility(), arena, sub); | |
| } | |
| } | |
| this_._impl_._has_bits_[0] |= cached_has_bits; | |
| this_._internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( | |
| 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); | |
| } | |
| void ListValue::InternalSwap(ListValue* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { | |
| using ::std::swap; | |
| _internal_metadata_.InternalSwap(&other->_internal_metadata_); | |
| swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); | |
| _impl_.values_.InternalSwap(&other->_impl_.values_); | |
| } | |
| ::google::protobuf::Metadata ListValue::GetMetadata() const { | |
| return Super_::GetMetadataImpl(ListValue_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_2fstruct_2eproto), | |
| ::std::false_type{}); | |
| #include "google/protobuf/port_undef.inc" | |
| // clang-format on |