/src/jsoncpp/build/genfiles/json.pb.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // NO CHECKED-IN PROTOBUF GENCODE |
3 | | // source: json.proto |
4 | | // Protobuf C++ Version: 5.29.3 |
5 | | |
6 | | #ifndef json_2eproto_2epb_2eh |
7 | | #define json_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 != 5029003 |
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/unknown_field_set.h" |
32 | | // @@protoc_insertion_point(includes) |
33 | | |
34 | | // Must be included last. |
35 | | #include "google/protobuf/port_def.inc" |
36 | | |
37 | | #define PROTOBUF_INTERNAL_EXPORT_json_2eproto |
38 | | |
39 | | namespace google { |
40 | | namespace protobuf { |
41 | | namespace internal { |
42 | | template <typename T> |
43 | | ::absl::string_view GetAnyMessageName(); |
44 | | } // namespace internal |
45 | | } // namespace protobuf |
46 | | } // namespace google |
47 | | |
48 | | // Internal implementation detail -- do not use these members. |
49 | | struct TableStruct_json_2eproto { |
50 | | static const ::uint32_t offsets[]; |
51 | | }; |
52 | | extern const ::google::protobuf::internal::DescriptorTable |
53 | | descriptor_table_json_2eproto; |
54 | | namespace json_proto { |
55 | | class ArrayValue; |
56 | | struct ArrayValueDefaultTypeInternal; |
57 | | extern ArrayValueDefaultTypeInternal _ArrayValue_default_instance_; |
58 | | class BooleanValue; |
59 | | struct BooleanValueDefaultTypeInternal; |
60 | | extern BooleanValueDefaultTypeInternal _BooleanValue_default_instance_; |
61 | | class JsonObject; |
62 | | struct JsonObjectDefaultTypeInternal; |
63 | | extern JsonObjectDefaultTypeInternal _JsonObject_default_instance_; |
64 | | class JsonParseAPI; |
65 | | struct JsonParseAPIDefaultTypeInternal; |
66 | | extern JsonParseAPIDefaultTypeInternal _JsonParseAPI_default_instance_; |
67 | | class JsonValue; |
68 | | struct JsonValueDefaultTypeInternal; |
69 | | extern JsonValueDefaultTypeInternal _JsonValue_default_instance_; |
70 | | class NumberExponent; |
71 | | struct NumberExponentDefaultTypeInternal; |
72 | | extern NumberExponentDefaultTypeInternal _NumberExponent_default_instance_; |
73 | | class NumberExponentFrac; |
74 | | struct NumberExponentFracDefaultTypeInternal; |
75 | | extern NumberExponentFracDefaultTypeInternal _NumberExponentFrac_default_instance_; |
76 | | class NumberFloat; |
77 | | struct NumberFloatDefaultTypeInternal; |
78 | | extern NumberFloatDefaultTypeInternal _NumberFloat_default_instance_; |
79 | | class NumberInteger; |
80 | | struct NumberIntegerDefaultTypeInternal; |
81 | | extern NumberIntegerDefaultTypeInternal _NumberInteger_default_instance_; |
82 | | class NumberValue; |
83 | | struct NumberValueDefaultTypeInternal; |
84 | | extern NumberValueDefaultTypeInternal _NumberValue_default_instance_; |
85 | | class StringValue; |
86 | | struct StringValueDefaultTypeInternal; |
87 | | extern StringValueDefaultTypeInternal _StringValue_default_instance_; |
88 | | } // namespace json_proto |
89 | | namespace google { |
90 | | namespace protobuf { |
91 | | } // namespace protobuf |
92 | | } // namespace google |
93 | | |
94 | | namespace json_proto { |
95 | | |
96 | | // =================================================================== |
97 | | |
98 | | |
99 | | // ------------------------------------------------------------------- |
100 | | |
101 | | class StringValue final : public ::google::protobuf::Message |
102 | | /* @@protoc_insertion_point(class_definition:json_proto.StringValue) */ { |
103 | | public: |
104 | 0 | inline StringValue() : StringValue(nullptr) {} |
105 | | ~StringValue() PROTOBUF_FINAL; |
106 | | |
107 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
108 | | void operator delete(StringValue* msg, std::destroying_delete_t) { |
109 | | SharedDtor(*msg); |
110 | | ::google::protobuf::internal::SizedDelete(msg, sizeof(StringValue)); |
111 | | } |
112 | | #endif |
113 | | |
114 | | template <typename = void> |
115 | | explicit PROTOBUF_CONSTEXPR StringValue( |
116 | | ::google::protobuf::internal::ConstantInitialized); |
117 | | |
118 | 0 | inline StringValue(const StringValue& from) : StringValue(nullptr, from) {} |
119 | | inline StringValue(StringValue&& from) noexcept |
120 | 0 | : StringValue(nullptr, std::move(from)) {} |
121 | 0 | inline StringValue& operator=(const StringValue& from) { |
122 | 0 | CopyFrom(from); |
123 | 0 | return *this; |
124 | 0 | } |
125 | 0 | inline StringValue& operator=(StringValue&& from) noexcept { |
126 | 0 | if (this == &from) return *this; |
127 | 0 | if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { |
128 | 0 | InternalSwap(&from); |
129 | 0 | } else { |
130 | 0 | CopyFrom(from); |
131 | 0 | } |
132 | 0 | return *this; |
133 | 0 | } |
134 | | |
135 | | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const |
136 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
137 | 0 | return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); |
138 | 0 | } |
139 | | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() |
140 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
141 | 0 | return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); |
142 | 0 | } |
143 | | |
144 | 0 | static const ::google::protobuf::Descriptor* descriptor() { |
145 | 0 | return GetDescriptor(); |
146 | 0 | } |
147 | 0 | static const ::google::protobuf::Descriptor* GetDescriptor() { |
148 | 0 | return default_instance().GetMetadata().descriptor; |
149 | 0 | } |
150 | 0 | static const ::google::protobuf::Reflection* GetReflection() { |
151 | 0 | return default_instance().GetMetadata().reflection; |
152 | 0 | } |
153 | 0 | static const StringValue& default_instance() { |
154 | 0 | return *internal_default_instance(); |
155 | 0 | } |
156 | 0 | static inline const StringValue* internal_default_instance() { |
157 | 0 | return reinterpret_cast<const StringValue*>( |
158 | 0 | &_StringValue_default_instance_); |
159 | 0 | } |
160 | | static constexpr int kIndexInFileMessages = 9; |
161 | 0 | friend void swap(StringValue& a, StringValue& b) { a.Swap(&b); } |
162 | 0 | inline void Swap(StringValue* other) { |
163 | 0 | if (other == this) return; |
164 | 0 | if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { |
165 | 0 | InternalSwap(other); |
166 | 0 | } else { |
167 | 0 | ::google::protobuf::internal::GenericSwap(this, other); |
168 | 0 | } |
169 | 0 | } |
170 | 0 | void UnsafeArenaSwap(StringValue* other) { |
171 | 0 | if (other == this) return; |
172 | 0 | ABSL_DCHECK(GetArena() == other->GetArena()); |
173 | 0 | InternalSwap(other); |
174 | 0 | } |
175 | | |
176 | | // implements Message ---------------------------------------------- |
177 | | |
178 | 0 | StringValue* New(::google::protobuf::Arena* arena = nullptr) const { |
179 | 0 | return ::google::protobuf::Message::DefaultConstruct<StringValue>(arena); |
180 | 0 | } |
181 | | using ::google::protobuf::Message::CopyFrom; |
182 | | void CopyFrom(const StringValue& from); |
183 | | using ::google::protobuf::Message::MergeFrom; |
184 | 0 | void MergeFrom(const StringValue& from) { StringValue::MergeImpl(*this, from); } |
185 | | |
186 | | private: |
187 | | static void MergeImpl( |
188 | | ::google::protobuf::MessageLite& to_msg, |
189 | | const ::google::protobuf::MessageLite& from_msg); |
190 | | |
191 | | public: |
192 | 0 | bool IsInitialized() const { |
193 | 0 | return IsInitializedImpl(*this); |
194 | 0 | } |
195 | | |
196 | | private: |
197 | | static bool IsInitializedImpl(const MessageLite& msg); |
198 | | |
199 | | public: |
200 | | ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; |
201 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
202 | | private: |
203 | | static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); |
204 | | static ::uint8_t* _InternalSerialize( |
205 | | const MessageLite& msg, ::uint8_t* target, |
206 | | ::google::protobuf::io::EpsCopyOutputStream* stream); |
207 | | |
208 | | public: |
209 | | ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } |
210 | | ::uint8_t* _InternalSerialize( |
211 | | ::uint8_t* target, |
212 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
213 | | return _InternalSerialize(*this, target, stream); |
214 | | } |
215 | | #else // PROTOBUF_CUSTOM_VTABLE |
216 | | ::size_t ByteSizeLong() const final; |
217 | | ::uint8_t* _InternalSerialize( |
218 | | ::uint8_t* target, |
219 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const final; |
220 | | #endif // PROTOBUF_CUSTOM_VTABLE |
221 | 0 | int GetCachedSize() const { return _impl_._cached_size_.Get(); } |
222 | | |
223 | | private: |
224 | | void SharedCtor(::google::protobuf::Arena* arena); |
225 | | static void SharedDtor(MessageLite& self); |
226 | | void InternalSwap(StringValue* other); |
227 | | private: |
228 | | template <typename T> |
229 | | friend ::absl::string_view( |
230 | | ::google::protobuf::internal::GetAnyMessageName)(); |
231 | 0 | static ::absl::string_view FullMessageName() { return "json_proto.StringValue"; } |
232 | | |
233 | | protected: |
234 | | explicit StringValue(::google::protobuf::Arena* arena); |
235 | | StringValue(::google::protobuf::Arena* arena, const StringValue& from); |
236 | | StringValue(::google::protobuf::Arena* arena, StringValue&& from) noexcept |
237 | 0 | : StringValue(arena) { |
238 | 0 | *this = ::std::move(from); |
239 | 0 | } |
240 | | const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; |
241 | | static void* PlacementNew_(const void*, void* mem, |
242 | | ::google::protobuf::Arena* arena); |
243 | | static constexpr auto InternalNewImpl_(); |
244 | | static const ::google::protobuf::internal::ClassDataFull _class_data_; |
245 | | |
246 | | public: |
247 | | ::google::protobuf::Metadata GetMetadata() const; |
248 | | // nested types ---------------------------------------------------- |
249 | | |
250 | | // accessors ------------------------------------------------------- |
251 | | enum : int { |
252 | | kValueFieldNumber = 1, |
253 | | }; |
254 | | // required string value = 1; |
255 | | bool has_value() const; |
256 | | void clear_value() ; |
257 | | const std::string& value() const; |
258 | | template <typename Arg_ = const std::string&, typename... Args_> |
259 | | void set_value(Arg_&& arg, Args_... args); |
260 | | std::string* mutable_value(); |
261 | | PROTOBUF_NODISCARD std::string* release_value(); |
262 | | void set_allocated_value(std::string* value); |
263 | | |
264 | | private: |
265 | | const std::string& _internal_value() const; |
266 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_value( |
267 | | const std::string& value); |
268 | | std::string* _internal_mutable_value(); |
269 | | |
270 | | public: |
271 | | // @@protoc_insertion_point(class_scope:json_proto.StringValue) |
272 | | private: |
273 | | class _Internal; |
274 | | friend class ::google::protobuf::internal::TcParser; |
275 | | static const ::google::protobuf::internal::TcParseTable< |
276 | | 0, 1, 0, |
277 | | 36, 2> |
278 | | _table_; |
279 | | |
280 | | friend class ::google::protobuf::MessageLite; |
281 | | friend class ::google::protobuf::Arena; |
282 | | template <typename T> |
283 | | friend class ::google::protobuf::Arena::InternalHelper; |
284 | | using InternalArenaConstructable_ = void; |
285 | | using DestructorSkippable_ = void; |
286 | | struct Impl_ { |
287 | | inline explicit constexpr Impl_( |
288 | | ::google::protobuf::internal::ConstantInitialized) noexcept; |
289 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
290 | | ::google::protobuf::Arena* arena); |
291 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
292 | | ::google::protobuf::Arena* arena, const Impl_& from, |
293 | | const StringValue& from_msg); |
294 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
295 | | ::google::protobuf::internal::CachedSize _cached_size_; |
296 | | ::google::protobuf::internal::ArenaStringPtr value_; |
297 | | PROTOBUF_TSAN_DECLARE_MEMBER |
298 | | }; |
299 | | union { Impl_ _impl_; }; |
300 | | friend struct ::TableStruct_json_2eproto; |
301 | | }; |
302 | | // ------------------------------------------------------------------- |
303 | | |
304 | | class NumberInteger final : public ::google::protobuf::Message |
305 | | /* @@protoc_insertion_point(class_definition:json_proto.NumberInteger) */ { |
306 | | public: |
307 | 0 | inline NumberInteger() : NumberInteger(nullptr) {} |
308 | | ~NumberInteger() PROTOBUF_FINAL; |
309 | | |
310 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
311 | | void operator delete(NumberInteger* msg, std::destroying_delete_t) { |
312 | | SharedDtor(*msg); |
313 | | ::google::protobuf::internal::SizedDelete(msg, sizeof(NumberInteger)); |
314 | | } |
315 | | #endif |
316 | | |
317 | | template <typename = void> |
318 | | explicit PROTOBUF_CONSTEXPR NumberInteger( |
319 | | ::google::protobuf::internal::ConstantInitialized); |
320 | | |
321 | 0 | inline NumberInteger(const NumberInteger& from) : NumberInteger(nullptr, from) {} |
322 | | inline NumberInteger(NumberInteger&& from) noexcept |
323 | 0 | : NumberInteger(nullptr, std::move(from)) {} |
324 | 0 | inline NumberInteger& operator=(const NumberInteger& from) { |
325 | 0 | CopyFrom(from); |
326 | 0 | return *this; |
327 | 0 | } |
328 | 0 | inline NumberInteger& operator=(NumberInteger&& from) noexcept { |
329 | 0 | if (this == &from) return *this; |
330 | 0 | if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { |
331 | 0 | InternalSwap(&from); |
332 | 0 | } else { |
333 | 0 | CopyFrom(from); |
334 | 0 | } |
335 | 0 | return *this; |
336 | 0 | } |
337 | | |
338 | | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const |
339 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
340 | 0 | return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); |
341 | 0 | } |
342 | | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() |
343 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
344 | 0 | return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); |
345 | 0 | } |
346 | | |
347 | 0 | static const ::google::protobuf::Descriptor* descriptor() { |
348 | 0 | return GetDescriptor(); |
349 | 0 | } |
350 | 0 | static const ::google::protobuf::Descriptor* GetDescriptor() { |
351 | 0 | return default_instance().GetMetadata().descriptor; |
352 | 0 | } |
353 | 0 | static const ::google::protobuf::Reflection* GetReflection() { |
354 | 0 | return default_instance().GetMetadata().reflection; |
355 | 0 | } |
356 | 0 | static const NumberInteger& default_instance() { |
357 | 0 | return *internal_default_instance(); |
358 | 0 | } |
359 | 0 | static inline const NumberInteger* internal_default_instance() { |
360 | 0 | return reinterpret_cast<const NumberInteger*>( |
361 | 0 | &_NumberInteger_default_instance_); |
362 | 0 | } |
363 | | static constexpr int kIndexInFileMessages = 4; |
364 | 0 | friend void swap(NumberInteger& a, NumberInteger& b) { a.Swap(&b); } |
365 | 0 | inline void Swap(NumberInteger* other) { |
366 | 0 | if (other == this) return; |
367 | 0 | if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { |
368 | 0 | InternalSwap(other); |
369 | 0 | } else { |
370 | 0 | ::google::protobuf::internal::GenericSwap(this, other); |
371 | 0 | } |
372 | 0 | } |
373 | 0 | void UnsafeArenaSwap(NumberInteger* other) { |
374 | 0 | if (other == this) return; |
375 | 0 | ABSL_DCHECK(GetArena() == other->GetArena()); |
376 | 0 | InternalSwap(other); |
377 | 0 | } |
378 | | |
379 | | // implements Message ---------------------------------------------- |
380 | | |
381 | 0 | NumberInteger* New(::google::protobuf::Arena* arena = nullptr) const { |
382 | 0 | return ::google::protobuf::Message::DefaultConstruct<NumberInteger>(arena); |
383 | 0 | } |
384 | | using ::google::protobuf::Message::CopyFrom; |
385 | | void CopyFrom(const NumberInteger& from); |
386 | | using ::google::protobuf::Message::MergeFrom; |
387 | 0 | void MergeFrom(const NumberInteger& from) { NumberInteger::MergeImpl(*this, from); } |
388 | | |
389 | | private: |
390 | | static void MergeImpl( |
391 | | ::google::protobuf::MessageLite& to_msg, |
392 | | const ::google::protobuf::MessageLite& from_msg); |
393 | | |
394 | | public: |
395 | 0 | bool IsInitialized() const { |
396 | 0 | return IsInitializedImpl(*this); |
397 | 0 | } |
398 | | |
399 | | private: |
400 | | static bool IsInitializedImpl(const MessageLite& msg); |
401 | | |
402 | | public: |
403 | | ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; |
404 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
405 | | private: |
406 | | static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); |
407 | | static ::uint8_t* _InternalSerialize( |
408 | | const MessageLite& msg, ::uint8_t* target, |
409 | | ::google::protobuf::io::EpsCopyOutputStream* stream); |
410 | | |
411 | | public: |
412 | | ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } |
413 | | ::uint8_t* _InternalSerialize( |
414 | | ::uint8_t* target, |
415 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
416 | | return _InternalSerialize(*this, target, stream); |
417 | | } |
418 | | #else // PROTOBUF_CUSTOM_VTABLE |
419 | | ::size_t ByteSizeLong() const final; |
420 | | ::uint8_t* _InternalSerialize( |
421 | | ::uint8_t* target, |
422 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const final; |
423 | | #endif // PROTOBUF_CUSTOM_VTABLE |
424 | 0 | int GetCachedSize() const { return _impl_._cached_size_.Get(); } |
425 | | |
426 | | private: |
427 | | void SharedCtor(::google::protobuf::Arena* arena); |
428 | | static void SharedDtor(MessageLite& self); |
429 | | void InternalSwap(NumberInteger* other); |
430 | | private: |
431 | | template <typename T> |
432 | | friend ::absl::string_view( |
433 | | ::google::protobuf::internal::GetAnyMessageName)(); |
434 | 0 | static ::absl::string_view FullMessageName() { return "json_proto.NumberInteger"; } |
435 | | |
436 | | protected: |
437 | | explicit NumberInteger(::google::protobuf::Arena* arena); |
438 | | NumberInteger(::google::protobuf::Arena* arena, const NumberInteger& from); |
439 | | NumberInteger(::google::protobuf::Arena* arena, NumberInteger&& from) noexcept |
440 | 0 | : NumberInteger(arena) { |
441 | 0 | *this = ::std::move(from); |
442 | 0 | } |
443 | | const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; |
444 | | static void* PlacementNew_(const void*, void* mem, |
445 | | ::google::protobuf::Arena* arena); |
446 | | static constexpr auto InternalNewImpl_(); |
447 | | static const ::google::protobuf::internal::ClassDataFull _class_data_; |
448 | | |
449 | | public: |
450 | | ::google::protobuf::Metadata GetMetadata() const; |
451 | | // nested types ---------------------------------------------------- |
452 | | |
453 | | // accessors ------------------------------------------------------- |
454 | | enum : int { |
455 | | kValueFieldNumber = 1, |
456 | | }; |
457 | | // required int64 value = 1; |
458 | | bool has_value() const; |
459 | | void clear_value() ; |
460 | | ::int64_t value() const; |
461 | | void set_value(::int64_t value); |
462 | | |
463 | | private: |
464 | | ::int64_t _internal_value() const; |
465 | | void _internal_set_value(::int64_t value); |
466 | | |
467 | | public: |
468 | | // @@protoc_insertion_point(class_scope:json_proto.NumberInteger) |
469 | | private: |
470 | | class _Internal; |
471 | | friend class ::google::protobuf::internal::TcParser; |
472 | | static const ::google::protobuf::internal::TcParseTable< |
473 | | 0, 1, 0, |
474 | | 0, 2> |
475 | | _table_; |
476 | | |
477 | | friend class ::google::protobuf::MessageLite; |
478 | | friend class ::google::protobuf::Arena; |
479 | | template <typename T> |
480 | | friend class ::google::protobuf::Arena::InternalHelper; |
481 | | using InternalArenaConstructable_ = void; |
482 | | using DestructorSkippable_ = void; |
483 | | struct Impl_ { |
484 | | inline explicit constexpr Impl_( |
485 | | ::google::protobuf::internal::ConstantInitialized) noexcept; |
486 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
487 | | ::google::protobuf::Arena* arena); |
488 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
489 | | ::google::protobuf::Arena* arena, const Impl_& from, |
490 | | const NumberInteger& from_msg); |
491 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
492 | | ::google::protobuf::internal::CachedSize _cached_size_; |
493 | | ::int64_t value_; |
494 | | PROTOBUF_TSAN_DECLARE_MEMBER |
495 | | }; |
496 | | union { Impl_ _impl_; }; |
497 | | friend struct ::TableStruct_json_2eproto; |
498 | | }; |
499 | | // ------------------------------------------------------------------- |
500 | | |
501 | | class NumberFloat final : public ::google::protobuf::Message |
502 | | /* @@protoc_insertion_point(class_definition:json_proto.NumberFloat) */ { |
503 | | public: |
504 | 0 | inline NumberFloat() : NumberFloat(nullptr) {} |
505 | | ~NumberFloat() PROTOBUF_FINAL; |
506 | | |
507 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
508 | | void operator delete(NumberFloat* msg, std::destroying_delete_t) { |
509 | | SharedDtor(*msg); |
510 | | ::google::protobuf::internal::SizedDelete(msg, sizeof(NumberFloat)); |
511 | | } |
512 | | #endif |
513 | | |
514 | | template <typename = void> |
515 | | explicit PROTOBUF_CONSTEXPR NumberFloat( |
516 | | ::google::protobuf::internal::ConstantInitialized); |
517 | | |
518 | 0 | inline NumberFloat(const NumberFloat& from) : NumberFloat(nullptr, from) {} |
519 | | inline NumberFloat(NumberFloat&& from) noexcept |
520 | 0 | : NumberFloat(nullptr, std::move(from)) {} |
521 | 0 | inline NumberFloat& operator=(const NumberFloat& from) { |
522 | 0 | CopyFrom(from); |
523 | 0 | return *this; |
524 | 0 | } |
525 | 0 | inline NumberFloat& operator=(NumberFloat&& from) noexcept { |
526 | 0 | if (this == &from) return *this; |
527 | 0 | if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { |
528 | 0 | InternalSwap(&from); |
529 | 0 | } else { |
530 | 0 | CopyFrom(from); |
531 | 0 | } |
532 | 0 | return *this; |
533 | 0 | } |
534 | | |
535 | | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const |
536 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
537 | 0 | return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); |
538 | 0 | } |
539 | | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() |
540 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
541 | 0 | return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); |
542 | 0 | } |
543 | | |
544 | 0 | static const ::google::protobuf::Descriptor* descriptor() { |
545 | 0 | return GetDescriptor(); |
546 | 0 | } |
547 | 0 | static const ::google::protobuf::Descriptor* GetDescriptor() { |
548 | 0 | return default_instance().GetMetadata().descriptor; |
549 | 0 | } |
550 | 0 | static const ::google::protobuf::Reflection* GetReflection() { |
551 | 0 | return default_instance().GetMetadata().reflection; |
552 | 0 | } |
553 | 0 | static const NumberFloat& default_instance() { |
554 | 0 | return *internal_default_instance(); |
555 | 0 | } |
556 | 0 | static inline const NumberFloat* internal_default_instance() { |
557 | 0 | return reinterpret_cast<const NumberFloat*>( |
558 | 0 | &_NumberFloat_default_instance_); |
559 | 0 | } |
560 | | static constexpr int kIndexInFileMessages = 5; |
561 | 0 | friend void swap(NumberFloat& a, NumberFloat& b) { a.Swap(&b); } |
562 | 0 | inline void Swap(NumberFloat* other) { |
563 | 0 | if (other == this) return; |
564 | 0 | if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { |
565 | 0 | InternalSwap(other); |
566 | 0 | } else { |
567 | 0 | ::google::protobuf::internal::GenericSwap(this, other); |
568 | 0 | } |
569 | 0 | } |
570 | 0 | void UnsafeArenaSwap(NumberFloat* other) { |
571 | 0 | if (other == this) return; |
572 | 0 | ABSL_DCHECK(GetArena() == other->GetArena()); |
573 | 0 | InternalSwap(other); |
574 | 0 | } |
575 | | |
576 | | // implements Message ---------------------------------------------- |
577 | | |
578 | 0 | NumberFloat* New(::google::protobuf::Arena* arena = nullptr) const { |
579 | 0 | return ::google::protobuf::Message::DefaultConstruct<NumberFloat>(arena); |
580 | 0 | } |
581 | | using ::google::protobuf::Message::CopyFrom; |
582 | | void CopyFrom(const NumberFloat& from); |
583 | | using ::google::protobuf::Message::MergeFrom; |
584 | 0 | void MergeFrom(const NumberFloat& from) { NumberFloat::MergeImpl(*this, from); } |
585 | | |
586 | | private: |
587 | | static void MergeImpl( |
588 | | ::google::protobuf::MessageLite& to_msg, |
589 | | const ::google::protobuf::MessageLite& from_msg); |
590 | | |
591 | | public: |
592 | 0 | bool IsInitialized() const { |
593 | 0 | return IsInitializedImpl(*this); |
594 | 0 | } |
595 | | |
596 | | private: |
597 | | static bool IsInitializedImpl(const MessageLite& msg); |
598 | | |
599 | | public: |
600 | | ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; |
601 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
602 | | private: |
603 | | static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); |
604 | | static ::uint8_t* _InternalSerialize( |
605 | | const MessageLite& msg, ::uint8_t* target, |
606 | | ::google::protobuf::io::EpsCopyOutputStream* stream); |
607 | | |
608 | | public: |
609 | | ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } |
610 | | ::uint8_t* _InternalSerialize( |
611 | | ::uint8_t* target, |
612 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
613 | | return _InternalSerialize(*this, target, stream); |
614 | | } |
615 | | #else // PROTOBUF_CUSTOM_VTABLE |
616 | | ::size_t ByteSizeLong() const final; |
617 | | ::uint8_t* _InternalSerialize( |
618 | | ::uint8_t* target, |
619 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const final; |
620 | | #endif // PROTOBUF_CUSTOM_VTABLE |
621 | 0 | int GetCachedSize() const { return _impl_._cached_size_.Get(); } |
622 | | |
623 | | private: |
624 | | void SharedCtor(::google::protobuf::Arena* arena); |
625 | | static void SharedDtor(MessageLite& self); |
626 | | void InternalSwap(NumberFloat* other); |
627 | | private: |
628 | | template <typename T> |
629 | | friend ::absl::string_view( |
630 | | ::google::protobuf::internal::GetAnyMessageName)(); |
631 | 0 | static ::absl::string_view FullMessageName() { return "json_proto.NumberFloat"; } |
632 | | |
633 | | protected: |
634 | | explicit NumberFloat(::google::protobuf::Arena* arena); |
635 | | NumberFloat(::google::protobuf::Arena* arena, const NumberFloat& from); |
636 | | NumberFloat(::google::protobuf::Arena* arena, NumberFloat&& from) noexcept |
637 | 0 | : NumberFloat(arena) { |
638 | 0 | *this = ::std::move(from); |
639 | 0 | } |
640 | | const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; |
641 | | static void* PlacementNew_(const void*, void* mem, |
642 | | ::google::protobuf::Arena* arena); |
643 | | static constexpr auto InternalNewImpl_(); |
644 | | static const ::google::protobuf::internal::ClassDataFull _class_data_; |
645 | | |
646 | | public: |
647 | | ::google::protobuf::Metadata GetMetadata() const; |
648 | | // nested types ---------------------------------------------------- |
649 | | |
650 | | // accessors ------------------------------------------------------- |
651 | | enum : int { |
652 | | kValueFieldNumber = 1, |
653 | | }; |
654 | | // required double value = 1; |
655 | | bool has_value() const; |
656 | | void clear_value() ; |
657 | | double value() const; |
658 | | void set_value(double value); |
659 | | |
660 | | private: |
661 | | double _internal_value() const; |
662 | | void _internal_set_value(double value); |
663 | | |
664 | | public: |
665 | | // @@protoc_insertion_point(class_scope:json_proto.NumberFloat) |
666 | | private: |
667 | | class _Internal; |
668 | | friend class ::google::protobuf::internal::TcParser; |
669 | | static const ::google::protobuf::internal::TcParseTable< |
670 | | 0, 1, 0, |
671 | | 0, 2> |
672 | | _table_; |
673 | | |
674 | | friend class ::google::protobuf::MessageLite; |
675 | | friend class ::google::protobuf::Arena; |
676 | | template <typename T> |
677 | | friend class ::google::protobuf::Arena::InternalHelper; |
678 | | using InternalArenaConstructable_ = void; |
679 | | using DestructorSkippable_ = void; |
680 | | struct Impl_ { |
681 | | inline explicit constexpr Impl_( |
682 | | ::google::protobuf::internal::ConstantInitialized) noexcept; |
683 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
684 | | ::google::protobuf::Arena* arena); |
685 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
686 | | ::google::protobuf::Arena* arena, const Impl_& from, |
687 | | const NumberFloat& from_msg); |
688 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
689 | | ::google::protobuf::internal::CachedSize _cached_size_; |
690 | | double value_; |
691 | | PROTOBUF_TSAN_DECLARE_MEMBER |
692 | | }; |
693 | | union { Impl_ _impl_; }; |
694 | | friend struct ::TableStruct_json_2eproto; |
695 | | }; |
696 | | // ------------------------------------------------------------------- |
697 | | |
698 | | class NumberExponentFrac final : public ::google::protobuf::Message |
699 | | /* @@protoc_insertion_point(class_definition:json_proto.NumberExponentFrac) */ { |
700 | | public: |
701 | 0 | inline NumberExponentFrac() : NumberExponentFrac(nullptr) {} |
702 | | ~NumberExponentFrac() PROTOBUF_FINAL; |
703 | | |
704 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
705 | | void operator delete(NumberExponentFrac* msg, std::destroying_delete_t) { |
706 | | SharedDtor(*msg); |
707 | | ::google::protobuf::internal::SizedDelete(msg, sizeof(NumberExponentFrac)); |
708 | | } |
709 | | #endif |
710 | | |
711 | | template <typename = void> |
712 | | explicit PROTOBUF_CONSTEXPR NumberExponentFrac( |
713 | | ::google::protobuf::internal::ConstantInitialized); |
714 | | |
715 | 0 | inline NumberExponentFrac(const NumberExponentFrac& from) : NumberExponentFrac(nullptr, from) {} |
716 | | inline NumberExponentFrac(NumberExponentFrac&& from) noexcept |
717 | 0 | : NumberExponentFrac(nullptr, std::move(from)) {} |
718 | 0 | inline NumberExponentFrac& operator=(const NumberExponentFrac& from) { |
719 | 0 | CopyFrom(from); |
720 | 0 | return *this; |
721 | 0 | } |
722 | 0 | inline NumberExponentFrac& operator=(NumberExponentFrac&& from) noexcept { |
723 | 0 | if (this == &from) return *this; |
724 | 0 | if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { |
725 | 0 | InternalSwap(&from); |
726 | 0 | } else { |
727 | 0 | CopyFrom(from); |
728 | 0 | } |
729 | 0 | return *this; |
730 | 0 | } |
731 | | |
732 | | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const |
733 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
734 | 0 | return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); |
735 | 0 | } |
736 | | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() |
737 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
738 | 0 | return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); |
739 | 0 | } |
740 | | |
741 | 0 | static const ::google::protobuf::Descriptor* descriptor() { |
742 | 0 | return GetDescriptor(); |
743 | 0 | } |
744 | 0 | static const ::google::protobuf::Descriptor* GetDescriptor() { |
745 | 0 | return default_instance().GetMetadata().descriptor; |
746 | 0 | } |
747 | 0 | static const ::google::protobuf::Reflection* GetReflection() { |
748 | 0 | return default_instance().GetMetadata().reflection; |
749 | 0 | } |
750 | 0 | static const NumberExponentFrac& default_instance() { |
751 | 0 | return *internal_default_instance(); |
752 | 0 | } |
753 | 0 | static inline const NumberExponentFrac* internal_default_instance() { |
754 | 0 | return reinterpret_cast<const NumberExponentFrac*>( |
755 | 0 | &_NumberExponentFrac_default_instance_); |
756 | 0 | } |
757 | | static constexpr int kIndexInFileMessages = 7; |
758 | 0 | friend void swap(NumberExponentFrac& a, NumberExponentFrac& b) { a.Swap(&b); } |
759 | 0 | inline void Swap(NumberExponentFrac* other) { |
760 | 0 | if (other == this) return; |
761 | 0 | if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { |
762 | 0 | InternalSwap(other); |
763 | 0 | } else { |
764 | 0 | ::google::protobuf::internal::GenericSwap(this, other); |
765 | 0 | } |
766 | 0 | } |
767 | 0 | void UnsafeArenaSwap(NumberExponentFrac* other) { |
768 | 0 | if (other == this) return; |
769 | 0 | ABSL_DCHECK(GetArena() == other->GetArena()); |
770 | 0 | InternalSwap(other); |
771 | 0 | } |
772 | | |
773 | | // implements Message ---------------------------------------------- |
774 | | |
775 | 0 | NumberExponentFrac* New(::google::protobuf::Arena* arena = nullptr) const { |
776 | 0 | return ::google::protobuf::Message::DefaultConstruct<NumberExponentFrac>(arena); |
777 | 0 | } |
778 | | using ::google::protobuf::Message::CopyFrom; |
779 | | void CopyFrom(const NumberExponentFrac& from); |
780 | | using ::google::protobuf::Message::MergeFrom; |
781 | 0 | void MergeFrom(const NumberExponentFrac& from) { NumberExponentFrac::MergeImpl(*this, from); } |
782 | | |
783 | | private: |
784 | | static void MergeImpl( |
785 | | ::google::protobuf::MessageLite& to_msg, |
786 | | const ::google::protobuf::MessageLite& from_msg); |
787 | | |
788 | | public: |
789 | 0 | bool IsInitialized() const { |
790 | 0 | return IsInitializedImpl(*this); |
791 | 0 | } |
792 | | |
793 | | private: |
794 | | static bool IsInitializedImpl(const MessageLite& msg); |
795 | | |
796 | | public: |
797 | | ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; |
798 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
799 | | private: |
800 | | static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); |
801 | | static ::uint8_t* _InternalSerialize( |
802 | | const MessageLite& msg, ::uint8_t* target, |
803 | | ::google::protobuf::io::EpsCopyOutputStream* stream); |
804 | | |
805 | | public: |
806 | | ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } |
807 | | ::uint8_t* _InternalSerialize( |
808 | | ::uint8_t* target, |
809 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
810 | | return _InternalSerialize(*this, target, stream); |
811 | | } |
812 | | #else // PROTOBUF_CUSTOM_VTABLE |
813 | | ::size_t ByteSizeLong() const final; |
814 | | ::uint8_t* _InternalSerialize( |
815 | | ::uint8_t* target, |
816 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const final; |
817 | | #endif // PROTOBUF_CUSTOM_VTABLE |
818 | 0 | int GetCachedSize() const { return _impl_._cached_size_.Get(); } |
819 | | |
820 | | private: |
821 | | void SharedCtor(::google::protobuf::Arena* arena); |
822 | | static void SharedDtor(MessageLite& self); |
823 | | void InternalSwap(NumberExponentFrac* other); |
824 | | private: |
825 | | template <typename T> |
826 | | friend ::absl::string_view( |
827 | | ::google::protobuf::internal::GetAnyMessageName)(); |
828 | 0 | static ::absl::string_view FullMessageName() { return "json_proto.NumberExponentFrac"; } |
829 | | |
830 | | protected: |
831 | | explicit NumberExponentFrac(::google::protobuf::Arena* arena); |
832 | | NumberExponentFrac(::google::protobuf::Arena* arena, const NumberExponentFrac& from); |
833 | | NumberExponentFrac(::google::protobuf::Arena* arena, NumberExponentFrac&& from) noexcept |
834 | 0 | : NumberExponentFrac(arena) { |
835 | 0 | *this = ::std::move(from); |
836 | 0 | } |
837 | | const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; |
838 | | static void* PlacementNew_(const void*, void* mem, |
839 | | ::google::protobuf::Arena* arena); |
840 | | static constexpr auto InternalNewImpl_(); |
841 | | static const ::google::protobuf::internal::ClassDataFull _class_data_; |
842 | | |
843 | | public: |
844 | | ::google::protobuf::Metadata GetMetadata() const; |
845 | | // nested types ---------------------------------------------------- |
846 | | |
847 | | // accessors ------------------------------------------------------- |
848 | | enum : int { |
849 | | kBaseFieldNumber = 1, |
850 | | kExponentFieldNumber = 2, |
851 | | kUseUppercaseFieldNumber = 3, |
852 | | }; |
853 | | // required float base = 1; |
854 | | bool has_base() const; |
855 | | void clear_base() ; |
856 | | float base() const; |
857 | | void set_base(float value); |
858 | | |
859 | | private: |
860 | | float _internal_base() const; |
861 | | void _internal_set_base(float value); |
862 | | |
863 | | public: |
864 | | // required int32 exponent = 2; |
865 | | bool has_exponent() const; |
866 | | void clear_exponent() ; |
867 | | ::int32_t exponent() const; |
868 | | void set_exponent(::int32_t value); |
869 | | |
870 | | private: |
871 | | ::int32_t _internal_exponent() const; |
872 | | void _internal_set_exponent(::int32_t value); |
873 | | |
874 | | public: |
875 | | // required bool use_uppercase = 3; |
876 | | bool has_use_uppercase() const; |
877 | | void clear_use_uppercase() ; |
878 | | bool use_uppercase() const; |
879 | | void set_use_uppercase(bool value); |
880 | | |
881 | | private: |
882 | | bool _internal_use_uppercase() const; |
883 | | void _internal_set_use_uppercase(bool value); |
884 | | |
885 | | public: |
886 | | // @@protoc_insertion_point(class_scope:json_proto.NumberExponentFrac) |
887 | | private: |
888 | | class _Internal; |
889 | | friend class ::google::protobuf::internal::TcParser; |
890 | | static const ::google::protobuf::internal::TcParseTable< |
891 | | 2, 3, 0, |
892 | | 0, 2> |
893 | | _table_; |
894 | | |
895 | | friend class ::google::protobuf::MessageLite; |
896 | | friend class ::google::protobuf::Arena; |
897 | | template <typename T> |
898 | | friend class ::google::protobuf::Arena::InternalHelper; |
899 | | using InternalArenaConstructable_ = void; |
900 | | using DestructorSkippable_ = void; |
901 | | struct Impl_ { |
902 | | inline explicit constexpr Impl_( |
903 | | ::google::protobuf::internal::ConstantInitialized) noexcept; |
904 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
905 | | ::google::protobuf::Arena* arena); |
906 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
907 | | ::google::protobuf::Arena* arena, const Impl_& from, |
908 | | const NumberExponentFrac& from_msg); |
909 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
910 | | ::google::protobuf::internal::CachedSize _cached_size_; |
911 | | float base_; |
912 | | ::int32_t exponent_; |
913 | | bool use_uppercase_; |
914 | | PROTOBUF_TSAN_DECLARE_MEMBER |
915 | | }; |
916 | | union { Impl_ _impl_; }; |
917 | | friend struct ::TableStruct_json_2eproto; |
918 | | }; |
919 | | // ------------------------------------------------------------------- |
920 | | |
921 | | class NumberExponent final : public ::google::protobuf::Message |
922 | | /* @@protoc_insertion_point(class_definition:json_proto.NumberExponent) */ { |
923 | | public: |
924 | 0 | inline NumberExponent() : NumberExponent(nullptr) {} |
925 | | ~NumberExponent() PROTOBUF_FINAL; |
926 | | |
927 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
928 | | void operator delete(NumberExponent* msg, std::destroying_delete_t) { |
929 | | SharedDtor(*msg); |
930 | | ::google::protobuf::internal::SizedDelete(msg, sizeof(NumberExponent)); |
931 | | } |
932 | | #endif |
933 | | |
934 | | template <typename = void> |
935 | | explicit PROTOBUF_CONSTEXPR NumberExponent( |
936 | | ::google::protobuf::internal::ConstantInitialized); |
937 | | |
938 | 547 | inline NumberExponent(const NumberExponent& from) : NumberExponent(nullptr, from) {} |
939 | | inline NumberExponent(NumberExponent&& from) noexcept |
940 | 0 | : NumberExponent(nullptr, std::move(from)) {} |
941 | 0 | inline NumberExponent& operator=(const NumberExponent& from) { |
942 | 0 | CopyFrom(from); |
943 | 0 | return *this; |
944 | 0 | } |
945 | 0 | inline NumberExponent& operator=(NumberExponent&& from) noexcept { |
946 | 0 | if (this == &from) return *this; |
947 | 0 | if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { |
948 | 0 | InternalSwap(&from); |
949 | 0 | } else { |
950 | 0 | CopyFrom(from); |
951 | 0 | } |
952 | 0 | return *this; |
953 | 0 | } |
954 | | |
955 | | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const |
956 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
957 | 0 | return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); |
958 | 0 | } |
959 | | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() |
960 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
961 | 0 | return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); |
962 | 0 | } |
963 | | |
964 | 0 | static const ::google::protobuf::Descriptor* descriptor() { |
965 | 0 | return GetDescriptor(); |
966 | 0 | } |
967 | 0 | static const ::google::protobuf::Descriptor* GetDescriptor() { |
968 | 0 | return default_instance().GetMetadata().descriptor; |
969 | 0 | } |
970 | 0 | static const ::google::protobuf::Reflection* GetReflection() { |
971 | 0 | return default_instance().GetMetadata().reflection; |
972 | 0 | } |
973 | 0 | static const NumberExponent& default_instance() { |
974 | 0 | return *internal_default_instance(); |
975 | 0 | } |
976 | 0 | static inline const NumberExponent* internal_default_instance() { |
977 | 0 | return reinterpret_cast<const NumberExponent*>( |
978 | 0 | &_NumberExponent_default_instance_); |
979 | 0 | } |
980 | | static constexpr int kIndexInFileMessages = 6; |
981 | 0 | friend void swap(NumberExponent& a, NumberExponent& b) { a.Swap(&b); } |
982 | 0 | inline void Swap(NumberExponent* other) { |
983 | 0 | if (other == this) return; |
984 | 0 | if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { |
985 | 0 | InternalSwap(other); |
986 | 0 | } else { |
987 | 0 | ::google::protobuf::internal::GenericSwap(this, other); |
988 | 0 | } |
989 | 0 | } |
990 | 0 | void UnsafeArenaSwap(NumberExponent* other) { |
991 | 0 | if (other == this) return; |
992 | 0 | ABSL_DCHECK(GetArena() == other->GetArena()); |
993 | 0 | InternalSwap(other); |
994 | 0 | } |
995 | | |
996 | | // implements Message ---------------------------------------------- |
997 | | |
998 | 0 | NumberExponent* New(::google::protobuf::Arena* arena = nullptr) const { |
999 | 0 | return ::google::protobuf::Message::DefaultConstruct<NumberExponent>(arena); |
1000 | 0 | } |
1001 | | using ::google::protobuf::Message::CopyFrom; |
1002 | | void CopyFrom(const NumberExponent& from); |
1003 | | using ::google::protobuf::Message::MergeFrom; |
1004 | 547 | void MergeFrom(const NumberExponent& from) { NumberExponent::MergeImpl(*this, from); } |
1005 | | |
1006 | | private: |
1007 | | static void MergeImpl( |
1008 | | ::google::protobuf::MessageLite& to_msg, |
1009 | | const ::google::protobuf::MessageLite& from_msg); |
1010 | | |
1011 | | public: |
1012 | 0 | bool IsInitialized() const { |
1013 | 0 | return IsInitializedImpl(*this); |
1014 | 0 | } |
1015 | | |
1016 | | private: |
1017 | | static bool IsInitializedImpl(const MessageLite& msg); |
1018 | | |
1019 | | public: |
1020 | | ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; |
1021 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1022 | | private: |
1023 | | static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); |
1024 | | static ::uint8_t* _InternalSerialize( |
1025 | | const MessageLite& msg, ::uint8_t* target, |
1026 | | ::google::protobuf::io::EpsCopyOutputStream* stream); |
1027 | | |
1028 | | public: |
1029 | | ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } |
1030 | | ::uint8_t* _InternalSerialize( |
1031 | | ::uint8_t* target, |
1032 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
1033 | | return _InternalSerialize(*this, target, stream); |
1034 | | } |
1035 | | #else // PROTOBUF_CUSTOM_VTABLE |
1036 | | ::size_t ByteSizeLong() const final; |
1037 | | ::uint8_t* _InternalSerialize( |
1038 | | ::uint8_t* target, |
1039 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const final; |
1040 | | #endif // PROTOBUF_CUSTOM_VTABLE |
1041 | 0 | int GetCachedSize() const { return _impl_._cached_size_.Get(); } |
1042 | | |
1043 | | private: |
1044 | | void SharedCtor(::google::protobuf::Arena* arena); |
1045 | | static void SharedDtor(MessageLite& self); |
1046 | | void InternalSwap(NumberExponent* other); |
1047 | | private: |
1048 | | template <typename T> |
1049 | | friend ::absl::string_view( |
1050 | | ::google::protobuf::internal::GetAnyMessageName)(); |
1051 | 0 | static ::absl::string_view FullMessageName() { return "json_proto.NumberExponent"; } |
1052 | | |
1053 | | protected: |
1054 | | explicit NumberExponent(::google::protobuf::Arena* arena); |
1055 | | NumberExponent(::google::protobuf::Arena* arena, const NumberExponent& from); |
1056 | | NumberExponent(::google::protobuf::Arena* arena, NumberExponent&& from) noexcept |
1057 | 0 | : NumberExponent(arena) { |
1058 | 0 | *this = ::std::move(from); |
1059 | 0 | } |
1060 | | const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; |
1061 | | static void* PlacementNew_(const void*, void* mem, |
1062 | | ::google::protobuf::Arena* arena); |
1063 | | static constexpr auto InternalNewImpl_(); |
1064 | | static const ::google::protobuf::internal::ClassDataFull _class_data_; |
1065 | | |
1066 | | public: |
1067 | | ::google::protobuf::Metadata GetMetadata() const; |
1068 | | // nested types ---------------------------------------------------- |
1069 | | |
1070 | | // accessors ------------------------------------------------------- |
1071 | | enum : int { |
1072 | | kBaseFieldNumber = 1, |
1073 | | kExponentFieldNumber = 2, |
1074 | | kUseUppercaseFieldNumber = 3, |
1075 | | }; |
1076 | | // required int32 base = 1; |
1077 | | bool has_base() const; |
1078 | | void clear_base() ; |
1079 | | ::int32_t base() const; |
1080 | | void set_base(::int32_t value); |
1081 | | |
1082 | | private: |
1083 | | ::int32_t _internal_base() const; |
1084 | | void _internal_set_base(::int32_t value); |
1085 | | |
1086 | | public: |
1087 | | // required int32 exponent = 2; |
1088 | | bool has_exponent() const; |
1089 | | void clear_exponent() ; |
1090 | | ::int32_t exponent() const; |
1091 | | void set_exponent(::int32_t value); |
1092 | | |
1093 | | private: |
1094 | | ::int32_t _internal_exponent() const; |
1095 | | void _internal_set_exponent(::int32_t value); |
1096 | | |
1097 | | public: |
1098 | | // required bool use_uppercase = 3; |
1099 | | bool has_use_uppercase() const; |
1100 | | void clear_use_uppercase() ; |
1101 | | bool use_uppercase() const; |
1102 | | void set_use_uppercase(bool value); |
1103 | | |
1104 | | private: |
1105 | | bool _internal_use_uppercase() const; |
1106 | | void _internal_set_use_uppercase(bool value); |
1107 | | |
1108 | | public: |
1109 | | // @@protoc_insertion_point(class_scope:json_proto.NumberExponent) |
1110 | | private: |
1111 | | class _Internal; |
1112 | | friend class ::google::protobuf::internal::TcParser; |
1113 | | static const ::google::protobuf::internal::TcParseTable< |
1114 | | 2, 3, 0, |
1115 | | 0, 2> |
1116 | | _table_; |
1117 | | |
1118 | | friend class ::google::protobuf::MessageLite; |
1119 | | friend class ::google::protobuf::Arena; |
1120 | | template <typename T> |
1121 | | friend class ::google::protobuf::Arena::InternalHelper; |
1122 | | using InternalArenaConstructable_ = void; |
1123 | | using DestructorSkippable_ = void; |
1124 | | struct Impl_ { |
1125 | | inline explicit constexpr Impl_( |
1126 | | ::google::protobuf::internal::ConstantInitialized) noexcept; |
1127 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
1128 | | ::google::protobuf::Arena* arena); |
1129 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
1130 | | ::google::protobuf::Arena* arena, const Impl_& from, |
1131 | | const NumberExponent& from_msg); |
1132 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
1133 | | ::google::protobuf::internal::CachedSize _cached_size_; |
1134 | | ::int32_t base_; |
1135 | | ::int32_t exponent_; |
1136 | | bool use_uppercase_; |
1137 | | PROTOBUF_TSAN_DECLARE_MEMBER |
1138 | | }; |
1139 | | union { Impl_ _impl_; }; |
1140 | | friend struct ::TableStruct_json_2eproto; |
1141 | | }; |
1142 | | // ------------------------------------------------------------------- |
1143 | | |
1144 | | class BooleanValue final : public ::google::protobuf::Message |
1145 | | /* @@protoc_insertion_point(class_definition:json_proto.BooleanValue) */ { |
1146 | | public: |
1147 | 0 | inline BooleanValue() : BooleanValue(nullptr) {} |
1148 | | ~BooleanValue() PROTOBUF_FINAL; |
1149 | | |
1150 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1151 | | void operator delete(BooleanValue* msg, std::destroying_delete_t) { |
1152 | | SharedDtor(*msg); |
1153 | | ::google::protobuf::internal::SizedDelete(msg, sizeof(BooleanValue)); |
1154 | | } |
1155 | | #endif |
1156 | | |
1157 | | template <typename = void> |
1158 | | explicit PROTOBUF_CONSTEXPR BooleanValue( |
1159 | | ::google::protobuf::internal::ConstantInitialized); |
1160 | | |
1161 | 0 | inline BooleanValue(const BooleanValue& from) : BooleanValue(nullptr, from) {} |
1162 | | inline BooleanValue(BooleanValue&& from) noexcept |
1163 | 0 | : BooleanValue(nullptr, std::move(from)) {} |
1164 | 0 | inline BooleanValue& operator=(const BooleanValue& from) { |
1165 | 0 | CopyFrom(from); |
1166 | 0 | return *this; |
1167 | 0 | } |
1168 | 0 | inline BooleanValue& operator=(BooleanValue&& from) noexcept { |
1169 | 0 | if (this == &from) return *this; |
1170 | 0 | if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { |
1171 | 0 | InternalSwap(&from); |
1172 | 0 | } else { |
1173 | 0 | CopyFrom(from); |
1174 | 0 | } |
1175 | 0 | return *this; |
1176 | 0 | } |
1177 | | |
1178 | | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const |
1179 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
1180 | 0 | return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); |
1181 | 0 | } |
1182 | | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() |
1183 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
1184 | 0 | return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); |
1185 | 0 | } |
1186 | | |
1187 | 0 | static const ::google::protobuf::Descriptor* descriptor() { |
1188 | 0 | return GetDescriptor(); |
1189 | 0 | } |
1190 | 0 | static const ::google::protobuf::Descriptor* GetDescriptor() { |
1191 | 0 | return default_instance().GetMetadata().descriptor; |
1192 | 0 | } |
1193 | 0 | static const ::google::protobuf::Reflection* GetReflection() { |
1194 | 0 | return default_instance().GetMetadata().reflection; |
1195 | 0 | } |
1196 | 0 | static const BooleanValue& default_instance() { |
1197 | 0 | return *internal_default_instance(); |
1198 | 0 | } |
1199 | 0 | static inline const BooleanValue* internal_default_instance() { |
1200 | 0 | return reinterpret_cast<const BooleanValue*>( |
1201 | 0 | &_BooleanValue_default_instance_); |
1202 | 0 | } |
1203 | | static constexpr int kIndexInFileMessages = 10; |
1204 | 0 | friend void swap(BooleanValue& a, BooleanValue& b) { a.Swap(&b); } |
1205 | 0 | inline void Swap(BooleanValue* other) { |
1206 | 0 | if (other == this) return; |
1207 | 0 | if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { |
1208 | 0 | InternalSwap(other); |
1209 | 0 | } else { |
1210 | 0 | ::google::protobuf::internal::GenericSwap(this, other); |
1211 | 0 | } |
1212 | 0 | } |
1213 | 0 | void UnsafeArenaSwap(BooleanValue* other) { |
1214 | 0 | if (other == this) return; |
1215 | 0 | ABSL_DCHECK(GetArena() == other->GetArena()); |
1216 | 0 | InternalSwap(other); |
1217 | 0 | } |
1218 | | |
1219 | | // implements Message ---------------------------------------------- |
1220 | | |
1221 | 0 | BooleanValue* New(::google::protobuf::Arena* arena = nullptr) const { |
1222 | 0 | return ::google::protobuf::Message::DefaultConstruct<BooleanValue>(arena); |
1223 | 0 | } |
1224 | | using ::google::protobuf::Message::CopyFrom; |
1225 | | void CopyFrom(const BooleanValue& from); |
1226 | | using ::google::protobuf::Message::MergeFrom; |
1227 | 0 | void MergeFrom(const BooleanValue& from) { BooleanValue::MergeImpl(*this, from); } |
1228 | | |
1229 | | private: |
1230 | | static void MergeImpl( |
1231 | | ::google::protobuf::MessageLite& to_msg, |
1232 | | const ::google::protobuf::MessageLite& from_msg); |
1233 | | |
1234 | | public: |
1235 | 0 | bool IsInitialized() const { |
1236 | 0 | return IsInitializedImpl(*this); |
1237 | 0 | } |
1238 | | |
1239 | | private: |
1240 | | static bool IsInitializedImpl(const MessageLite& msg); |
1241 | | |
1242 | | public: |
1243 | | ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; |
1244 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1245 | | private: |
1246 | | static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); |
1247 | | static ::uint8_t* _InternalSerialize( |
1248 | | const MessageLite& msg, ::uint8_t* target, |
1249 | | ::google::protobuf::io::EpsCopyOutputStream* stream); |
1250 | | |
1251 | | public: |
1252 | | ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } |
1253 | | ::uint8_t* _InternalSerialize( |
1254 | | ::uint8_t* target, |
1255 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
1256 | | return _InternalSerialize(*this, target, stream); |
1257 | | } |
1258 | | #else // PROTOBUF_CUSTOM_VTABLE |
1259 | | ::size_t ByteSizeLong() const final; |
1260 | | ::uint8_t* _InternalSerialize( |
1261 | | ::uint8_t* target, |
1262 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const final; |
1263 | | #endif // PROTOBUF_CUSTOM_VTABLE |
1264 | 0 | int GetCachedSize() const { return _impl_._cached_size_.Get(); } |
1265 | | |
1266 | | private: |
1267 | | void SharedCtor(::google::protobuf::Arena* arena); |
1268 | | static void SharedDtor(MessageLite& self); |
1269 | | void InternalSwap(BooleanValue* other); |
1270 | | private: |
1271 | | template <typename T> |
1272 | | friend ::absl::string_view( |
1273 | | ::google::protobuf::internal::GetAnyMessageName)(); |
1274 | 0 | static ::absl::string_view FullMessageName() { return "json_proto.BooleanValue"; } |
1275 | | |
1276 | | protected: |
1277 | | explicit BooleanValue(::google::protobuf::Arena* arena); |
1278 | | BooleanValue(::google::protobuf::Arena* arena, const BooleanValue& from); |
1279 | | BooleanValue(::google::protobuf::Arena* arena, BooleanValue&& from) noexcept |
1280 | 0 | : BooleanValue(arena) { |
1281 | 0 | *this = ::std::move(from); |
1282 | 0 | } |
1283 | | const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; |
1284 | | static void* PlacementNew_(const void*, void* mem, |
1285 | | ::google::protobuf::Arena* arena); |
1286 | | static constexpr auto InternalNewImpl_(); |
1287 | | static const ::google::protobuf::internal::ClassDataFull _class_data_; |
1288 | | |
1289 | | public: |
1290 | | ::google::protobuf::Metadata GetMetadata() const; |
1291 | | // nested types ---------------------------------------------------- |
1292 | | |
1293 | | // accessors ------------------------------------------------------- |
1294 | | enum : int { |
1295 | | kValueFieldNumber = 1, |
1296 | | }; |
1297 | | // required bool value = 1; |
1298 | | bool has_value() const; |
1299 | | void clear_value() ; |
1300 | | bool value() const; |
1301 | | void set_value(bool value); |
1302 | | |
1303 | | private: |
1304 | | bool _internal_value() const; |
1305 | | void _internal_set_value(bool value); |
1306 | | |
1307 | | public: |
1308 | | // @@protoc_insertion_point(class_scope:json_proto.BooleanValue) |
1309 | | private: |
1310 | | class _Internal; |
1311 | | friend class ::google::protobuf::internal::TcParser; |
1312 | | static const ::google::protobuf::internal::TcParseTable< |
1313 | | 0, 1, 0, |
1314 | | 0, 2> |
1315 | | _table_; |
1316 | | |
1317 | | friend class ::google::protobuf::MessageLite; |
1318 | | friend class ::google::protobuf::Arena; |
1319 | | template <typename T> |
1320 | | friend class ::google::protobuf::Arena::InternalHelper; |
1321 | | using InternalArenaConstructable_ = void; |
1322 | | using DestructorSkippable_ = void; |
1323 | | struct Impl_ { |
1324 | | inline explicit constexpr Impl_( |
1325 | | ::google::protobuf::internal::ConstantInitialized) noexcept; |
1326 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
1327 | | ::google::protobuf::Arena* arena); |
1328 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
1329 | | ::google::protobuf::Arena* arena, const Impl_& from, |
1330 | | const BooleanValue& from_msg); |
1331 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
1332 | | ::google::protobuf::internal::CachedSize _cached_size_; |
1333 | | bool value_; |
1334 | | PROTOBUF_TSAN_DECLARE_MEMBER |
1335 | | }; |
1336 | | union { Impl_ _impl_; }; |
1337 | | friend struct ::TableStruct_json_2eproto; |
1338 | | }; |
1339 | | // ------------------------------------------------------------------- |
1340 | | |
1341 | | class NumberValue final : public ::google::protobuf::Message |
1342 | | /* @@protoc_insertion_point(class_definition:json_proto.NumberValue) */ { |
1343 | | public: |
1344 | 0 | inline NumberValue() : NumberValue(nullptr) {} |
1345 | | ~NumberValue() PROTOBUF_FINAL; |
1346 | | |
1347 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1348 | | void operator delete(NumberValue* msg, std::destroying_delete_t) { |
1349 | | SharedDtor(*msg); |
1350 | | ::google::protobuf::internal::SizedDelete(msg, sizeof(NumberValue)); |
1351 | | } |
1352 | | #endif |
1353 | | |
1354 | | template <typename = void> |
1355 | | explicit PROTOBUF_CONSTEXPR NumberValue( |
1356 | | ::google::protobuf::internal::ConstantInitialized); |
1357 | | |
1358 | 0 | inline NumberValue(const NumberValue& from) : NumberValue(nullptr, from) {} |
1359 | | inline NumberValue(NumberValue&& from) noexcept |
1360 | 0 | : NumberValue(nullptr, std::move(from)) {} |
1361 | 0 | inline NumberValue& operator=(const NumberValue& from) { |
1362 | 0 | CopyFrom(from); |
1363 | 0 | return *this; |
1364 | 0 | } |
1365 | 0 | inline NumberValue& operator=(NumberValue&& from) noexcept { |
1366 | 0 | if (this == &from) return *this; |
1367 | 0 | if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { |
1368 | 0 | InternalSwap(&from); |
1369 | 0 | } else { |
1370 | 0 | CopyFrom(from); |
1371 | 0 | } |
1372 | 0 | return *this; |
1373 | 0 | } |
1374 | | |
1375 | | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const |
1376 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
1377 | 0 | return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); |
1378 | 0 | } |
1379 | | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() |
1380 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
1381 | 0 | return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); |
1382 | 0 | } |
1383 | | |
1384 | 0 | static const ::google::protobuf::Descriptor* descriptor() { |
1385 | 0 | return GetDescriptor(); |
1386 | 0 | } |
1387 | 0 | static const ::google::protobuf::Descriptor* GetDescriptor() { |
1388 | 0 | return default_instance().GetMetadata().descriptor; |
1389 | 0 | } |
1390 | 0 | static const ::google::protobuf::Reflection* GetReflection() { |
1391 | 0 | return default_instance().GetMetadata().reflection; |
1392 | 0 | } |
1393 | 0 | static const NumberValue& default_instance() { |
1394 | 0 | return *internal_default_instance(); |
1395 | 0 | } |
1396 | | enum ValueCase { |
1397 | | kFloatValue = 2, |
1398 | | kExponentValue = 3, |
1399 | | kExponentFracValue = 4, |
1400 | | VALUE_NOT_SET = 0, |
1401 | | }; |
1402 | 0 | static inline const NumberValue* internal_default_instance() { |
1403 | 0 | return reinterpret_cast<const NumberValue*>( |
1404 | 0 | &_NumberValue_default_instance_); |
1405 | 0 | } |
1406 | | static constexpr int kIndexInFileMessages = 8; |
1407 | 0 | friend void swap(NumberValue& a, NumberValue& b) { a.Swap(&b); } |
1408 | 0 | inline void Swap(NumberValue* other) { |
1409 | 0 | if (other == this) return; |
1410 | 0 | if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { |
1411 | 0 | InternalSwap(other); |
1412 | 0 | } else { |
1413 | 0 | ::google::protobuf::internal::GenericSwap(this, other); |
1414 | 0 | } |
1415 | 0 | } |
1416 | 0 | void UnsafeArenaSwap(NumberValue* other) { |
1417 | 0 | if (other == this) return; |
1418 | 0 | ABSL_DCHECK(GetArena() == other->GetArena()); |
1419 | 0 | InternalSwap(other); |
1420 | 0 | } |
1421 | | |
1422 | | // implements Message ---------------------------------------------- |
1423 | | |
1424 | 0 | NumberValue* New(::google::protobuf::Arena* arena = nullptr) const { |
1425 | 0 | return ::google::protobuf::Message::DefaultConstruct<NumberValue>(arena); |
1426 | 0 | } |
1427 | | using ::google::protobuf::Message::CopyFrom; |
1428 | | void CopyFrom(const NumberValue& from); |
1429 | | using ::google::protobuf::Message::MergeFrom; |
1430 | 0 | void MergeFrom(const NumberValue& from) { NumberValue::MergeImpl(*this, from); } |
1431 | | |
1432 | | private: |
1433 | | static void MergeImpl( |
1434 | | ::google::protobuf::MessageLite& to_msg, |
1435 | | const ::google::protobuf::MessageLite& from_msg); |
1436 | | |
1437 | | public: |
1438 | 0 | bool IsInitialized() const { |
1439 | 0 | return IsInitializedImpl(*this); |
1440 | 0 | } |
1441 | | |
1442 | | private: |
1443 | | static bool IsInitializedImpl(const MessageLite& msg); |
1444 | | |
1445 | | public: |
1446 | | ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; |
1447 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1448 | | private: |
1449 | | static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); |
1450 | | static ::uint8_t* _InternalSerialize( |
1451 | | const MessageLite& msg, ::uint8_t* target, |
1452 | | ::google::protobuf::io::EpsCopyOutputStream* stream); |
1453 | | |
1454 | | public: |
1455 | | ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } |
1456 | | ::uint8_t* _InternalSerialize( |
1457 | | ::uint8_t* target, |
1458 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
1459 | | return _InternalSerialize(*this, target, stream); |
1460 | | } |
1461 | | #else // PROTOBUF_CUSTOM_VTABLE |
1462 | | ::size_t ByteSizeLong() const final; |
1463 | | ::uint8_t* _InternalSerialize( |
1464 | | ::uint8_t* target, |
1465 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const final; |
1466 | | #endif // PROTOBUF_CUSTOM_VTABLE |
1467 | 0 | int GetCachedSize() const { return _impl_._cached_size_.Get(); } |
1468 | | |
1469 | | private: |
1470 | | void SharedCtor(::google::protobuf::Arena* arena); |
1471 | | static void SharedDtor(MessageLite& self); |
1472 | | void InternalSwap(NumberValue* other); |
1473 | | private: |
1474 | | template <typename T> |
1475 | | friend ::absl::string_view( |
1476 | | ::google::protobuf::internal::GetAnyMessageName)(); |
1477 | 0 | static ::absl::string_view FullMessageName() { return "json_proto.NumberValue"; } |
1478 | | |
1479 | | protected: |
1480 | | explicit NumberValue(::google::protobuf::Arena* arena); |
1481 | | NumberValue(::google::protobuf::Arena* arena, const NumberValue& from); |
1482 | | NumberValue(::google::protobuf::Arena* arena, NumberValue&& from) noexcept |
1483 | 0 | : NumberValue(arena) { |
1484 | 0 | *this = ::std::move(from); |
1485 | 0 | } |
1486 | | const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; |
1487 | | static void* PlacementNew_(const void*, void* mem, |
1488 | | ::google::protobuf::Arena* arena); |
1489 | | static constexpr auto InternalNewImpl_(); |
1490 | | static const ::google::protobuf::internal::ClassDataFull _class_data_; |
1491 | | |
1492 | | public: |
1493 | | ::google::protobuf::Metadata GetMetadata() const; |
1494 | | // nested types ---------------------------------------------------- |
1495 | | |
1496 | | // accessors ------------------------------------------------------- |
1497 | | enum : int { |
1498 | | kIntegerValueFieldNumber = 1, |
1499 | | kFloatValueFieldNumber = 2, |
1500 | | kExponentValueFieldNumber = 3, |
1501 | | kExponentFracValueFieldNumber = 4, |
1502 | | }; |
1503 | | // required .json_proto.NumberInteger integer_value = 1; |
1504 | | bool has_integer_value() const; |
1505 | | void clear_integer_value() ; |
1506 | | const ::json_proto::NumberInteger& integer_value() const; |
1507 | | PROTOBUF_NODISCARD ::json_proto::NumberInteger* release_integer_value(); |
1508 | | ::json_proto::NumberInteger* mutable_integer_value(); |
1509 | | void set_allocated_integer_value(::json_proto::NumberInteger* value); |
1510 | | void unsafe_arena_set_allocated_integer_value(::json_proto::NumberInteger* value); |
1511 | | ::json_proto::NumberInteger* unsafe_arena_release_integer_value(); |
1512 | | |
1513 | | private: |
1514 | | const ::json_proto::NumberInteger& _internal_integer_value() const; |
1515 | | ::json_proto::NumberInteger* _internal_mutable_integer_value(); |
1516 | | |
1517 | | public: |
1518 | | // .json_proto.NumberFloat float_value = 2; |
1519 | | bool has_float_value() const; |
1520 | | private: |
1521 | | bool _internal_has_float_value() const; |
1522 | | |
1523 | | public: |
1524 | | void clear_float_value() ; |
1525 | | const ::json_proto::NumberFloat& float_value() const; |
1526 | | PROTOBUF_NODISCARD ::json_proto::NumberFloat* release_float_value(); |
1527 | | ::json_proto::NumberFloat* mutable_float_value(); |
1528 | | void set_allocated_float_value(::json_proto::NumberFloat* value); |
1529 | | void unsafe_arena_set_allocated_float_value(::json_proto::NumberFloat* value); |
1530 | | ::json_proto::NumberFloat* unsafe_arena_release_float_value(); |
1531 | | |
1532 | | private: |
1533 | | const ::json_proto::NumberFloat& _internal_float_value() const; |
1534 | | ::json_proto::NumberFloat* _internal_mutable_float_value(); |
1535 | | |
1536 | | public: |
1537 | | // .json_proto.NumberExponent exponent_value = 3; |
1538 | | bool has_exponent_value() const; |
1539 | | private: |
1540 | | bool _internal_has_exponent_value() const; |
1541 | | |
1542 | | public: |
1543 | | void clear_exponent_value() ; |
1544 | | const ::json_proto::NumberExponent& exponent_value() const; |
1545 | | PROTOBUF_NODISCARD ::json_proto::NumberExponent* release_exponent_value(); |
1546 | | ::json_proto::NumberExponent* mutable_exponent_value(); |
1547 | | void set_allocated_exponent_value(::json_proto::NumberExponent* value); |
1548 | | void unsafe_arena_set_allocated_exponent_value(::json_proto::NumberExponent* value); |
1549 | | ::json_proto::NumberExponent* unsafe_arena_release_exponent_value(); |
1550 | | |
1551 | | private: |
1552 | | const ::json_proto::NumberExponent& _internal_exponent_value() const; |
1553 | | ::json_proto::NumberExponent* _internal_mutable_exponent_value(); |
1554 | | |
1555 | | public: |
1556 | | // .json_proto.NumberExponentFrac exponent_frac_value = 4; |
1557 | | bool has_exponent_frac_value() const; |
1558 | | private: |
1559 | | bool _internal_has_exponent_frac_value() const; |
1560 | | |
1561 | | public: |
1562 | | void clear_exponent_frac_value() ; |
1563 | | const ::json_proto::NumberExponentFrac& exponent_frac_value() const; |
1564 | | PROTOBUF_NODISCARD ::json_proto::NumberExponentFrac* release_exponent_frac_value(); |
1565 | | ::json_proto::NumberExponentFrac* mutable_exponent_frac_value(); |
1566 | | void set_allocated_exponent_frac_value(::json_proto::NumberExponentFrac* value); |
1567 | | void unsafe_arena_set_allocated_exponent_frac_value(::json_proto::NumberExponentFrac* value); |
1568 | | ::json_proto::NumberExponentFrac* unsafe_arena_release_exponent_frac_value(); |
1569 | | |
1570 | | private: |
1571 | | const ::json_proto::NumberExponentFrac& _internal_exponent_frac_value() const; |
1572 | | ::json_proto::NumberExponentFrac* _internal_mutable_exponent_frac_value(); |
1573 | | |
1574 | | public: |
1575 | | void clear_value(); |
1576 | | ValueCase value_case() const; |
1577 | | // @@protoc_insertion_point(class_scope:json_proto.NumberValue) |
1578 | | private: |
1579 | | class _Internal; |
1580 | | void set_has_float_value(); |
1581 | | void set_has_exponent_value(); |
1582 | | void set_has_exponent_frac_value(); |
1583 | | inline bool has_value() const; |
1584 | | inline void clear_has_value(); |
1585 | | friend class ::google::protobuf::internal::TcParser; |
1586 | | static const ::google::protobuf::internal::TcParseTable< |
1587 | | 0, 4, 4, |
1588 | | 0, 2> |
1589 | | _table_; |
1590 | | |
1591 | | friend class ::google::protobuf::MessageLite; |
1592 | | friend class ::google::protobuf::Arena; |
1593 | | template <typename T> |
1594 | | friend class ::google::protobuf::Arena::InternalHelper; |
1595 | | using InternalArenaConstructable_ = void; |
1596 | | using DestructorSkippable_ = void; |
1597 | | struct Impl_ { |
1598 | | inline explicit constexpr Impl_( |
1599 | | ::google::protobuf::internal::ConstantInitialized) noexcept; |
1600 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
1601 | | ::google::protobuf::Arena* arena); |
1602 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
1603 | | ::google::protobuf::Arena* arena, const Impl_& from, |
1604 | | const NumberValue& from_msg); |
1605 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
1606 | | ::google::protobuf::internal::CachedSize _cached_size_; |
1607 | | ::json_proto::NumberInteger* integer_value_; |
1608 | | union ValueUnion { |
1609 | 2.02k | constexpr ValueUnion() : _constinit_{} {} |
1610 | | ::google::protobuf::internal::ConstantInitialized _constinit_; |
1611 | | ::json_proto::NumberFloat* float_value_; |
1612 | | ::json_proto::NumberExponent* exponent_value_; |
1613 | | ::json_proto::NumberExponentFrac* exponent_frac_value_; |
1614 | | } value_; |
1615 | | ::uint32_t _oneof_case_[1]; |
1616 | | PROTOBUF_TSAN_DECLARE_MEMBER |
1617 | | }; |
1618 | | union { Impl_ _impl_; }; |
1619 | | friend struct ::TableStruct_json_2eproto; |
1620 | | }; |
1621 | | // ------------------------------------------------------------------- |
1622 | | |
1623 | | class ArrayValue final : public ::google::protobuf::Message |
1624 | | /* @@protoc_insertion_point(class_definition:json_proto.ArrayValue) */ { |
1625 | | public: |
1626 | 0 | inline ArrayValue() : ArrayValue(nullptr) {} |
1627 | | ~ArrayValue() PROTOBUF_FINAL; |
1628 | | |
1629 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1630 | | void operator delete(ArrayValue* msg, std::destroying_delete_t) { |
1631 | | SharedDtor(*msg); |
1632 | | ::google::protobuf::internal::SizedDelete(msg, sizeof(ArrayValue)); |
1633 | | } |
1634 | | #endif |
1635 | | |
1636 | | template <typename = void> |
1637 | | explicit PROTOBUF_CONSTEXPR ArrayValue( |
1638 | | ::google::protobuf::internal::ConstantInitialized); |
1639 | | |
1640 | 0 | inline ArrayValue(const ArrayValue& from) : ArrayValue(nullptr, from) {} |
1641 | | inline ArrayValue(ArrayValue&& from) noexcept |
1642 | 0 | : ArrayValue(nullptr, std::move(from)) {} |
1643 | 0 | inline ArrayValue& operator=(const ArrayValue& from) { |
1644 | 0 | CopyFrom(from); |
1645 | 0 | return *this; |
1646 | 0 | } |
1647 | 0 | inline ArrayValue& operator=(ArrayValue&& from) noexcept { |
1648 | 0 | if (this == &from) return *this; |
1649 | 0 | if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { |
1650 | 0 | InternalSwap(&from); |
1651 | 0 | } else { |
1652 | 0 | CopyFrom(from); |
1653 | 0 | } |
1654 | 0 | return *this; |
1655 | 0 | } |
1656 | | |
1657 | | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const |
1658 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
1659 | 0 | return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); |
1660 | 0 | } |
1661 | | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() |
1662 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
1663 | 0 | return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); |
1664 | 0 | } |
1665 | | |
1666 | 0 | static const ::google::protobuf::Descriptor* descriptor() { |
1667 | 0 | return GetDescriptor(); |
1668 | 0 | } |
1669 | 0 | static const ::google::protobuf::Descriptor* GetDescriptor() { |
1670 | 0 | return default_instance().GetMetadata().descriptor; |
1671 | 0 | } |
1672 | 0 | static const ::google::protobuf::Reflection* GetReflection() { |
1673 | 0 | return default_instance().GetMetadata().reflection; |
1674 | 0 | } |
1675 | 0 | static const ArrayValue& default_instance() { |
1676 | 0 | return *internal_default_instance(); |
1677 | 0 | } |
1678 | 0 | static inline const ArrayValue* internal_default_instance() { |
1679 | 0 | return reinterpret_cast<const ArrayValue*>( |
1680 | 0 | &_ArrayValue_default_instance_); |
1681 | 0 | } |
1682 | | static constexpr int kIndexInFileMessages = 3; |
1683 | 0 | friend void swap(ArrayValue& a, ArrayValue& b) { a.Swap(&b); } |
1684 | 0 | inline void Swap(ArrayValue* other) { |
1685 | 0 | if (other == this) return; |
1686 | 0 | if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { |
1687 | 0 | InternalSwap(other); |
1688 | 0 | } else { |
1689 | 0 | ::google::protobuf::internal::GenericSwap(this, other); |
1690 | 0 | } |
1691 | 0 | } |
1692 | 0 | void UnsafeArenaSwap(ArrayValue* other) { |
1693 | 0 | if (other == this) return; |
1694 | 0 | ABSL_DCHECK(GetArena() == other->GetArena()); |
1695 | 0 | InternalSwap(other); |
1696 | 0 | } |
1697 | | |
1698 | | // implements Message ---------------------------------------------- |
1699 | | |
1700 | 0 | ArrayValue* New(::google::protobuf::Arena* arena = nullptr) const { |
1701 | 0 | return ::google::protobuf::Message::DefaultConstruct<ArrayValue>(arena); |
1702 | 0 | } |
1703 | | using ::google::protobuf::Message::CopyFrom; |
1704 | | void CopyFrom(const ArrayValue& from); |
1705 | | using ::google::protobuf::Message::MergeFrom; |
1706 | 0 | void MergeFrom(const ArrayValue& from) { ArrayValue::MergeImpl(*this, from); } |
1707 | | |
1708 | | private: |
1709 | | static void MergeImpl( |
1710 | | ::google::protobuf::MessageLite& to_msg, |
1711 | | const ::google::protobuf::MessageLite& from_msg); |
1712 | | |
1713 | | public: |
1714 | 0 | bool IsInitialized() const { |
1715 | 0 | return IsInitializedImpl(*this); |
1716 | 0 | } |
1717 | | |
1718 | | private: |
1719 | | static bool IsInitializedImpl(const MessageLite& msg); |
1720 | | |
1721 | | public: |
1722 | | ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; |
1723 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1724 | | private: |
1725 | | static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); |
1726 | | static ::uint8_t* _InternalSerialize( |
1727 | | const MessageLite& msg, ::uint8_t* target, |
1728 | | ::google::protobuf::io::EpsCopyOutputStream* stream); |
1729 | | |
1730 | | public: |
1731 | | ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } |
1732 | | ::uint8_t* _InternalSerialize( |
1733 | | ::uint8_t* target, |
1734 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
1735 | | return _InternalSerialize(*this, target, stream); |
1736 | | } |
1737 | | #else // PROTOBUF_CUSTOM_VTABLE |
1738 | | ::size_t ByteSizeLong() const final; |
1739 | | ::uint8_t* _InternalSerialize( |
1740 | | ::uint8_t* target, |
1741 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const final; |
1742 | | #endif // PROTOBUF_CUSTOM_VTABLE |
1743 | 0 | int GetCachedSize() const { return _impl_._cached_size_.Get(); } |
1744 | | |
1745 | | private: |
1746 | | void SharedCtor(::google::protobuf::Arena* arena); |
1747 | | static void SharedDtor(MessageLite& self); |
1748 | | void InternalSwap(ArrayValue* other); |
1749 | | private: |
1750 | | template <typename T> |
1751 | | friend ::absl::string_view( |
1752 | | ::google::protobuf::internal::GetAnyMessageName)(); |
1753 | 0 | static ::absl::string_view FullMessageName() { return "json_proto.ArrayValue"; } |
1754 | | |
1755 | | protected: |
1756 | | explicit ArrayValue(::google::protobuf::Arena* arena); |
1757 | | ArrayValue(::google::protobuf::Arena* arena, const ArrayValue& from); |
1758 | | ArrayValue(::google::protobuf::Arena* arena, ArrayValue&& from) noexcept |
1759 | 0 | : ArrayValue(arena) { |
1760 | 0 | *this = ::std::move(from); |
1761 | 0 | } |
1762 | | const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; |
1763 | | static void* PlacementNew_(const void*, void* mem, |
1764 | | ::google::protobuf::Arena* arena); |
1765 | | static constexpr auto InternalNewImpl_(); |
1766 | | static const ::google::protobuf::internal::ClassDataFull _class_data_; |
1767 | | |
1768 | | public: |
1769 | | ::google::protobuf::Metadata GetMetadata() const; |
1770 | | // nested types ---------------------------------------------------- |
1771 | | |
1772 | | // accessors ------------------------------------------------------- |
1773 | | enum : int { |
1774 | | kValueFieldNumber = 1, |
1775 | | }; |
1776 | | // repeated .json_proto.JsonValue value = 1; |
1777 | | int value_size() const; |
1778 | | private: |
1779 | | int _internal_value_size() const; |
1780 | | |
1781 | | public: |
1782 | | void clear_value() ; |
1783 | | ::json_proto::JsonValue* mutable_value(int index); |
1784 | | ::google::protobuf::RepeatedPtrField<::json_proto::JsonValue>* mutable_value(); |
1785 | | |
1786 | | private: |
1787 | | const ::google::protobuf::RepeatedPtrField<::json_proto::JsonValue>& _internal_value() const; |
1788 | | ::google::protobuf::RepeatedPtrField<::json_proto::JsonValue>* _internal_mutable_value(); |
1789 | | public: |
1790 | | const ::json_proto::JsonValue& value(int index) const; |
1791 | | ::json_proto::JsonValue* add_value(); |
1792 | | const ::google::protobuf::RepeatedPtrField<::json_proto::JsonValue>& value() const; |
1793 | | // @@protoc_insertion_point(class_scope:json_proto.ArrayValue) |
1794 | | private: |
1795 | | class _Internal; |
1796 | | friend class ::google::protobuf::internal::TcParser; |
1797 | | static const ::google::protobuf::internal::TcParseTable< |
1798 | | 0, 1, 1, |
1799 | | 0, 2> |
1800 | | _table_; |
1801 | | |
1802 | | friend class ::google::protobuf::MessageLite; |
1803 | | friend class ::google::protobuf::Arena; |
1804 | | template <typename T> |
1805 | | friend class ::google::protobuf::Arena::InternalHelper; |
1806 | | using InternalArenaConstructable_ = void; |
1807 | | using DestructorSkippable_ = void; |
1808 | | struct Impl_ { |
1809 | | inline explicit constexpr Impl_( |
1810 | | ::google::protobuf::internal::ConstantInitialized) noexcept; |
1811 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
1812 | | ::google::protobuf::Arena* arena); |
1813 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
1814 | | ::google::protobuf::Arena* arena, const Impl_& from, |
1815 | | const ArrayValue& from_msg); |
1816 | | ::google::protobuf::RepeatedPtrField< ::json_proto::JsonValue > value_; |
1817 | | ::google::protobuf::internal::CachedSize _cached_size_; |
1818 | | PROTOBUF_TSAN_DECLARE_MEMBER |
1819 | | }; |
1820 | | union { Impl_ _impl_; }; |
1821 | | friend struct ::TableStruct_json_2eproto; |
1822 | | }; |
1823 | | // ------------------------------------------------------------------- |
1824 | | |
1825 | | class JsonObject final : public ::google::protobuf::Message |
1826 | | /* @@protoc_insertion_point(class_definition:json_proto.JsonObject) */ { |
1827 | | public: |
1828 | 0 | inline JsonObject() : JsonObject(nullptr) {} |
1829 | | ~JsonObject() PROTOBUF_FINAL; |
1830 | | |
1831 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1832 | | void operator delete(JsonObject* msg, std::destroying_delete_t) { |
1833 | | SharedDtor(*msg); |
1834 | | ::google::protobuf::internal::SizedDelete(msg, sizeof(JsonObject)); |
1835 | | } |
1836 | | #endif |
1837 | | |
1838 | | template <typename = void> |
1839 | | explicit PROTOBUF_CONSTEXPR JsonObject( |
1840 | | ::google::protobuf::internal::ConstantInitialized); |
1841 | | |
1842 | 0 | inline JsonObject(const JsonObject& from) : JsonObject(nullptr, from) {} |
1843 | | inline JsonObject(JsonObject&& from) noexcept |
1844 | 0 | : JsonObject(nullptr, std::move(from)) {} |
1845 | 0 | inline JsonObject& operator=(const JsonObject& from) { |
1846 | 0 | CopyFrom(from); |
1847 | 0 | return *this; |
1848 | 0 | } |
1849 | 0 | inline JsonObject& operator=(JsonObject&& from) noexcept { |
1850 | 0 | if (this == &from) return *this; |
1851 | 0 | if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { |
1852 | 0 | InternalSwap(&from); |
1853 | 0 | } else { |
1854 | 0 | CopyFrom(from); |
1855 | 0 | } |
1856 | 0 | return *this; |
1857 | 0 | } |
1858 | | |
1859 | | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const |
1860 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
1861 | 0 | return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); |
1862 | 0 | } |
1863 | | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() |
1864 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
1865 | 0 | return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); |
1866 | 0 | } |
1867 | | |
1868 | 0 | static const ::google::protobuf::Descriptor* descriptor() { |
1869 | 0 | return GetDescriptor(); |
1870 | 0 | } |
1871 | 0 | static const ::google::protobuf::Descriptor* GetDescriptor() { |
1872 | 0 | return default_instance().GetMetadata().descriptor; |
1873 | 0 | } |
1874 | 0 | static const ::google::protobuf::Reflection* GetReflection() { |
1875 | 0 | return default_instance().GetMetadata().reflection; |
1876 | 0 | } |
1877 | 0 | static const JsonObject& default_instance() { |
1878 | 0 | return *internal_default_instance(); |
1879 | 0 | } |
1880 | 0 | static inline const JsonObject* internal_default_instance() { |
1881 | 0 | return reinterpret_cast<const JsonObject*>( |
1882 | 0 | &_JsonObject_default_instance_); |
1883 | 0 | } |
1884 | | static constexpr int kIndexInFileMessages = 1; |
1885 | 0 | friend void swap(JsonObject& a, JsonObject& b) { a.Swap(&b); } |
1886 | 0 | inline void Swap(JsonObject* other) { |
1887 | 0 | if (other == this) return; |
1888 | 0 | if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { |
1889 | 0 | InternalSwap(other); |
1890 | 0 | } else { |
1891 | 0 | ::google::protobuf::internal::GenericSwap(this, other); |
1892 | 0 | } |
1893 | 0 | } |
1894 | 0 | void UnsafeArenaSwap(JsonObject* other) { |
1895 | 0 | if (other == this) return; |
1896 | 0 | ABSL_DCHECK(GetArena() == other->GetArena()); |
1897 | 0 | InternalSwap(other); |
1898 | 0 | } |
1899 | | |
1900 | | // implements Message ---------------------------------------------- |
1901 | | |
1902 | 0 | JsonObject* New(::google::protobuf::Arena* arena = nullptr) const { |
1903 | 0 | return ::google::protobuf::Message::DefaultConstruct<JsonObject>(arena); |
1904 | 0 | } |
1905 | | using ::google::protobuf::Message::CopyFrom; |
1906 | | void CopyFrom(const JsonObject& from); |
1907 | | using ::google::protobuf::Message::MergeFrom; |
1908 | 0 | void MergeFrom(const JsonObject& from) { JsonObject::MergeImpl(*this, from); } |
1909 | | |
1910 | | private: |
1911 | | static void MergeImpl( |
1912 | | ::google::protobuf::MessageLite& to_msg, |
1913 | | const ::google::protobuf::MessageLite& from_msg); |
1914 | | |
1915 | | public: |
1916 | 0 | bool IsInitialized() const { |
1917 | 0 | return IsInitializedImpl(*this); |
1918 | 0 | } |
1919 | | |
1920 | | private: |
1921 | | static bool IsInitializedImpl(const MessageLite& msg); |
1922 | | |
1923 | | public: |
1924 | | ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; |
1925 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
1926 | | private: |
1927 | | static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); |
1928 | | static ::uint8_t* _InternalSerialize( |
1929 | | const MessageLite& msg, ::uint8_t* target, |
1930 | | ::google::protobuf::io::EpsCopyOutputStream* stream); |
1931 | | |
1932 | | public: |
1933 | | ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } |
1934 | | ::uint8_t* _InternalSerialize( |
1935 | | ::uint8_t* target, |
1936 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
1937 | | return _InternalSerialize(*this, target, stream); |
1938 | | } |
1939 | | #else // PROTOBUF_CUSTOM_VTABLE |
1940 | | ::size_t ByteSizeLong() const final; |
1941 | | ::uint8_t* _InternalSerialize( |
1942 | | ::uint8_t* target, |
1943 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const final; |
1944 | | #endif // PROTOBUF_CUSTOM_VTABLE |
1945 | 0 | int GetCachedSize() const { return _impl_._cached_size_.Get(); } |
1946 | | |
1947 | | private: |
1948 | | void SharedCtor(::google::protobuf::Arena* arena); |
1949 | | static void SharedDtor(MessageLite& self); |
1950 | | void InternalSwap(JsonObject* other); |
1951 | | private: |
1952 | | template <typename T> |
1953 | | friend ::absl::string_view( |
1954 | | ::google::protobuf::internal::GetAnyMessageName)(); |
1955 | 0 | static ::absl::string_view FullMessageName() { return "json_proto.JsonObject"; } |
1956 | | |
1957 | | protected: |
1958 | | explicit JsonObject(::google::protobuf::Arena* arena); |
1959 | | JsonObject(::google::protobuf::Arena* arena, const JsonObject& from); |
1960 | | JsonObject(::google::protobuf::Arena* arena, JsonObject&& from) noexcept |
1961 | 0 | : JsonObject(arena) { |
1962 | 0 | *this = ::std::move(from); |
1963 | 0 | } |
1964 | | const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; |
1965 | | static void* PlacementNew_(const void*, void* mem, |
1966 | | ::google::protobuf::Arena* arena); |
1967 | | static constexpr auto InternalNewImpl_(); |
1968 | | static const ::google::protobuf::internal::ClassDataFull _class_data_; |
1969 | | |
1970 | | public: |
1971 | | ::google::protobuf::Metadata GetMetadata() const; |
1972 | | // nested types ---------------------------------------------------- |
1973 | | |
1974 | | // accessors ------------------------------------------------------- |
1975 | | enum : int { |
1976 | | kNameFieldNumber = 2, |
1977 | | kValueFieldNumber = 3, |
1978 | | kSettingsFieldNumber = 1, |
1979 | | }; |
1980 | | // required string name = 2; |
1981 | | bool has_name() const; |
1982 | | void clear_name() ; |
1983 | | const std::string& name() const; |
1984 | | template <typename Arg_ = const std::string&, typename... Args_> |
1985 | | void set_name(Arg_&& arg, Args_... args); |
1986 | | std::string* mutable_name(); |
1987 | | PROTOBUF_NODISCARD std::string* release_name(); |
1988 | | void set_allocated_name(std::string* value); |
1989 | | |
1990 | | private: |
1991 | | const std::string& _internal_name() const; |
1992 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( |
1993 | | const std::string& value); |
1994 | | std::string* _internal_mutable_name(); |
1995 | | |
1996 | | public: |
1997 | | // required .json_proto.JsonValue value = 3; |
1998 | | bool has_value() const; |
1999 | | void clear_value() ; |
2000 | | const ::json_proto::JsonValue& value() const; |
2001 | | PROTOBUF_NODISCARD ::json_proto::JsonValue* release_value(); |
2002 | | ::json_proto::JsonValue* mutable_value(); |
2003 | | void set_allocated_value(::json_proto::JsonValue* value); |
2004 | | void unsafe_arena_set_allocated_value(::json_proto::JsonValue* value); |
2005 | | ::json_proto::JsonValue* unsafe_arena_release_value(); |
2006 | | |
2007 | | private: |
2008 | | const ::json_proto::JsonValue& _internal_value() const; |
2009 | | ::json_proto::JsonValue* _internal_mutable_value(); |
2010 | | |
2011 | | public: |
2012 | | // required int32 settings = 1; |
2013 | | bool has_settings() const; |
2014 | | void clear_settings() ; |
2015 | | ::int32_t settings() const; |
2016 | | void set_settings(::int32_t value); |
2017 | | |
2018 | | private: |
2019 | | ::int32_t _internal_settings() const; |
2020 | | void _internal_set_settings(::int32_t value); |
2021 | | |
2022 | | public: |
2023 | | // @@protoc_insertion_point(class_scope:json_proto.JsonObject) |
2024 | | private: |
2025 | | class _Internal; |
2026 | | friend class ::google::protobuf::internal::TcParser; |
2027 | | static const ::google::protobuf::internal::TcParseTable< |
2028 | | 2, 3, 1, |
2029 | | 34, 2> |
2030 | | _table_; |
2031 | | |
2032 | | friend class ::google::protobuf::MessageLite; |
2033 | | friend class ::google::protobuf::Arena; |
2034 | | template <typename T> |
2035 | | friend class ::google::protobuf::Arena::InternalHelper; |
2036 | | using InternalArenaConstructable_ = void; |
2037 | | using DestructorSkippable_ = void; |
2038 | | struct Impl_ { |
2039 | | inline explicit constexpr Impl_( |
2040 | | ::google::protobuf::internal::ConstantInitialized) noexcept; |
2041 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
2042 | | ::google::protobuf::Arena* arena); |
2043 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
2044 | | ::google::protobuf::Arena* arena, const Impl_& from, |
2045 | | const JsonObject& from_msg); |
2046 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
2047 | | ::google::protobuf::internal::CachedSize _cached_size_; |
2048 | | ::google::protobuf::internal::ArenaStringPtr name_; |
2049 | | ::json_proto::JsonValue* value_; |
2050 | | ::int32_t settings_; |
2051 | | PROTOBUF_TSAN_DECLARE_MEMBER |
2052 | | }; |
2053 | | union { Impl_ _impl_; }; |
2054 | | friend struct ::TableStruct_json_2eproto; |
2055 | | }; |
2056 | | // ------------------------------------------------------------------- |
2057 | | |
2058 | | class JsonValue final : public ::google::protobuf::Message |
2059 | | /* @@protoc_insertion_point(class_definition:json_proto.JsonValue) */ { |
2060 | | public: |
2061 | 0 | inline JsonValue() : JsonValue(nullptr) {} |
2062 | | ~JsonValue() PROTOBUF_FINAL; |
2063 | | |
2064 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2065 | | void operator delete(JsonValue* msg, std::destroying_delete_t) { |
2066 | | SharedDtor(*msg); |
2067 | | ::google::protobuf::internal::SizedDelete(msg, sizeof(JsonValue)); |
2068 | | } |
2069 | | #endif |
2070 | | |
2071 | | template <typename = void> |
2072 | | explicit PROTOBUF_CONSTEXPR JsonValue( |
2073 | | ::google::protobuf::internal::ConstantInitialized); |
2074 | | |
2075 | 0 | inline JsonValue(const JsonValue& from) : JsonValue(nullptr, from) {} |
2076 | | inline JsonValue(JsonValue&& from) noexcept |
2077 | 0 | : JsonValue(nullptr, std::move(from)) {} |
2078 | 0 | inline JsonValue& operator=(const JsonValue& from) { |
2079 | 0 | CopyFrom(from); |
2080 | 0 | return *this; |
2081 | 0 | } |
2082 | 0 | inline JsonValue& operator=(JsonValue&& from) noexcept { |
2083 | 0 | if (this == &from) return *this; |
2084 | 0 | if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { |
2085 | 0 | InternalSwap(&from); |
2086 | 0 | } else { |
2087 | 0 | CopyFrom(from); |
2088 | 0 | } |
2089 | 0 | return *this; |
2090 | 0 | } |
2091 | | |
2092 | | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const |
2093 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2094 | 0 | return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); |
2095 | 0 | } |
2096 | | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() |
2097 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2098 | 0 | return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); |
2099 | 0 | } |
2100 | | |
2101 | 0 | static const ::google::protobuf::Descriptor* descriptor() { |
2102 | 0 | return GetDescriptor(); |
2103 | 0 | } |
2104 | 0 | static const ::google::protobuf::Descriptor* GetDescriptor() { |
2105 | 0 | return default_instance().GetMetadata().descriptor; |
2106 | 0 | } |
2107 | 0 | static const ::google::protobuf::Reflection* GetReflection() { |
2108 | 0 | return default_instance().GetMetadata().reflection; |
2109 | 0 | } |
2110 | 0 | static const JsonValue& default_instance() { |
2111 | 0 | return *internal_default_instance(); |
2112 | 0 | } |
2113 | | enum ValueCase { |
2114 | | kObjectValue = 1, |
2115 | | kArrayValue = 2, |
2116 | | kNumberValue = 3, |
2117 | | kStringValue = 4, |
2118 | | kBooleanValue = 5, |
2119 | | VALUE_NOT_SET = 0, |
2120 | | }; |
2121 | 0 | static inline const JsonValue* internal_default_instance() { |
2122 | 0 | return reinterpret_cast<const JsonValue*>( |
2123 | 0 | &_JsonValue_default_instance_); |
2124 | 0 | } |
2125 | | static constexpr int kIndexInFileMessages = 2; |
2126 | 0 | friend void swap(JsonValue& a, JsonValue& b) { a.Swap(&b); } |
2127 | 0 | inline void Swap(JsonValue* other) { |
2128 | 0 | if (other == this) return; |
2129 | 0 | if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { |
2130 | 0 | InternalSwap(other); |
2131 | 0 | } else { |
2132 | 0 | ::google::protobuf::internal::GenericSwap(this, other); |
2133 | 0 | } |
2134 | 0 | } |
2135 | 0 | void UnsafeArenaSwap(JsonValue* other) { |
2136 | 0 | if (other == this) return; |
2137 | 0 | ABSL_DCHECK(GetArena() == other->GetArena()); |
2138 | 0 | InternalSwap(other); |
2139 | 0 | } |
2140 | | |
2141 | | // implements Message ---------------------------------------------- |
2142 | | |
2143 | 0 | JsonValue* New(::google::protobuf::Arena* arena = nullptr) const { |
2144 | 0 | return ::google::protobuf::Message::DefaultConstruct<JsonValue>(arena); |
2145 | 0 | } |
2146 | | using ::google::protobuf::Message::CopyFrom; |
2147 | | void CopyFrom(const JsonValue& from); |
2148 | | using ::google::protobuf::Message::MergeFrom; |
2149 | 0 | void MergeFrom(const JsonValue& from) { JsonValue::MergeImpl(*this, from); } |
2150 | | |
2151 | | private: |
2152 | | static void MergeImpl( |
2153 | | ::google::protobuf::MessageLite& to_msg, |
2154 | | const ::google::protobuf::MessageLite& from_msg); |
2155 | | |
2156 | | public: |
2157 | 0 | bool IsInitialized() const { |
2158 | 0 | return IsInitializedImpl(*this); |
2159 | 0 | } |
2160 | | |
2161 | | private: |
2162 | | static bool IsInitializedImpl(const MessageLite& msg); |
2163 | | |
2164 | | public: |
2165 | | ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; |
2166 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2167 | | private: |
2168 | | static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); |
2169 | | static ::uint8_t* _InternalSerialize( |
2170 | | const MessageLite& msg, ::uint8_t* target, |
2171 | | ::google::protobuf::io::EpsCopyOutputStream* stream); |
2172 | | |
2173 | | public: |
2174 | | ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } |
2175 | | ::uint8_t* _InternalSerialize( |
2176 | | ::uint8_t* target, |
2177 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
2178 | | return _InternalSerialize(*this, target, stream); |
2179 | | } |
2180 | | #else // PROTOBUF_CUSTOM_VTABLE |
2181 | | ::size_t ByteSizeLong() const final; |
2182 | | ::uint8_t* _InternalSerialize( |
2183 | | ::uint8_t* target, |
2184 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const final; |
2185 | | #endif // PROTOBUF_CUSTOM_VTABLE |
2186 | 0 | int GetCachedSize() const { return _impl_._cached_size_.Get(); } |
2187 | | |
2188 | | private: |
2189 | | void SharedCtor(::google::protobuf::Arena* arena); |
2190 | | static void SharedDtor(MessageLite& self); |
2191 | | void InternalSwap(JsonValue* other); |
2192 | | private: |
2193 | | template <typename T> |
2194 | | friend ::absl::string_view( |
2195 | | ::google::protobuf::internal::GetAnyMessageName)(); |
2196 | 0 | static ::absl::string_view FullMessageName() { return "json_proto.JsonValue"; } |
2197 | | |
2198 | | protected: |
2199 | | explicit JsonValue(::google::protobuf::Arena* arena); |
2200 | | JsonValue(::google::protobuf::Arena* arena, const JsonValue& from); |
2201 | | JsonValue(::google::protobuf::Arena* arena, JsonValue&& from) noexcept |
2202 | 0 | : JsonValue(arena) { |
2203 | 0 | *this = ::std::move(from); |
2204 | 0 | } |
2205 | | const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; |
2206 | | static void* PlacementNew_(const void*, void* mem, |
2207 | | ::google::protobuf::Arena* arena); |
2208 | | static constexpr auto InternalNewImpl_(); |
2209 | | static const ::google::protobuf::internal::ClassDataFull _class_data_; |
2210 | | |
2211 | | public: |
2212 | | ::google::protobuf::Metadata GetMetadata() const; |
2213 | | // nested types ---------------------------------------------------- |
2214 | | |
2215 | | // accessors ------------------------------------------------------- |
2216 | | enum : int { |
2217 | | kObjectValueFieldNumber = 1, |
2218 | | kArrayValueFieldNumber = 2, |
2219 | | kNumberValueFieldNumber = 3, |
2220 | | kStringValueFieldNumber = 4, |
2221 | | kBooleanValueFieldNumber = 5, |
2222 | | }; |
2223 | | // .json_proto.JsonObject object_value = 1; |
2224 | | bool has_object_value() const; |
2225 | | private: |
2226 | | bool _internal_has_object_value() const; |
2227 | | |
2228 | | public: |
2229 | | void clear_object_value() ; |
2230 | | const ::json_proto::JsonObject& object_value() const; |
2231 | | PROTOBUF_NODISCARD ::json_proto::JsonObject* release_object_value(); |
2232 | | ::json_proto::JsonObject* mutable_object_value(); |
2233 | | void set_allocated_object_value(::json_proto::JsonObject* value); |
2234 | | void unsafe_arena_set_allocated_object_value(::json_proto::JsonObject* value); |
2235 | | ::json_proto::JsonObject* unsafe_arena_release_object_value(); |
2236 | | |
2237 | | private: |
2238 | | const ::json_proto::JsonObject& _internal_object_value() const; |
2239 | | ::json_proto::JsonObject* _internal_mutable_object_value(); |
2240 | | |
2241 | | public: |
2242 | | // .json_proto.ArrayValue array_value = 2; |
2243 | | bool has_array_value() const; |
2244 | | private: |
2245 | | bool _internal_has_array_value() const; |
2246 | | |
2247 | | public: |
2248 | | void clear_array_value() ; |
2249 | | const ::json_proto::ArrayValue& array_value() const; |
2250 | | PROTOBUF_NODISCARD ::json_proto::ArrayValue* release_array_value(); |
2251 | | ::json_proto::ArrayValue* mutable_array_value(); |
2252 | | void set_allocated_array_value(::json_proto::ArrayValue* value); |
2253 | | void unsafe_arena_set_allocated_array_value(::json_proto::ArrayValue* value); |
2254 | | ::json_proto::ArrayValue* unsafe_arena_release_array_value(); |
2255 | | |
2256 | | private: |
2257 | | const ::json_proto::ArrayValue& _internal_array_value() const; |
2258 | | ::json_proto::ArrayValue* _internal_mutable_array_value(); |
2259 | | |
2260 | | public: |
2261 | | // .json_proto.NumberValue number_value = 3; |
2262 | | bool has_number_value() const; |
2263 | | private: |
2264 | | bool _internal_has_number_value() const; |
2265 | | |
2266 | | public: |
2267 | | void clear_number_value() ; |
2268 | | const ::json_proto::NumberValue& number_value() const; |
2269 | | PROTOBUF_NODISCARD ::json_proto::NumberValue* release_number_value(); |
2270 | | ::json_proto::NumberValue* mutable_number_value(); |
2271 | | void set_allocated_number_value(::json_proto::NumberValue* value); |
2272 | | void unsafe_arena_set_allocated_number_value(::json_proto::NumberValue* value); |
2273 | | ::json_proto::NumberValue* unsafe_arena_release_number_value(); |
2274 | | |
2275 | | private: |
2276 | | const ::json_proto::NumberValue& _internal_number_value() const; |
2277 | | ::json_proto::NumberValue* _internal_mutable_number_value(); |
2278 | | |
2279 | | public: |
2280 | | // .json_proto.StringValue string_value = 4; |
2281 | | bool has_string_value() const; |
2282 | | private: |
2283 | | bool _internal_has_string_value() const; |
2284 | | |
2285 | | public: |
2286 | | void clear_string_value() ; |
2287 | | const ::json_proto::StringValue& string_value() const; |
2288 | | PROTOBUF_NODISCARD ::json_proto::StringValue* release_string_value(); |
2289 | | ::json_proto::StringValue* mutable_string_value(); |
2290 | | void set_allocated_string_value(::json_proto::StringValue* value); |
2291 | | void unsafe_arena_set_allocated_string_value(::json_proto::StringValue* value); |
2292 | | ::json_proto::StringValue* unsafe_arena_release_string_value(); |
2293 | | |
2294 | | private: |
2295 | | const ::json_proto::StringValue& _internal_string_value() const; |
2296 | | ::json_proto::StringValue* _internal_mutable_string_value(); |
2297 | | |
2298 | | public: |
2299 | | // .json_proto.BooleanValue boolean_value = 5; |
2300 | | bool has_boolean_value() const; |
2301 | | private: |
2302 | | bool _internal_has_boolean_value() const; |
2303 | | |
2304 | | public: |
2305 | | void clear_boolean_value() ; |
2306 | | const ::json_proto::BooleanValue& boolean_value() const; |
2307 | | PROTOBUF_NODISCARD ::json_proto::BooleanValue* release_boolean_value(); |
2308 | | ::json_proto::BooleanValue* mutable_boolean_value(); |
2309 | | void set_allocated_boolean_value(::json_proto::BooleanValue* value); |
2310 | | void unsafe_arena_set_allocated_boolean_value(::json_proto::BooleanValue* value); |
2311 | | ::json_proto::BooleanValue* unsafe_arena_release_boolean_value(); |
2312 | | |
2313 | | private: |
2314 | | const ::json_proto::BooleanValue& _internal_boolean_value() const; |
2315 | | ::json_proto::BooleanValue* _internal_mutable_boolean_value(); |
2316 | | |
2317 | | public: |
2318 | | void clear_value(); |
2319 | | ValueCase value_case() const; |
2320 | | // @@protoc_insertion_point(class_scope:json_proto.JsonValue) |
2321 | | private: |
2322 | | class _Internal; |
2323 | | void set_has_object_value(); |
2324 | | void set_has_array_value(); |
2325 | | void set_has_number_value(); |
2326 | | void set_has_string_value(); |
2327 | | void set_has_boolean_value(); |
2328 | | inline bool has_value() const; |
2329 | | inline void clear_has_value(); |
2330 | | friend class ::google::protobuf::internal::TcParser; |
2331 | | static const ::google::protobuf::internal::TcParseTable< |
2332 | | 0, 5, 5, |
2333 | | 0, 2> |
2334 | | _table_; |
2335 | | |
2336 | | friend class ::google::protobuf::MessageLite; |
2337 | | friend class ::google::protobuf::Arena; |
2338 | | template <typename T> |
2339 | | friend class ::google::protobuf::Arena::InternalHelper; |
2340 | | using InternalArenaConstructable_ = void; |
2341 | | using DestructorSkippable_ = void; |
2342 | | struct Impl_ { |
2343 | | inline explicit constexpr Impl_( |
2344 | | ::google::protobuf::internal::ConstantInitialized) noexcept; |
2345 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
2346 | | ::google::protobuf::Arena* arena); |
2347 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
2348 | | ::google::protobuf::Arena* arena, const Impl_& from, |
2349 | | const JsonValue& from_msg); |
2350 | | union ValueUnion { |
2351 | 14.1k | constexpr ValueUnion() : _constinit_{} {} |
2352 | | ::google::protobuf::internal::ConstantInitialized _constinit_; |
2353 | | ::json_proto::JsonObject* object_value_; |
2354 | | ::json_proto::ArrayValue* array_value_; |
2355 | | ::json_proto::NumberValue* number_value_; |
2356 | | ::json_proto::StringValue* string_value_; |
2357 | | ::json_proto::BooleanValue* boolean_value_; |
2358 | | } value_; |
2359 | | ::google::protobuf::internal::CachedSize _cached_size_; |
2360 | | ::uint32_t _oneof_case_[1]; |
2361 | | PROTOBUF_TSAN_DECLARE_MEMBER |
2362 | | }; |
2363 | | union { Impl_ _impl_; }; |
2364 | | friend struct ::TableStruct_json_2eproto; |
2365 | | }; |
2366 | | // ------------------------------------------------------------------- |
2367 | | |
2368 | | class JsonParseAPI final : public ::google::protobuf::Message |
2369 | | /* @@protoc_insertion_point(class_definition:json_proto.JsonParseAPI) */ { |
2370 | | public: |
2371 | 3.19k | inline JsonParseAPI() : JsonParseAPI(nullptr) {} |
2372 | | ~JsonParseAPI() PROTOBUF_FINAL; |
2373 | | |
2374 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2375 | | void operator delete(JsonParseAPI* msg, std::destroying_delete_t) { |
2376 | | SharedDtor(*msg); |
2377 | | ::google::protobuf::internal::SizedDelete(msg, sizeof(JsonParseAPI)); |
2378 | | } |
2379 | | #endif |
2380 | | |
2381 | | template <typename = void> |
2382 | | explicit PROTOBUF_CONSTEXPR JsonParseAPI( |
2383 | | ::google::protobuf::internal::ConstantInitialized); |
2384 | | |
2385 | 0 | inline JsonParseAPI(const JsonParseAPI& from) : JsonParseAPI(nullptr, from) {} |
2386 | | inline JsonParseAPI(JsonParseAPI&& from) noexcept |
2387 | 0 | : JsonParseAPI(nullptr, std::move(from)) {} |
2388 | 0 | inline JsonParseAPI& operator=(const JsonParseAPI& from) { |
2389 | 0 | CopyFrom(from); |
2390 | 0 | return *this; |
2391 | 0 | } |
2392 | 0 | inline JsonParseAPI& operator=(JsonParseAPI&& from) noexcept { |
2393 | 0 | if (this == &from) return *this; |
2394 | 0 | if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { |
2395 | 0 | InternalSwap(&from); |
2396 | 0 | } else { |
2397 | 0 | CopyFrom(from); |
2398 | 0 | } |
2399 | 0 | return *this; |
2400 | 0 | } |
2401 | | |
2402 | | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const |
2403 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2404 | 0 | return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); |
2405 | 0 | } |
2406 | | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() |
2407 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2408 | 0 | return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); |
2409 | 0 | } |
2410 | | |
2411 | 0 | static const ::google::protobuf::Descriptor* descriptor() { |
2412 | 0 | return GetDescriptor(); |
2413 | 0 | } |
2414 | 0 | static const ::google::protobuf::Descriptor* GetDescriptor() { |
2415 | 0 | return default_instance().GetMetadata().descriptor; |
2416 | 0 | } |
2417 | 0 | static const ::google::protobuf::Reflection* GetReflection() { |
2418 | 0 | return default_instance().GetMetadata().reflection; |
2419 | 0 | } |
2420 | 0 | static const JsonParseAPI& default_instance() { |
2421 | 0 | return *internal_default_instance(); |
2422 | 0 | } |
2423 | 0 | static inline const JsonParseAPI* internal_default_instance() { |
2424 | 0 | return reinterpret_cast<const JsonParseAPI*>( |
2425 | 0 | &_JsonParseAPI_default_instance_); |
2426 | 0 | } |
2427 | | static constexpr int kIndexInFileMessages = 0; |
2428 | 0 | friend void swap(JsonParseAPI& a, JsonParseAPI& b) { a.Swap(&b); } |
2429 | 0 | inline void Swap(JsonParseAPI* other) { |
2430 | 0 | if (other == this) return; |
2431 | 0 | if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { |
2432 | 0 | InternalSwap(other); |
2433 | 0 | } else { |
2434 | 0 | ::google::protobuf::internal::GenericSwap(this, other); |
2435 | 0 | } |
2436 | 0 | } |
2437 | 0 | void UnsafeArenaSwap(JsonParseAPI* other) { |
2438 | 0 | if (other == this) return; |
2439 | 0 | ABSL_DCHECK(GetArena() == other->GetArena()); |
2440 | 0 | InternalSwap(other); |
2441 | 0 | } |
2442 | | |
2443 | | // implements Message ---------------------------------------------- |
2444 | | |
2445 | 0 | JsonParseAPI* New(::google::protobuf::Arena* arena = nullptr) const { |
2446 | 0 | return ::google::protobuf::Message::DefaultConstruct<JsonParseAPI>(arena); |
2447 | 0 | } |
2448 | | using ::google::protobuf::Message::CopyFrom; |
2449 | | void CopyFrom(const JsonParseAPI& from); |
2450 | | using ::google::protobuf::Message::MergeFrom; |
2451 | 0 | void MergeFrom(const JsonParseAPI& from) { JsonParseAPI::MergeImpl(*this, from); } |
2452 | | |
2453 | | private: |
2454 | | static void MergeImpl( |
2455 | | ::google::protobuf::MessageLite& to_msg, |
2456 | | const ::google::protobuf::MessageLite& from_msg); |
2457 | | |
2458 | | public: |
2459 | 0 | bool IsInitialized() const { |
2460 | 0 | return IsInitializedImpl(*this); |
2461 | 0 | } |
2462 | | |
2463 | | private: |
2464 | | static bool IsInitializedImpl(const MessageLite& msg); |
2465 | | |
2466 | | public: |
2467 | | ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; |
2468 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
2469 | | private: |
2470 | | static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); |
2471 | | static ::uint8_t* _InternalSerialize( |
2472 | | const MessageLite& msg, ::uint8_t* target, |
2473 | | ::google::protobuf::io::EpsCopyOutputStream* stream); |
2474 | | |
2475 | | public: |
2476 | | ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } |
2477 | | ::uint8_t* _InternalSerialize( |
2478 | | ::uint8_t* target, |
2479 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
2480 | | return _InternalSerialize(*this, target, stream); |
2481 | | } |
2482 | | #else // PROTOBUF_CUSTOM_VTABLE |
2483 | | ::size_t ByteSizeLong() const final; |
2484 | | ::uint8_t* _InternalSerialize( |
2485 | | ::uint8_t* target, |
2486 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const final; |
2487 | | #endif // PROTOBUF_CUSTOM_VTABLE |
2488 | 0 | int GetCachedSize() const { return _impl_._cached_size_.Get(); } |
2489 | | |
2490 | | private: |
2491 | | void SharedCtor(::google::protobuf::Arena* arena); |
2492 | | static void SharedDtor(MessageLite& self); |
2493 | | void InternalSwap(JsonParseAPI* other); |
2494 | | private: |
2495 | | template <typename T> |
2496 | | friend ::absl::string_view( |
2497 | | ::google::protobuf::internal::GetAnyMessageName)(); |
2498 | 0 | static ::absl::string_view FullMessageName() { return "json_proto.JsonParseAPI"; } |
2499 | | |
2500 | | protected: |
2501 | | explicit JsonParseAPI(::google::protobuf::Arena* arena); |
2502 | | JsonParseAPI(::google::protobuf::Arena* arena, const JsonParseAPI& from); |
2503 | | JsonParseAPI(::google::protobuf::Arena* arena, JsonParseAPI&& from) noexcept |
2504 | 0 | : JsonParseAPI(arena) { |
2505 | 0 | *this = ::std::move(from); |
2506 | 0 | } |
2507 | | const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; |
2508 | | static void* PlacementNew_(const void*, void* mem, |
2509 | | ::google::protobuf::Arena* arena); |
2510 | | static constexpr auto InternalNewImpl_(); |
2511 | | static const ::google::protobuf::internal::ClassDataFull _class_data_; |
2512 | | |
2513 | | public: |
2514 | | ::google::protobuf::Metadata GetMetadata() const; |
2515 | | // nested types ---------------------------------------------------- |
2516 | | |
2517 | | // accessors ------------------------------------------------------- |
2518 | | enum : int { |
2519 | | kObjectValueFieldNumber = 2, |
2520 | | kSettingsFieldNumber = 1, |
2521 | | }; |
2522 | | // required .json_proto.JsonObject object_value = 2; |
2523 | | bool has_object_value() const; |
2524 | | void clear_object_value() ; |
2525 | | const ::json_proto::JsonObject& object_value() const; |
2526 | | PROTOBUF_NODISCARD ::json_proto::JsonObject* release_object_value(); |
2527 | | ::json_proto::JsonObject* mutable_object_value(); |
2528 | | void set_allocated_object_value(::json_proto::JsonObject* value); |
2529 | | void unsafe_arena_set_allocated_object_value(::json_proto::JsonObject* value); |
2530 | | ::json_proto::JsonObject* unsafe_arena_release_object_value(); |
2531 | | |
2532 | | private: |
2533 | | const ::json_proto::JsonObject& _internal_object_value() const; |
2534 | | ::json_proto::JsonObject* _internal_mutable_object_value(); |
2535 | | |
2536 | | public: |
2537 | | // required int32 settings = 1; |
2538 | | bool has_settings() const; |
2539 | | void clear_settings() ; |
2540 | | ::int32_t settings() const; |
2541 | | void set_settings(::int32_t value); |
2542 | | |
2543 | | private: |
2544 | | ::int32_t _internal_settings() const; |
2545 | | void _internal_set_settings(::int32_t value); |
2546 | | |
2547 | | public: |
2548 | | // @@protoc_insertion_point(class_scope:json_proto.JsonParseAPI) |
2549 | | private: |
2550 | | class _Internal; |
2551 | | friend class ::google::protobuf::internal::TcParser; |
2552 | | static const ::google::protobuf::internal::TcParseTable< |
2553 | | 1, 2, 1, |
2554 | | 0, 2> |
2555 | | _table_; |
2556 | | |
2557 | | friend class ::google::protobuf::MessageLite; |
2558 | | friend class ::google::protobuf::Arena; |
2559 | | template <typename T> |
2560 | | friend class ::google::protobuf::Arena::InternalHelper; |
2561 | | using InternalArenaConstructable_ = void; |
2562 | | using DestructorSkippable_ = void; |
2563 | | struct Impl_ { |
2564 | | inline explicit constexpr Impl_( |
2565 | | ::google::protobuf::internal::ConstantInitialized) noexcept; |
2566 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
2567 | | ::google::protobuf::Arena* arena); |
2568 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
2569 | | ::google::protobuf::Arena* arena, const Impl_& from, |
2570 | | const JsonParseAPI& from_msg); |
2571 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
2572 | | ::google::protobuf::internal::CachedSize _cached_size_; |
2573 | | ::json_proto::JsonObject* object_value_; |
2574 | | ::int32_t settings_; |
2575 | | PROTOBUF_TSAN_DECLARE_MEMBER |
2576 | | }; |
2577 | | union { Impl_ _impl_; }; |
2578 | | friend struct ::TableStruct_json_2eproto; |
2579 | | }; |
2580 | | |
2581 | | // =================================================================== |
2582 | | |
2583 | | |
2584 | | |
2585 | | |
2586 | | // =================================================================== |
2587 | | |
2588 | | |
2589 | | #ifdef __GNUC__ |
2590 | | #pragma GCC diagnostic push |
2591 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
2592 | | #endif // __GNUC__ |
2593 | | // ------------------------------------------------------------------- |
2594 | | |
2595 | | // JsonParseAPI |
2596 | | |
2597 | | // required int32 settings = 1; |
2598 | 0 | inline bool JsonParseAPI::has_settings() const { |
2599 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
2600 | 0 | return value; |
2601 | 0 | } |
2602 | 0 | inline void JsonParseAPI::clear_settings() { |
2603 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2604 | 0 | _impl_.settings_ = 0; |
2605 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
2606 | 0 | } |
2607 | 3.04k | inline ::int32_t JsonParseAPI::settings() const { |
2608 | | // @@protoc_insertion_point(field_get:json_proto.JsonParseAPI.settings) |
2609 | 3.04k | return _internal_settings(); |
2610 | 3.04k | } |
2611 | 0 | inline void JsonParseAPI::set_settings(::int32_t value) { |
2612 | 0 | _internal_set_settings(value); |
2613 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
2614 | 0 | // @@protoc_insertion_point(field_set:json_proto.JsonParseAPI.settings) |
2615 | 0 | } |
2616 | 3.04k | inline ::int32_t JsonParseAPI::_internal_settings() const { |
2617 | 3.04k | ::google::protobuf::internal::TSanRead(&_impl_); |
2618 | 3.04k | return _impl_.settings_; |
2619 | 3.04k | } |
2620 | 0 | inline void JsonParseAPI::_internal_set_settings(::int32_t value) { |
2621 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2622 | 0 | _impl_.settings_ = value; |
2623 | 0 | } |
2624 | | |
2625 | | // required .json_proto.JsonObject object_value = 2; |
2626 | 0 | inline bool JsonParseAPI::has_object_value() const { |
2627 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
2628 | 0 | PROTOBUF_ASSUME(!value || _impl_.object_value_ != nullptr); |
2629 | 0 | return value; |
2630 | 0 | } |
2631 | 0 | inline void JsonParseAPI::clear_object_value() { |
2632 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2633 | 0 | if (_impl_.object_value_ != nullptr) _impl_.object_value_->Clear(); |
2634 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
2635 | 0 | } |
2636 | 3.04k | inline const ::json_proto::JsonObject& JsonParseAPI::_internal_object_value() const { |
2637 | 3.04k | ::google::protobuf::internal::TSanRead(&_impl_); |
2638 | 3.04k | const ::json_proto::JsonObject* p = _impl_.object_value_; |
2639 | 3.04k | return p != nullptr ? *p : reinterpret_cast<const ::json_proto::JsonObject&>(::json_proto::_JsonObject_default_instance_); |
2640 | 3.04k | } |
2641 | 3.04k | inline const ::json_proto::JsonObject& JsonParseAPI::object_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2642 | | // @@protoc_insertion_point(field_get:json_proto.JsonParseAPI.object_value) |
2643 | 3.04k | return _internal_object_value(); |
2644 | 3.04k | } |
2645 | 0 | inline void JsonParseAPI::unsafe_arena_set_allocated_object_value(::json_proto::JsonObject* value) { |
2646 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2647 | 0 | if (GetArena() == nullptr) { |
2648 | 0 | delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.object_value_); |
2649 | 0 | } |
2650 | 0 | _impl_.object_value_ = reinterpret_cast<::json_proto::JsonObject*>(value); |
2651 | 0 | if (value != nullptr) { |
2652 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
2653 | 0 | } else { |
2654 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
2655 | 0 | } |
2656 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:json_proto.JsonParseAPI.object_value) |
2657 | 0 | } |
2658 | 0 | inline ::json_proto::JsonObject* JsonParseAPI::release_object_value() { |
2659 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2660 | 0 |
|
2661 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
2662 | 0 | ::json_proto::JsonObject* released = _impl_.object_value_; |
2663 | 0 | _impl_.object_value_ = nullptr; |
2664 | 0 | if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { |
2665 | 0 | auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); |
2666 | 0 | released = ::google::protobuf::internal::DuplicateIfNonNull(released); |
2667 | 0 | if (GetArena() == nullptr) { |
2668 | 0 | delete old; |
2669 | 0 | } |
2670 | 0 | } else { |
2671 | 0 | if (GetArena() != nullptr) { |
2672 | 0 | released = ::google::protobuf::internal::DuplicateIfNonNull(released); |
2673 | 0 | } |
2674 | 0 | } |
2675 | 0 | return released; |
2676 | 0 | } |
2677 | 0 | inline ::json_proto::JsonObject* JsonParseAPI::unsafe_arena_release_object_value() { |
2678 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2679 | 0 | // @@protoc_insertion_point(field_release:json_proto.JsonParseAPI.object_value) |
2680 | 0 |
|
2681 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
2682 | 0 | ::json_proto::JsonObject* temp = _impl_.object_value_; |
2683 | 0 | _impl_.object_value_ = nullptr; |
2684 | 0 | return temp; |
2685 | 0 | } |
2686 | 0 | inline ::json_proto::JsonObject* JsonParseAPI::_internal_mutable_object_value() { |
2687 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2688 | 0 | if (_impl_.object_value_ == nullptr) { |
2689 | 0 | auto* p = ::google::protobuf::Message::DefaultConstruct<::json_proto::JsonObject>(GetArena()); |
2690 | 0 | _impl_.object_value_ = reinterpret_cast<::json_proto::JsonObject*>(p); |
2691 | 0 | } |
2692 | 0 | return _impl_.object_value_; |
2693 | 0 | } |
2694 | 0 | inline ::json_proto::JsonObject* JsonParseAPI::mutable_object_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2695 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
2696 | 0 | ::json_proto::JsonObject* _msg = _internal_mutable_object_value(); |
2697 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.JsonParseAPI.object_value) |
2698 | 0 | return _msg; |
2699 | 0 | } |
2700 | 0 | inline void JsonParseAPI::set_allocated_object_value(::json_proto::JsonObject* value) { |
2701 | 0 | ::google::protobuf::Arena* message_arena = GetArena(); |
2702 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2703 | 0 | if (message_arena == nullptr) { |
2704 | 0 | delete (_impl_.object_value_); |
2705 | 0 | } |
2706 | 0 |
|
2707 | 0 | if (value != nullptr) { |
2708 | 0 | ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); |
2709 | 0 | if (message_arena != submessage_arena) { |
2710 | 0 | value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); |
2711 | 0 | } |
2712 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
2713 | 0 | } else { |
2714 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
2715 | 0 | } |
2716 | 0 |
|
2717 | 0 | _impl_.object_value_ = reinterpret_cast<::json_proto::JsonObject*>(value); |
2718 | 0 | // @@protoc_insertion_point(field_set_allocated:json_proto.JsonParseAPI.object_value) |
2719 | 0 | } |
2720 | | |
2721 | | // ------------------------------------------------------------------- |
2722 | | |
2723 | | // JsonObject |
2724 | | |
2725 | | // required int32 settings = 1; |
2726 | 0 | inline bool JsonObject::has_settings() const { |
2727 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
2728 | 0 | return value; |
2729 | 0 | } |
2730 | 0 | inline void JsonObject::clear_settings() { |
2731 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2732 | 0 | _impl_.settings_ = 0; |
2733 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
2734 | 0 | } |
2735 | 0 | inline ::int32_t JsonObject::settings() const { |
2736 | 0 | // @@protoc_insertion_point(field_get:json_proto.JsonObject.settings) |
2737 | 0 | return _internal_settings(); |
2738 | 0 | } |
2739 | 0 | inline void JsonObject::set_settings(::int32_t value) { |
2740 | 0 | _internal_set_settings(value); |
2741 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
2742 | 0 | // @@protoc_insertion_point(field_set:json_proto.JsonObject.settings) |
2743 | 0 | } |
2744 | 0 | inline ::int32_t JsonObject::_internal_settings() const { |
2745 | 0 | ::google::protobuf::internal::TSanRead(&_impl_); |
2746 | 0 | return _impl_.settings_; |
2747 | 0 | } |
2748 | 0 | inline void JsonObject::_internal_set_settings(::int32_t value) { |
2749 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2750 | 0 | _impl_.settings_ = value; |
2751 | 0 | } |
2752 | | |
2753 | | // required string name = 2; |
2754 | 0 | inline bool JsonObject::has_name() const { |
2755 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
2756 | 0 | return value; |
2757 | 0 | } |
2758 | 0 | inline void JsonObject::clear_name() { |
2759 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2760 | 0 | _impl_.name_.ClearToEmpty(); |
2761 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
2762 | 0 | } |
2763 | | inline const std::string& JsonObject::name() const |
2764 | 4.12k | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2765 | | // @@protoc_insertion_point(field_get:json_proto.JsonObject.name) |
2766 | 4.12k | return _internal_name(); |
2767 | 4.12k | } |
2768 | | template <typename Arg_, typename... Args_> |
2769 | | inline PROTOBUF_ALWAYS_INLINE void JsonObject::set_name(Arg_&& arg, |
2770 | | Args_... args) { |
2771 | | ::google::protobuf::internal::TSanWrite(&_impl_); |
2772 | | _impl_._has_bits_[0] |= 0x00000001u; |
2773 | | _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); |
2774 | | // @@protoc_insertion_point(field_set:json_proto.JsonObject.name) |
2775 | | } |
2776 | 0 | inline std::string* JsonObject::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2777 | 0 | std::string* _s = _internal_mutable_name(); |
2778 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.JsonObject.name) |
2779 | 0 | return _s; |
2780 | 0 | } |
2781 | 4.12k | inline const std::string& JsonObject::_internal_name() const { |
2782 | 4.12k | ::google::protobuf::internal::TSanRead(&_impl_); |
2783 | 4.12k | return _impl_.name_.Get(); |
2784 | 4.12k | } |
2785 | 0 | inline void JsonObject::_internal_set_name(const std::string& value) { |
2786 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2787 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
2788 | 0 | _impl_.name_.Set(value, GetArena()); |
2789 | 0 | } |
2790 | 0 | inline std::string* JsonObject::_internal_mutable_name() { |
2791 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2792 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
2793 | 0 | return _impl_.name_.Mutable( GetArena()); |
2794 | 0 | } |
2795 | 0 | inline std::string* JsonObject::release_name() { |
2796 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2797 | 0 | // @@protoc_insertion_point(field_release:json_proto.JsonObject.name) |
2798 | 0 | if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { |
2799 | 0 | return nullptr; |
2800 | 0 | } |
2801 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
2802 | 0 | auto* released = _impl_.name_.Release(); |
2803 | 0 | if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { |
2804 | 0 | _impl_.name_.Set("", GetArena()); |
2805 | 0 | } |
2806 | 0 | return released; |
2807 | 0 | } |
2808 | 0 | inline void JsonObject::set_allocated_name(std::string* value) { |
2809 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2810 | 0 | if (value != nullptr) { |
2811 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
2812 | 0 | } else { |
2813 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
2814 | 0 | } |
2815 | 0 | _impl_.name_.SetAllocated(value, GetArena()); |
2816 | 0 | if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { |
2817 | 0 | _impl_.name_.Set("", GetArena()); |
2818 | 0 | } |
2819 | 0 | // @@protoc_insertion_point(field_set_allocated:json_proto.JsonObject.name) |
2820 | 0 | } |
2821 | | |
2822 | | // required .json_proto.JsonValue value = 3; |
2823 | 0 | inline bool JsonObject::has_value() const { |
2824 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
2825 | 0 | PROTOBUF_ASSUME(!value || _impl_.value_ != nullptr); |
2826 | 0 | return value; |
2827 | 0 | } |
2828 | 0 | inline void JsonObject::clear_value() { |
2829 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2830 | 0 | if (_impl_.value_ != nullptr) _impl_.value_->Clear(); |
2831 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
2832 | 0 | } |
2833 | 4.12k | inline const ::json_proto::JsonValue& JsonObject::_internal_value() const { |
2834 | 4.12k | ::google::protobuf::internal::TSanRead(&_impl_); |
2835 | 4.12k | const ::json_proto::JsonValue* p = _impl_.value_; |
2836 | 4.12k | return p != nullptr ? *p : reinterpret_cast<const ::json_proto::JsonValue&>(::json_proto::_JsonValue_default_instance_); |
2837 | 4.12k | } |
2838 | 4.12k | inline const ::json_proto::JsonValue& JsonObject::value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2839 | | // @@protoc_insertion_point(field_get:json_proto.JsonObject.value) |
2840 | 4.12k | return _internal_value(); |
2841 | 4.12k | } |
2842 | 0 | inline void JsonObject::unsafe_arena_set_allocated_value(::json_proto::JsonValue* value) { |
2843 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2844 | 0 | if (GetArena() == nullptr) { |
2845 | 0 | delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.value_); |
2846 | 0 | } |
2847 | 0 | _impl_.value_ = reinterpret_cast<::json_proto::JsonValue*>(value); |
2848 | 0 | if (value != nullptr) { |
2849 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
2850 | 0 | } else { |
2851 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
2852 | 0 | } |
2853 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:json_proto.JsonObject.value) |
2854 | 0 | } |
2855 | 0 | inline ::json_proto::JsonValue* JsonObject::release_value() { |
2856 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2857 | 0 |
|
2858 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
2859 | 0 | ::json_proto::JsonValue* released = _impl_.value_; |
2860 | 0 | _impl_.value_ = nullptr; |
2861 | 0 | if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { |
2862 | 0 | auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); |
2863 | 0 | released = ::google::protobuf::internal::DuplicateIfNonNull(released); |
2864 | 0 | if (GetArena() == nullptr) { |
2865 | 0 | delete old; |
2866 | 0 | } |
2867 | 0 | } else { |
2868 | 0 | if (GetArena() != nullptr) { |
2869 | 0 | released = ::google::protobuf::internal::DuplicateIfNonNull(released); |
2870 | 0 | } |
2871 | 0 | } |
2872 | 0 | return released; |
2873 | 0 | } |
2874 | 0 | inline ::json_proto::JsonValue* JsonObject::unsafe_arena_release_value() { |
2875 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2876 | 0 | // @@protoc_insertion_point(field_release:json_proto.JsonObject.value) |
2877 | 0 |
|
2878 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
2879 | 0 | ::json_proto::JsonValue* temp = _impl_.value_; |
2880 | 0 | _impl_.value_ = nullptr; |
2881 | 0 | return temp; |
2882 | 0 | } |
2883 | 0 | inline ::json_proto::JsonValue* JsonObject::_internal_mutable_value() { |
2884 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2885 | 0 | if (_impl_.value_ == nullptr) { |
2886 | 0 | auto* p = ::google::protobuf::Message::DefaultConstruct<::json_proto::JsonValue>(GetArena()); |
2887 | 0 | _impl_.value_ = reinterpret_cast<::json_proto::JsonValue*>(p); |
2888 | 0 | } |
2889 | 0 | return _impl_.value_; |
2890 | 0 | } |
2891 | 0 | inline ::json_proto::JsonValue* JsonObject::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2892 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
2893 | 0 | ::json_proto::JsonValue* _msg = _internal_mutable_value(); |
2894 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.JsonObject.value) |
2895 | 0 | return _msg; |
2896 | 0 | } |
2897 | 0 | inline void JsonObject::set_allocated_value(::json_proto::JsonValue* value) { |
2898 | 0 | ::google::protobuf::Arena* message_arena = GetArena(); |
2899 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2900 | 0 | if (message_arena == nullptr) { |
2901 | 0 | delete (_impl_.value_); |
2902 | 0 | } |
2903 | 0 |
|
2904 | 0 | if (value != nullptr) { |
2905 | 0 | ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); |
2906 | 0 | if (message_arena != submessage_arena) { |
2907 | 0 | value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); |
2908 | 0 | } |
2909 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
2910 | 0 | } else { |
2911 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
2912 | 0 | } |
2913 | 0 |
|
2914 | 0 | _impl_.value_ = reinterpret_cast<::json_proto::JsonValue*>(value); |
2915 | 0 | // @@protoc_insertion_point(field_set_allocated:json_proto.JsonObject.value) |
2916 | 0 | } |
2917 | | |
2918 | | // ------------------------------------------------------------------- |
2919 | | |
2920 | | // JsonValue |
2921 | | |
2922 | | // .json_proto.JsonObject object_value = 1; |
2923 | 10.1k | inline bool JsonValue::has_object_value() const { |
2924 | 10.1k | return value_case() == kObjectValue; |
2925 | 10.1k | } |
2926 | 0 | inline bool JsonValue::_internal_has_object_value() const { |
2927 | 0 | return value_case() == kObjectValue; |
2928 | 0 | } |
2929 | 0 | inline void JsonValue::set_has_object_value() { |
2930 | 0 | _impl_._oneof_case_[0] = kObjectValue; |
2931 | 0 | } |
2932 | 0 | inline void JsonValue::clear_object_value() { |
2933 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
2934 | 0 | if (value_case() == kObjectValue) { |
2935 | 0 | if (GetArena() == nullptr) { |
2936 | 0 | delete _impl_.value_.object_value_; |
2937 | 0 | } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { |
2938 | 0 | ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.value_.object_value_); |
2939 | 0 | } |
2940 | 0 | clear_has_value(); |
2941 | 0 | } |
2942 | 0 | } |
2943 | 0 | inline ::json_proto::JsonObject* JsonValue::release_object_value() { |
2944 | 0 | // @@protoc_insertion_point(field_release:json_proto.JsonValue.object_value) |
2945 | 0 | if (value_case() == kObjectValue) { |
2946 | 0 | clear_has_value(); |
2947 | 0 | auto* temp = _impl_.value_.object_value_; |
2948 | 0 | if (GetArena() != nullptr) { |
2949 | 0 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); |
2950 | 0 | } |
2951 | 0 | _impl_.value_.object_value_ = nullptr; |
2952 | 0 | return temp; |
2953 | 0 | } else { |
2954 | 0 | return nullptr; |
2955 | 0 | } |
2956 | 0 | } |
2957 | 1.08k | inline const ::json_proto::JsonObject& JsonValue::_internal_object_value() const { |
2958 | 1.08k | return value_case() == kObjectValue ? *_impl_.value_.object_value_ : reinterpret_cast<::json_proto::JsonObject&>(::json_proto::_JsonObject_default_instance_); |
2959 | 1.08k | } |
2960 | 1.08k | inline const ::json_proto::JsonObject& JsonValue::object_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2961 | | // @@protoc_insertion_point(field_get:json_proto.JsonValue.object_value) |
2962 | 1.08k | return _internal_object_value(); |
2963 | 1.08k | } |
2964 | 0 | inline ::json_proto::JsonObject* JsonValue::unsafe_arena_release_object_value() { |
2965 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:json_proto.JsonValue.object_value) |
2966 | 0 | if (value_case() == kObjectValue) { |
2967 | 0 | clear_has_value(); |
2968 | 0 | auto* temp = _impl_.value_.object_value_; |
2969 | 0 | _impl_.value_.object_value_ = nullptr; |
2970 | 0 | return temp; |
2971 | 0 | } else { |
2972 | 0 | return nullptr; |
2973 | 0 | } |
2974 | 0 | } |
2975 | 0 | inline void JsonValue::unsafe_arena_set_allocated_object_value(::json_proto::JsonObject* value) { |
2976 | 0 | // We rely on the oneof clear method to free the earlier contents |
2977 | 0 | // of this oneof. We can directly use the pointer we're given to |
2978 | 0 | // set the new value. |
2979 | 0 | clear_value(); |
2980 | 0 | if (value) { |
2981 | 0 | set_has_object_value(); |
2982 | 0 | _impl_.value_.object_value_ = value; |
2983 | 0 | } |
2984 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:json_proto.JsonValue.object_value) |
2985 | 0 | } |
2986 | 0 | inline ::json_proto::JsonObject* JsonValue::_internal_mutable_object_value() { |
2987 | 0 | if (value_case() != kObjectValue) { |
2988 | 0 | clear_value(); |
2989 | 0 | set_has_object_value(); |
2990 | 0 | _impl_.value_.object_value_ = |
2991 | 0 | ::google::protobuf::Message::DefaultConstruct<::json_proto::JsonObject>(GetArena()); |
2992 | 0 | } |
2993 | 0 | return _impl_.value_.object_value_; |
2994 | 0 | } |
2995 | 0 | inline ::json_proto::JsonObject* JsonValue::mutable_object_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
2996 | 0 | ::json_proto::JsonObject* _msg = _internal_mutable_object_value(); |
2997 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.JsonValue.object_value) |
2998 | 0 | return _msg; |
2999 | 0 | } |
3000 | | |
3001 | | // .json_proto.ArrayValue array_value = 2; |
3002 | 9.07k | inline bool JsonValue::has_array_value() const { |
3003 | 9.07k | return value_case() == kArrayValue; |
3004 | 9.07k | } |
3005 | 0 | inline bool JsonValue::_internal_has_array_value() const { |
3006 | 0 | return value_case() == kArrayValue; |
3007 | 0 | } |
3008 | 0 | inline void JsonValue::set_has_array_value() { |
3009 | 0 | _impl_._oneof_case_[0] = kArrayValue; |
3010 | 0 | } |
3011 | 0 | inline void JsonValue::clear_array_value() { |
3012 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3013 | 0 | if (value_case() == kArrayValue) { |
3014 | 0 | if (GetArena() == nullptr) { |
3015 | 0 | delete _impl_.value_.array_value_; |
3016 | 0 | } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { |
3017 | 0 | ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.value_.array_value_); |
3018 | 0 | } |
3019 | 0 | clear_has_value(); |
3020 | 0 | } |
3021 | 0 | } |
3022 | 0 | inline ::json_proto::ArrayValue* JsonValue::release_array_value() { |
3023 | 0 | // @@protoc_insertion_point(field_release:json_proto.JsonValue.array_value) |
3024 | 0 | if (value_case() == kArrayValue) { |
3025 | 0 | clear_has_value(); |
3026 | 0 | auto* temp = _impl_.value_.array_value_; |
3027 | 0 | if (GetArena() != nullptr) { |
3028 | 0 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); |
3029 | 0 | } |
3030 | 0 | _impl_.value_.array_value_ = nullptr; |
3031 | 0 | return temp; |
3032 | 0 | } else { |
3033 | 0 | return nullptr; |
3034 | 0 | } |
3035 | 0 | } |
3036 | 1.30k | inline const ::json_proto::ArrayValue& JsonValue::_internal_array_value() const { |
3037 | 1.30k | return value_case() == kArrayValue ? *_impl_.value_.array_value_ : reinterpret_cast<::json_proto::ArrayValue&>(::json_proto::_ArrayValue_default_instance_); |
3038 | 1.30k | } |
3039 | 1.30k | inline const ::json_proto::ArrayValue& JsonValue::array_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { |
3040 | | // @@protoc_insertion_point(field_get:json_proto.JsonValue.array_value) |
3041 | 1.30k | return _internal_array_value(); |
3042 | 1.30k | } |
3043 | 0 | inline ::json_proto::ArrayValue* JsonValue::unsafe_arena_release_array_value() { |
3044 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:json_proto.JsonValue.array_value) |
3045 | 0 | if (value_case() == kArrayValue) { |
3046 | 0 | clear_has_value(); |
3047 | 0 | auto* temp = _impl_.value_.array_value_; |
3048 | 0 | _impl_.value_.array_value_ = nullptr; |
3049 | 0 | return temp; |
3050 | 0 | } else { |
3051 | 0 | return nullptr; |
3052 | 0 | } |
3053 | 0 | } |
3054 | 0 | inline void JsonValue::unsafe_arena_set_allocated_array_value(::json_proto::ArrayValue* value) { |
3055 | 0 | // We rely on the oneof clear method to free the earlier contents |
3056 | 0 | // of this oneof. We can directly use the pointer we're given to |
3057 | 0 | // set the new value. |
3058 | 0 | clear_value(); |
3059 | 0 | if (value) { |
3060 | 0 | set_has_array_value(); |
3061 | 0 | _impl_.value_.array_value_ = value; |
3062 | 0 | } |
3063 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:json_proto.JsonValue.array_value) |
3064 | 0 | } |
3065 | 0 | inline ::json_proto::ArrayValue* JsonValue::_internal_mutable_array_value() { |
3066 | 0 | if (value_case() != kArrayValue) { |
3067 | 0 | clear_value(); |
3068 | 0 | set_has_array_value(); |
3069 | 0 | _impl_.value_.array_value_ = |
3070 | 0 | ::google::protobuf::Message::DefaultConstruct<::json_proto::ArrayValue>(GetArena()); |
3071 | 0 | } |
3072 | 0 | return _impl_.value_.array_value_; |
3073 | 0 | } |
3074 | 0 | inline ::json_proto::ArrayValue* JsonValue::mutable_array_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
3075 | 0 | ::json_proto::ArrayValue* _msg = _internal_mutable_array_value(); |
3076 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.JsonValue.array_value) |
3077 | 0 | return _msg; |
3078 | 0 | } |
3079 | | |
3080 | | // .json_proto.NumberValue number_value = 3; |
3081 | 7.77k | inline bool JsonValue::has_number_value() const { |
3082 | 7.77k | return value_case() == kNumberValue; |
3083 | 7.77k | } |
3084 | 0 | inline bool JsonValue::_internal_has_number_value() const { |
3085 | 0 | return value_case() == kNumberValue; |
3086 | 0 | } |
3087 | 0 | inline void JsonValue::set_has_number_value() { |
3088 | 0 | _impl_._oneof_case_[0] = kNumberValue; |
3089 | 0 | } |
3090 | 0 | inline void JsonValue::clear_number_value() { |
3091 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3092 | 0 | if (value_case() == kNumberValue) { |
3093 | 0 | if (GetArena() == nullptr) { |
3094 | 0 | delete _impl_.value_.number_value_; |
3095 | 0 | } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { |
3096 | 0 | ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.value_.number_value_); |
3097 | 0 | } |
3098 | 0 | clear_has_value(); |
3099 | 0 | } |
3100 | 0 | } |
3101 | 0 | inline ::json_proto::NumberValue* JsonValue::release_number_value() { |
3102 | 0 | // @@protoc_insertion_point(field_release:json_proto.JsonValue.number_value) |
3103 | 0 | if (value_case() == kNumberValue) { |
3104 | 0 | clear_has_value(); |
3105 | 0 | auto* temp = _impl_.value_.number_value_; |
3106 | 0 | if (GetArena() != nullptr) { |
3107 | 0 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); |
3108 | 0 | } |
3109 | 0 | _impl_.value_.number_value_ = nullptr; |
3110 | 0 | return temp; |
3111 | 0 | } else { |
3112 | 0 | return nullptr; |
3113 | 0 | } |
3114 | 0 | } |
3115 | 1.28k | inline const ::json_proto::NumberValue& JsonValue::_internal_number_value() const { |
3116 | 1.28k | return value_case() == kNumberValue ? *_impl_.value_.number_value_ : reinterpret_cast<::json_proto::NumberValue&>(::json_proto::_NumberValue_default_instance_); |
3117 | 1.28k | } |
3118 | 1.28k | inline const ::json_proto::NumberValue& JsonValue::number_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { |
3119 | | // @@protoc_insertion_point(field_get:json_proto.JsonValue.number_value) |
3120 | 1.28k | return _internal_number_value(); |
3121 | 1.28k | } |
3122 | 0 | inline ::json_proto::NumberValue* JsonValue::unsafe_arena_release_number_value() { |
3123 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:json_proto.JsonValue.number_value) |
3124 | 0 | if (value_case() == kNumberValue) { |
3125 | 0 | clear_has_value(); |
3126 | 0 | auto* temp = _impl_.value_.number_value_; |
3127 | 0 | _impl_.value_.number_value_ = nullptr; |
3128 | 0 | return temp; |
3129 | 0 | } else { |
3130 | 0 | return nullptr; |
3131 | 0 | } |
3132 | 0 | } |
3133 | 0 | inline void JsonValue::unsafe_arena_set_allocated_number_value(::json_proto::NumberValue* value) { |
3134 | 0 | // We rely on the oneof clear method to free the earlier contents |
3135 | 0 | // of this oneof. We can directly use the pointer we're given to |
3136 | 0 | // set the new value. |
3137 | 0 | clear_value(); |
3138 | 0 | if (value) { |
3139 | 0 | set_has_number_value(); |
3140 | 0 | _impl_.value_.number_value_ = value; |
3141 | 0 | } |
3142 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:json_proto.JsonValue.number_value) |
3143 | 0 | } |
3144 | 0 | inline ::json_proto::NumberValue* JsonValue::_internal_mutable_number_value() { |
3145 | 0 | if (value_case() != kNumberValue) { |
3146 | 0 | clear_value(); |
3147 | 0 | set_has_number_value(); |
3148 | 0 | _impl_.value_.number_value_ = |
3149 | 0 | ::google::protobuf::Message::DefaultConstruct<::json_proto::NumberValue>(GetArena()); |
3150 | 0 | } |
3151 | 0 | return _impl_.value_.number_value_; |
3152 | 0 | } |
3153 | 0 | inline ::json_proto::NumberValue* JsonValue::mutable_number_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
3154 | 0 | ::json_proto::NumberValue* _msg = _internal_mutable_number_value(); |
3155 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.JsonValue.number_value) |
3156 | 0 | return _msg; |
3157 | 0 | } |
3158 | | |
3159 | | // .json_proto.StringValue string_value = 4; |
3160 | 6.49k | inline bool JsonValue::has_string_value() const { |
3161 | 6.49k | return value_case() == kStringValue; |
3162 | 6.49k | } |
3163 | 0 | inline bool JsonValue::_internal_has_string_value() const { |
3164 | 0 | return value_case() == kStringValue; |
3165 | 0 | } |
3166 | 0 | inline void JsonValue::set_has_string_value() { |
3167 | 0 | _impl_._oneof_case_[0] = kStringValue; |
3168 | 0 | } |
3169 | 0 | inline void JsonValue::clear_string_value() { |
3170 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3171 | 0 | if (value_case() == kStringValue) { |
3172 | 0 | if (GetArena() == nullptr) { |
3173 | 0 | delete _impl_.value_.string_value_; |
3174 | 0 | } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { |
3175 | 0 | ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.value_.string_value_); |
3176 | 0 | } |
3177 | 0 | clear_has_value(); |
3178 | 0 | } |
3179 | 0 | } |
3180 | 0 | inline ::json_proto::StringValue* JsonValue::release_string_value() { |
3181 | 0 | // @@protoc_insertion_point(field_release:json_proto.JsonValue.string_value) |
3182 | 0 | if (value_case() == kStringValue) { |
3183 | 0 | clear_has_value(); |
3184 | 0 | auto* temp = _impl_.value_.string_value_; |
3185 | 0 | if (GetArena() != nullptr) { |
3186 | 0 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); |
3187 | 0 | } |
3188 | 0 | _impl_.value_.string_value_ = nullptr; |
3189 | 0 | return temp; |
3190 | 0 | } else { |
3191 | 0 | return nullptr; |
3192 | 0 | } |
3193 | 0 | } |
3194 | 636 | inline const ::json_proto::StringValue& JsonValue::_internal_string_value() const { |
3195 | 636 | return value_case() == kStringValue ? *_impl_.value_.string_value_ : reinterpret_cast<::json_proto::StringValue&>(::json_proto::_StringValue_default_instance_); |
3196 | 636 | } |
3197 | 636 | inline const ::json_proto::StringValue& JsonValue::string_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { |
3198 | | // @@protoc_insertion_point(field_get:json_proto.JsonValue.string_value) |
3199 | 636 | return _internal_string_value(); |
3200 | 636 | } |
3201 | 0 | inline ::json_proto::StringValue* JsonValue::unsafe_arena_release_string_value() { |
3202 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:json_proto.JsonValue.string_value) |
3203 | 0 | if (value_case() == kStringValue) { |
3204 | 0 | clear_has_value(); |
3205 | 0 | auto* temp = _impl_.value_.string_value_; |
3206 | 0 | _impl_.value_.string_value_ = nullptr; |
3207 | 0 | return temp; |
3208 | 0 | } else { |
3209 | 0 | return nullptr; |
3210 | 0 | } |
3211 | 0 | } |
3212 | 0 | inline void JsonValue::unsafe_arena_set_allocated_string_value(::json_proto::StringValue* value) { |
3213 | 0 | // We rely on the oneof clear method to free the earlier contents |
3214 | 0 | // of this oneof. We can directly use the pointer we're given to |
3215 | 0 | // set the new value. |
3216 | 0 | clear_value(); |
3217 | 0 | if (value) { |
3218 | 0 | set_has_string_value(); |
3219 | 0 | _impl_.value_.string_value_ = value; |
3220 | 0 | } |
3221 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:json_proto.JsonValue.string_value) |
3222 | 0 | } |
3223 | 0 | inline ::json_proto::StringValue* JsonValue::_internal_mutable_string_value() { |
3224 | 0 | if (value_case() != kStringValue) { |
3225 | 0 | clear_value(); |
3226 | 0 | set_has_string_value(); |
3227 | 0 | _impl_.value_.string_value_ = |
3228 | 0 | ::google::protobuf::Message::DefaultConstruct<::json_proto::StringValue>(GetArena()); |
3229 | 0 | } |
3230 | 0 | return _impl_.value_.string_value_; |
3231 | 0 | } |
3232 | 0 | inline ::json_proto::StringValue* JsonValue::mutable_string_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
3233 | 0 | ::json_proto::StringValue* _msg = _internal_mutable_string_value(); |
3234 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.JsonValue.string_value) |
3235 | 0 | return _msg; |
3236 | 0 | } |
3237 | | |
3238 | | // .json_proto.BooleanValue boolean_value = 5; |
3239 | 5.85k | inline bool JsonValue::has_boolean_value() const { |
3240 | 5.85k | return value_case() == kBooleanValue; |
3241 | 5.85k | } |
3242 | 0 | inline bool JsonValue::_internal_has_boolean_value() const { |
3243 | 0 | return value_case() == kBooleanValue; |
3244 | 0 | } |
3245 | 0 | inline void JsonValue::set_has_boolean_value() { |
3246 | 0 | _impl_._oneof_case_[0] = kBooleanValue; |
3247 | 0 | } |
3248 | 0 | inline void JsonValue::clear_boolean_value() { |
3249 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3250 | 0 | if (value_case() == kBooleanValue) { |
3251 | 0 | if (GetArena() == nullptr) { |
3252 | 0 | delete _impl_.value_.boolean_value_; |
3253 | 0 | } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { |
3254 | 0 | ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.value_.boolean_value_); |
3255 | 0 | } |
3256 | 0 | clear_has_value(); |
3257 | 0 | } |
3258 | 0 | } |
3259 | 0 | inline ::json_proto::BooleanValue* JsonValue::release_boolean_value() { |
3260 | 0 | // @@protoc_insertion_point(field_release:json_proto.JsonValue.boolean_value) |
3261 | 0 | if (value_case() == kBooleanValue) { |
3262 | 0 | clear_has_value(); |
3263 | 0 | auto* temp = _impl_.value_.boolean_value_; |
3264 | 0 | if (GetArena() != nullptr) { |
3265 | 0 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); |
3266 | 0 | } |
3267 | 0 | _impl_.value_.boolean_value_ = nullptr; |
3268 | 0 | return temp; |
3269 | 0 | } else { |
3270 | 0 | return nullptr; |
3271 | 0 | } |
3272 | 0 | } |
3273 | 282 | inline const ::json_proto::BooleanValue& JsonValue::_internal_boolean_value() const { |
3274 | 282 | return value_case() == kBooleanValue ? *_impl_.value_.boolean_value_ : reinterpret_cast<::json_proto::BooleanValue&>(::json_proto::_BooleanValue_default_instance_); |
3275 | 282 | } |
3276 | 282 | inline const ::json_proto::BooleanValue& JsonValue::boolean_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { |
3277 | | // @@protoc_insertion_point(field_get:json_proto.JsonValue.boolean_value) |
3278 | 282 | return _internal_boolean_value(); |
3279 | 282 | } |
3280 | 0 | inline ::json_proto::BooleanValue* JsonValue::unsafe_arena_release_boolean_value() { |
3281 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:json_proto.JsonValue.boolean_value) |
3282 | 0 | if (value_case() == kBooleanValue) { |
3283 | 0 | clear_has_value(); |
3284 | 0 | auto* temp = _impl_.value_.boolean_value_; |
3285 | 0 | _impl_.value_.boolean_value_ = nullptr; |
3286 | 0 | return temp; |
3287 | 0 | } else { |
3288 | 0 | return nullptr; |
3289 | 0 | } |
3290 | 0 | } |
3291 | 0 | inline void JsonValue::unsafe_arena_set_allocated_boolean_value(::json_proto::BooleanValue* value) { |
3292 | 0 | // We rely on the oneof clear method to free the earlier contents |
3293 | 0 | // of this oneof. We can directly use the pointer we're given to |
3294 | 0 | // set the new value. |
3295 | 0 | clear_value(); |
3296 | 0 | if (value) { |
3297 | 0 | set_has_boolean_value(); |
3298 | 0 | _impl_.value_.boolean_value_ = value; |
3299 | 0 | } |
3300 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:json_proto.JsonValue.boolean_value) |
3301 | 0 | } |
3302 | 0 | inline ::json_proto::BooleanValue* JsonValue::_internal_mutable_boolean_value() { |
3303 | 0 | if (value_case() != kBooleanValue) { |
3304 | 0 | clear_value(); |
3305 | 0 | set_has_boolean_value(); |
3306 | 0 | _impl_.value_.boolean_value_ = |
3307 | 0 | ::google::protobuf::Message::DefaultConstruct<::json_proto::BooleanValue>(GetArena()); |
3308 | 0 | } |
3309 | 0 | return _impl_.value_.boolean_value_; |
3310 | 0 | } |
3311 | 0 | inline ::json_proto::BooleanValue* JsonValue::mutable_boolean_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
3312 | 0 | ::json_proto::BooleanValue* _msg = _internal_mutable_boolean_value(); |
3313 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.JsonValue.boolean_value) |
3314 | 0 | return _msg; |
3315 | 0 | } |
3316 | | |
3317 | 14.1k | inline bool JsonValue::has_value() const { |
3318 | 14.1k | return value_case() != VALUE_NOT_SET; |
3319 | 14.1k | } |
3320 | 0 | inline void JsonValue::clear_has_value() { |
3321 | 0 | _impl_._oneof_case_[0] = VALUE_NOT_SET; |
3322 | 0 | } |
3323 | 66.8k | inline JsonValue::ValueCase JsonValue::value_case() const { |
3324 | 66.8k | return JsonValue::ValueCase(_impl_._oneof_case_[0]); |
3325 | 66.8k | } |
3326 | | // ------------------------------------------------------------------- |
3327 | | |
3328 | | // ArrayValue |
3329 | | |
3330 | | // repeated .json_proto.JsonValue value = 1; |
3331 | 0 | inline int ArrayValue::_internal_value_size() const { |
3332 | 0 | return _internal_value().size(); |
3333 | 0 | } |
3334 | 0 | inline int ArrayValue::value_size() const { |
3335 | 0 | return _internal_value_size(); |
3336 | 0 | } |
3337 | 0 | inline void ArrayValue::clear_value() { |
3338 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3339 | 0 | _impl_.value_.Clear(); |
3340 | 0 | } |
3341 | | inline ::json_proto::JsonValue* ArrayValue::mutable_value(int index) |
3342 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
3343 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.ArrayValue.value) |
3344 | 0 | return _internal_mutable_value()->Mutable(index); |
3345 | 0 | } |
3346 | | inline ::google::protobuf::RepeatedPtrField<::json_proto::JsonValue>* ArrayValue::mutable_value() |
3347 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
3348 | 0 | // @@protoc_insertion_point(field_mutable_list:json_proto.ArrayValue.value) |
3349 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3350 | 0 | return _internal_mutable_value(); |
3351 | 0 | } |
3352 | | inline const ::json_proto::JsonValue& ArrayValue::value(int index) const |
3353 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
3354 | 0 | // @@protoc_insertion_point(field_get:json_proto.ArrayValue.value) |
3355 | 0 | return _internal_value().Get(index); |
3356 | 0 | } |
3357 | 0 | inline ::json_proto::JsonValue* ArrayValue::add_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
3358 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3359 | 0 | ::json_proto::JsonValue* _add = _internal_mutable_value()->Add(); |
3360 | 0 | // @@protoc_insertion_point(field_add:json_proto.ArrayValue.value) |
3361 | 0 | return _add; |
3362 | 0 | } |
3363 | | inline const ::google::protobuf::RepeatedPtrField<::json_proto::JsonValue>& ArrayValue::value() const |
3364 | 1.30k | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
3365 | | // @@protoc_insertion_point(field_list:json_proto.ArrayValue.value) |
3366 | 1.30k | return _internal_value(); |
3367 | 1.30k | } |
3368 | | inline const ::google::protobuf::RepeatedPtrField<::json_proto::JsonValue>& |
3369 | 1.30k | ArrayValue::_internal_value() const { |
3370 | 1.30k | ::google::protobuf::internal::TSanRead(&_impl_); |
3371 | 1.30k | return _impl_.value_; |
3372 | 1.30k | } |
3373 | | inline ::google::protobuf::RepeatedPtrField<::json_proto::JsonValue>* |
3374 | 0 | ArrayValue::_internal_mutable_value() { |
3375 | 0 | ::google::protobuf::internal::TSanRead(&_impl_); |
3376 | 0 | return &_impl_.value_; |
3377 | 0 | } |
3378 | | |
3379 | | // ------------------------------------------------------------------- |
3380 | | |
3381 | | // NumberInteger |
3382 | | |
3383 | | // required int64 value = 1; |
3384 | 0 | inline bool NumberInteger::has_value() const { |
3385 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
3386 | 0 | return value; |
3387 | 0 | } |
3388 | 0 | inline void NumberInteger::clear_value() { |
3389 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3390 | 0 | _impl_.value_ = ::int64_t{0}; |
3391 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3392 | 0 | } |
3393 | 529 | inline ::int64_t NumberInteger::value() const { |
3394 | | // @@protoc_insertion_point(field_get:json_proto.NumberInteger.value) |
3395 | 529 | return _internal_value(); |
3396 | 529 | } |
3397 | 0 | inline void NumberInteger::set_value(::int64_t value) { |
3398 | 0 | _internal_set_value(value); |
3399 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
3400 | 0 | // @@protoc_insertion_point(field_set:json_proto.NumberInteger.value) |
3401 | 0 | } |
3402 | 529 | inline ::int64_t NumberInteger::_internal_value() const { |
3403 | 529 | ::google::protobuf::internal::TSanRead(&_impl_); |
3404 | 529 | return _impl_.value_; |
3405 | 529 | } |
3406 | 0 | inline void NumberInteger::_internal_set_value(::int64_t value) { |
3407 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3408 | 0 | _impl_.value_ = value; |
3409 | 0 | } |
3410 | | |
3411 | | // ------------------------------------------------------------------- |
3412 | | |
3413 | | // NumberFloat |
3414 | | |
3415 | | // required double value = 1; |
3416 | 0 | inline bool NumberFloat::has_value() const { |
3417 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
3418 | 0 | return value; |
3419 | 0 | } |
3420 | 0 | inline void NumberFloat::clear_value() { |
3421 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3422 | 0 | _impl_.value_ = 0; |
3423 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3424 | 0 | } |
3425 | 210 | inline double NumberFloat::value() const { |
3426 | | // @@protoc_insertion_point(field_get:json_proto.NumberFloat.value) |
3427 | 210 | return _internal_value(); |
3428 | 210 | } |
3429 | 0 | inline void NumberFloat::set_value(double value) { |
3430 | 0 | _internal_set_value(value); |
3431 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
3432 | 0 | // @@protoc_insertion_point(field_set:json_proto.NumberFloat.value) |
3433 | 0 | } |
3434 | 210 | inline double NumberFloat::_internal_value() const { |
3435 | 210 | ::google::protobuf::internal::TSanRead(&_impl_); |
3436 | 210 | return _impl_.value_; |
3437 | 210 | } |
3438 | 0 | inline void NumberFloat::_internal_set_value(double value) { |
3439 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3440 | 0 | _impl_.value_ = value; |
3441 | 0 | } |
3442 | | |
3443 | | // ------------------------------------------------------------------- |
3444 | | |
3445 | | // NumberExponent |
3446 | | |
3447 | | // required int32 base = 1; |
3448 | 0 | inline bool NumberExponent::has_base() const { |
3449 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
3450 | 0 | return value; |
3451 | 0 | } |
3452 | 0 | inline void NumberExponent::clear_base() { |
3453 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3454 | 0 | _impl_.base_ = 0; |
3455 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3456 | 0 | } |
3457 | 547 | inline ::int32_t NumberExponent::base() const { |
3458 | | // @@protoc_insertion_point(field_get:json_proto.NumberExponent.base) |
3459 | 547 | return _internal_base(); |
3460 | 547 | } |
3461 | 0 | inline void NumberExponent::set_base(::int32_t value) { |
3462 | 0 | _internal_set_base(value); |
3463 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
3464 | 0 | // @@protoc_insertion_point(field_set:json_proto.NumberExponent.base) |
3465 | 0 | } |
3466 | 547 | inline ::int32_t NumberExponent::_internal_base() const { |
3467 | 547 | ::google::protobuf::internal::TSanRead(&_impl_); |
3468 | 547 | return _impl_.base_; |
3469 | 547 | } |
3470 | 0 | inline void NumberExponent::_internal_set_base(::int32_t value) { |
3471 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3472 | 0 | _impl_.base_ = value; |
3473 | 0 | } |
3474 | | |
3475 | | // required int32 exponent = 2; |
3476 | 0 | inline bool NumberExponent::has_exponent() const { |
3477 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
3478 | 0 | return value; |
3479 | 0 | } |
3480 | 0 | inline void NumberExponent::clear_exponent() { |
3481 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3482 | 0 | _impl_.exponent_ = 0; |
3483 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
3484 | 0 | } |
3485 | 547 | inline ::int32_t NumberExponent::exponent() const { |
3486 | | // @@protoc_insertion_point(field_get:json_proto.NumberExponent.exponent) |
3487 | 547 | return _internal_exponent(); |
3488 | 547 | } |
3489 | 0 | inline void NumberExponent::set_exponent(::int32_t value) { |
3490 | 0 | _internal_set_exponent(value); |
3491 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
3492 | 0 | // @@protoc_insertion_point(field_set:json_proto.NumberExponent.exponent) |
3493 | 0 | } |
3494 | 547 | inline ::int32_t NumberExponent::_internal_exponent() const { |
3495 | 547 | ::google::protobuf::internal::TSanRead(&_impl_); |
3496 | 547 | return _impl_.exponent_; |
3497 | 547 | } |
3498 | 0 | inline void NumberExponent::_internal_set_exponent(::int32_t value) { |
3499 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3500 | 0 | _impl_.exponent_ = value; |
3501 | 0 | } |
3502 | | |
3503 | | // required bool use_uppercase = 3; |
3504 | 0 | inline bool NumberExponent::has_use_uppercase() const { |
3505 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
3506 | 0 | return value; |
3507 | 0 | } |
3508 | 0 | inline void NumberExponent::clear_use_uppercase() { |
3509 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3510 | 0 | _impl_.use_uppercase_ = false; |
3511 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
3512 | 0 | } |
3513 | 547 | inline bool NumberExponent::use_uppercase() const { |
3514 | | // @@protoc_insertion_point(field_get:json_proto.NumberExponent.use_uppercase) |
3515 | 547 | return _internal_use_uppercase(); |
3516 | 547 | } |
3517 | 0 | inline void NumberExponent::set_use_uppercase(bool value) { |
3518 | 0 | _internal_set_use_uppercase(value); |
3519 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
3520 | 0 | // @@protoc_insertion_point(field_set:json_proto.NumberExponent.use_uppercase) |
3521 | 0 | } |
3522 | 547 | inline bool NumberExponent::_internal_use_uppercase() const { |
3523 | 547 | ::google::protobuf::internal::TSanRead(&_impl_); |
3524 | 547 | return _impl_.use_uppercase_; |
3525 | 547 | } |
3526 | 0 | inline void NumberExponent::_internal_set_use_uppercase(bool value) { |
3527 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3528 | 0 | _impl_.use_uppercase_ = value; |
3529 | 0 | } |
3530 | | |
3531 | | // ------------------------------------------------------------------- |
3532 | | |
3533 | | // NumberExponentFrac |
3534 | | |
3535 | | // required float base = 1; |
3536 | 0 | inline bool NumberExponentFrac::has_base() const { |
3537 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
3538 | 0 | return value; |
3539 | 0 | } |
3540 | 0 | inline void NumberExponentFrac::clear_base() { |
3541 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3542 | 0 | _impl_.base_ = 0; |
3543 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3544 | 0 | } |
3545 | 0 | inline float NumberExponentFrac::base() const { |
3546 | 0 | // @@protoc_insertion_point(field_get:json_proto.NumberExponentFrac.base) |
3547 | 0 | return _internal_base(); |
3548 | 0 | } |
3549 | 0 | inline void NumberExponentFrac::set_base(float value) { |
3550 | 0 | _internal_set_base(value); |
3551 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
3552 | 0 | // @@protoc_insertion_point(field_set:json_proto.NumberExponentFrac.base) |
3553 | 0 | } |
3554 | 0 | inline float NumberExponentFrac::_internal_base() const { |
3555 | 0 | ::google::protobuf::internal::TSanRead(&_impl_); |
3556 | 0 | return _impl_.base_; |
3557 | 0 | } |
3558 | 0 | inline void NumberExponentFrac::_internal_set_base(float value) { |
3559 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3560 | 0 | _impl_.base_ = value; |
3561 | 0 | } |
3562 | | |
3563 | | // required int32 exponent = 2; |
3564 | 0 | inline bool NumberExponentFrac::has_exponent() const { |
3565 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
3566 | 0 | return value; |
3567 | 0 | } |
3568 | 0 | inline void NumberExponentFrac::clear_exponent() { |
3569 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3570 | 0 | _impl_.exponent_ = 0; |
3571 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
3572 | 0 | } |
3573 | 0 | inline ::int32_t NumberExponentFrac::exponent() const { |
3574 | 0 | // @@protoc_insertion_point(field_get:json_proto.NumberExponentFrac.exponent) |
3575 | 0 | return _internal_exponent(); |
3576 | 0 | } |
3577 | 0 | inline void NumberExponentFrac::set_exponent(::int32_t value) { |
3578 | 0 | _internal_set_exponent(value); |
3579 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
3580 | 0 | // @@protoc_insertion_point(field_set:json_proto.NumberExponentFrac.exponent) |
3581 | 0 | } |
3582 | 0 | inline ::int32_t NumberExponentFrac::_internal_exponent() const { |
3583 | 0 | ::google::protobuf::internal::TSanRead(&_impl_); |
3584 | 0 | return _impl_.exponent_; |
3585 | 0 | } |
3586 | 0 | inline void NumberExponentFrac::_internal_set_exponent(::int32_t value) { |
3587 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3588 | 0 | _impl_.exponent_ = value; |
3589 | 0 | } |
3590 | | |
3591 | | // required bool use_uppercase = 3; |
3592 | 0 | inline bool NumberExponentFrac::has_use_uppercase() const { |
3593 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
3594 | 0 | return value; |
3595 | 0 | } |
3596 | 0 | inline void NumberExponentFrac::clear_use_uppercase() { |
3597 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3598 | 0 | _impl_.use_uppercase_ = false; |
3599 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
3600 | 0 | } |
3601 | 0 | inline bool NumberExponentFrac::use_uppercase() const { |
3602 | 0 | // @@protoc_insertion_point(field_get:json_proto.NumberExponentFrac.use_uppercase) |
3603 | 0 | return _internal_use_uppercase(); |
3604 | 0 | } |
3605 | 0 | inline void NumberExponentFrac::set_use_uppercase(bool value) { |
3606 | 0 | _internal_set_use_uppercase(value); |
3607 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
3608 | 0 | // @@protoc_insertion_point(field_set:json_proto.NumberExponentFrac.use_uppercase) |
3609 | 0 | } |
3610 | 0 | inline bool NumberExponentFrac::_internal_use_uppercase() const { |
3611 | 0 | ::google::protobuf::internal::TSanRead(&_impl_); |
3612 | 0 | return _impl_.use_uppercase_; |
3613 | 0 | } |
3614 | 0 | inline void NumberExponentFrac::_internal_set_use_uppercase(bool value) { |
3615 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3616 | 0 | _impl_.use_uppercase_ = value; |
3617 | 0 | } |
3618 | | |
3619 | | // ------------------------------------------------------------------- |
3620 | | |
3621 | | // NumberValue |
3622 | | |
3623 | | // required .json_proto.NumberInteger integer_value = 1; |
3624 | 0 | inline bool NumberValue::has_integer_value() const { |
3625 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
3626 | 0 | PROTOBUF_ASSUME(!value || _impl_.integer_value_ != nullptr); |
3627 | 0 | return value; |
3628 | 0 | } |
3629 | 0 | inline void NumberValue::clear_integer_value() { |
3630 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3631 | 0 | if (_impl_.integer_value_ != nullptr) _impl_.integer_value_->Clear(); |
3632 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3633 | 0 | } |
3634 | 529 | inline const ::json_proto::NumberInteger& NumberValue::_internal_integer_value() const { |
3635 | 529 | ::google::protobuf::internal::TSanRead(&_impl_); |
3636 | 529 | const ::json_proto::NumberInteger* p = _impl_.integer_value_; |
3637 | 529 | return p != nullptr ? *p : reinterpret_cast<const ::json_proto::NumberInteger&>(::json_proto::_NumberInteger_default_instance_); |
3638 | 529 | } |
3639 | 529 | inline const ::json_proto::NumberInteger& NumberValue::integer_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { |
3640 | | // @@protoc_insertion_point(field_get:json_proto.NumberValue.integer_value) |
3641 | 529 | return _internal_integer_value(); |
3642 | 529 | } |
3643 | 0 | inline void NumberValue::unsafe_arena_set_allocated_integer_value(::json_proto::NumberInteger* value) { |
3644 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3645 | 0 | if (GetArena() == nullptr) { |
3646 | 0 | delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.integer_value_); |
3647 | 0 | } |
3648 | 0 | _impl_.integer_value_ = reinterpret_cast<::json_proto::NumberInteger*>(value); |
3649 | 0 | if (value != nullptr) { |
3650 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
3651 | 0 | } else { |
3652 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3653 | 0 | } |
3654 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:json_proto.NumberValue.integer_value) |
3655 | 0 | } |
3656 | 0 | inline ::json_proto::NumberInteger* NumberValue::release_integer_value() { |
3657 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3658 | 0 |
|
3659 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3660 | 0 | ::json_proto::NumberInteger* released = _impl_.integer_value_; |
3661 | 0 | _impl_.integer_value_ = nullptr; |
3662 | 0 | if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { |
3663 | 0 | auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); |
3664 | 0 | released = ::google::protobuf::internal::DuplicateIfNonNull(released); |
3665 | 0 | if (GetArena() == nullptr) { |
3666 | 0 | delete old; |
3667 | 0 | } |
3668 | 0 | } else { |
3669 | 0 | if (GetArena() != nullptr) { |
3670 | 0 | released = ::google::protobuf::internal::DuplicateIfNonNull(released); |
3671 | 0 | } |
3672 | 0 | } |
3673 | 0 | return released; |
3674 | 0 | } |
3675 | 0 | inline ::json_proto::NumberInteger* NumberValue::unsafe_arena_release_integer_value() { |
3676 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3677 | 0 | // @@protoc_insertion_point(field_release:json_proto.NumberValue.integer_value) |
3678 | 0 |
|
3679 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3680 | 0 | ::json_proto::NumberInteger* temp = _impl_.integer_value_; |
3681 | 0 | _impl_.integer_value_ = nullptr; |
3682 | 0 | return temp; |
3683 | 0 | } |
3684 | 0 | inline ::json_proto::NumberInteger* NumberValue::_internal_mutable_integer_value() { |
3685 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3686 | 0 | if (_impl_.integer_value_ == nullptr) { |
3687 | 0 | auto* p = ::google::protobuf::Message::DefaultConstruct<::json_proto::NumberInteger>(GetArena()); |
3688 | 0 | _impl_.integer_value_ = reinterpret_cast<::json_proto::NumberInteger*>(p); |
3689 | 0 | } |
3690 | 0 | return _impl_.integer_value_; |
3691 | 0 | } |
3692 | 0 | inline ::json_proto::NumberInteger* NumberValue::mutable_integer_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
3693 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
3694 | 0 | ::json_proto::NumberInteger* _msg = _internal_mutable_integer_value(); |
3695 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.NumberValue.integer_value) |
3696 | 0 | return _msg; |
3697 | 0 | } |
3698 | 0 | inline void NumberValue::set_allocated_integer_value(::json_proto::NumberInteger* value) { |
3699 | 0 | ::google::protobuf::Arena* message_arena = GetArena(); |
3700 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3701 | 0 | if (message_arena == nullptr) { |
3702 | 0 | delete (_impl_.integer_value_); |
3703 | 0 | } |
3704 | 0 |
|
3705 | 0 | if (value != nullptr) { |
3706 | 0 | ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); |
3707 | 0 | if (message_arena != submessage_arena) { |
3708 | 0 | value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); |
3709 | 0 | } |
3710 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
3711 | 0 | } else { |
3712 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3713 | 0 | } |
3714 | 0 |
|
3715 | 0 | _impl_.integer_value_ = reinterpret_cast<::json_proto::NumberInteger*>(value); |
3716 | 0 | // @@protoc_insertion_point(field_set_allocated:json_proto.NumberValue.integer_value) |
3717 | 0 | } |
3718 | | |
3719 | | // .json_proto.NumberFloat float_value = 2; |
3720 | 1.28k | inline bool NumberValue::has_float_value() const { |
3721 | 1.28k | return value_case() == kFloatValue; |
3722 | 1.28k | } |
3723 | 0 | inline bool NumberValue::_internal_has_float_value() const { |
3724 | 0 | return value_case() == kFloatValue; |
3725 | 0 | } |
3726 | 0 | inline void NumberValue::set_has_float_value() { |
3727 | 0 | _impl_._oneof_case_[0] = kFloatValue; |
3728 | 0 | } |
3729 | 0 | inline void NumberValue::clear_float_value() { |
3730 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3731 | 0 | if (value_case() == kFloatValue) { |
3732 | 0 | if (GetArena() == nullptr) { |
3733 | 0 | delete _impl_.value_.float_value_; |
3734 | 0 | } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { |
3735 | 0 | ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.value_.float_value_); |
3736 | 0 | } |
3737 | 0 | clear_has_value(); |
3738 | 0 | } |
3739 | 0 | } |
3740 | 0 | inline ::json_proto::NumberFloat* NumberValue::release_float_value() { |
3741 | 0 | // @@protoc_insertion_point(field_release:json_proto.NumberValue.float_value) |
3742 | 0 | if (value_case() == kFloatValue) { |
3743 | 0 | clear_has_value(); |
3744 | 0 | auto* temp = _impl_.value_.float_value_; |
3745 | 0 | if (GetArena() != nullptr) { |
3746 | 0 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); |
3747 | 0 | } |
3748 | 0 | _impl_.value_.float_value_ = nullptr; |
3749 | 0 | return temp; |
3750 | 0 | } else { |
3751 | 0 | return nullptr; |
3752 | 0 | } |
3753 | 0 | } |
3754 | 210 | inline const ::json_proto::NumberFloat& NumberValue::_internal_float_value() const { |
3755 | 210 | return value_case() == kFloatValue ? *_impl_.value_.float_value_ : reinterpret_cast<::json_proto::NumberFloat&>(::json_proto::_NumberFloat_default_instance_); |
3756 | 210 | } |
3757 | 210 | inline const ::json_proto::NumberFloat& NumberValue::float_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { |
3758 | | // @@protoc_insertion_point(field_get:json_proto.NumberValue.float_value) |
3759 | 210 | return _internal_float_value(); |
3760 | 210 | } |
3761 | 0 | inline ::json_proto::NumberFloat* NumberValue::unsafe_arena_release_float_value() { |
3762 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:json_proto.NumberValue.float_value) |
3763 | 0 | if (value_case() == kFloatValue) { |
3764 | 0 | clear_has_value(); |
3765 | 0 | auto* temp = _impl_.value_.float_value_; |
3766 | 0 | _impl_.value_.float_value_ = nullptr; |
3767 | 0 | return temp; |
3768 | 0 | } else { |
3769 | 0 | return nullptr; |
3770 | 0 | } |
3771 | 0 | } |
3772 | 0 | inline void NumberValue::unsafe_arena_set_allocated_float_value(::json_proto::NumberFloat* value) { |
3773 | 0 | // We rely on the oneof clear method to free the earlier contents |
3774 | 0 | // of this oneof. We can directly use the pointer we're given to |
3775 | 0 | // set the new value. |
3776 | 0 | clear_value(); |
3777 | 0 | if (value) { |
3778 | 0 | set_has_float_value(); |
3779 | 0 | _impl_.value_.float_value_ = value; |
3780 | 0 | } |
3781 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:json_proto.NumberValue.float_value) |
3782 | 0 | } |
3783 | 0 | inline ::json_proto::NumberFloat* NumberValue::_internal_mutable_float_value() { |
3784 | 0 | if (value_case() != kFloatValue) { |
3785 | 0 | clear_value(); |
3786 | 0 | set_has_float_value(); |
3787 | 0 | _impl_.value_.float_value_ = |
3788 | 0 | ::google::protobuf::Message::DefaultConstruct<::json_proto::NumberFloat>(GetArena()); |
3789 | 0 | } |
3790 | 0 | return _impl_.value_.float_value_; |
3791 | 0 | } |
3792 | 0 | inline ::json_proto::NumberFloat* NumberValue::mutable_float_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
3793 | 0 | ::json_proto::NumberFloat* _msg = _internal_mutable_float_value(); |
3794 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.NumberValue.float_value) |
3795 | 0 | return _msg; |
3796 | 0 | } |
3797 | | |
3798 | | // .json_proto.NumberExponent exponent_value = 3; |
3799 | 1.07k | inline bool NumberValue::has_exponent_value() const { |
3800 | 1.07k | return value_case() == kExponentValue; |
3801 | 1.07k | } |
3802 | 0 | inline bool NumberValue::_internal_has_exponent_value() const { |
3803 | 0 | return value_case() == kExponentValue; |
3804 | 0 | } |
3805 | 0 | inline void NumberValue::set_has_exponent_value() { |
3806 | 0 | _impl_._oneof_case_[0] = kExponentValue; |
3807 | 0 | } |
3808 | 0 | inline void NumberValue::clear_exponent_value() { |
3809 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3810 | 0 | if (value_case() == kExponentValue) { |
3811 | 0 | if (GetArena() == nullptr) { |
3812 | 0 | delete _impl_.value_.exponent_value_; |
3813 | 0 | } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { |
3814 | 0 | ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.value_.exponent_value_); |
3815 | 0 | } |
3816 | 0 | clear_has_value(); |
3817 | 0 | } |
3818 | 0 | } |
3819 | 0 | inline ::json_proto::NumberExponent* NumberValue::release_exponent_value() { |
3820 | 0 | // @@protoc_insertion_point(field_release:json_proto.NumberValue.exponent_value) |
3821 | 0 | if (value_case() == kExponentValue) { |
3822 | 0 | clear_has_value(); |
3823 | 0 | auto* temp = _impl_.value_.exponent_value_; |
3824 | 0 | if (GetArena() != nullptr) { |
3825 | 0 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); |
3826 | 0 | } |
3827 | 0 | _impl_.value_.exponent_value_ = nullptr; |
3828 | 0 | return temp; |
3829 | 0 | } else { |
3830 | 0 | return nullptr; |
3831 | 0 | } |
3832 | 0 | } |
3833 | 547 | inline const ::json_proto::NumberExponent& NumberValue::_internal_exponent_value() const { |
3834 | 547 | return value_case() == kExponentValue ? *_impl_.value_.exponent_value_ : reinterpret_cast<::json_proto::NumberExponent&>(::json_proto::_NumberExponent_default_instance_); |
3835 | 547 | } |
3836 | 547 | inline const ::json_proto::NumberExponent& NumberValue::exponent_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { |
3837 | | // @@protoc_insertion_point(field_get:json_proto.NumberValue.exponent_value) |
3838 | 547 | return _internal_exponent_value(); |
3839 | 547 | } |
3840 | 0 | inline ::json_proto::NumberExponent* NumberValue::unsafe_arena_release_exponent_value() { |
3841 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:json_proto.NumberValue.exponent_value) |
3842 | 0 | if (value_case() == kExponentValue) { |
3843 | 0 | clear_has_value(); |
3844 | 0 | auto* temp = _impl_.value_.exponent_value_; |
3845 | 0 | _impl_.value_.exponent_value_ = nullptr; |
3846 | 0 | return temp; |
3847 | 0 | } else { |
3848 | 0 | return nullptr; |
3849 | 0 | } |
3850 | 0 | } |
3851 | 0 | inline void NumberValue::unsafe_arena_set_allocated_exponent_value(::json_proto::NumberExponent* value) { |
3852 | 0 | // We rely on the oneof clear method to free the earlier contents |
3853 | 0 | // of this oneof. We can directly use the pointer we're given to |
3854 | 0 | // set the new value. |
3855 | 0 | clear_value(); |
3856 | 0 | if (value) { |
3857 | 0 | set_has_exponent_value(); |
3858 | 0 | _impl_.value_.exponent_value_ = value; |
3859 | 0 | } |
3860 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:json_proto.NumberValue.exponent_value) |
3861 | 0 | } |
3862 | 0 | inline ::json_proto::NumberExponent* NumberValue::_internal_mutable_exponent_value() { |
3863 | 0 | if (value_case() != kExponentValue) { |
3864 | 0 | clear_value(); |
3865 | 0 | set_has_exponent_value(); |
3866 | 0 | _impl_.value_.exponent_value_ = |
3867 | 0 | ::google::protobuf::Message::DefaultConstruct<::json_proto::NumberExponent>(GetArena()); |
3868 | 0 | } |
3869 | 0 | return _impl_.value_.exponent_value_; |
3870 | 0 | } |
3871 | 0 | inline ::json_proto::NumberExponent* NumberValue::mutable_exponent_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
3872 | 0 | ::json_proto::NumberExponent* _msg = _internal_mutable_exponent_value(); |
3873 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.NumberValue.exponent_value) |
3874 | 0 | return _msg; |
3875 | 0 | } |
3876 | | |
3877 | | // .json_proto.NumberExponentFrac exponent_frac_value = 4; |
3878 | 741 | inline bool NumberValue::has_exponent_frac_value() const { |
3879 | 741 | return value_case() == kExponentFracValue; |
3880 | 741 | } |
3881 | 0 | inline bool NumberValue::_internal_has_exponent_frac_value() const { |
3882 | 0 | return value_case() == kExponentFracValue; |
3883 | 0 | } |
3884 | 0 | inline void NumberValue::set_has_exponent_frac_value() { |
3885 | 0 | _impl_._oneof_case_[0] = kExponentFracValue; |
3886 | 0 | } |
3887 | 0 | inline void NumberValue::clear_exponent_frac_value() { |
3888 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3889 | 0 | if (value_case() == kExponentFracValue) { |
3890 | 0 | if (GetArena() == nullptr) { |
3891 | 0 | delete _impl_.value_.exponent_frac_value_; |
3892 | 0 | } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { |
3893 | 0 | ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.value_.exponent_frac_value_); |
3894 | 0 | } |
3895 | 0 | clear_has_value(); |
3896 | 0 | } |
3897 | 0 | } |
3898 | 0 | inline ::json_proto::NumberExponentFrac* NumberValue::release_exponent_frac_value() { |
3899 | 0 | // @@protoc_insertion_point(field_release:json_proto.NumberValue.exponent_frac_value) |
3900 | 0 | if (value_case() == kExponentFracValue) { |
3901 | 0 | clear_has_value(); |
3902 | 0 | auto* temp = _impl_.value_.exponent_frac_value_; |
3903 | 0 | if (GetArena() != nullptr) { |
3904 | 0 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); |
3905 | 0 | } |
3906 | 0 | _impl_.value_.exponent_frac_value_ = nullptr; |
3907 | 0 | return temp; |
3908 | 0 | } else { |
3909 | 0 | return nullptr; |
3910 | 0 | } |
3911 | 0 | } |
3912 | 0 | inline const ::json_proto::NumberExponentFrac& NumberValue::_internal_exponent_frac_value() const { |
3913 | 0 | return value_case() == kExponentFracValue ? *_impl_.value_.exponent_frac_value_ : reinterpret_cast<::json_proto::NumberExponentFrac&>(::json_proto::_NumberExponentFrac_default_instance_); |
3914 | 0 | } |
3915 | 0 | inline const ::json_proto::NumberExponentFrac& NumberValue::exponent_frac_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { |
3916 | 0 | // @@protoc_insertion_point(field_get:json_proto.NumberValue.exponent_frac_value) |
3917 | 0 | return _internal_exponent_frac_value(); |
3918 | 0 | } |
3919 | 0 | inline ::json_proto::NumberExponentFrac* NumberValue::unsafe_arena_release_exponent_frac_value() { |
3920 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:json_proto.NumberValue.exponent_frac_value) |
3921 | 0 | if (value_case() == kExponentFracValue) { |
3922 | 0 | clear_has_value(); |
3923 | 0 | auto* temp = _impl_.value_.exponent_frac_value_; |
3924 | 0 | _impl_.value_.exponent_frac_value_ = nullptr; |
3925 | 0 | return temp; |
3926 | 0 | } else { |
3927 | 0 | return nullptr; |
3928 | 0 | } |
3929 | 0 | } |
3930 | 0 | inline void NumberValue::unsafe_arena_set_allocated_exponent_frac_value(::json_proto::NumberExponentFrac* value) { |
3931 | 0 | // We rely on the oneof clear method to free the earlier contents |
3932 | 0 | // of this oneof. We can directly use the pointer we're given to |
3933 | 0 | // set the new value. |
3934 | 0 | clear_value(); |
3935 | 0 | if (value) { |
3936 | 0 | set_has_exponent_frac_value(); |
3937 | 0 | _impl_.value_.exponent_frac_value_ = value; |
3938 | 0 | } |
3939 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:json_proto.NumberValue.exponent_frac_value) |
3940 | 0 | } |
3941 | 0 | inline ::json_proto::NumberExponentFrac* NumberValue::_internal_mutable_exponent_frac_value() { |
3942 | 0 | if (value_case() != kExponentFracValue) { |
3943 | 0 | clear_value(); |
3944 | 0 | set_has_exponent_frac_value(); |
3945 | 0 | _impl_.value_.exponent_frac_value_ = |
3946 | 0 | ::google::protobuf::Message::DefaultConstruct<::json_proto::NumberExponentFrac>(GetArena()); |
3947 | 0 | } |
3948 | 0 | return _impl_.value_.exponent_frac_value_; |
3949 | 0 | } |
3950 | 0 | inline ::json_proto::NumberExponentFrac* NumberValue::mutable_exponent_frac_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
3951 | 0 | ::json_proto::NumberExponentFrac* _msg = _internal_mutable_exponent_frac_value(); |
3952 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.NumberValue.exponent_frac_value) |
3953 | 0 | return _msg; |
3954 | 0 | } |
3955 | | |
3956 | 2.02k | inline bool NumberValue::has_value() const { |
3957 | 2.02k | return value_case() != VALUE_NOT_SET; |
3958 | 2.02k | } |
3959 | 0 | inline void NumberValue::clear_has_value() { |
3960 | 0 | _impl_._oneof_case_[0] = VALUE_NOT_SET; |
3961 | 0 | } |
3962 | 6.98k | inline NumberValue::ValueCase NumberValue::value_case() const { |
3963 | 6.98k | return NumberValue::ValueCase(_impl_._oneof_case_[0]); |
3964 | 6.98k | } |
3965 | | // ------------------------------------------------------------------- |
3966 | | |
3967 | | // StringValue |
3968 | | |
3969 | | // required string value = 1; |
3970 | 0 | inline bool StringValue::has_value() const { |
3971 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
3972 | 0 | return value; |
3973 | 0 | } |
3974 | 0 | inline void StringValue::clear_value() { |
3975 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
3976 | 0 | _impl_.value_.ClearToEmpty(); |
3977 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3978 | 0 | } |
3979 | | inline const std::string& StringValue::value() const |
3980 | 636 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
3981 | | // @@protoc_insertion_point(field_get:json_proto.StringValue.value) |
3982 | 636 | return _internal_value(); |
3983 | 636 | } |
3984 | | template <typename Arg_, typename... Args_> |
3985 | | inline PROTOBUF_ALWAYS_INLINE void StringValue::set_value(Arg_&& arg, |
3986 | | Args_... args) { |
3987 | | ::google::protobuf::internal::TSanWrite(&_impl_); |
3988 | | _impl_._has_bits_[0] |= 0x00000001u; |
3989 | | _impl_.value_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); |
3990 | | // @@protoc_insertion_point(field_set:json_proto.StringValue.value) |
3991 | | } |
3992 | 0 | inline std::string* StringValue::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
3993 | 0 | std::string* _s = _internal_mutable_value(); |
3994 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.StringValue.value) |
3995 | 0 | return _s; |
3996 | 0 | } |
3997 | 636 | inline const std::string& StringValue::_internal_value() const { |
3998 | 636 | ::google::protobuf::internal::TSanRead(&_impl_); |
3999 | 636 | return _impl_.value_.Get(); |
4000 | 636 | } |
4001 | 0 | inline void StringValue::_internal_set_value(const std::string& value) { |
4002 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
4003 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
4004 | 0 | _impl_.value_.Set(value, GetArena()); |
4005 | 0 | } |
4006 | 0 | inline std::string* StringValue::_internal_mutable_value() { |
4007 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
4008 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
4009 | 0 | return _impl_.value_.Mutable( GetArena()); |
4010 | 0 | } |
4011 | 0 | inline std::string* StringValue::release_value() { |
4012 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
4013 | 0 | // @@protoc_insertion_point(field_release:json_proto.StringValue.value) |
4014 | 0 | if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { |
4015 | 0 | return nullptr; |
4016 | 0 | } |
4017 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
4018 | 0 | auto* released = _impl_.value_.Release(); |
4019 | 0 | if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { |
4020 | 0 | _impl_.value_.Set("", GetArena()); |
4021 | 0 | } |
4022 | 0 | return released; |
4023 | 0 | } |
4024 | 0 | inline void StringValue::set_allocated_value(std::string* value) { |
4025 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
4026 | 0 | if (value != nullptr) { |
4027 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
4028 | 0 | } else { |
4029 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
4030 | 0 | } |
4031 | 0 | _impl_.value_.SetAllocated(value, GetArena()); |
4032 | 0 | if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.value_.IsDefault()) { |
4033 | 0 | _impl_.value_.Set("", GetArena()); |
4034 | 0 | } |
4035 | 0 | // @@protoc_insertion_point(field_set_allocated:json_proto.StringValue.value) |
4036 | 0 | } |
4037 | | |
4038 | | // ------------------------------------------------------------------- |
4039 | | |
4040 | | // BooleanValue |
4041 | | |
4042 | | // required bool value = 1; |
4043 | 0 | inline bool BooleanValue::has_value() const { |
4044 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
4045 | 0 | return value; |
4046 | 0 | } |
4047 | 0 | inline void BooleanValue::clear_value() { |
4048 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
4049 | 0 | _impl_.value_ = false; |
4050 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
4051 | 0 | } |
4052 | 282 | inline bool BooleanValue::value() const { |
4053 | | // @@protoc_insertion_point(field_get:json_proto.BooleanValue.value) |
4054 | 282 | return _internal_value(); |
4055 | 282 | } |
4056 | 0 | inline void BooleanValue::set_value(bool value) { |
4057 | 0 | _internal_set_value(value); |
4058 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
4059 | 0 | // @@protoc_insertion_point(field_set:json_proto.BooleanValue.value) |
4060 | 0 | } |
4061 | 282 | inline bool BooleanValue::_internal_value() const { |
4062 | 282 | ::google::protobuf::internal::TSanRead(&_impl_); |
4063 | 282 | return _impl_.value_; |
4064 | 282 | } |
4065 | 0 | inline void BooleanValue::_internal_set_value(bool value) { |
4066 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
4067 | 0 | _impl_.value_ = value; |
4068 | 0 | } |
4069 | | |
4070 | | #ifdef __GNUC__ |
4071 | | #pragma GCC diagnostic pop |
4072 | | #endif // __GNUC__ |
4073 | | |
4074 | | // @@protoc_insertion_point(namespace_scope) |
4075 | | } // namespace json_proto |
4076 | | |
4077 | | |
4078 | | // @@protoc_insertion_point(global_scope) |
4079 | | |
4080 | | #include "google/protobuf/port_undef.inc" |
4081 | | |
4082 | | #endif // json_2eproto_2epb_2eh |