/src/cryptsetup/tests/fuzz/LUKS2_plain_JSON.pb.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: LUKS2_plain_JSON.proto |
3 | | |
4 | | #ifndef GOOGLE_PROTOBUF_INCLUDED_LUKS2_5fplain_5fJSON_2eproto |
5 | | #define GOOGLE_PROTOBUF_INCLUDED_LUKS2_5fplain_5fJSON_2eproto |
6 | | |
7 | | #include <limits> |
8 | | #include <string> |
9 | | |
10 | | #include <google/protobuf/port_def.inc> |
11 | | #if PROTOBUF_VERSION < 3021000 |
12 | | #error This file was generated by a newer version of protoc which is |
13 | | #error incompatible with your Protocol Buffer headers. Please update |
14 | | #error your headers. |
15 | | #endif |
16 | | #if 3021007 < PROTOBUF_MIN_PROTOC_VERSION |
17 | | #error This file was generated by an older version of protoc which is |
18 | | #error incompatible with your Protocol Buffer headers. Please |
19 | | #error regenerate this file with a newer version of protoc. |
20 | | #endif |
21 | | |
22 | | #include <google/protobuf/port_undef.inc> |
23 | | #include <google/protobuf/io/coded_stream.h> |
24 | | #include <google/protobuf/arena.h> |
25 | | #include <google/protobuf/arenastring.h> |
26 | | #include <google/protobuf/generated_message_util.h> |
27 | | #include <google/protobuf/metadata_lite.h> |
28 | | #include <google/protobuf/generated_message_reflection.h> |
29 | | #include <google/protobuf/message.h> |
30 | | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
31 | | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
32 | | #include <google/protobuf/generated_enum_reflection.h> |
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_LUKS2_5fplain_5fJSON_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_LUKS2_5fplain_5fJSON_2eproto { |
45 | | static const uint32_t offsets[]; |
46 | | }; |
47 | | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_LUKS2_5fplain_5fJSON_2eproto; |
48 | | namespace json_proto { |
49 | | class ArrayValue; |
50 | | struct ArrayValueDefaultTypeInternal; |
51 | | extern ArrayValueDefaultTypeInternal _ArrayValue_default_instance_; |
52 | | class BooleanValue; |
53 | | struct BooleanValueDefaultTypeInternal; |
54 | | extern BooleanValueDefaultTypeInternal _BooleanValue_default_instance_; |
55 | | class JsonObject; |
56 | | struct JsonObjectDefaultTypeInternal; |
57 | | extern JsonObjectDefaultTypeInternal _JsonObject_default_instance_; |
58 | | class JsonValue; |
59 | | struct JsonValueDefaultTypeInternal; |
60 | | extern JsonValueDefaultTypeInternal _JsonValue_default_instance_; |
61 | | class LUKS2_both_headers; |
62 | | struct LUKS2_both_headersDefaultTypeInternal; |
63 | | extern LUKS2_both_headersDefaultTypeInternal _LUKS2_both_headers_default_instance_; |
64 | | class LUKS2_header; |
65 | | struct LUKS2_headerDefaultTypeInternal; |
66 | | extern LUKS2_headerDefaultTypeInternal _LUKS2_header_default_instance_; |
67 | | class NumberExponent; |
68 | | struct NumberExponentDefaultTypeInternal; |
69 | | extern NumberExponentDefaultTypeInternal _NumberExponent_default_instance_; |
70 | | class NumberExponentFrac; |
71 | | struct NumberExponentFracDefaultTypeInternal; |
72 | | extern NumberExponentFracDefaultTypeInternal _NumberExponentFrac_default_instance_; |
73 | | class NumberFloat; |
74 | | struct NumberFloatDefaultTypeInternal; |
75 | | extern NumberFloatDefaultTypeInternal _NumberFloat_default_instance_; |
76 | | class NumberInteger; |
77 | | struct NumberIntegerDefaultTypeInternal; |
78 | | extern NumberIntegerDefaultTypeInternal _NumberInteger_default_instance_; |
79 | | class NumberValue; |
80 | | struct NumberValueDefaultTypeInternal; |
81 | | extern NumberValueDefaultTypeInternal _NumberValue_default_instance_; |
82 | | class StringValue; |
83 | | struct StringValueDefaultTypeInternal; |
84 | | extern StringValueDefaultTypeInternal _StringValue_default_instance_; |
85 | | class object_id; |
86 | | struct object_idDefaultTypeInternal; |
87 | | extern object_idDefaultTypeInternal _object_id_default_instance_; |
88 | | class string_uint64; |
89 | | struct string_uint64DefaultTypeInternal; |
90 | | extern string_uint64DefaultTypeInternal _string_uint64_default_instance_; |
91 | | } // namespace json_proto |
92 | | PROTOBUF_NAMESPACE_OPEN |
93 | | template<> ::json_proto::ArrayValue* Arena::CreateMaybeMessage<::json_proto::ArrayValue>(Arena*); |
94 | | template<> ::json_proto::BooleanValue* Arena::CreateMaybeMessage<::json_proto::BooleanValue>(Arena*); |
95 | | template<> ::json_proto::JsonObject* Arena::CreateMaybeMessage<::json_proto::JsonObject>(Arena*); |
96 | | template<> ::json_proto::JsonValue* Arena::CreateMaybeMessage<::json_proto::JsonValue>(Arena*); |
97 | | template<> ::json_proto::LUKS2_both_headers* Arena::CreateMaybeMessage<::json_proto::LUKS2_both_headers>(Arena*); |
98 | | template<> ::json_proto::LUKS2_header* Arena::CreateMaybeMessage<::json_proto::LUKS2_header>(Arena*); |
99 | | template<> ::json_proto::NumberExponent* Arena::CreateMaybeMessage<::json_proto::NumberExponent>(Arena*); |
100 | | template<> ::json_proto::NumberExponentFrac* Arena::CreateMaybeMessage<::json_proto::NumberExponentFrac>(Arena*); |
101 | | template<> ::json_proto::NumberFloat* Arena::CreateMaybeMessage<::json_proto::NumberFloat>(Arena*); |
102 | | template<> ::json_proto::NumberInteger* Arena::CreateMaybeMessage<::json_proto::NumberInteger>(Arena*); |
103 | | template<> ::json_proto::NumberValue* Arena::CreateMaybeMessage<::json_proto::NumberValue>(Arena*); |
104 | | template<> ::json_proto::StringValue* Arena::CreateMaybeMessage<::json_proto::StringValue>(Arena*); |
105 | | template<> ::json_proto::object_id* Arena::CreateMaybeMessage<::json_proto::object_id>(Arena*); |
106 | | template<> ::json_proto::string_uint64* Arena::CreateMaybeMessage<::json_proto::string_uint64>(Arena*); |
107 | | PROTOBUF_NAMESPACE_CLOSE |
108 | | namespace json_proto { |
109 | | |
110 | | enum hash_algorithm : int { |
111 | | HASH_ALG_SHA1 = 1, |
112 | | HASH_ALG_SHA256 = 2 |
113 | | }; |
114 | | bool hash_algorithm_IsValid(int value); |
115 | | constexpr hash_algorithm hash_algorithm_MIN = HASH_ALG_SHA1; |
116 | | constexpr hash_algorithm hash_algorithm_MAX = HASH_ALG_SHA256; |
117 | | constexpr int hash_algorithm_ARRAYSIZE = hash_algorithm_MAX + 1; |
118 | | |
119 | | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* hash_algorithm_descriptor(); |
120 | | template<typename T> |
121 | | inline const std::string& hash_algorithm_Name(T enum_t_value) { |
122 | | static_assert(::std::is_same<T, hash_algorithm>::value || |
123 | | ::std::is_integral<T>::value, |
124 | | "Incorrect type passed to function hash_algorithm_Name."); |
125 | | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
126 | | hash_algorithm_descriptor(), enum_t_value); |
127 | | } |
128 | | inline bool hash_algorithm_Parse( |
129 | 0 | ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, hash_algorithm* value) { |
130 | 0 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<hash_algorithm>( |
131 | 0 | hash_algorithm_descriptor(), name, value); |
132 | 0 | } |
133 | | enum luks2_magic : int { |
134 | | INVALID = 0, |
135 | | FIRST = 1, |
136 | | SECOND = 2 |
137 | | }; |
138 | | bool luks2_magic_IsValid(int value); |
139 | | constexpr luks2_magic luks2_magic_MIN = INVALID; |
140 | | constexpr luks2_magic luks2_magic_MAX = SECOND; |
141 | | constexpr int luks2_magic_ARRAYSIZE = luks2_magic_MAX + 1; |
142 | | |
143 | | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* luks2_magic_descriptor(); |
144 | | template<typename T> |
145 | | inline const std::string& luks2_magic_Name(T enum_t_value) { |
146 | | static_assert(::std::is_same<T, luks2_magic>::value || |
147 | | ::std::is_integral<T>::value, |
148 | | "Incorrect type passed to function luks2_magic_Name."); |
149 | | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
150 | | luks2_magic_descriptor(), enum_t_value); |
151 | | } |
152 | | inline bool luks2_magic_Parse( |
153 | 0 | ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, luks2_magic* value) { |
154 | 0 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<luks2_magic>( |
155 | 0 | luks2_magic_descriptor(), name, value); |
156 | 0 | } |
157 | | enum luks_version : int { |
158 | | ONE = 1, |
159 | | TWO = 2, |
160 | | THREE = 3 |
161 | | }; |
162 | | bool luks_version_IsValid(int value); |
163 | | constexpr luks_version luks_version_MIN = ONE; |
164 | | constexpr luks_version luks_version_MAX = THREE; |
165 | | constexpr int luks_version_ARRAYSIZE = luks_version_MAX + 1; |
166 | | |
167 | | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* luks_version_descriptor(); |
168 | | template<typename T> |
169 | | inline const std::string& luks_version_Name(T enum_t_value) { |
170 | | static_assert(::std::is_same<T, luks_version>::value || |
171 | | ::std::is_integral<T>::value, |
172 | | "Incorrect type passed to function luks_version_Name."); |
173 | | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
174 | | luks_version_descriptor(), enum_t_value); |
175 | | } |
176 | | inline bool luks_version_Parse( |
177 | 0 | ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, luks_version* value) { |
178 | 0 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<luks_version>( |
179 | 0 | luks_version_descriptor(), name, value); |
180 | 0 | } |
181 | | enum hdr_size : int { |
182 | | size_16_KB = 16384, |
183 | | size_32_KB = 32768, |
184 | | size_64_KB = 65536 |
185 | | }; |
186 | | bool hdr_size_IsValid(int value); |
187 | | constexpr hdr_size hdr_size_MIN = size_16_KB; |
188 | | constexpr hdr_size hdr_size_MAX = size_64_KB; |
189 | | constexpr int hdr_size_ARRAYSIZE = hdr_size_MAX + 1; |
190 | | |
191 | | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* hdr_size_descriptor(); |
192 | | template<typename T> |
193 | | inline const std::string& hdr_size_Name(T enum_t_value) { |
194 | | static_assert(::std::is_same<T, hdr_size>::value || |
195 | | ::std::is_integral<T>::value, |
196 | | "Incorrect type passed to function hdr_size_Name."); |
197 | | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
198 | | hdr_size_descriptor(), enum_t_value); |
199 | | } |
200 | | inline bool hdr_size_Parse( |
201 | 0 | ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, hdr_size* value) { |
202 | 0 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<hdr_size>( |
203 | 0 | hdr_size_descriptor(), name, value); |
204 | 0 | } |
205 | | enum seqid_description : int { |
206 | | PRIMARY_GREATER = 0, |
207 | | SECONDARY_GREATER = 1, |
208 | | EQUAL = 2 |
209 | | }; |
210 | | bool seqid_description_IsValid(int value); |
211 | | constexpr seqid_description seqid_description_MIN = PRIMARY_GREATER; |
212 | | constexpr seqid_description seqid_description_MAX = EQUAL; |
213 | | constexpr int seqid_description_ARRAYSIZE = seqid_description_MAX + 1; |
214 | | |
215 | | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* seqid_description_descriptor(); |
216 | | template<typename T> |
217 | | inline const std::string& seqid_description_Name(T enum_t_value) { |
218 | | static_assert(::std::is_same<T, seqid_description>::value || |
219 | | ::std::is_integral<T>::value, |
220 | | "Incorrect type passed to function seqid_description_Name."); |
221 | | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
222 | | seqid_description_descriptor(), enum_t_value); |
223 | | } |
224 | | inline bool seqid_description_Parse( |
225 | 0 | ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, seqid_description* value) { |
226 | 0 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<seqid_description>( |
227 | 0 | seqid_description_descriptor(), name, value); |
228 | 0 | } |
229 | | // =================================================================== |
230 | | |
231 | | class object_id final : |
232 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:json_proto.object_id) */ { |
233 | | public: |
234 | 0 | inline object_id() : object_id(nullptr) {} |
235 | | ~object_id() override; |
236 | | explicit PROTOBUF_CONSTEXPR object_id(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
237 | | |
238 | | object_id(const object_id& from); |
239 | | object_id(object_id&& from) noexcept |
240 | 0 | : object_id() { |
241 | 0 | *this = ::std::move(from); |
242 | 0 | } |
243 | | |
244 | 0 | inline object_id& operator=(const object_id& from) { |
245 | 0 | CopyFrom(from); |
246 | 0 | return *this; |
247 | 0 | } |
248 | 0 | inline object_id& operator=(object_id&& from) noexcept { |
249 | 0 | if (this == &from) return *this; |
250 | 0 | if (GetOwningArena() == from.GetOwningArena() |
251 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
252 | 0 | && GetOwningArena() != nullptr |
253 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
254 | 0 | ) { |
255 | 0 | InternalSwap(&from); |
256 | 0 | } else { |
257 | 0 | CopyFrom(from); |
258 | 0 | } |
259 | 0 | return *this; |
260 | 0 | } |
261 | | |
262 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
263 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
264 | 0 | } |
265 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
266 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
267 | 0 | } |
268 | | |
269 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
270 | 0 | return GetDescriptor(); |
271 | 0 | } |
272 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
273 | 0 | return default_instance().GetMetadata().descriptor; |
274 | 0 | } |
275 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
276 | 0 | return default_instance().GetMetadata().reflection; |
277 | 0 | } |
278 | 0 | static const object_id& default_instance() { |
279 | 0 | return *internal_default_instance(); |
280 | 0 | } |
281 | | enum IdCase { |
282 | | kIntId = 1, |
283 | | kStringId = 2, |
284 | | ID_NOT_SET = 0, |
285 | | }; |
286 | | |
287 | 0 | static inline const object_id* internal_default_instance() { |
288 | 0 | return reinterpret_cast<const object_id*>( |
289 | 0 | &_object_id_default_instance_); |
290 | 0 | } |
291 | | static constexpr int kIndexInFileMessages = |
292 | | 0; |
293 | | |
294 | 0 | friend void swap(object_id& a, object_id& b) { |
295 | 0 | a.Swap(&b); |
296 | 0 | } |
297 | 0 | inline void Swap(object_id* other) { |
298 | 0 | if (other == this) return; |
299 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
300 | 0 | if (GetOwningArena() != nullptr && |
301 | 0 | GetOwningArena() == other->GetOwningArena()) { |
302 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
303 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
304 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
305 | 0 | InternalSwap(other); |
306 | 0 | } else { |
307 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
308 | 0 | } |
309 | 0 | } |
310 | 0 | void UnsafeArenaSwap(object_id* other) { |
311 | 0 | if (other == this) return; |
312 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
313 | 0 | InternalSwap(other); |
314 | 0 | } |
315 | | |
316 | | // implements Message ---------------------------------------------- |
317 | | |
318 | 0 | object_id* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
319 | 0 | return CreateMaybeMessage<object_id>(arena); |
320 | 0 | } |
321 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
322 | | void CopyFrom(const object_id& from); |
323 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
324 | 0 | void MergeFrom( const object_id& from) { |
325 | 0 | object_id::MergeImpl(*this, from); |
326 | 0 | } |
327 | | private: |
328 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
329 | | public: |
330 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
331 | | bool IsInitialized() const final; |
332 | | |
333 | | size_t ByteSizeLong() const final; |
334 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
335 | | uint8_t* _InternalSerialize( |
336 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
337 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
338 | | |
339 | | private: |
340 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
341 | | void SharedDtor(); |
342 | | void SetCachedSize(int size) const final; |
343 | | void InternalSwap(object_id* other); |
344 | | |
345 | | private: |
346 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
347 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
348 | 0 | return "json_proto.object_id"; |
349 | 0 | } |
350 | | protected: |
351 | | explicit object_id(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
352 | | bool is_message_owned = false); |
353 | | public: |
354 | | |
355 | | static const ClassData _class_data_; |
356 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
357 | | |
358 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
359 | | |
360 | | // nested types ---------------------------------------------------- |
361 | | |
362 | | // accessors ------------------------------------------------------- |
363 | | |
364 | | enum : int { |
365 | | kIntIdFieldNumber = 1, |
366 | | kStringIdFieldNumber = 2, |
367 | | }; |
368 | | // uint32 int_id = 1; |
369 | | bool has_int_id() const; |
370 | | private: |
371 | | bool _internal_has_int_id() const; |
372 | | public: |
373 | | void clear_int_id(); |
374 | | uint32_t int_id() const; |
375 | | void set_int_id(uint32_t value); |
376 | | private: |
377 | | uint32_t _internal_int_id() const; |
378 | | void _internal_set_int_id(uint32_t value); |
379 | | public: |
380 | | |
381 | | // string string_id = 2; |
382 | | bool has_string_id() const; |
383 | | private: |
384 | | bool _internal_has_string_id() const; |
385 | | public: |
386 | | void clear_string_id(); |
387 | | const std::string& string_id() const; |
388 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
389 | | void set_string_id(ArgT0&& arg0, ArgT... args); |
390 | | std::string* mutable_string_id(); |
391 | | PROTOBUF_NODISCARD std::string* release_string_id(); |
392 | | void set_allocated_string_id(std::string* string_id); |
393 | | private: |
394 | | const std::string& _internal_string_id() const; |
395 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_string_id(const std::string& value); |
396 | | std::string* _internal_mutable_string_id(); |
397 | | public: |
398 | | |
399 | | void clear_id(); |
400 | | IdCase id_case() const; |
401 | | // @@protoc_insertion_point(class_scope:json_proto.object_id) |
402 | | private: |
403 | | class _Internal; |
404 | | void set_has_int_id(); |
405 | | void set_has_string_id(); |
406 | | |
407 | | inline bool has_id() const; |
408 | | inline void clear_has_id(); |
409 | | |
410 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
411 | | typedef void InternalArenaConstructable_; |
412 | | typedef void DestructorSkippable_; |
413 | | struct Impl_ { |
414 | | union IdUnion { |
415 | 0 | constexpr IdUnion() : _constinit_{} {} |
416 | | ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; |
417 | | uint32_t int_id_; |
418 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_id_; |
419 | | } id_; |
420 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
421 | | uint32_t _oneof_case_[1]; |
422 | | |
423 | | }; |
424 | | union { Impl_ _impl_; }; |
425 | | friend struct ::TableStruct_LUKS2_5fplain_5fJSON_2eproto; |
426 | | }; |
427 | | // ------------------------------------------------------------------- |
428 | | |
429 | | class string_uint64 final : |
430 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:json_proto.string_uint64) */ { |
431 | | public: |
432 | 0 | inline string_uint64() : string_uint64(nullptr) {} |
433 | | ~string_uint64() override; |
434 | | explicit PROTOBUF_CONSTEXPR string_uint64(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
435 | | |
436 | | string_uint64(const string_uint64& from); |
437 | | string_uint64(string_uint64&& from) noexcept |
438 | 0 | : string_uint64() { |
439 | 0 | *this = ::std::move(from); |
440 | 0 | } |
441 | | |
442 | 0 | inline string_uint64& operator=(const string_uint64& from) { |
443 | 0 | CopyFrom(from); |
444 | 0 | return *this; |
445 | 0 | } |
446 | 0 | inline string_uint64& operator=(string_uint64&& from) noexcept { |
447 | 0 | if (this == &from) return *this; |
448 | 0 | if (GetOwningArena() == from.GetOwningArena() |
449 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
450 | 0 | && GetOwningArena() != nullptr |
451 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
452 | 0 | ) { |
453 | 0 | InternalSwap(&from); |
454 | 0 | } else { |
455 | 0 | CopyFrom(from); |
456 | 0 | } |
457 | 0 | return *this; |
458 | 0 | } |
459 | | |
460 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
461 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
462 | 0 | } |
463 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
464 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
465 | 0 | } |
466 | | |
467 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
468 | 0 | return GetDescriptor(); |
469 | 0 | } |
470 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
471 | 0 | return default_instance().GetMetadata().descriptor; |
472 | 0 | } |
473 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
474 | 0 | return default_instance().GetMetadata().reflection; |
475 | 0 | } |
476 | 0 | static const string_uint64& default_instance() { |
477 | 0 | return *internal_default_instance(); |
478 | 0 | } |
479 | | enum NumberCase { |
480 | | kUintNum = 2, |
481 | | kStringNum = 3, |
482 | | NUMBER_NOT_SET = 0, |
483 | | }; |
484 | | |
485 | 0 | static inline const string_uint64* internal_default_instance() { |
486 | 0 | return reinterpret_cast<const string_uint64*>( |
487 | 0 | &_string_uint64_default_instance_); |
488 | 0 | } |
489 | | static constexpr int kIndexInFileMessages = |
490 | | 1; |
491 | | |
492 | 0 | friend void swap(string_uint64& a, string_uint64& b) { |
493 | 0 | a.Swap(&b); |
494 | 0 | } |
495 | 0 | inline void Swap(string_uint64* other) { |
496 | 0 | if (other == this) return; |
497 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
498 | 0 | if (GetOwningArena() != nullptr && |
499 | 0 | GetOwningArena() == other->GetOwningArena()) { |
500 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
501 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
502 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
503 | 0 | InternalSwap(other); |
504 | 0 | } else { |
505 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
506 | 0 | } |
507 | 0 | } |
508 | 0 | void UnsafeArenaSwap(string_uint64* other) { |
509 | 0 | if (other == this) return; |
510 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
511 | 0 | InternalSwap(other); |
512 | 0 | } |
513 | | |
514 | | // implements Message ---------------------------------------------- |
515 | | |
516 | 0 | string_uint64* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
517 | 0 | return CreateMaybeMessage<string_uint64>(arena); |
518 | 0 | } |
519 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
520 | | void CopyFrom(const string_uint64& from); |
521 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
522 | 0 | void MergeFrom( const string_uint64& from) { |
523 | 0 | string_uint64::MergeImpl(*this, from); |
524 | 0 | } |
525 | | private: |
526 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
527 | | public: |
528 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
529 | | bool IsInitialized() const final; |
530 | | |
531 | | size_t ByteSizeLong() const final; |
532 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
533 | | uint8_t* _InternalSerialize( |
534 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
535 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
536 | | |
537 | | private: |
538 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
539 | | void SharedDtor(); |
540 | | void SetCachedSize(int size) const final; |
541 | | void InternalSwap(string_uint64* other); |
542 | | |
543 | | private: |
544 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
545 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
546 | 0 | return "json_proto.string_uint64"; |
547 | 0 | } |
548 | | protected: |
549 | | explicit string_uint64(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
550 | | bool is_message_owned = false); |
551 | | public: |
552 | | |
553 | | static const ClassData _class_data_; |
554 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
555 | | |
556 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
557 | | |
558 | | // nested types ---------------------------------------------------- |
559 | | |
560 | | // accessors ------------------------------------------------------- |
561 | | |
562 | | enum : int { |
563 | | kNegativeFieldNumber = 1, |
564 | | kUintNumFieldNumber = 2, |
565 | | kStringNumFieldNumber = 3, |
566 | | }; |
567 | | // required bool negative = 1; |
568 | | bool has_negative() const; |
569 | | private: |
570 | | bool _internal_has_negative() const; |
571 | | public: |
572 | | void clear_negative(); |
573 | | bool negative() const; |
574 | | void set_negative(bool value); |
575 | | private: |
576 | | bool _internal_negative() const; |
577 | | void _internal_set_negative(bool value); |
578 | | public: |
579 | | |
580 | | // uint32 uint_num = 2; |
581 | | bool has_uint_num() const; |
582 | | private: |
583 | | bool _internal_has_uint_num() const; |
584 | | public: |
585 | | void clear_uint_num(); |
586 | | uint32_t uint_num() const; |
587 | | void set_uint_num(uint32_t value); |
588 | | private: |
589 | | uint32_t _internal_uint_num() const; |
590 | | void _internal_set_uint_num(uint32_t value); |
591 | | public: |
592 | | |
593 | | // string string_num = 3; |
594 | | bool has_string_num() const; |
595 | | private: |
596 | | bool _internal_has_string_num() const; |
597 | | public: |
598 | | void clear_string_num(); |
599 | | const std::string& string_num() const; |
600 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
601 | | void set_string_num(ArgT0&& arg0, ArgT... args); |
602 | | std::string* mutable_string_num(); |
603 | | PROTOBUF_NODISCARD std::string* release_string_num(); |
604 | | void set_allocated_string_num(std::string* string_num); |
605 | | private: |
606 | | const std::string& _internal_string_num() const; |
607 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_string_num(const std::string& value); |
608 | | std::string* _internal_mutable_string_num(); |
609 | | public: |
610 | | |
611 | | void clear_number(); |
612 | | NumberCase number_case() const; |
613 | | // @@protoc_insertion_point(class_scope:json_proto.string_uint64) |
614 | | private: |
615 | | class _Internal; |
616 | | void set_has_uint_num(); |
617 | | void set_has_string_num(); |
618 | | |
619 | | inline bool has_number() const; |
620 | | inline void clear_has_number(); |
621 | | |
622 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
623 | | typedef void InternalArenaConstructable_; |
624 | | typedef void DestructorSkippable_; |
625 | | struct Impl_ { |
626 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
627 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
628 | | bool negative_; |
629 | | union NumberUnion { |
630 | 0 | constexpr NumberUnion() : _constinit_{} {} |
631 | | ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; |
632 | | uint32_t uint_num_; |
633 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_num_; |
634 | | } number_; |
635 | | uint32_t _oneof_case_[1]; |
636 | | |
637 | | }; |
638 | | union { Impl_ _impl_; }; |
639 | | friend struct ::TableStruct_LUKS2_5fplain_5fJSON_2eproto; |
640 | | }; |
641 | | // ------------------------------------------------------------------- |
642 | | |
643 | | class LUKS2_header final : |
644 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:json_proto.LUKS2_header) */ { |
645 | | public: |
646 | 0 | inline LUKS2_header() : LUKS2_header(nullptr) {} |
647 | | ~LUKS2_header() override; |
648 | | explicit PROTOBUF_CONSTEXPR LUKS2_header(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
649 | | |
650 | | LUKS2_header(const LUKS2_header& from); |
651 | | LUKS2_header(LUKS2_header&& from) noexcept |
652 | 0 | : LUKS2_header() { |
653 | 0 | *this = ::std::move(from); |
654 | 0 | } |
655 | | |
656 | 0 | inline LUKS2_header& operator=(const LUKS2_header& from) { |
657 | 0 | CopyFrom(from); |
658 | 0 | return *this; |
659 | 0 | } |
660 | 0 | inline LUKS2_header& operator=(LUKS2_header&& from) noexcept { |
661 | 0 | if (this == &from) return *this; |
662 | 0 | if (GetOwningArena() == from.GetOwningArena() |
663 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
664 | 0 | && GetOwningArena() != nullptr |
665 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
666 | 0 | ) { |
667 | 0 | InternalSwap(&from); |
668 | 0 | } else { |
669 | 0 | CopyFrom(from); |
670 | 0 | } |
671 | 0 | return *this; |
672 | 0 | } |
673 | | |
674 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
675 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
676 | 0 | } |
677 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
678 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
679 | 0 | } |
680 | | |
681 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
682 | 0 | return GetDescriptor(); |
683 | 0 | } |
684 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
685 | 0 | return default_instance().GetMetadata().descriptor; |
686 | 0 | } |
687 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
688 | 0 | return default_instance().GetMetadata().reflection; |
689 | 0 | } |
690 | 0 | static const LUKS2_header& default_instance() { |
691 | 0 | return *internal_default_instance(); |
692 | 0 | } |
693 | 0 | static inline const LUKS2_header* internal_default_instance() { |
694 | 0 | return reinterpret_cast<const LUKS2_header*>( |
695 | 0 | &_LUKS2_header_default_instance_); |
696 | 0 | } |
697 | | static constexpr int kIndexInFileMessages = |
698 | | 2; |
699 | | |
700 | 0 | friend void swap(LUKS2_header& a, LUKS2_header& b) { |
701 | 0 | a.Swap(&b); |
702 | 0 | } |
703 | 0 | inline void Swap(LUKS2_header* other) { |
704 | 0 | if (other == this) return; |
705 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
706 | 0 | if (GetOwningArena() != nullptr && |
707 | 0 | GetOwningArena() == other->GetOwningArena()) { |
708 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
709 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
710 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
711 | 0 | InternalSwap(other); |
712 | 0 | } else { |
713 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
714 | 0 | } |
715 | 0 | } |
716 | 0 | void UnsafeArenaSwap(LUKS2_header* other) { |
717 | 0 | if (other == this) return; |
718 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
719 | 0 | InternalSwap(other); |
720 | 0 | } |
721 | | |
722 | | // implements Message ---------------------------------------------- |
723 | | |
724 | 6.20k | LUKS2_header* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
725 | 6.20k | return CreateMaybeMessage<LUKS2_header>(arena); |
726 | 6.20k | } |
727 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
728 | | void CopyFrom(const LUKS2_header& from); |
729 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
730 | 0 | void MergeFrom( const LUKS2_header& from) { |
731 | 0 | LUKS2_header::MergeImpl(*this, from); |
732 | 0 | } |
733 | | private: |
734 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
735 | | public: |
736 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
737 | | bool IsInitialized() const final; |
738 | | |
739 | | size_t ByteSizeLong() const final; |
740 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
741 | | uint8_t* _InternalSerialize( |
742 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
743 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
744 | | |
745 | | private: |
746 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
747 | | void SharedDtor(); |
748 | | void SetCachedSize(int size) const final; |
749 | | void InternalSwap(LUKS2_header* other); |
750 | | |
751 | | private: |
752 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
753 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
754 | 0 | return "json_proto.LUKS2_header"; |
755 | 0 | } |
756 | | protected: |
757 | | explicit LUKS2_header(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
758 | | bool is_message_owned = false); |
759 | | public: |
760 | | |
761 | | static const ClassData _class_data_; |
762 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
763 | | |
764 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
765 | | |
766 | | // nested types ---------------------------------------------------- |
767 | | |
768 | | // accessors ------------------------------------------------------- |
769 | | |
770 | | enum : int { |
771 | | kMagicFieldNumber = 2, |
772 | | kUseCorrectChecksumFieldNumber = 4, |
773 | | kSelectedOffsetFieldNumber = 5, |
774 | | kVersionFieldNumber = 1, |
775 | | kHdrSizeFieldNumber = 3, |
776 | | }; |
777 | | // required .json_proto.luks2_magic magic = 2; |
778 | | bool has_magic() const; |
779 | | private: |
780 | | bool _internal_has_magic() const; |
781 | | public: |
782 | | void clear_magic(); |
783 | | ::json_proto::luks2_magic magic() const; |
784 | | void set_magic(::json_proto::luks2_magic value); |
785 | | private: |
786 | | ::json_proto::luks2_magic _internal_magic() const; |
787 | | void _internal_set_magic(::json_proto::luks2_magic value); |
788 | | public: |
789 | | |
790 | | // required bool use_correct_checksum = 4; |
791 | | bool has_use_correct_checksum() const; |
792 | | private: |
793 | | bool _internal_has_use_correct_checksum() const; |
794 | | public: |
795 | | void clear_use_correct_checksum(); |
796 | | bool use_correct_checksum() const; |
797 | | void set_use_correct_checksum(bool value); |
798 | | private: |
799 | | bool _internal_use_correct_checksum() const; |
800 | | void _internal_set_use_correct_checksum(bool value); |
801 | | public: |
802 | | |
803 | | // optional uint64 selected_offset = 5; |
804 | | bool has_selected_offset() const; |
805 | | private: |
806 | | bool _internal_has_selected_offset() const; |
807 | | public: |
808 | | void clear_selected_offset(); |
809 | | uint64_t selected_offset() const; |
810 | | void set_selected_offset(uint64_t value); |
811 | | private: |
812 | | uint64_t _internal_selected_offset() const; |
813 | | void _internal_set_selected_offset(uint64_t value); |
814 | | public: |
815 | | |
816 | | // required .json_proto.luks_version version = 1; |
817 | | bool has_version() const; |
818 | | private: |
819 | | bool _internal_has_version() const; |
820 | | public: |
821 | | void clear_version(); |
822 | | ::json_proto::luks_version version() const; |
823 | | void set_version(::json_proto::luks_version value); |
824 | | private: |
825 | | ::json_proto::luks_version _internal_version() const; |
826 | | void _internal_set_version(::json_proto::luks_version value); |
827 | | public: |
828 | | |
829 | | // required .json_proto.hdr_size hdr_size = 3; |
830 | | bool has_hdr_size() const; |
831 | | private: |
832 | | bool _internal_has_hdr_size() const; |
833 | | public: |
834 | | void clear_hdr_size(); |
835 | | ::json_proto::hdr_size hdr_size() const; |
836 | | void set_hdr_size(::json_proto::hdr_size value); |
837 | | private: |
838 | | ::json_proto::hdr_size _internal_hdr_size() const; |
839 | | void _internal_set_hdr_size(::json_proto::hdr_size value); |
840 | | public: |
841 | | |
842 | | // @@protoc_insertion_point(class_scope:json_proto.LUKS2_header) |
843 | | private: |
844 | | class _Internal; |
845 | | |
846 | | // helper for ByteSizeLong() |
847 | | size_t RequiredFieldsByteSizeFallback() const; |
848 | | |
849 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
850 | | typedef void InternalArenaConstructable_; |
851 | | typedef void DestructorSkippable_; |
852 | | struct Impl_ { |
853 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
854 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
855 | | int magic_; |
856 | | bool use_correct_checksum_; |
857 | | uint64_t selected_offset_; |
858 | | int version_; |
859 | | int hdr_size_; |
860 | | }; |
861 | | union { Impl_ _impl_; }; |
862 | | friend struct ::TableStruct_LUKS2_5fplain_5fJSON_2eproto; |
863 | | }; |
864 | | // ------------------------------------------------------------------- |
865 | | |
866 | | class LUKS2_both_headers final : |
867 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:json_proto.LUKS2_both_headers) */ { |
868 | | public: |
869 | 3.12k | inline LUKS2_both_headers() : LUKS2_both_headers(nullptr) {} |
870 | | ~LUKS2_both_headers() override; |
871 | | explicit PROTOBUF_CONSTEXPR LUKS2_both_headers(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
872 | | |
873 | | LUKS2_both_headers(const LUKS2_both_headers& from); |
874 | | LUKS2_both_headers(LUKS2_both_headers&& from) noexcept |
875 | 0 | : LUKS2_both_headers() { |
876 | 0 | *this = ::std::move(from); |
877 | 0 | } |
878 | | |
879 | 0 | inline LUKS2_both_headers& operator=(const LUKS2_both_headers& from) { |
880 | 0 | CopyFrom(from); |
881 | 0 | return *this; |
882 | 0 | } |
883 | 0 | inline LUKS2_both_headers& operator=(LUKS2_both_headers&& from) noexcept { |
884 | 0 | if (this == &from) return *this; |
885 | 0 | if (GetOwningArena() == from.GetOwningArena() |
886 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
887 | 0 | && GetOwningArena() != nullptr |
888 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
889 | 0 | ) { |
890 | 0 | InternalSwap(&from); |
891 | 0 | } else { |
892 | 0 | CopyFrom(from); |
893 | 0 | } |
894 | 0 | return *this; |
895 | 0 | } |
896 | | |
897 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
898 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
899 | 0 | } |
900 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
901 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
902 | 0 | } |
903 | | |
904 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
905 | 0 | return GetDescriptor(); |
906 | 0 | } |
907 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
908 | 0 | return default_instance().GetMetadata().descriptor; |
909 | 0 | } |
910 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
911 | 0 | return default_instance().GetMetadata().reflection; |
912 | 0 | } |
913 | 0 | static const LUKS2_both_headers& default_instance() { |
914 | 0 | return *internal_default_instance(); |
915 | 0 | } |
916 | 9.38k | static inline const LUKS2_both_headers* internal_default_instance() { |
917 | 9.38k | return reinterpret_cast<const LUKS2_both_headers*>( |
918 | 9.38k | &_LUKS2_both_headers_default_instance_); |
919 | 9.38k | } |
920 | | static constexpr int kIndexInFileMessages = |
921 | | 3; |
922 | | |
923 | 0 | friend void swap(LUKS2_both_headers& a, LUKS2_both_headers& b) { |
924 | 0 | a.Swap(&b); |
925 | 0 | } |
926 | 0 | inline void Swap(LUKS2_both_headers* other) { |
927 | 0 | if (other == this) return; |
928 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
929 | 0 | if (GetOwningArena() != nullptr && |
930 | 0 | GetOwningArena() == other->GetOwningArena()) { |
931 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
932 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
933 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
934 | 0 | InternalSwap(other); |
935 | 0 | } else { |
936 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
937 | 0 | } |
938 | 0 | } |
939 | 0 | void UnsafeArenaSwap(LUKS2_both_headers* other) { |
940 | 0 | if (other == this) return; |
941 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
942 | 0 | InternalSwap(other); |
943 | 0 | } |
944 | | |
945 | | // implements Message ---------------------------------------------- |
946 | | |
947 | 0 | LUKS2_both_headers* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
948 | 0 | return CreateMaybeMessage<LUKS2_both_headers>(arena); |
949 | 0 | } |
950 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
951 | | void CopyFrom(const LUKS2_both_headers& from); |
952 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
953 | 0 | void MergeFrom( const LUKS2_both_headers& from) { |
954 | 0 | LUKS2_both_headers::MergeImpl(*this, from); |
955 | 0 | } |
956 | | private: |
957 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
958 | | public: |
959 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
960 | | bool IsInitialized() const final; |
961 | | |
962 | | size_t ByteSizeLong() const final; |
963 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
964 | | uint8_t* _InternalSerialize( |
965 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
966 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
967 | | |
968 | | private: |
969 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
970 | | void SharedDtor(); |
971 | | void SetCachedSize(int size) const final; |
972 | | void InternalSwap(LUKS2_both_headers* other); |
973 | | |
974 | | private: |
975 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
976 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
977 | 0 | return "json_proto.LUKS2_both_headers"; |
978 | 0 | } |
979 | | protected: |
980 | | explicit LUKS2_both_headers(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
981 | | bool is_message_owned = false); |
982 | | public: |
983 | | |
984 | | static const ClassData _class_data_; |
985 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
986 | | |
987 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
988 | | |
989 | | // nested types ---------------------------------------------------- |
990 | | |
991 | | // accessors ------------------------------------------------------- |
992 | | |
993 | | enum : int { |
994 | | kPrimaryHeaderFieldNumber = 1, |
995 | | kSecondaryHeaderFieldNumber = 2, |
996 | | kJsonAreaFieldNumber = 4, |
997 | | kSeqidFieldNumber = 3, |
998 | | }; |
999 | | // required .json_proto.LUKS2_header primary_header = 1; |
1000 | | bool has_primary_header() const; |
1001 | | private: |
1002 | | bool _internal_has_primary_header() const; |
1003 | | public: |
1004 | | void clear_primary_header(); |
1005 | | const ::json_proto::LUKS2_header& primary_header() const; |
1006 | | PROTOBUF_NODISCARD ::json_proto::LUKS2_header* release_primary_header(); |
1007 | | ::json_proto::LUKS2_header* mutable_primary_header(); |
1008 | | void set_allocated_primary_header(::json_proto::LUKS2_header* primary_header); |
1009 | | private: |
1010 | | const ::json_proto::LUKS2_header& _internal_primary_header() const; |
1011 | | ::json_proto::LUKS2_header* _internal_mutable_primary_header(); |
1012 | | public: |
1013 | | void unsafe_arena_set_allocated_primary_header( |
1014 | | ::json_proto::LUKS2_header* primary_header); |
1015 | | ::json_proto::LUKS2_header* unsafe_arena_release_primary_header(); |
1016 | | |
1017 | | // required .json_proto.LUKS2_header secondary_header = 2; |
1018 | | bool has_secondary_header() const; |
1019 | | private: |
1020 | | bool _internal_has_secondary_header() const; |
1021 | | public: |
1022 | | void clear_secondary_header(); |
1023 | | const ::json_proto::LUKS2_header& secondary_header() const; |
1024 | | PROTOBUF_NODISCARD ::json_proto::LUKS2_header* release_secondary_header(); |
1025 | | ::json_proto::LUKS2_header* mutable_secondary_header(); |
1026 | | void set_allocated_secondary_header(::json_proto::LUKS2_header* secondary_header); |
1027 | | private: |
1028 | | const ::json_proto::LUKS2_header& _internal_secondary_header() const; |
1029 | | ::json_proto::LUKS2_header* _internal_mutable_secondary_header(); |
1030 | | public: |
1031 | | void unsafe_arena_set_allocated_secondary_header( |
1032 | | ::json_proto::LUKS2_header* secondary_header); |
1033 | | ::json_proto::LUKS2_header* unsafe_arena_release_secondary_header(); |
1034 | | |
1035 | | // required .json_proto.JsonObject json_area = 4; |
1036 | | bool has_json_area() const; |
1037 | | private: |
1038 | | bool _internal_has_json_area() const; |
1039 | | public: |
1040 | | void clear_json_area(); |
1041 | | const ::json_proto::JsonObject& json_area() const; |
1042 | | PROTOBUF_NODISCARD ::json_proto::JsonObject* release_json_area(); |
1043 | | ::json_proto::JsonObject* mutable_json_area(); |
1044 | | void set_allocated_json_area(::json_proto::JsonObject* json_area); |
1045 | | private: |
1046 | | const ::json_proto::JsonObject& _internal_json_area() const; |
1047 | | ::json_proto::JsonObject* _internal_mutable_json_area(); |
1048 | | public: |
1049 | | void unsafe_arena_set_allocated_json_area( |
1050 | | ::json_proto::JsonObject* json_area); |
1051 | | ::json_proto::JsonObject* unsafe_arena_release_json_area(); |
1052 | | |
1053 | | // required .json_proto.seqid_description seqid = 3; |
1054 | | bool has_seqid() const; |
1055 | | private: |
1056 | | bool _internal_has_seqid() const; |
1057 | | public: |
1058 | | void clear_seqid(); |
1059 | | ::json_proto::seqid_description seqid() const; |
1060 | | void set_seqid(::json_proto::seqid_description value); |
1061 | | private: |
1062 | | ::json_proto::seqid_description _internal_seqid() const; |
1063 | | void _internal_set_seqid(::json_proto::seqid_description value); |
1064 | | public: |
1065 | | |
1066 | | // @@protoc_insertion_point(class_scope:json_proto.LUKS2_both_headers) |
1067 | | private: |
1068 | | class _Internal; |
1069 | | |
1070 | | // helper for ByteSizeLong() |
1071 | | size_t RequiredFieldsByteSizeFallback() const; |
1072 | | |
1073 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1074 | | typedef void InternalArenaConstructable_; |
1075 | | typedef void DestructorSkippable_; |
1076 | | struct Impl_ { |
1077 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
1078 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1079 | | ::json_proto::LUKS2_header* primary_header_; |
1080 | | ::json_proto::LUKS2_header* secondary_header_; |
1081 | | ::json_proto::JsonObject* json_area_; |
1082 | | int seqid_; |
1083 | | }; |
1084 | | union { Impl_ _impl_; }; |
1085 | | friend struct ::TableStruct_LUKS2_5fplain_5fJSON_2eproto; |
1086 | | }; |
1087 | | // ------------------------------------------------------------------- |
1088 | | |
1089 | | class JsonObject final : |
1090 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:json_proto.JsonObject) */ { |
1091 | | public: |
1092 | 0 | inline JsonObject() : JsonObject(nullptr) {} |
1093 | | ~JsonObject() override; |
1094 | | explicit PROTOBUF_CONSTEXPR JsonObject(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
1095 | | |
1096 | | JsonObject(const JsonObject& from); |
1097 | | JsonObject(JsonObject&& from) noexcept |
1098 | 0 | : JsonObject() { |
1099 | 0 | *this = ::std::move(from); |
1100 | 0 | } |
1101 | | |
1102 | 0 | inline JsonObject& operator=(const JsonObject& from) { |
1103 | 0 | CopyFrom(from); |
1104 | 0 | return *this; |
1105 | 0 | } |
1106 | 0 | inline JsonObject& operator=(JsonObject&& from) noexcept { |
1107 | 0 | if (this == &from) return *this; |
1108 | 0 | if (GetOwningArena() == from.GetOwningArena() |
1109 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
1110 | 0 | && GetOwningArena() != nullptr |
1111 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
1112 | 0 | ) { |
1113 | 0 | InternalSwap(&from); |
1114 | 0 | } else { |
1115 | 0 | CopyFrom(from); |
1116 | 0 | } |
1117 | 0 | return *this; |
1118 | 0 | } |
1119 | | |
1120 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
1121 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
1122 | 0 | } |
1123 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
1124 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1125 | 0 | } |
1126 | | |
1127 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1128 | 0 | return GetDescriptor(); |
1129 | 0 | } |
1130 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1131 | 0 | return default_instance().GetMetadata().descriptor; |
1132 | 0 | } |
1133 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1134 | 0 | return default_instance().GetMetadata().reflection; |
1135 | 0 | } |
1136 | 0 | static const JsonObject& default_instance() { |
1137 | 0 | return *internal_default_instance(); |
1138 | 0 | } |
1139 | 5.89k | static inline const JsonObject* internal_default_instance() { |
1140 | 5.89k | return reinterpret_cast<const JsonObject*>( |
1141 | 5.89k | &_JsonObject_default_instance_); |
1142 | 5.89k | } |
1143 | | static constexpr int kIndexInFileMessages = |
1144 | | 4; |
1145 | | |
1146 | 0 | friend void swap(JsonObject& a, JsonObject& b) { |
1147 | 0 | a.Swap(&b); |
1148 | 0 | } |
1149 | 0 | inline void Swap(JsonObject* other) { |
1150 | 0 | if (other == this) return; |
1151 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
1152 | 0 | if (GetOwningArena() != nullptr && |
1153 | 0 | GetOwningArena() == other->GetOwningArena()) { |
1154 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
1155 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
1156 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
1157 | 0 | InternalSwap(other); |
1158 | 0 | } else { |
1159 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1160 | 0 | } |
1161 | 0 | } |
1162 | 0 | void UnsafeArenaSwap(JsonObject* other) { |
1163 | 0 | if (other == this) return; |
1164 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
1165 | 0 | InternalSwap(other); |
1166 | 0 | } |
1167 | | |
1168 | | // implements Message ---------------------------------------------- |
1169 | | |
1170 | 5.89k | JsonObject* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
1171 | 5.89k | return CreateMaybeMessage<JsonObject>(arena); |
1172 | 5.89k | } |
1173 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
1174 | | void CopyFrom(const JsonObject& from); |
1175 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
1176 | 0 | void MergeFrom( const JsonObject& from) { |
1177 | 0 | JsonObject::MergeImpl(*this, from); |
1178 | 0 | } |
1179 | | private: |
1180 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
1181 | | public: |
1182 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1183 | | bool IsInitialized() const final; |
1184 | | |
1185 | | size_t ByteSizeLong() const final; |
1186 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1187 | | uint8_t* _InternalSerialize( |
1188 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
1189 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
1190 | | |
1191 | | private: |
1192 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
1193 | | void SharedDtor(); |
1194 | | void SetCachedSize(int size) const final; |
1195 | | void InternalSwap(JsonObject* other); |
1196 | | |
1197 | | private: |
1198 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1199 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1200 | 0 | return "json_proto.JsonObject"; |
1201 | 0 | } |
1202 | | protected: |
1203 | | explicit JsonObject(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1204 | | bool is_message_owned = false); |
1205 | | public: |
1206 | | |
1207 | | static const ClassData _class_data_; |
1208 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
1209 | | |
1210 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1211 | | |
1212 | | // nested types ---------------------------------------------------- |
1213 | | |
1214 | | // accessors ------------------------------------------------------- |
1215 | | |
1216 | | enum : int { |
1217 | | kNameFieldNumber = 1, |
1218 | | kValueFieldNumber = 2, |
1219 | | }; |
1220 | | // required string name = 1; |
1221 | | bool has_name() const; |
1222 | | private: |
1223 | | bool _internal_has_name() const; |
1224 | | public: |
1225 | | void clear_name(); |
1226 | | const std::string& name() const; |
1227 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
1228 | | void set_name(ArgT0&& arg0, ArgT... args); |
1229 | | std::string* mutable_name(); |
1230 | | PROTOBUF_NODISCARD std::string* release_name(); |
1231 | | void set_allocated_name(std::string* name); |
1232 | | private: |
1233 | | const std::string& _internal_name() const; |
1234 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); |
1235 | | std::string* _internal_mutable_name(); |
1236 | | public: |
1237 | | |
1238 | | // required .json_proto.JsonValue value = 2; |
1239 | | bool has_value() const; |
1240 | | private: |
1241 | | bool _internal_has_value() const; |
1242 | | public: |
1243 | | void clear_value(); |
1244 | | const ::json_proto::JsonValue& value() const; |
1245 | | PROTOBUF_NODISCARD ::json_proto::JsonValue* release_value(); |
1246 | | ::json_proto::JsonValue* mutable_value(); |
1247 | | void set_allocated_value(::json_proto::JsonValue* value); |
1248 | | private: |
1249 | | const ::json_proto::JsonValue& _internal_value() const; |
1250 | | ::json_proto::JsonValue* _internal_mutable_value(); |
1251 | | public: |
1252 | | void unsafe_arena_set_allocated_value( |
1253 | | ::json_proto::JsonValue* value); |
1254 | | ::json_proto::JsonValue* unsafe_arena_release_value(); |
1255 | | |
1256 | | // @@protoc_insertion_point(class_scope:json_proto.JsonObject) |
1257 | | private: |
1258 | | class _Internal; |
1259 | | |
1260 | | // helper for ByteSizeLong() |
1261 | | size_t RequiredFieldsByteSizeFallback() const; |
1262 | | |
1263 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1264 | | typedef void InternalArenaConstructable_; |
1265 | | typedef void DestructorSkippable_; |
1266 | | struct Impl_ { |
1267 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
1268 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1269 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; |
1270 | | ::json_proto::JsonValue* value_; |
1271 | | }; |
1272 | | union { Impl_ _impl_; }; |
1273 | | friend struct ::TableStruct_LUKS2_5fplain_5fJSON_2eproto; |
1274 | | }; |
1275 | | // ------------------------------------------------------------------- |
1276 | | |
1277 | | class JsonValue final : |
1278 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:json_proto.JsonValue) */ { |
1279 | | public: |
1280 | 0 | inline JsonValue() : JsonValue(nullptr) {} |
1281 | | ~JsonValue() override; |
1282 | | explicit PROTOBUF_CONSTEXPR JsonValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
1283 | | |
1284 | | JsonValue(const JsonValue& from); |
1285 | | JsonValue(JsonValue&& from) noexcept |
1286 | 0 | : JsonValue() { |
1287 | 0 | *this = ::std::move(from); |
1288 | 0 | } |
1289 | | |
1290 | 0 | inline JsonValue& operator=(const JsonValue& from) { |
1291 | 0 | CopyFrom(from); |
1292 | 0 | return *this; |
1293 | 0 | } |
1294 | 0 | inline JsonValue& operator=(JsonValue&& from) noexcept { |
1295 | 0 | if (this == &from) return *this; |
1296 | 0 | if (GetOwningArena() == from.GetOwningArena() |
1297 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
1298 | 0 | && GetOwningArena() != nullptr |
1299 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
1300 | 0 | ) { |
1301 | 0 | InternalSwap(&from); |
1302 | 0 | } else { |
1303 | 0 | CopyFrom(from); |
1304 | 0 | } |
1305 | 0 | return *this; |
1306 | 0 | } |
1307 | | |
1308 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
1309 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
1310 | 0 | } |
1311 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
1312 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1313 | 0 | } |
1314 | | |
1315 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1316 | 0 | return GetDescriptor(); |
1317 | 0 | } |
1318 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1319 | 0 | return default_instance().GetMetadata().descriptor; |
1320 | 0 | } |
1321 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1322 | 0 | return default_instance().GetMetadata().reflection; |
1323 | 0 | } |
1324 | 0 | static const JsonValue& default_instance() { |
1325 | 0 | return *internal_default_instance(); |
1326 | 0 | } |
1327 | | enum ValueCase { |
1328 | | kObjectValue = 1, |
1329 | | kArrayValue = 2, |
1330 | | kNumberValue = 3, |
1331 | | kStringValue = 4, |
1332 | | kBooleanValue = 5, |
1333 | | VALUE_NOT_SET = 0, |
1334 | | }; |
1335 | | |
1336 | 0 | static inline const JsonValue* internal_default_instance() { |
1337 | 0 | return reinterpret_cast<const JsonValue*>( |
1338 | 0 | &_JsonValue_default_instance_); |
1339 | 0 | } |
1340 | | static constexpr int kIndexInFileMessages = |
1341 | | 5; |
1342 | | |
1343 | 0 | friend void swap(JsonValue& a, JsonValue& b) { |
1344 | 0 | a.Swap(&b); |
1345 | 0 | } |
1346 | 0 | inline void Swap(JsonValue* other) { |
1347 | 0 | if (other == this) return; |
1348 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
1349 | 0 | if (GetOwningArena() != nullptr && |
1350 | 0 | GetOwningArena() == other->GetOwningArena()) { |
1351 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
1352 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
1353 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
1354 | 0 | InternalSwap(other); |
1355 | 0 | } else { |
1356 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1357 | 0 | } |
1358 | 0 | } |
1359 | 0 | void UnsafeArenaSwap(JsonValue* other) { |
1360 | 0 | if (other == this) return; |
1361 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
1362 | 0 | InternalSwap(other); |
1363 | 0 | } |
1364 | | |
1365 | | // implements Message ---------------------------------------------- |
1366 | | |
1367 | 15.3k | JsonValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
1368 | 15.3k | return CreateMaybeMessage<JsonValue>(arena); |
1369 | 15.3k | } |
1370 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
1371 | | void CopyFrom(const JsonValue& from); |
1372 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
1373 | 0 | void MergeFrom( const JsonValue& from) { |
1374 | 0 | JsonValue::MergeImpl(*this, from); |
1375 | 0 | } |
1376 | | private: |
1377 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
1378 | | public: |
1379 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1380 | | bool IsInitialized() const final; |
1381 | | |
1382 | | size_t ByteSizeLong() const final; |
1383 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1384 | | uint8_t* _InternalSerialize( |
1385 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
1386 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
1387 | | |
1388 | | private: |
1389 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
1390 | | void SharedDtor(); |
1391 | | void SetCachedSize(int size) const final; |
1392 | | void InternalSwap(JsonValue* other); |
1393 | | |
1394 | | private: |
1395 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1396 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1397 | 0 | return "json_proto.JsonValue"; |
1398 | 0 | } |
1399 | | protected: |
1400 | | explicit JsonValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1401 | | bool is_message_owned = false); |
1402 | | public: |
1403 | | |
1404 | | static const ClassData _class_data_; |
1405 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
1406 | | |
1407 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1408 | | |
1409 | | // nested types ---------------------------------------------------- |
1410 | | |
1411 | | // accessors ------------------------------------------------------- |
1412 | | |
1413 | | enum : int { |
1414 | | kObjectValueFieldNumber = 1, |
1415 | | kArrayValueFieldNumber = 2, |
1416 | | kNumberValueFieldNumber = 3, |
1417 | | kStringValueFieldNumber = 4, |
1418 | | kBooleanValueFieldNumber = 5, |
1419 | | }; |
1420 | | // .json_proto.JsonObject object_value = 1; |
1421 | | bool has_object_value() const; |
1422 | | private: |
1423 | | bool _internal_has_object_value() const; |
1424 | | public: |
1425 | | void clear_object_value(); |
1426 | | const ::json_proto::JsonObject& object_value() const; |
1427 | | PROTOBUF_NODISCARD ::json_proto::JsonObject* release_object_value(); |
1428 | | ::json_proto::JsonObject* mutable_object_value(); |
1429 | | void set_allocated_object_value(::json_proto::JsonObject* object_value); |
1430 | | private: |
1431 | | const ::json_proto::JsonObject& _internal_object_value() const; |
1432 | | ::json_proto::JsonObject* _internal_mutable_object_value(); |
1433 | | public: |
1434 | | void unsafe_arena_set_allocated_object_value( |
1435 | | ::json_proto::JsonObject* object_value); |
1436 | | ::json_proto::JsonObject* unsafe_arena_release_object_value(); |
1437 | | |
1438 | | // .json_proto.ArrayValue array_value = 2; |
1439 | | bool has_array_value() const; |
1440 | | private: |
1441 | | bool _internal_has_array_value() const; |
1442 | | public: |
1443 | | void clear_array_value(); |
1444 | | const ::json_proto::ArrayValue& array_value() const; |
1445 | | PROTOBUF_NODISCARD ::json_proto::ArrayValue* release_array_value(); |
1446 | | ::json_proto::ArrayValue* mutable_array_value(); |
1447 | | void set_allocated_array_value(::json_proto::ArrayValue* array_value); |
1448 | | private: |
1449 | | const ::json_proto::ArrayValue& _internal_array_value() const; |
1450 | | ::json_proto::ArrayValue* _internal_mutable_array_value(); |
1451 | | public: |
1452 | | void unsafe_arena_set_allocated_array_value( |
1453 | | ::json_proto::ArrayValue* array_value); |
1454 | | ::json_proto::ArrayValue* unsafe_arena_release_array_value(); |
1455 | | |
1456 | | // .json_proto.NumberValue number_value = 3; |
1457 | | bool has_number_value() const; |
1458 | | private: |
1459 | | bool _internal_has_number_value() const; |
1460 | | public: |
1461 | | void clear_number_value(); |
1462 | | const ::json_proto::NumberValue& number_value() const; |
1463 | | PROTOBUF_NODISCARD ::json_proto::NumberValue* release_number_value(); |
1464 | | ::json_proto::NumberValue* mutable_number_value(); |
1465 | | void set_allocated_number_value(::json_proto::NumberValue* number_value); |
1466 | | private: |
1467 | | const ::json_proto::NumberValue& _internal_number_value() const; |
1468 | | ::json_proto::NumberValue* _internal_mutable_number_value(); |
1469 | | public: |
1470 | | void unsafe_arena_set_allocated_number_value( |
1471 | | ::json_proto::NumberValue* number_value); |
1472 | | ::json_proto::NumberValue* unsafe_arena_release_number_value(); |
1473 | | |
1474 | | // .json_proto.StringValue string_value = 4; |
1475 | | bool has_string_value() const; |
1476 | | private: |
1477 | | bool _internal_has_string_value() const; |
1478 | | public: |
1479 | | void clear_string_value(); |
1480 | | const ::json_proto::StringValue& string_value() const; |
1481 | | PROTOBUF_NODISCARD ::json_proto::StringValue* release_string_value(); |
1482 | | ::json_proto::StringValue* mutable_string_value(); |
1483 | | void set_allocated_string_value(::json_proto::StringValue* string_value); |
1484 | | private: |
1485 | | const ::json_proto::StringValue& _internal_string_value() const; |
1486 | | ::json_proto::StringValue* _internal_mutable_string_value(); |
1487 | | public: |
1488 | | void unsafe_arena_set_allocated_string_value( |
1489 | | ::json_proto::StringValue* string_value); |
1490 | | ::json_proto::StringValue* unsafe_arena_release_string_value(); |
1491 | | |
1492 | | // .json_proto.BooleanValue boolean_value = 5; |
1493 | | bool has_boolean_value() const; |
1494 | | private: |
1495 | | bool _internal_has_boolean_value() const; |
1496 | | public: |
1497 | | void clear_boolean_value(); |
1498 | | const ::json_proto::BooleanValue& boolean_value() const; |
1499 | | PROTOBUF_NODISCARD ::json_proto::BooleanValue* release_boolean_value(); |
1500 | | ::json_proto::BooleanValue* mutable_boolean_value(); |
1501 | | void set_allocated_boolean_value(::json_proto::BooleanValue* boolean_value); |
1502 | | private: |
1503 | | const ::json_proto::BooleanValue& _internal_boolean_value() const; |
1504 | | ::json_proto::BooleanValue* _internal_mutable_boolean_value(); |
1505 | | public: |
1506 | | void unsafe_arena_set_allocated_boolean_value( |
1507 | | ::json_proto::BooleanValue* boolean_value); |
1508 | | ::json_proto::BooleanValue* unsafe_arena_release_boolean_value(); |
1509 | | |
1510 | | void clear_value(); |
1511 | | ValueCase value_case() const; |
1512 | | // @@protoc_insertion_point(class_scope:json_proto.JsonValue) |
1513 | | private: |
1514 | | class _Internal; |
1515 | | void set_has_object_value(); |
1516 | | void set_has_array_value(); |
1517 | | void set_has_number_value(); |
1518 | | void set_has_string_value(); |
1519 | | void set_has_boolean_value(); |
1520 | | |
1521 | | inline bool has_value() const; |
1522 | | inline void clear_has_value(); |
1523 | | |
1524 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1525 | | typedef void InternalArenaConstructable_; |
1526 | | typedef void DestructorSkippable_; |
1527 | | struct Impl_ { |
1528 | | union ValueUnion { |
1529 | 15.3k | constexpr ValueUnion() : _constinit_{} {} |
1530 | | ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; |
1531 | | ::json_proto::JsonObject* object_value_; |
1532 | | ::json_proto::ArrayValue* array_value_; |
1533 | | ::json_proto::NumberValue* number_value_; |
1534 | | ::json_proto::StringValue* string_value_; |
1535 | | ::json_proto::BooleanValue* boolean_value_; |
1536 | | } value_; |
1537 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1538 | | uint32_t _oneof_case_[1]; |
1539 | | |
1540 | | }; |
1541 | | union { Impl_ _impl_; }; |
1542 | | friend struct ::TableStruct_LUKS2_5fplain_5fJSON_2eproto; |
1543 | | }; |
1544 | | // ------------------------------------------------------------------- |
1545 | | |
1546 | | class ArrayValue final : |
1547 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:json_proto.ArrayValue) */ { |
1548 | | public: |
1549 | 0 | inline ArrayValue() : ArrayValue(nullptr) {} |
1550 | | ~ArrayValue() override; |
1551 | | explicit PROTOBUF_CONSTEXPR ArrayValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
1552 | | |
1553 | | ArrayValue(const ArrayValue& from); |
1554 | | ArrayValue(ArrayValue&& from) noexcept |
1555 | 0 | : ArrayValue() { |
1556 | 0 | *this = ::std::move(from); |
1557 | 0 | } |
1558 | | |
1559 | 0 | inline ArrayValue& operator=(const ArrayValue& from) { |
1560 | 0 | CopyFrom(from); |
1561 | 0 | return *this; |
1562 | 0 | } |
1563 | 0 | inline ArrayValue& operator=(ArrayValue&& from) noexcept { |
1564 | 0 | if (this == &from) return *this; |
1565 | 0 | if (GetOwningArena() == from.GetOwningArena() |
1566 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
1567 | 0 | && GetOwningArena() != nullptr |
1568 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
1569 | 0 | ) { |
1570 | 0 | InternalSwap(&from); |
1571 | 0 | } else { |
1572 | 0 | CopyFrom(from); |
1573 | 0 | } |
1574 | 0 | return *this; |
1575 | 0 | } |
1576 | | |
1577 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
1578 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
1579 | 0 | } |
1580 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
1581 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1582 | 0 | } |
1583 | | |
1584 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1585 | 0 | return GetDescriptor(); |
1586 | 0 | } |
1587 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1588 | 0 | return default_instance().GetMetadata().descriptor; |
1589 | 0 | } |
1590 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1591 | 0 | return default_instance().GetMetadata().reflection; |
1592 | 0 | } |
1593 | 0 | static const ArrayValue& default_instance() { |
1594 | 0 | return *internal_default_instance(); |
1595 | 0 | } |
1596 | 0 | static inline const ArrayValue* internal_default_instance() { |
1597 | 0 | return reinterpret_cast<const ArrayValue*>( |
1598 | 0 | &_ArrayValue_default_instance_); |
1599 | 0 | } |
1600 | | static constexpr int kIndexInFileMessages = |
1601 | | 6; |
1602 | | |
1603 | 0 | friend void swap(ArrayValue& a, ArrayValue& b) { |
1604 | 0 | a.Swap(&b); |
1605 | 0 | } |
1606 | 0 | inline void Swap(ArrayValue* other) { |
1607 | 0 | if (other == this) return; |
1608 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
1609 | 0 | if (GetOwningArena() != nullptr && |
1610 | 0 | GetOwningArena() == other->GetOwningArena()) { |
1611 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
1612 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
1613 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
1614 | 0 | InternalSwap(other); |
1615 | 0 | } else { |
1616 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1617 | 0 | } |
1618 | 0 | } |
1619 | 0 | void UnsafeArenaSwap(ArrayValue* other) { |
1620 | 0 | if (other == this) return; |
1621 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
1622 | 0 | InternalSwap(other); |
1623 | 0 | } |
1624 | | |
1625 | | // implements Message ---------------------------------------------- |
1626 | | |
1627 | 2.11k | ArrayValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
1628 | 2.11k | return CreateMaybeMessage<ArrayValue>(arena); |
1629 | 2.11k | } |
1630 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
1631 | | void CopyFrom(const ArrayValue& from); |
1632 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
1633 | 0 | void MergeFrom( const ArrayValue& from) { |
1634 | 0 | ArrayValue::MergeImpl(*this, from); |
1635 | 0 | } |
1636 | | private: |
1637 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
1638 | | public: |
1639 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1640 | | bool IsInitialized() const final; |
1641 | | |
1642 | | size_t ByteSizeLong() const final; |
1643 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1644 | | uint8_t* _InternalSerialize( |
1645 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
1646 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
1647 | | |
1648 | | private: |
1649 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
1650 | | void SharedDtor(); |
1651 | | void SetCachedSize(int size) const final; |
1652 | | void InternalSwap(ArrayValue* other); |
1653 | | |
1654 | | private: |
1655 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1656 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1657 | 0 | return "json_proto.ArrayValue"; |
1658 | 0 | } |
1659 | | protected: |
1660 | | explicit ArrayValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1661 | | bool is_message_owned = false); |
1662 | | public: |
1663 | | |
1664 | | static const ClassData _class_data_; |
1665 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
1666 | | |
1667 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1668 | | |
1669 | | // nested types ---------------------------------------------------- |
1670 | | |
1671 | | // accessors ------------------------------------------------------- |
1672 | | |
1673 | | enum : int { |
1674 | | kValueFieldNumber = 1, |
1675 | | }; |
1676 | | // repeated .json_proto.JsonValue value = 1; |
1677 | | int value_size() const; |
1678 | | private: |
1679 | | int _internal_value_size() const; |
1680 | | public: |
1681 | | void clear_value(); |
1682 | | ::json_proto::JsonValue* mutable_value(int index); |
1683 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::json_proto::JsonValue >* |
1684 | | mutable_value(); |
1685 | | private: |
1686 | | const ::json_proto::JsonValue& _internal_value(int index) const; |
1687 | | ::json_proto::JsonValue* _internal_add_value(); |
1688 | | public: |
1689 | | const ::json_proto::JsonValue& value(int index) const; |
1690 | | ::json_proto::JsonValue* add_value(); |
1691 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::json_proto::JsonValue >& |
1692 | | value() const; |
1693 | | |
1694 | | // @@protoc_insertion_point(class_scope:json_proto.ArrayValue) |
1695 | | private: |
1696 | | class _Internal; |
1697 | | |
1698 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1699 | | typedef void InternalArenaConstructable_; |
1700 | | typedef void DestructorSkippable_; |
1701 | | struct Impl_ { |
1702 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::json_proto::JsonValue > value_; |
1703 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1704 | | }; |
1705 | | union { Impl_ _impl_; }; |
1706 | | friend struct ::TableStruct_LUKS2_5fplain_5fJSON_2eproto; |
1707 | | }; |
1708 | | // ------------------------------------------------------------------- |
1709 | | |
1710 | | class NumberInteger final : |
1711 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:json_proto.NumberInteger) */ { |
1712 | | public: |
1713 | 0 | inline NumberInteger() : NumberInteger(nullptr) {} |
1714 | | ~NumberInteger() override; |
1715 | | explicit PROTOBUF_CONSTEXPR NumberInteger(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
1716 | | |
1717 | | NumberInteger(const NumberInteger& from); |
1718 | | NumberInteger(NumberInteger&& from) noexcept |
1719 | 0 | : NumberInteger() { |
1720 | 0 | *this = ::std::move(from); |
1721 | 0 | } |
1722 | | |
1723 | 0 | inline NumberInteger& operator=(const NumberInteger& from) { |
1724 | 0 | CopyFrom(from); |
1725 | 0 | return *this; |
1726 | 0 | } |
1727 | 0 | inline NumberInteger& operator=(NumberInteger&& from) noexcept { |
1728 | 0 | if (this == &from) return *this; |
1729 | 0 | if (GetOwningArena() == from.GetOwningArena() |
1730 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
1731 | 0 | && GetOwningArena() != nullptr |
1732 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
1733 | 0 | ) { |
1734 | 0 | InternalSwap(&from); |
1735 | 0 | } else { |
1736 | 0 | CopyFrom(from); |
1737 | 0 | } |
1738 | 0 | return *this; |
1739 | 0 | } |
1740 | | |
1741 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
1742 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
1743 | 0 | } |
1744 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
1745 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1746 | 0 | } |
1747 | | |
1748 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1749 | 0 | return GetDescriptor(); |
1750 | 0 | } |
1751 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1752 | 0 | return default_instance().GetMetadata().descriptor; |
1753 | 0 | } |
1754 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1755 | 0 | return default_instance().GetMetadata().reflection; |
1756 | 0 | } |
1757 | 0 | static const NumberInteger& default_instance() { |
1758 | 0 | return *internal_default_instance(); |
1759 | 0 | } |
1760 | 0 | static inline const NumberInteger* internal_default_instance() { |
1761 | 0 | return reinterpret_cast<const NumberInteger*>( |
1762 | 0 | &_NumberInteger_default_instance_); |
1763 | 0 | } |
1764 | | static constexpr int kIndexInFileMessages = |
1765 | | 7; |
1766 | | |
1767 | 0 | friend void swap(NumberInteger& a, NumberInteger& b) { |
1768 | 0 | a.Swap(&b); |
1769 | 0 | } |
1770 | 0 | inline void Swap(NumberInteger* other) { |
1771 | 0 | if (other == this) return; |
1772 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
1773 | 0 | if (GetOwningArena() != nullptr && |
1774 | 0 | GetOwningArena() == other->GetOwningArena()) { |
1775 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
1776 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
1777 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
1778 | 0 | InternalSwap(other); |
1779 | 0 | } else { |
1780 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1781 | 0 | } |
1782 | 0 | } |
1783 | 0 | void UnsafeArenaSwap(NumberInteger* other) { |
1784 | 0 | if (other == this) return; |
1785 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
1786 | 0 | InternalSwap(other); |
1787 | 0 | } |
1788 | | |
1789 | | // implements Message ---------------------------------------------- |
1790 | | |
1791 | 1.97k | NumberInteger* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
1792 | 1.97k | return CreateMaybeMessage<NumberInteger>(arena); |
1793 | 1.97k | } |
1794 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
1795 | | void CopyFrom(const NumberInteger& from); |
1796 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
1797 | 0 | void MergeFrom( const NumberInteger& from) { |
1798 | 0 | NumberInteger::MergeImpl(*this, from); |
1799 | 0 | } |
1800 | | private: |
1801 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
1802 | | public: |
1803 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1804 | | bool IsInitialized() const final; |
1805 | | |
1806 | | size_t ByteSizeLong() const final; |
1807 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1808 | | uint8_t* _InternalSerialize( |
1809 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
1810 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
1811 | | |
1812 | | private: |
1813 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
1814 | | void SharedDtor(); |
1815 | | void SetCachedSize(int size) const final; |
1816 | | void InternalSwap(NumberInteger* other); |
1817 | | |
1818 | | private: |
1819 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1820 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1821 | 0 | return "json_proto.NumberInteger"; |
1822 | 0 | } |
1823 | | protected: |
1824 | | explicit NumberInteger(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1825 | | bool is_message_owned = false); |
1826 | | public: |
1827 | | |
1828 | | static const ClassData _class_data_; |
1829 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
1830 | | |
1831 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1832 | | |
1833 | | // nested types ---------------------------------------------------- |
1834 | | |
1835 | | // accessors ------------------------------------------------------- |
1836 | | |
1837 | | enum : int { |
1838 | | kValueFieldNumber = 1, |
1839 | | }; |
1840 | | // required int64 value = 1; |
1841 | | bool has_value() const; |
1842 | | private: |
1843 | | bool _internal_has_value() const; |
1844 | | public: |
1845 | | void clear_value(); |
1846 | | int64_t value() const; |
1847 | | void set_value(int64_t value); |
1848 | | private: |
1849 | | int64_t _internal_value() const; |
1850 | | void _internal_set_value(int64_t value); |
1851 | | public: |
1852 | | |
1853 | | // @@protoc_insertion_point(class_scope:json_proto.NumberInteger) |
1854 | | private: |
1855 | | class _Internal; |
1856 | | |
1857 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1858 | | typedef void InternalArenaConstructable_; |
1859 | | typedef void DestructorSkippable_; |
1860 | | struct Impl_ { |
1861 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
1862 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1863 | | int64_t value_; |
1864 | | }; |
1865 | | union { Impl_ _impl_; }; |
1866 | | friend struct ::TableStruct_LUKS2_5fplain_5fJSON_2eproto; |
1867 | | }; |
1868 | | // ------------------------------------------------------------------- |
1869 | | |
1870 | | class NumberFloat final : |
1871 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:json_proto.NumberFloat) */ { |
1872 | | public: |
1873 | 0 | inline NumberFloat() : NumberFloat(nullptr) {} |
1874 | | ~NumberFloat() override; |
1875 | | explicit PROTOBUF_CONSTEXPR NumberFloat(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
1876 | | |
1877 | | NumberFloat(const NumberFloat& from); |
1878 | | NumberFloat(NumberFloat&& from) noexcept |
1879 | 0 | : NumberFloat() { |
1880 | 0 | *this = ::std::move(from); |
1881 | 0 | } |
1882 | | |
1883 | 0 | inline NumberFloat& operator=(const NumberFloat& from) { |
1884 | 0 | CopyFrom(from); |
1885 | 0 | return *this; |
1886 | 0 | } |
1887 | 0 | inline NumberFloat& operator=(NumberFloat&& from) noexcept { |
1888 | 0 | if (this == &from) return *this; |
1889 | 0 | if (GetOwningArena() == from.GetOwningArena() |
1890 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
1891 | 0 | && GetOwningArena() != nullptr |
1892 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
1893 | 0 | ) { |
1894 | 0 | InternalSwap(&from); |
1895 | 0 | } else { |
1896 | 0 | CopyFrom(from); |
1897 | 0 | } |
1898 | 0 | return *this; |
1899 | 0 | } |
1900 | | |
1901 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
1902 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
1903 | 0 | } |
1904 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
1905 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1906 | 0 | } |
1907 | | |
1908 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1909 | 0 | return GetDescriptor(); |
1910 | 0 | } |
1911 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1912 | 0 | return default_instance().GetMetadata().descriptor; |
1913 | 0 | } |
1914 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1915 | 0 | return default_instance().GetMetadata().reflection; |
1916 | 0 | } |
1917 | 0 | static const NumberFloat& default_instance() { |
1918 | 0 | return *internal_default_instance(); |
1919 | 0 | } |
1920 | 0 | static inline const NumberFloat* internal_default_instance() { |
1921 | 0 | return reinterpret_cast<const NumberFloat*>( |
1922 | 0 | &_NumberFloat_default_instance_); |
1923 | 0 | } |
1924 | | static constexpr int kIndexInFileMessages = |
1925 | | 8; |
1926 | | |
1927 | 0 | friend void swap(NumberFloat& a, NumberFloat& b) { |
1928 | 0 | a.Swap(&b); |
1929 | 0 | } |
1930 | 0 | inline void Swap(NumberFloat* other) { |
1931 | 0 | if (other == this) return; |
1932 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
1933 | 0 | if (GetOwningArena() != nullptr && |
1934 | 0 | GetOwningArena() == other->GetOwningArena()) { |
1935 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
1936 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
1937 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
1938 | 0 | InternalSwap(other); |
1939 | 0 | } else { |
1940 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1941 | 0 | } |
1942 | 0 | } |
1943 | 0 | void UnsafeArenaSwap(NumberFloat* other) { |
1944 | 0 | if (other == this) return; |
1945 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
1946 | 0 | InternalSwap(other); |
1947 | 0 | } |
1948 | | |
1949 | | // implements Message ---------------------------------------------- |
1950 | | |
1951 | 611 | NumberFloat* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
1952 | 611 | return CreateMaybeMessage<NumberFloat>(arena); |
1953 | 611 | } |
1954 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
1955 | | void CopyFrom(const NumberFloat& from); |
1956 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
1957 | 0 | void MergeFrom( const NumberFloat& from) { |
1958 | 0 | NumberFloat::MergeImpl(*this, from); |
1959 | 0 | } |
1960 | | private: |
1961 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
1962 | | public: |
1963 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1964 | | bool IsInitialized() const final; |
1965 | | |
1966 | | size_t ByteSizeLong() const final; |
1967 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1968 | | uint8_t* _InternalSerialize( |
1969 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
1970 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
1971 | | |
1972 | | private: |
1973 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
1974 | | void SharedDtor(); |
1975 | | void SetCachedSize(int size) const final; |
1976 | | void InternalSwap(NumberFloat* other); |
1977 | | |
1978 | | private: |
1979 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1980 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1981 | 0 | return "json_proto.NumberFloat"; |
1982 | 0 | } |
1983 | | protected: |
1984 | | explicit NumberFloat(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1985 | | bool is_message_owned = false); |
1986 | | public: |
1987 | | |
1988 | | static const ClassData _class_data_; |
1989 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
1990 | | |
1991 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1992 | | |
1993 | | // nested types ---------------------------------------------------- |
1994 | | |
1995 | | // accessors ------------------------------------------------------- |
1996 | | |
1997 | | enum : int { |
1998 | | kValueFieldNumber = 1, |
1999 | | }; |
2000 | | // required double value = 1; |
2001 | | bool has_value() const; |
2002 | | private: |
2003 | | bool _internal_has_value() const; |
2004 | | public: |
2005 | | void clear_value(); |
2006 | | double value() const; |
2007 | | void set_value(double value); |
2008 | | private: |
2009 | | double _internal_value() const; |
2010 | | void _internal_set_value(double value); |
2011 | | public: |
2012 | | |
2013 | | // @@protoc_insertion_point(class_scope:json_proto.NumberFloat) |
2014 | | private: |
2015 | | class _Internal; |
2016 | | |
2017 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
2018 | | typedef void InternalArenaConstructable_; |
2019 | | typedef void DestructorSkippable_; |
2020 | | struct Impl_ { |
2021 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
2022 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
2023 | | double value_; |
2024 | | }; |
2025 | | union { Impl_ _impl_; }; |
2026 | | friend struct ::TableStruct_LUKS2_5fplain_5fJSON_2eproto; |
2027 | | }; |
2028 | | // ------------------------------------------------------------------- |
2029 | | |
2030 | | class NumberExponent final : |
2031 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:json_proto.NumberExponent) */ { |
2032 | | public: |
2033 | 0 | inline NumberExponent() : NumberExponent(nullptr) {} |
2034 | | ~NumberExponent() override; |
2035 | | explicit PROTOBUF_CONSTEXPR NumberExponent(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
2036 | | |
2037 | | NumberExponent(const NumberExponent& from); |
2038 | | NumberExponent(NumberExponent&& from) noexcept |
2039 | 0 | : NumberExponent() { |
2040 | 0 | *this = ::std::move(from); |
2041 | 0 | } |
2042 | | |
2043 | 0 | inline NumberExponent& operator=(const NumberExponent& from) { |
2044 | 0 | CopyFrom(from); |
2045 | 0 | return *this; |
2046 | 0 | } |
2047 | 0 | inline NumberExponent& operator=(NumberExponent&& from) noexcept { |
2048 | 0 | if (this == &from) return *this; |
2049 | 0 | if (GetOwningArena() == from.GetOwningArena() |
2050 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
2051 | 0 | && GetOwningArena() != nullptr |
2052 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
2053 | 0 | ) { |
2054 | 0 | InternalSwap(&from); |
2055 | 0 | } else { |
2056 | 0 | CopyFrom(from); |
2057 | 0 | } |
2058 | 0 | return *this; |
2059 | 0 | } |
2060 | | |
2061 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
2062 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
2063 | 0 | } |
2064 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
2065 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
2066 | 0 | } |
2067 | | |
2068 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
2069 | 0 | return GetDescriptor(); |
2070 | 0 | } |
2071 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
2072 | 0 | return default_instance().GetMetadata().descriptor; |
2073 | 0 | } |
2074 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
2075 | 0 | return default_instance().GetMetadata().reflection; |
2076 | 0 | } |
2077 | 0 | static const NumberExponent& default_instance() { |
2078 | 0 | return *internal_default_instance(); |
2079 | 0 | } |
2080 | 0 | static inline const NumberExponent* internal_default_instance() { |
2081 | 0 | return reinterpret_cast<const NumberExponent*>( |
2082 | 0 | &_NumberExponent_default_instance_); |
2083 | 0 | } |
2084 | | static constexpr int kIndexInFileMessages = |
2085 | | 9; |
2086 | | |
2087 | 0 | friend void swap(NumberExponent& a, NumberExponent& b) { |
2088 | 0 | a.Swap(&b); |
2089 | 0 | } |
2090 | 0 | inline void Swap(NumberExponent* other) { |
2091 | 0 | if (other == this) return; |
2092 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
2093 | 0 | if (GetOwningArena() != nullptr && |
2094 | 0 | GetOwningArena() == other->GetOwningArena()) { |
2095 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
2096 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
2097 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
2098 | 0 | InternalSwap(other); |
2099 | 0 | } else { |
2100 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
2101 | 0 | } |
2102 | 0 | } |
2103 | 0 | void UnsafeArenaSwap(NumberExponent* other) { |
2104 | 0 | if (other == this) return; |
2105 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
2106 | 0 | InternalSwap(other); |
2107 | 0 | } |
2108 | | |
2109 | | // implements Message ---------------------------------------------- |
2110 | | |
2111 | 336 | NumberExponent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
2112 | 336 | return CreateMaybeMessage<NumberExponent>(arena); |
2113 | 336 | } |
2114 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
2115 | | void CopyFrom(const NumberExponent& from); |
2116 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
2117 | 0 | void MergeFrom( const NumberExponent& from) { |
2118 | 0 | NumberExponent::MergeImpl(*this, from); |
2119 | 0 | } |
2120 | | private: |
2121 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
2122 | | public: |
2123 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
2124 | | bool IsInitialized() const final; |
2125 | | |
2126 | | size_t ByteSizeLong() const final; |
2127 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
2128 | | uint8_t* _InternalSerialize( |
2129 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
2130 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
2131 | | |
2132 | | private: |
2133 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
2134 | | void SharedDtor(); |
2135 | | void SetCachedSize(int size) const final; |
2136 | | void InternalSwap(NumberExponent* other); |
2137 | | |
2138 | | private: |
2139 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
2140 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
2141 | 0 | return "json_proto.NumberExponent"; |
2142 | 0 | } |
2143 | | protected: |
2144 | | explicit NumberExponent(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
2145 | | bool is_message_owned = false); |
2146 | | public: |
2147 | | |
2148 | | static const ClassData _class_data_; |
2149 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
2150 | | |
2151 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
2152 | | |
2153 | | // nested types ---------------------------------------------------- |
2154 | | |
2155 | | // accessors ------------------------------------------------------- |
2156 | | |
2157 | | enum : int { |
2158 | | kBaseFieldNumber = 1, |
2159 | | kExponentFieldNumber = 2, |
2160 | | kUseUppercaseFieldNumber = 3, |
2161 | | }; |
2162 | | // required int32 base = 1; |
2163 | | bool has_base() const; |
2164 | | private: |
2165 | | bool _internal_has_base() const; |
2166 | | public: |
2167 | | void clear_base(); |
2168 | | int32_t base() const; |
2169 | | void set_base(int32_t value); |
2170 | | private: |
2171 | | int32_t _internal_base() const; |
2172 | | void _internal_set_base(int32_t value); |
2173 | | public: |
2174 | | |
2175 | | // required int32 exponent = 2; |
2176 | | bool has_exponent() const; |
2177 | | private: |
2178 | | bool _internal_has_exponent() const; |
2179 | | public: |
2180 | | void clear_exponent(); |
2181 | | int32_t exponent() const; |
2182 | | void set_exponent(int32_t value); |
2183 | | private: |
2184 | | int32_t _internal_exponent() const; |
2185 | | void _internal_set_exponent(int32_t value); |
2186 | | public: |
2187 | | |
2188 | | // required bool use_uppercase = 3; |
2189 | | bool has_use_uppercase() const; |
2190 | | private: |
2191 | | bool _internal_has_use_uppercase() const; |
2192 | | public: |
2193 | | void clear_use_uppercase(); |
2194 | | bool use_uppercase() const; |
2195 | | void set_use_uppercase(bool value); |
2196 | | private: |
2197 | | bool _internal_use_uppercase() const; |
2198 | | void _internal_set_use_uppercase(bool value); |
2199 | | public: |
2200 | | |
2201 | | // @@protoc_insertion_point(class_scope:json_proto.NumberExponent) |
2202 | | private: |
2203 | | class _Internal; |
2204 | | |
2205 | | // helper for ByteSizeLong() |
2206 | | size_t RequiredFieldsByteSizeFallback() const; |
2207 | | |
2208 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
2209 | | typedef void InternalArenaConstructable_; |
2210 | | typedef void DestructorSkippable_; |
2211 | | struct Impl_ { |
2212 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
2213 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
2214 | | int32_t base_; |
2215 | | int32_t exponent_; |
2216 | | bool use_uppercase_; |
2217 | | }; |
2218 | | union { Impl_ _impl_; }; |
2219 | | friend struct ::TableStruct_LUKS2_5fplain_5fJSON_2eproto; |
2220 | | }; |
2221 | | // ------------------------------------------------------------------- |
2222 | | |
2223 | | class NumberExponentFrac final : |
2224 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:json_proto.NumberExponentFrac) */ { |
2225 | | public: |
2226 | 0 | inline NumberExponentFrac() : NumberExponentFrac(nullptr) {} |
2227 | | ~NumberExponentFrac() override; |
2228 | | explicit PROTOBUF_CONSTEXPR NumberExponentFrac(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
2229 | | |
2230 | | NumberExponentFrac(const NumberExponentFrac& from); |
2231 | | NumberExponentFrac(NumberExponentFrac&& from) noexcept |
2232 | 0 | : NumberExponentFrac() { |
2233 | 0 | *this = ::std::move(from); |
2234 | 0 | } |
2235 | | |
2236 | 0 | inline NumberExponentFrac& operator=(const NumberExponentFrac& from) { |
2237 | 0 | CopyFrom(from); |
2238 | 0 | return *this; |
2239 | 0 | } |
2240 | 0 | inline NumberExponentFrac& operator=(NumberExponentFrac&& from) noexcept { |
2241 | 0 | if (this == &from) return *this; |
2242 | 0 | if (GetOwningArena() == from.GetOwningArena() |
2243 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
2244 | 0 | && GetOwningArena() != nullptr |
2245 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
2246 | 0 | ) { |
2247 | 0 | InternalSwap(&from); |
2248 | 0 | } else { |
2249 | 0 | CopyFrom(from); |
2250 | 0 | } |
2251 | 0 | return *this; |
2252 | 0 | } |
2253 | | |
2254 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
2255 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
2256 | 0 | } |
2257 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
2258 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
2259 | 0 | } |
2260 | | |
2261 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
2262 | 0 | return GetDescriptor(); |
2263 | 0 | } |
2264 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
2265 | 0 | return default_instance().GetMetadata().descriptor; |
2266 | 0 | } |
2267 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
2268 | 0 | return default_instance().GetMetadata().reflection; |
2269 | 0 | } |
2270 | 0 | static const NumberExponentFrac& default_instance() { |
2271 | 0 | return *internal_default_instance(); |
2272 | 0 | } |
2273 | 0 | static inline const NumberExponentFrac* internal_default_instance() { |
2274 | 0 | return reinterpret_cast<const NumberExponentFrac*>( |
2275 | 0 | &_NumberExponentFrac_default_instance_); |
2276 | 0 | } |
2277 | | static constexpr int kIndexInFileMessages = |
2278 | | 10; |
2279 | | |
2280 | 0 | friend void swap(NumberExponentFrac& a, NumberExponentFrac& b) { |
2281 | 0 | a.Swap(&b); |
2282 | 0 | } |
2283 | 0 | inline void Swap(NumberExponentFrac* other) { |
2284 | 0 | if (other == this) return; |
2285 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
2286 | 0 | if (GetOwningArena() != nullptr && |
2287 | 0 | GetOwningArena() == other->GetOwningArena()) { |
2288 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
2289 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
2290 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
2291 | 0 | InternalSwap(other); |
2292 | 0 | } else { |
2293 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
2294 | 0 | } |
2295 | 0 | } |
2296 | 0 | void UnsafeArenaSwap(NumberExponentFrac* other) { |
2297 | 0 | if (other == this) return; |
2298 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
2299 | 0 | InternalSwap(other); |
2300 | 0 | } |
2301 | | |
2302 | | // implements Message ---------------------------------------------- |
2303 | | |
2304 | 252 | NumberExponentFrac* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
2305 | 252 | return CreateMaybeMessage<NumberExponentFrac>(arena); |
2306 | 252 | } |
2307 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
2308 | | void CopyFrom(const NumberExponentFrac& from); |
2309 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
2310 | 0 | void MergeFrom( const NumberExponentFrac& from) { |
2311 | 0 | NumberExponentFrac::MergeImpl(*this, from); |
2312 | 0 | } |
2313 | | private: |
2314 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
2315 | | public: |
2316 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
2317 | | bool IsInitialized() const final; |
2318 | | |
2319 | | size_t ByteSizeLong() const final; |
2320 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
2321 | | uint8_t* _InternalSerialize( |
2322 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
2323 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
2324 | | |
2325 | | private: |
2326 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
2327 | | void SharedDtor(); |
2328 | | void SetCachedSize(int size) const final; |
2329 | | void InternalSwap(NumberExponentFrac* other); |
2330 | | |
2331 | | private: |
2332 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
2333 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
2334 | 0 | return "json_proto.NumberExponentFrac"; |
2335 | 0 | } |
2336 | | protected: |
2337 | | explicit NumberExponentFrac(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
2338 | | bool is_message_owned = false); |
2339 | | public: |
2340 | | |
2341 | | static const ClassData _class_data_; |
2342 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
2343 | | |
2344 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
2345 | | |
2346 | | // nested types ---------------------------------------------------- |
2347 | | |
2348 | | // accessors ------------------------------------------------------- |
2349 | | |
2350 | | enum : int { |
2351 | | kBaseFieldNumber = 1, |
2352 | | kExponentFieldNumber = 2, |
2353 | | kUseUppercaseFieldNumber = 3, |
2354 | | }; |
2355 | | // required float base = 1; |
2356 | | bool has_base() const; |
2357 | | private: |
2358 | | bool _internal_has_base() const; |
2359 | | public: |
2360 | | void clear_base(); |
2361 | | float base() const; |
2362 | | void set_base(float value); |
2363 | | private: |
2364 | | float _internal_base() const; |
2365 | | void _internal_set_base(float value); |
2366 | | public: |
2367 | | |
2368 | | // required int32 exponent = 2; |
2369 | | bool has_exponent() const; |
2370 | | private: |
2371 | | bool _internal_has_exponent() const; |
2372 | | public: |
2373 | | void clear_exponent(); |
2374 | | int32_t exponent() const; |
2375 | | void set_exponent(int32_t value); |
2376 | | private: |
2377 | | int32_t _internal_exponent() const; |
2378 | | void _internal_set_exponent(int32_t value); |
2379 | | public: |
2380 | | |
2381 | | // required bool use_uppercase = 3; |
2382 | | bool has_use_uppercase() const; |
2383 | | private: |
2384 | | bool _internal_has_use_uppercase() const; |
2385 | | public: |
2386 | | void clear_use_uppercase(); |
2387 | | bool use_uppercase() const; |
2388 | | void set_use_uppercase(bool value); |
2389 | | private: |
2390 | | bool _internal_use_uppercase() const; |
2391 | | void _internal_set_use_uppercase(bool value); |
2392 | | public: |
2393 | | |
2394 | | // @@protoc_insertion_point(class_scope:json_proto.NumberExponentFrac) |
2395 | | private: |
2396 | | class _Internal; |
2397 | | |
2398 | | // helper for ByteSizeLong() |
2399 | | size_t RequiredFieldsByteSizeFallback() const; |
2400 | | |
2401 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
2402 | | typedef void InternalArenaConstructable_; |
2403 | | typedef void DestructorSkippable_; |
2404 | | struct Impl_ { |
2405 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
2406 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
2407 | | float base_; |
2408 | | int32_t exponent_; |
2409 | | bool use_uppercase_; |
2410 | | }; |
2411 | | union { Impl_ _impl_; }; |
2412 | | friend struct ::TableStruct_LUKS2_5fplain_5fJSON_2eproto; |
2413 | | }; |
2414 | | // ------------------------------------------------------------------- |
2415 | | |
2416 | | class NumberValue final : |
2417 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:json_proto.NumberValue) */ { |
2418 | | public: |
2419 | 0 | inline NumberValue() : NumberValue(nullptr) {} |
2420 | | ~NumberValue() override; |
2421 | | explicit PROTOBUF_CONSTEXPR NumberValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
2422 | | |
2423 | | NumberValue(const NumberValue& from); |
2424 | | NumberValue(NumberValue&& from) noexcept |
2425 | 0 | : NumberValue() { |
2426 | 0 | *this = ::std::move(from); |
2427 | 0 | } |
2428 | | |
2429 | 0 | inline NumberValue& operator=(const NumberValue& from) { |
2430 | 0 | CopyFrom(from); |
2431 | 0 | return *this; |
2432 | 0 | } |
2433 | 0 | inline NumberValue& operator=(NumberValue&& from) noexcept { |
2434 | 0 | if (this == &from) return *this; |
2435 | 0 | if (GetOwningArena() == from.GetOwningArena() |
2436 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
2437 | 0 | && GetOwningArena() != nullptr |
2438 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
2439 | 0 | ) { |
2440 | 0 | InternalSwap(&from); |
2441 | 0 | } else { |
2442 | 0 | CopyFrom(from); |
2443 | 0 | } |
2444 | 0 | return *this; |
2445 | 0 | } |
2446 | | |
2447 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
2448 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
2449 | 0 | } |
2450 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
2451 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
2452 | 0 | } |
2453 | | |
2454 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
2455 | 0 | return GetDescriptor(); |
2456 | 0 | } |
2457 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
2458 | 0 | return default_instance().GetMetadata().descriptor; |
2459 | 0 | } |
2460 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
2461 | 0 | return default_instance().GetMetadata().reflection; |
2462 | 0 | } |
2463 | 0 | static const NumberValue& default_instance() { |
2464 | 0 | return *internal_default_instance(); |
2465 | 0 | } |
2466 | | enum ValueCase { |
2467 | | kFloatValue = 2, |
2468 | | kExponentValue = 3, |
2469 | | kExponentFracValue = 4, |
2470 | | VALUE_NOT_SET = 0, |
2471 | | }; |
2472 | | |
2473 | 2.13k | static inline const NumberValue* internal_default_instance() { |
2474 | 2.13k | return reinterpret_cast<const NumberValue*>( |
2475 | 2.13k | &_NumberValue_default_instance_); |
2476 | 2.13k | } |
2477 | | static constexpr int kIndexInFileMessages = |
2478 | | 11; |
2479 | | |
2480 | 0 | friend void swap(NumberValue& a, NumberValue& b) { |
2481 | 0 | a.Swap(&b); |
2482 | 0 | } |
2483 | 0 | inline void Swap(NumberValue* other) { |
2484 | 0 | if (other == this) return; |
2485 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
2486 | 0 | if (GetOwningArena() != nullptr && |
2487 | 0 | GetOwningArena() == other->GetOwningArena()) { |
2488 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
2489 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
2490 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
2491 | 0 | InternalSwap(other); |
2492 | 0 | } else { |
2493 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
2494 | 0 | } |
2495 | 0 | } |
2496 | 0 | void UnsafeArenaSwap(NumberValue* other) { |
2497 | 0 | if (other == this) return; |
2498 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
2499 | 0 | InternalSwap(other); |
2500 | 0 | } |
2501 | | |
2502 | | // implements Message ---------------------------------------------- |
2503 | | |
2504 | 2.13k | NumberValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
2505 | 2.13k | return CreateMaybeMessage<NumberValue>(arena); |
2506 | 2.13k | } |
2507 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
2508 | | void CopyFrom(const NumberValue& from); |
2509 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
2510 | 0 | void MergeFrom( const NumberValue& from) { |
2511 | 0 | NumberValue::MergeImpl(*this, from); |
2512 | 0 | } |
2513 | | private: |
2514 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
2515 | | public: |
2516 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
2517 | | bool IsInitialized() const final; |
2518 | | |
2519 | | size_t ByteSizeLong() const final; |
2520 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
2521 | | uint8_t* _InternalSerialize( |
2522 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
2523 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
2524 | | |
2525 | | private: |
2526 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
2527 | | void SharedDtor(); |
2528 | | void SetCachedSize(int size) const final; |
2529 | | void InternalSwap(NumberValue* other); |
2530 | | |
2531 | | private: |
2532 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
2533 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
2534 | 0 | return "json_proto.NumberValue"; |
2535 | 0 | } |
2536 | | protected: |
2537 | | explicit NumberValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
2538 | | bool is_message_owned = false); |
2539 | | public: |
2540 | | |
2541 | | static const ClassData _class_data_; |
2542 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
2543 | | |
2544 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
2545 | | |
2546 | | // nested types ---------------------------------------------------- |
2547 | | |
2548 | | // accessors ------------------------------------------------------- |
2549 | | |
2550 | | enum : int { |
2551 | | kIntegerValueFieldNumber = 1, |
2552 | | kFloatValueFieldNumber = 2, |
2553 | | kExponentValueFieldNumber = 3, |
2554 | | kExponentFracValueFieldNumber = 4, |
2555 | | }; |
2556 | | // required .json_proto.NumberInteger integer_value = 1; |
2557 | | bool has_integer_value() const; |
2558 | | private: |
2559 | | bool _internal_has_integer_value() const; |
2560 | | public: |
2561 | | void clear_integer_value(); |
2562 | | const ::json_proto::NumberInteger& integer_value() const; |
2563 | | PROTOBUF_NODISCARD ::json_proto::NumberInteger* release_integer_value(); |
2564 | | ::json_proto::NumberInteger* mutable_integer_value(); |
2565 | | void set_allocated_integer_value(::json_proto::NumberInteger* integer_value); |
2566 | | private: |
2567 | | const ::json_proto::NumberInteger& _internal_integer_value() const; |
2568 | | ::json_proto::NumberInteger* _internal_mutable_integer_value(); |
2569 | | public: |
2570 | | void unsafe_arena_set_allocated_integer_value( |
2571 | | ::json_proto::NumberInteger* integer_value); |
2572 | | ::json_proto::NumberInteger* unsafe_arena_release_integer_value(); |
2573 | | |
2574 | | // .json_proto.NumberFloat float_value = 2; |
2575 | | bool has_float_value() const; |
2576 | | private: |
2577 | | bool _internal_has_float_value() const; |
2578 | | public: |
2579 | | void clear_float_value(); |
2580 | | const ::json_proto::NumberFloat& float_value() const; |
2581 | | PROTOBUF_NODISCARD ::json_proto::NumberFloat* release_float_value(); |
2582 | | ::json_proto::NumberFloat* mutable_float_value(); |
2583 | | void set_allocated_float_value(::json_proto::NumberFloat* float_value); |
2584 | | private: |
2585 | | const ::json_proto::NumberFloat& _internal_float_value() const; |
2586 | | ::json_proto::NumberFloat* _internal_mutable_float_value(); |
2587 | | public: |
2588 | | void unsafe_arena_set_allocated_float_value( |
2589 | | ::json_proto::NumberFloat* float_value); |
2590 | | ::json_proto::NumberFloat* unsafe_arena_release_float_value(); |
2591 | | |
2592 | | // .json_proto.NumberExponent exponent_value = 3; |
2593 | | bool has_exponent_value() const; |
2594 | | private: |
2595 | | bool _internal_has_exponent_value() const; |
2596 | | public: |
2597 | | void clear_exponent_value(); |
2598 | | const ::json_proto::NumberExponent& exponent_value() const; |
2599 | | PROTOBUF_NODISCARD ::json_proto::NumberExponent* release_exponent_value(); |
2600 | | ::json_proto::NumberExponent* mutable_exponent_value(); |
2601 | | void set_allocated_exponent_value(::json_proto::NumberExponent* exponent_value); |
2602 | | private: |
2603 | | const ::json_proto::NumberExponent& _internal_exponent_value() const; |
2604 | | ::json_proto::NumberExponent* _internal_mutable_exponent_value(); |
2605 | | public: |
2606 | | void unsafe_arena_set_allocated_exponent_value( |
2607 | | ::json_proto::NumberExponent* exponent_value); |
2608 | | ::json_proto::NumberExponent* unsafe_arena_release_exponent_value(); |
2609 | | |
2610 | | // .json_proto.NumberExponentFrac exponent_frac_value = 4; |
2611 | | bool has_exponent_frac_value() const; |
2612 | | private: |
2613 | | bool _internal_has_exponent_frac_value() const; |
2614 | | public: |
2615 | | void clear_exponent_frac_value(); |
2616 | | const ::json_proto::NumberExponentFrac& exponent_frac_value() const; |
2617 | | PROTOBUF_NODISCARD ::json_proto::NumberExponentFrac* release_exponent_frac_value(); |
2618 | | ::json_proto::NumberExponentFrac* mutable_exponent_frac_value(); |
2619 | | void set_allocated_exponent_frac_value(::json_proto::NumberExponentFrac* exponent_frac_value); |
2620 | | private: |
2621 | | const ::json_proto::NumberExponentFrac& _internal_exponent_frac_value() const; |
2622 | | ::json_proto::NumberExponentFrac* _internal_mutable_exponent_frac_value(); |
2623 | | public: |
2624 | | void unsafe_arena_set_allocated_exponent_frac_value( |
2625 | | ::json_proto::NumberExponentFrac* exponent_frac_value); |
2626 | | ::json_proto::NumberExponentFrac* unsafe_arena_release_exponent_frac_value(); |
2627 | | |
2628 | | void clear_value(); |
2629 | | ValueCase value_case() const; |
2630 | | // @@protoc_insertion_point(class_scope:json_proto.NumberValue) |
2631 | | private: |
2632 | | class _Internal; |
2633 | | void set_has_float_value(); |
2634 | | void set_has_exponent_value(); |
2635 | | void set_has_exponent_frac_value(); |
2636 | | |
2637 | | inline bool has_value() const; |
2638 | | inline void clear_has_value(); |
2639 | | |
2640 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
2641 | | typedef void InternalArenaConstructable_; |
2642 | | typedef void DestructorSkippable_; |
2643 | | struct Impl_ { |
2644 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
2645 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
2646 | | ::json_proto::NumberInteger* integer_value_; |
2647 | | union ValueUnion { |
2648 | 2.13k | constexpr ValueUnion() : _constinit_{} {} |
2649 | | ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; |
2650 | | ::json_proto::NumberFloat* float_value_; |
2651 | | ::json_proto::NumberExponent* exponent_value_; |
2652 | | ::json_proto::NumberExponentFrac* exponent_frac_value_; |
2653 | | } value_; |
2654 | | uint32_t _oneof_case_[1]; |
2655 | | |
2656 | | }; |
2657 | | union { Impl_ _impl_; }; |
2658 | | friend struct ::TableStruct_LUKS2_5fplain_5fJSON_2eproto; |
2659 | | }; |
2660 | | // ------------------------------------------------------------------- |
2661 | | |
2662 | | class StringValue final : |
2663 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:json_proto.StringValue) */ { |
2664 | | public: |
2665 | 0 | inline StringValue() : StringValue(nullptr) {} |
2666 | | ~StringValue() override; |
2667 | | explicit PROTOBUF_CONSTEXPR StringValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
2668 | | |
2669 | | StringValue(const StringValue& from); |
2670 | | StringValue(StringValue&& from) noexcept |
2671 | 0 | : StringValue() { |
2672 | 0 | *this = ::std::move(from); |
2673 | 0 | } |
2674 | | |
2675 | 0 | inline StringValue& operator=(const StringValue& from) { |
2676 | 0 | CopyFrom(from); |
2677 | 0 | return *this; |
2678 | 0 | } |
2679 | 0 | inline StringValue& operator=(StringValue&& from) noexcept { |
2680 | 0 | if (this == &from) return *this; |
2681 | 0 | if (GetOwningArena() == from.GetOwningArena() |
2682 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
2683 | 0 | && GetOwningArena() != nullptr |
2684 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
2685 | 0 | ) { |
2686 | 0 | InternalSwap(&from); |
2687 | 0 | } else { |
2688 | 0 | CopyFrom(from); |
2689 | 0 | } |
2690 | 0 | return *this; |
2691 | 0 | } |
2692 | | |
2693 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
2694 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
2695 | 0 | } |
2696 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
2697 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
2698 | 0 | } |
2699 | | |
2700 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
2701 | 0 | return GetDescriptor(); |
2702 | 0 | } |
2703 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
2704 | 0 | return default_instance().GetMetadata().descriptor; |
2705 | 0 | } |
2706 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
2707 | 0 | return default_instance().GetMetadata().reflection; |
2708 | 0 | } |
2709 | 0 | static const StringValue& default_instance() { |
2710 | 0 | return *internal_default_instance(); |
2711 | 0 | } |
2712 | 0 | static inline const StringValue* internal_default_instance() { |
2713 | 0 | return reinterpret_cast<const StringValue*>( |
2714 | 0 | &_StringValue_default_instance_); |
2715 | 0 | } |
2716 | | static constexpr int kIndexInFileMessages = |
2717 | | 12; |
2718 | | |
2719 | 0 | friend void swap(StringValue& a, StringValue& b) { |
2720 | 0 | a.Swap(&b); |
2721 | 0 | } |
2722 | 0 | inline void Swap(StringValue* other) { |
2723 | 0 | if (other == this) return; |
2724 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
2725 | 0 | if (GetOwningArena() != nullptr && |
2726 | 0 | GetOwningArena() == other->GetOwningArena()) { |
2727 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
2728 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
2729 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
2730 | 0 | InternalSwap(other); |
2731 | 0 | } else { |
2732 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
2733 | 0 | } |
2734 | 0 | } |
2735 | 0 | void UnsafeArenaSwap(StringValue* other) { |
2736 | 0 | if (other == this) return; |
2737 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
2738 | 0 | InternalSwap(other); |
2739 | 0 | } |
2740 | | |
2741 | | // implements Message ---------------------------------------------- |
2742 | | |
2743 | 1.39k | StringValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
2744 | 1.39k | return CreateMaybeMessage<StringValue>(arena); |
2745 | 1.39k | } |
2746 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
2747 | | void CopyFrom(const StringValue& from); |
2748 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
2749 | 0 | void MergeFrom( const StringValue& from) { |
2750 | 0 | StringValue::MergeImpl(*this, from); |
2751 | 0 | } |
2752 | | private: |
2753 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
2754 | | public: |
2755 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
2756 | | bool IsInitialized() const final; |
2757 | | |
2758 | | size_t ByteSizeLong() const final; |
2759 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
2760 | | uint8_t* _InternalSerialize( |
2761 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
2762 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
2763 | | |
2764 | | private: |
2765 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
2766 | | void SharedDtor(); |
2767 | | void SetCachedSize(int size) const final; |
2768 | | void InternalSwap(StringValue* other); |
2769 | | |
2770 | | private: |
2771 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
2772 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
2773 | 0 | return "json_proto.StringValue"; |
2774 | 0 | } |
2775 | | protected: |
2776 | | explicit StringValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
2777 | | bool is_message_owned = false); |
2778 | | public: |
2779 | | |
2780 | | static const ClassData _class_data_; |
2781 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
2782 | | |
2783 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
2784 | | |
2785 | | // nested types ---------------------------------------------------- |
2786 | | |
2787 | | // accessors ------------------------------------------------------- |
2788 | | |
2789 | | enum : int { |
2790 | | kValueFieldNumber = 1, |
2791 | | }; |
2792 | | // required string value = 1; |
2793 | | bool has_value() const; |
2794 | | private: |
2795 | | bool _internal_has_value() const; |
2796 | | public: |
2797 | | void clear_value(); |
2798 | | const std::string& value() const; |
2799 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
2800 | | void set_value(ArgT0&& arg0, ArgT... args); |
2801 | | std::string* mutable_value(); |
2802 | | PROTOBUF_NODISCARD std::string* release_value(); |
2803 | | void set_allocated_value(std::string* value); |
2804 | | private: |
2805 | | const std::string& _internal_value() const; |
2806 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_value(const std::string& value); |
2807 | | std::string* _internal_mutable_value(); |
2808 | | public: |
2809 | | |
2810 | | // @@protoc_insertion_point(class_scope:json_proto.StringValue) |
2811 | | private: |
2812 | | class _Internal; |
2813 | | |
2814 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
2815 | | typedef void InternalArenaConstructable_; |
2816 | | typedef void DestructorSkippable_; |
2817 | | struct Impl_ { |
2818 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
2819 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
2820 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_; |
2821 | | }; |
2822 | | union { Impl_ _impl_; }; |
2823 | | friend struct ::TableStruct_LUKS2_5fplain_5fJSON_2eproto; |
2824 | | }; |
2825 | | // ------------------------------------------------------------------- |
2826 | | |
2827 | | class BooleanValue final : |
2828 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:json_proto.BooleanValue) */ { |
2829 | | public: |
2830 | 0 | inline BooleanValue() : BooleanValue(nullptr) {} |
2831 | | ~BooleanValue() override; |
2832 | | explicit PROTOBUF_CONSTEXPR BooleanValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
2833 | | |
2834 | | BooleanValue(const BooleanValue& from); |
2835 | | BooleanValue(BooleanValue&& from) noexcept |
2836 | 0 | : BooleanValue() { |
2837 | 0 | *this = ::std::move(from); |
2838 | 0 | } |
2839 | | |
2840 | 0 | inline BooleanValue& operator=(const BooleanValue& from) { |
2841 | 0 | CopyFrom(from); |
2842 | 0 | return *this; |
2843 | 0 | } |
2844 | 0 | inline BooleanValue& operator=(BooleanValue&& from) noexcept { |
2845 | 0 | if (this == &from) return *this; |
2846 | 0 | if (GetOwningArena() == from.GetOwningArena() |
2847 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
2848 | 0 | && GetOwningArena() != nullptr |
2849 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
2850 | 0 | ) { |
2851 | 0 | InternalSwap(&from); |
2852 | 0 | } else { |
2853 | 0 | CopyFrom(from); |
2854 | 0 | } |
2855 | 0 | return *this; |
2856 | 0 | } |
2857 | | |
2858 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
2859 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
2860 | 0 | } |
2861 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
2862 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
2863 | 0 | } |
2864 | | |
2865 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
2866 | 0 | return GetDescriptor(); |
2867 | 0 | } |
2868 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
2869 | 0 | return default_instance().GetMetadata().descriptor; |
2870 | 0 | } |
2871 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
2872 | 0 | return default_instance().GetMetadata().reflection; |
2873 | 0 | } |
2874 | 0 | static const BooleanValue& default_instance() { |
2875 | 0 | return *internal_default_instance(); |
2876 | 0 | } |
2877 | 0 | static inline const BooleanValue* internal_default_instance() { |
2878 | 0 | return reinterpret_cast<const BooleanValue*>( |
2879 | 0 | &_BooleanValue_default_instance_); |
2880 | 0 | } |
2881 | | static constexpr int kIndexInFileMessages = |
2882 | | 13; |
2883 | | |
2884 | 0 | friend void swap(BooleanValue& a, BooleanValue& b) { |
2885 | 0 | a.Swap(&b); |
2886 | 0 | } |
2887 | 0 | inline void Swap(BooleanValue* other) { |
2888 | 0 | if (other == this) return; |
2889 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
2890 | 0 | if (GetOwningArena() != nullptr && |
2891 | 0 | GetOwningArena() == other->GetOwningArena()) { |
2892 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
2893 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
2894 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
2895 | 0 | InternalSwap(other); |
2896 | 0 | } else { |
2897 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
2898 | 0 | } |
2899 | 0 | } |
2900 | 0 | void UnsafeArenaSwap(BooleanValue* other) { |
2901 | 0 | if (other == this) return; |
2902 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
2903 | 0 | InternalSwap(other); |
2904 | 0 | } |
2905 | | |
2906 | | // implements Message ---------------------------------------------- |
2907 | | |
2908 | 538 | BooleanValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
2909 | 538 | return CreateMaybeMessage<BooleanValue>(arena); |
2910 | 538 | } |
2911 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
2912 | | void CopyFrom(const BooleanValue& from); |
2913 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
2914 | 0 | void MergeFrom( const BooleanValue& from) { |
2915 | 0 | BooleanValue::MergeImpl(*this, from); |
2916 | 0 | } |
2917 | | private: |
2918 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
2919 | | public: |
2920 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
2921 | | bool IsInitialized() const final; |
2922 | | |
2923 | | size_t ByteSizeLong() const final; |
2924 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
2925 | | uint8_t* _InternalSerialize( |
2926 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
2927 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
2928 | | |
2929 | | private: |
2930 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
2931 | | void SharedDtor(); |
2932 | | void SetCachedSize(int size) const final; |
2933 | | void InternalSwap(BooleanValue* other); |
2934 | | |
2935 | | private: |
2936 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
2937 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
2938 | 0 | return "json_proto.BooleanValue"; |
2939 | 0 | } |
2940 | | protected: |
2941 | | explicit BooleanValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
2942 | | bool is_message_owned = false); |
2943 | | public: |
2944 | | |
2945 | | static const ClassData _class_data_; |
2946 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
2947 | | |
2948 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
2949 | | |
2950 | | // nested types ---------------------------------------------------- |
2951 | | |
2952 | | // accessors ------------------------------------------------------- |
2953 | | |
2954 | | enum : int { |
2955 | | kValueFieldNumber = 1, |
2956 | | }; |
2957 | | // required bool value = 1; |
2958 | | bool has_value() const; |
2959 | | private: |
2960 | | bool _internal_has_value() const; |
2961 | | public: |
2962 | | void clear_value(); |
2963 | | bool value() const; |
2964 | | void set_value(bool value); |
2965 | | private: |
2966 | | bool _internal_value() const; |
2967 | | void _internal_set_value(bool value); |
2968 | | public: |
2969 | | |
2970 | | // @@protoc_insertion_point(class_scope:json_proto.BooleanValue) |
2971 | | private: |
2972 | | class _Internal; |
2973 | | |
2974 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
2975 | | typedef void InternalArenaConstructable_; |
2976 | | typedef void DestructorSkippable_; |
2977 | | struct Impl_ { |
2978 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
2979 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
2980 | | bool value_; |
2981 | | }; |
2982 | | union { Impl_ _impl_; }; |
2983 | | friend struct ::TableStruct_LUKS2_5fplain_5fJSON_2eproto; |
2984 | | }; |
2985 | | // =================================================================== |
2986 | | |
2987 | | |
2988 | | // =================================================================== |
2989 | | |
2990 | | #ifdef __GNUC__ |
2991 | | #pragma GCC diagnostic push |
2992 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
2993 | | #endif // __GNUC__ |
2994 | | // object_id |
2995 | | |
2996 | | // uint32 int_id = 1; |
2997 | 0 | inline bool object_id::_internal_has_int_id() const { |
2998 | 0 | return id_case() == kIntId; |
2999 | 0 | } |
3000 | 0 | inline bool object_id::has_int_id() const { |
3001 | 0 | return _internal_has_int_id(); |
3002 | 0 | } |
3003 | 0 | inline void object_id::set_has_int_id() { |
3004 | 0 | _impl_._oneof_case_[0] = kIntId; |
3005 | 0 | } |
3006 | 0 | inline void object_id::clear_int_id() { |
3007 | 0 | if (_internal_has_int_id()) { |
3008 | 0 | _impl_.id_.int_id_ = 0u; |
3009 | 0 | clear_has_id(); |
3010 | 0 | } |
3011 | 0 | } |
3012 | 0 | inline uint32_t object_id::_internal_int_id() const { |
3013 | 0 | if (_internal_has_int_id()) { |
3014 | 0 | return _impl_.id_.int_id_; |
3015 | 0 | } |
3016 | 0 | return 0u; |
3017 | 0 | } |
3018 | 0 | inline void object_id::_internal_set_int_id(uint32_t value) { |
3019 | 0 | if (!_internal_has_int_id()) { |
3020 | 0 | clear_id(); |
3021 | 0 | set_has_int_id(); |
3022 | 0 | } |
3023 | 0 | _impl_.id_.int_id_ = value; |
3024 | 0 | } |
3025 | 0 | inline uint32_t object_id::int_id() const { |
3026 | 0 | // @@protoc_insertion_point(field_get:json_proto.object_id.int_id) |
3027 | 0 | return _internal_int_id(); |
3028 | 0 | } |
3029 | 0 | inline void object_id::set_int_id(uint32_t value) { |
3030 | 0 | _internal_set_int_id(value); |
3031 | 0 | // @@protoc_insertion_point(field_set:json_proto.object_id.int_id) |
3032 | 0 | } |
3033 | | |
3034 | | // string string_id = 2; |
3035 | 0 | inline bool object_id::_internal_has_string_id() const { |
3036 | 0 | return id_case() == kStringId; |
3037 | 0 | } |
3038 | 0 | inline bool object_id::has_string_id() const { |
3039 | 0 | return _internal_has_string_id(); |
3040 | 0 | } |
3041 | 0 | inline void object_id::set_has_string_id() { |
3042 | 0 | _impl_._oneof_case_[0] = kStringId; |
3043 | 0 | } |
3044 | 0 | inline void object_id::clear_string_id() { |
3045 | 0 | if (_internal_has_string_id()) { |
3046 | 0 | _impl_.id_.string_id_.Destroy(); |
3047 | 0 | clear_has_id(); |
3048 | 0 | } |
3049 | 0 | } |
3050 | 0 | inline const std::string& object_id::string_id() const { |
3051 | 0 | // @@protoc_insertion_point(field_get:json_proto.object_id.string_id) |
3052 | 0 | return _internal_string_id(); |
3053 | 0 | } |
3054 | | template <typename ArgT0, typename... ArgT> |
3055 | | inline void object_id::set_string_id(ArgT0&& arg0, ArgT... args) { |
3056 | | if (!_internal_has_string_id()) { |
3057 | | clear_id(); |
3058 | | set_has_string_id(); |
3059 | | _impl_.id_.string_id_.InitDefault(); |
3060 | | } |
3061 | | _impl_.id_.string_id_.Set( static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
3062 | | // @@protoc_insertion_point(field_set:json_proto.object_id.string_id) |
3063 | | } |
3064 | 0 | inline std::string* object_id::mutable_string_id() { |
3065 | 0 | std::string* _s = _internal_mutable_string_id(); |
3066 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.object_id.string_id) |
3067 | 0 | return _s; |
3068 | 0 | } |
3069 | 0 | inline const std::string& object_id::_internal_string_id() const { |
3070 | 0 | if (_internal_has_string_id()) { |
3071 | 0 | return _impl_.id_.string_id_.Get(); |
3072 | 0 | } |
3073 | 0 | return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); |
3074 | 0 | } |
3075 | 0 | inline void object_id::_internal_set_string_id(const std::string& value) { |
3076 | 0 | if (!_internal_has_string_id()) { |
3077 | 0 | clear_id(); |
3078 | 0 | set_has_string_id(); |
3079 | 0 | _impl_.id_.string_id_.InitDefault(); |
3080 | 0 | } |
3081 | 0 | _impl_.id_.string_id_.Set(value, GetArenaForAllocation()); |
3082 | 0 | } |
3083 | 0 | inline std::string* object_id::_internal_mutable_string_id() { |
3084 | 0 | if (!_internal_has_string_id()) { |
3085 | 0 | clear_id(); |
3086 | 0 | set_has_string_id(); |
3087 | 0 | _impl_.id_.string_id_.InitDefault(); |
3088 | 0 | } |
3089 | 0 | return _impl_.id_.string_id_.Mutable( GetArenaForAllocation()); |
3090 | 0 | } |
3091 | 0 | inline std::string* object_id::release_string_id() { |
3092 | 0 | // @@protoc_insertion_point(field_release:json_proto.object_id.string_id) |
3093 | 0 | if (_internal_has_string_id()) { |
3094 | 0 | clear_has_id(); |
3095 | 0 | return _impl_.id_.string_id_.Release(); |
3096 | 0 | } else { |
3097 | 0 | return nullptr; |
3098 | 0 | } |
3099 | 0 | } |
3100 | 0 | inline void object_id::set_allocated_string_id(std::string* string_id) { |
3101 | 0 | if (has_id()) { |
3102 | 0 | clear_id(); |
3103 | 0 | } |
3104 | 0 | if (string_id != nullptr) { |
3105 | 0 | set_has_string_id(); |
3106 | 0 | _impl_.id_.string_id_.InitAllocated(string_id, GetArenaForAllocation()); |
3107 | 0 | } |
3108 | 0 | // @@protoc_insertion_point(field_set_allocated:json_proto.object_id.string_id) |
3109 | 0 | } |
3110 | | |
3111 | 0 | inline bool object_id::has_id() const { |
3112 | 0 | return id_case() != ID_NOT_SET; |
3113 | 0 | } |
3114 | 0 | inline void object_id::clear_has_id() { |
3115 | 0 | _impl_._oneof_case_[0] = ID_NOT_SET; |
3116 | 0 | } |
3117 | 0 | inline object_id::IdCase object_id::id_case() const { |
3118 | 0 | return object_id::IdCase(_impl_._oneof_case_[0]); |
3119 | 0 | } |
3120 | | // ------------------------------------------------------------------- |
3121 | | |
3122 | | // string_uint64 |
3123 | | |
3124 | | // required bool negative = 1; |
3125 | 0 | inline bool string_uint64::_internal_has_negative() const { |
3126 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
3127 | 0 | return value; |
3128 | 0 | } |
3129 | 0 | inline bool string_uint64::has_negative() const { |
3130 | 0 | return _internal_has_negative(); |
3131 | 0 | } |
3132 | 0 | inline void string_uint64::clear_negative() { |
3133 | 0 | _impl_.negative_ = false; |
3134 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3135 | 0 | } |
3136 | 0 | inline bool string_uint64::_internal_negative() const { |
3137 | 0 | return _impl_.negative_; |
3138 | 0 | } |
3139 | 0 | inline bool string_uint64::negative() const { |
3140 | 0 | // @@protoc_insertion_point(field_get:json_proto.string_uint64.negative) |
3141 | 0 | return _internal_negative(); |
3142 | 0 | } |
3143 | 0 | inline void string_uint64::_internal_set_negative(bool value) { |
3144 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
3145 | 0 | _impl_.negative_ = value; |
3146 | 0 | } |
3147 | 0 | inline void string_uint64::set_negative(bool value) { |
3148 | 0 | _internal_set_negative(value); |
3149 | 0 | // @@protoc_insertion_point(field_set:json_proto.string_uint64.negative) |
3150 | 0 | } |
3151 | | |
3152 | | // uint32 uint_num = 2; |
3153 | 0 | inline bool string_uint64::_internal_has_uint_num() const { |
3154 | 0 | return number_case() == kUintNum; |
3155 | 0 | } |
3156 | 0 | inline bool string_uint64::has_uint_num() const { |
3157 | 0 | return _internal_has_uint_num(); |
3158 | 0 | } |
3159 | 0 | inline void string_uint64::set_has_uint_num() { |
3160 | 0 | _impl_._oneof_case_[0] = kUintNum; |
3161 | 0 | } |
3162 | 0 | inline void string_uint64::clear_uint_num() { |
3163 | 0 | if (_internal_has_uint_num()) { |
3164 | 0 | _impl_.number_.uint_num_ = 0u; |
3165 | 0 | clear_has_number(); |
3166 | 0 | } |
3167 | 0 | } |
3168 | 0 | inline uint32_t string_uint64::_internal_uint_num() const { |
3169 | 0 | if (_internal_has_uint_num()) { |
3170 | 0 | return _impl_.number_.uint_num_; |
3171 | 0 | } |
3172 | 0 | return 0u; |
3173 | 0 | } |
3174 | 0 | inline void string_uint64::_internal_set_uint_num(uint32_t value) { |
3175 | 0 | if (!_internal_has_uint_num()) { |
3176 | 0 | clear_number(); |
3177 | 0 | set_has_uint_num(); |
3178 | 0 | } |
3179 | 0 | _impl_.number_.uint_num_ = value; |
3180 | 0 | } |
3181 | 0 | inline uint32_t string_uint64::uint_num() const { |
3182 | 0 | // @@protoc_insertion_point(field_get:json_proto.string_uint64.uint_num) |
3183 | 0 | return _internal_uint_num(); |
3184 | 0 | } |
3185 | 0 | inline void string_uint64::set_uint_num(uint32_t value) { |
3186 | 0 | _internal_set_uint_num(value); |
3187 | 0 | // @@protoc_insertion_point(field_set:json_proto.string_uint64.uint_num) |
3188 | 0 | } |
3189 | | |
3190 | | // string string_num = 3; |
3191 | 0 | inline bool string_uint64::_internal_has_string_num() const { |
3192 | 0 | return number_case() == kStringNum; |
3193 | 0 | } |
3194 | 0 | inline bool string_uint64::has_string_num() const { |
3195 | 0 | return _internal_has_string_num(); |
3196 | 0 | } |
3197 | 0 | inline void string_uint64::set_has_string_num() { |
3198 | 0 | _impl_._oneof_case_[0] = kStringNum; |
3199 | 0 | } |
3200 | 0 | inline void string_uint64::clear_string_num() { |
3201 | 0 | if (_internal_has_string_num()) { |
3202 | 0 | _impl_.number_.string_num_.Destroy(); |
3203 | 0 | clear_has_number(); |
3204 | 0 | } |
3205 | 0 | } |
3206 | 0 | inline const std::string& string_uint64::string_num() const { |
3207 | 0 | // @@protoc_insertion_point(field_get:json_proto.string_uint64.string_num) |
3208 | 0 | return _internal_string_num(); |
3209 | 0 | } |
3210 | | template <typename ArgT0, typename... ArgT> |
3211 | | inline void string_uint64::set_string_num(ArgT0&& arg0, ArgT... args) { |
3212 | | if (!_internal_has_string_num()) { |
3213 | | clear_number(); |
3214 | | set_has_string_num(); |
3215 | | _impl_.number_.string_num_.InitDefault(); |
3216 | | } |
3217 | | _impl_.number_.string_num_.Set( static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
3218 | | // @@protoc_insertion_point(field_set:json_proto.string_uint64.string_num) |
3219 | | } |
3220 | 0 | inline std::string* string_uint64::mutable_string_num() { |
3221 | 0 | std::string* _s = _internal_mutable_string_num(); |
3222 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.string_uint64.string_num) |
3223 | 0 | return _s; |
3224 | 0 | } |
3225 | 0 | inline const std::string& string_uint64::_internal_string_num() const { |
3226 | 0 | if (_internal_has_string_num()) { |
3227 | 0 | return _impl_.number_.string_num_.Get(); |
3228 | 0 | } |
3229 | 0 | return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); |
3230 | 0 | } |
3231 | 0 | inline void string_uint64::_internal_set_string_num(const std::string& value) { |
3232 | 0 | if (!_internal_has_string_num()) { |
3233 | 0 | clear_number(); |
3234 | 0 | set_has_string_num(); |
3235 | 0 | _impl_.number_.string_num_.InitDefault(); |
3236 | 0 | } |
3237 | 0 | _impl_.number_.string_num_.Set(value, GetArenaForAllocation()); |
3238 | 0 | } |
3239 | 0 | inline std::string* string_uint64::_internal_mutable_string_num() { |
3240 | 0 | if (!_internal_has_string_num()) { |
3241 | 0 | clear_number(); |
3242 | 0 | set_has_string_num(); |
3243 | 0 | _impl_.number_.string_num_.InitDefault(); |
3244 | 0 | } |
3245 | 0 | return _impl_.number_.string_num_.Mutable( GetArenaForAllocation()); |
3246 | 0 | } |
3247 | 0 | inline std::string* string_uint64::release_string_num() { |
3248 | 0 | // @@protoc_insertion_point(field_release:json_proto.string_uint64.string_num) |
3249 | 0 | if (_internal_has_string_num()) { |
3250 | 0 | clear_has_number(); |
3251 | 0 | return _impl_.number_.string_num_.Release(); |
3252 | 0 | } else { |
3253 | 0 | return nullptr; |
3254 | 0 | } |
3255 | 0 | } |
3256 | 0 | inline void string_uint64::set_allocated_string_num(std::string* string_num) { |
3257 | 0 | if (has_number()) { |
3258 | 0 | clear_number(); |
3259 | 0 | } |
3260 | 0 | if (string_num != nullptr) { |
3261 | 0 | set_has_string_num(); |
3262 | 0 | _impl_.number_.string_num_.InitAllocated(string_num, GetArenaForAllocation()); |
3263 | 0 | } |
3264 | 0 | // @@protoc_insertion_point(field_set_allocated:json_proto.string_uint64.string_num) |
3265 | 0 | } |
3266 | | |
3267 | 0 | inline bool string_uint64::has_number() const { |
3268 | 0 | return number_case() != NUMBER_NOT_SET; |
3269 | 0 | } |
3270 | 0 | inline void string_uint64::clear_has_number() { |
3271 | 0 | _impl_._oneof_case_[0] = NUMBER_NOT_SET; |
3272 | 0 | } |
3273 | 0 | inline string_uint64::NumberCase string_uint64::number_case() const { |
3274 | 0 | return string_uint64::NumberCase(_impl_._oneof_case_[0]); |
3275 | 0 | } |
3276 | | // ------------------------------------------------------------------- |
3277 | | |
3278 | | // LUKS2_header |
3279 | | |
3280 | | // required .json_proto.luks_version version = 1; |
3281 | 0 | inline bool LUKS2_header::_internal_has_version() const { |
3282 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; |
3283 | 0 | return value; |
3284 | 0 | } |
3285 | 0 | inline bool LUKS2_header::has_version() const { |
3286 | 0 | return _internal_has_version(); |
3287 | 0 | } |
3288 | 0 | inline void LUKS2_header::clear_version() { |
3289 | 0 | _impl_.version_ = 1; |
3290 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
3291 | 0 | } |
3292 | 5.82k | inline ::json_proto::luks_version LUKS2_header::_internal_version() const { |
3293 | 5.82k | return static_cast< ::json_proto::luks_version >(_impl_.version_); |
3294 | 5.82k | } |
3295 | 5.82k | inline ::json_proto::luks_version LUKS2_header::version() const { |
3296 | | // @@protoc_insertion_point(field_get:json_proto.LUKS2_header.version) |
3297 | 5.82k | return _internal_version(); |
3298 | 5.82k | } |
3299 | 0 | inline void LUKS2_header::_internal_set_version(::json_proto::luks_version value) { |
3300 | 0 | assert(::json_proto::luks_version_IsValid(value)); |
3301 | 0 | _impl_._has_bits_[0] |= 0x00000008u; |
3302 | 0 | _impl_.version_ = value; |
3303 | 0 | } |
3304 | 0 | inline void LUKS2_header::set_version(::json_proto::luks_version value) { |
3305 | 0 | _internal_set_version(value); |
3306 | 0 | // @@protoc_insertion_point(field_set:json_proto.LUKS2_header.version) |
3307 | 0 | } |
3308 | | |
3309 | | // required .json_proto.luks2_magic magic = 2; |
3310 | 0 | inline bool LUKS2_header::_internal_has_magic() const { |
3311 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
3312 | 0 | return value; |
3313 | 0 | } |
3314 | 0 | inline bool LUKS2_header::has_magic() const { |
3315 | 0 | return _internal_has_magic(); |
3316 | 0 | } |
3317 | 0 | inline void LUKS2_header::clear_magic() { |
3318 | 0 | _impl_.magic_ = 0; |
3319 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3320 | 0 | } |
3321 | 5.82k | inline ::json_proto::luks2_magic LUKS2_header::_internal_magic() const { |
3322 | 5.82k | return static_cast< ::json_proto::luks2_magic >(_impl_.magic_); |
3323 | 5.82k | } |
3324 | 5.82k | inline ::json_proto::luks2_magic LUKS2_header::magic() const { |
3325 | | // @@protoc_insertion_point(field_get:json_proto.LUKS2_header.magic) |
3326 | 5.82k | return _internal_magic(); |
3327 | 5.82k | } |
3328 | 0 | inline void LUKS2_header::_internal_set_magic(::json_proto::luks2_magic value) { |
3329 | 0 | assert(::json_proto::luks2_magic_IsValid(value)); |
3330 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
3331 | 0 | _impl_.magic_ = value; |
3332 | 0 | } |
3333 | 0 | inline void LUKS2_header::set_magic(::json_proto::luks2_magic value) { |
3334 | 0 | _internal_set_magic(value); |
3335 | 0 | // @@protoc_insertion_point(field_set:json_proto.LUKS2_header.magic) |
3336 | 0 | } |
3337 | | |
3338 | | // required .json_proto.hdr_size hdr_size = 3; |
3339 | 0 | inline bool LUKS2_header::_internal_has_hdr_size() const { |
3340 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; |
3341 | 0 | return value; |
3342 | 0 | } |
3343 | 0 | inline bool LUKS2_header::has_hdr_size() const { |
3344 | 0 | return _internal_has_hdr_size(); |
3345 | 0 | } |
3346 | 0 | inline void LUKS2_header::clear_hdr_size() { |
3347 | 0 | _impl_.hdr_size_ = 16384; |
3348 | 0 | _impl_._has_bits_[0] &= ~0x00000010u; |
3349 | 0 | } |
3350 | 32.0k | inline ::json_proto::hdr_size LUKS2_header::_internal_hdr_size() const { |
3351 | 32.0k | return static_cast< ::json_proto::hdr_size >(_impl_.hdr_size_); |
3352 | 32.0k | } |
3353 | 32.0k | inline ::json_proto::hdr_size LUKS2_header::hdr_size() const { |
3354 | | // @@protoc_insertion_point(field_get:json_proto.LUKS2_header.hdr_size) |
3355 | 32.0k | return _internal_hdr_size(); |
3356 | 32.0k | } |
3357 | 0 | inline void LUKS2_header::_internal_set_hdr_size(::json_proto::hdr_size value) { |
3358 | 0 | assert(::json_proto::hdr_size_IsValid(value)); |
3359 | 0 | _impl_._has_bits_[0] |= 0x00000010u; |
3360 | 0 | _impl_.hdr_size_ = value; |
3361 | 0 | } |
3362 | 0 | inline void LUKS2_header::set_hdr_size(::json_proto::hdr_size value) { |
3363 | 0 | _internal_set_hdr_size(value); |
3364 | 0 | // @@protoc_insertion_point(field_set:json_proto.LUKS2_header.hdr_size) |
3365 | 0 | } |
3366 | | |
3367 | | // required bool use_correct_checksum = 4; |
3368 | 0 | inline bool LUKS2_header::_internal_has_use_correct_checksum() const { |
3369 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
3370 | 0 | return value; |
3371 | 0 | } |
3372 | 0 | inline bool LUKS2_header::has_use_correct_checksum() const { |
3373 | 0 | return _internal_has_use_correct_checksum(); |
3374 | 0 | } |
3375 | 0 | inline void LUKS2_header::clear_use_correct_checksum() { |
3376 | 0 | _impl_.use_correct_checksum_ = false; |
3377 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
3378 | 0 | } |
3379 | 5.82k | inline bool LUKS2_header::_internal_use_correct_checksum() const { |
3380 | 5.82k | return _impl_.use_correct_checksum_; |
3381 | 5.82k | } |
3382 | 5.82k | inline bool LUKS2_header::use_correct_checksum() const { |
3383 | | // @@protoc_insertion_point(field_get:json_proto.LUKS2_header.use_correct_checksum) |
3384 | 5.82k | return _internal_use_correct_checksum(); |
3385 | 5.82k | } |
3386 | 0 | inline void LUKS2_header::_internal_set_use_correct_checksum(bool value) { |
3387 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
3388 | 0 | _impl_.use_correct_checksum_ = value; |
3389 | 0 | } |
3390 | 0 | inline void LUKS2_header::set_use_correct_checksum(bool value) { |
3391 | 0 | _internal_set_use_correct_checksum(value); |
3392 | 0 | // @@protoc_insertion_point(field_set:json_proto.LUKS2_header.use_correct_checksum) |
3393 | 0 | } |
3394 | | |
3395 | | // optional uint64 selected_offset = 5; |
3396 | 5.82k | inline bool LUKS2_header::_internal_has_selected_offset() const { |
3397 | 5.82k | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
3398 | 5.82k | return value; |
3399 | 5.82k | } |
3400 | 5.82k | inline bool LUKS2_header::has_selected_offset() const { |
3401 | 5.82k | return _internal_has_selected_offset(); |
3402 | 5.82k | } |
3403 | 0 | inline void LUKS2_header::clear_selected_offset() { |
3404 | 0 | _impl_.selected_offset_ = uint64_t{0u}; |
3405 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
3406 | 0 | } |
3407 | 120 | inline uint64_t LUKS2_header::_internal_selected_offset() const { |
3408 | 120 | return _impl_.selected_offset_; |
3409 | 120 | } |
3410 | 120 | inline uint64_t LUKS2_header::selected_offset() const { |
3411 | | // @@protoc_insertion_point(field_get:json_proto.LUKS2_header.selected_offset) |
3412 | 120 | return _internal_selected_offset(); |
3413 | 120 | } |
3414 | 0 | inline void LUKS2_header::_internal_set_selected_offset(uint64_t value) { |
3415 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
3416 | 0 | _impl_.selected_offset_ = value; |
3417 | 0 | } |
3418 | 0 | inline void LUKS2_header::set_selected_offset(uint64_t value) { |
3419 | 0 | _internal_set_selected_offset(value); |
3420 | 0 | // @@protoc_insertion_point(field_set:json_proto.LUKS2_header.selected_offset) |
3421 | 0 | } |
3422 | | |
3423 | | // ------------------------------------------------------------------- |
3424 | | |
3425 | | // LUKS2_both_headers |
3426 | | |
3427 | | // required .json_proto.LUKS2_header primary_header = 1; |
3428 | 2.91k | inline bool LUKS2_both_headers::_internal_has_primary_header() const { |
3429 | 2.91k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
3430 | 2.91k | PROTOBUF_ASSUME(!value || _impl_.primary_header_ != nullptr); |
3431 | 2.91k | return value; |
3432 | 2.91k | } |
3433 | 0 | inline bool LUKS2_both_headers::has_primary_header() const { |
3434 | 0 | return _internal_has_primary_header(); |
3435 | 0 | } |
3436 | 0 | inline void LUKS2_both_headers::clear_primary_header() { |
3437 | 0 | if (_impl_.primary_header_ != nullptr) _impl_.primary_header_->Clear(); |
3438 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3439 | 0 | } |
3440 | 8.74k | inline const ::json_proto::LUKS2_header& LUKS2_both_headers::_internal_primary_header() const { |
3441 | 8.74k | const ::json_proto::LUKS2_header* p = _impl_.primary_header_; |
3442 | 8.74k | return p != nullptr ? *p : reinterpret_cast<const ::json_proto::LUKS2_header&>( |
3443 | 0 | ::json_proto::_LUKS2_header_default_instance_); |
3444 | 8.74k | } |
3445 | 8.74k | inline const ::json_proto::LUKS2_header& LUKS2_both_headers::primary_header() const { |
3446 | | // @@protoc_insertion_point(field_get:json_proto.LUKS2_both_headers.primary_header) |
3447 | 8.74k | return _internal_primary_header(); |
3448 | 8.74k | } |
3449 | | inline void LUKS2_both_headers::unsafe_arena_set_allocated_primary_header( |
3450 | 0 | ::json_proto::LUKS2_header* primary_header) { |
3451 | 0 | if (GetArenaForAllocation() == nullptr) { |
3452 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.primary_header_); |
3453 | 0 | } |
3454 | 0 | _impl_.primary_header_ = primary_header; |
3455 | 0 | if (primary_header) { |
3456 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
3457 | 0 | } else { |
3458 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3459 | 0 | } |
3460 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:json_proto.LUKS2_both_headers.primary_header) |
3461 | 0 | } |
3462 | 0 | inline ::json_proto::LUKS2_header* LUKS2_both_headers::release_primary_header() { |
3463 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3464 | 0 | ::json_proto::LUKS2_header* temp = _impl_.primary_header_; |
3465 | 0 | _impl_.primary_header_ = nullptr; |
3466 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
3467 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
3468 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3469 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
3470 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
3471 | 0 | if (GetArenaForAllocation() != nullptr) { |
3472 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3473 | 0 | } |
3474 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
3475 | 0 | return temp; |
3476 | 0 | } |
3477 | 0 | inline ::json_proto::LUKS2_header* LUKS2_both_headers::unsafe_arena_release_primary_header() { |
3478 | 0 | // @@protoc_insertion_point(field_release:json_proto.LUKS2_both_headers.primary_header) |
3479 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3480 | 0 | ::json_proto::LUKS2_header* temp = _impl_.primary_header_; |
3481 | 0 | _impl_.primary_header_ = nullptr; |
3482 | 0 | return temp; |
3483 | 0 | } |
3484 | 0 | inline ::json_proto::LUKS2_header* LUKS2_both_headers::_internal_mutable_primary_header() { |
3485 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
3486 | 0 | if (_impl_.primary_header_ == nullptr) { |
3487 | 0 | auto* p = CreateMaybeMessage<::json_proto::LUKS2_header>(GetArenaForAllocation()); |
3488 | 0 | _impl_.primary_header_ = p; |
3489 | 0 | } |
3490 | 0 | return _impl_.primary_header_; |
3491 | 0 | } |
3492 | 0 | inline ::json_proto::LUKS2_header* LUKS2_both_headers::mutable_primary_header() { |
3493 | 0 | ::json_proto::LUKS2_header* _msg = _internal_mutable_primary_header(); |
3494 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.LUKS2_both_headers.primary_header) |
3495 | 0 | return _msg; |
3496 | 0 | } |
3497 | 0 | inline void LUKS2_both_headers::set_allocated_primary_header(::json_proto::LUKS2_header* primary_header) { |
3498 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
3499 | 0 | if (message_arena == nullptr) { |
3500 | 0 | delete _impl_.primary_header_; |
3501 | 0 | } |
3502 | 0 | if (primary_header) { |
3503 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
3504 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(primary_header); |
3505 | 0 | if (message_arena != submessage_arena) { |
3506 | 0 | primary_header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
3507 | 0 | message_arena, primary_header, submessage_arena); |
3508 | 0 | } |
3509 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
3510 | 0 | } else { |
3511 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3512 | 0 | } |
3513 | 0 | _impl_.primary_header_ = primary_header; |
3514 | 0 | // @@protoc_insertion_point(field_set_allocated:json_proto.LUKS2_both_headers.primary_header) |
3515 | 0 | } |
3516 | | |
3517 | | // required .json_proto.LUKS2_header secondary_header = 2; |
3518 | 2.91k | inline bool LUKS2_both_headers::_internal_has_secondary_header() const { |
3519 | 2.91k | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
3520 | 2.91k | PROTOBUF_ASSUME(!value || _impl_.secondary_header_ != nullptr); |
3521 | 2.91k | return value; |
3522 | 2.91k | } |
3523 | 0 | inline bool LUKS2_both_headers::has_secondary_header() const { |
3524 | 0 | return _internal_has_secondary_header(); |
3525 | 0 | } |
3526 | 0 | inline void LUKS2_both_headers::clear_secondary_header() { |
3527 | 0 | if (_impl_.secondary_header_ != nullptr) _impl_.secondary_header_->Clear(); |
3528 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
3529 | 0 | } |
3530 | 5.82k | inline const ::json_proto::LUKS2_header& LUKS2_both_headers::_internal_secondary_header() const { |
3531 | 5.82k | const ::json_proto::LUKS2_header* p = _impl_.secondary_header_; |
3532 | 5.82k | return p != nullptr ? *p : reinterpret_cast<const ::json_proto::LUKS2_header&>( |
3533 | 0 | ::json_proto::_LUKS2_header_default_instance_); |
3534 | 5.82k | } |
3535 | 5.82k | inline const ::json_proto::LUKS2_header& LUKS2_both_headers::secondary_header() const { |
3536 | | // @@protoc_insertion_point(field_get:json_proto.LUKS2_both_headers.secondary_header) |
3537 | 5.82k | return _internal_secondary_header(); |
3538 | 5.82k | } |
3539 | | inline void LUKS2_both_headers::unsafe_arena_set_allocated_secondary_header( |
3540 | 0 | ::json_proto::LUKS2_header* secondary_header) { |
3541 | 0 | if (GetArenaForAllocation() == nullptr) { |
3542 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.secondary_header_); |
3543 | 0 | } |
3544 | 0 | _impl_.secondary_header_ = secondary_header; |
3545 | 0 | if (secondary_header) { |
3546 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
3547 | 0 | } else { |
3548 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
3549 | 0 | } |
3550 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:json_proto.LUKS2_both_headers.secondary_header) |
3551 | 0 | } |
3552 | 0 | inline ::json_proto::LUKS2_header* LUKS2_both_headers::release_secondary_header() { |
3553 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
3554 | 0 | ::json_proto::LUKS2_header* temp = _impl_.secondary_header_; |
3555 | 0 | _impl_.secondary_header_ = nullptr; |
3556 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
3557 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
3558 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3559 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
3560 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
3561 | 0 | if (GetArenaForAllocation() != nullptr) { |
3562 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3563 | 0 | } |
3564 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
3565 | 0 | return temp; |
3566 | 0 | } |
3567 | 0 | inline ::json_proto::LUKS2_header* LUKS2_both_headers::unsafe_arena_release_secondary_header() { |
3568 | 0 | // @@protoc_insertion_point(field_release:json_proto.LUKS2_both_headers.secondary_header) |
3569 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
3570 | 0 | ::json_proto::LUKS2_header* temp = _impl_.secondary_header_; |
3571 | 0 | _impl_.secondary_header_ = nullptr; |
3572 | 0 | return temp; |
3573 | 0 | } |
3574 | 0 | inline ::json_proto::LUKS2_header* LUKS2_both_headers::_internal_mutable_secondary_header() { |
3575 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
3576 | 0 | if (_impl_.secondary_header_ == nullptr) { |
3577 | 0 | auto* p = CreateMaybeMessage<::json_proto::LUKS2_header>(GetArenaForAllocation()); |
3578 | 0 | _impl_.secondary_header_ = p; |
3579 | 0 | } |
3580 | 0 | return _impl_.secondary_header_; |
3581 | 0 | } |
3582 | 0 | inline ::json_proto::LUKS2_header* LUKS2_both_headers::mutable_secondary_header() { |
3583 | 0 | ::json_proto::LUKS2_header* _msg = _internal_mutable_secondary_header(); |
3584 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.LUKS2_both_headers.secondary_header) |
3585 | 0 | return _msg; |
3586 | 0 | } |
3587 | 0 | inline void LUKS2_both_headers::set_allocated_secondary_header(::json_proto::LUKS2_header* secondary_header) { |
3588 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
3589 | 0 | if (message_arena == nullptr) { |
3590 | 0 | delete _impl_.secondary_header_; |
3591 | 0 | } |
3592 | 0 | if (secondary_header) { |
3593 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
3594 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(secondary_header); |
3595 | 0 | if (message_arena != submessage_arena) { |
3596 | 0 | secondary_header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
3597 | 0 | message_arena, secondary_header, submessage_arena); |
3598 | 0 | } |
3599 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
3600 | 0 | } else { |
3601 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
3602 | 0 | } |
3603 | 0 | _impl_.secondary_header_ = secondary_header; |
3604 | 0 | // @@protoc_insertion_point(field_set_allocated:json_proto.LUKS2_both_headers.secondary_header) |
3605 | 0 | } |
3606 | | |
3607 | | // required .json_proto.seqid_description seqid = 3; |
3608 | 0 | inline bool LUKS2_both_headers::_internal_has_seqid() const { |
3609 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; |
3610 | 0 | return value; |
3611 | 0 | } |
3612 | 0 | inline bool LUKS2_both_headers::has_seqid() const { |
3613 | 0 | return _internal_has_seqid(); |
3614 | 0 | } |
3615 | 0 | inline void LUKS2_both_headers::clear_seqid() { |
3616 | 0 | _impl_.seqid_ = 0; |
3617 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
3618 | 0 | } |
3619 | 2.91k | inline ::json_proto::seqid_description LUKS2_both_headers::_internal_seqid() const { |
3620 | 2.91k | return static_cast< ::json_proto::seqid_description >(_impl_.seqid_); |
3621 | 2.91k | } |
3622 | 2.91k | inline ::json_proto::seqid_description LUKS2_both_headers::seqid() const { |
3623 | | // @@protoc_insertion_point(field_get:json_proto.LUKS2_both_headers.seqid) |
3624 | 2.91k | return _internal_seqid(); |
3625 | 2.91k | } |
3626 | 0 | inline void LUKS2_both_headers::_internal_set_seqid(::json_proto::seqid_description value) { |
3627 | 0 | assert(::json_proto::seqid_description_IsValid(value)); |
3628 | 0 | _impl_._has_bits_[0] |= 0x00000008u; |
3629 | 0 | _impl_.seqid_ = value; |
3630 | 0 | } |
3631 | 0 | inline void LUKS2_both_headers::set_seqid(::json_proto::seqid_description value) { |
3632 | 0 | _internal_set_seqid(value); |
3633 | 0 | // @@protoc_insertion_point(field_set:json_proto.LUKS2_both_headers.seqid) |
3634 | 0 | } |
3635 | | |
3636 | | // required .json_proto.JsonObject json_area = 4; |
3637 | 2.91k | inline bool LUKS2_both_headers::_internal_has_json_area() const { |
3638 | 2.91k | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
3639 | 2.91k | PROTOBUF_ASSUME(!value || _impl_.json_area_ != nullptr); |
3640 | 2.91k | return value; |
3641 | 2.91k | } |
3642 | 0 | inline bool LUKS2_both_headers::has_json_area() const { |
3643 | 0 | return _internal_has_json_area(); |
3644 | 0 | } |
3645 | 0 | inline void LUKS2_both_headers::clear_json_area() { |
3646 | 0 | if (_impl_.json_area_ != nullptr) _impl_.json_area_->Clear(); |
3647 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
3648 | 0 | } |
3649 | 2.91k | inline const ::json_proto::JsonObject& LUKS2_both_headers::_internal_json_area() const { |
3650 | 2.91k | const ::json_proto::JsonObject* p = _impl_.json_area_; |
3651 | 2.91k | return p != nullptr ? *p : reinterpret_cast<const ::json_proto::JsonObject&>( |
3652 | 0 | ::json_proto::_JsonObject_default_instance_); |
3653 | 2.91k | } |
3654 | 2.91k | inline const ::json_proto::JsonObject& LUKS2_both_headers::json_area() const { |
3655 | | // @@protoc_insertion_point(field_get:json_proto.LUKS2_both_headers.json_area) |
3656 | 2.91k | return _internal_json_area(); |
3657 | 2.91k | } |
3658 | | inline void LUKS2_both_headers::unsafe_arena_set_allocated_json_area( |
3659 | 0 | ::json_proto::JsonObject* json_area) { |
3660 | 0 | if (GetArenaForAllocation() == nullptr) { |
3661 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.json_area_); |
3662 | 0 | } |
3663 | 0 | _impl_.json_area_ = json_area; |
3664 | 0 | if (json_area) { |
3665 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
3666 | 0 | } else { |
3667 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
3668 | 0 | } |
3669 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:json_proto.LUKS2_both_headers.json_area) |
3670 | 0 | } |
3671 | 0 | inline ::json_proto::JsonObject* LUKS2_both_headers::release_json_area() { |
3672 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
3673 | 0 | ::json_proto::JsonObject* temp = _impl_.json_area_; |
3674 | 0 | _impl_.json_area_ = nullptr; |
3675 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
3676 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
3677 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3678 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
3679 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
3680 | 0 | if (GetArenaForAllocation() != nullptr) { |
3681 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3682 | 0 | } |
3683 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
3684 | 0 | return temp; |
3685 | 0 | } |
3686 | 0 | inline ::json_proto::JsonObject* LUKS2_both_headers::unsafe_arena_release_json_area() { |
3687 | 0 | // @@protoc_insertion_point(field_release:json_proto.LUKS2_both_headers.json_area) |
3688 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
3689 | 0 | ::json_proto::JsonObject* temp = _impl_.json_area_; |
3690 | 0 | _impl_.json_area_ = nullptr; |
3691 | 0 | return temp; |
3692 | 0 | } |
3693 | 0 | inline ::json_proto::JsonObject* LUKS2_both_headers::_internal_mutable_json_area() { |
3694 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
3695 | 0 | if (_impl_.json_area_ == nullptr) { |
3696 | 0 | auto* p = CreateMaybeMessage<::json_proto::JsonObject>(GetArenaForAllocation()); |
3697 | 0 | _impl_.json_area_ = p; |
3698 | 0 | } |
3699 | 0 | return _impl_.json_area_; |
3700 | 0 | } |
3701 | 0 | inline ::json_proto::JsonObject* LUKS2_both_headers::mutable_json_area() { |
3702 | 0 | ::json_proto::JsonObject* _msg = _internal_mutable_json_area(); |
3703 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.LUKS2_both_headers.json_area) |
3704 | 0 | return _msg; |
3705 | 0 | } |
3706 | 0 | inline void LUKS2_both_headers::set_allocated_json_area(::json_proto::JsonObject* json_area) { |
3707 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
3708 | 0 | if (message_arena == nullptr) { |
3709 | 0 | delete _impl_.json_area_; |
3710 | 0 | } |
3711 | 0 | if (json_area) { |
3712 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
3713 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(json_area); |
3714 | 0 | if (message_arena != submessage_arena) { |
3715 | 0 | json_area = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
3716 | 0 | message_arena, json_area, submessage_arena); |
3717 | 0 | } |
3718 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
3719 | 0 | } else { |
3720 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
3721 | 0 | } |
3722 | 0 | _impl_.json_area_ = json_area; |
3723 | 0 | // @@protoc_insertion_point(field_set_allocated:json_proto.LUKS2_both_headers.json_area) |
3724 | 0 | } |
3725 | | |
3726 | | // ------------------------------------------------------------------- |
3727 | | |
3728 | | // JsonObject |
3729 | | |
3730 | | // required string name = 1; |
3731 | 0 | inline bool JsonObject::_internal_has_name() const { |
3732 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
3733 | 0 | return value; |
3734 | 0 | } |
3735 | 0 | inline bool JsonObject::has_name() const { |
3736 | 0 | return _internal_has_name(); |
3737 | 0 | } |
3738 | 0 | inline void JsonObject::clear_name() { |
3739 | 0 | _impl_.name_.ClearToEmpty(); |
3740 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3741 | 0 | } |
3742 | 5.07k | inline const std::string& JsonObject::name() const { |
3743 | | // @@protoc_insertion_point(field_get:json_proto.JsonObject.name) |
3744 | 5.07k | return _internal_name(); |
3745 | 5.07k | } |
3746 | | template <typename ArgT0, typename... ArgT> |
3747 | | inline PROTOBUF_ALWAYS_INLINE |
3748 | | void JsonObject::set_name(ArgT0&& arg0, ArgT... args) { |
3749 | | _impl_._has_bits_[0] |= 0x00000001u; |
3750 | | _impl_.name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
3751 | | // @@protoc_insertion_point(field_set:json_proto.JsonObject.name) |
3752 | | } |
3753 | 0 | inline std::string* JsonObject::mutable_name() { |
3754 | 0 | std::string* _s = _internal_mutable_name(); |
3755 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.JsonObject.name) |
3756 | 0 | return _s; |
3757 | 0 | } |
3758 | 5.07k | inline const std::string& JsonObject::_internal_name() const { |
3759 | 5.07k | return _impl_.name_.Get(); |
3760 | 5.07k | } |
3761 | 0 | inline void JsonObject::_internal_set_name(const std::string& value) { |
3762 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
3763 | 0 | _impl_.name_.Set(value, GetArenaForAllocation()); |
3764 | 0 | } |
3765 | 0 | inline std::string* JsonObject::_internal_mutable_name() { |
3766 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
3767 | 0 | return _impl_.name_.Mutable(GetArenaForAllocation()); |
3768 | 0 | } |
3769 | 0 | inline std::string* JsonObject::release_name() { |
3770 | 0 | // @@protoc_insertion_point(field_release:json_proto.JsonObject.name) |
3771 | 0 | if (!_internal_has_name()) { |
3772 | 0 | return nullptr; |
3773 | 0 | } |
3774 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3775 | 0 | auto* p = _impl_.name_.Release(); |
3776 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
3777 | 0 | if (_impl_.name_.IsDefault()) { |
3778 | 0 | _impl_.name_.Set("", GetArenaForAllocation()); |
3779 | 0 | } |
3780 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
3781 | 0 | return p; |
3782 | 0 | } |
3783 | 0 | inline void JsonObject::set_allocated_name(std::string* name) { |
3784 | 0 | if (name != nullptr) { |
3785 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
3786 | 0 | } else { |
3787 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3788 | 0 | } |
3789 | 0 | _impl_.name_.SetAllocated(name, GetArenaForAllocation()); |
3790 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
3791 | 0 | if (_impl_.name_.IsDefault()) { |
3792 | 0 | _impl_.name_.Set("", GetArenaForAllocation()); |
3793 | 0 | } |
3794 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
3795 | 0 | // @@protoc_insertion_point(field_set_allocated:json_proto.JsonObject.name) |
3796 | 0 | } |
3797 | | |
3798 | | // required .json_proto.JsonValue value = 2; |
3799 | 5.07k | inline bool JsonObject::_internal_has_value() const { |
3800 | 5.07k | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
3801 | 5.07k | PROTOBUF_ASSUME(!value || _impl_.value_ != nullptr); |
3802 | 5.07k | return value; |
3803 | 5.07k | } |
3804 | 0 | inline bool JsonObject::has_value() const { |
3805 | 0 | return _internal_has_value(); |
3806 | 0 | } |
3807 | 0 | inline void JsonObject::clear_value() { |
3808 | 0 | if (_impl_.value_ != nullptr) _impl_.value_->Clear(); |
3809 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
3810 | 0 | } |
3811 | 5.07k | inline const ::json_proto::JsonValue& JsonObject::_internal_value() const { |
3812 | 5.07k | const ::json_proto::JsonValue* p = _impl_.value_; |
3813 | 5.07k | return p != nullptr ? *p : reinterpret_cast<const ::json_proto::JsonValue&>( |
3814 | 0 | ::json_proto::_JsonValue_default_instance_); |
3815 | 5.07k | } |
3816 | 5.07k | inline const ::json_proto::JsonValue& JsonObject::value() const { |
3817 | | // @@protoc_insertion_point(field_get:json_proto.JsonObject.value) |
3818 | 5.07k | return _internal_value(); |
3819 | 5.07k | } |
3820 | | inline void JsonObject::unsafe_arena_set_allocated_value( |
3821 | 0 | ::json_proto::JsonValue* value) { |
3822 | 0 | if (GetArenaForAllocation() == nullptr) { |
3823 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.value_); |
3824 | 0 | } |
3825 | 0 | _impl_.value_ = value; |
3826 | 0 | if (value) { |
3827 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
3828 | 0 | } else { |
3829 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
3830 | 0 | } |
3831 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:json_proto.JsonObject.value) |
3832 | 0 | } |
3833 | 0 | inline ::json_proto::JsonValue* JsonObject::release_value() { |
3834 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
3835 | 0 | ::json_proto::JsonValue* temp = _impl_.value_; |
3836 | 0 | _impl_.value_ = nullptr; |
3837 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
3838 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
3839 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3840 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
3841 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
3842 | 0 | if (GetArenaForAllocation() != nullptr) { |
3843 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3844 | 0 | } |
3845 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
3846 | 0 | return temp; |
3847 | 0 | } |
3848 | 0 | inline ::json_proto::JsonValue* JsonObject::unsafe_arena_release_value() { |
3849 | 0 | // @@protoc_insertion_point(field_release:json_proto.JsonObject.value) |
3850 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
3851 | 0 | ::json_proto::JsonValue* temp = _impl_.value_; |
3852 | 0 | _impl_.value_ = nullptr; |
3853 | 0 | return temp; |
3854 | 0 | } |
3855 | 0 | inline ::json_proto::JsonValue* JsonObject::_internal_mutable_value() { |
3856 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
3857 | 0 | if (_impl_.value_ == nullptr) { |
3858 | 0 | auto* p = CreateMaybeMessage<::json_proto::JsonValue>(GetArenaForAllocation()); |
3859 | 0 | _impl_.value_ = p; |
3860 | 0 | } |
3861 | 0 | return _impl_.value_; |
3862 | 0 | } |
3863 | 0 | inline ::json_proto::JsonValue* JsonObject::mutable_value() { |
3864 | 0 | ::json_proto::JsonValue* _msg = _internal_mutable_value(); |
3865 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.JsonObject.value) |
3866 | 0 | return _msg; |
3867 | 0 | } |
3868 | 0 | inline void JsonObject::set_allocated_value(::json_proto::JsonValue* value) { |
3869 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
3870 | 0 | if (message_arena == nullptr) { |
3871 | 0 | delete _impl_.value_; |
3872 | 0 | } |
3873 | 0 | if (value) { |
3874 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
3875 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(value); |
3876 | 0 | if (message_arena != submessage_arena) { |
3877 | 0 | value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
3878 | 0 | message_arena, value, submessage_arena); |
3879 | 0 | } |
3880 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
3881 | 0 | } else { |
3882 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
3883 | 0 | } |
3884 | 0 | _impl_.value_ = value; |
3885 | 0 | // @@protoc_insertion_point(field_set_allocated:json_proto.JsonObject.value) |
3886 | 0 | } |
3887 | | |
3888 | | // ------------------------------------------------------------------- |
3889 | | |
3890 | | // JsonValue |
3891 | | |
3892 | | // .json_proto.JsonObject object_value = 1; |
3893 | 16.9k | inline bool JsonValue::_internal_has_object_value() const { |
3894 | 16.9k | return value_case() == kObjectValue; |
3895 | 16.9k | } |
3896 | 12.6k | inline bool JsonValue::has_object_value() const { |
3897 | 12.6k | return _internal_has_object_value(); |
3898 | 12.6k | } |
3899 | 0 | inline void JsonValue::set_has_object_value() { |
3900 | 0 | _impl_._oneof_case_[0] = kObjectValue; |
3901 | 0 | } |
3902 | 0 | inline void JsonValue::clear_object_value() { |
3903 | 0 | if (_internal_has_object_value()) { |
3904 | 0 | if (GetArenaForAllocation() == nullptr) { |
3905 | 0 | delete _impl_.value_.object_value_; |
3906 | 0 | } |
3907 | 0 | clear_has_value(); |
3908 | 0 | } |
3909 | 0 | } |
3910 | 0 | inline ::json_proto::JsonObject* JsonValue::release_object_value() { |
3911 | 0 | // @@protoc_insertion_point(field_release:json_proto.JsonValue.object_value) |
3912 | 0 | if (_internal_has_object_value()) { |
3913 | 0 | clear_has_value(); |
3914 | 0 | ::json_proto::JsonObject* temp = _impl_.value_.object_value_; |
3915 | 0 | if (GetArenaForAllocation() != nullptr) { |
3916 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3917 | 0 | } |
3918 | 0 | _impl_.value_.object_value_ = nullptr; |
3919 | 0 | return temp; |
3920 | 0 | } else { |
3921 | 0 | return nullptr; |
3922 | 0 | } |
3923 | 0 | } |
3924 | 2.16k | inline const ::json_proto::JsonObject& JsonValue::_internal_object_value() const { |
3925 | 2.16k | return _internal_has_object_value() |
3926 | 2.16k | ? *_impl_.value_.object_value_ |
3927 | 2.16k | : reinterpret_cast< ::json_proto::JsonObject&>(::json_proto::_JsonObject_default_instance_); |
3928 | 2.16k | } |
3929 | 2.16k | inline const ::json_proto::JsonObject& JsonValue::object_value() const { |
3930 | | // @@protoc_insertion_point(field_get:json_proto.JsonValue.object_value) |
3931 | 2.16k | return _internal_object_value(); |
3932 | 2.16k | } |
3933 | 0 | inline ::json_proto::JsonObject* JsonValue::unsafe_arena_release_object_value() { |
3934 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:json_proto.JsonValue.object_value) |
3935 | 0 | if (_internal_has_object_value()) { |
3936 | 0 | clear_has_value(); |
3937 | 0 | ::json_proto::JsonObject* temp = _impl_.value_.object_value_; |
3938 | 0 | _impl_.value_.object_value_ = nullptr; |
3939 | 0 | return temp; |
3940 | 0 | } else { |
3941 | 0 | return nullptr; |
3942 | 0 | } |
3943 | 0 | } |
3944 | 0 | inline void JsonValue::unsafe_arena_set_allocated_object_value(::json_proto::JsonObject* object_value) { |
3945 | 0 | clear_value(); |
3946 | 0 | if (object_value) { |
3947 | 0 | set_has_object_value(); |
3948 | 0 | _impl_.value_.object_value_ = object_value; |
3949 | 0 | } |
3950 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:json_proto.JsonValue.object_value) |
3951 | 0 | } |
3952 | 0 | inline ::json_proto::JsonObject* JsonValue::_internal_mutable_object_value() { |
3953 | 0 | if (!_internal_has_object_value()) { |
3954 | 0 | clear_value(); |
3955 | 0 | set_has_object_value(); |
3956 | 0 | _impl_.value_.object_value_ = CreateMaybeMessage< ::json_proto::JsonObject >(GetArenaForAllocation()); |
3957 | 0 | } |
3958 | 0 | return _impl_.value_.object_value_; |
3959 | 0 | } |
3960 | 0 | inline ::json_proto::JsonObject* JsonValue::mutable_object_value() { |
3961 | 0 | ::json_proto::JsonObject* _msg = _internal_mutable_object_value(); |
3962 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.JsonValue.object_value) |
3963 | 0 | return _msg; |
3964 | 0 | } |
3965 | | |
3966 | | // .json_proto.ArrayValue array_value = 2; |
3967 | 13.4k | inline bool JsonValue::_internal_has_array_value() const { |
3968 | 13.4k | return value_case() == kArrayValue; |
3969 | 13.4k | } |
3970 | 10.4k | inline bool JsonValue::has_array_value() const { |
3971 | 10.4k | return _internal_has_array_value(); |
3972 | 10.4k | } |
3973 | 0 | inline void JsonValue::set_has_array_value() { |
3974 | 0 | _impl_._oneof_case_[0] = kArrayValue; |
3975 | 0 | } |
3976 | 0 | inline void JsonValue::clear_array_value() { |
3977 | 0 | if (_internal_has_array_value()) { |
3978 | 0 | if (GetArenaForAllocation() == nullptr) { |
3979 | 0 | delete _impl_.value_.array_value_; |
3980 | 0 | } |
3981 | 0 | clear_has_value(); |
3982 | 0 | } |
3983 | 0 | } |
3984 | 0 | inline ::json_proto::ArrayValue* JsonValue::release_array_value() { |
3985 | 0 | // @@protoc_insertion_point(field_release:json_proto.JsonValue.array_value) |
3986 | 0 | if (_internal_has_array_value()) { |
3987 | 0 | clear_has_value(); |
3988 | 0 | ::json_proto::ArrayValue* temp = _impl_.value_.array_value_; |
3989 | 0 | if (GetArenaForAllocation() != nullptr) { |
3990 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3991 | 0 | } |
3992 | 0 | _impl_.value_.array_value_ = nullptr; |
3993 | 0 | return temp; |
3994 | 0 | } else { |
3995 | 0 | return nullptr; |
3996 | 0 | } |
3997 | 0 | } |
3998 | 1.50k | inline const ::json_proto::ArrayValue& JsonValue::_internal_array_value() const { |
3999 | 1.50k | return _internal_has_array_value() |
4000 | 1.50k | ? *_impl_.value_.array_value_ |
4001 | 1.50k | : reinterpret_cast< ::json_proto::ArrayValue&>(::json_proto::_ArrayValue_default_instance_); |
4002 | 1.50k | } |
4003 | 1.50k | inline const ::json_proto::ArrayValue& JsonValue::array_value() const { |
4004 | | // @@protoc_insertion_point(field_get:json_proto.JsonValue.array_value) |
4005 | 1.50k | return _internal_array_value(); |
4006 | 1.50k | } |
4007 | 0 | inline ::json_proto::ArrayValue* JsonValue::unsafe_arena_release_array_value() { |
4008 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:json_proto.JsonValue.array_value) |
4009 | 0 | if (_internal_has_array_value()) { |
4010 | 0 | clear_has_value(); |
4011 | 0 | ::json_proto::ArrayValue* temp = _impl_.value_.array_value_; |
4012 | 0 | _impl_.value_.array_value_ = nullptr; |
4013 | 0 | return temp; |
4014 | 0 | } else { |
4015 | 0 | return nullptr; |
4016 | 0 | } |
4017 | 0 | } |
4018 | 0 | inline void JsonValue::unsafe_arena_set_allocated_array_value(::json_proto::ArrayValue* array_value) { |
4019 | 0 | clear_value(); |
4020 | 0 | if (array_value) { |
4021 | 0 | set_has_array_value(); |
4022 | 0 | _impl_.value_.array_value_ = array_value; |
4023 | 0 | } |
4024 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:json_proto.JsonValue.array_value) |
4025 | 0 | } |
4026 | 0 | inline ::json_proto::ArrayValue* JsonValue::_internal_mutable_array_value() { |
4027 | 0 | if (!_internal_has_array_value()) { |
4028 | 0 | clear_value(); |
4029 | 0 | set_has_array_value(); |
4030 | 0 | _impl_.value_.array_value_ = CreateMaybeMessage< ::json_proto::ArrayValue >(GetArenaForAllocation()); |
4031 | 0 | } |
4032 | 0 | return _impl_.value_.array_value_; |
4033 | 0 | } |
4034 | 0 | inline ::json_proto::ArrayValue* JsonValue::mutable_array_value() { |
4035 | 0 | ::json_proto::ArrayValue* _msg = _internal_mutable_array_value(); |
4036 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.JsonValue.array_value) |
4037 | 0 | return _msg; |
4038 | 0 | } |
4039 | | |
4040 | | // .json_proto.NumberValue number_value = 3; |
4041 | 12.1k | inline bool JsonValue::_internal_has_number_value() const { |
4042 | 12.1k | return value_case() == kNumberValue; |
4043 | 12.1k | } |
4044 | 8.95k | inline bool JsonValue::has_number_value() const { |
4045 | 8.95k | return _internal_has_number_value(); |
4046 | 8.95k | } |
4047 | 0 | inline void JsonValue::set_has_number_value() { |
4048 | 0 | _impl_._oneof_case_[0] = kNumberValue; |
4049 | 0 | } |
4050 | 0 | inline void JsonValue::clear_number_value() { |
4051 | 0 | if (_internal_has_number_value()) { |
4052 | 0 | if (GetArenaForAllocation() == nullptr) { |
4053 | 0 | delete _impl_.value_.number_value_; |
4054 | 0 | } |
4055 | 0 | clear_has_value(); |
4056 | 0 | } |
4057 | 0 | } |
4058 | 0 | inline ::json_proto::NumberValue* JsonValue::release_number_value() { |
4059 | 0 | // @@protoc_insertion_point(field_release:json_proto.JsonValue.number_value) |
4060 | 0 | if (_internal_has_number_value()) { |
4061 | 0 | clear_has_value(); |
4062 | 0 | ::json_proto::NumberValue* temp = _impl_.value_.number_value_; |
4063 | 0 | if (GetArenaForAllocation() != nullptr) { |
4064 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
4065 | 0 | } |
4066 | 0 | _impl_.value_.number_value_ = nullptr; |
4067 | 0 | return temp; |
4068 | 0 | } else { |
4069 | 0 | return nullptr; |
4070 | 0 | } |
4071 | 0 | } |
4072 | 1.60k | inline const ::json_proto::NumberValue& JsonValue::_internal_number_value() const { |
4073 | 1.60k | return _internal_has_number_value() |
4074 | 1.60k | ? *_impl_.value_.number_value_ |
4075 | 1.60k | : reinterpret_cast< ::json_proto::NumberValue&>(::json_proto::_NumberValue_default_instance_); |
4076 | 1.60k | } |
4077 | 1.60k | inline const ::json_proto::NumberValue& JsonValue::number_value() const { |
4078 | | // @@protoc_insertion_point(field_get:json_proto.JsonValue.number_value) |
4079 | 1.60k | return _internal_number_value(); |
4080 | 1.60k | } |
4081 | 0 | inline ::json_proto::NumberValue* JsonValue::unsafe_arena_release_number_value() { |
4082 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:json_proto.JsonValue.number_value) |
4083 | 0 | if (_internal_has_number_value()) { |
4084 | 0 | clear_has_value(); |
4085 | 0 | ::json_proto::NumberValue* temp = _impl_.value_.number_value_; |
4086 | 0 | _impl_.value_.number_value_ = nullptr; |
4087 | 0 | return temp; |
4088 | 0 | } else { |
4089 | 0 | return nullptr; |
4090 | 0 | } |
4091 | 0 | } |
4092 | 0 | inline void JsonValue::unsafe_arena_set_allocated_number_value(::json_proto::NumberValue* number_value) { |
4093 | 0 | clear_value(); |
4094 | 0 | if (number_value) { |
4095 | 0 | set_has_number_value(); |
4096 | 0 | _impl_.value_.number_value_ = number_value; |
4097 | 0 | } |
4098 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:json_proto.JsonValue.number_value) |
4099 | 0 | } |
4100 | 0 | inline ::json_proto::NumberValue* JsonValue::_internal_mutable_number_value() { |
4101 | 0 | if (!_internal_has_number_value()) { |
4102 | 0 | clear_value(); |
4103 | 0 | set_has_number_value(); |
4104 | 0 | _impl_.value_.number_value_ = CreateMaybeMessage< ::json_proto::NumberValue >(GetArenaForAllocation()); |
4105 | 0 | } |
4106 | 0 | return _impl_.value_.number_value_; |
4107 | 0 | } |
4108 | 0 | inline ::json_proto::NumberValue* JsonValue::mutable_number_value() { |
4109 | 0 | ::json_proto::NumberValue* _msg = _internal_mutable_number_value(); |
4110 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.JsonValue.number_value) |
4111 | 0 | return _msg; |
4112 | 0 | } |
4113 | | |
4114 | | // .json_proto.StringValue string_value = 4; |
4115 | 10.1k | inline bool JsonValue::_internal_has_string_value() const { |
4116 | 10.1k | return value_case() == kStringValue; |
4117 | 10.1k | } |
4118 | 7.34k | inline bool JsonValue::has_string_value() const { |
4119 | 7.34k | return _internal_has_string_value(); |
4120 | 7.34k | } |
4121 | 0 | inline void JsonValue::set_has_string_value() { |
4122 | 0 | _impl_._oneof_case_[0] = kStringValue; |
4123 | 0 | } |
4124 | 0 | inline void JsonValue::clear_string_value() { |
4125 | 0 | if (_internal_has_string_value()) { |
4126 | 0 | if (GetArenaForAllocation() == nullptr) { |
4127 | 0 | delete _impl_.value_.string_value_; |
4128 | 0 | } |
4129 | 0 | clear_has_value(); |
4130 | 0 | } |
4131 | 0 | } |
4132 | 0 | inline ::json_proto::StringValue* JsonValue::release_string_value() { |
4133 | 0 | // @@protoc_insertion_point(field_release:json_proto.JsonValue.string_value) |
4134 | 0 | if (_internal_has_string_value()) { |
4135 | 0 | clear_has_value(); |
4136 | 0 | ::json_proto::StringValue* temp = _impl_.value_.string_value_; |
4137 | 0 | if (GetArenaForAllocation() != nullptr) { |
4138 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
4139 | 0 | } |
4140 | 0 | _impl_.value_.string_value_ = nullptr; |
4141 | 0 | return temp; |
4142 | 0 | } else { |
4143 | 0 | return nullptr; |
4144 | 0 | } |
4145 | 0 | } |
4146 | 1.37k | inline const ::json_proto::StringValue& JsonValue::_internal_string_value() const { |
4147 | 1.37k | return _internal_has_string_value() |
4148 | 1.37k | ? *_impl_.value_.string_value_ |
4149 | 1.37k | : reinterpret_cast< ::json_proto::StringValue&>(::json_proto::_StringValue_default_instance_); |
4150 | 1.37k | } |
4151 | 1.37k | inline const ::json_proto::StringValue& JsonValue::string_value() const { |
4152 | | // @@protoc_insertion_point(field_get:json_proto.JsonValue.string_value) |
4153 | 1.37k | return _internal_string_value(); |
4154 | 1.37k | } |
4155 | 0 | inline ::json_proto::StringValue* JsonValue::unsafe_arena_release_string_value() { |
4156 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:json_proto.JsonValue.string_value) |
4157 | 0 | if (_internal_has_string_value()) { |
4158 | 0 | clear_has_value(); |
4159 | 0 | ::json_proto::StringValue* temp = _impl_.value_.string_value_; |
4160 | 0 | _impl_.value_.string_value_ = nullptr; |
4161 | 0 | return temp; |
4162 | 0 | } else { |
4163 | 0 | return nullptr; |
4164 | 0 | } |
4165 | 0 | } |
4166 | 0 | inline void JsonValue::unsafe_arena_set_allocated_string_value(::json_proto::StringValue* string_value) { |
4167 | 0 | clear_value(); |
4168 | 0 | if (string_value) { |
4169 | 0 | set_has_string_value(); |
4170 | 0 | _impl_.value_.string_value_ = string_value; |
4171 | 0 | } |
4172 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:json_proto.JsonValue.string_value) |
4173 | 0 | } |
4174 | 0 | inline ::json_proto::StringValue* JsonValue::_internal_mutable_string_value() { |
4175 | 0 | if (!_internal_has_string_value()) { |
4176 | 0 | clear_value(); |
4177 | 0 | set_has_string_value(); |
4178 | 0 | _impl_.value_.string_value_ = CreateMaybeMessage< ::json_proto::StringValue >(GetArenaForAllocation()); |
4179 | 0 | } |
4180 | 0 | return _impl_.value_.string_value_; |
4181 | 0 | } |
4182 | 0 | inline ::json_proto::StringValue* JsonValue::mutable_string_value() { |
4183 | 0 | ::json_proto::StringValue* _msg = _internal_mutable_string_value(); |
4184 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.JsonValue.string_value) |
4185 | 0 | return _msg; |
4186 | 0 | } |
4187 | | |
4188 | | // .json_proto.BooleanValue boolean_value = 5; |
4189 | 6.82k | inline bool JsonValue::_internal_has_boolean_value() const { |
4190 | 6.82k | return value_case() == kBooleanValue; |
4191 | 6.82k | } |
4192 | 5.97k | inline bool JsonValue::has_boolean_value() const { |
4193 | 5.97k | return _internal_has_boolean_value(); |
4194 | 5.97k | } |
4195 | 0 | inline void JsonValue::set_has_boolean_value() { |
4196 | 0 | _impl_._oneof_case_[0] = kBooleanValue; |
4197 | 0 | } |
4198 | 0 | inline void JsonValue::clear_boolean_value() { |
4199 | 0 | if (_internal_has_boolean_value()) { |
4200 | 0 | if (GetArenaForAllocation() == nullptr) { |
4201 | 0 | delete _impl_.value_.boolean_value_; |
4202 | 0 | } |
4203 | 0 | clear_has_value(); |
4204 | 0 | } |
4205 | 0 | } |
4206 | 0 | inline ::json_proto::BooleanValue* JsonValue::release_boolean_value() { |
4207 | 0 | // @@protoc_insertion_point(field_release:json_proto.JsonValue.boolean_value) |
4208 | 0 | if (_internal_has_boolean_value()) { |
4209 | 0 | clear_has_value(); |
4210 | 0 | ::json_proto::BooleanValue* temp = _impl_.value_.boolean_value_; |
4211 | 0 | if (GetArenaForAllocation() != nullptr) { |
4212 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
4213 | 0 | } |
4214 | 0 | _impl_.value_.boolean_value_ = nullptr; |
4215 | 0 | return temp; |
4216 | 0 | } else { |
4217 | 0 | return nullptr; |
4218 | 0 | } |
4219 | 0 | } |
4220 | 429 | inline const ::json_proto::BooleanValue& JsonValue::_internal_boolean_value() const { |
4221 | 429 | return _internal_has_boolean_value() |
4222 | 429 | ? *_impl_.value_.boolean_value_ |
4223 | 429 | : reinterpret_cast< ::json_proto::BooleanValue&>(::json_proto::_BooleanValue_default_instance_); |
4224 | 429 | } |
4225 | 429 | inline const ::json_proto::BooleanValue& JsonValue::boolean_value() const { |
4226 | | // @@protoc_insertion_point(field_get:json_proto.JsonValue.boolean_value) |
4227 | 429 | return _internal_boolean_value(); |
4228 | 429 | } |
4229 | 0 | inline ::json_proto::BooleanValue* JsonValue::unsafe_arena_release_boolean_value() { |
4230 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:json_proto.JsonValue.boolean_value) |
4231 | 0 | if (_internal_has_boolean_value()) { |
4232 | 0 | clear_has_value(); |
4233 | 0 | ::json_proto::BooleanValue* temp = _impl_.value_.boolean_value_; |
4234 | 0 | _impl_.value_.boolean_value_ = nullptr; |
4235 | 0 | return temp; |
4236 | 0 | } else { |
4237 | 0 | return nullptr; |
4238 | 0 | } |
4239 | 0 | } |
4240 | 0 | inline void JsonValue::unsafe_arena_set_allocated_boolean_value(::json_proto::BooleanValue* boolean_value) { |
4241 | 0 | clear_value(); |
4242 | 0 | if (boolean_value) { |
4243 | 0 | set_has_boolean_value(); |
4244 | 0 | _impl_.value_.boolean_value_ = boolean_value; |
4245 | 0 | } |
4246 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:json_proto.JsonValue.boolean_value) |
4247 | 0 | } |
4248 | 0 | inline ::json_proto::BooleanValue* JsonValue::_internal_mutable_boolean_value() { |
4249 | 0 | if (!_internal_has_boolean_value()) { |
4250 | 0 | clear_value(); |
4251 | 0 | set_has_boolean_value(); |
4252 | 0 | _impl_.value_.boolean_value_ = CreateMaybeMessage< ::json_proto::BooleanValue >(GetArenaForAllocation()); |
4253 | 0 | } |
4254 | 0 | return _impl_.value_.boolean_value_; |
4255 | 0 | } |
4256 | 0 | inline ::json_proto::BooleanValue* JsonValue::mutable_boolean_value() { |
4257 | 0 | ::json_proto::BooleanValue* _msg = _internal_mutable_boolean_value(); |
4258 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.JsonValue.boolean_value) |
4259 | 0 | return _msg; |
4260 | 0 | } |
4261 | | |
4262 | 15.3k | inline bool JsonValue::has_value() const { |
4263 | 15.3k | return value_case() != VALUE_NOT_SET; |
4264 | 15.3k | } |
4265 | 15.3k | inline void JsonValue::clear_has_value() { |
4266 | 15.3k | _impl_._oneof_case_[0] = VALUE_NOT_SET; |
4267 | 15.3k | } |
4268 | 97.7k | inline JsonValue::ValueCase JsonValue::value_case() const { |
4269 | 97.7k | return JsonValue::ValueCase(_impl_._oneof_case_[0]); |
4270 | 97.7k | } |
4271 | | // ------------------------------------------------------------------- |
4272 | | |
4273 | | // ArrayValue |
4274 | | |
4275 | | // repeated .json_proto.JsonValue value = 1; |
4276 | 0 | inline int ArrayValue::_internal_value_size() const { |
4277 | 0 | return _impl_.value_.size(); |
4278 | 0 | } |
4279 | 0 | inline int ArrayValue::value_size() const { |
4280 | 0 | return _internal_value_size(); |
4281 | 0 | } |
4282 | 0 | inline void ArrayValue::clear_value() { |
4283 | 0 | _impl_.value_.Clear(); |
4284 | 0 | } |
4285 | 0 | inline ::json_proto::JsonValue* ArrayValue::mutable_value(int index) { |
4286 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.ArrayValue.value) |
4287 | 0 | return _impl_.value_.Mutable(index); |
4288 | 0 | } |
4289 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::json_proto::JsonValue >* |
4290 | 0 | ArrayValue::mutable_value() { |
4291 | 0 | // @@protoc_insertion_point(field_mutable_list:json_proto.ArrayValue.value) |
4292 | 0 | return &_impl_.value_; |
4293 | 0 | } |
4294 | 0 | inline const ::json_proto::JsonValue& ArrayValue::_internal_value(int index) const { |
4295 | 0 | return _impl_.value_.Get(index); |
4296 | 0 | } |
4297 | 0 | inline const ::json_proto::JsonValue& ArrayValue::value(int index) const { |
4298 | 0 | // @@protoc_insertion_point(field_get:json_proto.ArrayValue.value) |
4299 | 0 | return _internal_value(index); |
4300 | 0 | } |
4301 | 0 | inline ::json_proto::JsonValue* ArrayValue::_internal_add_value() { |
4302 | 0 | return _impl_.value_.Add(); |
4303 | 0 | } |
4304 | 0 | inline ::json_proto::JsonValue* ArrayValue::add_value() { |
4305 | 0 | ::json_proto::JsonValue* _add = _internal_add_value(); |
4306 | 0 | // @@protoc_insertion_point(field_add:json_proto.ArrayValue.value) |
4307 | 0 | return _add; |
4308 | 0 | } |
4309 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::json_proto::JsonValue >& |
4310 | 1.50k | ArrayValue::value() const { |
4311 | | // @@protoc_insertion_point(field_list:json_proto.ArrayValue.value) |
4312 | 1.50k | return _impl_.value_; |
4313 | 1.50k | } |
4314 | | |
4315 | | // ------------------------------------------------------------------- |
4316 | | |
4317 | | // NumberInteger |
4318 | | |
4319 | | // required int64 value = 1; |
4320 | 314 | inline bool NumberInteger::_internal_has_value() const { |
4321 | 314 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
4322 | 314 | return value; |
4323 | 314 | } |
4324 | 0 | inline bool NumberInteger::has_value() const { |
4325 | 0 | return _internal_has_value(); |
4326 | 0 | } |
4327 | 0 | inline void NumberInteger::clear_value() { |
4328 | 0 | _impl_.value_ = int64_t{0}; |
4329 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
4330 | 0 | } |
4331 | 830 | inline int64_t NumberInteger::_internal_value() const { |
4332 | 830 | return _impl_.value_; |
4333 | 830 | } |
4334 | 830 | inline int64_t NumberInteger::value() const { |
4335 | | // @@protoc_insertion_point(field_get:json_proto.NumberInteger.value) |
4336 | 830 | return _internal_value(); |
4337 | 830 | } |
4338 | 0 | inline void NumberInteger::_internal_set_value(int64_t value) { |
4339 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
4340 | 0 | _impl_.value_ = value; |
4341 | 0 | } |
4342 | 0 | inline void NumberInteger::set_value(int64_t value) { |
4343 | 0 | _internal_set_value(value); |
4344 | 0 | // @@protoc_insertion_point(field_set:json_proto.NumberInteger.value) |
4345 | 0 | } |
4346 | | |
4347 | | // ------------------------------------------------------------------- |
4348 | | |
4349 | | // NumberFloat |
4350 | | |
4351 | | // required double value = 1; |
4352 | 0 | inline bool NumberFloat::_internal_has_value() const { |
4353 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
4354 | 0 | return value; |
4355 | 0 | } |
4356 | 0 | inline bool NumberFloat::has_value() const { |
4357 | 0 | return _internal_has_value(); |
4358 | 0 | } |
4359 | 0 | inline void NumberFloat::clear_value() { |
4360 | 0 | _impl_.value_ = 0; |
4361 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
4362 | 0 | } |
4363 | 253 | inline double NumberFloat::_internal_value() const { |
4364 | 253 | return _impl_.value_; |
4365 | 253 | } |
4366 | 253 | inline double NumberFloat::value() const { |
4367 | | // @@protoc_insertion_point(field_get:json_proto.NumberFloat.value) |
4368 | 253 | return _internal_value(); |
4369 | 253 | } |
4370 | 0 | inline void NumberFloat::_internal_set_value(double value) { |
4371 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
4372 | 0 | _impl_.value_ = value; |
4373 | 0 | } |
4374 | 0 | inline void NumberFloat::set_value(double value) { |
4375 | 0 | _internal_set_value(value); |
4376 | 0 | // @@protoc_insertion_point(field_set:json_proto.NumberFloat.value) |
4377 | 0 | } |
4378 | | |
4379 | | // ------------------------------------------------------------------- |
4380 | | |
4381 | | // NumberExponent |
4382 | | |
4383 | | // required int32 base = 1; |
4384 | 0 | inline bool NumberExponent::_internal_has_base() const { |
4385 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
4386 | 0 | return value; |
4387 | 0 | } |
4388 | 0 | inline bool NumberExponent::has_base() const { |
4389 | 0 | return _internal_has_base(); |
4390 | 0 | } |
4391 | 0 | inline void NumberExponent::clear_base() { |
4392 | 0 | _impl_.base_ = 0; |
4393 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
4394 | 0 | } |
4395 | 524 | inline int32_t NumberExponent::_internal_base() const { |
4396 | 524 | return _impl_.base_; |
4397 | 524 | } |
4398 | 524 | inline int32_t NumberExponent::base() const { |
4399 | | // @@protoc_insertion_point(field_get:json_proto.NumberExponent.base) |
4400 | 524 | return _internal_base(); |
4401 | 524 | } |
4402 | 0 | inline void NumberExponent::_internal_set_base(int32_t value) { |
4403 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
4404 | 0 | _impl_.base_ = value; |
4405 | 0 | } |
4406 | 0 | inline void NumberExponent::set_base(int32_t value) { |
4407 | 0 | _internal_set_base(value); |
4408 | 0 | // @@protoc_insertion_point(field_set:json_proto.NumberExponent.base) |
4409 | 0 | } |
4410 | | |
4411 | | // required int32 exponent = 2; |
4412 | 0 | inline bool NumberExponent::_internal_has_exponent() const { |
4413 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
4414 | 0 | return value; |
4415 | 0 | } |
4416 | 0 | inline bool NumberExponent::has_exponent() const { |
4417 | 0 | return _internal_has_exponent(); |
4418 | 0 | } |
4419 | 0 | inline void NumberExponent::clear_exponent() { |
4420 | 0 | _impl_.exponent_ = 0; |
4421 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
4422 | 0 | } |
4423 | 524 | inline int32_t NumberExponent::_internal_exponent() const { |
4424 | 524 | return _impl_.exponent_; |
4425 | 524 | } |
4426 | 524 | inline int32_t NumberExponent::exponent() const { |
4427 | | // @@protoc_insertion_point(field_get:json_proto.NumberExponent.exponent) |
4428 | 524 | return _internal_exponent(); |
4429 | 524 | } |
4430 | 0 | inline void NumberExponent::_internal_set_exponent(int32_t value) { |
4431 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
4432 | 0 | _impl_.exponent_ = value; |
4433 | 0 | } |
4434 | 0 | inline void NumberExponent::set_exponent(int32_t value) { |
4435 | 0 | _internal_set_exponent(value); |
4436 | 0 | // @@protoc_insertion_point(field_set:json_proto.NumberExponent.exponent) |
4437 | 0 | } |
4438 | | |
4439 | | // required bool use_uppercase = 3; |
4440 | 0 | inline bool NumberExponent::_internal_has_use_uppercase() const { |
4441 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
4442 | 0 | return value; |
4443 | 0 | } |
4444 | 0 | inline bool NumberExponent::has_use_uppercase() const { |
4445 | 0 | return _internal_has_use_uppercase(); |
4446 | 0 | } |
4447 | 0 | inline void NumberExponent::clear_use_uppercase() { |
4448 | 0 | _impl_.use_uppercase_ = false; |
4449 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
4450 | 0 | } |
4451 | 524 | inline bool NumberExponent::_internal_use_uppercase() const { |
4452 | 524 | return _impl_.use_uppercase_; |
4453 | 524 | } |
4454 | 524 | inline bool NumberExponent::use_uppercase() const { |
4455 | | // @@protoc_insertion_point(field_get:json_proto.NumberExponent.use_uppercase) |
4456 | 524 | return _internal_use_uppercase(); |
4457 | 524 | } |
4458 | 0 | inline void NumberExponent::_internal_set_use_uppercase(bool value) { |
4459 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
4460 | 0 | _impl_.use_uppercase_ = value; |
4461 | 0 | } |
4462 | 0 | inline void NumberExponent::set_use_uppercase(bool value) { |
4463 | 0 | _internal_set_use_uppercase(value); |
4464 | 0 | // @@protoc_insertion_point(field_set:json_proto.NumberExponent.use_uppercase) |
4465 | 0 | } |
4466 | | |
4467 | | // ------------------------------------------------------------------- |
4468 | | |
4469 | | // NumberExponentFrac |
4470 | | |
4471 | | // required float base = 1; |
4472 | 0 | inline bool NumberExponentFrac::_internal_has_base() const { |
4473 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
4474 | 0 | return value; |
4475 | 0 | } |
4476 | 0 | inline bool NumberExponentFrac::has_base() const { |
4477 | 0 | return _internal_has_base(); |
4478 | 0 | } |
4479 | 0 | inline void NumberExponentFrac::clear_base() { |
4480 | 0 | _impl_.base_ = 0; |
4481 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
4482 | 0 | } |
4483 | 0 | inline float NumberExponentFrac::_internal_base() const { |
4484 | 0 | return _impl_.base_; |
4485 | 0 | } |
4486 | 0 | inline float NumberExponentFrac::base() const { |
4487 | 0 | // @@protoc_insertion_point(field_get:json_proto.NumberExponentFrac.base) |
4488 | 0 | return _internal_base(); |
4489 | 0 | } |
4490 | 0 | inline void NumberExponentFrac::_internal_set_base(float value) { |
4491 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
4492 | 0 | _impl_.base_ = value; |
4493 | 0 | } |
4494 | 0 | inline void NumberExponentFrac::set_base(float value) { |
4495 | 0 | _internal_set_base(value); |
4496 | 0 | // @@protoc_insertion_point(field_set:json_proto.NumberExponentFrac.base) |
4497 | 0 | } |
4498 | | |
4499 | | // required int32 exponent = 2; |
4500 | 0 | inline bool NumberExponentFrac::_internal_has_exponent() const { |
4501 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
4502 | 0 | return value; |
4503 | 0 | } |
4504 | 0 | inline bool NumberExponentFrac::has_exponent() const { |
4505 | 0 | return _internal_has_exponent(); |
4506 | 0 | } |
4507 | 0 | inline void NumberExponentFrac::clear_exponent() { |
4508 | 0 | _impl_.exponent_ = 0; |
4509 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
4510 | 0 | } |
4511 | 0 | inline int32_t NumberExponentFrac::_internal_exponent() const { |
4512 | 0 | return _impl_.exponent_; |
4513 | 0 | } |
4514 | 0 | inline int32_t NumberExponentFrac::exponent() const { |
4515 | 0 | // @@protoc_insertion_point(field_get:json_proto.NumberExponentFrac.exponent) |
4516 | 0 | return _internal_exponent(); |
4517 | 0 | } |
4518 | 0 | inline void NumberExponentFrac::_internal_set_exponent(int32_t value) { |
4519 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
4520 | 0 | _impl_.exponent_ = value; |
4521 | 0 | } |
4522 | 0 | inline void NumberExponentFrac::set_exponent(int32_t value) { |
4523 | 0 | _internal_set_exponent(value); |
4524 | 0 | // @@protoc_insertion_point(field_set:json_proto.NumberExponentFrac.exponent) |
4525 | 0 | } |
4526 | | |
4527 | | // required bool use_uppercase = 3; |
4528 | 0 | inline bool NumberExponentFrac::_internal_has_use_uppercase() const { |
4529 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
4530 | 0 | return value; |
4531 | 0 | } |
4532 | 0 | inline bool NumberExponentFrac::has_use_uppercase() const { |
4533 | 0 | return _internal_has_use_uppercase(); |
4534 | 0 | } |
4535 | 0 | inline void NumberExponentFrac::clear_use_uppercase() { |
4536 | 0 | _impl_.use_uppercase_ = false; |
4537 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
4538 | 0 | } |
4539 | 0 | inline bool NumberExponentFrac::_internal_use_uppercase() const { |
4540 | 0 | return _impl_.use_uppercase_; |
4541 | 0 | } |
4542 | 0 | inline bool NumberExponentFrac::use_uppercase() const { |
4543 | 0 | // @@protoc_insertion_point(field_get:json_proto.NumberExponentFrac.use_uppercase) |
4544 | 0 | return _internal_use_uppercase(); |
4545 | 0 | } |
4546 | 0 | inline void NumberExponentFrac::_internal_set_use_uppercase(bool value) { |
4547 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
4548 | 0 | _impl_.use_uppercase_ = value; |
4549 | 0 | } |
4550 | 0 | inline void NumberExponentFrac::set_use_uppercase(bool value) { |
4551 | 0 | _internal_set_use_uppercase(value); |
4552 | 0 | // @@protoc_insertion_point(field_set:json_proto.NumberExponentFrac.use_uppercase) |
4553 | 0 | } |
4554 | | |
4555 | | // ------------------------------------------------------------------- |
4556 | | |
4557 | | // NumberValue |
4558 | | |
4559 | | // required .json_proto.NumberInteger integer_value = 1; |
4560 | 1.60k | inline bool NumberValue::_internal_has_integer_value() const { |
4561 | 1.60k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
4562 | 1.60k | PROTOBUF_ASSUME(!value || _impl_.integer_value_ != nullptr); |
4563 | 1.60k | return value; |
4564 | 1.60k | } |
4565 | 0 | inline bool NumberValue::has_integer_value() const { |
4566 | 0 | return _internal_has_integer_value(); |
4567 | 0 | } |
4568 | 0 | inline void NumberValue::clear_integer_value() { |
4569 | 0 | if (_impl_.integer_value_ != nullptr) _impl_.integer_value_->Clear(); |
4570 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
4571 | 0 | } |
4572 | 830 | inline const ::json_proto::NumberInteger& NumberValue::_internal_integer_value() const { |
4573 | 830 | const ::json_proto::NumberInteger* p = _impl_.integer_value_; |
4574 | 830 | return p != nullptr ? *p : reinterpret_cast<const ::json_proto::NumberInteger&>( |
4575 | 0 | ::json_proto::_NumberInteger_default_instance_); |
4576 | 830 | } |
4577 | 830 | inline const ::json_proto::NumberInteger& NumberValue::integer_value() const { |
4578 | | // @@protoc_insertion_point(field_get:json_proto.NumberValue.integer_value) |
4579 | 830 | return _internal_integer_value(); |
4580 | 830 | } |
4581 | | inline void NumberValue::unsafe_arena_set_allocated_integer_value( |
4582 | 0 | ::json_proto::NumberInteger* integer_value) { |
4583 | 0 | if (GetArenaForAllocation() == nullptr) { |
4584 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.integer_value_); |
4585 | 0 | } |
4586 | 0 | _impl_.integer_value_ = integer_value; |
4587 | 0 | if (integer_value) { |
4588 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
4589 | 0 | } else { |
4590 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
4591 | 0 | } |
4592 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:json_proto.NumberValue.integer_value) |
4593 | 0 | } |
4594 | 0 | inline ::json_proto::NumberInteger* NumberValue::release_integer_value() { |
4595 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
4596 | 0 | ::json_proto::NumberInteger* temp = _impl_.integer_value_; |
4597 | 0 | _impl_.integer_value_ = nullptr; |
4598 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
4599 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
4600 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
4601 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
4602 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
4603 | 0 | if (GetArenaForAllocation() != nullptr) { |
4604 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
4605 | 0 | } |
4606 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
4607 | 0 | return temp; |
4608 | 0 | } |
4609 | 0 | inline ::json_proto::NumberInteger* NumberValue::unsafe_arena_release_integer_value() { |
4610 | 0 | // @@protoc_insertion_point(field_release:json_proto.NumberValue.integer_value) |
4611 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
4612 | 0 | ::json_proto::NumberInteger* temp = _impl_.integer_value_; |
4613 | 0 | _impl_.integer_value_ = nullptr; |
4614 | 0 | return temp; |
4615 | 0 | } |
4616 | 0 | inline ::json_proto::NumberInteger* NumberValue::_internal_mutable_integer_value() { |
4617 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
4618 | 0 | if (_impl_.integer_value_ == nullptr) { |
4619 | 0 | auto* p = CreateMaybeMessage<::json_proto::NumberInteger>(GetArenaForAllocation()); |
4620 | 0 | _impl_.integer_value_ = p; |
4621 | 0 | } |
4622 | 0 | return _impl_.integer_value_; |
4623 | 0 | } |
4624 | 0 | inline ::json_proto::NumberInteger* NumberValue::mutable_integer_value() { |
4625 | 0 | ::json_proto::NumberInteger* _msg = _internal_mutable_integer_value(); |
4626 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.NumberValue.integer_value) |
4627 | 0 | return _msg; |
4628 | 0 | } |
4629 | 0 | inline void NumberValue::set_allocated_integer_value(::json_proto::NumberInteger* integer_value) { |
4630 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
4631 | 0 | if (message_arena == nullptr) { |
4632 | 0 | delete _impl_.integer_value_; |
4633 | 0 | } |
4634 | 0 | if (integer_value) { |
4635 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
4636 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(integer_value); |
4637 | 0 | if (message_arena != submessage_arena) { |
4638 | 0 | integer_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
4639 | 0 | message_arena, integer_value, submessage_arena); |
4640 | 0 | } |
4641 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
4642 | 0 | } else { |
4643 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
4644 | 0 | } |
4645 | 0 | _impl_.integer_value_ = integer_value; |
4646 | 0 | // @@protoc_insertion_point(field_set_allocated:json_proto.NumberValue.integer_value) |
4647 | 0 | } |
4648 | | |
4649 | | // .json_proto.NumberFloat float_value = 2; |
4650 | 2.11k | inline bool NumberValue::_internal_has_float_value() const { |
4651 | 2.11k | return value_case() == kFloatValue; |
4652 | 2.11k | } |
4653 | 1.60k | inline bool NumberValue::has_float_value() const { |
4654 | 1.60k | return _internal_has_float_value(); |
4655 | 1.60k | } |
4656 | 0 | inline void NumberValue::set_has_float_value() { |
4657 | 0 | _impl_._oneof_case_[0] = kFloatValue; |
4658 | 0 | } |
4659 | 0 | inline void NumberValue::clear_float_value() { |
4660 | 0 | if (_internal_has_float_value()) { |
4661 | 0 | if (GetArenaForAllocation() == nullptr) { |
4662 | 0 | delete _impl_.value_.float_value_; |
4663 | 0 | } |
4664 | 0 | clear_has_value(); |
4665 | 0 | } |
4666 | 0 | } |
4667 | 0 | inline ::json_proto::NumberFloat* NumberValue::release_float_value() { |
4668 | 0 | // @@protoc_insertion_point(field_release:json_proto.NumberValue.float_value) |
4669 | 0 | if (_internal_has_float_value()) { |
4670 | 0 | clear_has_value(); |
4671 | 0 | ::json_proto::NumberFloat* temp = _impl_.value_.float_value_; |
4672 | 0 | if (GetArenaForAllocation() != nullptr) { |
4673 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
4674 | 0 | } |
4675 | 0 | _impl_.value_.float_value_ = nullptr; |
4676 | 0 | return temp; |
4677 | 0 | } else { |
4678 | 0 | return nullptr; |
4679 | 0 | } |
4680 | 0 | } |
4681 | 253 | inline const ::json_proto::NumberFloat& NumberValue::_internal_float_value() const { |
4682 | 253 | return _internal_has_float_value() |
4683 | 253 | ? *_impl_.value_.float_value_ |
4684 | 253 | : reinterpret_cast< ::json_proto::NumberFloat&>(::json_proto::_NumberFloat_default_instance_); |
4685 | 253 | } |
4686 | 253 | inline const ::json_proto::NumberFloat& NumberValue::float_value() const { |
4687 | | // @@protoc_insertion_point(field_get:json_proto.NumberValue.float_value) |
4688 | 253 | return _internal_float_value(); |
4689 | 253 | } |
4690 | 0 | inline ::json_proto::NumberFloat* NumberValue::unsafe_arena_release_float_value() { |
4691 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:json_proto.NumberValue.float_value) |
4692 | 0 | if (_internal_has_float_value()) { |
4693 | 0 | clear_has_value(); |
4694 | 0 | ::json_proto::NumberFloat* temp = _impl_.value_.float_value_; |
4695 | 0 | _impl_.value_.float_value_ = nullptr; |
4696 | 0 | return temp; |
4697 | 0 | } else { |
4698 | 0 | return nullptr; |
4699 | 0 | } |
4700 | 0 | } |
4701 | 0 | inline void NumberValue::unsafe_arena_set_allocated_float_value(::json_proto::NumberFloat* float_value) { |
4702 | 0 | clear_value(); |
4703 | 0 | if (float_value) { |
4704 | 0 | set_has_float_value(); |
4705 | 0 | _impl_.value_.float_value_ = float_value; |
4706 | 0 | } |
4707 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:json_proto.NumberValue.float_value) |
4708 | 0 | } |
4709 | 0 | inline ::json_proto::NumberFloat* NumberValue::_internal_mutable_float_value() { |
4710 | 0 | if (!_internal_has_float_value()) { |
4711 | 0 | clear_value(); |
4712 | 0 | set_has_float_value(); |
4713 | 0 | _impl_.value_.float_value_ = CreateMaybeMessage< ::json_proto::NumberFloat >(GetArenaForAllocation()); |
4714 | 0 | } |
4715 | 0 | return _impl_.value_.float_value_; |
4716 | 0 | } |
4717 | 0 | inline ::json_proto::NumberFloat* NumberValue::mutable_float_value() { |
4718 | 0 | ::json_proto::NumberFloat* _msg = _internal_mutable_float_value(); |
4719 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.NumberValue.float_value) |
4720 | 0 | return _msg; |
4721 | 0 | } |
4722 | | |
4723 | | // .json_proto.NumberExponent exponent_value = 3; |
4724 | 2.17k | inline bool NumberValue::_internal_has_exponent_value() const { |
4725 | 2.17k | return value_case() == kExponentValue; |
4726 | 2.17k | } |
4727 | 1.35k | inline bool NumberValue::has_exponent_value() const { |
4728 | 1.35k | return _internal_has_exponent_value(); |
4729 | 1.35k | } |
4730 | 0 | inline void NumberValue::set_has_exponent_value() { |
4731 | 0 | _impl_._oneof_case_[0] = kExponentValue; |
4732 | 0 | } |
4733 | 0 | inline void NumberValue::clear_exponent_value() { |
4734 | 0 | if (_internal_has_exponent_value()) { |
4735 | 0 | if (GetArenaForAllocation() == nullptr) { |
4736 | 0 | delete _impl_.value_.exponent_value_; |
4737 | 0 | } |
4738 | 0 | clear_has_value(); |
4739 | 0 | } |
4740 | 0 | } |
4741 | 0 | inline ::json_proto::NumberExponent* NumberValue::release_exponent_value() { |
4742 | 0 | // @@protoc_insertion_point(field_release:json_proto.NumberValue.exponent_value) |
4743 | 0 | if (_internal_has_exponent_value()) { |
4744 | 0 | clear_has_value(); |
4745 | 0 | ::json_proto::NumberExponent* temp = _impl_.value_.exponent_value_; |
4746 | 0 | if (GetArenaForAllocation() != nullptr) { |
4747 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
4748 | 0 | } |
4749 | 0 | _impl_.value_.exponent_value_ = nullptr; |
4750 | 0 | return temp; |
4751 | 0 | } else { |
4752 | 0 | return nullptr; |
4753 | 0 | } |
4754 | 0 | } |
4755 | 524 | inline const ::json_proto::NumberExponent& NumberValue::_internal_exponent_value() const { |
4756 | 524 | return _internal_has_exponent_value() |
4757 | 524 | ? *_impl_.value_.exponent_value_ |
4758 | 524 | : reinterpret_cast< ::json_proto::NumberExponent&>(::json_proto::_NumberExponent_default_instance_); |
4759 | 524 | } |
4760 | 524 | inline const ::json_proto::NumberExponent& NumberValue::exponent_value() const { |
4761 | | // @@protoc_insertion_point(field_get:json_proto.NumberValue.exponent_value) |
4762 | 524 | return _internal_exponent_value(); |
4763 | 524 | } |
4764 | 0 | inline ::json_proto::NumberExponent* NumberValue::unsafe_arena_release_exponent_value() { |
4765 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:json_proto.NumberValue.exponent_value) |
4766 | 0 | if (_internal_has_exponent_value()) { |
4767 | 0 | clear_has_value(); |
4768 | 0 | ::json_proto::NumberExponent* temp = _impl_.value_.exponent_value_; |
4769 | 0 | _impl_.value_.exponent_value_ = nullptr; |
4770 | 0 | return temp; |
4771 | 0 | } else { |
4772 | 0 | return nullptr; |
4773 | 0 | } |
4774 | 0 | } |
4775 | 0 | inline void NumberValue::unsafe_arena_set_allocated_exponent_value(::json_proto::NumberExponent* exponent_value) { |
4776 | 0 | clear_value(); |
4777 | 0 | if (exponent_value) { |
4778 | 0 | set_has_exponent_value(); |
4779 | 0 | _impl_.value_.exponent_value_ = exponent_value; |
4780 | 0 | } |
4781 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:json_proto.NumberValue.exponent_value) |
4782 | 0 | } |
4783 | 0 | inline ::json_proto::NumberExponent* NumberValue::_internal_mutable_exponent_value() { |
4784 | 0 | if (!_internal_has_exponent_value()) { |
4785 | 0 | clear_value(); |
4786 | 0 | set_has_exponent_value(); |
4787 | 0 | _impl_.value_.exponent_value_ = CreateMaybeMessage< ::json_proto::NumberExponent >(GetArenaForAllocation()); |
4788 | 0 | } |
4789 | 0 | return _impl_.value_.exponent_value_; |
4790 | 0 | } |
4791 | 0 | inline ::json_proto::NumberExponent* NumberValue::mutable_exponent_value() { |
4792 | 0 | ::json_proto::NumberExponent* _msg = _internal_mutable_exponent_value(); |
4793 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.NumberValue.exponent_value) |
4794 | 0 | return _msg; |
4795 | 0 | } |
4796 | | |
4797 | | // .json_proto.NumberExponentFrac exponent_frac_value = 4; |
4798 | 1.29k | inline bool NumberValue::_internal_has_exponent_frac_value() const { |
4799 | 1.29k | return value_case() == kExponentFracValue; |
4800 | 1.29k | } |
4801 | 1.06k | inline bool NumberValue::has_exponent_frac_value() const { |
4802 | 1.06k | return _internal_has_exponent_frac_value(); |
4803 | 1.06k | } |
4804 | 0 | inline void NumberValue::set_has_exponent_frac_value() { |
4805 | 0 | _impl_._oneof_case_[0] = kExponentFracValue; |
4806 | 0 | } |
4807 | 0 | inline void NumberValue::clear_exponent_frac_value() { |
4808 | 0 | if (_internal_has_exponent_frac_value()) { |
4809 | 0 | if (GetArenaForAllocation() == nullptr) { |
4810 | 0 | delete _impl_.value_.exponent_frac_value_; |
4811 | 0 | } |
4812 | 0 | clear_has_value(); |
4813 | 0 | } |
4814 | 0 | } |
4815 | 0 | inline ::json_proto::NumberExponentFrac* NumberValue::release_exponent_frac_value() { |
4816 | 0 | // @@protoc_insertion_point(field_release:json_proto.NumberValue.exponent_frac_value) |
4817 | 0 | if (_internal_has_exponent_frac_value()) { |
4818 | 0 | clear_has_value(); |
4819 | 0 | ::json_proto::NumberExponentFrac* temp = _impl_.value_.exponent_frac_value_; |
4820 | 0 | if (GetArenaForAllocation() != nullptr) { |
4821 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
4822 | 0 | } |
4823 | 0 | _impl_.value_.exponent_frac_value_ = nullptr; |
4824 | 0 | return temp; |
4825 | 0 | } else { |
4826 | 0 | return nullptr; |
4827 | 0 | } |
4828 | 0 | } |
4829 | 0 | inline const ::json_proto::NumberExponentFrac& NumberValue::_internal_exponent_frac_value() const { |
4830 | 0 | return _internal_has_exponent_frac_value() |
4831 | 0 | ? *_impl_.value_.exponent_frac_value_ |
4832 | 0 | : reinterpret_cast< ::json_proto::NumberExponentFrac&>(::json_proto::_NumberExponentFrac_default_instance_); |
4833 | 0 | } |
4834 | 0 | inline const ::json_proto::NumberExponentFrac& NumberValue::exponent_frac_value() const { |
4835 | 0 | // @@protoc_insertion_point(field_get:json_proto.NumberValue.exponent_frac_value) |
4836 | 0 | return _internal_exponent_frac_value(); |
4837 | 0 | } |
4838 | 0 | inline ::json_proto::NumberExponentFrac* NumberValue::unsafe_arena_release_exponent_frac_value() { |
4839 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:json_proto.NumberValue.exponent_frac_value) |
4840 | 0 | if (_internal_has_exponent_frac_value()) { |
4841 | 0 | clear_has_value(); |
4842 | 0 | ::json_proto::NumberExponentFrac* temp = _impl_.value_.exponent_frac_value_; |
4843 | 0 | _impl_.value_.exponent_frac_value_ = nullptr; |
4844 | 0 | return temp; |
4845 | 0 | } else { |
4846 | 0 | return nullptr; |
4847 | 0 | } |
4848 | 0 | } |
4849 | 0 | inline void NumberValue::unsafe_arena_set_allocated_exponent_frac_value(::json_proto::NumberExponentFrac* exponent_frac_value) { |
4850 | 0 | clear_value(); |
4851 | 0 | if (exponent_frac_value) { |
4852 | 0 | set_has_exponent_frac_value(); |
4853 | 0 | _impl_.value_.exponent_frac_value_ = exponent_frac_value; |
4854 | 0 | } |
4855 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:json_proto.NumberValue.exponent_frac_value) |
4856 | 0 | } |
4857 | 0 | inline ::json_proto::NumberExponentFrac* NumberValue::_internal_mutable_exponent_frac_value() { |
4858 | 0 | if (!_internal_has_exponent_frac_value()) { |
4859 | 0 | clear_value(); |
4860 | 0 | set_has_exponent_frac_value(); |
4861 | 0 | _impl_.value_.exponent_frac_value_ = CreateMaybeMessage< ::json_proto::NumberExponentFrac >(GetArenaForAllocation()); |
4862 | 0 | } |
4863 | 0 | return _impl_.value_.exponent_frac_value_; |
4864 | 0 | } |
4865 | 0 | inline ::json_proto::NumberExponentFrac* NumberValue::mutable_exponent_frac_value() { |
4866 | 0 | ::json_proto::NumberExponentFrac* _msg = _internal_mutable_exponent_frac_value(); |
4867 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.NumberValue.exponent_frac_value) |
4868 | 0 | return _msg; |
4869 | 0 | } |
4870 | | |
4871 | 2.13k | inline bool NumberValue::has_value() const { |
4872 | 2.13k | return value_case() != VALUE_NOT_SET; |
4873 | 2.13k | } |
4874 | 2.13k | inline void NumberValue::clear_has_value() { |
4875 | 2.13k | _impl_._oneof_case_[0] = VALUE_NOT_SET; |
4876 | 2.13k | } |
4877 | 10.5k | inline NumberValue::ValueCase NumberValue::value_case() const { |
4878 | 10.5k | return NumberValue::ValueCase(_impl_._oneof_case_[0]); |
4879 | 10.5k | } |
4880 | | // ------------------------------------------------------------------- |
4881 | | |
4882 | | // StringValue |
4883 | | |
4884 | | // required string value = 1; |
4885 | 0 | inline bool StringValue::_internal_has_value() const { |
4886 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
4887 | 0 | return value; |
4888 | 0 | } |
4889 | 0 | inline bool StringValue::has_value() const { |
4890 | 0 | return _internal_has_value(); |
4891 | 0 | } |
4892 | 0 | inline void StringValue::clear_value() { |
4893 | 0 | _impl_.value_.ClearToEmpty(); |
4894 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
4895 | 0 | } |
4896 | 1.37k | inline const std::string& StringValue::value() const { |
4897 | | // @@protoc_insertion_point(field_get:json_proto.StringValue.value) |
4898 | 1.37k | return _internal_value(); |
4899 | 1.37k | } |
4900 | | template <typename ArgT0, typename... ArgT> |
4901 | | inline PROTOBUF_ALWAYS_INLINE |
4902 | | void StringValue::set_value(ArgT0&& arg0, ArgT... args) { |
4903 | | _impl_._has_bits_[0] |= 0x00000001u; |
4904 | | _impl_.value_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
4905 | | // @@protoc_insertion_point(field_set:json_proto.StringValue.value) |
4906 | | } |
4907 | 0 | inline std::string* StringValue::mutable_value() { |
4908 | 0 | std::string* _s = _internal_mutable_value(); |
4909 | 0 | // @@protoc_insertion_point(field_mutable:json_proto.StringValue.value) |
4910 | 0 | return _s; |
4911 | 0 | } |
4912 | 1.37k | inline const std::string& StringValue::_internal_value() const { |
4913 | 1.37k | return _impl_.value_.Get(); |
4914 | 1.37k | } |
4915 | 0 | inline void StringValue::_internal_set_value(const std::string& value) { |
4916 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
4917 | 0 | _impl_.value_.Set(value, GetArenaForAllocation()); |
4918 | 0 | } |
4919 | 0 | inline std::string* StringValue::_internal_mutable_value() { |
4920 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
4921 | 0 | return _impl_.value_.Mutable(GetArenaForAllocation()); |
4922 | 0 | } |
4923 | 0 | inline std::string* StringValue::release_value() { |
4924 | 0 | // @@protoc_insertion_point(field_release:json_proto.StringValue.value) |
4925 | 0 | if (!_internal_has_value()) { |
4926 | 0 | return nullptr; |
4927 | 0 | } |
4928 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
4929 | 0 | auto* p = _impl_.value_.Release(); |
4930 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
4931 | 0 | if (_impl_.value_.IsDefault()) { |
4932 | 0 | _impl_.value_.Set("", GetArenaForAllocation()); |
4933 | 0 | } |
4934 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
4935 | 0 | return p; |
4936 | 0 | } |
4937 | 0 | inline void StringValue::set_allocated_value(std::string* value) { |
4938 | 0 | if (value != nullptr) { |
4939 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
4940 | 0 | } else { |
4941 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
4942 | 0 | } |
4943 | 0 | _impl_.value_.SetAllocated(value, GetArenaForAllocation()); |
4944 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
4945 | 0 | if (_impl_.value_.IsDefault()) { |
4946 | 0 | _impl_.value_.Set("", GetArenaForAllocation()); |
4947 | 0 | } |
4948 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
4949 | 0 | // @@protoc_insertion_point(field_set_allocated:json_proto.StringValue.value) |
4950 | 0 | } |
4951 | | |
4952 | | // ------------------------------------------------------------------- |
4953 | | |
4954 | | // BooleanValue |
4955 | | |
4956 | | // required bool value = 1; |
4957 | 0 | inline bool BooleanValue::_internal_has_value() const { |
4958 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
4959 | 0 | return value; |
4960 | 0 | } |
4961 | 0 | inline bool BooleanValue::has_value() const { |
4962 | 0 | return _internal_has_value(); |
4963 | 0 | } |
4964 | 0 | inline void BooleanValue::clear_value() { |
4965 | 0 | _impl_.value_ = false; |
4966 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
4967 | 0 | } |
4968 | 429 | inline bool BooleanValue::_internal_value() const { |
4969 | 429 | return _impl_.value_; |
4970 | 429 | } |
4971 | 429 | inline bool BooleanValue::value() const { |
4972 | | // @@protoc_insertion_point(field_get:json_proto.BooleanValue.value) |
4973 | 429 | return _internal_value(); |
4974 | 429 | } |
4975 | 0 | inline void BooleanValue::_internal_set_value(bool value) { |
4976 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
4977 | 0 | _impl_.value_ = value; |
4978 | 0 | } |
4979 | 0 | inline void BooleanValue::set_value(bool value) { |
4980 | 0 | _internal_set_value(value); |
4981 | 0 | // @@protoc_insertion_point(field_set:json_proto.BooleanValue.value) |
4982 | 0 | } |
4983 | | |
4984 | | #ifdef __GNUC__ |
4985 | | #pragma GCC diagnostic pop |
4986 | | #endif // __GNUC__ |
4987 | | // ------------------------------------------------------------------- |
4988 | | |
4989 | | // ------------------------------------------------------------------- |
4990 | | |
4991 | | // ------------------------------------------------------------------- |
4992 | | |
4993 | | // ------------------------------------------------------------------- |
4994 | | |
4995 | | // ------------------------------------------------------------------- |
4996 | | |
4997 | | // ------------------------------------------------------------------- |
4998 | | |
4999 | | // ------------------------------------------------------------------- |
5000 | | |
5001 | | // ------------------------------------------------------------------- |
5002 | | |
5003 | | // ------------------------------------------------------------------- |
5004 | | |
5005 | | // ------------------------------------------------------------------- |
5006 | | |
5007 | | // ------------------------------------------------------------------- |
5008 | | |
5009 | | // ------------------------------------------------------------------- |
5010 | | |
5011 | | // ------------------------------------------------------------------- |
5012 | | |
5013 | | |
5014 | | // @@protoc_insertion_point(namespace_scope) |
5015 | | |
5016 | | } // namespace json_proto |
5017 | | |
5018 | | PROTOBUF_NAMESPACE_OPEN |
5019 | | |
5020 | | template <> struct is_proto_enum< ::json_proto::hash_algorithm> : ::std::true_type {}; |
5021 | | template <> |
5022 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::json_proto::hash_algorithm>() { |
5023 | 0 | return ::json_proto::hash_algorithm_descriptor(); |
5024 | 0 | } |
5025 | | template <> struct is_proto_enum< ::json_proto::luks2_magic> : ::std::true_type {}; |
5026 | | template <> |
5027 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::json_proto::luks2_magic>() { |
5028 | 0 | return ::json_proto::luks2_magic_descriptor(); |
5029 | 0 | } |
5030 | | template <> struct is_proto_enum< ::json_proto::luks_version> : ::std::true_type {}; |
5031 | | template <> |
5032 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::json_proto::luks_version>() { |
5033 | 0 | return ::json_proto::luks_version_descriptor(); |
5034 | 0 | } |
5035 | | template <> struct is_proto_enum< ::json_proto::hdr_size> : ::std::true_type {}; |
5036 | | template <> |
5037 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::json_proto::hdr_size>() { |
5038 | 0 | return ::json_proto::hdr_size_descriptor(); |
5039 | 0 | } |
5040 | | template <> struct is_proto_enum< ::json_proto::seqid_description> : ::std::true_type {}; |
5041 | | template <> |
5042 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::json_proto::seqid_description>() { |
5043 | 0 | return ::json_proto::seqid_description_descriptor(); |
5044 | 0 | } |
5045 | | |
5046 | | PROTOBUF_NAMESPACE_CLOSE |
5047 | | |
5048 | | // @@protoc_insertion_point(global_scope) |
5049 | | |
5050 | | #include <google/protobuf/port_undef.inc> |
5051 | | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_LUKS2_5fplain_5fJSON_2eproto |