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