struct.pb.h 41 KB

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