Coverage Report

Created: 2025-06-13 06:23

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