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