struct.pb.h 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/struct.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fstruct_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fstruct_2eproto
  5. #include <limits>
  6. #include <string>
  7. #include <google/protobuf/port_def.inc>
  8. #if PROTOBUF_VERSION < 3017000
  9. #error This file was generated by a newer version of protoc which is
  10. #error incompatible with your Protocol Buffer headers. Please update
  11. #error your headers.
  12. #endif
  13. #if 3017003 < PROTOBUF_MIN_PROTOC_VERSION
  14. #error This file was generated by an older version of protoc which is
  15. #error incompatible with your Protocol Buffer headers. Please
  16. #error regenerate this file with a newer version of protoc.
  17. #endif
  18. #include <google/protobuf/port_undef.inc>
  19. #include <google/protobuf/io/coded_stream.h>
  20. #include <google/protobuf/arena.h>
  21. #include <google/protobuf/arenastring.h>
  22. #include <google/protobuf/generated_message_table_driven.h>
  23. #include <google/protobuf/generated_message_util.h>
  24. #include <google/protobuf/metadata_lite.h>
  25. #include <google/protobuf/generated_message_reflection.h>
  26. #include <google/protobuf/message.h>
  27. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  28. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  29. #include <google/protobuf/map.h> // IWYU pragma: export
  30. #include <google/protobuf/map_entry.h>
  31. #include <google/protobuf/map_field_inl.h>
  32. #include <google/protobuf/generated_enum_reflection.h>
  33. #include <google/protobuf/unknown_field_set.h>
  34. // @@protoc_insertion_point(includes)
  35. #include <google/protobuf/port_def.inc>
  36. #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fstruct_2eproto PROTOBUF_EXPORT
  37. PROTOBUF_NAMESPACE_OPEN
  38. namespace internal {
  39. class AnyMetadata;
  40. } // namespace internal
  41. PROTOBUF_NAMESPACE_CLOSE
  42. // Internal implementation detail -- do not use these members.
  43. struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2fstruct_2eproto {
  44. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  45. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  46. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
  47. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  48. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[4]
  49. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  50. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  51. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  52. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  53. };
  54. PROTOBUF_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fstruct_2eproto;
  55. PROTOBUF_NAMESPACE_OPEN
  56. class ListValue;
  57. struct ListValueDefaultTypeInternal;
  58. PROTOBUF_EXPORT extern ListValueDefaultTypeInternal _ListValue_default_instance_;
  59. class Struct;
  60. struct StructDefaultTypeInternal;
  61. PROTOBUF_EXPORT extern StructDefaultTypeInternal _Struct_default_instance_;
  62. class Struct_FieldsEntry_DoNotUse;
  63. struct Struct_FieldsEntry_DoNotUseDefaultTypeInternal;
  64. PROTOBUF_EXPORT extern Struct_FieldsEntry_DoNotUseDefaultTypeInternal _Struct_FieldsEntry_DoNotUse_default_instance_;
  65. class Value;
  66. struct ValueDefaultTypeInternal;
  67. PROTOBUF_EXPORT extern ValueDefaultTypeInternal _Value_default_instance_;
  68. PROTOBUF_NAMESPACE_CLOSE
  69. PROTOBUF_NAMESPACE_OPEN
  70. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::ListValue* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::ListValue>(Arena*);
  71. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::Struct* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Struct>(Arena*);
  72. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::Struct_FieldsEntry_DoNotUse* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Struct_FieldsEntry_DoNotUse>(Arena*);
  73. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::Value* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Value>(Arena*);
  74. PROTOBUF_NAMESPACE_CLOSE
  75. PROTOBUF_NAMESPACE_OPEN
  76. enum NullValue : int {
  77. NULL_VALUE = 0,
  78. NullValue_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
  79. NullValue_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
  80. };
  81. PROTOBUF_EXPORT bool NullValue_IsValid(int value);
  82. constexpr NullValue NullValue_MIN = NULL_VALUE;
  83. constexpr NullValue NullValue_MAX = NULL_VALUE;
  84. constexpr int NullValue_ARRAYSIZE = NullValue_MAX + 1;
  85. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* NullValue_descriptor();
  86. template<typename T>
  87. inline const std::string& NullValue_Name(T enum_t_value) {
  88. static_assert(::std::is_same<T, NullValue>::value ||
  89. ::std::is_integral<T>::value,
  90. "Incorrect type passed to function NullValue_Name.");
  91. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  92. NullValue_descriptor(), enum_t_value);
  93. }
  94. inline bool NullValue_Parse(
  95. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, NullValue* value) {
  96. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<NullValue>(
  97. NullValue_descriptor(), name, value);
  98. }
  99. // ===================================================================
  100. class Struct_FieldsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<Struct_FieldsEntry_DoNotUse,
  101. std::string, PROTOBUF_NAMESPACE_ID::Value,
  102. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  103. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> {
  104. public:
  105. typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<Struct_FieldsEntry_DoNotUse,
  106. std::string, PROTOBUF_NAMESPACE_ID::Value,
  107. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  108. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> SuperType;
  109. Struct_FieldsEntry_DoNotUse();
  110. explicit constexpr Struct_FieldsEntry_DoNotUse(
  111. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  112. explicit Struct_FieldsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  113. void MergeFrom(const Struct_FieldsEntry_DoNotUse& other);
  114. static const Struct_FieldsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const Struct_FieldsEntry_DoNotUse*>(&_Struct_FieldsEntry_DoNotUse_default_instance_); }
  115. static bool ValidateKey(std::string* s) {
  116. 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");
  117. }
  118. static bool ValidateValue(void*) { return true; }
  119. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  120. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  121. };
  122. // -------------------------------------------------------------------
  123. class PROTOBUF_EXPORT Struct final :
  124. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Struct) */ {
  125. public:
  126. inline Struct() : Struct(nullptr) {}
  127. ~Struct() override;
  128. explicit constexpr Struct(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  129. Struct(const Struct& from);
  130. Struct(Struct&& from) noexcept
  131. : Struct() {
  132. *this = ::std::move(from);
  133. }
  134. inline Struct& operator=(const Struct& from) {
  135. CopyFrom(from);
  136. return *this;
  137. }
  138. inline Struct& operator=(Struct&& from) noexcept {
  139. if (this == &from) return *this;
  140. if (GetOwningArena() == from.GetOwningArena()) {
  141. InternalSwap(&from);
  142. } else {
  143. CopyFrom(from);
  144. }
  145. return *this;
  146. }
  147. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  148. return GetDescriptor();
  149. }
  150. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  151. return default_instance().GetMetadata().descriptor;
  152. }
  153. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  154. return default_instance().GetMetadata().reflection;
  155. }
  156. static const Struct& default_instance() {
  157. return *internal_default_instance();
  158. }
  159. static inline const Struct* internal_default_instance() {
  160. return reinterpret_cast<const Struct*>(
  161. &_Struct_default_instance_);
  162. }
  163. static constexpr int kIndexInFileMessages =
  164. 1;
  165. friend void swap(Struct& a, Struct& b) {
  166. a.Swap(&b);
  167. }
  168. inline void Swap(Struct* other) {
  169. if (other == this) return;
  170. if (GetOwningArena() == other->GetOwningArena()) {
  171. InternalSwap(other);
  172. } else {
  173. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  174. }
  175. }
  176. void UnsafeArenaSwap(Struct* other) {
  177. if (other == this) return;
  178. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  179. InternalSwap(other);
  180. }
  181. // implements Message ----------------------------------------------
  182. inline Struct* New() const final {
  183. return new Struct();
  184. }
  185. Struct* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  186. return CreateMaybeMessage<Struct>(arena);
  187. }
  188. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  189. void CopyFrom(const Struct& from);
  190. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  191. void MergeFrom(const Struct& from);
  192. private:
  193. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to, const ::PROTOBUF_NAMESPACE_ID::Message&from);
  194. public:
  195. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  196. bool IsInitialized() const final;
  197. size_t ByteSizeLong() const final;
  198. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  199. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  200. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  201. int GetCachedSize() const final { return _cached_size_.Get(); }
  202. private:
  203. void SharedCtor();
  204. void SharedDtor();
  205. void SetCachedSize(int size) const final;
  206. void InternalSwap(Struct* other);
  207. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  208. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  209. return "google.protobuf.Struct";
  210. }
  211. protected:
  212. explicit Struct(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  213. bool is_message_owned = false);
  214. private:
  215. static void ArenaDtor(void* object);
  216. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  217. public:
  218. static const ClassData _class_data_;
  219. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  220. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  221. // nested types ----------------------------------------------------
  222. // accessors -------------------------------------------------------
  223. enum : int {
  224. kFieldsFieldNumber = 1,
  225. };
  226. // map<string, .google.protobuf.Value> fields = 1;
  227. int fields_size() const;
  228. private:
  229. int _internal_fields_size() const;
  230. public:
  231. void clear_fields();
  232. private:
  233. const ::PROTOBUF_NAMESPACE_ID::Map< std::string, PROTOBUF_NAMESPACE_ID::Value >&
  234. _internal_fields() const;
  235. ::PROTOBUF_NAMESPACE_ID::Map< std::string, PROTOBUF_NAMESPACE_ID::Value >*
  236. _internal_mutable_fields();
  237. public:
  238. const ::PROTOBUF_NAMESPACE_ID::Map< std::string, PROTOBUF_NAMESPACE_ID::Value >&
  239. fields() const;
  240. ::PROTOBUF_NAMESPACE_ID::Map< std::string, PROTOBUF_NAMESPACE_ID::Value >*
  241. mutable_fields();
  242. // @@protoc_insertion_point(class_scope:google.protobuf.Struct)
  243. private:
  244. class _Internal;
  245. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  246. typedef void InternalArenaConstructable_;
  247. typedef void DestructorSkippable_;
  248. ::PROTOBUF_NAMESPACE_ID::internal::MapField<
  249. Struct_FieldsEntry_DoNotUse,
  250. std::string, PROTOBUF_NAMESPACE_ID::Value,
  251. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
  252. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> fields_;
  253. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  254. friend struct ::TableStruct_google_2fprotobuf_2fstruct_2eproto;
  255. };
  256. // -------------------------------------------------------------------
  257. class PROTOBUF_EXPORT Value final :
  258. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Value) */ {
  259. public:
  260. inline Value() : Value(nullptr) {}
  261. ~Value() override;
  262. explicit constexpr Value(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  263. Value(const Value& from);
  264. Value(Value&& from) noexcept
  265. : Value() {
  266. *this = ::std::move(from);
  267. }
  268. inline Value& operator=(const Value& from) {
  269. CopyFrom(from);
  270. return *this;
  271. }
  272. inline Value& operator=(Value&& from) noexcept {
  273. if (this == &from) return *this;
  274. if (GetOwningArena() == from.GetOwningArena()) {
  275. InternalSwap(&from);
  276. } else {
  277. CopyFrom(from);
  278. }
  279. return *this;
  280. }
  281. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  282. return GetDescriptor();
  283. }
  284. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  285. return default_instance().GetMetadata().descriptor;
  286. }
  287. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  288. return default_instance().GetMetadata().reflection;
  289. }
  290. static const Value& default_instance() {
  291. return *internal_default_instance();
  292. }
  293. enum KindCase {
  294. kNullValue = 1,
  295. kNumberValue = 2,
  296. kStringValue = 3,
  297. kBoolValue = 4,
  298. kStructValue = 5,
  299. kListValue = 6,
  300. KIND_NOT_SET = 0,
  301. };
  302. static inline const Value* internal_default_instance() {
  303. return reinterpret_cast<const Value*>(
  304. &_Value_default_instance_);
  305. }
  306. static constexpr int kIndexInFileMessages =
  307. 2;
  308. friend void swap(Value& a, Value& b) {
  309. a.Swap(&b);
  310. }
  311. inline void Swap(Value* other) {
  312. if (other == this) return;
  313. if (GetOwningArena() == other->GetOwningArena()) {
  314. InternalSwap(other);
  315. } else {
  316. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  317. }
  318. }
  319. void UnsafeArenaSwap(Value* other) {
  320. if (other == this) return;
  321. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  322. InternalSwap(other);
  323. }
  324. // implements Message ----------------------------------------------
  325. inline Value* New() const final {
  326. return new Value();
  327. }
  328. Value* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  329. return CreateMaybeMessage<Value>(arena);
  330. }
  331. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  332. void CopyFrom(const Value& from);
  333. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  334. void MergeFrom(const Value& from);
  335. private:
  336. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to, const ::PROTOBUF_NAMESPACE_ID::Message&from);
  337. public:
  338. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  339. bool IsInitialized() const final;
  340. size_t ByteSizeLong() const final;
  341. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  342. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  343. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  344. int GetCachedSize() const final { return _cached_size_.Get(); }
  345. private:
  346. void SharedCtor();
  347. void SharedDtor();
  348. void SetCachedSize(int size) const final;
  349. void InternalSwap(Value* other);
  350. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  351. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  352. return "google.protobuf.Value";
  353. }
  354. protected:
  355. explicit Value(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  356. bool is_message_owned = false);
  357. private:
  358. static void ArenaDtor(void* object);
  359. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  360. public:
  361. static const ClassData _class_data_;
  362. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  363. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  364. // nested types ----------------------------------------------------
  365. // accessors -------------------------------------------------------
  366. enum : int {
  367. kNullValueFieldNumber = 1,
  368. kNumberValueFieldNumber = 2,
  369. kStringValueFieldNumber = 3,
  370. kBoolValueFieldNumber = 4,
  371. kStructValueFieldNumber = 5,
  372. kListValueFieldNumber = 6,
  373. };
  374. // .google.protobuf.NullValue null_value = 1;
  375. bool has_null_value() const;
  376. private:
  377. bool _internal_has_null_value() const;
  378. public:
  379. void clear_null_value();
  380. PROTOBUF_NAMESPACE_ID::NullValue null_value() const;
  381. void set_null_value(PROTOBUF_NAMESPACE_ID::NullValue value);
  382. private:
  383. PROTOBUF_NAMESPACE_ID::NullValue _internal_null_value() const;
  384. void _internal_set_null_value(PROTOBUF_NAMESPACE_ID::NullValue value);
  385. public:
  386. // double number_value = 2;
  387. bool has_number_value() const;
  388. private:
  389. bool _internal_has_number_value() const;
  390. public:
  391. void clear_number_value();
  392. double number_value() const;
  393. void set_number_value(double value);
  394. private:
  395. double _internal_number_value() const;
  396. void _internal_set_number_value(double value);
  397. public:
  398. // string string_value = 3;
  399. bool has_string_value() const;
  400. private:
  401. bool _internal_has_string_value() const;
  402. public:
  403. void clear_string_value();
  404. const std::string& string_value() const;
  405. template <typename ArgT0 = const std::string&, typename... ArgT>
  406. void set_string_value(ArgT0&& arg0, ArgT... args);
  407. std::string* mutable_string_value();
  408. PROTOBUF_MUST_USE_RESULT std::string* release_string_value();
  409. void set_allocated_string_value(std::string* string_value);
  410. private:
  411. const std::string& _internal_string_value() const;
  412. inline PROTOBUF_ALWAYS_INLINE void _internal_set_string_value(const std::string& value);
  413. std::string* _internal_mutable_string_value();
  414. public:
  415. // bool bool_value = 4;
  416. bool has_bool_value() const;
  417. private:
  418. bool _internal_has_bool_value() const;
  419. public:
  420. void clear_bool_value();
  421. bool bool_value() const;
  422. void set_bool_value(bool value);
  423. private:
  424. bool _internal_bool_value() const;
  425. void _internal_set_bool_value(bool value);
  426. public:
  427. // .google.protobuf.Struct struct_value = 5;
  428. bool has_struct_value() const;
  429. private:
  430. bool _internal_has_struct_value() const;
  431. public:
  432. void clear_struct_value();
  433. const PROTOBUF_NAMESPACE_ID::Struct& struct_value() const;
  434. PROTOBUF_MUST_USE_RESULT PROTOBUF_NAMESPACE_ID::Struct* release_struct_value();
  435. PROTOBUF_NAMESPACE_ID::Struct* mutable_struct_value();
  436. void set_allocated_struct_value(PROTOBUF_NAMESPACE_ID::Struct* struct_value);
  437. private:
  438. const PROTOBUF_NAMESPACE_ID::Struct& _internal_struct_value() const;
  439. PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_struct_value();
  440. public:
  441. void unsafe_arena_set_allocated_struct_value(
  442. PROTOBUF_NAMESPACE_ID::Struct* struct_value);
  443. PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_struct_value();
  444. // .google.protobuf.ListValue list_value = 6;
  445. bool has_list_value() const;
  446. private:
  447. bool _internal_has_list_value() const;
  448. public:
  449. void clear_list_value();
  450. const PROTOBUF_NAMESPACE_ID::ListValue& list_value() const;
  451. PROTOBUF_MUST_USE_RESULT PROTOBUF_NAMESPACE_ID::ListValue* release_list_value();
  452. PROTOBUF_NAMESPACE_ID::ListValue* mutable_list_value();
  453. void set_allocated_list_value(PROTOBUF_NAMESPACE_ID::ListValue* list_value);
  454. private:
  455. const PROTOBUF_NAMESPACE_ID::ListValue& _internal_list_value() const;
  456. PROTOBUF_NAMESPACE_ID::ListValue* _internal_mutable_list_value();
  457. public:
  458. void unsafe_arena_set_allocated_list_value(
  459. PROTOBUF_NAMESPACE_ID::ListValue* list_value);
  460. PROTOBUF_NAMESPACE_ID::ListValue* unsafe_arena_release_list_value();
  461. void clear_kind();
  462. KindCase kind_case() const;
  463. // @@protoc_insertion_point(class_scope:google.protobuf.Value)
  464. private:
  465. class _Internal;
  466. void set_has_null_value();
  467. void set_has_number_value();
  468. void set_has_string_value();
  469. void set_has_bool_value();
  470. void set_has_struct_value();
  471. void set_has_list_value();
  472. inline bool has_kind() const;
  473. inline void clear_has_kind();
  474. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  475. typedef void InternalArenaConstructable_;
  476. typedef void DestructorSkippable_;
  477. union KindUnion {
  478. constexpr KindUnion() : _constinit_{} {}
  479. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
  480. int null_value_;
  481. double number_value_;
  482. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_value_;
  483. bool bool_value_;
  484. PROTOBUF_NAMESPACE_ID::Struct* struct_value_;
  485. PROTOBUF_NAMESPACE_ID::ListValue* list_value_;
  486. } kind_;
  487. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  488. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  489. friend struct ::TableStruct_google_2fprotobuf_2fstruct_2eproto;
  490. };
  491. // -------------------------------------------------------------------
  492. class PROTOBUF_EXPORT ListValue final :
  493. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ListValue) */ {
  494. public:
  495. inline ListValue() : ListValue(nullptr) {}
  496. ~ListValue() override;
  497. explicit constexpr ListValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  498. ListValue(const ListValue& from);
  499. ListValue(ListValue&& from) noexcept
  500. : ListValue() {
  501. *this = ::std::move(from);
  502. }
  503. inline ListValue& operator=(const ListValue& from) {
  504. CopyFrom(from);
  505. return *this;
  506. }
  507. inline ListValue& operator=(ListValue&& from) noexcept {
  508. if (this == &from) return *this;
  509. if (GetOwningArena() == from.GetOwningArena()) {
  510. InternalSwap(&from);
  511. } else {
  512. CopyFrom(from);
  513. }
  514. return *this;
  515. }
  516. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  517. return GetDescriptor();
  518. }
  519. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  520. return default_instance().GetMetadata().descriptor;
  521. }
  522. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  523. return default_instance().GetMetadata().reflection;
  524. }
  525. static const ListValue& default_instance() {
  526. return *internal_default_instance();
  527. }
  528. static inline const ListValue* internal_default_instance() {
  529. return reinterpret_cast<const ListValue*>(
  530. &_ListValue_default_instance_);
  531. }
  532. static constexpr int kIndexInFileMessages =
  533. 3;
  534. friend void swap(ListValue& a, ListValue& b) {
  535. a.Swap(&b);
  536. }
  537. inline void Swap(ListValue* other) {
  538. if (other == this) return;
  539. if (GetOwningArena() == other->GetOwningArena()) {
  540. InternalSwap(other);
  541. } else {
  542. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  543. }
  544. }
  545. void UnsafeArenaSwap(ListValue* other) {
  546. if (other == this) return;
  547. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  548. InternalSwap(other);
  549. }
  550. // implements Message ----------------------------------------------
  551. inline ListValue* New() const final {
  552. return new ListValue();
  553. }
  554. ListValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  555. return CreateMaybeMessage<ListValue>(arena);
  556. }
  557. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  558. void CopyFrom(const ListValue& from);
  559. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  560. void MergeFrom(const ListValue& from);
  561. private:
  562. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to, const ::PROTOBUF_NAMESPACE_ID::Message&from);
  563. public:
  564. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  565. bool IsInitialized() const final;
  566. size_t ByteSizeLong() const final;
  567. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  568. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  569. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  570. int GetCachedSize() const final { return _cached_size_.Get(); }
  571. private:
  572. void SharedCtor();
  573. void SharedDtor();
  574. void SetCachedSize(int size) const final;
  575. void InternalSwap(ListValue* other);
  576. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  577. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  578. return "google.protobuf.ListValue";
  579. }
  580. protected:
  581. explicit ListValue(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  582. bool is_message_owned = false);
  583. private:
  584. static void ArenaDtor(void* object);
  585. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  586. public:
  587. static const ClassData _class_data_;
  588. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  589. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  590. // nested types ----------------------------------------------------
  591. // accessors -------------------------------------------------------
  592. enum : int {
  593. kValuesFieldNumber = 1,
  594. };
  595. // repeated .google.protobuf.Value values = 1;
  596. int values_size() const;
  597. private:
  598. int _internal_values_size() const;
  599. public:
  600. void clear_values();
  601. PROTOBUF_NAMESPACE_ID::Value* mutable_values(int index);
  602. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Value >*
  603. mutable_values();
  604. private:
  605. const PROTOBUF_NAMESPACE_ID::Value& _internal_values(int index) const;
  606. PROTOBUF_NAMESPACE_ID::Value* _internal_add_values();
  607. public:
  608. const PROTOBUF_NAMESPACE_ID::Value& values(int index) const;
  609. PROTOBUF_NAMESPACE_ID::Value* add_values();
  610. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Value >&
  611. values() const;
  612. // @@protoc_insertion_point(class_scope:google.protobuf.ListValue)
  613. private:
  614. class _Internal;
  615. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  616. typedef void InternalArenaConstructable_;
  617. typedef void DestructorSkippable_;
  618. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Value > values_;
  619. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  620. friend struct ::TableStruct_google_2fprotobuf_2fstruct_2eproto;
  621. };
  622. // ===================================================================
  623. // ===================================================================
  624. #ifdef __GNUC__
  625. #pragma GCC diagnostic push
  626. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  627. #endif // __GNUC__
  628. // -------------------------------------------------------------------
  629. // Struct
  630. // map<string, .google.protobuf.Value> fields = 1;
  631. inline int Struct::_internal_fields_size() const {
  632. return fields_.size();
  633. }
  634. inline int Struct::fields_size() const {
  635. return _internal_fields_size();
  636. }
  637. inline void Struct::clear_fields() {
  638. fields_.Clear();
  639. }
  640. inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, PROTOBUF_NAMESPACE_ID::Value >&
  641. Struct::_internal_fields() const {
  642. return fields_.GetMap();
  643. }
  644. inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, PROTOBUF_NAMESPACE_ID::Value >&
  645. Struct::fields() const {
  646. // @@protoc_insertion_point(field_map:google.protobuf.Struct.fields)
  647. return _internal_fields();
  648. }
  649. inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, PROTOBUF_NAMESPACE_ID::Value >*
  650. Struct::_internal_mutable_fields() {
  651. return fields_.MutableMap();
  652. }
  653. inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, PROTOBUF_NAMESPACE_ID::Value >*
  654. Struct::mutable_fields() {
  655. // @@protoc_insertion_point(field_mutable_map:google.protobuf.Struct.fields)
  656. return _internal_mutable_fields();
  657. }
  658. // -------------------------------------------------------------------
  659. // Value
  660. // .google.protobuf.NullValue null_value = 1;
  661. inline bool Value::_internal_has_null_value() const {
  662. return kind_case() == kNullValue;
  663. }
  664. inline bool Value::has_null_value() const {
  665. return _internal_has_null_value();
  666. }
  667. inline void Value::set_has_null_value() {
  668. _oneof_case_[0] = kNullValue;
  669. }
  670. inline void Value::clear_null_value() {
  671. if (_internal_has_null_value()) {
  672. kind_.null_value_ = 0;
  673. clear_has_kind();
  674. }
  675. }
  676. inline PROTOBUF_NAMESPACE_ID::NullValue Value::_internal_null_value() const {
  677. if (_internal_has_null_value()) {
  678. return static_cast< PROTOBUF_NAMESPACE_ID::NullValue >(kind_.null_value_);
  679. }
  680. return static_cast< PROTOBUF_NAMESPACE_ID::NullValue >(0);
  681. }
  682. inline PROTOBUF_NAMESPACE_ID::NullValue Value::null_value() const {
  683. // @@protoc_insertion_point(field_get:google.protobuf.Value.null_value)
  684. return _internal_null_value();
  685. }
  686. inline void Value::_internal_set_null_value(PROTOBUF_NAMESPACE_ID::NullValue value) {
  687. if (!_internal_has_null_value()) {
  688. clear_kind();
  689. set_has_null_value();
  690. }
  691. kind_.null_value_ = value;
  692. }
  693. inline void Value::set_null_value(PROTOBUF_NAMESPACE_ID::NullValue value) {
  694. _internal_set_null_value(value);
  695. // @@protoc_insertion_point(field_set:google.protobuf.Value.null_value)
  696. }
  697. // double number_value = 2;
  698. inline bool Value::_internal_has_number_value() const {
  699. return kind_case() == kNumberValue;
  700. }
  701. inline bool Value::has_number_value() const {
  702. return _internal_has_number_value();
  703. }
  704. inline void Value::set_has_number_value() {
  705. _oneof_case_[0] = kNumberValue;
  706. }
  707. inline void Value::clear_number_value() {
  708. if (_internal_has_number_value()) {
  709. kind_.number_value_ = 0;
  710. clear_has_kind();
  711. }
  712. }
  713. inline double Value::_internal_number_value() const {
  714. if (_internal_has_number_value()) {
  715. return kind_.number_value_;
  716. }
  717. return 0;
  718. }
  719. inline void Value::_internal_set_number_value(double value) {
  720. if (!_internal_has_number_value()) {
  721. clear_kind();
  722. set_has_number_value();
  723. }
  724. kind_.number_value_ = value;
  725. }
  726. inline double Value::number_value() const {
  727. // @@protoc_insertion_point(field_get:google.protobuf.Value.number_value)
  728. return _internal_number_value();
  729. }
  730. inline void Value::set_number_value(double value) {
  731. _internal_set_number_value(value);
  732. // @@protoc_insertion_point(field_set:google.protobuf.Value.number_value)
  733. }
  734. // string string_value = 3;
  735. inline bool Value::_internal_has_string_value() const {
  736. return kind_case() == kStringValue;
  737. }
  738. inline bool Value::has_string_value() const {
  739. return _internal_has_string_value();
  740. }
  741. inline void Value::set_has_string_value() {
  742. _oneof_case_[0] = kStringValue;
  743. }
  744. inline void Value::clear_string_value() {
  745. if (_internal_has_string_value()) {
  746. kind_.string_value_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  747. clear_has_kind();
  748. }
  749. }
  750. inline const std::string& Value::string_value() const {
  751. // @@protoc_insertion_point(field_get:google.protobuf.Value.string_value)
  752. return _internal_string_value();
  753. }
  754. template <typename ArgT0, typename... ArgT>
  755. inline void Value::set_string_value(ArgT0&& arg0, ArgT... args) {
  756. if (!_internal_has_string_value()) {
  757. clear_kind();
  758. set_has_string_value();
  759. kind_.string_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  760. }
  761. kind_.string_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  762. // @@protoc_insertion_point(field_set:google.protobuf.Value.string_value)
  763. }
  764. inline std::string* Value::mutable_string_value() {
  765. std::string* _s = _internal_mutable_string_value();
  766. // @@protoc_insertion_point(field_mutable:google.protobuf.Value.string_value)
  767. return _s;
  768. }
  769. inline const std::string& Value::_internal_string_value() const {
  770. if (_internal_has_string_value()) {
  771. return kind_.string_value_.Get();
  772. }
  773. return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  774. }
  775. inline void Value::_internal_set_string_value(const std::string& value) {
  776. if (!_internal_has_string_value()) {
  777. clear_kind();
  778. set_has_string_value();
  779. kind_.string_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  780. }
  781. kind_.string_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  782. }
  783. inline std::string* Value::_internal_mutable_string_value() {
  784. if (!_internal_has_string_value()) {
  785. clear_kind();
  786. set_has_string_value();
  787. kind_.string_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  788. }
  789. return kind_.string_value_.Mutable(
  790. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  791. }
  792. inline std::string* Value::release_string_value() {
  793. // @@protoc_insertion_point(field_release:google.protobuf.Value.string_value)
  794. if (_internal_has_string_value()) {
  795. clear_has_kind();
  796. return kind_.string_value_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  797. } else {
  798. return nullptr;
  799. }
  800. }
  801. inline void Value::set_allocated_string_value(std::string* string_value) {
  802. if (has_kind()) {
  803. clear_kind();
  804. }
  805. if (string_value != nullptr) {
  806. set_has_string_value();
  807. kind_.string_value_.UnsafeSetDefault(string_value);
  808. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaForAllocation();
  809. if (arena != nullptr) {
  810. arena->Own(string_value);
  811. }
  812. }
  813. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.string_value)
  814. }
  815. // bool bool_value = 4;
  816. inline bool Value::_internal_has_bool_value() const {
  817. return kind_case() == kBoolValue;
  818. }
  819. inline bool Value::has_bool_value() const {
  820. return _internal_has_bool_value();
  821. }
  822. inline void Value::set_has_bool_value() {
  823. _oneof_case_[0] = kBoolValue;
  824. }
  825. inline void Value::clear_bool_value() {
  826. if (_internal_has_bool_value()) {
  827. kind_.bool_value_ = false;
  828. clear_has_kind();
  829. }
  830. }
  831. inline bool Value::_internal_bool_value() const {
  832. if (_internal_has_bool_value()) {
  833. return kind_.bool_value_;
  834. }
  835. return false;
  836. }
  837. inline void Value::_internal_set_bool_value(bool value) {
  838. if (!_internal_has_bool_value()) {
  839. clear_kind();
  840. set_has_bool_value();
  841. }
  842. kind_.bool_value_ = value;
  843. }
  844. inline bool Value::bool_value() const {
  845. // @@protoc_insertion_point(field_get:google.protobuf.Value.bool_value)
  846. return _internal_bool_value();
  847. }
  848. inline void Value::set_bool_value(bool value) {
  849. _internal_set_bool_value(value);
  850. // @@protoc_insertion_point(field_set:google.protobuf.Value.bool_value)
  851. }
  852. // .google.protobuf.Struct struct_value = 5;
  853. inline bool Value::_internal_has_struct_value() const {
  854. return kind_case() == kStructValue;
  855. }
  856. inline bool Value::has_struct_value() const {
  857. return _internal_has_struct_value();
  858. }
  859. inline void Value::set_has_struct_value() {
  860. _oneof_case_[0] = kStructValue;
  861. }
  862. inline void Value::clear_struct_value() {
  863. if (_internal_has_struct_value()) {
  864. if (GetArenaForAllocation() == nullptr) {
  865. delete kind_.struct_value_;
  866. }
  867. clear_has_kind();
  868. }
  869. }
  870. inline PROTOBUF_NAMESPACE_ID::Struct* Value::release_struct_value() {
  871. // @@protoc_insertion_point(field_release:google.protobuf.Value.struct_value)
  872. if (_internal_has_struct_value()) {
  873. clear_has_kind();
  874. PROTOBUF_NAMESPACE_ID::Struct* temp = kind_.struct_value_;
  875. if (GetArenaForAllocation() != nullptr) {
  876. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  877. }
  878. kind_.struct_value_ = nullptr;
  879. return temp;
  880. } else {
  881. return nullptr;
  882. }
  883. }
  884. inline const PROTOBUF_NAMESPACE_ID::Struct& Value::_internal_struct_value() const {
  885. return _internal_has_struct_value()
  886. ? *kind_.struct_value_
  887. : reinterpret_cast< PROTOBUF_NAMESPACE_ID::Struct&>(PROTOBUF_NAMESPACE_ID::_Struct_default_instance_);
  888. }
  889. inline const PROTOBUF_NAMESPACE_ID::Struct& Value::struct_value() const {
  890. // @@protoc_insertion_point(field_get:google.protobuf.Value.struct_value)
  891. return _internal_struct_value();
  892. }
  893. inline PROTOBUF_NAMESPACE_ID::Struct* Value::unsafe_arena_release_struct_value() {
  894. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.struct_value)
  895. if (_internal_has_struct_value()) {
  896. clear_has_kind();
  897. PROTOBUF_NAMESPACE_ID::Struct* temp = kind_.struct_value_;
  898. kind_.struct_value_ = nullptr;
  899. return temp;
  900. } else {
  901. return nullptr;
  902. }
  903. }
  904. inline void Value::unsafe_arena_set_allocated_struct_value(PROTOBUF_NAMESPACE_ID::Struct* struct_value) {
  905. clear_kind();
  906. if (struct_value) {
  907. set_has_struct_value();
  908. kind_.struct_value_ = struct_value;
  909. }
  910. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Value.struct_value)
  911. }
  912. inline PROTOBUF_NAMESPACE_ID::Struct* Value::_internal_mutable_struct_value() {
  913. if (!_internal_has_struct_value()) {
  914. clear_kind();
  915. set_has_struct_value();
  916. kind_.struct_value_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Struct >(GetArenaForAllocation());
  917. }
  918. return kind_.struct_value_;
  919. }
  920. inline PROTOBUF_NAMESPACE_ID::Struct* Value::mutable_struct_value() {
  921. PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_struct_value();
  922. // @@protoc_insertion_point(field_mutable:google.protobuf.Value.struct_value)
  923. return _msg;
  924. }
  925. // .google.protobuf.ListValue list_value = 6;
  926. inline bool Value::_internal_has_list_value() const {
  927. return kind_case() == kListValue;
  928. }
  929. inline bool Value::has_list_value() const {
  930. return _internal_has_list_value();
  931. }
  932. inline void Value::set_has_list_value() {
  933. _oneof_case_[0] = kListValue;
  934. }
  935. inline void Value::clear_list_value() {
  936. if (_internal_has_list_value()) {
  937. if (GetArenaForAllocation() == nullptr) {
  938. delete kind_.list_value_;
  939. }
  940. clear_has_kind();
  941. }
  942. }
  943. inline PROTOBUF_NAMESPACE_ID::ListValue* Value::release_list_value() {
  944. // @@protoc_insertion_point(field_release:google.protobuf.Value.list_value)
  945. if (_internal_has_list_value()) {
  946. clear_has_kind();
  947. PROTOBUF_NAMESPACE_ID::ListValue* temp = kind_.list_value_;
  948. if (GetArenaForAllocation() != nullptr) {
  949. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  950. }
  951. kind_.list_value_ = nullptr;
  952. return temp;
  953. } else {
  954. return nullptr;
  955. }
  956. }
  957. inline const PROTOBUF_NAMESPACE_ID::ListValue& Value::_internal_list_value() const {
  958. return _internal_has_list_value()
  959. ? *kind_.list_value_
  960. : reinterpret_cast< PROTOBUF_NAMESPACE_ID::ListValue&>(PROTOBUF_NAMESPACE_ID::_ListValue_default_instance_);
  961. }
  962. inline const PROTOBUF_NAMESPACE_ID::ListValue& Value::list_value() const {
  963. // @@protoc_insertion_point(field_get:google.protobuf.Value.list_value)
  964. return _internal_list_value();
  965. }
  966. inline PROTOBUF_NAMESPACE_ID::ListValue* Value::unsafe_arena_release_list_value() {
  967. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.list_value)
  968. if (_internal_has_list_value()) {
  969. clear_has_kind();
  970. PROTOBUF_NAMESPACE_ID::ListValue* temp = kind_.list_value_;
  971. kind_.list_value_ = nullptr;
  972. return temp;
  973. } else {
  974. return nullptr;
  975. }
  976. }
  977. inline void Value::unsafe_arena_set_allocated_list_value(PROTOBUF_NAMESPACE_ID::ListValue* list_value) {
  978. clear_kind();
  979. if (list_value) {
  980. set_has_list_value();
  981. kind_.list_value_ = list_value;
  982. }
  983. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Value.list_value)
  984. }
  985. inline PROTOBUF_NAMESPACE_ID::ListValue* Value::_internal_mutable_list_value() {
  986. if (!_internal_has_list_value()) {
  987. clear_kind();
  988. set_has_list_value();
  989. kind_.list_value_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::ListValue >(GetArenaForAllocation());
  990. }
  991. return kind_.list_value_;
  992. }
  993. inline PROTOBUF_NAMESPACE_ID::ListValue* Value::mutable_list_value() {
  994. PROTOBUF_NAMESPACE_ID::ListValue* _msg = _internal_mutable_list_value();
  995. // @@protoc_insertion_point(field_mutable:google.protobuf.Value.list_value)
  996. return _msg;
  997. }
  998. inline bool Value::has_kind() const {
  999. return kind_case() != KIND_NOT_SET;
  1000. }
  1001. inline void Value::clear_has_kind() {
  1002. _oneof_case_[0] = KIND_NOT_SET;
  1003. }
  1004. inline Value::KindCase Value::kind_case() const {
  1005. return Value::KindCase(_oneof_case_[0]);
  1006. }
  1007. // -------------------------------------------------------------------
  1008. // ListValue
  1009. // repeated .google.protobuf.Value values = 1;
  1010. inline int ListValue::_internal_values_size() const {
  1011. return values_.size();
  1012. }
  1013. inline int ListValue::values_size() const {
  1014. return _internal_values_size();
  1015. }
  1016. inline void ListValue::clear_values() {
  1017. values_.Clear();
  1018. }
  1019. inline PROTOBUF_NAMESPACE_ID::Value* ListValue::mutable_values(int index) {
  1020. // @@protoc_insertion_point(field_mutable:google.protobuf.ListValue.values)
  1021. return values_.Mutable(index);
  1022. }
  1023. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Value >*
  1024. ListValue::mutable_values() {
  1025. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ListValue.values)
  1026. return &values_;
  1027. }
  1028. inline const PROTOBUF_NAMESPACE_ID::Value& ListValue::_internal_values(int index) const {
  1029. return values_.Get(index);
  1030. }
  1031. inline const PROTOBUF_NAMESPACE_ID::Value& ListValue::values(int index) const {
  1032. // @@protoc_insertion_point(field_get:google.protobuf.ListValue.values)
  1033. return _internal_values(index);
  1034. }
  1035. inline PROTOBUF_NAMESPACE_ID::Value* ListValue::_internal_add_values() {
  1036. return values_.Add();
  1037. }
  1038. inline PROTOBUF_NAMESPACE_ID::Value* ListValue::add_values() {
  1039. PROTOBUF_NAMESPACE_ID::Value* _add = _internal_add_values();
  1040. // @@protoc_insertion_point(field_add:google.protobuf.ListValue.values)
  1041. return _add;
  1042. }
  1043. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Value >&
  1044. ListValue::values() const {
  1045. // @@protoc_insertion_point(field_list:google.protobuf.ListValue.values)
  1046. return values_;
  1047. }
  1048. #ifdef __GNUC__
  1049. #pragma GCC diagnostic pop
  1050. #endif // __GNUC__
  1051. // -------------------------------------------------------------------
  1052. // -------------------------------------------------------------------
  1053. // -------------------------------------------------------------------
  1054. // @@protoc_insertion_point(namespace_scope)
  1055. PROTOBUF_NAMESPACE_CLOSE
  1056. PROTOBUF_NAMESPACE_OPEN
  1057. template <> struct is_proto_enum< PROTOBUF_NAMESPACE_ID::NullValue> : ::std::true_type {};
  1058. template <>
  1059. inline const EnumDescriptor* GetEnumDescriptor< PROTOBUF_NAMESPACE_ID::NullValue>() {
  1060. return PROTOBUF_NAMESPACE_ID::NullValue_descriptor();
  1061. }
  1062. PROTOBUF_NAMESPACE_CLOSE
  1063. // @@protoc_insertion_point(global_scope)
  1064. #include <google/protobuf/port_undef.inc>
  1065. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fstruct_2eproto