Coverage Report

Created: 2025-09-17 06:57

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/stubs/common.h>
9
#include <google/protobuf/stubs/port.h>
10
#include <google/protobuf/io/coded_stream.h>
11
#include <google/protobuf/wire_format_lite_inl.h>
12
#include <google/protobuf/descriptor.h>
13
#include <google/protobuf/generated_message_reflection.h>
14
#include <google/protobuf/reflection_ops.h>
15
#include <google/protobuf/wire_format.h>
16
// This is a temporary google only hack
17
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
18
#include "third_party/protobuf/version.h"
19
#endif
20
// @@protoc_insertion_point(includes)
21
22
namespace protobuf_addressbook1_2eproto {
23
extern PROTOBUF_INTERNAL_EXPORT_protobuf_addressbook1_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Ext;
24
extern PROTOBUF_INTERNAL_EXPORT_protobuf_addressbook1_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Content;
25
extern PROTOBUF_INTERNAL_EXPORT_protobuf_addressbook1_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_JsonContextBody;
26
extern PROTOBUF_INTERNAL_EXPORT_protobuf_addressbook1_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_PersonInfo;
27
}  // namespace protobuf_addressbook1_2eproto
28
class ExtDefaultTypeInternal {
29
 public:
30
  ::google::protobuf::internal::ExplicitlyConstructed<Ext>
31
      _instance;
32
} _Ext_default_instance_;
33
class ContentDefaultTypeInternal {
34
 public:
35
  ::google::protobuf::internal::ExplicitlyConstructed<Content>
36
      _instance;
37
} _Content_default_instance_;
38
class JsonContextBodyDefaultTypeInternal {
39
 public:
40
  ::google::protobuf::internal::ExplicitlyConstructed<JsonContextBody>
41
      _instance;
42
} _JsonContextBody_default_instance_;
43
class PersonInfoDefaultTypeInternal {
44
 public:
45
  ::google::protobuf::internal::ExplicitlyConstructed<PersonInfo>
46
      _instance;
47
} _PersonInfo_default_instance_;
48
class AddressBookDefaultTypeInternal {
49
 public:
50
  ::google::protobuf::internal::ExplicitlyConstructed<AddressBook>
51
      _instance;
52
} _AddressBook_default_instance_;
53
namespace protobuf_addressbook1_2eproto {
54
2
static void InitDefaultsExt() {
55
2
  GOOGLE_PROTOBUF_VERIFY_VERSION;
56
57
2
  {
58
2
    void* ptr = &::_Ext_default_instance_;
59
2
    new (ptr) ::Ext();
60
2
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
61
2
  }
62
2
  ::Ext::InitAsDefaultInstance();
63
2
}
64
65
::google::protobuf::internal::SCCInfo<0> scc_info_Ext =
66
    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsExt}, {}};
67
68
2
static void InitDefaultsContent() {
69
2
  GOOGLE_PROTOBUF_VERIFY_VERSION;
70
71
2
  {
72
2
    void* ptr = &::_Content_default_instance_;
73
2
    new (ptr) ::Content();
74
2
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
75
2
  }
76
2
  ::Content::InitAsDefaultInstance();
77
2
}
78
79
::google::protobuf::internal::SCCInfo<1> scc_info_Content =
80
    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsContent}, {
81
      &protobuf_addressbook1_2eproto::scc_info_Ext.base,}};
82
83
2
static void InitDefaultsJsonContextBody() {
84
2
  GOOGLE_PROTOBUF_VERIFY_VERSION;
85
86
2
  {
87
2
    void* ptr = &::_JsonContextBody_default_instance_;
88
2
    new (ptr) ::JsonContextBody();
89
2
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
90
2
  }
91
2
  ::JsonContextBody::InitAsDefaultInstance();
92
2
}
93
94
::google::protobuf::internal::SCCInfo<1> scc_info_JsonContextBody =
95
    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsJsonContextBody}, {
96
      &protobuf_addressbook1_2eproto::scc_info_Content.base,}};
97
98
2
static void InitDefaultsPersonInfo() {
99
2
  GOOGLE_PROTOBUF_VERIFY_VERSION;
100
101
2
  {
102
2
    void* ptr = &::_PersonInfo_default_instance_;
103
2
    new (ptr) ::PersonInfo();
104
2
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
105
2
  }
106
2
  ::PersonInfo::InitAsDefaultInstance();
107
2
}
108
109
::google::protobuf::internal::SCCInfo<1> scc_info_PersonInfo =
110
    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPersonInfo}, {
111
      &protobuf_addressbook1_2eproto::scc_info_JsonContextBody.base,}};
112
113
2
static void InitDefaultsAddressBook() {
114
2
  GOOGLE_PROTOBUF_VERIFY_VERSION;
115
116
2
  {
117
2
    void* ptr = &::_AddressBook_default_instance_;
118
2
    new (ptr) ::AddressBook();
119
2
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
120
2
  }
121
2
  ::AddressBook::InitAsDefaultInstance();
122
2
}
123
124
::google::protobuf::internal::SCCInfo<1> scc_info_AddressBook =
125
    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAddressBook}, {
126
      &protobuf_addressbook1_2eproto::scc_info_PersonInfo.base,}};
127
128
2
void InitDefaults() {
129
2
  ::google::protobuf::internal::InitSCC(&scc_info_Ext.base);
130
2
  ::google::protobuf::internal::InitSCC(&scc_info_Content.base);
131
2
  ::google::protobuf::internal::InitSCC(&scc_info_JsonContextBody.base);
132
2
  ::google::protobuf::internal::InitSCC(&scc_info_PersonInfo.base);
133
2
  ::google::protobuf::internal::InitSCC(&scc_info_AddressBook.base);
134
2
}
135
136
::google::protobuf::Metadata file_level_metadata[5];
137
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
138
139
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
140
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Ext, _has_bits_),
141
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Ext, _internal_metadata_),
142
  ~0u,  // no _extensions_
143
  ~0u,  // no _oneof_case_
144
  ~0u,  // no _weak_field_map_
145
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Ext, age_),
146
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Ext, databyte_),
147
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Ext, enumtype_),
148
  1,
149
  0,
150
  2,
151
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Content, _has_bits_),
152
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Content, _internal_metadata_),
153
  ~0u,  // no _extensions_
154
  ~0u,  // no _oneof_case_
155
  ~0u,  // no _weak_field_map_
156
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Content, uid_),
157
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Content, distance_),
158
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Content, ext_),
159
  0,
160
  2,
161
  1,
162
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::JsonContextBody, _has_bits_),
163
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::JsonContextBody, _internal_metadata_),
164
  ~0u,  // no _extensions_
165
  ~0u,  // no _oneof_case_
166
  ~0u,  // no _weak_field_map_
167
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::JsonContextBody, type_),
168
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::JsonContextBody, data_),
169
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::JsonContextBody, info_),
170
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::JsonContextBody, judge_),
171
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::JsonContextBody, spur_),
172
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::JsonContextBody, content_),
173
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::JsonContextBody, text_),
174
  0,
175
  ~0u,
176
  ~0u,
177
  2,
178
  1,
179
  ~0u,
180
  3,
181
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::PersonInfo, _has_bits_),
182
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::PersonInfo, _internal_metadata_),
183
  ~0u,  // no _extensions_
184
  ~0u,  // no _oneof_case_
185
  ~0u,  // no _weak_field_map_
186
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::PersonInfo, name_),
187
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::PersonInfo, id_),
188
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::PersonInfo, json_body_),
189
  0,
190
  2,
191
  1,
192
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressBook, _has_bits_),
193
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressBook, _internal_metadata_),
194
  ~0u,  // no _extensions_
195
  ~0u,  // no _oneof_case_
196
  ~0u,  // no _weak_field_map_
197
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressBook, person_),
198
  ~0u,
199
};
200
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
201
  { 0, 8, sizeof(::Ext)},
202
  { 11, 19, sizeof(::Content)},
203
  { 22, 34, sizeof(::JsonContextBody)},
204
  { 41, 49, sizeof(::PersonInfo)},
205
  { 52, 58, sizeof(::AddressBook)},
206
};
207
208
static ::google::protobuf::Message const * const file_default_instances[] = {
209
  reinterpret_cast<const ::google::protobuf::Message*>(&::_Ext_default_instance_),
210
  reinterpret_cast<const ::google::protobuf::Message*>(&::_Content_default_instance_),
211
  reinterpret_cast<const ::google::protobuf::Message*>(&::_JsonContextBody_default_instance_),
212
  reinterpret_cast<const ::google::protobuf::Message*>(&::_PersonInfo_default_instance_),
213
  reinterpret_cast<const ::google::protobuf::Message*>(&::_AddressBook_default_instance_),
214
};
215
216
0
void protobuf_AssignDescriptors() {
217
0
  AddDescriptors();
218
0
  AssignDescriptors(
219
0
      "addressbook1.proto", schemas, file_default_instances, TableStruct::offsets,
220
0
      file_level_metadata, file_level_enum_descriptors, NULL);
221
0
}
222
223
0
void protobuf_AssignDescriptorsOnce() {
224
0
  static ::google::protobuf::internal::once_flag once;
225
0
  ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
226
0
}
227
228
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
229
0
void protobuf_RegisterTypes(const ::std::string&) {
230
0
  protobuf_AssignDescriptorsOnce();
231
0
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 5);
232
0
}
233
234
2
void AddDescriptorsImpl() {
235
2
  InitDefaults();
236
2
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
237
2
      "\n\022addressbook1.proto\"y\n\003Ext\022\013\n\003age\030\002 \001(\007"
238
2
      "\022\020\n\010databyte\030\003 \002(\014\022&\n\010enumtype\030\004 \001(\0162\016.E"
239
2
      "xt.PhoneType:\004HOME\"+\n\tPhoneType\022\n\n\006MOBIL"
240
2
      "E\020\000\022\010\n\004HOME\020\001\022\010\n\004WORK\020\002\";\n\007Content\022\013\n\003ui"
241
2
      "d\030\001 \001(\t\022\020\n\010distance\030\020 \002(\002\022\021\n\003ext\030\021 \001(\0132\004"
242
2
      ".Ext\"\201\001\n\017JsonContextBody\022\014\n\004type\030\001 \001(\003\022\014"
243
2
      "\n\004data\030\005 \003(\005\022\014\n\004info\030\006 \003(\t\022\r\n\005judge\030\002 \002("
244
2
      "\010\022\014\n\004spur\030\003 \002(\001\022\031\n\007content\030\004 \003(\0132\010.Conte"
245
2
      "nt\022\014\n\004text\030\007 \001(\002\"K\n\nPersonInfo\022\014\n\004name\030\001"
246
2
      " \001(\t\022\n\n\002id\030\002 \001(\005\022#\n\tjson_body\030\022 \001(\0132\020.Js"
247
2
      "onContextBody\"*\n\013AddressBook\022\033\n\006person\030\001"
248
2
      " \003(\0132\013.PersonInfo"
249
2
  };
250
2
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
251
2
      descriptor, 457);
252
2
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
253
2
    "addressbook1.proto", &protobuf_RegisterTypes);
254
2
}
255
256
2
void AddDescriptors() {
257
2
  static ::google::protobuf::internal::once_flag once;
258
2
  ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
259
2
}
260
// Force AddDescriptors() to be called at dynamic initialization time.
261
struct StaticDescriptorInitializer {
262
2
  StaticDescriptorInitializer() {
263
2
    AddDescriptors();
264
2
  }
265
} static_descriptor_initializer;
266
}  // namespace protobuf_addressbook1_2eproto
267
0
const ::google::protobuf::EnumDescriptor* Ext_PhoneType_descriptor() {
268
0
  protobuf_addressbook1_2eproto::protobuf_AssignDescriptorsOnce();
269
0
  return protobuf_addressbook1_2eproto::file_level_enum_descriptors[0];
270
0
}
271
0
bool Ext_PhoneType_IsValid(int value) {
272
0
  switch (value) {
273
0
    case 0:
274
0
    case 1:
275
0
    case 2:
276
0
      return true;
277
0
    default:
278
0
      return false;
279
0
  }
280
0
}
281
282
#if !defined(_MSC_VER) || _MSC_VER >= 1900
283
const Ext_PhoneType Ext::MOBILE;
284
const Ext_PhoneType Ext::HOME;
285
const Ext_PhoneType Ext::WORK;
286
const Ext_PhoneType Ext::PhoneType_MIN;
287
const Ext_PhoneType Ext::PhoneType_MAX;
288
const int Ext::PhoneType_ARRAYSIZE;
289
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
290
291
// ===================================================================
292
293
2
void Ext::InitAsDefaultInstance() {
294
2
}
295
#if !defined(_MSC_VER) || _MSC_VER >= 1900
296
const int Ext::kAgeFieldNumber;
297
const int Ext::kDatabyteFieldNumber;
298
const int Ext::kEnumtypeFieldNumber;
299
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
300
301
Ext::Ext()
302
2
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
303
2
  ::google::protobuf::internal::InitSCC(
304
2
      &protobuf_addressbook1_2eproto::scc_info_Ext.base);
305
2
  SharedCtor();
306
  // @@protoc_insertion_point(constructor:Ext)
307
2
}
308
Ext::Ext(const Ext& from)
309
0
  : ::google::protobuf::Message(),
310
0
      _internal_metadata_(NULL),
311
0
      _has_bits_(from._has_bits_) {
312
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
313
0
  databyte_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
314
0
  if (from.has_databyte()) {
315
0
    databyte_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.databyte_);
316
0
  }
317
0
  ::memcpy(&age_, &from.age_,
318
0
    static_cast<size_t>(reinterpret_cast<char*>(&enumtype_) -
319
0
    reinterpret_cast<char*>(&age_)) + sizeof(enumtype_));
320
  // @@protoc_insertion_point(copy_constructor:Ext)
321
0
}
322
323
2
void Ext::SharedCtor() {
324
2
  databyte_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
325
2
  age_ = 0u;
326
2
  enumtype_ = 1;
327
2
}
328
329
0
Ext::~Ext() {
330
  // @@protoc_insertion_point(destructor:Ext)
331
0
  SharedDtor();
332
0
}
333
334
0
void Ext::SharedDtor() {
335
0
  databyte_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
336
0
}
337
338
0
void Ext::SetCachedSize(int size) const {
339
0
  _cached_size_.Set(size);
340
0
}
341
0
const ::google::protobuf::Descriptor* Ext::descriptor() {
342
0
  ::protobuf_addressbook1_2eproto::protobuf_AssignDescriptorsOnce();
343
0
  return ::protobuf_addressbook1_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
344
0
}
345
346
0
const Ext& Ext::default_instance() {
347
0
  ::google::protobuf::internal::InitSCC(&protobuf_addressbook1_2eproto::scc_info_Ext.base);
348
0
  return *internal_default_instance();
349
0
}
350
351
352
0
void Ext::Clear() {
353
// @@protoc_insertion_point(message_clear_start:Ext)
354
0
  ::google::protobuf::uint32 cached_has_bits = 0;
355
  // Prevent compiler warnings about cached_has_bits being unused
356
0
  (void) cached_has_bits;
357
358
0
  cached_has_bits = _has_bits_[0];
359
0
  if (cached_has_bits & 0x00000001u) {
360
0
    databyte_.ClearNonDefaultToEmptyNoArena();
361
0
  }
362
0
  if (cached_has_bits & 6u) {
363
0
    age_ = 0u;
364
0
    enumtype_ = 1;
365
0
  }
366
0
  _has_bits_.Clear();
367
0
  _internal_metadata_.Clear();
368
0
}
369
370
bool Ext::MergePartialFromCodedStream(
371
0
    ::google::protobuf::io::CodedInputStream* input) {
372
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
373
0
  ::google::protobuf::uint32 tag;
374
  // @@protoc_insertion_point(parse_start:Ext)
375
0
  for (;;) {
376
0
    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
377
0
    tag = p.first;
378
0
    if (!p.second) goto handle_unusual;
379
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
380
      // optional fixed32 age = 2;
381
0
      case 2: {
382
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
383
0
            static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
384
0
          set_has_age();
385
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
386
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>(
387
0
                 input, &age_)));
388
0
        } else {
389
0
          goto handle_unusual;
390
0
        }
391
0
        break;
392
0
      }
393
394
      // required bytes databyte = 3;
395
0
      case 3: {
396
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
397
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
398
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
399
0
                input, this->mutable_databyte()));
400
0
        } else {
401
0
          goto handle_unusual;
402
0
        }
403
0
        break;
404
0
      }
405
406
      // optional .Ext.PhoneType enumtype = 4 [default = HOME];
407
0
      case 4: {
408
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
409
0
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
410
0
          int value;
411
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
412
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
413
0
                 input, &value)));
414
0
          if (::Ext_PhoneType_IsValid(value)) {
415
0
            set_enumtype(static_cast< ::Ext_PhoneType >(value));
416
0
          } else {
417
0
            mutable_unknown_fields()->AddVarint(
418
0
                4, static_cast< ::google::protobuf::uint64>(value));
419
0
          }
420
0
        } else {
421
0
          goto handle_unusual;
422
0
        }
423
0
        break;
424
0
      }
425
426
0
      default: {
427
0
      handle_unusual:
428
0
        if (tag == 0) {
429
0
          goto success;
430
0
        }
431
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
432
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
433
0
        break;
434
0
      }
435
0
    }
436
0
  }
437
0
success:
438
  // @@protoc_insertion_point(parse_success:Ext)
439
0
  return true;
440
0
failure:
441
  // @@protoc_insertion_point(parse_failure:Ext)
442
0
  return false;
443
0
#undef DO_
444
0
}
445
446
void Ext::SerializeWithCachedSizes(
447
0
    ::google::protobuf::io::CodedOutputStream* output) const {
448
  // @@protoc_insertion_point(serialize_start:Ext)
449
0
  ::google::protobuf::uint32 cached_has_bits = 0;
450
0
  (void) cached_has_bits;
451
452
0
  cached_has_bits = _has_bits_[0];
453
  // optional fixed32 age = 2;
454
0
  if (cached_has_bits & 0x00000002u) {
455
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed32(2, this->age(), output);
456
0
  }
457
458
  // required bytes databyte = 3;
459
0
  if (cached_has_bits & 0x00000001u) {
460
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
461
0
      3, this->databyte(), output);
462
0
  }
463
464
  // optional .Ext.PhoneType enumtype = 4 [default = HOME];
465
0
  if (cached_has_bits & 0x00000004u) {
466
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
467
0
      4, this->enumtype(), output);
468
0
  }
469
470
0
  if (_internal_metadata_.have_unknown_fields()) {
471
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
472
0
        _internal_metadata_.unknown_fields(), output);
473
0
  }
474
  // @@protoc_insertion_point(serialize_end:Ext)
475
0
}
476
477
::google::protobuf::uint8* Ext::InternalSerializeWithCachedSizesToArray(
478
0
    bool deterministic, ::google::protobuf::uint8* target) const {
479
0
  (void)deterministic; // Unused
480
  // @@protoc_insertion_point(serialize_to_array_start:Ext)
481
0
  ::google::protobuf::uint32 cached_has_bits = 0;
482
0
  (void) cached_has_bits;
483
484
0
  cached_has_bits = _has_bits_[0];
485
  // optional fixed32 age = 2;
486
0
  if (cached_has_bits & 0x00000002u) {
487
0
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(2, this->age(), target);
488
0
  }
489
490
  // required bytes databyte = 3;
491
0
  if (cached_has_bits & 0x00000001u) {
492
0
    target =
493
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
494
0
        3, this->databyte(), target);
495
0
  }
496
497
  // optional .Ext.PhoneType enumtype = 4 [default = HOME];
498
0
  if (cached_has_bits & 0x00000004u) {
499
0
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
500
0
      4, this->enumtype(), target);
501
0
  }
502
503
0
  if (_internal_metadata_.have_unknown_fields()) {
504
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
505
0
        _internal_metadata_.unknown_fields(), target);
506
0
  }
507
  // @@protoc_insertion_point(serialize_to_array_end:Ext)
508
0
  return target;
509
0
}
510
511
0
size_t Ext::ByteSizeLong() const {
512
// @@protoc_insertion_point(message_byte_size_start:Ext)
513
0
  size_t total_size = 0;
514
515
0
  if (_internal_metadata_.have_unknown_fields()) {
516
0
    total_size +=
517
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
518
0
        _internal_metadata_.unknown_fields());
519
0
  }
520
  // required bytes databyte = 3;
521
0
  if (has_databyte()) {
522
0
    total_size += 1 +
523
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
524
0
        this->databyte());
525
0
  }
526
0
  if (_has_bits_[0 / 32] & 6u) {
527
    // optional fixed32 age = 2;
528
0
    if (has_age()) {
529
0
      total_size += 1 + 4;
530
0
    }
531
532
    // optional .Ext.PhoneType enumtype = 4 [default = HOME];
533
0
    if (has_enumtype()) {
534
0
      total_size += 1 +
535
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->enumtype());
536
0
    }
537
538
0
  }
539
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
540
0
  SetCachedSize(cached_size);
541
0
  return total_size;
542
0
}
543
544
0
void Ext::MergeFrom(const ::google::protobuf::Message& from) {
545
// @@protoc_insertion_point(generalized_merge_from_start:Ext)
546
0
  GOOGLE_DCHECK_NE(&from, this);
547
0
  const Ext* source =
548
0
      ::google::protobuf::internal::DynamicCastToGenerated<const Ext>(
549
0
          &from);
550
0
  if (source == NULL) {
551
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:Ext)
552
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
553
0
  } else {
554
  // @@protoc_insertion_point(generalized_merge_from_cast_success:Ext)
555
0
    MergeFrom(*source);
556
0
  }
557
0
}
558
559
0
void Ext::MergeFrom(const Ext& from) {
560
// @@protoc_insertion_point(class_specific_merge_from_start:Ext)
561
0
  GOOGLE_DCHECK_NE(&from, this);
562
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
563
0
  ::google::protobuf::uint32 cached_has_bits = 0;
564
0
  (void) cached_has_bits;
565
566
0
  cached_has_bits = from._has_bits_[0];
567
0
  if (cached_has_bits & 7u) {
568
0
    if (cached_has_bits & 0x00000001u) {
569
0
      set_has_databyte();
570
0
      databyte_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.databyte_);
571
0
    }
572
0
    if (cached_has_bits & 0x00000002u) {
573
0
      age_ = from.age_;
574
0
    }
575
0
    if (cached_has_bits & 0x00000004u) {
576
0
      enumtype_ = from.enumtype_;
577
0
    }
578
0
    _has_bits_[0] |= cached_has_bits;
579
0
  }
580
0
}
581
582
0
void Ext::CopyFrom(const ::google::protobuf::Message& from) {
583
// @@protoc_insertion_point(generalized_copy_from_start:Ext)
584
0
  if (&from == this) return;
585
0
  Clear();
586
0
  MergeFrom(from);
587
0
}
588
589
0
void Ext::CopyFrom(const Ext& from) {
590
// @@protoc_insertion_point(class_specific_copy_from_start:Ext)
591
0
  if (&from == this) return;
592
0
  Clear();
593
0
  MergeFrom(from);
594
0
}
595
596
0
bool Ext::IsInitialized() const {
597
0
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
598
0
  return true;
599
0
}
600
601
0
void Ext::Swap(Ext* other) {
602
0
  if (other == this) return;
603
0
  InternalSwap(other);
604
0
}
605
0
void Ext::InternalSwap(Ext* other) {
606
0
  using std::swap;
607
0
  databyte_.Swap(&other->databyte_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
608
0
    GetArenaNoVirtual());
609
0
  swap(age_, other->age_);
610
0
  swap(enumtype_, other->enumtype_);
611
0
  swap(_has_bits_[0], other->_has_bits_[0]);
612
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
613
0
}
614
615
0
::google::protobuf::Metadata Ext::GetMetadata() const {
616
0
  protobuf_addressbook1_2eproto::protobuf_AssignDescriptorsOnce();
617
0
  return ::protobuf_addressbook1_2eproto::file_level_metadata[kIndexInFileMessages];
618
0
}
619
620
621
// ===================================================================
622
623
2
void Content::InitAsDefaultInstance() {
624
2
  ::_Content_default_instance_._instance.get_mutable()->ext_ = const_cast< ::Ext*>(
625
2
      ::Ext::internal_default_instance());
626
2
}
627
#if !defined(_MSC_VER) || _MSC_VER >= 1900
628
const int Content::kUidFieldNumber;
629
const int Content::kDistanceFieldNumber;
630
const int Content::kExtFieldNumber;
631
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
632
633
Content::Content()
634
2
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
635
2
  ::google::protobuf::internal::InitSCC(
636
2
      &protobuf_addressbook1_2eproto::scc_info_Content.base);
637
2
  SharedCtor();
638
  // @@protoc_insertion_point(constructor:Content)
639
2
}
640
Content::Content(const Content& from)
641
0
  : ::google::protobuf::Message(),
642
0
      _internal_metadata_(NULL),
643
0
      _has_bits_(from._has_bits_) {
644
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
645
0
  uid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
646
0
  if (from.has_uid()) {
647
0
    uid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uid_);
648
0
  }
649
0
  if (from.has_ext()) {
650
0
    ext_ = new ::Ext(*from.ext_);
651
0
  } else {
652
0
    ext_ = NULL;
653
0
  }
654
0
  distance_ = from.distance_;
655
  // @@protoc_insertion_point(copy_constructor:Content)
656
0
}
657
658
2
void Content::SharedCtor() {
659
2
  uid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
660
2
  ::memset(&ext_, 0, static_cast<size_t>(
661
2
      reinterpret_cast<char*>(&distance_) -
662
2
      reinterpret_cast<char*>(&ext_)) + sizeof(distance_));
663
2
}
664
665
0
Content::~Content() {
666
  // @@protoc_insertion_point(destructor:Content)
667
0
  SharedDtor();
668
0
}
669
670
0
void Content::SharedDtor() {
671
0
  uid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
672
0
  if (this != internal_default_instance()) delete ext_;
673
0
}
674
675
0
void Content::SetCachedSize(int size) const {
676
0
  _cached_size_.Set(size);
677
0
}
678
0
const ::google::protobuf::Descriptor* Content::descriptor() {
679
0
  ::protobuf_addressbook1_2eproto::protobuf_AssignDescriptorsOnce();
680
0
  return ::protobuf_addressbook1_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
681
0
}
682
683
0
const Content& Content::default_instance() {
684
0
  ::google::protobuf::internal::InitSCC(&protobuf_addressbook1_2eproto::scc_info_Content.base);
685
0
  return *internal_default_instance();
686
0
}
687
688
689
0
void Content::Clear() {
690
// @@protoc_insertion_point(message_clear_start:Content)
691
0
  ::google::protobuf::uint32 cached_has_bits = 0;
692
  // Prevent compiler warnings about cached_has_bits being unused
693
0
  (void) cached_has_bits;
694
695
0
  cached_has_bits = _has_bits_[0];
696
0
  if (cached_has_bits & 3u) {
697
0
    if (cached_has_bits & 0x00000001u) {
698
0
      uid_.ClearNonDefaultToEmptyNoArena();
699
0
    }
700
0
    if (cached_has_bits & 0x00000002u) {
701
0
      GOOGLE_DCHECK(ext_ != NULL);
702
0
      ext_->Clear();
703
0
    }
704
0
  }
705
0
  distance_ = 0;
706
0
  _has_bits_.Clear();
707
0
  _internal_metadata_.Clear();
708
0
}
709
710
bool Content::MergePartialFromCodedStream(
711
0
    ::google::protobuf::io::CodedInputStream* input) {
712
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
713
0
  ::google::protobuf::uint32 tag;
714
  // @@protoc_insertion_point(parse_start:Content)
715
0
  for (;;) {
716
0
    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
717
0
    tag = p.first;
718
0
    if (!p.second) goto handle_unusual;
719
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
720
      // optional string uid = 1;
721
0
      case 1: {
722
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
723
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
724
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
725
0
                input, this->mutable_uid()));
726
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
727
0
            this->uid().data(), static_cast<int>(this->uid().length()),
728
0
            ::google::protobuf::internal::WireFormat::PARSE,
729
0
            "Content.uid");
730
0
        } else {
731
0
          goto handle_unusual;
732
0
        }
733
0
        break;
734
0
      }
735
736
      // required float distance = 16;
737
0
      case 16: {
738
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
739
0
            static_cast< ::google::protobuf::uint8>(133u /* 133 & 0xFF */)) {
740
0
          set_has_distance();
741
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
742
0
                   float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
743
0
                 input, &distance_)));
744
0
        } else {
745
0
          goto handle_unusual;
746
0
        }
747
0
        break;
748
0
      }
749
750
      // optional .Ext ext = 17;
751
0
      case 17: {
752
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
753
0
            static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) {
754
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
755
0
               input, mutable_ext()));
756
0
        } else {
757
0
          goto handle_unusual;
758
0
        }
759
0
        break;
760
0
      }
761
762
0
      default: {
763
0
      handle_unusual:
764
0
        if (tag == 0) {
765
0
          goto success;
766
0
        }
767
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
768
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
769
0
        break;
770
0
      }
771
0
    }
772
0
  }
773
0
success:
774
  // @@protoc_insertion_point(parse_success:Content)
775
0
  return true;
776
0
failure:
777
  // @@protoc_insertion_point(parse_failure:Content)
778
0
  return false;
779
0
#undef DO_
780
0
}
781
782
void Content::SerializeWithCachedSizes(
783
0
    ::google::protobuf::io::CodedOutputStream* output) const {
784
  // @@protoc_insertion_point(serialize_start:Content)
785
0
  ::google::protobuf::uint32 cached_has_bits = 0;
786
0
  (void) cached_has_bits;
787
788
0
  cached_has_bits = _has_bits_[0];
789
  // optional string uid = 1;
790
0
  if (cached_has_bits & 0x00000001u) {
791
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
792
0
      this->uid().data(), static_cast<int>(this->uid().length()),
793
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
794
0
      "Content.uid");
795
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
796
0
      1, this->uid(), output);
797
0
  }
798
799
  // required float distance = 16;
800
0
  if (cached_has_bits & 0x00000004u) {
801
0
    ::google::protobuf::internal::WireFormatLite::WriteFloat(16, this->distance(), output);
802
0
  }
803
804
  // optional .Ext ext = 17;
805
0
  if (cached_has_bits & 0x00000002u) {
806
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
807
0
      17, this->_internal_ext(), output);
808
0
  }
809
810
0
  if (_internal_metadata_.have_unknown_fields()) {
811
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
812
0
        _internal_metadata_.unknown_fields(), output);
813
0
  }
814
  // @@protoc_insertion_point(serialize_end:Content)
815
0
}
816
817
::google::protobuf::uint8* Content::InternalSerializeWithCachedSizesToArray(
818
0
    bool deterministic, ::google::protobuf::uint8* target) const {
819
0
  (void)deterministic; // Unused
820
  // @@protoc_insertion_point(serialize_to_array_start:Content)
821
0
  ::google::protobuf::uint32 cached_has_bits = 0;
822
0
  (void) cached_has_bits;
823
824
0
  cached_has_bits = _has_bits_[0];
825
  // optional string uid = 1;
826
0
  if (cached_has_bits & 0x00000001u) {
827
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
828
0
      this->uid().data(), static_cast<int>(this->uid().length()),
829
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
830
0
      "Content.uid");
831
0
    target =
832
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
833
0
        1, this->uid(), target);
834
0
  }
835
836
  // required float distance = 16;
837
0
  if (cached_has_bits & 0x00000004u) {
838
0
    target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(16, this->distance(), target);
839
0
  }
840
841
  // optional .Ext ext = 17;
842
0
  if (cached_has_bits & 0x00000002u) {
843
0
    target = ::google::protobuf::internal::WireFormatLite::
844
0
      InternalWriteMessageToArray(
845
0
        17, this->_internal_ext(), deterministic, target);
846
0
  }
847
848
0
  if (_internal_metadata_.have_unknown_fields()) {
849
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
850
0
        _internal_metadata_.unknown_fields(), target);
851
0
  }
852
  // @@protoc_insertion_point(serialize_to_array_end:Content)
853
0
  return target;
854
0
}
855
856
0
size_t Content::ByteSizeLong() const {
857
// @@protoc_insertion_point(message_byte_size_start:Content)
858
0
  size_t total_size = 0;
859
860
0
  if (_internal_metadata_.have_unknown_fields()) {
861
0
    total_size +=
862
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
863
0
        _internal_metadata_.unknown_fields());
864
0
  }
865
  // required float distance = 16;
866
0
  if (has_distance()) {
867
0
    total_size += 2 + 4;
868
0
  }
869
0
  if (_has_bits_[0 / 32] & 3u) {
870
    // optional string uid = 1;
871
0
    if (has_uid()) {
872
0
      total_size += 1 +
873
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
874
0
          this->uid());
875
0
    }
876
877
    // optional .Ext ext = 17;
878
0
    if (has_ext()) {
879
0
      total_size += 2 +
880
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
881
0
          *ext_);
882
0
    }
883
884
0
  }
885
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
886
0
  SetCachedSize(cached_size);
887
0
  return total_size;
888
0
}
889
890
0
void Content::MergeFrom(const ::google::protobuf::Message& from) {
891
// @@protoc_insertion_point(generalized_merge_from_start:Content)
892
0
  GOOGLE_DCHECK_NE(&from, this);
893
0
  const Content* source =
894
0
      ::google::protobuf::internal::DynamicCastToGenerated<const Content>(
895
0
          &from);
896
0
  if (source == NULL) {
897
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:Content)
898
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
899
0
  } else {
900
  // @@protoc_insertion_point(generalized_merge_from_cast_success:Content)
901
0
    MergeFrom(*source);
902
0
  }
903
0
}
904
905
0
void Content::MergeFrom(const Content& from) {
906
// @@protoc_insertion_point(class_specific_merge_from_start:Content)
907
0
  GOOGLE_DCHECK_NE(&from, this);
908
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
909
0
  ::google::protobuf::uint32 cached_has_bits = 0;
910
0
  (void) cached_has_bits;
911
912
0
  cached_has_bits = from._has_bits_[0];
913
0
  if (cached_has_bits & 7u) {
914
0
    if (cached_has_bits & 0x00000001u) {
915
0
      set_has_uid();
916
0
      uid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uid_);
917
0
    }
918
0
    if (cached_has_bits & 0x00000002u) {
919
0
      mutable_ext()->::Ext::MergeFrom(from.ext());
920
0
    }
921
0
    if (cached_has_bits & 0x00000004u) {
922
0
      distance_ = from.distance_;
923
0
    }
924
0
    _has_bits_[0] |= cached_has_bits;
925
0
  }
926
0
}
927
928
0
void Content::CopyFrom(const ::google::protobuf::Message& from) {
929
// @@protoc_insertion_point(generalized_copy_from_start:Content)
930
0
  if (&from == this) return;
931
0
  Clear();
932
0
  MergeFrom(from);
933
0
}
934
935
0
void Content::CopyFrom(const Content& from) {
936
// @@protoc_insertion_point(class_specific_copy_from_start:Content)
937
0
  if (&from == this) return;
938
0
  Clear();
939
0
  MergeFrom(from);
940
0
}
941
942
0
bool Content::IsInitialized() const {
943
0
  if ((_has_bits_[0] & 0x00000004) != 0x00000004) return false;
944
0
  if (has_ext()) {
945
0
    if (!this->ext_->IsInitialized()) return false;
946
0
  }
947
0
  return true;
948
0
}
949
950
0
void Content::Swap(Content* other) {
951
0
  if (other == this) return;
952
0
  InternalSwap(other);
953
0
}
954
0
void Content::InternalSwap(Content* other) {
955
0
  using std::swap;
956
0
  uid_.Swap(&other->uid_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
957
0
    GetArenaNoVirtual());
958
0
  swap(ext_, other->ext_);
959
0
  swap(distance_, other->distance_);
960
0
  swap(_has_bits_[0], other->_has_bits_[0]);
961
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
962
0
}
963
964
0
::google::protobuf::Metadata Content::GetMetadata() const {
965
0
  protobuf_addressbook1_2eproto::protobuf_AssignDescriptorsOnce();
966
0
  return ::protobuf_addressbook1_2eproto::file_level_metadata[kIndexInFileMessages];
967
0
}
968
969
970
// ===================================================================
971
972
2
void JsonContextBody::InitAsDefaultInstance() {
973
2
}
974
#if !defined(_MSC_VER) || _MSC_VER >= 1900
975
const int JsonContextBody::kTypeFieldNumber;
976
const int JsonContextBody::kDataFieldNumber;
977
const int JsonContextBody::kInfoFieldNumber;
978
const int JsonContextBody::kJudgeFieldNumber;
979
const int JsonContextBody::kSpurFieldNumber;
980
const int JsonContextBody::kContentFieldNumber;
981
const int JsonContextBody::kTextFieldNumber;
982
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
983
984
JsonContextBody::JsonContextBody()
985
2
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
986
2
  ::google::protobuf::internal::InitSCC(
987
2
      &protobuf_addressbook1_2eproto::scc_info_JsonContextBody.base);
988
2
  SharedCtor();
989
  // @@protoc_insertion_point(constructor:JsonContextBody)
990
2
}
991
JsonContextBody::JsonContextBody(const JsonContextBody& from)
992
0
  : ::google::protobuf::Message(),
993
0
      _internal_metadata_(NULL),
994
0
      _has_bits_(from._has_bits_),
995
0
      content_(from.content_),
996
0
      data_(from.data_),
997
0
      info_(from.info_) {
998
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
999
0
  ::memcpy(&type_, &from.type_,
1000
0
    static_cast<size_t>(reinterpret_cast<char*>(&text_) -
1001
0
    reinterpret_cast<char*>(&type_)) + sizeof(text_));
1002
  // @@protoc_insertion_point(copy_constructor:JsonContextBody)
1003
0
}
1004
1005
2
void JsonContextBody::SharedCtor() {
1006
2
  ::memset(&type_, 0, static_cast<size_t>(
1007
2
      reinterpret_cast<char*>(&text_) -
1008
2
      reinterpret_cast<char*>(&type_)) + sizeof(text_));
1009
2
}
1010
1011
0
JsonContextBody::~JsonContextBody() {
1012
  // @@protoc_insertion_point(destructor:JsonContextBody)
1013
0
  SharedDtor();
1014
0
}
1015
1016
0
void JsonContextBody::SharedDtor() {
1017
0
}
1018
1019
0
void JsonContextBody::SetCachedSize(int size) const {
1020
0
  _cached_size_.Set(size);
1021
0
}
1022
0
const ::google::protobuf::Descriptor* JsonContextBody::descriptor() {
1023
0
  ::protobuf_addressbook1_2eproto::protobuf_AssignDescriptorsOnce();
1024
0
  return ::protobuf_addressbook1_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1025
0
}
1026
1027
0
const JsonContextBody& JsonContextBody::default_instance() {
1028
0
  ::google::protobuf::internal::InitSCC(&protobuf_addressbook1_2eproto::scc_info_JsonContextBody.base);
1029
0
  return *internal_default_instance();
1030
0
}
1031
1032
1033
0
void JsonContextBody::Clear() {
1034
// @@protoc_insertion_point(message_clear_start:JsonContextBody)
1035
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1036
  // Prevent compiler warnings about cached_has_bits being unused
1037
0
  (void) cached_has_bits;
1038
1039
0
  content_.Clear();
1040
0
  data_.Clear();
1041
0
  info_.Clear();
1042
0
  cached_has_bits = _has_bits_[0];
1043
0
  if (cached_has_bits & 15u) {
1044
0
    ::memset(&type_, 0, static_cast<size_t>(
1045
0
        reinterpret_cast<char*>(&text_) -
1046
0
        reinterpret_cast<char*>(&type_)) + sizeof(text_));
1047
0
  }
1048
0
  _has_bits_.Clear();
1049
0
  _internal_metadata_.Clear();
1050
0
}
1051
1052
bool JsonContextBody::MergePartialFromCodedStream(
1053
0
    ::google::protobuf::io::CodedInputStream* input) {
1054
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1055
0
  ::google::protobuf::uint32 tag;
1056
  // @@protoc_insertion_point(parse_start:JsonContextBody)
1057
0
  for (;;) {
1058
0
    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1059
0
    tag = p.first;
1060
0
    if (!p.second) goto handle_unusual;
1061
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1062
      // optional int64 type = 1;
1063
0
      case 1: {
1064
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1065
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
1066
0
          set_has_type();
1067
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1068
0
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
1069
0
                 input, &type_)));
1070
0
        } else {
1071
0
          goto handle_unusual;
1072
0
        }
1073
0
        break;
1074
0
      }
1075
1076
      // required bool judge = 2;
1077
0
      case 2: {
1078
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1079
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
1080
0
          set_has_judge();
1081
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1082
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1083
0
                 input, &judge_)));
1084
0
        } else {
1085
0
          goto handle_unusual;
1086
0
        }
1087
0
        break;
1088
0
      }
1089
1090
      // required double spur = 3;
1091
0
      case 3: {
1092
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1093
0
            static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) {
1094
0
          set_has_spur();
1095
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1096
0
                   double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1097
0
                 input, &spur_)));
1098
0
        } else {
1099
0
          goto handle_unusual;
1100
0
        }
1101
0
        break;
1102
0
      }
1103
1104
      // repeated .Content content = 4;
1105
0
      case 4: {
1106
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1107
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
1108
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1109
0
                input, add_content()));
1110
0
        } else {
1111
0
          goto handle_unusual;
1112
0
        }
1113
0
        break;
1114
0
      }
1115
1116
      // repeated int32 data = 5;
1117
0
      case 5: {
1118
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1119
0
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
1120
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
1121
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1122
0
                 1, 40u, input, this->mutable_data())));
1123
0
        } else if (
1124
0
            static_cast< ::google::protobuf::uint8>(tag) ==
1125
0
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
1126
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
1127
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1128
0
                 input, this->mutable_data())));
1129
0
        } else {
1130
0
          goto handle_unusual;
1131
0
        }
1132
0
        break;
1133
0
      }
1134
1135
      // repeated string info = 6;
1136
0
      case 6: {
1137
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1138
0
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
1139
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1140
0
                input, this->add_info()));
1141
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1142
0
            this->info(this->info_size() - 1).data(),
1143
0
            static_cast<int>(this->info(this->info_size() - 1).length()),
1144
0
            ::google::protobuf::internal::WireFormat::PARSE,
1145
0
            "JsonContextBody.info");
1146
0
        } else {
1147
0
          goto handle_unusual;
1148
0
        }
1149
0
        break;
1150
0
      }
1151
1152
      // optional float text = 7;
1153
0
      case 7: {
1154
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1155
0
            static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) {
1156
0
          set_has_text();
1157
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1158
0
                   float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
1159
0
                 input, &text_)));
1160
0
        } else {
1161
0
          goto handle_unusual;
1162
0
        }
1163
0
        break;
1164
0
      }
1165
1166
0
      default: {
1167
0
      handle_unusual:
1168
0
        if (tag == 0) {
1169
0
          goto success;
1170
0
        }
1171
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1172
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1173
0
        break;
1174
0
      }
1175
0
    }
1176
0
  }
1177
0
success:
1178
  // @@protoc_insertion_point(parse_success:JsonContextBody)
1179
0
  return true;
1180
0
failure:
1181
  // @@protoc_insertion_point(parse_failure:JsonContextBody)
1182
0
  return false;
1183
0
#undef DO_
1184
0
}
1185
1186
void JsonContextBody::SerializeWithCachedSizes(
1187
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1188
  // @@protoc_insertion_point(serialize_start:JsonContextBody)
1189
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1190
0
  (void) cached_has_bits;
1191
1192
0
  cached_has_bits = _has_bits_[0];
1193
  // optional int64 type = 1;
1194
0
  if (cached_has_bits & 0x00000001u) {
1195
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->type(), output);
1196
0
  }
1197
1198
  // required bool judge = 2;
1199
0
  if (cached_has_bits & 0x00000004u) {
1200
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->judge(), output);
1201
0
  }
1202
1203
  // required double spur = 3;
1204
0
  if (cached_has_bits & 0x00000002u) {
1205
0
    ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->spur(), output);
1206
0
  }
1207
1208
  // repeated .Content content = 4;
1209
0
  for (unsigned int i = 0,
1210
0
      n = static_cast<unsigned int>(this->content_size()); i < n; i++) {
1211
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1212
0
      4,
1213
0
      this->content(static_cast<int>(i)),
1214
0
      output);
1215
0
  }
1216
1217
  // repeated int32 data = 5;
1218
0
  for (int i = 0, n = this->data_size(); i < n; i++) {
1219
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(
1220
0
      5, this->data(i), output);
1221
0
  }
1222
1223
  // repeated string info = 6;
1224
0
  for (int i = 0, n = this->info_size(); i < n; i++) {
1225
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1226
0
      this->info(i).data(), static_cast<int>(this->info(i).length()),
1227
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1228
0
      "JsonContextBody.info");
1229
0
    ::google::protobuf::internal::WireFormatLite::WriteString(
1230
0
      6, this->info(i), output);
1231
0
  }
1232
1233
  // optional float text = 7;
1234
0
  if (cached_has_bits & 0x00000008u) {
1235
0
    ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->text(), output);
1236
0
  }
1237
1238
0
  if (_internal_metadata_.have_unknown_fields()) {
1239
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1240
0
        _internal_metadata_.unknown_fields(), output);
1241
0
  }
1242
  // @@protoc_insertion_point(serialize_end:JsonContextBody)
1243
0
}
1244
1245
::google::protobuf::uint8* JsonContextBody::InternalSerializeWithCachedSizesToArray(
1246
0
    bool deterministic, ::google::protobuf::uint8* target) const {
1247
0
  (void)deterministic; // Unused
1248
  // @@protoc_insertion_point(serialize_to_array_start:JsonContextBody)
1249
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1250
0
  (void) cached_has_bits;
1251
1252
0
  cached_has_bits = _has_bits_[0];
1253
  // optional int64 type = 1;
1254
0
  if (cached_has_bits & 0x00000001u) {
1255
0
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->type(), target);
1256
0
  }
1257
1258
  // required bool judge = 2;
1259
0
  if (cached_has_bits & 0x00000004u) {
1260
0
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->judge(), target);
1261
0
  }
1262
1263
  // required double spur = 3;
1264
0
  if (cached_has_bits & 0x00000002u) {
1265
0
    target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->spur(), target);
1266
0
  }
1267
1268
  // repeated .Content content = 4;
1269
0
  for (unsigned int i = 0,
1270
0
      n = static_cast<unsigned int>(this->content_size()); i < n; i++) {
1271
0
    target = ::google::protobuf::internal::WireFormatLite::
1272
0
      InternalWriteMessageToArray(
1273
0
        4, this->content(static_cast<int>(i)), deterministic, target);
1274
0
  }
1275
1276
  // repeated int32 data = 5;
1277
0
  target = ::google::protobuf::internal::WireFormatLite::
1278
0
    WriteInt32ToArray(5, this->data_, target);
1279
1280
  // repeated string info = 6;
1281
0
  for (int i = 0, n = this->info_size(); i < n; i++) {
1282
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1283
0
      this->info(i).data(), static_cast<int>(this->info(i).length()),
1284
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1285
0
      "JsonContextBody.info");
1286
0
    target = ::google::protobuf::internal::WireFormatLite::
1287
0
      WriteStringToArray(6, this->info(i), target);
1288
0
  }
1289
1290
  // optional float text = 7;
1291
0
  if (cached_has_bits & 0x00000008u) {
1292
0
    target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->text(), target);
1293
0
  }
1294
1295
0
  if (_internal_metadata_.have_unknown_fields()) {
1296
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1297
0
        _internal_metadata_.unknown_fields(), target);
1298
0
  }
1299
  // @@protoc_insertion_point(serialize_to_array_end:JsonContextBody)
1300
0
  return target;
1301
0
}
1302
1303
0
size_t JsonContextBody::RequiredFieldsByteSizeFallback() const {
1304
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:JsonContextBody)
1305
0
  size_t total_size = 0;
1306
1307
0
  if (has_spur()) {
1308
    // required double spur = 3;
1309
0
    total_size += 1 + 8;
1310
0
  }
1311
1312
0
  if (has_judge()) {
1313
    // required bool judge = 2;
1314
0
    total_size += 1 + 1;
1315
0
  }
1316
1317
0
  return total_size;
1318
0
}
1319
0
size_t JsonContextBody::ByteSizeLong() const {
1320
// @@protoc_insertion_point(message_byte_size_start:JsonContextBody)
1321
0
  size_t total_size = 0;
1322
1323
0
  if (_internal_metadata_.have_unknown_fields()) {
1324
0
    total_size +=
1325
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1326
0
        _internal_metadata_.unknown_fields());
1327
0
  }
1328
0
  if (((_has_bits_[0] & 0x00000006) ^ 0x00000006) == 0) {  // All required fields are present.
1329
    // required double spur = 3;
1330
0
    total_size += 1 + 8;
1331
1332
    // required bool judge = 2;
1333
0
    total_size += 1 + 1;
1334
1335
0
  } else {
1336
0
    total_size += RequiredFieldsByteSizeFallback();
1337
0
  }
1338
  // repeated .Content content = 4;
1339
0
  {
1340
0
    unsigned int count = static_cast<unsigned int>(this->content_size());
1341
0
    total_size += 1UL * count;
1342
0
    for (unsigned int i = 0; i < count; i++) {
1343
0
      total_size +=
1344
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1345
0
          this->content(static_cast<int>(i)));
1346
0
    }
1347
0
  }
1348
1349
  // repeated int32 data = 5;
1350
0
  {
1351
0
    size_t data_size = ::google::protobuf::internal::WireFormatLite::
1352
0
      Int32Size(this->data_);
1353
0
    total_size += 1 *
1354
0
                  ::google::protobuf::internal::FromIntSize(this->data_size());
1355
0
    total_size += data_size;
1356
0
  }
1357
1358
  // repeated string info = 6;
1359
0
  total_size += 1 *
1360
0
      ::google::protobuf::internal::FromIntSize(this->info_size());
1361
0
  for (int i = 0, n = this->info_size(); i < n; i++) {
1362
0
    total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
1363
0
      this->info(i));
1364
0
  }
1365
1366
  // optional int64 type = 1;
1367
0
  if (has_type()) {
1368
0
    total_size += 1 +
1369
0
      ::google::protobuf::internal::WireFormatLite::Int64Size(
1370
0
        this->type());
1371
0
  }
1372
1373
  // optional float text = 7;
1374
0
  if (has_text()) {
1375
0
    total_size += 1 + 4;
1376
0
  }
1377
1378
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1379
0
  SetCachedSize(cached_size);
1380
0
  return total_size;
1381
0
}
1382
1383
0
void JsonContextBody::MergeFrom(const ::google::protobuf::Message& from) {
1384
// @@protoc_insertion_point(generalized_merge_from_start:JsonContextBody)
1385
0
  GOOGLE_DCHECK_NE(&from, this);
1386
0
  const JsonContextBody* source =
1387
0
      ::google::protobuf::internal::DynamicCastToGenerated<const JsonContextBody>(
1388
0
          &from);
1389
0
  if (source == NULL) {
1390
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:JsonContextBody)
1391
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1392
0
  } else {
1393
  // @@protoc_insertion_point(generalized_merge_from_cast_success:JsonContextBody)
1394
0
    MergeFrom(*source);
1395
0
  }
1396
0
}
1397
1398
0
void JsonContextBody::MergeFrom(const JsonContextBody& from) {
1399
// @@protoc_insertion_point(class_specific_merge_from_start:JsonContextBody)
1400
0
  GOOGLE_DCHECK_NE(&from, this);
1401
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1402
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1403
0
  (void) cached_has_bits;
1404
1405
0
  content_.MergeFrom(from.content_);
1406
0
  data_.MergeFrom(from.data_);
1407
0
  info_.MergeFrom(from.info_);
1408
0
  cached_has_bits = from._has_bits_[0];
1409
0
  if (cached_has_bits & 15u) {
1410
0
    if (cached_has_bits & 0x00000001u) {
1411
0
      type_ = from.type_;
1412
0
    }
1413
0
    if (cached_has_bits & 0x00000002u) {
1414
0
      spur_ = from.spur_;
1415
0
    }
1416
0
    if (cached_has_bits & 0x00000004u) {
1417
0
      judge_ = from.judge_;
1418
0
    }
1419
0
    if (cached_has_bits & 0x00000008u) {
1420
0
      text_ = from.text_;
1421
0
    }
1422
0
    _has_bits_[0] |= cached_has_bits;
1423
0
  }
1424
0
}
1425
1426
0
void JsonContextBody::CopyFrom(const ::google::protobuf::Message& from) {
1427
// @@protoc_insertion_point(generalized_copy_from_start:JsonContextBody)
1428
0
  if (&from == this) return;
1429
0
  Clear();
1430
0
  MergeFrom(from);
1431
0
}
1432
1433
0
void JsonContextBody::CopyFrom(const JsonContextBody& from) {
1434
// @@protoc_insertion_point(class_specific_copy_from_start:JsonContextBody)
1435
0
  if (&from == this) return;
1436
0
  Clear();
1437
0
  MergeFrom(from);
1438
0
}
1439
1440
0
bool JsonContextBody::IsInitialized() const {
1441
0
  if ((_has_bits_[0] & 0x00000006) != 0x00000006) return false;
1442
0
  if (!::google::protobuf::internal::AllAreInitialized(this->content())) return false;
1443
0
  return true;
1444
0
}
1445
1446
0
void JsonContextBody::Swap(JsonContextBody* other) {
1447
0
  if (other == this) return;
1448
0
  InternalSwap(other);
1449
0
}
1450
0
void JsonContextBody::InternalSwap(JsonContextBody* other) {
1451
0
  using std::swap;
1452
0
  CastToBase(&content_)->InternalSwap(CastToBase(&other->content_));
1453
0
  data_.InternalSwap(&other->data_);
1454
0
  info_.InternalSwap(CastToBase(&other->info_));
1455
0
  swap(type_, other->type_);
1456
0
  swap(spur_, other->spur_);
1457
0
  swap(judge_, other->judge_);
1458
0
  swap(text_, other->text_);
1459
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1460
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1461
0
}
1462
1463
0
::google::protobuf::Metadata JsonContextBody::GetMetadata() const {
1464
0
  protobuf_addressbook1_2eproto::protobuf_AssignDescriptorsOnce();
1465
0
  return ::protobuf_addressbook1_2eproto::file_level_metadata[kIndexInFileMessages];
1466
0
}
1467
1468
1469
// ===================================================================
1470
1471
2
void PersonInfo::InitAsDefaultInstance() {
1472
2
  ::_PersonInfo_default_instance_._instance.get_mutable()->json_body_ = const_cast< ::JsonContextBody*>(
1473
2
      ::JsonContextBody::internal_default_instance());
1474
2
}
1475
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1476
const int PersonInfo::kNameFieldNumber;
1477
const int PersonInfo::kIdFieldNumber;
1478
const int PersonInfo::kJsonBodyFieldNumber;
1479
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1480
1481
PersonInfo::PersonInfo()
1482
2
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1483
2
  ::google::protobuf::internal::InitSCC(
1484
2
      &protobuf_addressbook1_2eproto::scc_info_PersonInfo.base);
1485
2
  SharedCtor();
1486
  // @@protoc_insertion_point(constructor:PersonInfo)
1487
2
}
1488
PersonInfo::PersonInfo(const PersonInfo& from)
1489
0
  : ::google::protobuf::Message(),
1490
0
      _internal_metadata_(NULL),
1491
0
      _has_bits_(from._has_bits_) {
1492
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1493
0
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1494
0
  if (from.has_name()) {
1495
0
    name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
1496
0
  }
1497
0
  if (from.has_json_body()) {
1498
0
    json_body_ = new ::JsonContextBody(*from.json_body_);
1499
0
  } else {
1500
0
    json_body_ = NULL;
1501
0
  }
1502
0
  id_ = from.id_;
1503
  // @@protoc_insertion_point(copy_constructor:PersonInfo)
1504
0
}
1505
1506
2
void PersonInfo::SharedCtor() {
1507
2
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1508
2
  ::memset(&json_body_, 0, static_cast<size_t>(
1509
2
      reinterpret_cast<char*>(&id_) -
1510
2
      reinterpret_cast<char*>(&json_body_)) + sizeof(id_));
1511
2
}
1512
1513
0
PersonInfo::~PersonInfo() {
1514
  // @@protoc_insertion_point(destructor:PersonInfo)
1515
0
  SharedDtor();
1516
0
}
1517
1518
0
void PersonInfo::SharedDtor() {
1519
0
  name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1520
0
  if (this != internal_default_instance()) delete json_body_;
1521
0
}
1522
1523
0
void PersonInfo::SetCachedSize(int size) const {
1524
0
  _cached_size_.Set(size);
1525
0
}
1526
0
const ::google::protobuf::Descriptor* PersonInfo::descriptor() {
1527
0
  ::protobuf_addressbook1_2eproto::protobuf_AssignDescriptorsOnce();
1528
0
  return ::protobuf_addressbook1_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1529
0
}
1530
1531
0
const PersonInfo& PersonInfo::default_instance() {
1532
0
  ::google::protobuf::internal::InitSCC(&protobuf_addressbook1_2eproto::scc_info_PersonInfo.base);
1533
0
  return *internal_default_instance();
1534
0
}
1535
1536
1537
0
void PersonInfo::Clear() {
1538
// @@protoc_insertion_point(message_clear_start:PersonInfo)
1539
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1540
  // Prevent compiler warnings about cached_has_bits being unused
1541
0
  (void) cached_has_bits;
1542
1543
0
  cached_has_bits = _has_bits_[0];
1544
0
  if (cached_has_bits & 3u) {
1545
0
    if (cached_has_bits & 0x00000001u) {
1546
0
      name_.ClearNonDefaultToEmptyNoArena();
1547
0
    }
1548
0
    if (cached_has_bits & 0x00000002u) {
1549
0
      GOOGLE_DCHECK(json_body_ != NULL);
1550
0
      json_body_->Clear();
1551
0
    }
1552
0
  }
1553
0
  id_ = 0;
1554
0
  _has_bits_.Clear();
1555
0
  _internal_metadata_.Clear();
1556
0
}
1557
1558
bool PersonInfo::MergePartialFromCodedStream(
1559
0
    ::google::protobuf::io::CodedInputStream* input) {
1560
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1561
0
  ::google::protobuf::uint32 tag;
1562
  // @@protoc_insertion_point(parse_start:PersonInfo)
1563
0
  for (;;) {
1564
0
    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
1565
0
    tag = p.first;
1566
0
    if (!p.second) goto handle_unusual;
1567
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1568
      // optional string name = 1;
1569
0
      case 1: {
1570
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1571
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1572
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1573
0
                input, this->mutable_name()));
1574
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1575
0
            this->name().data(), static_cast<int>(this->name().length()),
1576
0
            ::google::protobuf::internal::WireFormat::PARSE,
1577
0
            "PersonInfo.name");
1578
0
        } else {
1579
0
          goto handle_unusual;
1580
0
        }
1581
0
        break;
1582
0
      }
1583
1584
      // optional int32 id = 2;
1585
0
      case 2: {
1586
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1587
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
1588
0
          set_has_id();
1589
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1590
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1591
0
                 input, &id_)));
1592
0
        } else {
1593
0
          goto handle_unusual;
1594
0
        }
1595
0
        break;
1596
0
      }
1597
1598
      // optional .JsonContextBody json_body = 18;
1599
0
      case 18: {
1600
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1601
0
            static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) {
1602
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1603
0
               input, mutable_json_body()));
1604
0
        } else {
1605
0
          goto handle_unusual;
1606
0
        }
1607
0
        break;
1608
0
      }
1609
1610
0
      default: {
1611
0
      handle_unusual:
1612
0
        if (tag == 0) {
1613
0
          goto success;
1614
0
        }
1615
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1616
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1617
0
        break;
1618
0
      }
1619
0
    }
1620
0
  }
1621
0
success:
1622
  // @@protoc_insertion_point(parse_success:PersonInfo)
1623
0
  return true;
1624
0
failure:
1625
  // @@protoc_insertion_point(parse_failure:PersonInfo)
1626
0
  return false;
1627
0
#undef DO_
1628
0
}
1629
1630
void PersonInfo::SerializeWithCachedSizes(
1631
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1632
  // @@protoc_insertion_point(serialize_start:PersonInfo)
1633
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1634
0
  (void) cached_has_bits;
1635
1636
0
  cached_has_bits = _has_bits_[0];
1637
  // optional string name = 1;
1638
0
  if (cached_has_bits & 0x00000001u) {
1639
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1640
0
      this->name().data(), static_cast<int>(this->name().length()),
1641
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1642
0
      "PersonInfo.name");
1643
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1644
0
      1, this->name(), output);
1645
0
  }
1646
1647
  // optional int32 id = 2;
1648
0
  if (cached_has_bits & 0x00000004u) {
1649
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->id(), output);
1650
0
  }
1651
1652
  // optional .JsonContextBody json_body = 18;
1653
0
  if (cached_has_bits & 0x00000002u) {
1654
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1655
0
      18, this->_internal_json_body(), output);
1656
0
  }
1657
1658
0
  if (_internal_metadata_.have_unknown_fields()) {
1659
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1660
0
        _internal_metadata_.unknown_fields(), output);
1661
0
  }
1662
  // @@protoc_insertion_point(serialize_end:PersonInfo)
1663
0
}
1664
1665
::google::protobuf::uint8* PersonInfo::InternalSerializeWithCachedSizesToArray(
1666
0
    bool deterministic, ::google::protobuf::uint8* target) const {
1667
0
  (void)deterministic; // Unused
1668
  // @@protoc_insertion_point(serialize_to_array_start:PersonInfo)
1669
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1670
0
  (void) cached_has_bits;
1671
1672
0
  cached_has_bits = _has_bits_[0];
1673
  // optional string name = 1;
1674
0
  if (cached_has_bits & 0x00000001u) {
1675
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1676
0
      this->name().data(), static_cast<int>(this->name().length()),
1677
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1678
0
      "PersonInfo.name");
1679
0
    target =
1680
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1681
0
        1, this->name(), target);
1682
0
  }
1683
1684
  // optional int32 id = 2;
1685
0
  if (cached_has_bits & 0x00000004u) {
1686
0
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->id(), target);
1687
0
  }
1688
1689
  // optional .JsonContextBody json_body = 18;
1690
0
  if (cached_has_bits & 0x00000002u) {
1691
0
    target = ::google::protobuf::internal::WireFormatLite::
1692
0
      InternalWriteMessageToArray(
1693
0
        18, this->_internal_json_body(), deterministic, target);
1694
0
  }
1695
1696
0
  if (_internal_metadata_.have_unknown_fields()) {
1697
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1698
0
        _internal_metadata_.unknown_fields(), target);
1699
0
  }
1700
  // @@protoc_insertion_point(serialize_to_array_end:PersonInfo)
1701
0
  return target;
1702
0
}
1703
1704
0
size_t PersonInfo::ByteSizeLong() const {
1705
// @@protoc_insertion_point(message_byte_size_start:PersonInfo)
1706
0
  size_t total_size = 0;
1707
1708
0
  if (_internal_metadata_.have_unknown_fields()) {
1709
0
    total_size +=
1710
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1711
0
        _internal_metadata_.unknown_fields());
1712
0
  }
1713
0
  if (_has_bits_[0 / 32] & 7u) {
1714
    // optional string name = 1;
1715
0
    if (has_name()) {
1716
0
      total_size += 1 +
1717
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
1718
0
          this->name());
1719
0
    }
1720
1721
    // optional .JsonContextBody json_body = 18;
1722
0
    if (has_json_body()) {
1723
0
      total_size += 2 +
1724
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1725
0
          *json_body_);
1726
0
    }
1727
1728
    // optional int32 id = 2;
1729
0
    if (has_id()) {
1730
0
      total_size += 1 +
1731
0
        ::google::protobuf::internal::WireFormatLite::Int32Size(
1732
0
          this->id());
1733
0
    }
1734
1735
0
  }
1736
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1737
0
  SetCachedSize(cached_size);
1738
0
  return total_size;
1739
0
}
1740
1741
0
void PersonInfo::MergeFrom(const ::google::protobuf::Message& from) {
1742
// @@protoc_insertion_point(generalized_merge_from_start:PersonInfo)
1743
0
  GOOGLE_DCHECK_NE(&from, this);
1744
0
  const PersonInfo* source =
1745
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PersonInfo>(
1746
0
          &from);
1747
0
  if (source == NULL) {
1748
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:PersonInfo)
1749
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1750
0
  } else {
1751
  // @@protoc_insertion_point(generalized_merge_from_cast_success:PersonInfo)
1752
0
    MergeFrom(*source);
1753
0
  }
1754
0
}
1755
1756
0
void PersonInfo::MergeFrom(const PersonInfo& from) {
1757
// @@protoc_insertion_point(class_specific_merge_from_start:PersonInfo)
1758
0
  GOOGLE_DCHECK_NE(&from, this);
1759
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1760
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1761
0
  (void) cached_has_bits;
1762
1763
0
  cached_has_bits = from._has_bits_[0];
1764
0
  if (cached_has_bits & 7u) {
1765
0
    if (cached_has_bits & 0x00000001u) {
1766
0
      set_has_name();
1767
0
      name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
1768
0
    }
1769
0
    if (cached_has_bits & 0x00000002u) {
1770
0
      mutable_json_body()->::JsonContextBody::MergeFrom(from.json_body());
1771
0
    }
1772
0
    if (cached_has_bits & 0x00000004u) {
1773
0
      id_ = from.id_;
1774
0
    }
1775
0
    _has_bits_[0] |= cached_has_bits;
1776
0
  }
1777
0
}
1778
1779
0
void PersonInfo::CopyFrom(const ::google::protobuf::Message& from) {
1780
// @@protoc_insertion_point(generalized_copy_from_start:PersonInfo)
1781
0
  if (&from == this) return;
1782
0
  Clear();
1783
0
  MergeFrom(from);
1784
0
}
1785
1786
0
void PersonInfo::CopyFrom(const PersonInfo& from) {
1787
// @@protoc_insertion_point(class_specific_copy_from_start:PersonInfo)
1788
0
  if (&from == this) return;
1789
0
  Clear();
1790
0
  MergeFrom(from);
1791
0
}
1792
1793
0
bool PersonInfo::IsInitialized() const {
1794
0
  if (has_json_body()) {
1795
0
    if (!this->json_body_->IsInitialized()) return false;
1796
0
  }
1797
0
  return true;
1798
0
}
1799
1800
0
void PersonInfo::Swap(PersonInfo* other) {
1801
0
  if (other == this) return;
1802
0
  InternalSwap(other);
1803
0
}
1804
0
void PersonInfo::InternalSwap(PersonInfo* other) {
1805
0
  using std::swap;
1806
0
  name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1807
0
    GetArenaNoVirtual());
1808
0
  swap(json_body_, other->json_body_);
1809
0
  swap(id_, other->id_);
1810
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1811
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1812
0
}
1813
1814
0
::google::protobuf::Metadata PersonInfo::GetMetadata() const {
1815
0
  protobuf_addressbook1_2eproto::protobuf_AssignDescriptorsOnce();
1816
0
  return ::protobuf_addressbook1_2eproto::file_level_metadata[kIndexInFileMessages];
1817
0
}
1818
1819
1820
// ===================================================================
1821
1822
2
void AddressBook::InitAsDefaultInstance() {
1823
2
}
1824
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1825
const int AddressBook::kPersonFieldNumber;
1826
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1827
1828
AddressBook::AddressBook()
1829
2
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1830
2
  ::google::protobuf::internal::InitSCC(
1831
2
      &protobuf_addressbook1_2eproto::scc_info_AddressBook.base);
1832
2
  SharedCtor();
1833
  // @@protoc_insertion_point(constructor:AddressBook)
1834
2
}
1835
AddressBook::AddressBook(const AddressBook& from)
1836
0
  : ::google::protobuf::Message(),
1837
0
      _internal_metadata_(NULL),
1838
0
      _has_bits_(from._has_bits_),
1839
0
      person_(from.person_) {
1840
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1841
  // @@protoc_insertion_point(copy_constructor:AddressBook)
1842
0
}
1843
1844
2
void AddressBook::SharedCtor() {
1845
2
}
1846
1847
0
AddressBook::~AddressBook() {
1848
  // @@protoc_insertion_point(destructor:AddressBook)
1849
0
  SharedDtor();
1850
0
}
1851
1852
0
void AddressBook::SharedDtor() {
1853
0
}
1854
1855
0
void AddressBook::SetCachedSize(int size) const {
1856
0
  _cached_size_.Set(size);
1857
0
}
1858
0
const ::google::protobuf::Descriptor* AddressBook::descriptor() {
1859
0
  ::protobuf_addressbook1_2eproto::protobuf_AssignDescriptorsOnce();
1860
0
  return ::protobuf_addressbook1_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1861
0
}
1862
1863
0
const AddressBook& AddressBook::default_instance() {
1864
0
  ::google::protobuf::internal::InitSCC(&protobuf_addressbook1_2eproto::scc_info_AddressBook.base);
1865
0
  return *internal_default_instance();
1866
0
}
1867
1868
1869
0
void AddressBook::Clear() {
1870
// @@protoc_insertion_point(message_clear_start:AddressBook)
1871
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1872
  // Prevent compiler warnings about cached_has_bits being unused
1873
0
  (void) cached_has_bits;
1874
1875
0
  person_.Clear();
1876
0
  _has_bits_.Clear();
1877
0
  _internal_metadata_.Clear();
1878
0
}
1879
1880
bool AddressBook::MergePartialFromCodedStream(
1881
0
    ::google::protobuf::io::CodedInputStream* input) {
1882
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1883
0
  ::google::protobuf::uint32 tag;
1884
  // @@protoc_insertion_point(parse_start:AddressBook)
1885
0
  for (;;) {
1886
0
    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1887
0
    tag = p.first;
1888
0
    if (!p.second) goto handle_unusual;
1889
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1890
      // repeated .PersonInfo person = 1;
1891
0
      case 1: {
1892
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1893
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1894
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1895
0
                input, add_person()));
1896
0
        } else {
1897
0
          goto handle_unusual;
1898
0
        }
1899
0
        break;
1900
0
      }
1901
1902
0
      default: {
1903
0
      handle_unusual:
1904
0
        if (tag == 0) {
1905
0
          goto success;
1906
0
        }
1907
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1908
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1909
0
        break;
1910
0
      }
1911
0
    }
1912
0
  }
1913
0
success:
1914
  // @@protoc_insertion_point(parse_success:AddressBook)
1915
0
  return true;
1916
0
failure:
1917
  // @@protoc_insertion_point(parse_failure:AddressBook)
1918
0
  return false;
1919
0
#undef DO_
1920
0
}
1921
1922
void AddressBook::SerializeWithCachedSizes(
1923
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1924
  // @@protoc_insertion_point(serialize_start:AddressBook)
1925
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1926
0
  (void) cached_has_bits;
1927
1928
  // repeated .PersonInfo person = 1;
1929
0
  for (unsigned int i = 0,
1930
0
      n = static_cast<unsigned int>(this->person_size()); i < n; i++) {
1931
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1932
0
      1,
1933
0
      this->person(static_cast<int>(i)),
1934
0
      output);
1935
0
  }
1936
1937
0
  if (_internal_metadata_.have_unknown_fields()) {
1938
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1939
0
        _internal_metadata_.unknown_fields(), output);
1940
0
  }
1941
  // @@protoc_insertion_point(serialize_end:AddressBook)
1942
0
}
1943
1944
::google::protobuf::uint8* AddressBook::InternalSerializeWithCachedSizesToArray(
1945
0
    bool deterministic, ::google::protobuf::uint8* target) const {
1946
0
  (void)deterministic; // Unused
1947
  // @@protoc_insertion_point(serialize_to_array_start:AddressBook)
1948
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1949
0
  (void) cached_has_bits;
1950
1951
  // repeated .PersonInfo person = 1;
1952
0
  for (unsigned int i = 0,
1953
0
      n = static_cast<unsigned int>(this->person_size()); i < n; i++) {
1954
0
    target = ::google::protobuf::internal::WireFormatLite::
1955
0
      InternalWriteMessageToArray(
1956
0
        1, this->person(static_cast<int>(i)), deterministic, target);
1957
0
  }
1958
1959
0
  if (_internal_metadata_.have_unknown_fields()) {
1960
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1961
0
        _internal_metadata_.unknown_fields(), target);
1962
0
  }
1963
  // @@protoc_insertion_point(serialize_to_array_end:AddressBook)
1964
0
  return target;
1965
0
}
1966
1967
0
size_t AddressBook::ByteSizeLong() const {
1968
// @@protoc_insertion_point(message_byte_size_start:AddressBook)
1969
0
  size_t total_size = 0;
1970
1971
0
  if (_internal_metadata_.have_unknown_fields()) {
1972
0
    total_size +=
1973
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1974
0
        _internal_metadata_.unknown_fields());
1975
0
  }
1976
  // repeated .PersonInfo person = 1;
1977
0
  {
1978
0
    unsigned int count = static_cast<unsigned int>(this->person_size());
1979
0
    total_size += 1UL * count;
1980
0
    for (unsigned int i = 0; i < count; i++) {
1981
0
      total_size +=
1982
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1983
0
          this->person(static_cast<int>(i)));
1984
0
    }
1985
0
  }
1986
1987
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1988
0
  SetCachedSize(cached_size);
1989
0
  return total_size;
1990
0
}
1991
1992
0
void AddressBook::MergeFrom(const ::google::protobuf::Message& from) {
1993
// @@protoc_insertion_point(generalized_merge_from_start:AddressBook)
1994
0
  GOOGLE_DCHECK_NE(&from, this);
1995
0
  const AddressBook* source =
1996
0
      ::google::protobuf::internal::DynamicCastToGenerated<const AddressBook>(
1997
0
          &from);
1998
0
  if (source == NULL) {
1999
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:AddressBook)
2000
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2001
0
  } else {
2002
  // @@protoc_insertion_point(generalized_merge_from_cast_success:AddressBook)
2003
0
    MergeFrom(*source);
2004
0
  }
2005
0
}
2006
2007
0
void AddressBook::MergeFrom(const AddressBook& from) {
2008
// @@protoc_insertion_point(class_specific_merge_from_start:AddressBook)
2009
0
  GOOGLE_DCHECK_NE(&from, this);
2010
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2011
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2012
0
  (void) cached_has_bits;
2013
2014
0
  person_.MergeFrom(from.person_);
2015
0
}
2016
2017
0
void AddressBook::CopyFrom(const ::google::protobuf::Message& from) {
2018
// @@protoc_insertion_point(generalized_copy_from_start:AddressBook)
2019
0
  if (&from == this) return;
2020
0
  Clear();
2021
0
  MergeFrom(from);
2022
0
}
2023
2024
0
void AddressBook::CopyFrom(const AddressBook& from) {
2025
// @@protoc_insertion_point(class_specific_copy_from_start:AddressBook)
2026
0
  if (&from == this) return;
2027
0
  Clear();
2028
0
  MergeFrom(from);
2029
0
}
2030
2031
0
bool AddressBook::IsInitialized() const {
2032
0
  if (!::google::protobuf::internal::AllAreInitialized(this->person())) return false;
2033
0
  return true;
2034
0
}
2035
2036
0
void AddressBook::Swap(AddressBook* other) {
2037
0
  if (other == this) return;
2038
0
  InternalSwap(other);
2039
0
}
2040
0
void AddressBook::InternalSwap(AddressBook* other) {
2041
0
  using std::swap;
2042
0
  CastToBase(&person_)->InternalSwap(CastToBase(&other->person_));
2043
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2044
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2045
0
}
2046
2047
0
::google::protobuf::Metadata AddressBook::GetMetadata() const {
2048
0
  protobuf_addressbook1_2eproto::protobuf_AssignDescriptorsOnce();
2049
0
  return ::protobuf_addressbook1_2eproto::file_level_metadata[kIndexInFileMessages];
2050
0
}
2051
2052
2053
// @@protoc_insertion_point(namespace_scope)
2054
namespace google {
2055
namespace protobuf {
2056
0
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Ext* Arena::CreateMaybeMessage< ::Ext >(Arena* arena) {
2057
0
  return Arena::CreateInternal< ::Ext >(arena);
2058
0
}
2059
0
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Content* Arena::CreateMaybeMessage< ::Content >(Arena* arena) {
2060
0
  return Arena::CreateInternal< ::Content >(arena);
2061
0
}
2062
0
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::JsonContextBody* Arena::CreateMaybeMessage< ::JsonContextBody >(Arena* arena) {
2063
0
  return Arena::CreateInternal< ::JsonContextBody >(arena);
2064
0
}
2065
0
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::PersonInfo* Arena::CreateMaybeMessage< ::PersonInfo >(Arena* arena) {
2066
0
  return Arena::CreateInternal< ::PersonInfo >(arena);
2067
0
}
2068
0
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::AddressBook* Arena::CreateMaybeMessage< ::AddressBook >(Arena* arena) {
2069
0
  return Arena::CreateInternal< ::AddressBook >(arena);
2070
0
}
2071
}  // namespace protobuf
2072
}  // namespace google
2073
2074
// @@protoc_insertion_point(global_scope)