struct.pb.h 42 KB

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