|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: google/protobuf/struct.proto
-
- #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fstruct_2eproto
- #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fstruct_2eproto
-
- #include <limits>
- #include <string>
-
- #include <google/protobuf/port_def.inc>
- #if PROTOBUF_VERSION < 3021000
- #error This file was generated by a newer version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please update
- #error your headers.
- #endif
- #if 3021006 < PROTOBUF_MIN_PROTOC_VERSION
- #error This file was generated by an older version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please
- #error regenerate this file with a newer version of protoc.
- #endif
-
- #include <google/protobuf/port_undef.inc>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/arena.h>
- #include <google/protobuf/arenastring.h>
- #include <google/protobuf/generated_message_util.h>
- #include <google/protobuf/metadata_lite.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/message.h>
- #include <google/protobuf/repeated_field.h> // IWYU pragma: export
- #include <google/protobuf/extension_set.h> // IWYU pragma: export
- #include <google/protobuf/map.h> // IWYU pragma: export
- #include <google/protobuf/map_entry.h>
- #include <google/protobuf/map_field_inl.h>
- #include <google/protobuf/generated_enum_reflection.h>
- #include <google/protobuf/unknown_field_set.h>
- // @@protoc_insertion_point(includes)
- #include <google/protobuf/port_def.inc>
- #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fstruct_2eproto PROTOBUF_EXPORT
- PROTOBUF_NAMESPACE_OPEN
- namespace internal
- {
- class AnyMetadata;
- } // namespace internal
- PROTOBUF_NAMESPACE_CLOSE
-
- // Internal implementation detail -- do not use these members.
- struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2fstruct_2eproto
- {
- static const uint32_t offsets[];
- };
- PROTOBUF_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fstruct_2eproto;
- PROTOBUF_NAMESPACE_OPEN
- class ListValue;
- struct ListValueDefaultTypeInternal;
- PROTOBUF_EXPORT extern ListValueDefaultTypeInternal _ListValue_default_instance_;
- class Struct;
- struct StructDefaultTypeInternal;
- PROTOBUF_EXPORT extern StructDefaultTypeInternal _Struct_default_instance_;
- class Struct_FieldsEntry_DoNotUse;
- struct Struct_FieldsEntry_DoNotUseDefaultTypeInternal;
- PROTOBUF_EXPORT extern Struct_FieldsEntry_DoNotUseDefaultTypeInternal _Struct_FieldsEntry_DoNotUse_default_instance_;
- class Value;
- struct ValueDefaultTypeInternal;
- PROTOBUF_EXPORT extern ValueDefaultTypeInternal _Value_default_instance_;
- PROTOBUF_NAMESPACE_CLOSE
- PROTOBUF_NAMESPACE_OPEN
- template<>
- PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::ListValue* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::ListValue>(Arena*);
- template<>
- PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::Struct* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(Arena*);
- template<>
- PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::Struct_FieldsEntry_DoNotUse* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct_FieldsEntry_DoNotUse>(Arena*);
- template<>
- PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::Value* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Value>(Arena*);
- PROTOBUF_NAMESPACE_CLOSE
- PROTOBUF_NAMESPACE_OPEN
-
- 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 bool NullValue_IsValid(int value);
- constexpr NullValue NullValue_MIN = NULL_VALUE;
- constexpr NullValue NullValue_MAX = NULL_VALUE;
- constexpr int NullValue_ARRAYSIZE = NullValue_MAX + 1;
-
- PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* NullValue_descriptor();
- template<typename T>
- inline const std::string& NullValue_Name(T enum_t_value)
- {
- static_assert(::std::is_same<T, NullValue>::value || ::std::is_integral<T>::value, "Incorrect type passed to function NullValue_Name.");
- return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
- NullValue_descriptor(), enum_t_value
- );
- }
- inline bool NullValue_Parse(
- ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, NullValue* value
- )
- {
- return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<NullValue>(
- NullValue_descriptor(), name, value
- );
- }
- // ===================================================================
-
- class Struct_FieldsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<Struct_FieldsEntry_DoNotUse, std::string, ::PROTOBUF_NAMESPACE_ID::Value, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE>
- {
- public:
- typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<Struct_FieldsEntry_DoNotUse, std::string, ::PROTOBUF_NAMESPACE_ID::Value, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> SuperType;
- Struct_FieldsEntry_DoNotUse();
- explicit PROTOBUF_CONSTEXPR Struct_FieldsEntry_DoNotUse(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized
- );
- explicit Struct_FieldsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- void MergeFrom(const Struct_FieldsEntry_DoNotUse& other);
- static const Struct_FieldsEntry_DoNotUse* internal_default_instance()
- {
- return reinterpret_cast<const Struct_FieldsEntry_DoNotUse*>(&_Struct_FieldsEntry_DoNotUse_default_instance_);
- }
- static bool ValidateKey(std::string* s)
- {
- return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "google.protobuf.Struct.FieldsEntry.key");
- }
- static bool ValidateValue(void*)
- {
- return true;
- }
- using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- friend struct ::TableStruct_google_2fprotobuf_2fstruct_2eproto;
- };
-
- // -------------------------------------------------------------------
-
- class PROTOBUF_EXPORT Struct final :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Struct) */
- {
- public:
- inline Struct() :
- Struct(nullptr)
- {
- }
- ~Struct() override;
- explicit PROTOBUF_CONSTEXPR Struct(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
-
- Struct(const Struct& from);
- Struct(Struct&& from) noexcept
- :
- Struct()
- {
- *this = ::std::move(from);
- }
-
- inline Struct& operator=(const Struct& from)
- {
- CopyFrom(from);
- return *this;
- }
- inline Struct& operator=(Struct&& from) noexcept
- {
- if (this == &from)
- return *this;
- if (GetOwningArena() == from.GetOwningArena()
- #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
- && GetOwningArena() != nullptr
- #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
- )
- {
- InternalSwap(&from);
- }
- else
- {
- CopyFrom(from);
- }
- return *this;
- }
-
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
- {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
- {
- return default_instance().GetMetadata().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
- {
- return default_instance().GetMetadata().reflection;
- }
- static const Struct& default_instance()
- {
- return *internal_default_instance();
- }
- static inline const Struct* internal_default_instance()
- {
- return reinterpret_cast<const Struct*>(
- &_Struct_default_instance_
- );
- }
- static constexpr int kIndexInFileMessages =
- 1;
-
- friend void swap(Struct& a, Struct& b)
- {
- a.Swap(&b);
- }
- inline void Swap(Struct* other)
- {
- if (other == this)
- return;
- #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
- if (GetOwningArena() != nullptr &&
- GetOwningArena() == other->GetOwningArena())
- {
- #else // PROTOBUF_FORCE_COPY_IN_SWAP
- if (GetOwningArena() == other->GetOwningArena())
- {
- #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
- InternalSwap(other);
- }
- else
- {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(Struct* other)
- {
- if (other == this)
- return;
- GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
- InternalSwap(other);
- }
-
- // implements Message ----------------------------------------------
-
- Struct* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
- {
- return CreateMaybeMessage<Struct>(arena);
- }
- using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
- void CopyFrom(const Struct& from);
- using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
- void MergeFrom(const Struct& from)
- {
- Struct::MergeImpl(*this, from);
- }
-
- private:
- static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
-
- public:
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
-
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- uint8_t* _InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const final;
- int GetCachedSize() const final
- {
- return _impl_._cached_size_.Get();
- }
-
- private:
- void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(Struct* other);
-
- private:
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
- {
- return "google.protobuf.Struct";
- }
-
- protected:
- explicit Struct(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
-
- private:
- static void ArenaDtor(void* object);
-
- public:
- static const ClassData _class_data_;
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
-
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
-
- // nested types ----------------------------------------------------
-
- // accessors -------------------------------------------------------
-
- enum : int
- {
- kFieldsFieldNumber = 1,
- };
- // map<string, .google.protobuf.Value> fields = 1;
- int fields_size() const;
-
- private:
- int _internal_fields_size() const;
-
- public:
- void clear_fields();
-
- private:
- const ::PROTOBUF_NAMESPACE_ID::Map<std::string, ::PROTOBUF_NAMESPACE_ID::Value>&
- _internal_fields() const;
- ::PROTOBUF_NAMESPACE_ID::Map<std::string, ::PROTOBUF_NAMESPACE_ID::Value>*
- _internal_mutable_fields();
-
- public:
- const ::PROTOBUF_NAMESPACE_ID::Map<std::string, ::PROTOBUF_NAMESPACE_ID::Value>&
- fields() const;
- ::PROTOBUF_NAMESPACE_ID::Map<std::string, ::PROTOBUF_NAMESPACE_ID::Value>*
- mutable_fields();
-
- // @@protoc_insertion_point(class_scope:google.protobuf.Struct)
-
- private:
- class _Internal;
-
- template<typename T>
- friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- struct Impl_
- {
- ::PROTOBUF_NAMESPACE_ID::internal::MapField<
- Struct_FieldsEntry_DoNotUse,
- std::string,
- ::PROTOBUF_NAMESPACE_ID::Value,
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE>
- fields_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- };
- union
- {
- Impl_ _impl_;
- };
- friend struct ::TableStruct_google_2fprotobuf_2fstruct_2eproto;
- };
- // -------------------------------------------------------------------
-
- class PROTOBUF_EXPORT Value final :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Value) */
- {
- public:
- inline Value() :
- Value(nullptr)
- {
- }
- ~Value() override;
- explicit PROTOBUF_CONSTEXPR Value(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
-
- Value(const Value& from);
- Value(Value&& from) noexcept
- :
- Value()
- {
- *this = ::std::move(from);
- }
-
- inline Value& operator=(const Value& from)
- {
- CopyFrom(from);
- return *this;
- }
- inline Value& operator=(Value&& from) noexcept
- {
- if (this == &from)
- return *this;
- if (GetOwningArena() == from.GetOwningArena()
- #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
- && GetOwningArena() != nullptr
- #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
- )
- {
- InternalSwap(&from);
- }
- else
- {
- CopyFrom(from);
- }
- return *this;
- }
-
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
- {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
- {
- return default_instance().GetMetadata().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
- {
- return default_instance().GetMetadata().reflection;
- }
- static const Value& default_instance()
- {
- return *internal_default_instance();
- }
- enum KindCase
- {
- kNullValue = 1,
- kNumberValue = 2,
- kStringValue = 3,
- kBoolValue = 4,
- kStructValue = 5,
- kListValue = 6,
- KIND_NOT_SET = 0,
- };
-
- static inline const Value* internal_default_instance()
- {
- return reinterpret_cast<const Value*>(
- &_Value_default_instance_
- );
- }
- static constexpr int kIndexInFileMessages =
- 2;
-
- friend void swap(Value& a, Value& b)
- {
- a.Swap(&b);
- }
- inline void Swap(Value* other)
- {
- if (other == this)
- return;
- #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
- if (GetOwningArena() != nullptr &&
- GetOwningArena() == other->GetOwningArena())
- {
- #else // PROTOBUF_FORCE_COPY_IN_SWAP
- if (GetOwningArena() == other->GetOwningArena())
- {
- #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
- InternalSwap(other);
- }
- else
- {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(Value* other)
- {
- if (other == this)
- return;
- GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
- InternalSwap(other);
- }
-
- // implements Message ----------------------------------------------
-
- Value* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
- {
- return CreateMaybeMessage<Value>(arena);
- }
- using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
- void CopyFrom(const Value& from);
- using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
- void MergeFrom(const Value& from)
- {
- Value::MergeImpl(*this, from);
- }
-
- private:
- static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
-
- public:
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
-
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- uint8_t* _InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const final;
- int GetCachedSize() const final
- {
- return _impl_._cached_size_.Get();
- }
-
- private:
- void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(Value* other);
-
- private:
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
- {
- return "google.protobuf.Value";
- }
-
- protected:
- explicit Value(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
-
- public:
- static const ClassData _class_data_;
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
-
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
-
- // nested types ----------------------------------------------------
-
- // accessors -------------------------------------------------------
-
- enum : int
- {
- kNullValueFieldNumber = 1,
- kNumberValueFieldNumber = 2,
- kStringValueFieldNumber = 3,
- kBoolValueFieldNumber = 4,
- kStructValueFieldNumber = 5,
- kListValueFieldNumber = 6,
- };
- // .google.protobuf.NullValue null_value = 1;
- bool has_null_value() const;
-
- private:
- bool _internal_has_null_value() const;
-
- public:
- void clear_null_value();
- ::PROTOBUF_NAMESPACE_ID::NullValue null_value() const;
- void set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value);
-
- private:
- ::PROTOBUF_NAMESPACE_ID::NullValue _internal_null_value() const;
- void _internal_set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value);
-
- public:
- // double number_value = 2;
- bool has_number_value() const;
-
- private:
- bool _internal_has_number_value() const;
-
- public:
- void clear_number_value();
- double number_value() const;
- void set_number_value(double value);
-
- private:
- double _internal_number_value() const;
- void _internal_set_number_value(double value);
-
- public:
- // string string_value = 3;
- bool has_string_value() const;
-
- private:
- bool _internal_has_string_value() const;
-
- public:
- void clear_string_value();
- const std::string& string_value() const;
- template<typename ArgT0 = const std::string&, typename... ArgT>
- void set_string_value(ArgT0&& arg0, ArgT... args);
- std::string* mutable_string_value();
- PROTOBUF_NODISCARD std::string* release_string_value();
- void set_allocated_string_value(std::string* string_value);
-
- private:
- const std::string& _internal_string_value() const;
- inline PROTOBUF_ALWAYS_INLINE void _internal_set_string_value(const std::string& value);
- std::string* _internal_mutable_string_value();
-
- public:
- // bool bool_value = 4;
- bool has_bool_value() const;
-
- private:
- bool _internal_has_bool_value() const;
-
- public:
- void clear_bool_value();
- bool bool_value() const;
- void set_bool_value(bool value);
-
- private:
- bool _internal_bool_value() const;
- void _internal_set_bool_value(bool value);
-
- public:
- // .google.protobuf.Struct struct_value = 5;
- bool has_struct_value() const;
-
- private:
- bool _internal_has_struct_value() const;
-
- public:
- void clear_struct_value();
- const ::PROTOBUF_NAMESPACE_ID::Struct& struct_value() const;
- PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_struct_value();
- ::PROTOBUF_NAMESPACE_ID::Struct* mutable_struct_value();
- void set_allocated_struct_value(::PROTOBUF_NAMESPACE_ID::Struct* struct_value);
-
- private:
- const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_struct_value() const;
- ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_struct_value();
-
- public:
- void unsafe_arena_set_allocated_struct_value(
- ::PROTOBUF_NAMESPACE_ID::Struct* struct_value
- );
- ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_struct_value();
-
- // .google.protobuf.ListValue list_value = 6;
- bool has_list_value() const;
-
- private:
- bool _internal_has_list_value() const;
-
- public:
- void clear_list_value();
- const ::PROTOBUF_NAMESPACE_ID::ListValue& list_value() const;
- PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::ListValue* release_list_value();
- ::PROTOBUF_NAMESPACE_ID::ListValue* mutable_list_value();
- void set_allocated_list_value(::PROTOBUF_NAMESPACE_ID::ListValue* list_value);
-
- private:
- const ::PROTOBUF_NAMESPACE_ID::ListValue& _internal_list_value() const;
- ::PROTOBUF_NAMESPACE_ID::ListValue* _internal_mutable_list_value();
-
- public:
- void unsafe_arena_set_allocated_list_value(
- ::PROTOBUF_NAMESPACE_ID::ListValue* list_value
- );
- ::PROTOBUF_NAMESPACE_ID::ListValue* 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();
-
- inline bool has_kind() const;
- inline void clear_has_kind();
-
- template<typename T>
- friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- struct Impl_
- {
- union KindUnion
- {
- constexpr KindUnion() :
- _constinit_{}
- {
- }
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
- int null_value_;
- double number_value_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_value_;
- bool bool_value_;
- ::PROTOBUF_NAMESPACE_ID::Struct* struct_value_;
- ::PROTOBUF_NAMESPACE_ID::ListValue* list_value_;
- } kind_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- uint32_t _oneof_case_[1];
- };
- union
- {
- Impl_ _impl_;
- };
- friend struct ::TableStruct_google_2fprotobuf_2fstruct_2eproto;
- };
- // -------------------------------------------------------------------
-
- class PROTOBUF_EXPORT ListValue final :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ListValue) */
- {
- public:
- inline ListValue() :
- ListValue(nullptr)
- {
- }
- ~ListValue() override;
- explicit PROTOBUF_CONSTEXPR ListValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
-
- ListValue(const ListValue& from);
- ListValue(ListValue&& from) noexcept
- :
- ListValue()
- {
- *this = ::std::move(from);
- }
-
- inline ListValue& operator=(const ListValue& from)
- {
- CopyFrom(from);
- return *this;
- }
- inline ListValue& operator=(ListValue&& from) noexcept
- {
- if (this == &from)
- return *this;
- if (GetOwningArena() == from.GetOwningArena()
- #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
- && GetOwningArena() != nullptr
- #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
- )
- {
- InternalSwap(&from);
- }
- else
- {
- CopyFrom(from);
- }
- return *this;
- }
-
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
- {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
- {
- return default_instance().GetMetadata().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
- {
- return default_instance().GetMetadata().reflection;
- }
- static const ListValue& default_instance()
- {
- return *internal_default_instance();
- }
- static inline const ListValue* internal_default_instance()
- {
- return reinterpret_cast<const ListValue*>(
- &_ListValue_default_instance_
- );
- }
- static constexpr int kIndexInFileMessages =
- 3;
-
- friend void swap(ListValue& a, ListValue& b)
- {
- a.Swap(&b);
- }
- inline void Swap(ListValue* other)
- {
- if (other == this)
- return;
- #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
- if (GetOwningArena() != nullptr &&
- GetOwningArena() == other->GetOwningArena())
- {
- #else // PROTOBUF_FORCE_COPY_IN_SWAP
- if (GetOwningArena() == other->GetOwningArena())
- {
- #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
- InternalSwap(other);
- }
- else
- {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(ListValue* other)
- {
- if (other == this)
- return;
- GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
- InternalSwap(other);
- }
-
- // implements Message ----------------------------------------------
-
- ListValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
- {
- return CreateMaybeMessage<ListValue>(arena);
- }
- using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
- void CopyFrom(const ListValue& from);
- using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
- void MergeFrom(const ListValue& from)
- {
- ListValue::MergeImpl(*this, from);
- }
-
- private:
- static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
-
- public:
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
-
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- uint8_t* _InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const final;
- int GetCachedSize() const final
- {
- return _impl_._cached_size_.Get();
- }
-
- private:
- void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(ListValue* other);
-
- private:
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
- {
- return "google.protobuf.ListValue";
- }
-
- protected:
- explicit ListValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
-
- public:
- static const ClassData _class_data_;
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
-
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
-
- // nested types ----------------------------------------------------
-
- // accessors -------------------------------------------------------
-
- enum : int
- {
- kValuesFieldNumber = 1,
- };
- // repeated .google.protobuf.Value values = 1;
- int values_size() const;
-
- private:
- int _internal_values_size() const;
-
- public:
- void clear_values();
- ::PROTOBUF_NAMESPACE_ID::Value* mutable_values(int index);
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::Value>*
- mutable_values();
-
- private:
- const ::PROTOBUF_NAMESPACE_ID::Value& _internal_values(int index) const;
- ::PROTOBUF_NAMESPACE_ID::Value* _internal_add_values();
-
- public:
- const ::PROTOBUF_NAMESPACE_ID::Value& values(int index) const;
- ::PROTOBUF_NAMESPACE_ID::Value* add_values();
- const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::Value>&
- values() const;
-
- // @@protoc_insertion_point(class_scope:google.protobuf.ListValue)
-
- private:
- class _Internal;
-
- template<typename T>
- friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- struct Impl_
- {
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::Value> values_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- };
- 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 _impl_.fields_.size();
- }
- inline int Struct::fields_size() const
- {
- return _internal_fields_size();
- }
- inline void Struct::clear_fields()
- {
- _impl_.fields_.Clear();
- }
- inline const ::PROTOBUF_NAMESPACE_ID::Map<std::string, ::PROTOBUF_NAMESPACE_ID::Value>&
- Struct::_internal_fields() const
- {
- return _impl_.fields_.GetMap();
- }
- inline const ::PROTOBUF_NAMESPACE_ID::Map<std::string, ::PROTOBUF_NAMESPACE_ID::Value>&
- Struct::fields() const
- {
- // @@protoc_insertion_point(field_map:google.protobuf.Struct.fields)
- return _internal_fields();
- }
- inline ::PROTOBUF_NAMESPACE_ID::Map<std::string, ::PROTOBUF_NAMESPACE_ID::Value>*
- Struct::_internal_mutable_fields()
- {
- return _impl_.fields_.MutableMap();
- }
- inline ::PROTOBUF_NAMESPACE_ID::Map<std::string, ::PROTOBUF_NAMESPACE_ID::Value>*
- Struct::mutable_fields()
- {
- // @@protoc_insertion_point(field_mutable_map:google.protobuf.Struct.fields)
- return _internal_mutable_fields();
- }
-
- // -------------------------------------------------------------------
-
- // Value
-
- // .google.protobuf.NullValue null_value = 1;
- inline bool Value::_internal_has_null_value() const
- {
- return kind_case() == kNullValue;
- }
- inline bool Value::has_null_value() const
- {
- return _internal_has_null_value();
- }
- inline void Value::set_has_null_value()
- {
- _impl_._oneof_case_[0] = kNullValue;
- }
- inline void Value::clear_null_value()
- {
- if (_internal_has_null_value())
- {
- _impl_.kind_.null_value_ = 0;
- clear_has_kind();
- }
- }
- inline ::PROTOBUF_NAMESPACE_ID::NullValue Value::_internal_null_value() const
- {
- if (_internal_has_null_value())
- {
- return static_cast<::PROTOBUF_NAMESPACE_ID::NullValue>(_impl_.kind_.null_value_);
- }
- return static_cast<::PROTOBUF_NAMESPACE_ID::NullValue>(0);
- }
- inline ::PROTOBUF_NAMESPACE_ID::NullValue Value::null_value() const
- {
- // @@protoc_insertion_point(field_get:google.protobuf.Value.null_value)
- return _internal_null_value();
- }
- inline void Value::_internal_set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value)
- {
- if (!_internal_has_null_value())
- {
- clear_kind();
- set_has_null_value();
- }
- _impl_.kind_.null_value_ = value;
- }
- inline void Value::set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value)
- {
- _internal_set_null_value(value);
- // @@protoc_insertion_point(field_set:google.protobuf.Value.null_value)
- }
-
- // double number_value = 2;
- inline bool Value::_internal_has_number_value() const
- {
- return kind_case() == kNumberValue;
- }
- inline bool Value::has_number_value() const
- {
- return _internal_has_number_value();
- }
- inline void Value::set_has_number_value()
- {
- _impl_._oneof_case_[0] = kNumberValue;
- }
- inline void Value::clear_number_value()
- {
- if (_internal_has_number_value())
- {
- _impl_.kind_.number_value_ = 0;
- clear_has_kind();
- }
- }
- inline double Value::_internal_number_value() const
- {
- if (_internal_has_number_value())
- {
- return _impl_.kind_.number_value_;
- }
- return 0;
- }
- inline void Value::_internal_set_number_value(double value)
- {
- if (!_internal_has_number_value())
- {
- clear_kind();
- set_has_number_value();
- }
- _impl_.kind_.number_value_ = value;
- }
- 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)
- {
- _internal_set_number_value(value);
- // @@protoc_insertion_point(field_set:google.protobuf.Value.number_value)
- }
-
- // string string_value = 3;
- inline bool Value::_internal_has_string_value() const
- {
- return kind_case() == kStringValue;
- }
- inline bool Value::has_string_value() const
- {
- return _internal_has_string_value();
- }
- inline void Value::set_has_string_value()
- {
- _impl_._oneof_case_[0] = kStringValue;
- }
- inline void Value::clear_string_value()
- {
- if (_internal_has_string_value())
- {
- _impl_.kind_.string_value_.Destroy();
- clear_has_kind();
- }
- }
- inline const std::string& Value::string_value() const
- {
- // @@protoc_insertion_point(field_get:google.protobuf.Value.string_value)
- return _internal_string_value();
- }
- template<typename ArgT0, typename... ArgT>
- inline void Value::set_string_value(ArgT0&& arg0, ArgT... args)
- {
- if (!_internal_has_string_value())
- {
- clear_kind();
- set_has_string_value();
- _impl_.kind_.string_value_.InitDefault();
- }
- _impl_.kind_.string_value_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
- // @@protoc_insertion_point(field_set:google.protobuf.Value.string_value)
- }
- inline std::string* Value::mutable_string_value()
- {
- 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
- {
- if (_internal_has_string_value())
- {
- return _impl_.kind_.string_value_.Get();
- }
- return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
- }
- inline void Value::_internal_set_string_value(const std::string& value)
- {
- if (!_internal_has_string_value())
- {
- clear_kind();
- set_has_string_value();
- _impl_.kind_.string_value_.InitDefault();
- }
- _impl_.kind_.string_value_.Set(value, GetArenaForAllocation());
- }
- inline std::string* Value::_internal_mutable_string_value()
- {
- if (!_internal_has_string_value())
- {
- clear_kind();
- set_has_string_value();
- _impl_.kind_.string_value_.InitDefault();
- }
- return _impl_.kind_.string_value_.Mutable(GetArenaForAllocation());
- }
- inline std::string* Value::release_string_value()
- {
- // @@protoc_insertion_point(field_release:google.protobuf.Value.string_value)
- if (_internal_has_string_value())
- {
- clear_has_kind();
- return _impl_.kind_.string_value_.Release();
- }
- else
- {
- return nullptr;
- }
- }
- inline void Value::set_allocated_string_value(std::string* string_value)
- {
- if (has_kind())
- {
- clear_kind();
- }
- if (string_value != nullptr)
- {
- set_has_string_value();
- _impl_.kind_.string_value_.InitAllocated(string_value, GetArenaForAllocation());
- }
- // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.string_value)
- }
-
- // bool bool_value = 4;
- inline bool Value::_internal_has_bool_value() const
- {
- return kind_case() == kBoolValue;
- }
- inline bool Value::has_bool_value() const
- {
- return _internal_has_bool_value();
- }
- inline void Value::set_has_bool_value()
- {
- _impl_._oneof_case_[0] = kBoolValue;
- }
- inline void Value::clear_bool_value()
- {
- if (_internal_has_bool_value())
- {
- _impl_.kind_.bool_value_ = false;
- clear_has_kind();
- }
- }
- inline bool Value::_internal_bool_value() const
- {
- if (_internal_has_bool_value())
- {
- return _impl_.kind_.bool_value_;
- }
- return false;
- }
- inline void Value::_internal_set_bool_value(bool value)
- {
- if (!_internal_has_bool_value())
- {
- clear_kind();
- set_has_bool_value();
- }
- _impl_.kind_.bool_value_ = value;
- }
- 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)
- {
- _internal_set_bool_value(value);
- // @@protoc_insertion_point(field_set:google.protobuf.Value.bool_value)
- }
-
- // .google.protobuf.Struct struct_value = 5;
- inline bool Value::_internal_has_struct_value() const
- {
- return kind_case() == kStructValue;
- }
- inline bool Value::has_struct_value() const
- {
- return _internal_has_struct_value();
- }
- inline void Value::set_has_struct_value()
- {
- _impl_._oneof_case_[0] = kStructValue;
- }
- inline void Value::clear_struct_value()
- {
- if (_internal_has_struct_value())
- {
- if (GetArenaForAllocation() == nullptr)
- {
- delete _impl_.kind_.struct_value_;
- }
- clear_has_kind();
- }
- }
- inline ::PROTOBUF_NAMESPACE_ID::Struct* Value::release_struct_value()
- {
- // @@protoc_insertion_point(field_release:google.protobuf.Value.struct_value)
- if (_internal_has_struct_value())
- {
- clear_has_kind();
- ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.kind_.struct_value_;
- if (GetArenaForAllocation() != nullptr)
- {
- temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
- }
- _impl_.kind_.struct_value_ = nullptr;
- return temp;
- }
- else
- {
- return nullptr;
- }
- }
- inline const ::PROTOBUF_NAMESPACE_ID::Struct& Value::_internal_struct_value() const
- {
- return _internal_has_struct_value() ? *_impl_.kind_.struct_value_ : reinterpret_cast<::PROTOBUF_NAMESPACE_ID::Struct&>(::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_);
- }
- inline const ::PROTOBUF_NAMESPACE_ID::Struct& Value::struct_value() const
- {
- // @@protoc_insertion_point(field_get:google.protobuf.Value.struct_value)
- return _internal_struct_value();
- }
- inline ::PROTOBUF_NAMESPACE_ID::Struct* Value::unsafe_arena_release_struct_value()
- {
- // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.struct_value)
- if (_internal_has_struct_value())
- {
- clear_has_kind();
- ::PROTOBUF_NAMESPACE_ID::Struct* temp = _impl_.kind_.struct_value_;
- _impl_.kind_.struct_value_ = nullptr;
- return temp;
- }
- else
- {
- return nullptr;
- }
- }
- inline void Value::unsafe_arena_set_allocated_struct_value(::PROTOBUF_NAMESPACE_ID::Struct* struct_value)
- {
- clear_kind();
- if (struct_value)
- {
- set_has_struct_value();
- _impl_.kind_.struct_value_ = struct_value;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Value.struct_value)
- }
- inline ::PROTOBUF_NAMESPACE_ID::Struct* Value::_internal_mutable_struct_value()
- {
- if (!_internal_has_struct_value())
- {
- clear_kind();
- set_has_struct_value();
- _impl_.kind_.struct_value_ = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation());
- }
- return _impl_.kind_.struct_value_;
- }
- inline ::PROTOBUF_NAMESPACE_ID::Struct* Value::mutable_struct_value()
- {
- ::PROTOBUF_NAMESPACE_ID::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::_internal_has_list_value() const
- {
- return kind_case() == kListValue;
- }
- inline bool Value::has_list_value() const
- {
- return _internal_has_list_value();
- }
- inline void Value::set_has_list_value()
- {
- _impl_._oneof_case_[0] = kListValue;
- }
- inline void Value::clear_list_value()
- {
- if (_internal_has_list_value())
- {
- if (GetArenaForAllocation() == nullptr)
- {
- delete _impl_.kind_.list_value_;
- }
- clear_has_kind();
- }
- }
- inline ::PROTOBUF_NAMESPACE_ID::ListValue* Value::release_list_value()
- {
- // @@protoc_insertion_point(field_release:google.protobuf.Value.list_value)
- if (_internal_has_list_value())
- {
- clear_has_kind();
- ::PROTOBUF_NAMESPACE_ID::ListValue* temp = _impl_.kind_.list_value_;
- if (GetArenaForAllocation() != nullptr)
- {
- temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
- }
- _impl_.kind_.list_value_ = nullptr;
- return temp;
- }
- else
- {
- return nullptr;
- }
- }
- inline const ::PROTOBUF_NAMESPACE_ID::ListValue& Value::_internal_list_value() const
- {
- return _internal_has_list_value() ? *_impl_.kind_.list_value_ : reinterpret_cast<::PROTOBUF_NAMESPACE_ID::ListValue&>(::PROTOBUF_NAMESPACE_ID::_ListValue_default_instance_);
- }
- inline const ::PROTOBUF_NAMESPACE_ID::ListValue& Value::list_value() const
- {
- // @@protoc_insertion_point(field_get:google.protobuf.Value.list_value)
- return _internal_list_value();
- }
- inline ::PROTOBUF_NAMESPACE_ID::ListValue* Value::unsafe_arena_release_list_value()
- {
- // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.list_value)
- if (_internal_has_list_value())
- {
- clear_has_kind();
- ::PROTOBUF_NAMESPACE_ID::ListValue* temp = _impl_.kind_.list_value_;
- _impl_.kind_.list_value_ = nullptr;
- return temp;
- }
- else
- {
- return nullptr;
- }
- }
- inline void Value::unsafe_arena_set_allocated_list_value(::PROTOBUF_NAMESPACE_ID::ListValue* list_value)
- {
- clear_kind();
- if (list_value)
- {
- set_has_list_value();
- _impl_.kind_.list_value_ = list_value;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Value.list_value)
- }
- inline ::PROTOBUF_NAMESPACE_ID::ListValue* Value::_internal_mutable_list_value()
- {
- if (!_internal_has_list_value())
- {
- clear_kind();
- set_has_list_value();
- _impl_.kind_.list_value_ = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::ListValue>(GetArenaForAllocation());
- }
- return _impl_.kind_.list_value_;
- }
- inline ::PROTOBUF_NAMESPACE_ID::ListValue* Value::mutable_list_value()
- {
- ::PROTOBUF_NAMESPACE_ID::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 _impl_.values_.size();
- }
- inline int ListValue::values_size() const
- {
- return _internal_values_size();
- }
- inline void ListValue::clear_values()
- {
- _impl_.values_.Clear();
- }
- inline ::PROTOBUF_NAMESPACE_ID::Value* ListValue::mutable_values(int index)
- {
- // @@protoc_insertion_point(field_mutable:google.protobuf.ListValue.values)
- return _impl_.values_.Mutable(index);
- }
- inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::Value>*
- ListValue::mutable_values()
- {
- // @@protoc_insertion_point(field_mutable_list:google.protobuf.ListValue.values)
- return &_impl_.values_;
- }
- inline const ::PROTOBUF_NAMESPACE_ID::Value& ListValue::_internal_values(int index) const
- {
- return _impl_.values_.Get(index);
- }
- inline const ::PROTOBUF_NAMESPACE_ID::Value& ListValue::values(int index) const
- {
- // @@protoc_insertion_point(field_get:google.protobuf.ListValue.values)
- return _internal_values(index);
- }
- inline ::PROTOBUF_NAMESPACE_ID::Value* ListValue::_internal_add_values()
- {
- return _impl_.values_.Add();
- }
- inline ::PROTOBUF_NAMESPACE_ID::Value* ListValue::add_values()
- {
- ::PROTOBUF_NAMESPACE_ID::Value* _add = _internal_add_values();
- // @@protoc_insertion_point(field_add:google.protobuf.ListValue.values)
- return _add;
- }
- inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::Value>&
- ListValue::values() const
- {
- // @@protoc_insertion_point(field_list:google.protobuf.ListValue.values)
- return _impl_.values_;
- }
-
- #ifdef __GNUC__
- #pragma GCC diagnostic pop
- #endif // __GNUC__
- // -------------------------------------------------------------------
-
- // -------------------------------------------------------------------
-
- // -------------------------------------------------------------------
-
- // @@protoc_insertion_point(namespace_scope)
-
- PROTOBUF_NAMESPACE_CLOSE
-
- PROTOBUF_NAMESPACE_OPEN
-
- template<>
- struct is_proto_enum<::PROTOBUF_NAMESPACE_ID::NullValue> : ::std::true_type
- {
- };
- template<>
- inline const EnumDescriptor* GetEnumDescriptor<::PROTOBUF_NAMESPACE_ID::NullValue>()
- {
- return ::PROTOBUF_NAMESPACE_ID::NullValue_descriptor();
- }
-
- PROTOBUF_NAMESPACE_CLOSE
-
- // @@protoc_insertion_point(global_scope)
-
- #include <google/protobuf/port_undef.inc>
- #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fstruct_2eproto
|