struct.pb.h 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201
  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 < 3012000
  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 3012003 < 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::AuxillaryParseTableField 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. const std::string& 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. 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. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  412. " string fields are deprecated and will be removed in a"
  413. " future release.")
  414. std::string* unsafe_arena_release_string_value();
  415. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  416. " string fields are deprecated and will be removed in a"
  417. " future release.")
  418. void unsafe_arena_set_allocated_string_value(
  419. std::string* string_value);
  420. private:
  421. const std::string& _internal_string_value() const;
  422. void _internal_set_string_value(const std::string& value);
  423. std::string* _internal_mutable_string_value();
  424. public:
  425. // bool bool_value = 4;
  426. private:
  427. bool _internal_has_bool_value() const;
  428. public:
  429. void clear_bool_value();
  430. bool bool_value() const;
  431. void set_bool_value(bool value);
  432. private:
  433. bool _internal_bool_value() const;
  434. void _internal_set_bool_value(bool value);
  435. public:
  436. // .google.protobuf.Struct struct_value = 5;
  437. bool has_struct_value() const;
  438. private:
  439. bool _internal_has_struct_value() const;
  440. public:
  441. void clear_struct_value();
  442. const PROTOBUF_NAMESPACE_ID::Struct& struct_value() const;
  443. PROTOBUF_NAMESPACE_ID::Struct* release_struct_value();
  444. PROTOBUF_NAMESPACE_ID::Struct* mutable_struct_value();
  445. void set_allocated_struct_value(PROTOBUF_NAMESPACE_ID::Struct* struct_value);
  446. private:
  447. const PROTOBUF_NAMESPACE_ID::Struct& _internal_struct_value() const;
  448. PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_struct_value();
  449. public:
  450. void unsafe_arena_set_allocated_struct_value(
  451. PROTOBUF_NAMESPACE_ID::Struct* struct_value);
  452. PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_struct_value();
  453. // .google.protobuf.ListValue list_value = 6;
  454. bool has_list_value() const;
  455. private:
  456. bool _internal_has_list_value() const;
  457. public:
  458. void clear_list_value();
  459. const PROTOBUF_NAMESPACE_ID::ListValue& list_value() const;
  460. PROTOBUF_NAMESPACE_ID::ListValue* release_list_value();
  461. PROTOBUF_NAMESPACE_ID::ListValue* mutable_list_value();
  462. void set_allocated_list_value(PROTOBUF_NAMESPACE_ID::ListValue* list_value);
  463. private:
  464. const PROTOBUF_NAMESPACE_ID::ListValue& _internal_list_value() const;
  465. PROTOBUF_NAMESPACE_ID::ListValue* _internal_mutable_list_value();
  466. public:
  467. void unsafe_arena_set_allocated_list_value(
  468. PROTOBUF_NAMESPACE_ID::ListValue* list_value);
  469. PROTOBUF_NAMESPACE_ID::ListValue* unsafe_arena_release_list_value();
  470. void clear_kind();
  471. KindCase kind_case() const;
  472. // @@protoc_insertion_point(class_scope:google.protobuf.Value)
  473. private:
  474. class _Internal;
  475. void set_has_null_value();
  476. void set_has_number_value();
  477. void set_has_string_value();
  478. void set_has_bool_value();
  479. void set_has_struct_value();
  480. void set_has_list_value();
  481. inline bool has_kind() const;
  482. inline void clear_has_kind();
  483. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  484. typedef void InternalArenaConstructable_;
  485. typedef void DestructorSkippable_;
  486. union KindUnion {
  487. KindUnion() {}
  488. int null_value_;
  489. double number_value_;
  490. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_value_;
  491. bool bool_value_;
  492. PROTOBUF_NAMESPACE_ID::Struct* struct_value_;
  493. PROTOBUF_NAMESPACE_ID::ListValue* list_value_;
  494. } kind_;
  495. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  496. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  497. friend struct ::TableStruct_google_2fprotobuf_2fstruct_2eproto;
  498. };
  499. // -------------------------------------------------------------------
  500. class PROTOBUF_EXPORT ListValue PROTOBUF_FINAL :
  501. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ListValue) */ {
  502. public:
  503. inline ListValue() : ListValue(nullptr) {};
  504. virtual ~ListValue();
  505. ListValue(const ListValue& from);
  506. ListValue(ListValue&& from) noexcept
  507. : ListValue() {
  508. *this = ::std::move(from);
  509. }
  510. inline ListValue& operator=(const ListValue& from) {
  511. CopyFrom(from);
  512. return *this;
  513. }
  514. inline ListValue& operator=(ListValue&& from) noexcept {
  515. if (GetArena() == from.GetArena()) {
  516. if (this != &from) InternalSwap(&from);
  517. } else {
  518. CopyFrom(from);
  519. }
  520. return *this;
  521. }
  522. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  523. return GetDescriptor();
  524. }
  525. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  526. return GetMetadataStatic().descriptor;
  527. }
  528. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  529. return GetMetadataStatic().reflection;
  530. }
  531. static const ListValue& default_instance();
  532. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  533. static inline const ListValue* internal_default_instance() {
  534. return reinterpret_cast<const ListValue*>(
  535. &_ListValue_default_instance_);
  536. }
  537. static constexpr int kIndexInFileMessages =
  538. 3;
  539. friend void swap(ListValue& a, ListValue& b) {
  540. a.Swap(&b);
  541. }
  542. inline void Swap(ListValue* other) {
  543. if (other == this) return;
  544. if (GetArena() == other->GetArena()) {
  545. InternalSwap(other);
  546. } else {
  547. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  548. }
  549. }
  550. void UnsafeArenaSwap(ListValue* other) {
  551. if (other == this) return;
  552. GOOGLE_DCHECK(GetArena() == other->GetArena());
  553. InternalSwap(other);
  554. }
  555. // implements Message ----------------------------------------------
  556. inline ListValue* New() const final {
  557. return CreateMaybeMessage<ListValue>(nullptr);
  558. }
  559. ListValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  560. return CreateMaybeMessage<ListValue>(arena);
  561. }
  562. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  563. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  564. void CopyFrom(const ListValue& from);
  565. void MergeFrom(const ListValue& from);
  566. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  567. bool IsInitialized() const final;
  568. size_t ByteSizeLong() const final;
  569. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  570. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  571. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  572. int GetCachedSize() const final { return _cached_size_.Get(); }
  573. private:
  574. inline void SharedCtor();
  575. inline void SharedDtor();
  576. void SetCachedSize(int size) const final;
  577. void InternalSwap(ListValue* other);
  578. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  579. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  580. return "google.protobuf.ListValue";
  581. }
  582. protected:
  583. explicit ListValue(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  584. private:
  585. static void ArenaDtor(void* object);
  586. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  587. public:
  588. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  589. private:
  590. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  591. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fstruct_2eproto);
  592. return ::descriptor_table_google_2fprotobuf_2fstruct_2eproto.file_level_metadata[kIndexInFileMessages];
  593. }
  594. public:
  595. // nested types ----------------------------------------------------
  596. // accessors -------------------------------------------------------
  597. enum : int {
  598. kValuesFieldNumber = 1,
  599. };
  600. // repeated .google.protobuf.Value values = 1;
  601. int values_size() const;
  602. private:
  603. int _internal_values_size() const;
  604. public:
  605. void clear_values();
  606. PROTOBUF_NAMESPACE_ID::Value* mutable_values(int index);
  607. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Value >*
  608. mutable_values();
  609. private:
  610. const PROTOBUF_NAMESPACE_ID::Value& _internal_values(int index) const;
  611. PROTOBUF_NAMESPACE_ID::Value* _internal_add_values();
  612. public:
  613. const PROTOBUF_NAMESPACE_ID::Value& values(int index) const;
  614. PROTOBUF_NAMESPACE_ID::Value* add_values();
  615. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Value >&
  616. values() const;
  617. // @@protoc_insertion_point(class_scope:google.protobuf.ListValue)
  618. private:
  619. class _Internal;
  620. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  621. typedef void InternalArenaConstructable_;
  622. typedef void DestructorSkippable_;
  623. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Value > values_;
  624. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  625. friend struct ::TableStruct_google_2fprotobuf_2fstruct_2eproto;
  626. };
  627. // ===================================================================
  628. // ===================================================================
  629. #ifdef __GNUC__
  630. #pragma GCC diagnostic push
  631. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  632. #endif // __GNUC__
  633. // -------------------------------------------------------------------
  634. // Struct
  635. // map<string, .google.protobuf.Value> fields = 1;
  636. inline int Struct::_internal_fields_size() const {
  637. return fields_.size();
  638. }
  639. inline int Struct::fields_size() const {
  640. return _internal_fields_size();
  641. }
  642. inline void Struct::clear_fields() {
  643. fields_.Clear();
  644. }
  645. inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, PROTOBUF_NAMESPACE_ID::Value >&
  646. Struct::_internal_fields() const {
  647. return fields_.GetMap();
  648. }
  649. inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, PROTOBUF_NAMESPACE_ID::Value >&
  650. Struct::fields() const {
  651. // @@protoc_insertion_point(field_map:google.protobuf.Struct.fields)
  652. return _internal_fields();
  653. }
  654. inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, PROTOBUF_NAMESPACE_ID::Value >*
  655. Struct::_internal_mutable_fields() {
  656. return fields_.MutableMap();
  657. }
  658. inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, PROTOBUF_NAMESPACE_ID::Value >*
  659. Struct::mutable_fields() {
  660. // @@protoc_insertion_point(field_mutable_map:google.protobuf.Struct.fields)
  661. return _internal_mutable_fields();
  662. }
  663. // -------------------------------------------------------------------
  664. // Value
  665. // .google.protobuf.NullValue null_value = 1;
  666. inline bool Value::_internal_has_null_value() const {
  667. return kind_case() == kNullValue;
  668. }
  669. inline void Value::set_has_null_value() {
  670. _oneof_case_[0] = kNullValue;
  671. }
  672. inline void Value::clear_null_value() {
  673. if (_internal_has_null_value()) {
  674. kind_.null_value_ = 0;
  675. clear_has_kind();
  676. }
  677. }
  678. inline PROTOBUF_NAMESPACE_ID::NullValue Value::_internal_null_value() const {
  679. if (_internal_has_null_value()) {
  680. return static_cast< PROTOBUF_NAMESPACE_ID::NullValue >(kind_.null_value_);
  681. }
  682. return static_cast< PROTOBUF_NAMESPACE_ID::NullValue >(0);
  683. }
  684. inline PROTOBUF_NAMESPACE_ID::NullValue Value::null_value() const {
  685. // @@protoc_insertion_point(field_get:google.protobuf.Value.null_value)
  686. return _internal_null_value();
  687. }
  688. inline void Value::_internal_set_null_value(PROTOBUF_NAMESPACE_ID::NullValue value) {
  689. if (!_internal_has_null_value()) {
  690. clear_kind();
  691. set_has_null_value();
  692. }
  693. kind_.null_value_ = value;
  694. }
  695. inline void Value::set_null_value(PROTOBUF_NAMESPACE_ID::NullValue value) {
  696. // @@protoc_insertion_point(field_set:google.protobuf.Value.null_value)
  697. _internal_set_null_value(value);
  698. }
  699. // double number_value = 2;
  700. inline bool Value::_internal_has_number_value() const {
  701. return kind_case() == kNumberValue;
  702. }
  703. inline void Value::set_has_number_value() {
  704. _oneof_case_[0] = kNumberValue;
  705. }
  706. inline void Value::clear_number_value() {
  707. if (_internal_has_number_value()) {
  708. kind_.number_value_ = 0;
  709. clear_has_kind();
  710. }
  711. }
  712. inline double Value::_internal_number_value() const {
  713. if (_internal_has_number_value()) {
  714. return kind_.number_value_;
  715. }
  716. return 0;
  717. }
  718. inline void Value::_internal_set_number_value(double value) {
  719. if (!_internal_has_number_value()) {
  720. clear_kind();
  721. set_has_number_value();
  722. }
  723. kind_.number_value_ = value;
  724. }
  725. inline double Value::number_value() const {
  726. // @@protoc_insertion_point(field_get:google.protobuf.Value.number_value)
  727. return _internal_number_value();
  728. }
  729. inline void Value::set_number_value(double value) {
  730. _internal_set_number_value(value);
  731. // @@protoc_insertion_point(field_set:google.protobuf.Value.number_value)
  732. }
  733. // string string_value = 3;
  734. inline bool Value::_internal_has_string_value() const {
  735. return kind_case() == kStringValue;
  736. }
  737. inline void Value::set_has_string_value() {
  738. _oneof_case_[0] = kStringValue;
  739. }
  740. inline void Value::clear_string_value() {
  741. if (_internal_has_string_value()) {
  742. kind_.string_value_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  743. clear_has_kind();
  744. }
  745. }
  746. inline const std::string& Value::string_value() const {
  747. // @@protoc_insertion_point(field_get:google.protobuf.Value.string_value)
  748. return _internal_string_value();
  749. }
  750. inline void Value::set_string_value(const std::string& value) {
  751. _internal_set_string_value(value);
  752. // @@protoc_insertion_point(field_set:google.protobuf.Value.string_value)
  753. }
  754. inline std::string* Value::mutable_string_value() {
  755. // @@protoc_insertion_point(field_mutable:google.protobuf.Value.string_value)
  756. return _internal_mutable_string_value();
  757. }
  758. inline const std::string& Value::_internal_string_value() const {
  759. if (_internal_has_string_value()) {
  760. return kind_.string_value_.Get();
  761. }
  762. return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  763. }
  764. inline void Value::_internal_set_string_value(const std::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
  771. }
  772. inline void Value::set_string_value(std::string&& value) {
  773. // @@protoc_insertion_point(field_set:google.protobuf.Value.string_value)
  774. if (!_internal_has_string_value()) {
  775. clear_kind();
  776. set_has_string_value();
  777. kind_.string_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  778. }
  779. kind_.string_value_.Set(
  780. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
  781. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Value.string_value)
  782. }
  783. inline void Value::set_string_value(const char* value) {
  784. GOOGLE_DCHECK(value != nullptr);
  785. if (!_internal_has_string_value()) {
  786. clear_kind();
  787. set_has_string_value();
  788. kind_.string_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  789. }
  790. kind_.string_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  791. ::std::string(value), GetArena());
  792. // @@protoc_insertion_point(field_set_char:google.protobuf.Value.string_value)
  793. }
  794. inline void Value::set_string_value(const char* value,
  795. size_t size) {
  796. if (!_internal_has_string_value()) {
  797. clear_kind();
  798. set_has_string_value();
  799. kind_.string_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  800. }
  801. kind_.string_value_.Set(
  802. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  803. reinterpret_cast<const char*>(value), size),
  804. GetArena());
  805. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Value.string_value)
  806. }
  807. inline std::string* Value::_internal_mutable_string_value() {
  808. if (!_internal_has_string_value()) {
  809. clear_kind();
  810. set_has_string_value();
  811. kind_.string_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  812. }
  813. return kind_.string_value_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  814. }
  815. inline std::string* Value::release_string_value() {
  816. // @@protoc_insertion_point(field_release:google.protobuf.Value.string_value)
  817. if (_internal_has_string_value()) {
  818. clear_has_kind();
  819. return kind_.string_value_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  820. } else {
  821. return nullptr;
  822. }
  823. }
  824. inline void Value::set_allocated_string_value(std::string* string_value) {
  825. if (has_kind()) {
  826. clear_kind();
  827. }
  828. if (string_value != nullptr) {
  829. set_has_string_value();
  830. kind_.string_value_.UnsafeSetDefault(string_value);
  831. }
  832. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.string_value)
  833. }
  834. inline std::string* Value::unsafe_arena_release_string_value() {
  835. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.string_value)
  836. GOOGLE_DCHECK(GetArena() != nullptr);
  837. if (_internal_has_string_value()) {
  838. clear_has_kind();
  839. return kind_.string_value_.UnsafeArenaRelease(
  840. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  841. } else {
  842. return nullptr;
  843. }
  844. }
  845. inline void Value::unsafe_arena_set_allocated_string_value(std::string* string_value) {
  846. GOOGLE_DCHECK(GetArena() != nullptr);
  847. if (!_internal_has_string_value()) {
  848. kind_.string_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  849. }
  850. clear_kind();
  851. if (string_value) {
  852. set_has_string_value();
  853. kind_.string_value_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), string_value, GetArena());
  854. }
  855. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Value.string_value)
  856. }
  857. // bool bool_value = 4;
  858. inline bool Value::_internal_has_bool_value() const {
  859. return kind_case() == kBoolValue;
  860. }
  861. inline void Value::set_has_bool_value() {
  862. _oneof_case_[0] = kBoolValue;
  863. }
  864. inline void Value::clear_bool_value() {
  865. if (_internal_has_bool_value()) {
  866. kind_.bool_value_ = false;
  867. clear_has_kind();
  868. }
  869. }
  870. inline bool Value::_internal_bool_value() const {
  871. if (_internal_has_bool_value()) {
  872. return kind_.bool_value_;
  873. }
  874. return false;
  875. }
  876. inline void Value::_internal_set_bool_value(bool value) {
  877. if (!_internal_has_bool_value()) {
  878. clear_kind();
  879. set_has_bool_value();
  880. }
  881. kind_.bool_value_ = value;
  882. }
  883. inline bool Value::bool_value() const {
  884. // @@protoc_insertion_point(field_get:google.protobuf.Value.bool_value)
  885. return _internal_bool_value();
  886. }
  887. inline void Value::set_bool_value(bool value) {
  888. _internal_set_bool_value(value);
  889. // @@protoc_insertion_point(field_set:google.protobuf.Value.bool_value)
  890. }
  891. // .google.protobuf.Struct struct_value = 5;
  892. inline bool Value::_internal_has_struct_value() const {
  893. return kind_case() == kStructValue;
  894. }
  895. inline bool Value::has_struct_value() const {
  896. return _internal_has_struct_value();
  897. }
  898. inline void Value::set_has_struct_value() {
  899. _oneof_case_[0] = kStructValue;
  900. }
  901. inline void Value::clear_struct_value() {
  902. if (_internal_has_struct_value()) {
  903. if (GetArena() == nullptr) {
  904. delete kind_.struct_value_;
  905. }
  906. clear_has_kind();
  907. }
  908. }
  909. inline PROTOBUF_NAMESPACE_ID::Struct* Value::release_struct_value() {
  910. // @@protoc_insertion_point(field_release:google.protobuf.Value.struct_value)
  911. if (_internal_has_struct_value()) {
  912. clear_has_kind();
  913. PROTOBUF_NAMESPACE_ID::Struct* temp = kind_.struct_value_;
  914. if (GetArena() != nullptr) {
  915. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  916. }
  917. kind_.struct_value_ = nullptr;
  918. return temp;
  919. } else {
  920. return nullptr;
  921. }
  922. }
  923. inline const PROTOBUF_NAMESPACE_ID::Struct& Value::_internal_struct_value() const {
  924. return _internal_has_struct_value()
  925. ? *kind_.struct_value_
  926. : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::Struct*>(&PROTOBUF_NAMESPACE_ID::_Struct_default_instance_);
  927. }
  928. inline const PROTOBUF_NAMESPACE_ID::Struct& Value::struct_value() const {
  929. // @@protoc_insertion_point(field_get:google.protobuf.Value.struct_value)
  930. return _internal_struct_value();
  931. }
  932. inline PROTOBUF_NAMESPACE_ID::Struct* Value::unsafe_arena_release_struct_value() {
  933. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.struct_value)
  934. if (_internal_has_struct_value()) {
  935. clear_has_kind();
  936. PROTOBUF_NAMESPACE_ID::Struct* temp = kind_.struct_value_;
  937. kind_.struct_value_ = nullptr;
  938. return temp;
  939. } else {
  940. return nullptr;
  941. }
  942. }
  943. inline void Value::unsafe_arena_set_allocated_struct_value(PROTOBUF_NAMESPACE_ID::Struct* struct_value) {
  944. clear_kind();
  945. if (struct_value) {
  946. set_has_struct_value();
  947. kind_.struct_value_ = struct_value;
  948. }
  949. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Value.struct_value)
  950. }
  951. inline PROTOBUF_NAMESPACE_ID::Struct* Value::_internal_mutable_struct_value() {
  952. if (!_internal_has_struct_value()) {
  953. clear_kind();
  954. set_has_struct_value();
  955. kind_.struct_value_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Struct >(GetArena());
  956. }
  957. return kind_.struct_value_;
  958. }
  959. inline PROTOBUF_NAMESPACE_ID::Struct* Value::mutable_struct_value() {
  960. // @@protoc_insertion_point(field_mutable:google.protobuf.Value.struct_value)
  961. return _internal_mutable_struct_value();
  962. }
  963. // .google.protobuf.ListValue list_value = 6;
  964. inline bool Value::_internal_has_list_value() const {
  965. return kind_case() == kListValue;
  966. }
  967. inline bool Value::has_list_value() const {
  968. return _internal_has_list_value();
  969. }
  970. inline void Value::set_has_list_value() {
  971. _oneof_case_[0] = kListValue;
  972. }
  973. inline void Value::clear_list_value() {
  974. if (_internal_has_list_value()) {
  975. if (GetArena() == nullptr) {
  976. delete kind_.list_value_;
  977. }
  978. clear_has_kind();
  979. }
  980. }
  981. inline PROTOBUF_NAMESPACE_ID::ListValue* Value::release_list_value() {
  982. // @@protoc_insertion_point(field_release:google.protobuf.Value.list_value)
  983. if (_internal_has_list_value()) {
  984. clear_has_kind();
  985. PROTOBUF_NAMESPACE_ID::ListValue* temp = kind_.list_value_;
  986. if (GetArena() != nullptr) {
  987. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  988. }
  989. kind_.list_value_ = nullptr;
  990. return temp;
  991. } else {
  992. return nullptr;
  993. }
  994. }
  995. inline const PROTOBUF_NAMESPACE_ID::ListValue& Value::_internal_list_value() const {
  996. return _internal_has_list_value()
  997. ? *kind_.list_value_
  998. : *reinterpret_cast< PROTOBUF_NAMESPACE_ID::ListValue*>(&PROTOBUF_NAMESPACE_ID::_ListValue_default_instance_);
  999. }
  1000. inline const PROTOBUF_NAMESPACE_ID::ListValue& Value::list_value() const {
  1001. // @@protoc_insertion_point(field_get:google.protobuf.Value.list_value)
  1002. return _internal_list_value();
  1003. }
  1004. inline PROTOBUF_NAMESPACE_ID::ListValue* Value::unsafe_arena_release_list_value() {
  1005. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.list_value)
  1006. if (_internal_has_list_value()) {
  1007. clear_has_kind();
  1008. PROTOBUF_NAMESPACE_ID::ListValue* temp = kind_.list_value_;
  1009. kind_.list_value_ = nullptr;
  1010. return temp;
  1011. } else {
  1012. return nullptr;
  1013. }
  1014. }
  1015. inline void Value::unsafe_arena_set_allocated_list_value(PROTOBUF_NAMESPACE_ID::ListValue* list_value) {
  1016. clear_kind();
  1017. if (list_value) {
  1018. set_has_list_value();
  1019. kind_.list_value_ = list_value;
  1020. }
  1021. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Value.list_value)
  1022. }
  1023. inline PROTOBUF_NAMESPACE_ID::ListValue* Value::_internal_mutable_list_value() {
  1024. if (!_internal_has_list_value()) {
  1025. clear_kind();
  1026. set_has_list_value();
  1027. kind_.list_value_ = CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::ListValue >(GetArena());
  1028. }
  1029. return kind_.list_value_;
  1030. }
  1031. inline PROTOBUF_NAMESPACE_ID::ListValue* Value::mutable_list_value() {
  1032. // @@protoc_insertion_point(field_mutable:google.protobuf.Value.list_value)
  1033. return _internal_mutable_list_value();
  1034. }
  1035. inline bool Value::has_kind() const {
  1036. return kind_case() != KIND_NOT_SET;
  1037. }
  1038. inline void Value::clear_has_kind() {
  1039. _oneof_case_[0] = KIND_NOT_SET;
  1040. }
  1041. inline Value::KindCase Value::kind_case() const {
  1042. return Value::KindCase(_oneof_case_[0]);
  1043. }
  1044. // -------------------------------------------------------------------
  1045. // ListValue
  1046. // repeated .google.protobuf.Value values = 1;
  1047. inline int ListValue::_internal_values_size() const {
  1048. return values_.size();
  1049. }
  1050. inline int ListValue::values_size() const {
  1051. return _internal_values_size();
  1052. }
  1053. inline void ListValue::clear_values() {
  1054. values_.Clear();
  1055. }
  1056. inline PROTOBUF_NAMESPACE_ID::Value* ListValue::mutable_values(int index) {
  1057. // @@protoc_insertion_point(field_mutable:google.protobuf.ListValue.values)
  1058. return values_.Mutable(index);
  1059. }
  1060. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Value >*
  1061. ListValue::mutable_values() {
  1062. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ListValue.values)
  1063. return &values_;
  1064. }
  1065. inline const PROTOBUF_NAMESPACE_ID::Value& ListValue::_internal_values(int index) const {
  1066. return values_.Get(index);
  1067. }
  1068. inline const PROTOBUF_NAMESPACE_ID::Value& ListValue::values(int index) const {
  1069. // @@protoc_insertion_point(field_get:google.protobuf.ListValue.values)
  1070. return _internal_values(index);
  1071. }
  1072. inline PROTOBUF_NAMESPACE_ID::Value* ListValue::_internal_add_values() {
  1073. return values_.Add();
  1074. }
  1075. inline PROTOBUF_NAMESPACE_ID::Value* ListValue::add_values() {
  1076. // @@protoc_insertion_point(field_add:google.protobuf.ListValue.values)
  1077. return _internal_add_values();
  1078. }
  1079. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Value >&
  1080. ListValue::values() const {
  1081. // @@protoc_insertion_point(field_list:google.protobuf.ListValue.values)
  1082. return values_;
  1083. }
  1084. #ifdef __GNUC__
  1085. #pragma GCC diagnostic pop
  1086. #endif // __GNUC__
  1087. // -------------------------------------------------------------------
  1088. // -------------------------------------------------------------------
  1089. // -------------------------------------------------------------------
  1090. // @@protoc_insertion_point(namespace_scope)
  1091. PROTOBUF_NAMESPACE_CLOSE
  1092. PROTOBUF_NAMESPACE_OPEN
  1093. template <> struct is_proto_enum< PROTOBUF_NAMESPACE_ID::NullValue> : ::std::true_type {};
  1094. template <>
  1095. inline const EnumDescriptor* GetEnumDescriptor< PROTOBUF_NAMESPACE_ID::NullValue>() {
  1096. return PROTOBUF_NAMESPACE_ID::NullValue_descriptor();
  1097. }
  1098. PROTOBUF_NAMESPACE_CLOSE
  1099. // @@protoc_insertion_point(global_scope)
  1100. #include <google/protobuf/port_undef.inc>
  1101. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fstruct_2eproto