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