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