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