Coverage Report

Created: 2025-12-17 06:32

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/brpc/build/test/addressbook1.pb.cc
Line
Count
Source
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: addressbook1.proto
3
4
#include "addressbook1.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
PROTOBUF_CONSTEXPR Ext::Ext(
24
    ::_pbi::ConstantInitialized): _impl_{
25
    /*decltype(_impl_._has_bits_)*/{}
26
  , /*decltype(_impl_._cached_size_)*/{}
27
  , /*decltype(_impl_.databyte_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
28
  , /*decltype(_impl_.age_)*/0u
29
  , /*decltype(_impl_.enumtype_)*/1} {}
30
struct ExtDefaultTypeInternal {
31
  PROTOBUF_CONSTEXPR ExtDefaultTypeInternal()
32
0
      : _instance(::_pbi::ConstantInitialized{}) {}
33
0
  ~ExtDefaultTypeInternal() {}
34
  union {
35
    Ext _instance;
36
  };
37
};
38
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExtDefaultTypeInternal _Ext_default_instance_;
39
PROTOBUF_CONSTEXPR Content::Content(
40
    ::_pbi::ConstantInitialized): _impl_{
41
    /*decltype(_impl_._has_bits_)*/{}
42
  , /*decltype(_impl_._cached_size_)*/{}
43
  , /*decltype(_impl_.uid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
44
  , /*decltype(_impl_.ext_)*/nullptr
45
  , /*decltype(_impl_.distance_)*/0} {}
46
struct ContentDefaultTypeInternal {
47
  PROTOBUF_CONSTEXPR ContentDefaultTypeInternal()
48
0
      : _instance(::_pbi::ConstantInitialized{}) {}
49
0
  ~ContentDefaultTypeInternal() {}
50
  union {
51
    Content _instance;
52
  };
53
};
54
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ContentDefaultTypeInternal _Content_default_instance_;
55
PROTOBUF_CONSTEXPR JsonContextBody::JsonContextBody(
56
    ::_pbi::ConstantInitialized): _impl_{
57
    /*decltype(_impl_._has_bits_)*/{}
58
  , /*decltype(_impl_._cached_size_)*/{}
59
  , /*decltype(_impl_.content_)*/{}
60
  , /*decltype(_impl_.data_)*/{}
61
  , /*decltype(_impl_.info_)*/{}
62
  , /*decltype(_impl_.type_)*/int64_t{0}
63
  , /*decltype(_impl_.spur_)*/0
64
  , /*decltype(_impl_.judge_)*/false
65
  , /*decltype(_impl_.text_)*/0} {}
66
struct JsonContextBodyDefaultTypeInternal {
67
  PROTOBUF_CONSTEXPR JsonContextBodyDefaultTypeInternal()
68
0
      : _instance(::_pbi::ConstantInitialized{}) {}
69
0
  ~JsonContextBodyDefaultTypeInternal() {}
70
  union {
71
    JsonContextBody _instance;
72
  };
73
};
74
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JsonContextBodyDefaultTypeInternal _JsonContextBody_default_instance_;
75
PROTOBUF_CONSTEXPR PersonInfo::PersonInfo(
76
    ::_pbi::ConstantInitialized): _impl_{
77
    /*decltype(_impl_._has_bits_)*/{}
78
  , /*decltype(_impl_._cached_size_)*/{}
79
  , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
80
  , /*decltype(_impl_.json_body_)*/nullptr
81
  , /*decltype(_impl_.id_)*/0} {}
82
struct PersonInfoDefaultTypeInternal {
83
  PROTOBUF_CONSTEXPR PersonInfoDefaultTypeInternal()
84
0
      : _instance(::_pbi::ConstantInitialized{}) {}
85
0
  ~PersonInfoDefaultTypeInternal() {}
86
  union {
87
    PersonInfo _instance;
88
  };
89
};
90
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PersonInfoDefaultTypeInternal _PersonInfo_default_instance_;
91
PROTOBUF_CONSTEXPR AddressBook::AddressBook(
92
    ::_pbi::ConstantInitialized): _impl_{
93
    /*decltype(_impl_.person_)*/{}
94
  , /*decltype(_impl_._cached_size_)*/{}} {}
95
struct AddressBookDefaultTypeInternal {
96
  PROTOBUF_CONSTEXPR AddressBookDefaultTypeInternal()
97
0
      : _instance(::_pbi::ConstantInitialized{}) {}
98
0
  ~AddressBookDefaultTypeInternal() {}
99
  union {
100
    AddressBook _instance;
101
  };
102
};
103
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddressBookDefaultTypeInternal _AddressBook_default_instance_;
104
static ::_pb::Metadata file_level_metadata_addressbook1_2eproto[5];
105
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_addressbook1_2eproto[1];
106
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_addressbook1_2eproto = nullptr;
107
108
const uint32_t TableStruct_addressbook1_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
109
  PROTOBUF_FIELD_OFFSET(::Ext, _impl_._has_bits_),
110
  PROTOBUF_FIELD_OFFSET(::Ext, _internal_metadata_),
111
  ~0u,  // no _extensions_
112
  ~0u,  // no _oneof_case_
113
  ~0u,  // no _weak_field_map_
114
  ~0u,  // no _inlined_string_donated_
115
  PROTOBUF_FIELD_OFFSET(::Ext, _impl_.age_),
116
  PROTOBUF_FIELD_OFFSET(::Ext, _impl_.databyte_),
117
  PROTOBUF_FIELD_OFFSET(::Ext, _impl_.enumtype_),
118
  1,
119
  0,
120
  2,
121
  PROTOBUF_FIELD_OFFSET(::Content, _impl_._has_bits_),
122
  PROTOBUF_FIELD_OFFSET(::Content, _internal_metadata_),
123
  ~0u,  // no _extensions_
124
  ~0u,  // no _oneof_case_
125
  ~0u,  // no _weak_field_map_
126
  ~0u,  // no _inlined_string_donated_
127
  PROTOBUF_FIELD_OFFSET(::Content, _impl_.uid_),
128
  PROTOBUF_FIELD_OFFSET(::Content, _impl_.distance_),
129
  PROTOBUF_FIELD_OFFSET(::Content, _impl_.ext_),
130
  0,
131
  2,
132
  1,
133
  PROTOBUF_FIELD_OFFSET(::JsonContextBody, _impl_._has_bits_),
134
  PROTOBUF_FIELD_OFFSET(::JsonContextBody, _internal_metadata_),
135
  ~0u,  // no _extensions_
136
  ~0u,  // no _oneof_case_
137
  ~0u,  // no _weak_field_map_
138
  ~0u,  // no _inlined_string_donated_
139
  PROTOBUF_FIELD_OFFSET(::JsonContextBody, _impl_.type_),
140
  PROTOBUF_FIELD_OFFSET(::JsonContextBody, _impl_.data_),
141
  PROTOBUF_FIELD_OFFSET(::JsonContextBody, _impl_.info_),
142
  PROTOBUF_FIELD_OFFSET(::JsonContextBody, _impl_.judge_),
143
  PROTOBUF_FIELD_OFFSET(::JsonContextBody, _impl_.spur_),
144
  PROTOBUF_FIELD_OFFSET(::JsonContextBody, _impl_.content_),
145
  PROTOBUF_FIELD_OFFSET(::JsonContextBody, _impl_.text_),
146
  0,
147
  ~0u,
148
  ~0u,
149
  2,
150
  1,
151
  ~0u,
152
  3,
153
  PROTOBUF_FIELD_OFFSET(::PersonInfo, _impl_._has_bits_),
154
  PROTOBUF_FIELD_OFFSET(::PersonInfo, _internal_metadata_),
155
  ~0u,  // no _extensions_
156
  ~0u,  // no _oneof_case_
157
  ~0u,  // no _weak_field_map_
158
  ~0u,  // no _inlined_string_donated_
159
  PROTOBUF_FIELD_OFFSET(::PersonInfo, _impl_.name_),
160
  PROTOBUF_FIELD_OFFSET(::PersonInfo, _impl_.id_),
161
  PROTOBUF_FIELD_OFFSET(::PersonInfo, _impl_.json_body_),
162
  0,
163
  2,
164
  1,
165
  ~0u,  // no _has_bits_
166
  PROTOBUF_FIELD_OFFSET(::AddressBook, _internal_metadata_),
167
  ~0u,  // no _extensions_
168
  ~0u,  // no _oneof_case_
169
  ~0u,  // no _weak_field_map_
170
  ~0u,  // no _inlined_string_donated_
171
  PROTOBUF_FIELD_OFFSET(::AddressBook, _impl_.person_),
172
};
173
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
174
  { 0, 9, -1, sizeof(::Ext)},
175
  { 12, 21, -1, sizeof(::Content)},
176
  { 24, 37, -1, sizeof(::JsonContextBody)},
177
  { 44, 53, -1, sizeof(::PersonInfo)},
178
  { 56, -1, -1, sizeof(::AddressBook)},
179
};
180
181
static const ::_pb::Message* const file_default_instances[] = {
182
  &::_Ext_default_instance_._instance,
183
  &::_Content_default_instance_._instance,
184
  &::_JsonContextBody_default_instance_._instance,
185
  &::_PersonInfo_default_instance_._instance,
186
  &::_AddressBook_default_instance_._instance,
187
};
188
189
const char descriptor_table_protodef_addressbook1_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
190
  "\n\022addressbook1.proto\"y\n\003Ext\022\013\n\003age\030\002 \001(\007"
191
  "\022\020\n\010databyte\030\003 \002(\014\022&\n\010enumtype\030\004 \001(\0162\016.E"
192
  "xt.PhoneType:\004HOME\"+\n\tPhoneType\022\n\n\006MOBIL"
193
  "E\020\000\022\010\n\004HOME\020\001\022\010\n\004WORK\020\002\";\n\007Content\022\013\n\003ui"
194
  "d\030\001 \001(\t\022\020\n\010distance\030\020 \002(\002\022\021\n\003ext\030\021 \001(\0132\004"
195
  ".Ext\"\201\001\n\017JsonContextBody\022\014\n\004type\030\001 \001(\003\022\014"
196
  "\n\004data\030\005 \003(\005\022\014\n\004info\030\006 \003(\t\022\r\n\005judge\030\002 \002("
197
  "\010\022\014\n\004spur\030\003 \002(\001\022\031\n\007content\030\004 \003(\0132\010.Conte"
198
  "nt\022\014\n\004text\030\007 \001(\002\"K\n\nPersonInfo\022\014\n\004name\030\001"
199
  " \001(\t\022\n\n\002id\030\002 \001(\005\022#\n\tjson_body\030\022 \001(\0132\020.Js"
200
  "onContextBody\"*\n\013AddressBook\022\033\n\006person\030\001"
201
  " \003(\0132\013.PersonInfo"
202
  ;
203
static ::_pbi::once_flag descriptor_table_addressbook1_2eproto_once;
204
const ::_pbi::DescriptorTable descriptor_table_addressbook1_2eproto = {
205
    false, false, 457, descriptor_table_protodef_addressbook1_2eproto,
206
    "addressbook1.proto",
207
    &descriptor_table_addressbook1_2eproto_once, nullptr, 0, 5,
208
    schemas, file_default_instances, TableStruct_addressbook1_2eproto::offsets,
209
    file_level_metadata_addressbook1_2eproto, file_level_enum_descriptors_addressbook1_2eproto,
210
    file_level_service_descriptors_addressbook1_2eproto,
211
};
212
1
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_addressbook1_2eproto_getter() {
213
1
  return &descriptor_table_addressbook1_2eproto;
214
1
}
215
216
// Force running AddDescriptors() at dynamic initialization time.
217
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_addressbook1_2eproto(&descriptor_table_addressbook1_2eproto);
218
0
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Ext_PhoneType_descriptor() {
219
0
  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_addressbook1_2eproto);
220
0
  return file_level_enum_descriptors_addressbook1_2eproto[0];
221
0
}
222
0
bool Ext_PhoneType_IsValid(int value) {
223
0
  switch (value) {
224
0
    case 0:
225
0
    case 1:
226
0
    case 2:
227
0
      return true;
228
0
    default:
229
0
      return false;
230
0
  }
231
0
}
232
233
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
234
constexpr Ext_PhoneType Ext::MOBILE;
235
constexpr Ext_PhoneType Ext::HOME;
236
constexpr Ext_PhoneType Ext::WORK;
237
constexpr Ext_PhoneType Ext::PhoneType_MIN;
238
constexpr Ext_PhoneType Ext::PhoneType_MAX;
239
constexpr int Ext::PhoneType_ARRAYSIZE;
240
#endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
241
242
// ===================================================================
243
244
class Ext::_Internal {
245
 public:
246
  using HasBits = decltype(std::declval<Ext>()._impl_._has_bits_);
247
0
  static void set_has_age(HasBits* has_bits) {
248
0
    (*has_bits)[0] |= 2u;
249
0
  }
250
0
  static void set_has_databyte(HasBits* has_bits) {
251
0
    (*has_bits)[0] |= 1u;
252
0
  }
253
0
  static void set_has_enumtype(HasBits* has_bits) {
254
0
    (*has_bits)[0] |= 4u;
255
0
  }
256
0
  static bool MissingRequiredFields(const HasBits& has_bits) {
257
0
    return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0;
258
0
  }
259
};
260
261
Ext::Ext(::PROTOBUF_NAMESPACE_ID::Arena* arena,
262
                         bool is_message_owned)
263
849
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
264
849
  SharedCtor(arena, is_message_owned);
265
  // @@protoc_insertion_point(arena_constructor:Ext)
266
849
}
267
Ext::Ext(const Ext& from)
268
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
269
0
  Ext* const _this = this; (void)_this;
270
0
  new (&_impl_) Impl_{
271
0
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
272
0
    , /*decltype(_impl_._cached_size_)*/{}
273
0
    , decltype(_impl_.databyte_){}
274
0
    , decltype(_impl_.age_){}
275
0
    , decltype(_impl_.enumtype_){}};
276
277
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
278
0
  _impl_.databyte_.InitDefault();
279
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
280
    _impl_.databyte_.Set("", GetArenaForAllocation());
281
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
282
0
  if (from._internal_has_databyte()) {
283
0
    _this->_impl_.databyte_.Set(from._internal_databyte(), 
284
0
      _this->GetArenaForAllocation());
285
0
  }
286
0
  ::memcpy(&_impl_.age_, &from._impl_.age_,
287
0
    static_cast<size_t>(reinterpret_cast<char*>(&_impl_.enumtype_) -
288
0
    reinterpret_cast<char*>(&_impl_.age_)) + sizeof(_impl_.enumtype_));
289
  // @@protoc_insertion_point(copy_constructor:Ext)
290
0
}
291
292
inline void Ext::SharedCtor(
293
849
    ::_pb::Arena* arena, bool is_message_owned) {
294
849
  (void)arena;
295
849
  (void)is_message_owned;
296
849
  new (&_impl_) Impl_{
297
849
      decltype(_impl_._has_bits_){}
298
849
    , /*decltype(_impl_._cached_size_)*/{}
299
849
    , decltype(_impl_.databyte_){}
300
849
    , decltype(_impl_.age_){0u}
301
849
    , decltype(_impl_.enumtype_){1}
302
849
  };
303
849
  _impl_.databyte_.InitDefault();
304
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
305
    _impl_.databyte_.Set("", GetArenaForAllocation());
306
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
307
849
}
308
309
849
Ext::~Ext() {
310
  // @@protoc_insertion_point(destructor:Ext)
311
849
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
312
0
  (void)arena;
313
0
    return;
314
0
  }
315
849
  SharedDtor();
316
849
}
317
318
849
inline void Ext::SharedDtor() {
319
849
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
320
849
  _impl_.databyte_.Destroy();
321
849
}
322
323
0
void Ext::SetCachedSize(int size) const {
324
0
  _impl_._cached_size_.Set(size);
325
0
}
326
327
0
void Ext::Clear() {
328
// @@protoc_insertion_point(message_clear_start:Ext)
329
0
  uint32_t cached_has_bits = 0;
330
  // Prevent compiler warnings about cached_has_bits being unused
331
0
  (void) cached_has_bits;
332
333
0
  cached_has_bits = _impl_._has_bits_[0];
334
0
  if (cached_has_bits & 0x00000001u) {
335
0
    _impl_.databyte_.ClearNonDefaultToEmpty();
336
0
  }
337
0
  if (cached_has_bits & 0x00000006u) {
338
0
    _impl_.age_ = 0u;
339
0
    _impl_.enumtype_ = 1;
340
0
  }
341
0
  _impl_._has_bits_.Clear();
342
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
343
0
}
344
345
0
const char* Ext::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
346
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
347
0
  _Internal::HasBits has_bits{};
348
0
  while (!ctx->Done(&ptr)) {
349
0
    uint32_t tag;
350
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
351
0
    switch (tag >> 3) {
352
      // optional fixed32 age = 2;
353
0
      case 2:
354
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 21)) {
355
0
          _Internal::set_has_age(&has_bits);
356
0
          _impl_.age_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint32_t>(ptr);
357
0
          ptr += sizeof(uint32_t);
358
0
        } else
359
0
          goto handle_unusual;
360
0
        continue;
361
      // required bytes databyte = 3;
362
0
      case 3:
363
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
364
0
          auto str = _internal_mutable_databyte();
365
0
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
366
0
          CHK_(ptr);
367
0
        } else
368
0
          goto handle_unusual;
369
0
        continue;
370
      // optional .Ext.PhoneType enumtype = 4 [default = HOME];
371
0
      case 4:
372
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
373
0
          uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
374
0
          CHK_(ptr);
375
0
          if (PROTOBUF_PREDICT_TRUE(::Ext_PhoneType_IsValid(val))) {
376
0
            _internal_set_enumtype(static_cast<::Ext_PhoneType>(val));
377
0
          } else {
378
0
            ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields());
379
0
          }
380
0
        } else
381
0
          goto handle_unusual;
382
0
        continue;
383
0
      default:
384
0
        goto handle_unusual;
385
0
    }  // switch
386
0
  handle_unusual:
387
0
    if ((tag == 0) || ((tag & 7) == 4)) {
388
0
      CHK_(ptr);
389
0
      ctx->SetLastTag(tag);
390
0
      goto message_done;
391
0
    }
392
0
    ptr = UnknownFieldParse(
393
0
        tag,
394
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
395
0
        ptr, ctx);
396
0
    CHK_(ptr != nullptr);
397
0
  }  // while
398
0
message_done:
399
0
  _impl_._has_bits_.Or(has_bits);
400
0
  return ptr;
401
0
failure:
402
0
  ptr = nullptr;
403
0
  goto message_done;
404
0
#undef CHK_
405
0
}
406
407
uint8_t* Ext::_InternalSerialize(
408
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
409
  // @@protoc_insertion_point(serialize_to_array_start:Ext)
410
0
  uint32_t cached_has_bits = 0;
411
0
  (void) cached_has_bits;
412
413
0
  cached_has_bits = _impl_._has_bits_[0];
414
  // optional fixed32 age = 2;
415
0
  if (cached_has_bits & 0x00000002u) {
416
0
    target = stream->EnsureSpace(target);
417
0
    target = ::_pbi::WireFormatLite::WriteFixed32ToArray(2, this->_internal_age(), target);
418
0
  }
419
420
  // required bytes databyte = 3;
421
0
  if (cached_has_bits & 0x00000001u) {
422
0
    target = stream->WriteBytesMaybeAliased(
423
0
        3, this->_internal_databyte(), target);
424
0
  }
425
426
  // optional .Ext.PhoneType enumtype = 4 [default = HOME];
427
0
  if (cached_has_bits & 0x00000004u) {
428
0
    target = stream->EnsureSpace(target);
429
0
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
430
0
      4, this->_internal_enumtype(), target);
431
0
  }
432
433
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
434
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
435
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
436
0
  }
437
  // @@protoc_insertion_point(serialize_to_array_end:Ext)
438
0
  return target;
439
0
}
440
441
0
size_t Ext::ByteSizeLong() const {
442
// @@protoc_insertion_point(message_byte_size_start:Ext)
443
0
  size_t total_size = 0;
444
445
  // required bytes databyte = 3;
446
0
  if (_internal_has_databyte()) {
447
0
    total_size += 1 +
448
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
449
0
        this->_internal_databyte());
450
0
  }
451
0
  uint32_t cached_has_bits = 0;
452
  // Prevent compiler warnings about cached_has_bits being unused
453
0
  (void) cached_has_bits;
454
455
0
  cached_has_bits = _impl_._has_bits_[0];
456
0
  if (cached_has_bits & 0x00000006u) {
457
    // optional fixed32 age = 2;
458
0
    if (cached_has_bits & 0x00000002u) {
459
0
      total_size += 1 + 4;
460
0
    }
461
462
    // optional .Ext.PhoneType enumtype = 4 [default = HOME];
463
0
    if (cached_has_bits & 0x00000004u) {
464
0
      total_size += 1 +
465
0
        ::_pbi::WireFormatLite::EnumSize(this->_internal_enumtype());
466
0
    }
467
468
0
  }
469
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
470
0
}
471
472
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Ext::_class_data_ = {
473
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
474
    Ext::MergeImpl
475
};
476
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Ext::GetClassData() const { return &_class_data_; }
477
478
479
0
void Ext::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
480
0
  auto* const _this = static_cast<Ext*>(&to_msg);
481
0
  auto& from = static_cast<const Ext&>(from_msg);
482
  // @@protoc_insertion_point(class_specific_merge_from_start:Ext)
483
0
  GOOGLE_DCHECK_NE(&from, _this);
484
0
  uint32_t cached_has_bits = 0;
485
0
  (void) cached_has_bits;
486
487
0
  cached_has_bits = from._impl_._has_bits_[0];
488
0
  if (cached_has_bits & 0x00000007u) {
489
0
    if (cached_has_bits & 0x00000001u) {
490
0
      _this->_internal_set_databyte(from._internal_databyte());
491
0
    }
492
0
    if (cached_has_bits & 0x00000002u) {
493
0
      _this->_impl_.age_ = from._impl_.age_;
494
0
    }
495
0
    if (cached_has_bits & 0x00000004u) {
496
0
      _this->_impl_.enumtype_ = from._impl_.enumtype_;
497
0
    }
498
0
    _this->_impl_._has_bits_[0] |= cached_has_bits;
499
0
  }
500
0
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
501
0
}
502
503
0
void Ext::CopyFrom(const Ext& from) {
504
// @@protoc_insertion_point(class_specific_copy_from_start:Ext)
505
0
  if (&from == this) return;
506
0
  Clear();
507
0
  MergeFrom(from);
508
0
}
509
510
0
bool Ext::IsInitialized() const {
511
0
  if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false;
512
0
  return true;
513
0
}
514
515
0
void Ext::InternalSwap(Ext* other) {
516
0
  using std::swap;
517
0
  auto* lhs_arena = GetArenaForAllocation();
518
0
  auto* rhs_arena = other->GetArenaForAllocation();
519
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
520
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
521
0
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
522
0
      &_impl_.databyte_, lhs_arena,
523
0
      &other->_impl_.databyte_, rhs_arena
524
0
  );
525
0
  swap(_impl_.age_, other->_impl_.age_);
526
0
  swap(_impl_.enumtype_, other->_impl_.enumtype_);
527
0
}
528
529
3.01k
::PROTOBUF_NAMESPACE_ID::Metadata Ext::GetMetadata() const {
530
3.01k
  return ::_pbi::AssignDescriptors(
531
3.01k
      &descriptor_table_addressbook1_2eproto_getter, &descriptor_table_addressbook1_2eproto_once,
532
3.01k
      file_level_metadata_addressbook1_2eproto[0]);
533
3.01k
}
534
535
// ===================================================================
536
537
class Content::_Internal {
538
 public:
539
  using HasBits = decltype(std::declval<Content>()._impl_._has_bits_);
540
0
  static void set_has_uid(HasBits* has_bits) {
541
0
    (*has_bits)[0] |= 1u;
542
0
  }
543
0
  static void set_has_distance(HasBits* has_bits) {
544
0
    (*has_bits)[0] |= 4u;
545
0
  }
546
  static const ::Ext& ext(const Content* msg);
547
0
  static void set_has_ext(HasBits* has_bits) {
548
0
    (*has_bits)[0] |= 2u;
549
0
  }
550
0
  static bool MissingRequiredFields(const HasBits& has_bits) {
551
0
    return ((has_bits[0] & 0x00000004) ^ 0x00000004) != 0;
552
0
  }
553
};
554
555
const ::Ext&
556
0
Content::_Internal::ext(const Content* msg) {
557
0
  return *msg->_impl_.ext_;
558
0
}
559
Content::Content(::PROTOBUF_NAMESPACE_ID::Arena* arena,
560
                         bool is_message_owned)
561
3.17k
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
562
3.17k
  SharedCtor(arena, is_message_owned);
563
  // @@protoc_insertion_point(arena_constructor:Content)
564
3.17k
}
565
Content::Content(const Content& from)
566
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
567
0
  Content* const _this = this; (void)_this;
568
0
  new (&_impl_) Impl_{
569
0
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
570
0
    , /*decltype(_impl_._cached_size_)*/{}
571
0
    , decltype(_impl_.uid_){}
572
0
    , decltype(_impl_.ext_){nullptr}
573
0
    , decltype(_impl_.distance_){}};
574
575
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
576
0
  _impl_.uid_.InitDefault();
577
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
578
    _impl_.uid_.Set("", GetArenaForAllocation());
579
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
580
0
  if (from._internal_has_uid()) {
581
0
    _this->_impl_.uid_.Set(from._internal_uid(), 
582
0
      _this->GetArenaForAllocation());
583
0
  }
584
0
  if (from._internal_has_ext()) {
585
0
    _this->_impl_.ext_ = new ::Ext(*from._impl_.ext_);
586
0
  }
587
0
  _this->_impl_.distance_ = from._impl_.distance_;
588
  // @@protoc_insertion_point(copy_constructor:Content)
589
0
}
590
591
inline void Content::SharedCtor(
592
3.17k
    ::_pb::Arena* arena, bool is_message_owned) {
593
3.17k
  (void)arena;
594
3.17k
  (void)is_message_owned;
595
3.17k
  new (&_impl_) Impl_{
596
3.17k
      decltype(_impl_._has_bits_){}
597
3.17k
    , /*decltype(_impl_._cached_size_)*/{}
598
3.17k
    , decltype(_impl_.uid_){}
599
3.17k
    , decltype(_impl_.ext_){nullptr}
600
3.17k
    , decltype(_impl_.distance_){0}
601
3.17k
  };
602
3.17k
  _impl_.uid_.InitDefault();
603
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
604
    _impl_.uid_.Set("", GetArenaForAllocation());
605
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
606
3.17k
}
607
608
3.17k
Content::~Content() {
609
  // @@protoc_insertion_point(destructor:Content)
610
3.17k
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
611
0
  (void)arena;
612
0
    return;
613
0
  }
614
3.17k
  SharedDtor();
615
3.17k
}
616
617
3.17k
inline void Content::SharedDtor() {
618
3.17k
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
619
3.17k
  _impl_.uid_.Destroy();
620
3.17k
  if (this != internal_default_instance()) delete _impl_.ext_;
621
3.17k
}
622
623
0
void Content::SetCachedSize(int size) const {
624
0
  _impl_._cached_size_.Set(size);
625
0
}
626
627
0
void Content::Clear() {
628
// @@protoc_insertion_point(message_clear_start:Content)
629
0
  uint32_t cached_has_bits = 0;
630
  // Prevent compiler warnings about cached_has_bits being unused
631
0
  (void) cached_has_bits;
632
633
0
  cached_has_bits = _impl_._has_bits_[0];
634
0
  if (cached_has_bits & 0x00000003u) {
635
0
    if (cached_has_bits & 0x00000001u) {
636
0
      _impl_.uid_.ClearNonDefaultToEmpty();
637
0
    }
638
0
    if (cached_has_bits & 0x00000002u) {
639
0
      GOOGLE_DCHECK(_impl_.ext_ != nullptr);
640
0
      _impl_.ext_->Clear();
641
0
    }
642
0
  }
643
0
  _impl_.distance_ = 0;
644
0
  _impl_._has_bits_.Clear();
645
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
646
0
}
647
648
0
const char* Content::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
649
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
650
0
  _Internal::HasBits has_bits{};
651
0
  while (!ctx->Done(&ptr)) {
652
0
    uint32_t tag;
653
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
654
0
    switch (tag >> 3) {
655
      // optional string uid = 1;
656
0
      case 1:
657
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
658
0
          auto str = _internal_mutable_uid();
659
0
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
660
0
          CHK_(ptr);
661
0
          #ifndef NDEBUG
662
0
          ::_pbi::VerifyUTF8(str, "Content.uid");
663
0
          #endif  // !NDEBUG
664
0
        } else
665
0
          goto handle_unusual;
666
0
        continue;
667
      // required float distance = 16;
668
0
      case 16:
669
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 133)) {
670
0
          _Internal::set_has_distance(&has_bits);
671
0
          _impl_.distance_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
672
0
          ptr += sizeof(float);
673
0
        } else
674
0
          goto handle_unusual;
675
0
        continue;
676
      // optional .Ext ext = 17;
677
0
      case 17:
678
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 138)) {
679
0
          ptr = ctx->ParseMessage(_internal_mutable_ext(), ptr);
680
0
          CHK_(ptr);
681
0
        } else
682
0
          goto handle_unusual;
683
0
        continue;
684
0
      default:
685
0
        goto handle_unusual;
686
0
    }  // switch
687
0
  handle_unusual:
688
0
    if ((tag == 0) || ((tag & 7) == 4)) {
689
0
      CHK_(ptr);
690
0
      ctx->SetLastTag(tag);
691
0
      goto message_done;
692
0
    }
693
0
    ptr = UnknownFieldParse(
694
0
        tag,
695
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
696
0
        ptr, ctx);
697
0
    CHK_(ptr != nullptr);
698
0
  }  // while
699
0
message_done:
700
0
  _impl_._has_bits_.Or(has_bits);
701
0
  return ptr;
702
0
failure:
703
0
  ptr = nullptr;
704
0
  goto message_done;
705
0
#undef CHK_
706
0
}
707
708
uint8_t* Content::_InternalSerialize(
709
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
710
  // @@protoc_insertion_point(serialize_to_array_start:Content)
711
0
  uint32_t cached_has_bits = 0;
712
0
  (void) cached_has_bits;
713
714
0
  cached_has_bits = _impl_._has_bits_[0];
715
  // optional string uid = 1;
716
0
  if (cached_has_bits & 0x00000001u) {
717
0
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
718
0
      this->_internal_uid().data(), static_cast<int>(this->_internal_uid().length()),
719
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
720
0
      "Content.uid");
721
0
    target = stream->WriteStringMaybeAliased(
722
0
        1, this->_internal_uid(), target);
723
0
  }
724
725
  // required float distance = 16;
726
0
  if (cached_has_bits & 0x00000004u) {
727
0
    target = stream->EnsureSpace(target);
728
0
    target = ::_pbi::WireFormatLite::WriteFloatToArray(16, this->_internal_distance(), target);
729
0
  }
730
731
  // optional .Ext ext = 17;
732
0
  if (cached_has_bits & 0x00000002u) {
733
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
734
0
      InternalWriteMessage(17, _Internal::ext(this),
735
0
        _Internal::ext(this).GetCachedSize(), target, stream);
736
0
  }
737
738
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
739
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
740
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
741
0
  }
742
  // @@protoc_insertion_point(serialize_to_array_end:Content)
743
0
  return target;
744
0
}
745
746
0
size_t Content::ByteSizeLong() const {
747
// @@protoc_insertion_point(message_byte_size_start:Content)
748
0
  size_t total_size = 0;
749
750
  // required float distance = 16;
751
0
  if (_internal_has_distance()) {
752
0
    total_size += 2 + 4;
753
0
  }
754
0
  uint32_t cached_has_bits = 0;
755
  // Prevent compiler warnings about cached_has_bits being unused
756
0
  (void) cached_has_bits;
757
758
0
  cached_has_bits = _impl_._has_bits_[0];
759
0
  if (cached_has_bits & 0x00000003u) {
760
    // optional string uid = 1;
761
0
    if (cached_has_bits & 0x00000001u) {
762
0
      total_size += 1 +
763
0
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
764
0
          this->_internal_uid());
765
0
    }
766
767
    // optional .Ext ext = 17;
768
0
    if (cached_has_bits & 0x00000002u) {
769
0
      total_size += 2 +
770
0
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
771
0
          *_impl_.ext_);
772
0
    }
773
774
0
  }
775
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
776
0
}
777
778
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Content::_class_data_ = {
779
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
780
    Content::MergeImpl
781
};
782
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Content::GetClassData() const { return &_class_data_; }
783
784
785
0
void Content::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
786
0
  auto* const _this = static_cast<Content*>(&to_msg);
787
0
  auto& from = static_cast<const Content&>(from_msg);
788
  // @@protoc_insertion_point(class_specific_merge_from_start:Content)
789
0
  GOOGLE_DCHECK_NE(&from, _this);
790
0
  uint32_t cached_has_bits = 0;
791
0
  (void) cached_has_bits;
792
793
0
  cached_has_bits = from._impl_._has_bits_[0];
794
0
  if (cached_has_bits & 0x00000007u) {
795
0
    if (cached_has_bits & 0x00000001u) {
796
0
      _this->_internal_set_uid(from._internal_uid());
797
0
    }
798
0
    if (cached_has_bits & 0x00000002u) {
799
0
      _this->_internal_mutable_ext()->::Ext::MergeFrom(
800
0
          from._internal_ext());
801
0
    }
802
0
    if (cached_has_bits & 0x00000004u) {
803
0
      _this->_impl_.distance_ = from._impl_.distance_;
804
0
    }
805
0
    _this->_impl_._has_bits_[0] |= cached_has_bits;
806
0
  }
807
0
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
808
0
}
809
810
0
void Content::CopyFrom(const Content& from) {
811
// @@protoc_insertion_point(class_specific_copy_from_start:Content)
812
0
  if (&from == this) return;
813
0
  Clear();
814
0
  MergeFrom(from);
815
0
}
816
817
0
bool Content::IsInitialized() const {
818
0
  if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false;
819
0
  if (_internal_has_ext()) {
820
0
    if (!_impl_.ext_->IsInitialized()) return false;
821
0
  }
822
0
  return true;
823
0
}
824
825
0
void Content::InternalSwap(Content* other) {
826
0
  using std::swap;
827
0
  auto* lhs_arena = GetArenaForAllocation();
828
0
  auto* rhs_arena = other->GetArenaForAllocation();
829
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
830
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
831
0
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
832
0
      &_impl_.uid_, lhs_arena,
833
0
      &other->_impl_.uid_, rhs_arena
834
0
  );
835
0
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
836
0
      PROTOBUF_FIELD_OFFSET(Content, _impl_.distance_)
837
0
      + sizeof(Content::_impl_.distance_)
838
0
      - PROTOBUF_FIELD_OFFSET(Content, _impl_.ext_)>(
839
0
          reinterpret_cast<char*>(&_impl_.ext_),
840
0
          reinterpret_cast<char*>(&other->_impl_.ext_));
841
0
}
842
843
11.4k
::PROTOBUF_NAMESPACE_ID::Metadata Content::GetMetadata() const {
844
11.4k
  return ::_pbi::AssignDescriptors(
845
11.4k
      &descriptor_table_addressbook1_2eproto_getter, &descriptor_table_addressbook1_2eproto_once,
846
11.4k
      file_level_metadata_addressbook1_2eproto[1]);
847
11.4k
}
848
849
// ===================================================================
850
851
class JsonContextBody::_Internal {
852
 public:
853
  using HasBits = decltype(std::declval<JsonContextBody>()._impl_._has_bits_);
854
0
  static void set_has_type(HasBits* has_bits) {
855
0
    (*has_bits)[0] |= 1u;
856
0
  }
857
0
  static void set_has_judge(HasBits* has_bits) {
858
0
    (*has_bits)[0] |= 4u;
859
0
  }
860
0
  static void set_has_spur(HasBits* has_bits) {
861
0
    (*has_bits)[0] |= 2u;
862
0
  }
863
0
  static void set_has_text(HasBits* has_bits) {
864
0
    (*has_bits)[0] |= 8u;
865
0
  }
866
0
  static bool MissingRequiredFields(const HasBits& has_bits) {
867
0
    return ((has_bits[0] & 0x00000006) ^ 0x00000006) != 0;
868
0
  }
869
};
870
871
JsonContextBody::JsonContextBody(::PROTOBUF_NAMESPACE_ID::Arena* arena,
872
                         bool is_message_owned)
873
3.97k
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
874
3.97k
  SharedCtor(arena, is_message_owned);
875
  // @@protoc_insertion_point(arena_constructor:JsonContextBody)
876
3.97k
}
877
JsonContextBody::JsonContextBody(const JsonContextBody& from)
878
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
879
0
  JsonContextBody* const _this = this; (void)_this;
880
0
  new (&_impl_) Impl_{
881
0
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
882
0
    , /*decltype(_impl_._cached_size_)*/{}
883
0
    , decltype(_impl_.content_){from._impl_.content_}
884
0
    , decltype(_impl_.data_){from._impl_.data_}
885
0
    , decltype(_impl_.info_){from._impl_.info_}
886
0
    , decltype(_impl_.type_){}
887
0
    , decltype(_impl_.spur_){}
888
0
    , decltype(_impl_.judge_){}
889
0
    , decltype(_impl_.text_){}};
890
891
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
892
0
  ::memcpy(&_impl_.type_, &from._impl_.type_,
893
0
    static_cast<size_t>(reinterpret_cast<char*>(&_impl_.text_) -
894
0
    reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.text_));
895
  // @@protoc_insertion_point(copy_constructor:JsonContextBody)
896
0
}
897
898
inline void JsonContextBody::SharedCtor(
899
3.97k
    ::_pb::Arena* arena, bool is_message_owned) {
900
3.97k
  (void)arena;
901
3.97k
  (void)is_message_owned;
902
3.97k
  new (&_impl_) Impl_{
903
3.97k
      decltype(_impl_._has_bits_){}
904
3.97k
    , /*decltype(_impl_._cached_size_)*/{}
905
3.97k
    , decltype(_impl_.content_){arena}
906
3.97k
    , decltype(_impl_.data_){arena}
907
3.97k
    , decltype(_impl_.info_){arena}
908
3.97k
    , decltype(_impl_.type_){int64_t{0}}
909
3.97k
    , decltype(_impl_.spur_){0}
910
3.97k
    , decltype(_impl_.judge_){false}
911
3.97k
    , decltype(_impl_.text_){0}
912
3.97k
  };
913
3.97k
}
914
915
3.97k
JsonContextBody::~JsonContextBody() {
916
  // @@protoc_insertion_point(destructor:JsonContextBody)
917
3.97k
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
918
0
  (void)arena;
919
0
    return;
920
0
  }
921
3.97k
  SharedDtor();
922
3.97k
}
923
924
3.97k
inline void JsonContextBody::SharedDtor() {
925
3.97k
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
926
3.97k
  _impl_.content_.~RepeatedPtrField();
927
3.97k
  _impl_.data_.~RepeatedField();
928
3.97k
  _impl_.info_.~RepeatedPtrField();
929
3.97k
}
930
931
0
void JsonContextBody::SetCachedSize(int size) const {
932
0
  _impl_._cached_size_.Set(size);
933
0
}
934
935
0
void JsonContextBody::Clear() {
936
// @@protoc_insertion_point(message_clear_start:JsonContextBody)
937
0
  uint32_t cached_has_bits = 0;
938
  // Prevent compiler warnings about cached_has_bits being unused
939
0
  (void) cached_has_bits;
940
941
0
  _impl_.content_.Clear();
942
0
  _impl_.data_.Clear();
943
0
  _impl_.info_.Clear();
944
0
  cached_has_bits = _impl_._has_bits_[0];
945
0
  if (cached_has_bits & 0x0000000fu) {
946
0
    ::memset(&_impl_.type_, 0, static_cast<size_t>(
947
0
        reinterpret_cast<char*>(&_impl_.text_) -
948
0
        reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.text_));
949
0
  }
950
0
  _impl_._has_bits_.Clear();
951
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
952
0
}
953
954
0
const char* JsonContextBody::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
955
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
956
0
  _Internal::HasBits has_bits{};
957
0
  while (!ctx->Done(&ptr)) {
958
0
    uint32_t tag;
959
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
960
0
    switch (tag >> 3) {
961
      // optional int64 type = 1;
962
0
      case 1:
963
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
964
0
          _Internal::set_has_type(&has_bits);
965
0
          _impl_.type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
966
0
          CHK_(ptr);
967
0
        } else
968
0
          goto handle_unusual;
969
0
        continue;
970
      // required bool judge = 2;
971
0
      case 2:
972
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
973
0
          _Internal::set_has_judge(&has_bits);
974
0
          _impl_.judge_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
975
0
          CHK_(ptr);
976
0
        } else
977
0
          goto handle_unusual;
978
0
        continue;
979
      // required double spur = 3;
980
0
      case 3:
981
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 25)) {
982
0
          _Internal::set_has_spur(&has_bits);
983
0
          _impl_.spur_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
984
0
          ptr += sizeof(double);
985
0
        } else
986
0
          goto handle_unusual;
987
0
        continue;
988
      // repeated .Content content = 4;
989
0
      case 4:
990
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
991
0
          ptr -= 1;
992
0
          do {
993
0
            ptr += 1;
994
0
            ptr = ctx->ParseMessage(_internal_add_content(), ptr);
995
0
            CHK_(ptr);
996
0
            if (!ctx->DataAvailable(ptr)) break;
997
0
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
998
0
        } else
999
0
          goto handle_unusual;
1000
0
        continue;
1001
      // repeated int32 data = 5;
1002
0
      case 5:
1003
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
1004
0
          ptr -= 1;
1005
0
          do {
1006
0
            ptr += 1;
1007
0
            _internal_add_data(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
1008
0
            CHK_(ptr);
1009
0
            if (!ctx->DataAvailable(ptr)) break;
1010
0
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<40>(ptr));
1011
0
        } else if (static_cast<uint8_t>(tag) == 42) {
1012
0
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_data(), ptr, ctx);
1013
0
          CHK_(ptr);
1014
0
        } else
1015
0
          goto handle_unusual;
1016
0
        continue;
1017
      // repeated string info = 6;
1018
0
      case 6:
1019
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
1020
0
          ptr -= 1;
1021
0
          do {
1022
0
            ptr += 1;
1023
0
            auto str = _internal_add_info();
1024
0
            ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1025
0
            CHK_(ptr);
1026
0
            #ifndef NDEBUG
1027
0
            ::_pbi::VerifyUTF8(str, "JsonContextBody.info");
1028
0
            #endif  // !NDEBUG
1029
0
            if (!ctx->DataAvailable(ptr)) break;
1030
0
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr));
1031
0
        } else
1032
0
          goto handle_unusual;
1033
0
        continue;
1034
      // optional float text = 7;
1035
0
      case 7:
1036
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 61)) {
1037
0
          _Internal::set_has_text(&has_bits);
1038
0
          _impl_.text_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
1039
0
          ptr += sizeof(float);
1040
0
        } else
1041
0
          goto handle_unusual;
1042
0
        continue;
1043
0
      default:
1044
0
        goto handle_unusual;
1045
0
    }  // switch
1046
0
  handle_unusual:
1047
0
    if ((tag == 0) || ((tag & 7) == 4)) {
1048
0
      CHK_(ptr);
1049
0
      ctx->SetLastTag(tag);
1050
0
      goto message_done;
1051
0
    }
1052
0
    ptr = UnknownFieldParse(
1053
0
        tag,
1054
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1055
0
        ptr, ctx);
1056
0
    CHK_(ptr != nullptr);
1057
0
  }  // while
1058
0
message_done:
1059
0
  _impl_._has_bits_.Or(has_bits);
1060
0
  return ptr;
1061
0
failure:
1062
0
  ptr = nullptr;
1063
0
  goto message_done;
1064
0
#undef CHK_
1065
0
}
1066
1067
uint8_t* JsonContextBody::_InternalSerialize(
1068
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1069
  // @@protoc_insertion_point(serialize_to_array_start:JsonContextBody)
1070
0
  uint32_t cached_has_bits = 0;
1071
0
  (void) cached_has_bits;
1072
1073
0
  cached_has_bits = _impl_._has_bits_[0];
1074
  // optional int64 type = 1;
1075
0
  if (cached_has_bits & 0x00000001u) {
1076
0
    target = stream->EnsureSpace(target);
1077
0
    target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_type(), target);
1078
0
  }
1079
1080
  // required bool judge = 2;
1081
0
  if (cached_has_bits & 0x00000004u) {
1082
0
    target = stream->EnsureSpace(target);
1083
0
    target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_judge(), target);
1084
0
  }
1085
1086
  // required double spur = 3;
1087
0
  if (cached_has_bits & 0x00000002u) {
1088
0
    target = stream->EnsureSpace(target);
1089
0
    target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_spur(), target);
1090
0
  }
1091
1092
  // repeated .Content content = 4;
1093
0
  for (unsigned i = 0,
1094
0
      n = static_cast<unsigned>(this->_internal_content_size()); i < n; i++) {
1095
0
    const auto& repfield = this->_internal_content(i);
1096
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1097
0
        InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream);
1098
0
  }
1099
1100
  // repeated int32 data = 5;
1101
0
  for (int i = 0, n = this->_internal_data_size(); i < n; i++) {
1102
0
    target = stream->EnsureSpace(target);
1103
0
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_data(i), target);
1104
0
  }
1105
1106
  // repeated string info = 6;
1107
0
  for (int i = 0, n = this->_internal_info_size(); i < n; i++) {
1108
0
    const auto& s = this->_internal_info(i);
1109
0
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1110
0
      s.data(), static_cast<int>(s.length()),
1111
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
1112
0
      "JsonContextBody.info");
1113
0
    target = stream->WriteString(6, s, target);
1114
0
  }
1115
1116
  // optional float text = 7;
1117
0
  if (cached_has_bits & 0x00000008u) {
1118
0
    target = stream->EnsureSpace(target);
1119
0
    target = ::_pbi::WireFormatLite::WriteFloatToArray(7, this->_internal_text(), target);
1120
0
  }
1121
1122
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1123
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1124
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1125
0
  }
1126
  // @@protoc_insertion_point(serialize_to_array_end:JsonContextBody)
1127
0
  return target;
1128
0
}
1129
1130
0
size_t JsonContextBody::RequiredFieldsByteSizeFallback() const {
1131
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:JsonContextBody)
1132
0
  size_t total_size = 0;
1133
1134
0
  if (_internal_has_spur()) {
1135
    // required double spur = 3;
1136
0
    total_size += 1 + 8;
1137
0
  }
1138
1139
0
  if (_internal_has_judge()) {
1140
    // required bool judge = 2;
1141
0
    total_size += 1 + 1;
1142
0
  }
1143
1144
0
  return total_size;
1145
0
}
1146
0
size_t JsonContextBody::ByteSizeLong() const {
1147
// @@protoc_insertion_point(message_byte_size_start:JsonContextBody)
1148
0
  size_t total_size = 0;
1149
1150
0
  if (((_impl_._has_bits_[0] & 0x00000006) ^ 0x00000006) == 0) {  // All required fields are present.
1151
    // required double spur = 3;
1152
0
    total_size += 1 + 8;
1153
1154
    // required bool judge = 2;
1155
0
    total_size += 1 + 1;
1156
1157
0
  } else {
1158
0
    total_size += RequiredFieldsByteSizeFallback();
1159
0
  }
1160
0
  uint32_t cached_has_bits = 0;
1161
  // Prevent compiler warnings about cached_has_bits being unused
1162
0
  (void) cached_has_bits;
1163
1164
  // repeated .Content content = 4;
1165
0
  total_size += 1UL * this->_internal_content_size();
1166
0
  for (const auto& msg : this->_impl_.content_) {
1167
0
    total_size +=
1168
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1169
0
  }
1170
1171
  // repeated int32 data = 5;
1172
0
  {
1173
0
    size_t data_size = ::_pbi::WireFormatLite::
1174
0
      Int32Size(this->_impl_.data_);
1175
0
    total_size += 1 *
1176
0
                  ::_pbi::FromIntSize(this->_internal_data_size());
1177
0
    total_size += data_size;
1178
0
  }
1179
1180
  // repeated string info = 6;
1181
0
  total_size += 1 *
1182
0
      ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.info_.size());
1183
0
  for (int i = 0, n = _impl_.info_.size(); i < n; i++) {
1184
0
    total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1185
0
      _impl_.info_.Get(i));
1186
0
  }
1187
1188
  // optional int64 type = 1;
1189
0
  cached_has_bits = _impl_._has_bits_[0];
1190
0
  if (cached_has_bits & 0x00000001u) {
1191
0
    total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_type());
1192
0
  }
1193
1194
  // optional float text = 7;
1195
0
  if (cached_has_bits & 0x00000008u) {
1196
0
    total_size += 1 + 4;
1197
0
  }
1198
1199
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1200
0
}
1201
1202
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData JsonContextBody::_class_data_ = {
1203
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
1204
    JsonContextBody::MergeImpl
1205
};
1206
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*JsonContextBody::GetClassData() const { return &_class_data_; }
1207
1208
1209
0
void JsonContextBody::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1210
0
  auto* const _this = static_cast<JsonContextBody*>(&to_msg);
1211
0
  auto& from = static_cast<const JsonContextBody&>(from_msg);
1212
  // @@protoc_insertion_point(class_specific_merge_from_start:JsonContextBody)
1213
0
  GOOGLE_DCHECK_NE(&from, _this);
1214
0
  uint32_t cached_has_bits = 0;
1215
0
  (void) cached_has_bits;
1216
1217
0
  _this->_impl_.content_.MergeFrom(from._impl_.content_);
1218
0
  _this->_impl_.data_.MergeFrom(from._impl_.data_);
1219
0
  _this->_impl_.info_.MergeFrom(from._impl_.info_);
1220
0
  cached_has_bits = from._impl_._has_bits_[0];
1221
0
  if (cached_has_bits & 0x0000000fu) {
1222
0
    if (cached_has_bits & 0x00000001u) {
1223
0
      _this->_impl_.type_ = from._impl_.type_;
1224
0
    }
1225
0
    if (cached_has_bits & 0x00000002u) {
1226
0
      _this->_impl_.spur_ = from._impl_.spur_;
1227
0
    }
1228
0
    if (cached_has_bits & 0x00000004u) {
1229
0
      _this->_impl_.judge_ = from._impl_.judge_;
1230
0
    }
1231
0
    if (cached_has_bits & 0x00000008u) {
1232
0
      _this->_impl_.text_ = from._impl_.text_;
1233
0
    }
1234
0
    _this->_impl_._has_bits_[0] |= cached_has_bits;
1235
0
  }
1236
0
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1237
0
}
1238
1239
0
void JsonContextBody::CopyFrom(const JsonContextBody& from) {
1240
// @@protoc_insertion_point(class_specific_copy_from_start:JsonContextBody)
1241
0
  if (&from == this) return;
1242
0
  Clear();
1243
0
  MergeFrom(from);
1244
0
}
1245
1246
0
bool JsonContextBody::IsInitialized() const {
1247
0
  if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false;
1248
0
  if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(_impl_.content_))
1249
0
    return false;
1250
0
  return true;
1251
0
}
1252
1253
0
void JsonContextBody::InternalSwap(JsonContextBody* other) {
1254
0
  using std::swap;
1255
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1256
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1257
0
  _impl_.content_.InternalSwap(&other->_impl_.content_);
1258
0
  _impl_.data_.InternalSwap(&other->_impl_.data_);
1259
0
  _impl_.info_.InternalSwap(&other->_impl_.info_);
1260
0
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
1261
0
      PROTOBUF_FIELD_OFFSET(JsonContextBody, _impl_.text_)
1262
0
      + sizeof(JsonContextBody::_impl_.text_)
1263
0
      - PROTOBUF_FIELD_OFFSET(JsonContextBody, _impl_.type_)>(
1264
0
          reinterpret_cast<char*>(&_impl_.type_),
1265
0
          reinterpret_cast<char*>(&other->_impl_.type_));
1266
0
}
1267
1268
9.49k
::PROTOBUF_NAMESPACE_ID::Metadata JsonContextBody::GetMetadata() const {
1269
9.49k
  return ::_pbi::AssignDescriptors(
1270
9.49k
      &descriptor_table_addressbook1_2eproto_getter, &descriptor_table_addressbook1_2eproto_once,
1271
9.49k
      file_level_metadata_addressbook1_2eproto[2]);
1272
9.49k
}
1273
1274
// ===================================================================
1275
1276
class PersonInfo::_Internal {
1277
 public:
1278
  using HasBits = decltype(std::declval<PersonInfo>()._impl_._has_bits_);
1279
0
  static void set_has_name(HasBits* has_bits) {
1280
0
    (*has_bits)[0] |= 1u;
1281
0
  }
1282
0
  static void set_has_id(HasBits* has_bits) {
1283
0
    (*has_bits)[0] |= 4u;
1284
0
  }
1285
  static const ::JsonContextBody& json_body(const PersonInfo* msg);
1286
0
  static void set_has_json_body(HasBits* has_bits) {
1287
0
    (*has_bits)[0] |= 2u;
1288
0
  }
1289
};
1290
1291
const ::JsonContextBody&
1292
0
PersonInfo::_Internal::json_body(const PersonInfo* msg) {
1293
0
  return *msg->_impl_.json_body_;
1294
0
}
1295
PersonInfo::PersonInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1296
                         bool is_message_owned)
1297
0
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
1298
0
  SharedCtor(arena, is_message_owned);
1299
  // @@protoc_insertion_point(arena_constructor:PersonInfo)
1300
0
}
1301
PersonInfo::PersonInfo(const PersonInfo& from)
1302
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
1303
0
  PersonInfo* const _this = this; (void)_this;
1304
0
  new (&_impl_) Impl_{
1305
0
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
1306
0
    , /*decltype(_impl_._cached_size_)*/{}
1307
0
    , decltype(_impl_.name_){}
1308
0
    , decltype(_impl_.json_body_){nullptr}
1309
0
    , decltype(_impl_.id_){}};
1310
1311
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1312
0
  _impl_.name_.InitDefault();
1313
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1314
    _impl_.name_.Set("", GetArenaForAllocation());
1315
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1316
0
  if (from._internal_has_name()) {
1317
0
    _this->_impl_.name_.Set(from._internal_name(), 
1318
0
      _this->GetArenaForAllocation());
1319
0
  }
1320
0
  if (from._internal_has_json_body()) {
1321
0
    _this->_impl_.json_body_ = new ::JsonContextBody(*from._impl_.json_body_);
1322
0
  }
1323
0
  _this->_impl_.id_ = from._impl_.id_;
1324
  // @@protoc_insertion_point(copy_constructor:PersonInfo)
1325
0
}
1326
1327
inline void PersonInfo::SharedCtor(
1328
0
    ::_pb::Arena* arena, bool is_message_owned) {
1329
0
  (void)arena;
1330
0
  (void)is_message_owned;
1331
0
  new (&_impl_) Impl_{
1332
0
      decltype(_impl_._has_bits_){}
1333
0
    , /*decltype(_impl_._cached_size_)*/{}
1334
0
    , decltype(_impl_.name_){}
1335
0
    , decltype(_impl_.json_body_){nullptr}
1336
0
    , decltype(_impl_.id_){0}
1337
0
  };
1338
0
  _impl_.name_.InitDefault();
1339
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1340
    _impl_.name_.Set("", GetArenaForAllocation());
1341
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1342
0
}
1343
1344
0
PersonInfo::~PersonInfo() {
1345
  // @@protoc_insertion_point(destructor:PersonInfo)
1346
0
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1347
0
  (void)arena;
1348
0
    return;
1349
0
  }
1350
0
  SharedDtor();
1351
0
}
1352
1353
0
inline void PersonInfo::SharedDtor() {
1354
0
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1355
0
  _impl_.name_.Destroy();
1356
0
  if (this != internal_default_instance()) delete _impl_.json_body_;
1357
0
}
1358
1359
0
void PersonInfo::SetCachedSize(int size) const {
1360
0
  _impl_._cached_size_.Set(size);
1361
0
}
1362
1363
0
void PersonInfo::Clear() {
1364
// @@protoc_insertion_point(message_clear_start:PersonInfo)
1365
0
  uint32_t cached_has_bits = 0;
1366
  // Prevent compiler warnings about cached_has_bits being unused
1367
0
  (void) cached_has_bits;
1368
1369
0
  cached_has_bits = _impl_._has_bits_[0];
1370
0
  if (cached_has_bits & 0x00000003u) {
1371
0
    if (cached_has_bits & 0x00000001u) {
1372
0
      _impl_.name_.ClearNonDefaultToEmpty();
1373
0
    }
1374
0
    if (cached_has_bits & 0x00000002u) {
1375
0
      GOOGLE_DCHECK(_impl_.json_body_ != nullptr);
1376
0
      _impl_.json_body_->Clear();
1377
0
    }
1378
0
  }
1379
0
  _impl_.id_ = 0;
1380
0
  _impl_._has_bits_.Clear();
1381
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1382
0
}
1383
1384
0
const char* PersonInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1385
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1386
0
  _Internal::HasBits has_bits{};
1387
0
  while (!ctx->Done(&ptr)) {
1388
0
    uint32_t tag;
1389
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
1390
0
    switch (tag >> 3) {
1391
      // optional string name = 1;
1392
0
      case 1:
1393
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
1394
0
          auto str = _internal_mutable_name();
1395
0
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1396
0
          CHK_(ptr);
1397
0
          #ifndef NDEBUG
1398
0
          ::_pbi::VerifyUTF8(str, "PersonInfo.name");
1399
0
          #endif  // !NDEBUG
1400
0
        } else
1401
0
          goto handle_unusual;
1402
0
        continue;
1403
      // optional int32 id = 2;
1404
0
      case 2:
1405
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
1406
0
          _Internal::set_has_id(&has_bits);
1407
0
          _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1408
0
          CHK_(ptr);
1409
0
        } else
1410
0
          goto handle_unusual;
1411
0
        continue;
1412
      // optional .JsonContextBody json_body = 18;
1413
0
      case 18:
1414
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 146)) {
1415
0
          ptr = ctx->ParseMessage(_internal_mutable_json_body(), ptr);
1416
0
          CHK_(ptr);
1417
0
        } else
1418
0
          goto handle_unusual;
1419
0
        continue;
1420
0
      default:
1421
0
        goto handle_unusual;
1422
0
    }  // switch
1423
0
  handle_unusual:
1424
0
    if ((tag == 0) || ((tag & 7) == 4)) {
1425
0
      CHK_(ptr);
1426
0
      ctx->SetLastTag(tag);
1427
0
      goto message_done;
1428
0
    }
1429
0
    ptr = UnknownFieldParse(
1430
0
        tag,
1431
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1432
0
        ptr, ctx);
1433
0
    CHK_(ptr != nullptr);
1434
0
  }  // while
1435
0
message_done:
1436
0
  _impl_._has_bits_.Or(has_bits);
1437
0
  return ptr;
1438
0
failure:
1439
0
  ptr = nullptr;
1440
0
  goto message_done;
1441
0
#undef CHK_
1442
0
}
1443
1444
uint8_t* PersonInfo::_InternalSerialize(
1445
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1446
  // @@protoc_insertion_point(serialize_to_array_start:PersonInfo)
1447
0
  uint32_t cached_has_bits = 0;
1448
0
  (void) cached_has_bits;
1449
1450
0
  cached_has_bits = _impl_._has_bits_[0];
1451
  // optional string name = 1;
1452
0
  if (cached_has_bits & 0x00000001u) {
1453
0
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1454
0
      this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
1455
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
1456
0
      "PersonInfo.name");
1457
0
    target = stream->WriteStringMaybeAliased(
1458
0
        1, this->_internal_name(), target);
1459
0
  }
1460
1461
  // optional int32 id = 2;
1462
0
  if (cached_has_bits & 0x00000004u) {
1463
0
    target = stream->EnsureSpace(target);
1464
0
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_id(), target);
1465
0
  }
1466
1467
  // optional .JsonContextBody json_body = 18;
1468
0
  if (cached_has_bits & 0x00000002u) {
1469
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1470
0
      InternalWriteMessage(18, _Internal::json_body(this),
1471
0
        _Internal::json_body(this).GetCachedSize(), target, stream);
1472
0
  }
1473
1474
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1475
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1476
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1477
0
  }
1478
  // @@protoc_insertion_point(serialize_to_array_end:PersonInfo)
1479
0
  return target;
1480
0
}
1481
1482
0
size_t PersonInfo::ByteSizeLong() const {
1483
// @@protoc_insertion_point(message_byte_size_start:PersonInfo)
1484
0
  size_t total_size = 0;
1485
1486
0
  uint32_t cached_has_bits = 0;
1487
  // Prevent compiler warnings about cached_has_bits being unused
1488
0
  (void) cached_has_bits;
1489
1490
0
  cached_has_bits = _impl_._has_bits_[0];
1491
0
  if (cached_has_bits & 0x00000007u) {
1492
    // optional string name = 1;
1493
0
    if (cached_has_bits & 0x00000001u) {
1494
0
      total_size += 1 +
1495
0
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1496
0
          this->_internal_name());
1497
0
    }
1498
1499
    // optional .JsonContextBody json_body = 18;
1500
0
    if (cached_has_bits & 0x00000002u) {
1501
0
      total_size += 2 +
1502
0
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1503
0
          *_impl_.json_body_);
1504
0
    }
1505
1506
    // optional int32 id = 2;
1507
0
    if (cached_has_bits & 0x00000004u) {
1508
0
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_id());
1509
0
    }
1510
1511
0
  }
1512
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1513
0
}
1514
1515
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PersonInfo::_class_data_ = {
1516
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
1517
    PersonInfo::MergeImpl
1518
};
1519
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PersonInfo::GetClassData() const { return &_class_data_; }
1520
1521
1522
0
void PersonInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1523
0
  auto* const _this = static_cast<PersonInfo*>(&to_msg);
1524
0
  auto& from = static_cast<const PersonInfo&>(from_msg);
1525
  // @@protoc_insertion_point(class_specific_merge_from_start:PersonInfo)
1526
0
  GOOGLE_DCHECK_NE(&from, _this);
1527
0
  uint32_t cached_has_bits = 0;
1528
0
  (void) cached_has_bits;
1529
1530
0
  cached_has_bits = from._impl_._has_bits_[0];
1531
0
  if (cached_has_bits & 0x00000007u) {
1532
0
    if (cached_has_bits & 0x00000001u) {
1533
0
      _this->_internal_set_name(from._internal_name());
1534
0
    }
1535
0
    if (cached_has_bits & 0x00000002u) {
1536
0
      _this->_internal_mutable_json_body()->::JsonContextBody::MergeFrom(
1537
0
          from._internal_json_body());
1538
0
    }
1539
0
    if (cached_has_bits & 0x00000004u) {
1540
0
      _this->_impl_.id_ = from._impl_.id_;
1541
0
    }
1542
0
    _this->_impl_._has_bits_[0] |= cached_has_bits;
1543
0
  }
1544
0
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1545
0
}
1546
1547
0
void PersonInfo::CopyFrom(const PersonInfo& from) {
1548
// @@protoc_insertion_point(class_specific_copy_from_start:PersonInfo)
1549
0
  if (&from == this) return;
1550
0
  Clear();
1551
0
  MergeFrom(from);
1552
0
}
1553
1554
0
bool PersonInfo::IsInitialized() const {
1555
0
  if (_internal_has_json_body()) {
1556
0
    if (!_impl_.json_body_->IsInitialized()) return false;
1557
0
  }
1558
0
  return true;
1559
0
}
1560
1561
0
void PersonInfo::InternalSwap(PersonInfo* other) {
1562
0
  using std::swap;
1563
0
  auto* lhs_arena = GetArenaForAllocation();
1564
0
  auto* rhs_arena = other->GetArenaForAllocation();
1565
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1566
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1567
0
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1568
0
      &_impl_.name_, lhs_arena,
1569
0
      &other->_impl_.name_, rhs_arena
1570
0
  );
1571
0
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
1572
0
      PROTOBUF_FIELD_OFFSET(PersonInfo, _impl_.id_)
1573
0
      + sizeof(PersonInfo::_impl_.id_)
1574
0
      - PROTOBUF_FIELD_OFFSET(PersonInfo, _impl_.json_body_)>(
1575
0
          reinterpret_cast<char*>(&_impl_.json_body_),
1576
0
          reinterpret_cast<char*>(&other->_impl_.json_body_));
1577
0
}
1578
1579
0
::PROTOBUF_NAMESPACE_ID::Metadata PersonInfo::GetMetadata() const {
1580
0
  return ::_pbi::AssignDescriptors(
1581
0
      &descriptor_table_addressbook1_2eproto_getter, &descriptor_table_addressbook1_2eproto_once,
1582
0
      file_level_metadata_addressbook1_2eproto[3]);
1583
0
}
1584
1585
// ===================================================================
1586
1587
class AddressBook::_Internal {
1588
 public:
1589
};
1590
1591
AddressBook::AddressBook(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1592
                         bool is_message_owned)
1593
0
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
1594
0
  SharedCtor(arena, is_message_owned);
1595
  // @@protoc_insertion_point(arena_constructor:AddressBook)
1596
0
}
1597
AddressBook::AddressBook(const AddressBook& from)
1598
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
1599
0
  AddressBook* const _this = this; (void)_this;
1600
0
  new (&_impl_) Impl_{
1601
0
      decltype(_impl_.person_){from._impl_.person_}
1602
0
    , /*decltype(_impl_._cached_size_)*/{}};
1603
1604
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1605
  // @@protoc_insertion_point(copy_constructor:AddressBook)
1606
0
}
1607
1608
inline void AddressBook::SharedCtor(
1609
0
    ::_pb::Arena* arena, bool is_message_owned) {
1610
0
  (void)arena;
1611
0
  (void)is_message_owned;
1612
0
  new (&_impl_) Impl_{
1613
0
      decltype(_impl_.person_){arena}
1614
0
    , /*decltype(_impl_._cached_size_)*/{}
1615
0
  };
1616
0
}
1617
1618
0
AddressBook::~AddressBook() {
1619
  // @@protoc_insertion_point(destructor:AddressBook)
1620
0
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1621
0
  (void)arena;
1622
0
    return;
1623
0
  }
1624
0
  SharedDtor();
1625
0
}
1626
1627
0
inline void AddressBook::SharedDtor() {
1628
0
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1629
0
  _impl_.person_.~RepeatedPtrField();
1630
0
}
1631
1632
0
void AddressBook::SetCachedSize(int size) const {
1633
0
  _impl_._cached_size_.Set(size);
1634
0
}
1635
1636
0
void AddressBook::Clear() {
1637
// @@protoc_insertion_point(message_clear_start:AddressBook)
1638
0
  uint32_t cached_has_bits = 0;
1639
  // Prevent compiler warnings about cached_has_bits being unused
1640
0
  (void) cached_has_bits;
1641
1642
0
  _impl_.person_.Clear();
1643
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1644
0
}
1645
1646
0
const char* AddressBook::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1647
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1648
0
  while (!ctx->Done(&ptr)) {
1649
0
    uint32_t tag;
1650
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
1651
0
    switch (tag >> 3) {
1652
      // repeated .PersonInfo person = 1;
1653
0
      case 1:
1654
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
1655
0
          ptr -= 1;
1656
0
          do {
1657
0
            ptr += 1;
1658
0
            ptr = ctx->ParseMessage(_internal_add_person(), ptr);
1659
0
            CHK_(ptr);
1660
0
            if (!ctx->DataAvailable(ptr)) break;
1661
0
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
1662
0
        } else
1663
0
          goto handle_unusual;
1664
0
        continue;
1665
0
      default:
1666
0
        goto handle_unusual;
1667
0
    }  // switch
1668
0
  handle_unusual:
1669
0
    if ((tag == 0) || ((tag & 7) == 4)) {
1670
0
      CHK_(ptr);
1671
0
      ctx->SetLastTag(tag);
1672
0
      goto message_done;
1673
0
    }
1674
0
    ptr = UnknownFieldParse(
1675
0
        tag,
1676
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1677
0
        ptr, ctx);
1678
0
    CHK_(ptr != nullptr);
1679
0
  }  // while
1680
0
message_done:
1681
0
  return ptr;
1682
0
failure:
1683
0
  ptr = nullptr;
1684
0
  goto message_done;
1685
0
#undef CHK_
1686
0
}
1687
1688
uint8_t* AddressBook::_InternalSerialize(
1689
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1690
  // @@protoc_insertion_point(serialize_to_array_start:AddressBook)
1691
0
  uint32_t cached_has_bits = 0;
1692
0
  (void) cached_has_bits;
1693
1694
  // repeated .PersonInfo person = 1;
1695
0
  for (unsigned i = 0,
1696
0
      n = static_cast<unsigned>(this->_internal_person_size()); i < n; i++) {
1697
0
    const auto& repfield = this->_internal_person(i);
1698
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1699
0
        InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
1700
0
  }
1701
1702
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1703
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1704
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1705
0
  }
1706
  // @@protoc_insertion_point(serialize_to_array_end:AddressBook)
1707
0
  return target;
1708
0
}
1709
1710
0
size_t AddressBook::ByteSizeLong() const {
1711
// @@protoc_insertion_point(message_byte_size_start:AddressBook)
1712
0
  size_t total_size = 0;
1713
1714
0
  uint32_t cached_has_bits = 0;
1715
  // Prevent compiler warnings about cached_has_bits being unused
1716
0
  (void) cached_has_bits;
1717
1718
  // repeated .PersonInfo person = 1;
1719
0
  total_size += 1UL * this->_internal_person_size();
1720
0
  for (const auto& msg : this->_impl_.person_) {
1721
0
    total_size +=
1722
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1723
0
  }
1724
1725
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1726
0
}
1727
1728
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddressBook::_class_data_ = {
1729
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
1730
    AddressBook::MergeImpl
1731
};
1732
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddressBook::GetClassData() const { return &_class_data_; }
1733
1734
1735
0
void AddressBook::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1736
0
  auto* const _this = static_cast<AddressBook*>(&to_msg);
1737
0
  auto& from = static_cast<const AddressBook&>(from_msg);
1738
  // @@protoc_insertion_point(class_specific_merge_from_start:AddressBook)
1739
0
  GOOGLE_DCHECK_NE(&from, _this);
1740
0
  uint32_t cached_has_bits = 0;
1741
0
  (void) cached_has_bits;
1742
1743
0
  _this->_impl_.person_.MergeFrom(from._impl_.person_);
1744
0
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1745
0
}
1746
1747
0
void AddressBook::CopyFrom(const AddressBook& from) {
1748
// @@protoc_insertion_point(class_specific_copy_from_start:AddressBook)
1749
0
  if (&from == this) return;
1750
0
  Clear();
1751
0
  MergeFrom(from);
1752
0
}
1753
1754
0
bool AddressBook::IsInitialized() const {
1755
0
  if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(_impl_.person_))
1756
0
    return false;
1757
0
  return true;
1758
0
}
1759
1760
0
void AddressBook::InternalSwap(AddressBook* other) {
1761
0
  using std::swap;
1762
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1763
0
  _impl_.person_.InternalSwap(&other->_impl_.person_);
1764
0
}
1765
1766
0
::PROTOBUF_NAMESPACE_ID::Metadata AddressBook::GetMetadata() const {
1767
0
  return ::_pbi::AssignDescriptors(
1768
0
      &descriptor_table_addressbook1_2eproto_getter, &descriptor_table_addressbook1_2eproto_once,
1769
0
      file_level_metadata_addressbook1_2eproto[4]);
1770
0
}
1771
1772
// @@protoc_insertion_point(namespace_scope)
1773
PROTOBUF_NAMESPACE_OPEN
1774
template<> PROTOBUF_NOINLINE ::Ext*
1775
849
Arena::CreateMaybeMessage< ::Ext >(Arena* arena) {
1776
849
  return Arena::CreateMessageInternal< ::Ext >(arena);
1777
849
}
1778
template<> PROTOBUF_NOINLINE ::Content*
1779
3.17k
Arena::CreateMaybeMessage< ::Content >(Arena* arena) {
1780
3.17k
  return Arena::CreateMessageInternal< ::Content >(arena);
1781
3.17k
}
1782
template<> PROTOBUF_NOINLINE ::JsonContextBody*
1783
0
Arena::CreateMaybeMessage< ::JsonContextBody >(Arena* arena) {
1784
0
  return Arena::CreateMessageInternal< ::JsonContextBody >(arena);
1785
0
}
1786
template<> PROTOBUF_NOINLINE ::PersonInfo*
1787
0
Arena::CreateMaybeMessage< ::PersonInfo >(Arena* arena) {
1788
0
  return Arena::CreateMessageInternal< ::PersonInfo >(arena);
1789
0
}
1790
template<> PROTOBUF_NOINLINE ::AddressBook*
1791
0
Arena::CreateMaybeMessage< ::AddressBook >(Arena* arena) {
1792
0
  return Arena::CreateMessageInternal< ::AddressBook >(arena);
1793
0
}
1794
PROTOBUF_NAMESPACE_CLOSE
1795
1796
// @@protoc_insertion_point(global_scope)
1797
#include <google/protobuf/port_undef.inc>