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