Coverage Report

Created: 2026-03-10 06:33

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