You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

struct.pb.h 42 kB

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