| // Generated by the protocol buffer compiler. DO NOT EDIT! | |
| // NO CHECKED-IN PROTOBUF GENCODE | |
| // source: google/protobuf/struct.proto | |
| // Protobuf C++ Version: 7.37.0-dev | |
| #ifndef google_2fprotobuf_2fstruct_2eproto_2epb_2eh | |
| #define google_2fprotobuf_2fstruct_2eproto_2epb_2eh | |
| #include <limits> | |
| #include <string> | |
| #include <type_traits> | |
| #include <utility> | |
| // clang-format off | |
| #include "google/protobuf/runtime_version.h" | |
| #if PROTOBUF_VERSION != 7037000 | |
| #error "Protobuf C++ gencode is built with an incompatible version of" | |
| #error "Protobuf C++ headers/runtime. See" | |
| #error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" | |
| #endif | |
| #include "google/protobuf/io/coded_stream.h" | |
| #include "google/protobuf/arena.h" | |
| #include "google/protobuf/arenastring.h" | |
| #include "google/protobuf/generated_message_tctable_decl.h" | |
| #include "google/protobuf/generated_message_util.h" | |
| #include "google/protobuf/metadata_lite.h" | |
| #include "google/protobuf/generated_message_reflection.h" | |
| #include "google/protobuf/message.h" | |
| #include "google/protobuf/message_lite.h" | |
| #include "google/protobuf/repeated_field.h" // IWYU pragma: export | |
| #include "google/protobuf/extension_set.h" // IWYU pragma: export | |
| #include "google/protobuf/map.h" // IWYU pragma: export | |
| #include "google/protobuf/map_type_handler.h" // IWYU pragma: export | |
| #include "google/protobuf/map_entry.h" | |
| #include "google/protobuf/map_field.h" | |
| #include "google/protobuf/generated_enum_reflection.h" | |
| #include "google/protobuf/unknown_field_set.h" | |
| // @@protoc_insertion_point(includes) | |
| // Must be included last. | |
| #include "google/protobuf/port_def.inc" | |
| #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fstruct_2eproto PROTOBUF_EXPORT | |
| // Internal implementation detail -- do not use these members. | |
| struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2fstruct_2eproto { | |
| static const ::uint32_t offsets[]; | |
| }; | |
| extern "C" { | |
| PROTOBUF_EXPORT extern const ::google::protobuf::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fstruct_2eproto; | |
| } // extern "C" | |
| namespace google { | |
| namespace protobuf { | |
| enum NullValue : int; | |
| PROTOBUF_EXPORT extern const uint32_t NullValue_internal_data_[]; | |
| class ListValue; | |
| struct ListValueGlobalsTypeInternal; | |
| PROTOBUF_EXPORT extern const ListValueGlobalsTypeInternal ListValue_globals_; | |
| class Struct; | |
| struct StructGlobalsTypeInternal; | |
| PROTOBUF_EXPORT extern const StructGlobalsTypeInternal Struct_globals_; | |
| class Struct_FieldsEntry_DoNotUse; | |
| struct Struct_FieldsEntry_DoNotUseGlobalsTypeInternal; | |
| PROTOBUF_EXPORT extern const Struct_FieldsEntry_DoNotUseGlobalsTypeInternal Struct_FieldsEntry_DoNotUse_globals_; | |
| class Value; | |
| struct ValueGlobalsTypeInternal; | |
| PROTOBUF_EXPORT extern const ValueGlobalsTypeInternal Value_globals_; | |
| template <> | |
| internal::EnumTraitsT<::google::protobuf::NullValue_internal_data_> | |
| internal::EnumTraitsImpl::value<::google::protobuf::NullValue>; | |
| } // namespace protobuf | |
| } // namespace google | |
| namespace google { | |
| namespace protobuf { | |
| enum NullValue : int { | |
| NULL_VALUE = 0, | |
| NullValue_INT_MIN_SENTINEL_DO_NOT_USE_ = | |
| ::std::numeric_limits<::int32_t>::min(), | |
| NullValue_INT_MAX_SENTINEL_DO_NOT_USE_ = | |
| ::std::numeric_limits<::int32_t>::max(), | |
| }; | |
| PROTOBUF_EXPORT extern const uint32_t NullValue_internal_data_[]; | |
| inline constexpr NullValue NullValue_MIN = | |
| static_cast<NullValue>(0); | |
| inline constexpr NullValue NullValue_MAX = | |
| static_cast<NullValue>(0); | |
| [[nodiscard]] inline bool NullValue_IsValid(int value) { | |
| return 0 <= value && value <= 0; | |
| } | |
| inline constexpr int NullValue_ARRAYSIZE = 0 + 1; | |
| [[nodiscard]] PROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL | |
| NullValue_descriptor(); | |
| [[nodiscard]] inline auto ProtobufInternalGetEnumDescriptor(NullValue) { | |
| return NullValue_descriptor(); | |
| } | |
| template <typename T> | |
| [[nodiscard]] const ::std::string& NullValue_Name(T value) { | |
| static_assert(::std::is_same<T, NullValue>::value || | |
| ::std::is_integral<T>::value, | |
| "Incorrect type passed to NullValue_Name()."); | |
| return NullValue_Name(static_cast<NullValue>(value)); | |
| } | |
| template <> | |
| [[nodiscard]] inline const ::std::string& NullValue_Name(NullValue value) { | |
| return ::google::protobuf::internal::NameOfDenseEnum<NullValue_descriptor, 0, 0>( | |
| static_cast<int>(value)); | |
| } | |
| [[nodiscard]] inline bool NullValue_Parse( | |
| ::absl::string_view name, NullValue* PROTOBUF_NONNULL value) { | |
| return ::google::protobuf::internal::ParseNamedEnum<NullValue>(NullValue_descriptor(), name, | |
| value); | |
| } | |
| using ::google::protobuf::internal::generated_enum::AbslParseFlag; | |
| using ::google::protobuf::internal::generated_enum::AbslUnparseFlag; | |
| // =================================================================== | |
| // ------------------------------------------------------------------- | |
| class PROTOBUF_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED ListValue final : public ::google::protobuf::Message | |
| /* @@protoc_insertion_point(class_definition:google.protobuf.ListValue) */ { | |
| using Super_ = ::google::protobuf::Message; | |
| public: | |
| ListValue() : ListValue(nullptr) {} | |
| ~ListValue() PROTOBUF_FINAL; | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| void operator delete(ListValue* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { | |
| SharedDtor(*msg); | |
| ::google::protobuf::internal::SizedDelete(msg, sizeof(ListValue)); | |
| } | |
| #endif | |
| template <typename = void> | |
| explicit constexpr ListValue(::google::protobuf::internal::ConstantInitialized, | |
| const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL | |
| class_data); | |
| ListValue(const ListValue& from) : ListValue(nullptr, from) {} | |
| ListValue(ListValue&& from) noexcept : ListValue(nullptr, ::std::move(from)) {} | |
| ListValue& operator=(const ListValue& from) { | |
| CopyFrom(from); | |
| return *this; | |
| } | |
| ListValue& operator=(ListValue&& from) noexcept { | |
| if (this == &from) return *this; | |
| if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { | |
| InternalSwap(&from); | |
| } else { | |
| CopyFrom(from); | |
| } | |
| return *this; | |
| } | |
| [[nodiscard]] const ::google::protobuf::UnknownFieldSet& unknown_fields() const | |
| ABSL_ATTRIBUTE_LIFETIME_BOUND { | |
| return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); | |
| } | |
| [[nodiscard]] ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() | |
| ABSL_ATTRIBUTE_LIFETIME_BOUND { | |
| return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); | |
| } | |
| [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { | |
| return GetDescriptor(); | |
| } | |
| [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL | |
| GetDescriptor() { | |
| return default_instance().GetMetadata().descriptor; | |
| } | |
| [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { | |
| return default_instance().GetMetadata().reflection; | |
| } | |
| [[nodiscard]] static const ListValue& default_instance() { | |
| return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<ListValue>(&ListValue_globals_); | |
| } | |
| static constexpr int kIndexInFileMessages = 3; | |
| friend void swap(ListValue& a, ListValue& b) { a.Swap(&b); } | |
| void Swap(ListValue* PROTOBUF_NONNULL other) { | |
| if (other == this) return; | |
| if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { | |
| InternalSwap(other); | |
| } else { | |
| ::google::protobuf::internal::GenericSwap(this, other); | |
| } | |
| } | |
| void UnsafeArenaSwap(ListValue* PROTOBUF_NONNULL other) { | |
| if (other == this) return; | |
| ABSL_DCHECK(GetArena() == other->GetArena()); | |
| InternalSwap(other); | |
| } | |
| // implements Message ---------------------------------------------- | |
| [[nodiscard]] ListValue* PROTOBUF_NONNULL | |
| New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { | |
| return Super_::DefaultConstruct<ListValue>(arena); | |
| } | |
| using Super_::CopyFrom; | |
| void CopyFrom(const ListValue& from); | |
| using Super_::MergeFrom; | |
| void MergeFrom(const ListValue& from) { ListValue::MergeImpl(*this, from); } | |
| private: | |
| static void MergeImpl(::google::protobuf::MessageLite& to_msg, | |
| const ::google::protobuf::MessageLite& from_msg); | |
| public: | |
| [[nodiscard]] bool IsInitialized() const { | |
| return true; | |
| } | |
| private: | |
| static void Clear(::google::protobuf::MessageLite& msg); | |
| [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); | |
| [[nodiscard]] static ::uint8_t* PROTOBUF_NULLABLE _InternalSerialize( | |
| const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NULLABLE target, | |
| ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); | |
| public: | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| ABSL_ATTRIBUTE_REINITIALIZES PROTOBUF_ALWAYS_INLINE void Clear() { | |
| Clear(*this); | |
| } | |
| PROTOBUF_ALWAYS_INLINE [[nodiscard]] ::size_t ByteSizeLong() const { | |
| return ByteSizeLong(*this); | |
| } | |
| PROTOBUF_ALWAYS_INLINE [[nodiscard]] ::uint8_t* PROTOBUF_NULLABLE | |
| _InternalSerialize(::uint8_t* PROTOBUF_NULLABLE target, | |
| ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL | |
| stream) const { | |
| return _InternalSerialize(*this, target, stream); | |
| } | |
| #else // PROTOBUF_CUSTOM_VTABLE | |
| ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; | |
| [[nodiscard]] ::size_t ByteSizeLong() const final; | |
| [[nodiscard]] ::uint8_t* PROTOBUF_NULLABLE _InternalSerialize( | |
| ::uint8_t* PROTOBUF_NULLABLE target, | |
| ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| [[nodiscard]] int GetCachedSize() const { | |
| return _impl_._cached_size_.Get(); | |
| } | |
| private: | |
| void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); | |
| static void SharedDtor(MessageLite& self); | |
| void InternalSwap(ListValue* PROTOBUF_NONNULL other); | |
| private: | |
| static ::absl::string_view FullMessageName() { return "google.protobuf.ListValue"; } | |
| explicit ListValue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); | |
| ListValue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ListValue& from); | |
| ListValue( | |
| ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ListValue&& from) noexcept | |
| : ListValue(arena) { | |
| *this = ::std::move(from); | |
| } | |
| const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; | |
| public: | |
| [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; | |
| // nested types ---------------------------------------------------- | |
| // accessors ------------------------------------------------------- | |
| enum : int { | |
| kValuesFieldNumber = 1, | |
| }; | |
| private: | |
| // repeated .google.protobuf.Value values = 1; | |
| int _internal_values_size() const; | |
| const ::google::protobuf::RepeatedPtrField<::google::protobuf::Value>& _internal_values() const; | |
| ::google::protobuf::RepeatedPtrField<::google::protobuf::Value>* PROTOBUF_NONNULL _internal_mutable_values(); | |
| public: | |
| // repeated .google.protobuf.Value values = 1; | |
| [[nodiscard]] int values_size() const; | |
| void clear_values() ; | |
| [[nodiscard]] const ::google::protobuf::Value& values(int index) const; | |
| [[nodiscard]] ::google::protobuf::Value* PROTOBUF_NONNULL mutable_values(int index); | |
| ::google::protobuf::Value* PROTOBUF_NONNULL add_values(); | |
| [[nodiscard]] const ::google::protobuf::RepeatedPtrField<::google::protobuf::Value>& | |
| values() const; | |
| [[nodiscard]] ::google::protobuf::RepeatedPtrField<::google::protobuf::Value>* PROTOBUF_NONNULL | |
| mutable_values(); | |
| // @@protoc_insertion_point(class_scope:google.protobuf.ListValue) | |
| private: | |
| class _Internal; | |
| using ParseTableT_ = | |
| ::google::protobuf::internal::TcParseTable<0, 1, | |
| 1, 0, | |
| 2>; | |
| friend class ::google::protobuf::MessageLite; | |
| friend class ::google::protobuf::Arena; | |
| friend ::google::protobuf::internal::PrivateAccess; | |
| template <typename T> | |
| friend class ::google::protobuf::Arena::InternalHelper; | |
| using InternalArenaConstructable_ = void; | |
| using DestructorSkippable_ = void; | |
| struct Impl_ { | |
| inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, | |
| ::google::protobuf::internal::ConstantInitialized) noexcept; | |
| inline explicit Impl_( | |
| ::google::protobuf::internal::InternalVisibility visibility, | |
| ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); | |
| inline explicit Impl_( | |
| ::google::protobuf::internal::InternalVisibility visibility, | |
| ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, | |
| const ListValue& from_msg); | |
| ::google::protobuf::internal::HasBits<1> _has_bits_; | |
| ::google::protobuf::internal::CachedSize _cached_size_; | |
| ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value > values_; | |
| PROTOBUF_TSAN_DECLARE_MEMBER | |
| }; | |
| union { Impl_ _impl_; }; | |
| friend struct ::TableStruct_google_2fprotobuf_2fstruct_2eproto; | |
| }; | |
| // ------------------------------------------------------------------- | |
| class PROTOBUF_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Struct final : public ::google::protobuf::Message | |
| /* @@protoc_insertion_point(class_definition:google.protobuf.Struct) */ { | |
| using Super_ = ::google::protobuf::Message; | |
| public: | |
| Struct() : Struct(nullptr) {} | |
| ~Struct() PROTOBUF_FINAL; | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| void operator delete(Struct* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { | |
| SharedDtor(*msg); | |
| ::google::protobuf::internal::SizedDelete(msg, sizeof(Struct)); | |
| } | |
| #endif | |
| template <typename = void> | |
| explicit constexpr Struct(::google::protobuf::internal::ConstantInitialized, | |
| const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL | |
| class_data); | |
| Struct(const Struct& from) : Struct(nullptr, from) {} | |
| Struct(Struct&& from) noexcept : Struct(nullptr, ::std::move(from)) {} | |
| Struct& operator=(const Struct& from) { | |
| CopyFrom(from); | |
| return *this; | |
| } | |
| Struct& operator=(Struct&& from) noexcept { | |
| if (this == &from) return *this; | |
| if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { | |
| InternalSwap(&from); | |
| } else { | |
| CopyFrom(from); | |
| } | |
| return *this; | |
| } | |
| [[nodiscard]] const ::google::protobuf::UnknownFieldSet& unknown_fields() const | |
| ABSL_ATTRIBUTE_LIFETIME_BOUND { | |
| return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); | |
| } | |
| [[nodiscard]] ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() | |
| ABSL_ATTRIBUTE_LIFETIME_BOUND { | |
| return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); | |
| } | |
| [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { | |
| return GetDescriptor(); | |
| } | |
| [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL | |
| GetDescriptor() { | |
| return default_instance().GetMetadata().descriptor; | |
| } | |
| [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { | |
| return default_instance().GetMetadata().reflection; | |
| } | |
| [[nodiscard]] static const Struct& default_instance() { | |
| return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<Struct>(&Struct_globals_); | |
| } | |
| static constexpr int kIndexInFileMessages = 1; | |
| friend void swap(Struct& a, Struct& b) { a.Swap(&b); } | |
| void Swap(Struct* PROTOBUF_NONNULL other) { | |
| if (other == this) return; | |
| if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { | |
| InternalSwap(other); | |
| } else { | |
| ::google::protobuf::internal::GenericSwap(this, other); | |
| } | |
| } | |
| void UnsafeArenaSwap(Struct* PROTOBUF_NONNULL other) { | |
| if (other == this) return; | |
| ABSL_DCHECK(GetArena() == other->GetArena()); | |
| InternalSwap(other); | |
| } | |
| // implements Message ---------------------------------------------- | |
| [[nodiscard]] Struct* PROTOBUF_NONNULL | |
| New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { | |
| return Super_::DefaultConstruct<Struct>(arena); | |
| } | |
| using Super_::CopyFrom; | |
| void CopyFrom(const Struct& from); | |
| using Super_::MergeFrom; | |
| void MergeFrom(const Struct& from) { Struct::MergeImpl(*this, from); } | |
| private: | |
| static void MergeImpl(::google::protobuf::MessageLite& to_msg, | |
| const ::google::protobuf::MessageLite& from_msg); | |
| public: | |
| [[nodiscard]] bool IsInitialized() const { | |
| return true; | |
| } | |
| private: | |
| static void Clear(::google::protobuf::MessageLite& msg); | |
| [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); | |
| [[nodiscard]] static ::uint8_t* PROTOBUF_NULLABLE _InternalSerialize( | |
| const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NULLABLE target, | |
| ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); | |
| public: | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| ABSL_ATTRIBUTE_REINITIALIZES PROTOBUF_ALWAYS_INLINE void Clear() { | |
| Clear(*this); | |
| } | |
| PROTOBUF_ALWAYS_INLINE [[nodiscard]] ::size_t ByteSizeLong() const { | |
| return ByteSizeLong(*this); | |
| } | |
| PROTOBUF_ALWAYS_INLINE [[nodiscard]] ::uint8_t* PROTOBUF_NULLABLE | |
| _InternalSerialize(::uint8_t* PROTOBUF_NULLABLE target, | |
| ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL | |
| stream) const { | |
| return _InternalSerialize(*this, target, stream); | |
| } | |
| #else // PROTOBUF_CUSTOM_VTABLE | |
| ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; | |
| [[nodiscard]] ::size_t ByteSizeLong() const final; | |
| [[nodiscard]] ::uint8_t* PROTOBUF_NULLABLE _InternalSerialize( | |
| ::uint8_t* PROTOBUF_NULLABLE target, | |
| ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| [[nodiscard]] int GetCachedSize() const { | |
| return _impl_._cached_size_.Get(); | |
| } | |
| private: | |
| void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); | |
| static void SharedDtor(MessageLite& self); | |
| void InternalSwap(Struct* PROTOBUF_NONNULL other); | |
| private: | |
| static ::absl::string_view FullMessageName() { return "google.protobuf.Struct"; } | |
| explicit Struct(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); | |
| Struct(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Struct& from); | |
| Struct( | |
| ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Struct&& from) noexcept | |
| : Struct(arena) { | |
| *this = ::std::move(from); | |
| } | |
| const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; | |
| public: | |
| [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; | |
| // nested types ---------------------------------------------------- | |
| // accessors ------------------------------------------------------- | |
| enum : int { | |
| kFieldsFieldNumber = 1, | |
| }; | |
| private: | |
| // map<string, .google.protobuf.Value> fields = 1; | |
| int _internal_fields_size() const; | |
| const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& _internal_fields() const; | |
| ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL _internal_mutable_fields(); | |
| public: | |
| // map<string, .google.protobuf.Value> fields = 1; | |
| [[nodiscard]] int fields_size() const; | |
| void clear_fields() ; | |
| [[nodiscard]] const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& fields() const; | |
| [[nodiscard]] ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL mutable_fields(); | |
| // @@protoc_insertion_point(class_scope:google.protobuf.Struct) | |
| private: | |
| class _Internal; | |
| using ParseTableT_ = | |
| ::google::protobuf::internal::TcParseTable<0, 1, | |
| 2, 37, | |
| 2>; | |
| friend class ::google::protobuf::MessageLite; | |
| friend class ::google::protobuf::Arena; | |
| friend ::google::protobuf::internal::PrivateAccess; | |
| template <typename T> | |
| friend class ::google::protobuf::Arena::InternalHelper; | |
| using InternalArenaConstructable_ = void; | |
| using DestructorSkippable_ = void; | |
| struct Impl_ { | |
| inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, | |
| ::google::protobuf::internal::ConstantInitialized) noexcept; | |
| inline explicit Impl_( | |
| ::google::protobuf::internal::InternalVisibility visibility, | |
| ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); | |
| inline explicit Impl_( | |
| ::google::protobuf::internal::InternalVisibility visibility, | |
| ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, | |
| const Struct& from_msg); | |
| ::google::protobuf::internal::HasBits<1> _has_bits_; | |
| ::google::protobuf::internal::CachedSize _cached_size_; | |
| ::google::protobuf::internal::MapField<&Struct_FieldsEntry_DoNotUse_globals_, ::std::string, ::google::protobuf::Value> fields_; | |
| PROTOBUF_TSAN_DECLARE_MEMBER | |
| }; | |
| union { Impl_ _impl_; }; | |
| friend struct ::TableStruct_google_2fprotobuf_2fstruct_2eproto; | |
| }; | |
| // ------------------------------------------------------------------- | |
| // ------------------------------------------------------------------- | |
| class PROTOBUF_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Value final : public ::google::protobuf::Message | |
| /* @@protoc_insertion_point(class_definition:google.protobuf.Value) */ { | |
| using Super_ = ::google::protobuf::Message; | |
| public: | |
| Value() : Value(nullptr) {} | |
| ~Value() PROTOBUF_FINAL; | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| void operator delete(Value* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { | |
| SharedDtor(*msg); | |
| ::google::protobuf::internal::SizedDelete(msg, sizeof(Value)); | |
| } | |
| #endif | |
| template <typename = void> | |
| explicit constexpr Value(::google::protobuf::internal::ConstantInitialized, | |
| const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL | |
| class_data); | |
| Value(const Value& from) : Value(nullptr, from) {} | |
| Value(Value&& from) noexcept : Value(nullptr, ::std::move(from)) {} | |
| Value& operator=(const Value& from) { | |
| CopyFrom(from); | |
| return *this; | |
| } | |
| Value& operator=(Value&& from) noexcept { | |
| if (this == &from) return *this; | |
| if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { | |
| InternalSwap(&from); | |
| } else { | |
| CopyFrom(from); | |
| } | |
| return *this; | |
| } | |
| [[nodiscard]] const ::google::protobuf::UnknownFieldSet& unknown_fields() const | |
| ABSL_ATTRIBUTE_LIFETIME_BOUND { | |
| return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); | |
| } | |
| [[nodiscard]] ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() | |
| ABSL_ATTRIBUTE_LIFETIME_BOUND { | |
| return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); | |
| } | |
| [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { | |
| return GetDescriptor(); | |
| } | |
| [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL | |
| GetDescriptor() { | |
| return default_instance().GetMetadata().descriptor; | |
| } | |
| [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { | |
| return default_instance().GetMetadata().reflection; | |
| } | |
| [[nodiscard]] static const Value& default_instance() { | |
| return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<Value>(&Value_globals_); | |
| } | |
| enum KindCase { | |
| kNullValue = 1, | |
| kNumberValue = 2, | |
| kStringValue = 3, | |
| kBoolValue = 4, | |
| kStructValue = 5, | |
| kListValue = 6, | |
| KIND_NOT_SET = 0, | |
| }; | |
| static constexpr int kIndexInFileMessages = 2; | |
| friend void swap(Value& a, Value& b) { a.Swap(&b); } | |
| void Swap(Value* PROTOBUF_NONNULL other) { | |
| if (other == this) return; | |
| if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { | |
| InternalSwap(other); | |
| } else { | |
| ::google::protobuf::internal::GenericSwap(this, other); | |
| } | |
| } | |
| void UnsafeArenaSwap(Value* PROTOBUF_NONNULL other) { | |
| if (other == this) return; | |
| ABSL_DCHECK(GetArena() == other->GetArena()); | |
| InternalSwap(other); | |
| } | |
| // implements Message ---------------------------------------------- | |
| [[nodiscard]] Value* PROTOBUF_NONNULL | |
| New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { | |
| return Super_::DefaultConstruct<Value>(arena); | |
| } | |
| using Super_::CopyFrom; | |
| void CopyFrom(const Value& from); | |
| using Super_::MergeFrom; | |
| void MergeFrom(const Value& from) { Value::MergeImpl(*this, from); } | |
| private: | |
| static void MergeImpl(::google::protobuf::MessageLite& to_msg, | |
| const ::google::protobuf::MessageLite& from_msg); | |
| public: | |
| [[nodiscard]] bool IsInitialized() const { | |
| return true; | |
| } | |
| private: | |
| static void Clear(::google::protobuf::MessageLite& msg); | |
| [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); | |
| [[nodiscard]] static ::uint8_t* PROTOBUF_NULLABLE _InternalSerialize( | |
| const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NULLABLE target, | |
| ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); | |
| public: | |
| #if defined(PROTOBUF_CUSTOM_VTABLE) | |
| ABSL_ATTRIBUTE_REINITIALIZES PROTOBUF_ALWAYS_INLINE void Clear() { | |
| Clear(*this); | |
| } | |
| PROTOBUF_ALWAYS_INLINE [[nodiscard]] ::size_t ByteSizeLong() const { | |
| return ByteSizeLong(*this); | |
| } | |
| PROTOBUF_ALWAYS_INLINE [[nodiscard]] ::uint8_t* PROTOBUF_NULLABLE | |
| _InternalSerialize(::uint8_t* PROTOBUF_NULLABLE target, | |
| ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL | |
| stream) const { | |
| return _InternalSerialize(*this, target, stream); | |
| } | |
| #else // PROTOBUF_CUSTOM_VTABLE | |
| ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; | |
| [[nodiscard]] ::size_t ByteSizeLong() const final; | |
| [[nodiscard]] ::uint8_t* PROTOBUF_NULLABLE _InternalSerialize( | |
| ::uint8_t* PROTOBUF_NULLABLE target, | |
| ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; | |
| #endif // PROTOBUF_CUSTOM_VTABLE | |
| [[nodiscard]] int GetCachedSize() const { | |
| return _impl_._cached_size_.Get(); | |
| } | |
| private: | |
| void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); | |
| static void SharedDtor(MessageLite& self); | |
| void InternalSwap(Value* PROTOBUF_NONNULL other); | |
| private: | |
| static ::absl::string_view FullMessageName() { return "google.protobuf.Value"; } | |
| explicit Value(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); | |
| Value(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Value& from); | |
| Value( | |
| ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Value&& from) noexcept | |
| : Value(arena) { | |
| *this = ::std::move(from); | |
| } | |
| const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; | |
| public: | |
| [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; | |
| // nested types ---------------------------------------------------- | |
| // accessors ------------------------------------------------------- | |
| enum : int { | |
| kNullValueFieldNumber = 1, | |
| kNumberValueFieldNumber = 2, | |
| kStringValueFieldNumber = 3, | |
| kBoolValueFieldNumber = 4, | |
| kStructValueFieldNumber = 5, | |
| kListValueFieldNumber = 6, | |
| }; | |
| private: | |
| // .google.protobuf.NullValue null_value = 1; | |
| ::google::protobuf::NullValue _internal_null_value() const; | |
| void _internal_set_null_value(::google::protobuf::NullValue value); | |
| // double number_value = 2; | |
| double _internal_number_value() const; | |
| void _internal_set_number_value(double value); | |
| // string string_value = 3; | |
| const ::std::string& _internal_string_value() const; | |
| PROTOBUF_ALWAYS_INLINE void _internal_set_string_value(const ::std::string& value); | |
| ::std::string* PROTOBUF_NONNULL _internal_mutable_string_value(); | |
| // bool bool_value = 4; | |
| bool _internal_bool_value() const; | |
| void _internal_set_bool_value(bool value); | |
| // .google.protobuf.Struct struct_value = 5; | |
| bool _internal_has_struct_value() const; | |
| const ::google::protobuf::Struct& _internal_struct_value() const; | |
| ::google::protobuf::Struct* PROTOBUF_NONNULL _internal_mutable_struct_value(); | |
| // .google.protobuf.ListValue list_value = 6; | |
| bool _internal_has_list_value() const; | |
| const ::google::protobuf::ListValue& _internal_list_value() const; | |
| ::google::protobuf::ListValue* PROTOBUF_NONNULL _internal_mutable_list_value(); | |
| public: | |
| // .google.protobuf.NullValue null_value = 1; | |
| [[nodiscard]] bool has_null_value() const; | |
| void clear_null_value() ; | |
| [[nodiscard]] ::google::protobuf::NullValue null_value() const; | |
| void set_null_value(::google::protobuf::NullValue value); | |
| // double number_value = 2; | |
| [[nodiscard]] bool has_number_value() const; | |
| void clear_number_value() ; | |
| [[nodiscard]] double number_value() const; | |
| void set_number_value(double value); | |
| // string string_value = 3; | |
| [[nodiscard]] bool has_string_value() const; | |
| void clear_string_value() ; | |
| [[nodiscard]] const ::std::string& string_value() const; | |
| template <typename Arg_ = const ::std::string&, typename... Args_> | |
| void set_string_value(Arg_&& arg, Args_... args); | |
| ::std::string* PROTOBUF_NONNULL mutable_string_value(); | |
| [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_string_value(); | |
| void set_allocated_string_value(::std::string* PROTOBUF_NULLABLE value); | |
| // bool bool_value = 4; | |
| [[nodiscard]] bool has_bool_value() const; | |
| void clear_bool_value() ; | |
| [[nodiscard]] bool bool_value() const; | |
| void set_bool_value(bool value); | |
| // .google.protobuf.Struct struct_value = 5; | |
| [[nodiscard]] bool has_struct_value() const; | |
| void clear_struct_value() ; | |
| [[nodiscard]] const ::google::protobuf::Struct& struct_value() const; | |
| [[nodiscard]] ::google::protobuf::Struct* PROTOBUF_NULLABLE release_struct_value(); | |
| ::google::protobuf::Struct* PROTOBUF_NONNULL mutable_struct_value(); | |
| void set_allocated_struct_value(::google::protobuf::Struct* PROTOBUF_NULLABLE value); | |
| void unsafe_arena_set_allocated_struct_value(::google::protobuf::Struct* PROTOBUF_NULLABLE value); | |
| ::google::protobuf::Struct* PROTOBUF_NULLABLE unsafe_arena_release_struct_value(); | |
| // .google.protobuf.ListValue list_value = 6; | |
| [[nodiscard]] bool has_list_value() const; | |
| void clear_list_value() ; | |
| [[nodiscard]] const ::google::protobuf::ListValue& list_value() const; | |
| [[nodiscard]] ::google::protobuf::ListValue* PROTOBUF_NULLABLE release_list_value(); | |
| ::google::protobuf::ListValue* PROTOBUF_NONNULL mutable_list_value(); | |
| void set_allocated_list_value(::google::protobuf::ListValue* PROTOBUF_NULLABLE value); | |
| void unsafe_arena_set_allocated_list_value(::google::protobuf::ListValue* PROTOBUF_NULLABLE value); | |
| ::google::protobuf::ListValue* PROTOBUF_NULLABLE unsafe_arena_release_list_value(); | |
| void clear_kind(); | |
| KindCase kind_case() const; | |
| // @@protoc_insertion_point(class_scope:google.protobuf.Value) | |
| private: | |
| class _Internal; | |
| void set_has_null_value(); | |
| void set_has_number_value(); | |
| void set_has_string_value(); | |
| void set_has_bool_value(); | |
| void set_has_struct_value(); | |
| void set_has_list_value(); | |
| [[nodiscard]] inline bool has_kind() const; | |
| inline void clear_has_kind(); | |
| using ParseTableT_ = | |
| ::google::protobuf::internal::TcParseTable<0, 6, | |
| 2, 42, | |
| 2>; | |
| friend class ::google::protobuf::MessageLite; | |
| friend class ::google::protobuf::Arena; | |
| friend ::google::protobuf::internal::PrivateAccess; | |
| template <typename T> | |
| friend class ::google::protobuf::Arena::InternalHelper; | |
| using InternalArenaConstructable_ = void; | |
| using DestructorSkippable_ = void; | |
| struct Impl_ { | |
| inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, | |
| ::google::protobuf::internal::ConstantInitialized) noexcept; | |
| inline explicit Impl_( | |
| ::google::protobuf::internal::InternalVisibility visibility, | |
| ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); | |
| inline explicit Impl_( | |
| ::google::protobuf::internal::InternalVisibility visibility, | |
| ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, | |
| const Value& from_msg); | |
| union KindUnion { | |
| constexpr KindUnion() : _constinit_{} {} | |
| ::google::protobuf::internal::ConstantInitialized _constinit_; | |
| int null_value_; | |
| double number_value_; | |
| ::google::protobuf::internal::ArenaStringPtr string_value_; | |
| bool bool_value_; | |
| ::google::protobuf::Struct* PROTOBUF_NULLABLE struct_value_; | |
| ::google::protobuf::ListValue* PROTOBUF_NULLABLE list_value_; | |
| } kind_; | |
| ::google::protobuf::internal::CachedSize _cached_size_; | |
| ::uint32_t _oneof_case_[1]; | |
| PROTOBUF_TSAN_DECLARE_MEMBER | |
| }; | |
| union { Impl_ _impl_; }; | |
| friend struct ::TableStruct_google_2fprotobuf_2fstruct_2eproto; | |
| }; | |
| // =================================================================== | |
| // =================================================================== | |
| #ifdef __GNUC__ | |
| #pragma GCC diagnostic push | |
| #pragma GCC diagnostic ignored "-Wstrict-aliasing" | |
| #endif // __GNUC__ | |
| // ------------------------------------------------------------------- | |
| // ------------------------------------------------------------------- | |
| // Struct | |
| // map<string, .google.protobuf.Value> fields = 1; | |
| inline int Struct::_internal_fields_size() const { | |
| return static_cast<int>(_internal_fields().size()); | |
| } | |
| inline int Struct::fields_size() const { | |
| return _internal_fields_size(); | |
| } | |
| inline void Struct::clear_fields() { | |
| ::google::protobuf::internal::TSanWrite(&_impl_); | |
| _impl_.fields_.Clear(); | |
| ClearHasBit(_impl_._has_bits_[0], 0x00000001U); | |
| } | |
| inline const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& Struct::_internal_fields() const { | |
| ::google::protobuf::internal::TSanRead(&_impl_); | |
| return _impl_.fields_.GetMap(); | |
| } | |
| inline const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& Struct::fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND { | |
| // @@protoc_insertion_point(field_map:google.protobuf.Struct.fields) | |
| return _internal_fields(); | |
| } | |
| inline ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL Struct::_internal_mutable_fields() { | |
| ::google::protobuf::internal::TSanWrite(&_impl_); | |
| return _impl_.fields_.MutableMap(); | |
| } | |
| inline ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL Struct::mutable_fields() | |
| ABSL_ATTRIBUTE_LIFETIME_BOUND { | |
| SetHasBit(_impl_._has_bits_[0], 0x00000001U); | |
| // @@protoc_insertion_point(field_mutable_map:google.protobuf.Struct.fields) | |
| return _internal_mutable_fields(); | |
| } | |
| // ------------------------------------------------------------------- | |
| // Value | |
| // .google.protobuf.NullValue null_value = 1; | |
| inline bool Value::has_null_value() const { | |
| return kind_case() == kNullValue; | |
| } | |
| inline void Value::set_has_null_value() { | |
| _impl_._oneof_case_[0] = kNullValue; | |
| } | |
| inline void Value::clear_null_value() { | |
| ::google::protobuf::internal::TSanWrite(&_impl_); | |
| if (kind_case() == kNullValue) { | |
| _impl_.kind_.null_value_ = 0; | |
| clear_has_kind(); | |
| } | |
| } | |
| inline ::google::protobuf::NullValue Value::null_value() const { | |
| // @@protoc_insertion_point(field_get:google.protobuf.Value.null_value) | |
| return _internal_null_value(); | |
| } | |
| inline void Value::set_null_value(::google::protobuf::NullValue value) { | |
| if (kind_case() != kNullValue) { | |
| clear_kind(); | |
| set_has_null_value(); | |
| } | |
| _impl_.kind_.null_value_ = value; | |
| // @@protoc_insertion_point(field_set:google.protobuf.Value.null_value) | |
| } | |
| inline ::google::protobuf::NullValue Value::_internal_null_value() const { | |
| if (kind_case() == kNullValue) { | |
| return static_cast<::google::protobuf::NullValue>(_impl_.kind_.null_value_); | |
| } | |
| return static_cast<::google::protobuf::NullValue>(0); | |
| } | |
| // double number_value = 2; | |
| inline bool Value::has_number_value() const { | |
| return kind_case() == kNumberValue; | |
| } | |
| inline void Value::set_has_number_value() { | |
| _impl_._oneof_case_[0] = kNumberValue; | |
| } | |
| inline void Value::clear_number_value() { | |
| ::google::protobuf::internal::TSanWrite(&_impl_); | |
| if (kind_case() == kNumberValue) { | |
| _impl_.kind_.number_value_ = 0.; | |
| clear_has_kind(); | |
| } | |
| } | |
| inline double Value::number_value() const { | |
| // @@protoc_insertion_point(field_get:google.protobuf.Value.number_value) | |
| return _internal_number_value(); | |
| } | |
| inline void Value::set_number_value(double value) { | |
| if (kind_case() != kNumberValue) { | |
| clear_kind(); | |
| set_has_number_value(); | |
| } | |
| _impl_.kind_.number_value_ = value; | |
| // @@protoc_insertion_point(field_set:google.protobuf.Value.number_value) | |
| } | |
| inline double Value::_internal_number_value() const { | |
| if (kind_case() == kNumberValue) { | |
| return _impl_.kind_.number_value_; | |
| } | |
| return 0.; | |
| } | |
| // string string_value = 3; | |
| inline bool Value::has_string_value() const { | |
| return kind_case() == kStringValue; | |
| } | |
| inline void Value::set_has_string_value() { | |
| _impl_._oneof_case_[0] = kStringValue; | |
| } | |
| inline void Value::clear_string_value() { | |
| ::google::protobuf::internal::TSanWrite(&_impl_); | |
| if (kind_case() == kStringValue) { | |
| _impl_.kind_.string_value_.Destroy(); | |
| clear_has_kind(); | |
| } | |
| } | |
| inline const ::std::string& Value::string_value() const | |
| ABSL_ATTRIBUTE_LIFETIME_BOUND { | |
| // @@protoc_insertion_point(field_get:google.protobuf.Value.string_value) | |
| return _internal_string_value(); | |
| } | |
| template <typename Arg_, typename... Args_> | |
| PROTOBUF_ALWAYS_INLINE void Value::set_string_value(Arg_&& arg, Args_... args) { | |
| ::google::protobuf::internal::TSanWrite(&_impl_); | |
| if (kind_case() != kStringValue) { | |
| clear_kind(); | |
| set_has_string_value(); | |
| _impl_.kind_.string_value_.InitDefault(); | |
| } | |
| _impl_.kind_.string_value_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); | |
| // @@protoc_insertion_point(field_set:google.protobuf.Value.string_value) | |
| } | |
| inline ::std::string* PROTOBUF_NONNULL Value::mutable_string_value() | |
| ABSL_ATTRIBUTE_LIFETIME_BOUND { | |
| if (kind_case() != kStringValue) { | |
| clear_kind(); | |
| set_has_string_value(); | |
| _impl_.kind_.string_value_.InitDefault(); | |
| } | |
| ::std::string* _s = _internal_mutable_string_value(); | |
| // @@protoc_insertion_point(field_mutable:google.protobuf.Value.string_value) | |
| return _s; | |
| } | |
| inline const ::std::string& Value::_internal_string_value() const { | |
| ::google::protobuf::internal::TSanRead(&_impl_); | |
| if (kind_case() != kStringValue) { | |
| return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); | |
| } | |
| return _impl_.kind_.string_value_.Get(); | |
| } | |
| inline void Value::_internal_set_string_value(const ::std::string& value) { | |
| ::google::protobuf::internal::TSanWrite(&_impl_); | |
| _impl_.kind_.string_value_.Set(value, GetArena()); | |
| } | |
| inline ::std::string* PROTOBUF_NONNULL Value::_internal_mutable_string_value() { | |
| ::google::protobuf::internal::TSanWrite(&_impl_); | |
| return _impl_.kind_.string_value_.Mutable( GetArena()); | |
| } | |
| inline ::std::string* PROTOBUF_NULLABLE Value::release_string_value() { | |
| ::google::protobuf::internal::TSanWrite(&_impl_); | |
| // @@protoc_insertion_point(field_release:google.protobuf.Value.string_value) | |
| if (kind_case() != kStringValue) { | |
| return nullptr; | |
| } | |
| clear_has_kind(); | |
| return _impl_.kind_.string_value_.Release(); | |
| } | |
| inline void Value::set_allocated_string_value(::std::string* PROTOBUF_NULLABLE value) { | |
| ::google::protobuf::internal::TSanWrite(&_impl_); | |
| if (has_kind()) { | |
| clear_kind(); | |
| } | |
| if (value != nullptr) { | |
| set_has_string_value(); | |
| _impl_.kind_.string_value_.InitAllocated(value, GetArena()); | |
| } | |
| // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.string_value) | |
| } | |
| // bool bool_value = 4; | |
| inline bool Value::has_bool_value() const { | |
| return kind_case() == kBoolValue; | |
| } | |
| inline void Value::set_has_bool_value() { | |
| _impl_._oneof_case_[0] = kBoolValue; | |
| } | |
| inline void Value::clear_bool_value() { | |
| ::google::protobuf::internal::TSanWrite(&_impl_); | |
| if (kind_case() == kBoolValue) { | |
| _impl_.kind_.bool_value_ = false; | |
| clear_has_kind(); | |
| } | |
| } | |
| inline bool Value::bool_value() const { | |
| // @@protoc_insertion_point(field_get:google.protobuf.Value.bool_value) | |
| return _internal_bool_value(); | |
| } | |
| inline void Value::set_bool_value(bool value) { | |
| if (kind_case() != kBoolValue) { | |
| clear_kind(); | |
| set_has_bool_value(); | |
| } | |
| _impl_.kind_.bool_value_ = value; | |
| // @@protoc_insertion_point(field_set:google.protobuf.Value.bool_value) | |
| } | |
| inline bool Value::_internal_bool_value() const { | |
| if (kind_case() == kBoolValue) { | |
| return _impl_.kind_.bool_value_; | |
| } | |
| return false; | |
| } | |
| // .google.protobuf.Struct struct_value = 5; | |
| inline bool Value::has_struct_value() const { | |
| return kind_case() == kStructValue; | |
| } | |
| inline bool Value::_internal_has_struct_value() const { | |
| return kind_case() == kStructValue; | |
| } | |
| inline void Value::set_has_struct_value() { | |
| _impl_._oneof_case_[0] = kStructValue; | |
| } | |
| inline void Value::clear_struct_value() { | |
| ::google::protobuf::internal::TSanWrite(&_impl_); | |
| if (kind_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_); | |
| } | |
| clear_has_kind(); | |
| } | |
| } | |
| inline ::google::protobuf::Struct* PROTOBUF_NULLABLE Value::release_struct_value() { | |
| // @@protoc_insertion_point(field_release:google.protobuf.Value.struct_value) | |
| if (kind_case() == kStructValue) { | |
| clear_has_kind(); | |
| auto* temp = _impl_.kind_.struct_value_; | |
| if (::google::protobuf::internal::HasArena(*this)) { | |
| temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); | |
| } | |
| _impl_.kind_.struct_value_ = nullptr; | |
| return temp; | |
| } else { | |
| return nullptr; | |
| } | |
| } | |
| inline const ::google::protobuf::Struct& Value::_internal_struct_value() const { | |
| return kind_case() == kStructValue ? static_cast<const ::google::protobuf::Struct&>(*_impl_.kind_.struct_value_) | |
| : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::google::protobuf::Struct>(&::google::protobuf::Struct_globals_); | |
| } | |
| inline const ::google::protobuf::Struct& Value::struct_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { | |
| // @@protoc_insertion_point(field_get:google.protobuf.Value.struct_value) | |
| return _internal_struct_value(); | |
| } | |
| inline ::google::protobuf::Struct* PROTOBUF_NULLABLE Value::unsafe_arena_release_struct_value() { | |
| // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.struct_value) | |
| if (kind_case() == kStructValue) { | |
| clear_has_kind(); | |
| auto* temp = _impl_.kind_.struct_value_; | |
| _impl_.kind_.struct_value_ = nullptr; | |
| return temp; | |
| } else { | |
| return nullptr; | |
| } | |
| } | |
| inline void Value::unsafe_arena_set_allocated_struct_value( | |
| ::google::protobuf::Struct* PROTOBUF_NULLABLE value) { | |
| // We rely on the oneof clear method to free the earlier contents | |
| // of this oneof. We can directly use the pointer we're given to | |
| // set the new value. | |
| clear_kind(); | |
| if (value) { | |
| set_has_struct_value(); | |
| _impl_.kind_.struct_value_ = value; | |
| } | |
| // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Value.struct_value) | |
| } | |
| inline ::google::protobuf::Struct* PROTOBUF_NONNULL Value::_internal_mutable_struct_value() { | |
| if (kind_case() != kStructValue) { | |
| clear_kind(); | |
| set_has_struct_value(); | |
| _impl_.kind_.struct_value_ = Super_::DefaultConstruct<::google::protobuf::Struct>(GetArena()); | |
| } | |
| return _impl_.kind_.struct_value_; | |
| } | |
| inline ::google::protobuf::Struct* PROTOBUF_NONNULL Value::mutable_struct_value() | |
| ABSL_ATTRIBUTE_LIFETIME_BOUND { | |
| ::google::protobuf::Struct* _msg = _internal_mutable_struct_value(); | |
| // @@protoc_insertion_point(field_mutable:google.protobuf.Value.struct_value) | |
| return _msg; | |
| } | |
| // .google.protobuf.ListValue list_value = 6; | |
| inline bool Value::has_list_value() const { | |
| return kind_case() == kListValue; | |
| } | |
| inline bool Value::_internal_has_list_value() const { | |
| return kind_case() == kListValue; | |
| } | |
| inline void Value::set_has_list_value() { | |
| _impl_._oneof_case_[0] = kListValue; | |
| } | |
| inline void Value::clear_list_value() { | |
| ::google::protobuf::internal::TSanWrite(&_impl_); | |
| if (kind_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_); | |
| } | |
| clear_has_kind(); | |
| } | |
| } | |
| inline ::google::protobuf::ListValue* PROTOBUF_NULLABLE Value::release_list_value() { | |
| // @@protoc_insertion_point(field_release:google.protobuf.Value.list_value) | |
| if (kind_case() == kListValue) { | |
| clear_has_kind(); | |
| auto* temp = _impl_.kind_.list_value_; | |
| if (::google::protobuf::internal::HasArena(*this)) { | |
| temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); | |
| } | |
| _impl_.kind_.list_value_ = nullptr; | |
| return temp; | |
| } else { | |
| return nullptr; | |
| } | |
| } | |
| inline const ::google::protobuf::ListValue& Value::_internal_list_value() const { | |
| return kind_case() == kListValue ? static_cast<const ::google::protobuf::ListValue&>(*_impl_.kind_.list_value_) | |
| : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::google::protobuf::ListValue>(&::google::protobuf::ListValue_globals_); | |
| } | |
| inline const ::google::protobuf::ListValue& Value::list_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { | |
| // @@protoc_insertion_point(field_get:google.protobuf.Value.list_value) | |
| return _internal_list_value(); | |
| } | |
| inline ::google::protobuf::ListValue* PROTOBUF_NULLABLE Value::unsafe_arena_release_list_value() { | |
| // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.list_value) | |
| if (kind_case() == kListValue) { | |
| clear_has_kind(); | |
| auto* temp = _impl_.kind_.list_value_; | |
| _impl_.kind_.list_value_ = nullptr; | |
| return temp; | |
| } else { | |
| return nullptr; | |
| } | |
| } | |
| inline void Value::unsafe_arena_set_allocated_list_value( | |
| ::google::protobuf::ListValue* PROTOBUF_NULLABLE value) { | |
| // We rely on the oneof clear method to free the earlier contents | |
| // of this oneof. We can directly use the pointer we're given to | |
| // set the new value. | |
| clear_kind(); | |
| if (value) { | |
| set_has_list_value(); | |
| _impl_.kind_.list_value_ = value; | |
| } | |
| // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Value.list_value) | |
| } | |
| inline ::google::protobuf::ListValue* PROTOBUF_NONNULL Value::_internal_mutable_list_value() { | |
| if (kind_case() != kListValue) { | |
| clear_kind(); | |
| set_has_list_value(); | |
| _impl_.kind_.list_value_ = Super_::DefaultConstruct<::google::protobuf::ListValue>(GetArena()); | |
| } | |
| return _impl_.kind_.list_value_; | |
| } | |
| inline ::google::protobuf::ListValue* PROTOBUF_NONNULL Value::mutable_list_value() | |
| ABSL_ATTRIBUTE_LIFETIME_BOUND { | |
| ::google::protobuf::ListValue* _msg = _internal_mutable_list_value(); | |
| // @@protoc_insertion_point(field_mutable:google.protobuf.Value.list_value) | |
| return _msg; | |
| } | |
| inline bool Value::has_kind() const { | |
| return kind_case() != KIND_NOT_SET; | |
| } | |
| inline void Value::clear_has_kind() { | |
| _impl_._oneof_case_[0] = KIND_NOT_SET; | |
| } | |
| inline Value::KindCase Value::kind_case() const { | |
| return Value::KindCase(_impl_._oneof_case_[0]); | |
| } | |
| // ------------------------------------------------------------------- | |
| // ListValue | |
| // repeated .google.protobuf.Value values = 1; | |
| inline int ListValue::_internal_values_size() const { | |
| return static_cast<int>(_internal_values().size()); | |
| } | |
| inline int ListValue::values_size() const { | |
| return _internal_values_size(); | |
| } | |
| inline void ListValue::clear_values() { | |
| ::google::protobuf::internal::TSanWrite(&_impl_); | |
| _impl_.values_.Clear(); | |
| ClearHasBit(_impl_._has_bits_[0], 0x00000001U); | |
| } | |
| inline const ::google::protobuf::Value& ListValue::values(int index) const | |
| ABSL_ATTRIBUTE_LIFETIME_BOUND { | |
| // @@protoc_insertion_point(field_get:google.protobuf.ListValue.values) | |
| return _internal_values().Get(index); | |
| } | |
| inline ::google::protobuf::Value* PROTOBUF_NONNULL ListValue::mutable_values(int index) | |
| ABSL_ATTRIBUTE_LIFETIME_BOUND { | |
| // @@protoc_insertion_point(field_mutable:google.protobuf.ListValue.values) | |
| return _internal_mutable_values()->Mutable(index); | |
| } | |
| inline ::google::protobuf::Value* PROTOBUF_NONNULL ListValue::add_values() | |
| ABSL_ATTRIBUTE_LIFETIME_BOUND { | |
| ::google::protobuf::internal::TSanWrite(&_impl_); | |
| ::google::protobuf::Value* _add = | |
| _internal_mutable_values()->InternalAddWithArena( | |
| ::google::protobuf::MessageLite::internal_visibility(), GetArena()); | |
| SetHasBit(_impl_._has_bits_[0], 0x00000001U); | |
| // @@protoc_insertion_point(field_add:google.protobuf.ListValue.values) | |
| return _add; | |
| } | |
| inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Value>& ListValue::values() const | |
| ABSL_ATTRIBUTE_LIFETIME_BOUND { | |
| // @@protoc_insertion_point(field_list:google.protobuf.ListValue.values) | |
| return _internal_values(); | |
| } | |
| inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Value>* PROTOBUF_NONNULL | |
| ListValue::mutable_values() ABSL_ATTRIBUTE_LIFETIME_BOUND { | |
| SetHasBit(_impl_._has_bits_[0], 0x00000001U); | |
| // @@protoc_insertion_point(field_mutable_list:google.protobuf.ListValue.values) | |
| ::google::protobuf::internal::TSanWrite(&_impl_); | |
| return _internal_mutable_values(); | |
| } | |
| inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Value>& | |
| ListValue::_internal_values() const { | |
| ::google::protobuf::internal::TSanRead(&_impl_); | |
| return _impl_.values_; | |
| } | |
| inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Value>* PROTOBUF_NONNULL | |
| ListValue::_internal_mutable_values() { | |
| ::google::protobuf::internal::TSanRead(&_impl_); | |
| return &_impl_.values_; | |
| } | |
| #ifdef __GNUC__ | |
| #pragma GCC diagnostic pop | |
| #endif // __GNUC__ | |
| // @@protoc_insertion_point(namespace_scope) | |
| } // namespace protobuf | |
| } // namespace google | |
| namespace google { | |
| namespace protobuf { | |
| template <> | |
| struct is_proto_enum<::google::protobuf::NullValue> : std::true_type {}; | |
| template <> | |
| inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::google::protobuf::NullValue>() { | |
| return ::google::protobuf::NullValue_descriptor(); | |
| } | |
| } // namespace protobuf | |
| } // namespace google | |
| // @@protoc_insertion_point(global_scope) | |
| #include "google/protobuf/port_undef.inc" | |
| // clang-format on | |
| #endif // google_2fprotobuf_2fstruct_2eproto_2epb_2eh |