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