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