Coverage Report

Created: 2025-06-13 06:23

/src/brpc/build/test/addressbook1.pb.h
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: addressbook1.proto
3
4
#ifndef PROTOBUF_INCLUDED_addressbook1_2eproto
5
#define PROTOBUF_INCLUDED_addressbook1_2eproto
6
7
#include <string>
8
9
#include <google/protobuf/stubs/common.h>
10
11
#if GOOGLE_PROTOBUF_VERSION < 3006001
12
#error This file was generated by a newer version of protoc which is
13
#error incompatible with your Protocol Buffer headers.  Please update
14
#error your headers.
15
#endif
16
#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17
#error This file was generated by an older version of protoc which is
18
#error incompatible with your Protocol Buffer headers.  Please
19
#error regenerate this file with a newer version of protoc.
20
#endif
21
22
#include <google/protobuf/io/coded_stream.h>
23
#include <google/protobuf/arena.h>
24
#include <google/protobuf/arenastring.h>
25
#include <google/protobuf/generated_message_table_driven.h>
26
#include <google/protobuf/generated_message_util.h>
27
#include <google/protobuf/inlined_string_field.h>
28
#include <google/protobuf/metadata.h>
29
#include <google/protobuf/message.h>
30
#include <google/protobuf/repeated_field.h>  // IWYU pragma: export
31
#include <google/protobuf/extension_set.h>  // IWYU pragma: export
32
#include <google/protobuf/generated_enum_reflection.h>
33
#include <google/protobuf/unknown_field_set.h>
34
// @@protoc_insertion_point(includes)
35
#define PROTOBUF_INTERNAL_EXPORT_protobuf_addressbook1_2eproto 
36
37
namespace protobuf_addressbook1_2eproto {
38
// Internal implementation detail -- do not use these members.
39
struct TableStruct {
40
  static const ::google::protobuf::internal::ParseTableField entries[];
41
  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
42
  static const ::google::protobuf::internal::ParseTable schema[5];
43
  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
44
  static const ::google::protobuf::internal::SerializationTable serialization_table[];
45
  static const ::google::protobuf::uint32 offsets[];
46
};
47
void AddDescriptors();
48
}  // namespace protobuf_addressbook1_2eproto
49
class AddressBook;
50
class AddressBookDefaultTypeInternal;
51
extern AddressBookDefaultTypeInternal _AddressBook_default_instance_;
52
class Content;
53
class ContentDefaultTypeInternal;
54
extern ContentDefaultTypeInternal _Content_default_instance_;
55
class Ext;
56
class ExtDefaultTypeInternal;
57
extern ExtDefaultTypeInternal _Ext_default_instance_;
58
class JsonContextBody;
59
class JsonContextBodyDefaultTypeInternal;
60
extern JsonContextBodyDefaultTypeInternal _JsonContextBody_default_instance_;
61
class PersonInfo;
62
class PersonInfoDefaultTypeInternal;
63
extern PersonInfoDefaultTypeInternal _PersonInfo_default_instance_;
64
namespace google {
65
namespace protobuf {
66
template<> ::AddressBook* Arena::CreateMaybeMessage<::AddressBook>(Arena*);
67
template<> ::Content* Arena::CreateMaybeMessage<::Content>(Arena*);
68
template<> ::Ext* Arena::CreateMaybeMessage<::Ext>(Arena*);
69
template<> ::JsonContextBody* Arena::CreateMaybeMessage<::JsonContextBody>(Arena*);
70
template<> ::PersonInfo* Arena::CreateMaybeMessage<::PersonInfo>(Arena*);
71
}  // namespace protobuf
72
}  // namespace google
73
74
enum Ext_PhoneType {
75
  Ext_PhoneType_MOBILE = 0,
76
  Ext_PhoneType_HOME = 1,
77
  Ext_PhoneType_WORK = 2
78
};
79
bool Ext_PhoneType_IsValid(int value);
80
const Ext_PhoneType Ext_PhoneType_PhoneType_MIN = Ext_PhoneType_MOBILE;
81
const Ext_PhoneType Ext_PhoneType_PhoneType_MAX = Ext_PhoneType_WORK;
82
const int Ext_PhoneType_PhoneType_ARRAYSIZE = Ext_PhoneType_PhoneType_MAX + 1;
83
84
const ::google::protobuf::EnumDescriptor* Ext_PhoneType_descriptor();
85
0
inline const ::std::string& Ext_PhoneType_Name(Ext_PhoneType value) {
86
0
  return ::google::protobuf::internal::NameOfEnum(
87
0
    Ext_PhoneType_descriptor(), value);
88
0
}
89
inline bool Ext_PhoneType_Parse(
90
0
    const ::std::string& name, Ext_PhoneType* value) {
91
0
  return ::google::protobuf::internal::ParseNamedEnum<Ext_PhoneType>(
92
0
    Ext_PhoneType_descriptor(), name, value);
93
0
}
94
// ===================================================================
95
96
class Ext : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Ext) */ {
97
 public:
98
  Ext();
99
  virtual ~Ext();
100
101
  Ext(const Ext& from);
102
103
0
  inline Ext& operator=(const Ext& from) {
104
0
    CopyFrom(from);
105
0
    return *this;
106
0
  }
107
  #if LANG_CXX11
108
  Ext(Ext&& from) noexcept
109
0
    : Ext() {
110
0
    *this = ::std::move(from);
111
0
  }
112
113
0
  inline Ext& operator=(Ext&& from) noexcept {
114
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
115
0
      if (this != &from) InternalSwap(&from);
116
0
    } else {
117
0
      CopyFrom(from);
118
0
    }
119
0
    return *this;
120
0
  }
121
  #endif
122
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
123
0
    return _internal_metadata_.unknown_fields();
124
0
  }
125
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
126
0
    return _internal_metadata_.mutable_unknown_fields();
127
0
  }
128
129
  static const ::google::protobuf::Descriptor* descriptor();
130
  static const Ext& default_instance();
131
132
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
133
2
  static inline const Ext* internal_default_instance() {
134
2
    return reinterpret_cast<const Ext*>(
135
2
               &_Ext_default_instance_);
136
2
  }
137
  static constexpr int kIndexInFileMessages =
138
    0;
139
140
  void Swap(Ext* other);
141
0
  friend void swap(Ext& a, Ext& b) {
142
0
    a.Swap(&b);
143
0
  }
144
145
  // implements Message ----------------------------------------------
146
147
0
  inline Ext* New() const final {
148
0
    return CreateMaybeMessage<Ext>(NULL);
149
0
  }
150
151
0
  Ext* New(::google::protobuf::Arena* arena) const final {
152
0
    return CreateMaybeMessage<Ext>(arena);
153
0
  }
154
  void CopyFrom(const ::google::protobuf::Message& from) final;
155
  void MergeFrom(const ::google::protobuf::Message& from) final;
156
  void CopyFrom(const Ext& from);
157
  void MergeFrom(const Ext& from);
158
  void Clear() final;
159
  bool IsInitialized() const final;
160
161
  size_t ByteSizeLong() const final;
162
  bool MergePartialFromCodedStream(
163
      ::google::protobuf::io::CodedInputStream* input) final;
164
  void SerializeWithCachedSizes(
165
      ::google::protobuf::io::CodedOutputStream* output) const final;
166
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
167
      bool deterministic, ::google::protobuf::uint8* target) const final;
168
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
169
170
  private:
171
  void SharedCtor();
172
  void SharedDtor();
173
  void SetCachedSize(int size) const final;
174
  void InternalSwap(Ext* other);
175
  private:
176
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
177
0
    return NULL;
178
0
  }
179
0
  inline void* MaybeArenaPtr() const {
180
0
    return NULL;
181
0
  }
182
  public:
183
184
  ::google::protobuf::Metadata GetMetadata() const final;
185
186
  // nested types ----------------------------------------------------
187
188
  typedef Ext_PhoneType PhoneType;
189
  static const PhoneType MOBILE =
190
    Ext_PhoneType_MOBILE;
191
  static const PhoneType HOME =
192
    Ext_PhoneType_HOME;
193
  static const PhoneType WORK =
194
    Ext_PhoneType_WORK;
195
0
  static inline bool PhoneType_IsValid(int value) {
196
0
    return Ext_PhoneType_IsValid(value);
197
0
  }
198
  static const PhoneType PhoneType_MIN =
199
    Ext_PhoneType_PhoneType_MIN;
200
  static const PhoneType PhoneType_MAX =
201
    Ext_PhoneType_PhoneType_MAX;
202
  static const int PhoneType_ARRAYSIZE =
203
    Ext_PhoneType_PhoneType_ARRAYSIZE;
204
  static inline const ::google::protobuf::EnumDescriptor*
205
0
  PhoneType_descriptor() {
206
0
    return Ext_PhoneType_descriptor();
207
0
  }
208
0
  static inline const ::std::string& PhoneType_Name(PhoneType value) {
209
0
    return Ext_PhoneType_Name(value);
210
0
  }
211
  static inline bool PhoneType_Parse(const ::std::string& name,
212
0
      PhoneType* value) {
213
0
    return Ext_PhoneType_Parse(name, value);
214
0
  }
215
216
  // accessors -------------------------------------------------------
217
218
  // required bytes databyte = 3;
219
  bool has_databyte() const;
220
  void clear_databyte();
221
  static const int kDatabyteFieldNumber = 3;
222
  const ::std::string& databyte() const;
223
  void set_databyte(const ::std::string& value);
224
  #if LANG_CXX11
225
  void set_databyte(::std::string&& value);
226
  #endif
227
  void set_databyte(const char* value);
228
  void set_databyte(const void* value, size_t size);
229
  ::std::string* mutable_databyte();
230
  ::std::string* release_databyte();
231
  void set_allocated_databyte(::std::string* databyte);
232
233
  // optional fixed32 age = 2;
234
  bool has_age() const;
235
  void clear_age();
236
  static const int kAgeFieldNumber = 2;
237
  ::google::protobuf::uint32 age() const;
238
  void set_age(::google::protobuf::uint32 value);
239
240
  // optional .Ext.PhoneType enumtype = 4 [default = HOME];
241
  bool has_enumtype() const;
242
  void clear_enumtype();
243
  static const int kEnumtypeFieldNumber = 4;
244
  ::Ext_PhoneType enumtype() const;
245
  void set_enumtype(::Ext_PhoneType value);
246
247
  // @@protoc_insertion_point(class_scope:Ext)
248
 private:
249
  void set_has_age();
250
  void clear_has_age();
251
  void set_has_databyte();
252
  void clear_has_databyte();
253
  void set_has_enumtype();
254
  void clear_has_enumtype();
255
256
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
257
  ::google::protobuf::internal::HasBits<1> _has_bits_;
258
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
259
  ::google::protobuf::internal::ArenaStringPtr databyte_;
260
  ::google::protobuf::uint32 age_;
261
  int enumtype_;
262
  friend struct ::protobuf_addressbook1_2eproto::TableStruct;
263
};
264
// -------------------------------------------------------------------
265
266
class Content : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Content) */ {
267
 public:
268
  Content();
269
  virtual ~Content();
270
271
  Content(const Content& from);
272
273
0
  inline Content& operator=(const Content& from) {
274
0
    CopyFrom(from);
275
0
    return *this;
276
0
  }
277
  #if LANG_CXX11
278
  Content(Content&& from) noexcept
279
0
    : Content() {
280
0
    *this = ::std::move(from);
281
0
  }
282
283
0
  inline Content& operator=(Content&& from) noexcept {
284
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
285
0
      if (this != &from) InternalSwap(&from);
286
0
    } else {
287
0
      CopyFrom(from);
288
0
    }
289
0
    return *this;
290
0
  }
291
  #endif
292
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
293
0
    return _internal_metadata_.unknown_fields();
294
0
  }
295
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
296
0
    return _internal_metadata_.mutable_unknown_fields();
297
0
  }
298
299
  static const ::google::protobuf::Descriptor* descriptor();
300
  static const Content& default_instance();
301
302
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
303
0
  static inline const Content* internal_default_instance() {
304
0
    return reinterpret_cast<const Content*>(
305
0
               &_Content_default_instance_);
306
0
  }
307
  static constexpr int kIndexInFileMessages =
308
    1;
309
310
  void Swap(Content* other);
311
0
  friend void swap(Content& a, Content& b) {
312
0
    a.Swap(&b);
313
0
  }
314
315
  // implements Message ----------------------------------------------
316
317
0
  inline Content* New() const final {
318
0
    return CreateMaybeMessage<Content>(NULL);
319
0
  }
320
321
0
  Content* New(::google::protobuf::Arena* arena) const final {
322
0
    return CreateMaybeMessage<Content>(arena);
323
0
  }
324
  void CopyFrom(const ::google::protobuf::Message& from) final;
325
  void MergeFrom(const ::google::protobuf::Message& from) final;
326
  void CopyFrom(const Content& from);
327
  void MergeFrom(const Content& from);
328
  void Clear() final;
329
  bool IsInitialized() const final;
330
331
  size_t ByteSizeLong() const final;
332
  bool MergePartialFromCodedStream(
333
      ::google::protobuf::io::CodedInputStream* input) final;
334
  void SerializeWithCachedSizes(
335
      ::google::protobuf::io::CodedOutputStream* output) const final;
336
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
337
      bool deterministic, ::google::protobuf::uint8* target) const final;
338
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
339
340
  private:
341
  void SharedCtor();
342
  void SharedDtor();
343
  void SetCachedSize(int size) const final;
344
  void InternalSwap(Content* other);
345
  private:
346
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
347
0
    return NULL;
348
0
  }
349
0
  inline void* MaybeArenaPtr() const {
350
0
    return NULL;
351
0
  }
352
  public:
353
354
  ::google::protobuf::Metadata GetMetadata() const final;
355
356
  // nested types ----------------------------------------------------
357
358
  // accessors -------------------------------------------------------
359
360
  // optional string uid = 1;
361
  bool has_uid() const;
362
  void clear_uid();
363
  static const int kUidFieldNumber = 1;
364
  const ::std::string& uid() const;
365
  void set_uid(const ::std::string& value);
366
  #if LANG_CXX11
367
  void set_uid(::std::string&& value);
368
  #endif
369
  void set_uid(const char* value);
370
  void set_uid(const char* value, size_t size);
371
  ::std::string* mutable_uid();
372
  ::std::string* release_uid();
373
  void set_allocated_uid(::std::string* uid);
374
375
  // optional .Ext ext = 17;
376
  bool has_ext() const;
377
  void clear_ext();
378
  static const int kExtFieldNumber = 17;
379
  private:
380
  const ::Ext& _internal_ext() const;
381
  public:
382
  const ::Ext& ext() const;
383
  ::Ext* release_ext();
384
  ::Ext* mutable_ext();
385
  void set_allocated_ext(::Ext* ext);
386
387
  // required float distance = 16;
388
  bool has_distance() const;
389
  void clear_distance();
390
  static const int kDistanceFieldNumber = 16;
391
  float distance() const;
392
  void set_distance(float value);
393
394
  // @@protoc_insertion_point(class_scope:Content)
395
 private:
396
  void set_has_uid();
397
  void clear_has_uid();
398
  void set_has_distance();
399
  void clear_has_distance();
400
  void set_has_ext();
401
  void clear_has_ext();
402
403
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
404
  ::google::protobuf::internal::HasBits<1> _has_bits_;
405
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
406
  ::google::protobuf::internal::ArenaStringPtr uid_;
407
  ::Ext* ext_;
408
  float distance_;
409
  friend struct ::protobuf_addressbook1_2eproto::TableStruct;
410
};
411
// -------------------------------------------------------------------
412
413
class JsonContextBody : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:JsonContextBody) */ {
414
 public:
415
  JsonContextBody();
416
  virtual ~JsonContextBody();
417
418
  JsonContextBody(const JsonContextBody& from);
419
420
0
  inline JsonContextBody& operator=(const JsonContextBody& from) {
421
0
    CopyFrom(from);
422
0
    return *this;
423
0
  }
424
  #if LANG_CXX11
425
  JsonContextBody(JsonContextBody&& from) noexcept
426
0
    : JsonContextBody() {
427
0
    *this = ::std::move(from);
428
0
  }
429
430
0
  inline JsonContextBody& operator=(JsonContextBody&& from) noexcept {
431
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
432
0
      if (this != &from) InternalSwap(&from);
433
0
    } else {
434
0
      CopyFrom(from);
435
0
    }
436
0
    return *this;
437
0
  }
438
  #endif
439
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
440
0
    return _internal_metadata_.unknown_fields();
441
0
  }
442
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
443
0
    return _internal_metadata_.mutable_unknown_fields();
444
0
  }
445
446
  static const ::google::protobuf::Descriptor* descriptor();
447
  static const JsonContextBody& default_instance();
448
449
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
450
2
  static inline const JsonContextBody* internal_default_instance() {
451
2
    return reinterpret_cast<const JsonContextBody*>(
452
2
               &_JsonContextBody_default_instance_);
453
2
  }
454
  static constexpr int kIndexInFileMessages =
455
    2;
456
457
  void Swap(JsonContextBody* other);
458
0
  friend void swap(JsonContextBody& a, JsonContextBody& b) {
459
0
    a.Swap(&b);
460
0
  }
461
462
  // implements Message ----------------------------------------------
463
464
0
  inline JsonContextBody* New() const final {
465
0
    return CreateMaybeMessage<JsonContextBody>(NULL);
466
0
  }
467
468
0
  JsonContextBody* New(::google::protobuf::Arena* arena) const final {
469
0
    return CreateMaybeMessage<JsonContextBody>(arena);
470
0
  }
471
  void CopyFrom(const ::google::protobuf::Message& from) final;
472
  void MergeFrom(const ::google::protobuf::Message& from) final;
473
  void CopyFrom(const JsonContextBody& from);
474
  void MergeFrom(const JsonContextBody& from);
475
  void Clear() final;
476
  bool IsInitialized() const final;
477
478
  size_t ByteSizeLong() const final;
479
  bool MergePartialFromCodedStream(
480
      ::google::protobuf::io::CodedInputStream* input) final;
481
  void SerializeWithCachedSizes(
482
      ::google::protobuf::io::CodedOutputStream* output) const final;
483
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
484
      bool deterministic, ::google::protobuf::uint8* target) const final;
485
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
486
487
  private:
488
  void SharedCtor();
489
  void SharedDtor();
490
  void SetCachedSize(int size) const final;
491
  void InternalSwap(JsonContextBody* other);
492
  private:
493
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
494
0
    return NULL;
495
0
  }
496
0
  inline void* MaybeArenaPtr() const {
497
0
    return NULL;
498
0
  }
499
  public:
500
501
  ::google::protobuf::Metadata GetMetadata() const final;
502
503
  // nested types ----------------------------------------------------
504
505
  // accessors -------------------------------------------------------
506
507
  // repeated .Content content = 4;
508
  int content_size() const;
509
  void clear_content();
510
  static const int kContentFieldNumber = 4;
511
  ::Content* mutable_content(int index);
512
  ::google::protobuf::RepeatedPtrField< ::Content >*
513
      mutable_content();
514
  const ::Content& content(int index) const;
515
  ::Content* add_content();
516
  const ::google::protobuf::RepeatedPtrField< ::Content >&
517
      content() const;
518
519
  // repeated int32 data = 5;
520
  int data_size() const;
521
  void clear_data();
522
  static const int kDataFieldNumber = 5;
523
  ::google::protobuf::int32 data(int index) const;
524
  void set_data(int index, ::google::protobuf::int32 value);
525
  void add_data(::google::protobuf::int32 value);
526
  const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
527
      data() const;
528
  ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
529
      mutable_data();
530
531
  // repeated string info = 6;
532
  int info_size() const;
533
  void clear_info();
534
  static const int kInfoFieldNumber = 6;
535
  const ::std::string& info(int index) const;
536
  ::std::string* mutable_info(int index);
537
  void set_info(int index, const ::std::string& value);
538
  #if LANG_CXX11
539
  void set_info(int index, ::std::string&& value);
540
  #endif
541
  void set_info(int index, const char* value);
542
  void set_info(int index, const char* value, size_t size);
543
  ::std::string* add_info();
544
  void add_info(const ::std::string& value);
545
  #if LANG_CXX11
546
  void add_info(::std::string&& value);
547
  #endif
548
  void add_info(const char* value);
549
  void add_info(const char* value, size_t size);
550
  const ::google::protobuf::RepeatedPtrField< ::std::string>& info() const;
551
  ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_info();
552
553
  // optional int64 type = 1;
554
  bool has_type() const;
555
  void clear_type();
556
  static const int kTypeFieldNumber = 1;
557
  ::google::protobuf::int64 type() const;
558
  void set_type(::google::protobuf::int64 value);
559
560
  // required double spur = 3;
561
  bool has_spur() const;
562
  void clear_spur();
563
  static const int kSpurFieldNumber = 3;
564
  double spur() const;
565
  void set_spur(double value);
566
567
  // required bool judge = 2;
568
  bool has_judge() const;
569
  void clear_judge();
570
  static const int kJudgeFieldNumber = 2;
571
  bool judge() const;
572
  void set_judge(bool value);
573
574
  // optional float text = 7;
575
  bool has_text() const;
576
  void clear_text();
577
  static const int kTextFieldNumber = 7;
578
  float text() const;
579
  void set_text(float value);
580
581
  // @@protoc_insertion_point(class_scope:JsonContextBody)
582
 private:
583
  void set_has_type();
584
  void clear_has_type();
585
  void set_has_judge();
586
  void clear_has_judge();
587
  void set_has_spur();
588
  void clear_has_spur();
589
  void set_has_text();
590
  void clear_has_text();
591
592
  // helper for ByteSizeLong()
593
  size_t RequiredFieldsByteSizeFallback() const;
594
595
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
596
  ::google::protobuf::internal::HasBits<1> _has_bits_;
597
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
598
  ::google::protobuf::RepeatedPtrField< ::Content > content_;
599
  ::google::protobuf::RepeatedField< ::google::protobuf::int32 > data_;
600
  ::google::protobuf::RepeatedPtrField< ::std::string> info_;
601
  ::google::protobuf::int64 type_;
602
  double spur_;
603
  bool judge_;
604
  float text_;
605
  friend struct ::protobuf_addressbook1_2eproto::TableStruct;
606
};
607
// -------------------------------------------------------------------
608
609
class PersonInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:PersonInfo) */ {
610
 public:
611
  PersonInfo();
612
  virtual ~PersonInfo();
613
614
  PersonInfo(const PersonInfo& from);
615
616
0
  inline PersonInfo& operator=(const PersonInfo& from) {
617
0
    CopyFrom(from);
618
0
    return *this;
619
0
  }
620
  #if LANG_CXX11
621
  PersonInfo(PersonInfo&& from) noexcept
622
0
    : PersonInfo() {
623
0
    *this = ::std::move(from);
624
0
  }
625
626
0
  inline PersonInfo& operator=(PersonInfo&& from) noexcept {
627
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
628
0
      if (this != &from) InternalSwap(&from);
629
0
    } else {
630
0
      CopyFrom(from);
631
0
    }
632
0
    return *this;
633
0
  }
634
  #endif
635
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
636
0
    return _internal_metadata_.unknown_fields();
637
0
  }
638
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
639
0
    return _internal_metadata_.mutable_unknown_fields();
640
0
  }
641
642
  static const ::google::protobuf::Descriptor* descriptor();
643
  static const PersonInfo& default_instance();
644
645
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
646
0
  static inline const PersonInfo* internal_default_instance() {
647
0
    return reinterpret_cast<const PersonInfo*>(
648
0
               &_PersonInfo_default_instance_);
649
0
  }
650
  static constexpr int kIndexInFileMessages =
651
    3;
652
653
  void Swap(PersonInfo* other);
654
0
  friend void swap(PersonInfo& a, PersonInfo& b) {
655
0
    a.Swap(&b);
656
0
  }
657
658
  // implements Message ----------------------------------------------
659
660
0
  inline PersonInfo* New() const final {
661
0
    return CreateMaybeMessage<PersonInfo>(NULL);
662
0
  }
663
664
0
  PersonInfo* New(::google::protobuf::Arena* arena) const final {
665
0
    return CreateMaybeMessage<PersonInfo>(arena);
666
0
  }
667
  void CopyFrom(const ::google::protobuf::Message& from) final;
668
  void MergeFrom(const ::google::protobuf::Message& from) final;
669
  void CopyFrom(const PersonInfo& from);
670
  void MergeFrom(const PersonInfo& from);
671
  void Clear() final;
672
  bool IsInitialized() const final;
673
674
  size_t ByteSizeLong() const final;
675
  bool MergePartialFromCodedStream(
676
      ::google::protobuf::io::CodedInputStream* input) final;
677
  void SerializeWithCachedSizes(
678
      ::google::protobuf::io::CodedOutputStream* output) const final;
679
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
680
      bool deterministic, ::google::protobuf::uint8* target) const final;
681
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
682
683
  private:
684
  void SharedCtor();
685
  void SharedDtor();
686
  void SetCachedSize(int size) const final;
687
  void InternalSwap(PersonInfo* other);
688
  private:
689
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
690
0
    return NULL;
691
0
  }
692
0
  inline void* MaybeArenaPtr() const {
693
0
    return NULL;
694
0
  }
695
  public:
696
697
  ::google::protobuf::Metadata GetMetadata() const final;
698
699
  // nested types ----------------------------------------------------
700
701
  // accessors -------------------------------------------------------
702
703
  // optional string name = 1;
704
  bool has_name() const;
705
  void clear_name();
706
  static const int kNameFieldNumber = 1;
707
  const ::std::string& name() const;
708
  void set_name(const ::std::string& value);
709
  #if LANG_CXX11
710
  void set_name(::std::string&& value);
711
  #endif
712
  void set_name(const char* value);
713
  void set_name(const char* value, size_t size);
714
  ::std::string* mutable_name();
715
  ::std::string* release_name();
716
  void set_allocated_name(::std::string* name);
717
718
  // optional .JsonContextBody json_body = 18;
719
  bool has_json_body() const;
720
  void clear_json_body();
721
  static const int kJsonBodyFieldNumber = 18;
722
  private:
723
  const ::JsonContextBody& _internal_json_body() const;
724
  public:
725
  const ::JsonContextBody& json_body() const;
726
  ::JsonContextBody* release_json_body();
727
  ::JsonContextBody* mutable_json_body();
728
  void set_allocated_json_body(::JsonContextBody* json_body);
729
730
  // optional int32 id = 2;
731
  bool has_id() const;
732
  void clear_id();
733
  static const int kIdFieldNumber = 2;
734
  ::google::protobuf::int32 id() const;
735
  void set_id(::google::protobuf::int32 value);
736
737
  // @@protoc_insertion_point(class_scope:PersonInfo)
738
 private:
739
  void set_has_name();
740
  void clear_has_name();
741
  void set_has_id();
742
  void clear_has_id();
743
  void set_has_json_body();
744
  void clear_has_json_body();
745
746
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
747
  ::google::protobuf::internal::HasBits<1> _has_bits_;
748
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
749
  ::google::protobuf::internal::ArenaStringPtr name_;
750
  ::JsonContextBody* json_body_;
751
  ::google::protobuf::int32 id_;
752
  friend struct ::protobuf_addressbook1_2eproto::TableStruct;
753
};
754
// -------------------------------------------------------------------
755
756
class AddressBook : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:AddressBook) */ {
757
 public:
758
  AddressBook();
759
  virtual ~AddressBook();
760
761
  AddressBook(const AddressBook& from);
762
763
0
  inline AddressBook& operator=(const AddressBook& from) {
764
0
    CopyFrom(from);
765
0
    return *this;
766
0
  }
767
  #if LANG_CXX11
768
  AddressBook(AddressBook&& from) noexcept
769
0
    : AddressBook() {
770
0
    *this = ::std::move(from);
771
0
  }
772
773
0
  inline AddressBook& operator=(AddressBook&& from) noexcept {
774
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
775
0
      if (this != &from) InternalSwap(&from);
776
0
    } else {
777
0
      CopyFrom(from);
778
0
    }
779
0
    return *this;
780
0
  }
781
  #endif
782
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
783
0
    return _internal_metadata_.unknown_fields();
784
0
  }
785
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
786
0
    return _internal_metadata_.mutable_unknown_fields();
787
0
  }
788
789
  static const ::google::protobuf::Descriptor* descriptor();
790
  static const AddressBook& default_instance();
791
792
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
793
0
  static inline const AddressBook* internal_default_instance() {
794
0
    return reinterpret_cast<const AddressBook*>(
795
0
               &_AddressBook_default_instance_);
796
0
  }
797
  static constexpr int kIndexInFileMessages =
798
    4;
799
800
  void Swap(AddressBook* other);
801
0
  friend void swap(AddressBook& a, AddressBook& b) {
802
0
    a.Swap(&b);
803
0
  }
804
805
  // implements Message ----------------------------------------------
806
807
0
  inline AddressBook* New() const final {
808
0
    return CreateMaybeMessage<AddressBook>(NULL);
809
0
  }
810
811
0
  AddressBook* New(::google::protobuf::Arena* arena) const final {
812
0
    return CreateMaybeMessage<AddressBook>(arena);
813
0
  }
814
  void CopyFrom(const ::google::protobuf::Message& from) final;
815
  void MergeFrom(const ::google::protobuf::Message& from) final;
816
  void CopyFrom(const AddressBook& from);
817
  void MergeFrom(const AddressBook& from);
818
  void Clear() final;
819
  bool IsInitialized() const final;
820
821
  size_t ByteSizeLong() const final;
822
  bool MergePartialFromCodedStream(
823
      ::google::protobuf::io::CodedInputStream* input) final;
824
  void SerializeWithCachedSizes(
825
      ::google::protobuf::io::CodedOutputStream* output) const final;
826
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
827
      bool deterministic, ::google::protobuf::uint8* target) const final;
828
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
829
830
  private:
831
  void SharedCtor();
832
  void SharedDtor();
833
  void SetCachedSize(int size) const final;
834
  void InternalSwap(AddressBook* other);
835
  private:
836
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
837
0
    return NULL;
838
0
  }
839
0
  inline void* MaybeArenaPtr() const {
840
0
    return NULL;
841
0
  }
842
  public:
843
844
  ::google::protobuf::Metadata GetMetadata() const final;
845
846
  // nested types ----------------------------------------------------
847
848
  // accessors -------------------------------------------------------
849
850
  // repeated .PersonInfo person = 1;
851
  int person_size() const;
852
  void clear_person();
853
  static const int kPersonFieldNumber = 1;
854
  ::PersonInfo* mutable_person(int index);
855
  ::google::protobuf::RepeatedPtrField< ::PersonInfo >*
856
      mutable_person();
857
  const ::PersonInfo& person(int index) const;
858
  ::PersonInfo* add_person();
859
  const ::google::protobuf::RepeatedPtrField< ::PersonInfo >&
860
      person() const;
861
862
  // @@protoc_insertion_point(class_scope:AddressBook)
863
 private:
864
865
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
866
  ::google::protobuf::internal::HasBits<1> _has_bits_;
867
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
868
  ::google::protobuf::RepeatedPtrField< ::PersonInfo > person_;
869
  friend struct ::protobuf_addressbook1_2eproto::TableStruct;
870
};
871
// ===================================================================
872
873
874
// ===================================================================
875
876
#ifdef __GNUC__
877
  #pragma GCC diagnostic push
878
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
879
#endif  // __GNUC__
880
// Ext
881
882
// optional fixed32 age = 2;
883
0
inline bool Ext::has_age() const {
884
0
  return (_has_bits_[0] & 0x00000002u) != 0;
885
0
}
886
0
inline void Ext::set_has_age() {
887
0
  _has_bits_[0] |= 0x00000002u;
888
0
}
889
0
inline void Ext::clear_has_age() {
890
0
  _has_bits_[0] &= ~0x00000002u;
891
0
}
892
0
inline void Ext::clear_age() {
893
0
  age_ = 0u;
894
0
  clear_has_age();
895
0
}
896
0
inline ::google::protobuf::uint32 Ext::age() const {
897
  // @@protoc_insertion_point(field_get:Ext.age)
898
0
  return age_;
899
0
}
900
0
inline void Ext::set_age(::google::protobuf::uint32 value) {
901
0
  set_has_age();
902
0
  age_ = value;
903
0
  // @@protoc_insertion_point(field_set:Ext.age)
904
0
}
905
906
// required bytes databyte = 3;
907
0
inline bool Ext::has_databyte() const {
908
0
  return (_has_bits_[0] & 0x00000001u) != 0;
909
0
}
910
0
inline void Ext::set_has_databyte() {
911
0
  _has_bits_[0] |= 0x00000001u;
912
0
}
913
0
inline void Ext::clear_has_databyte() {
914
0
  _has_bits_[0] &= ~0x00000001u;
915
0
}
916
0
inline void Ext::clear_databyte() {
917
0
  databyte_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
918
0
  clear_has_databyte();
919
0
}
920
0
inline const ::std::string& Ext::databyte() const {
921
  // @@protoc_insertion_point(field_get:Ext.databyte)
922
0
  return databyte_.GetNoArena();
923
0
}
924
0
inline void Ext::set_databyte(const ::std::string& value) {
925
0
  set_has_databyte();
926
0
  databyte_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
927
0
  // @@protoc_insertion_point(field_set:Ext.databyte)
928
0
}
929
#if LANG_CXX11
930
0
inline void Ext::set_databyte(::std::string&& value) {
931
0
  set_has_databyte();
932
0
  databyte_.SetNoArena(
933
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
934
0
  // @@protoc_insertion_point(field_set_rvalue:Ext.databyte)
935
0
}
936
#endif
937
0
inline void Ext::set_databyte(const char* value) {
938
0
  GOOGLE_DCHECK(value != NULL);
939
0
  set_has_databyte();
940
0
  databyte_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
941
0
  // @@protoc_insertion_point(field_set_char:Ext.databyte)
942
0
}
943
0
inline void Ext::set_databyte(const void* value, size_t size) {
944
0
  set_has_databyte();
945
0
  databyte_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
946
0
      ::std::string(reinterpret_cast<const char*>(value), size));
947
0
  // @@protoc_insertion_point(field_set_pointer:Ext.databyte)
948
0
}
949
0
inline ::std::string* Ext::mutable_databyte() {
950
0
  set_has_databyte();
951
  // @@protoc_insertion_point(field_mutable:Ext.databyte)
952
0
  return databyte_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
953
0
}
954
0
inline ::std::string* Ext::release_databyte() {
955
0
  // @@protoc_insertion_point(field_release:Ext.databyte)
956
0
  if (!has_databyte()) {
957
0
    return NULL;
958
0
  }
959
0
  clear_has_databyte();
960
0
  return databyte_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
961
0
}
962
0
inline void Ext::set_allocated_databyte(::std::string* databyte) {
963
0
  if (databyte != NULL) {
964
0
    set_has_databyte();
965
0
  } else {
966
0
    clear_has_databyte();
967
0
  }
968
0
  databyte_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), databyte);
969
0
  // @@protoc_insertion_point(field_set_allocated:Ext.databyte)
970
0
}
971
972
// optional .Ext.PhoneType enumtype = 4 [default = HOME];
973
0
inline bool Ext::has_enumtype() const {
974
0
  return (_has_bits_[0] & 0x00000004u) != 0;
975
0
}
976
0
inline void Ext::set_has_enumtype() {
977
0
  _has_bits_[0] |= 0x00000004u;
978
0
}
979
0
inline void Ext::clear_has_enumtype() {
980
0
  _has_bits_[0] &= ~0x00000004u;
981
0
}
982
0
inline void Ext::clear_enumtype() {
983
0
  enumtype_ = 1;
984
0
  clear_has_enumtype();
985
0
}
986
0
inline ::Ext_PhoneType Ext::enumtype() const {
987
  // @@protoc_insertion_point(field_get:Ext.enumtype)
988
0
  return static_cast< ::Ext_PhoneType >(enumtype_);
989
0
}
990
0
inline void Ext::set_enumtype(::Ext_PhoneType value) {
991
0
  assert(::Ext_PhoneType_IsValid(value));
992
0
  set_has_enumtype();
993
0
  enumtype_ = value;
994
  // @@protoc_insertion_point(field_set:Ext.enumtype)
995
0
}
996
997
// -------------------------------------------------------------------
998
999
// Content
1000
1001
// optional string uid = 1;
1002
0
inline bool Content::has_uid() const {
1003
0
  return (_has_bits_[0] & 0x00000001u) != 0;
1004
0
}
1005
0
inline void Content::set_has_uid() {
1006
0
  _has_bits_[0] |= 0x00000001u;
1007
0
}
1008
0
inline void Content::clear_has_uid() {
1009
0
  _has_bits_[0] &= ~0x00000001u;
1010
0
}
1011
0
inline void Content::clear_uid() {
1012
0
  uid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1013
0
  clear_has_uid();
1014
0
}
1015
0
inline const ::std::string& Content::uid() const {
1016
  // @@protoc_insertion_point(field_get:Content.uid)
1017
0
  return uid_.GetNoArena();
1018
0
}
1019
0
inline void Content::set_uid(const ::std::string& value) {
1020
0
  set_has_uid();
1021
0
  uid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1022
0
  // @@protoc_insertion_point(field_set:Content.uid)
1023
0
}
1024
#if LANG_CXX11
1025
0
inline void Content::set_uid(::std::string&& value) {
1026
0
  set_has_uid();
1027
0
  uid_.SetNoArena(
1028
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1029
0
  // @@protoc_insertion_point(field_set_rvalue:Content.uid)
1030
0
}
1031
#endif
1032
0
inline void Content::set_uid(const char* value) {
1033
0
  GOOGLE_DCHECK(value != NULL);
1034
0
  set_has_uid();
1035
0
  uid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1036
0
  // @@protoc_insertion_point(field_set_char:Content.uid)
1037
0
}
1038
0
inline void Content::set_uid(const char* value, size_t size) {
1039
0
  set_has_uid();
1040
0
  uid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1041
0
      ::std::string(reinterpret_cast<const char*>(value), size));
1042
0
  // @@protoc_insertion_point(field_set_pointer:Content.uid)
1043
0
}
1044
0
inline ::std::string* Content::mutable_uid() {
1045
0
  set_has_uid();
1046
  // @@protoc_insertion_point(field_mutable:Content.uid)
1047
0
  return uid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1048
0
}
1049
0
inline ::std::string* Content::release_uid() {
1050
0
  // @@protoc_insertion_point(field_release:Content.uid)
1051
0
  if (!has_uid()) {
1052
0
    return NULL;
1053
0
  }
1054
0
  clear_has_uid();
1055
0
  return uid_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1056
0
}
1057
0
inline void Content::set_allocated_uid(::std::string* uid) {
1058
0
  if (uid != NULL) {
1059
0
    set_has_uid();
1060
0
  } else {
1061
0
    clear_has_uid();
1062
0
  }
1063
0
  uid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), uid);
1064
0
  // @@protoc_insertion_point(field_set_allocated:Content.uid)
1065
0
}
1066
1067
// required float distance = 16;
1068
0
inline bool Content::has_distance() const {
1069
0
  return (_has_bits_[0] & 0x00000004u) != 0;
1070
0
}
1071
0
inline void Content::set_has_distance() {
1072
0
  _has_bits_[0] |= 0x00000004u;
1073
0
}
1074
0
inline void Content::clear_has_distance() {
1075
0
  _has_bits_[0] &= ~0x00000004u;
1076
0
}
1077
0
inline void Content::clear_distance() {
1078
0
  distance_ = 0;
1079
0
  clear_has_distance();
1080
0
}
1081
0
inline float Content::distance() const {
1082
  // @@protoc_insertion_point(field_get:Content.distance)
1083
0
  return distance_;
1084
0
}
1085
0
inline void Content::set_distance(float value) {
1086
0
  set_has_distance();
1087
0
  distance_ = value;
1088
0
  // @@protoc_insertion_point(field_set:Content.distance)
1089
0
}
1090
1091
// optional .Ext ext = 17;
1092
0
inline bool Content::has_ext() const {
1093
0
  return (_has_bits_[0] & 0x00000002u) != 0;
1094
0
}
1095
0
inline void Content::set_has_ext() {
1096
0
  _has_bits_[0] |= 0x00000002u;
1097
0
}
1098
0
inline void Content::clear_has_ext() {
1099
0
  _has_bits_[0] &= ~0x00000002u;
1100
0
}
1101
0
inline void Content::clear_ext() {
1102
0
  if (ext_ != NULL) ext_->Clear();
1103
0
  clear_has_ext();
1104
0
}
1105
0
inline const ::Ext& Content::_internal_ext() const {
1106
0
  return *ext_;
1107
0
}
1108
0
inline const ::Ext& Content::ext() const {
1109
0
  const ::Ext* p = ext_;
1110
  // @@protoc_insertion_point(field_get:Content.ext)
1111
0
  return p != NULL ? *p : *reinterpret_cast<const ::Ext*>(
1112
0
      &::_Ext_default_instance_);
1113
0
}
1114
0
inline ::Ext* Content::release_ext() {
1115
0
  // @@protoc_insertion_point(field_release:Content.ext)
1116
0
  clear_has_ext();
1117
0
  ::Ext* temp = ext_;
1118
0
  ext_ = NULL;
1119
0
  return temp;
1120
0
}
1121
0
inline ::Ext* Content::mutable_ext() {
1122
0
  set_has_ext();
1123
0
  if (ext_ == NULL) {
1124
0
    auto* p = CreateMaybeMessage<::Ext>(GetArenaNoVirtual());
1125
0
    ext_ = p;
1126
0
  }
1127
  // @@protoc_insertion_point(field_mutable:Content.ext)
1128
0
  return ext_;
1129
0
}
1130
0
inline void Content::set_allocated_ext(::Ext* ext) {
1131
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1132
0
  if (message_arena == NULL) {
1133
0
    delete ext_;
1134
0
  }
1135
0
  if (ext) {
1136
0
    ::google::protobuf::Arena* submessage_arena = NULL;
1137
0
    if (message_arena != submessage_arena) {
1138
0
      ext = ::google::protobuf::internal::GetOwnedMessage(
1139
0
          message_arena, ext, submessage_arena);
1140
0
    }
1141
0
    set_has_ext();
1142
0
  } else {
1143
0
    clear_has_ext();
1144
0
  }
1145
0
  ext_ = ext;
1146
0
  // @@protoc_insertion_point(field_set_allocated:Content.ext)
1147
0
}
1148
1149
// -------------------------------------------------------------------
1150
1151
// JsonContextBody
1152
1153
// optional int64 type = 1;
1154
0
inline bool JsonContextBody::has_type() const {
1155
0
  return (_has_bits_[0] & 0x00000001u) != 0;
1156
0
}
1157
0
inline void JsonContextBody::set_has_type() {
1158
0
  _has_bits_[0] |= 0x00000001u;
1159
0
}
1160
0
inline void JsonContextBody::clear_has_type() {
1161
0
  _has_bits_[0] &= ~0x00000001u;
1162
0
}
1163
0
inline void JsonContextBody::clear_type() {
1164
0
  type_ = GOOGLE_LONGLONG(0);
1165
0
  clear_has_type();
1166
0
}
1167
0
inline ::google::protobuf::int64 JsonContextBody::type() const {
1168
  // @@protoc_insertion_point(field_get:JsonContextBody.type)
1169
0
  return type_;
1170
0
}
1171
0
inline void JsonContextBody::set_type(::google::protobuf::int64 value) {
1172
0
  set_has_type();
1173
0
  type_ = value;
1174
0
  // @@protoc_insertion_point(field_set:JsonContextBody.type)
1175
0
}
1176
1177
// repeated int32 data = 5;
1178
0
inline int JsonContextBody::data_size() const {
1179
0
  return data_.size();
1180
0
}
1181
0
inline void JsonContextBody::clear_data() {
1182
0
  data_.Clear();
1183
0
}
1184
0
inline ::google::protobuf::int32 JsonContextBody::data(int index) const {
1185
  // @@protoc_insertion_point(field_get:JsonContextBody.data)
1186
0
  return data_.Get(index);
1187
0
}
1188
0
inline void JsonContextBody::set_data(int index, ::google::protobuf::int32 value) {
1189
0
  data_.Set(index, value);
1190
0
  // @@protoc_insertion_point(field_set:JsonContextBody.data)
1191
0
}
1192
0
inline void JsonContextBody::add_data(::google::protobuf::int32 value) {
1193
0
  data_.Add(value);
1194
0
  // @@protoc_insertion_point(field_add:JsonContextBody.data)
1195
0
}
1196
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
1197
0
JsonContextBody::data() const {
1198
0
  // @@protoc_insertion_point(field_list:JsonContextBody.data)
1199
0
  return data_;
1200
0
}
1201
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
1202
0
JsonContextBody::mutable_data() {
1203
  // @@protoc_insertion_point(field_mutable_list:JsonContextBody.data)
1204
0
  return &data_;
1205
0
}
1206
1207
// repeated string info = 6;
1208
0
inline int JsonContextBody::info_size() const {
1209
0
  return info_.size();
1210
0
}
1211
0
inline void JsonContextBody::clear_info() {
1212
0
  info_.Clear();
1213
0
}
1214
0
inline const ::std::string& JsonContextBody::info(int index) const {
1215
  // @@protoc_insertion_point(field_get:JsonContextBody.info)
1216
0
  return info_.Get(index);
1217
0
}
1218
0
inline ::std::string* JsonContextBody::mutable_info(int index) {
1219
0
  // @@protoc_insertion_point(field_mutable:JsonContextBody.info)
1220
0
  return info_.Mutable(index);
1221
0
}
1222
0
inline void JsonContextBody::set_info(int index, const ::std::string& value) {
1223
0
  // @@protoc_insertion_point(field_set:JsonContextBody.info)
1224
0
  info_.Mutable(index)->assign(value);
1225
0
}
1226
#if LANG_CXX11
1227
0
inline void JsonContextBody::set_info(int index, ::std::string&& value) {
1228
0
  // @@protoc_insertion_point(field_set:JsonContextBody.info)
1229
0
  info_.Mutable(index)->assign(std::move(value));
1230
0
}
1231
#endif
1232
0
inline void JsonContextBody::set_info(int index, const char* value) {
1233
0
  GOOGLE_DCHECK(value != NULL);
1234
0
  info_.Mutable(index)->assign(value);
1235
0
  // @@protoc_insertion_point(field_set_char:JsonContextBody.info)
1236
0
}
1237
0
inline void JsonContextBody::set_info(int index, const char* value, size_t size) {
1238
0
  info_.Mutable(index)->assign(
1239
0
    reinterpret_cast<const char*>(value), size);
1240
0
  // @@protoc_insertion_point(field_set_pointer:JsonContextBody.info)
1241
0
}
1242
0
inline ::std::string* JsonContextBody::add_info() {
1243
  // @@protoc_insertion_point(field_add_mutable:JsonContextBody.info)
1244
0
  return info_.Add();
1245
0
}
1246
0
inline void JsonContextBody::add_info(const ::std::string& value) {
1247
0
  info_.Add()->assign(value);
1248
0
  // @@protoc_insertion_point(field_add:JsonContextBody.info)
1249
0
}
1250
#if LANG_CXX11
1251
0
inline void JsonContextBody::add_info(::std::string&& value) {
1252
0
  info_.Add(std::move(value));
1253
0
  // @@protoc_insertion_point(field_add:JsonContextBody.info)
1254
0
}
1255
#endif
1256
0
inline void JsonContextBody::add_info(const char* value) {
1257
0
  GOOGLE_DCHECK(value != NULL);
1258
0
  info_.Add()->assign(value);
1259
0
  // @@protoc_insertion_point(field_add_char:JsonContextBody.info)
1260
0
}
1261
0
inline void JsonContextBody::add_info(const char* value, size_t size) {
1262
0
  info_.Add()->assign(reinterpret_cast<const char*>(value), size);
1263
0
  // @@protoc_insertion_point(field_add_pointer:JsonContextBody.info)
1264
0
}
1265
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
1266
0
JsonContextBody::info() const {
1267
0
  // @@protoc_insertion_point(field_list:JsonContextBody.info)
1268
0
  return info_;
1269
0
}
1270
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
1271
0
JsonContextBody::mutable_info() {
1272
0
  // @@protoc_insertion_point(field_mutable_list:JsonContextBody.info)
1273
0
  return &info_;
1274
0
}
1275
1276
// required bool judge = 2;
1277
0
inline bool JsonContextBody::has_judge() const {
1278
0
  return (_has_bits_[0] & 0x00000004u) != 0;
1279
0
}
1280
0
inline void JsonContextBody::set_has_judge() {
1281
0
  _has_bits_[0] |= 0x00000004u;
1282
0
}
1283
0
inline void JsonContextBody::clear_has_judge() {
1284
0
  _has_bits_[0] &= ~0x00000004u;
1285
0
}
1286
0
inline void JsonContextBody::clear_judge() {
1287
0
  judge_ = false;
1288
0
  clear_has_judge();
1289
0
}
1290
0
inline bool JsonContextBody::judge() const {
1291
  // @@protoc_insertion_point(field_get:JsonContextBody.judge)
1292
0
  return judge_;
1293
0
}
1294
0
inline void JsonContextBody::set_judge(bool value) {
1295
0
  set_has_judge();
1296
0
  judge_ = value;
1297
0
  // @@protoc_insertion_point(field_set:JsonContextBody.judge)
1298
0
}
1299
1300
// required double spur = 3;
1301
0
inline bool JsonContextBody::has_spur() const {
1302
0
  return (_has_bits_[0] & 0x00000002u) != 0;
1303
0
}
1304
0
inline void JsonContextBody::set_has_spur() {
1305
0
  _has_bits_[0] |= 0x00000002u;
1306
0
}
1307
0
inline void JsonContextBody::clear_has_spur() {
1308
0
  _has_bits_[0] &= ~0x00000002u;
1309
0
}
1310
0
inline void JsonContextBody::clear_spur() {
1311
0
  spur_ = 0;
1312
0
  clear_has_spur();
1313
0
}
1314
0
inline double JsonContextBody::spur() const {
1315
  // @@protoc_insertion_point(field_get:JsonContextBody.spur)
1316
0
  return spur_;
1317
0
}
1318
0
inline void JsonContextBody::set_spur(double value) {
1319
0
  set_has_spur();
1320
0
  spur_ = value;
1321
0
  // @@protoc_insertion_point(field_set:JsonContextBody.spur)
1322
0
}
1323
1324
// repeated .Content content = 4;
1325
0
inline int JsonContextBody::content_size() const {
1326
0
  return content_.size();
1327
0
}
1328
0
inline void JsonContextBody::clear_content() {
1329
0
  content_.Clear();
1330
0
}
1331
0
inline ::Content* JsonContextBody::mutable_content(int index) {
1332
0
  // @@protoc_insertion_point(field_mutable:JsonContextBody.content)
1333
0
  return content_.Mutable(index);
1334
0
}
1335
inline ::google::protobuf::RepeatedPtrField< ::Content >*
1336
0
JsonContextBody::mutable_content() {
1337
0
  // @@protoc_insertion_point(field_mutable_list:JsonContextBody.content)
1338
0
  return &content_;
1339
0
}
1340
0
inline const ::Content& JsonContextBody::content(int index) const {
1341
  // @@protoc_insertion_point(field_get:JsonContextBody.content)
1342
0
  return content_.Get(index);
1343
0
}
1344
0
inline ::Content* JsonContextBody::add_content() {
1345
  // @@protoc_insertion_point(field_add:JsonContextBody.content)
1346
0
  return content_.Add();
1347
0
}
1348
inline const ::google::protobuf::RepeatedPtrField< ::Content >&
1349
0
JsonContextBody::content() const {
1350
  // @@protoc_insertion_point(field_list:JsonContextBody.content)
1351
0
  return content_;
1352
0
}
1353
1354
// optional float text = 7;
1355
0
inline bool JsonContextBody::has_text() const {
1356
0
  return (_has_bits_[0] & 0x00000008u) != 0;
1357
0
}
1358
0
inline void JsonContextBody::set_has_text() {
1359
0
  _has_bits_[0] |= 0x00000008u;
1360
0
}
1361
0
inline void JsonContextBody::clear_has_text() {
1362
0
  _has_bits_[0] &= ~0x00000008u;
1363
0
}
1364
0
inline void JsonContextBody::clear_text() {
1365
0
  text_ = 0;
1366
0
  clear_has_text();
1367
0
}
1368
0
inline float JsonContextBody::text() const {
1369
  // @@protoc_insertion_point(field_get:JsonContextBody.text)
1370
0
  return text_;
1371
0
}
1372
0
inline void JsonContextBody::set_text(float value) {
1373
0
  set_has_text();
1374
0
  text_ = value;
1375
0
  // @@protoc_insertion_point(field_set:JsonContextBody.text)
1376
0
}
1377
1378
// -------------------------------------------------------------------
1379
1380
// PersonInfo
1381
1382
// optional string name = 1;
1383
0
inline bool PersonInfo::has_name() const {
1384
0
  return (_has_bits_[0] & 0x00000001u) != 0;
1385
0
}
1386
0
inline void PersonInfo::set_has_name() {
1387
0
  _has_bits_[0] |= 0x00000001u;
1388
0
}
1389
0
inline void PersonInfo::clear_has_name() {
1390
0
  _has_bits_[0] &= ~0x00000001u;
1391
0
}
1392
0
inline void PersonInfo::clear_name() {
1393
0
  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1394
0
  clear_has_name();
1395
0
}
1396
0
inline const ::std::string& PersonInfo::name() const {
1397
  // @@protoc_insertion_point(field_get:PersonInfo.name)
1398
0
  return name_.GetNoArena();
1399
0
}
1400
0
inline void PersonInfo::set_name(const ::std::string& value) {
1401
0
  set_has_name();
1402
0
  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1403
0
  // @@protoc_insertion_point(field_set:PersonInfo.name)
1404
0
}
1405
#if LANG_CXX11
1406
0
inline void PersonInfo::set_name(::std::string&& value) {
1407
0
  set_has_name();
1408
0
  name_.SetNoArena(
1409
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1410
0
  // @@protoc_insertion_point(field_set_rvalue:PersonInfo.name)
1411
0
}
1412
#endif
1413
0
inline void PersonInfo::set_name(const char* value) {
1414
0
  GOOGLE_DCHECK(value != NULL);
1415
0
  set_has_name();
1416
0
  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1417
0
  // @@protoc_insertion_point(field_set_char:PersonInfo.name)
1418
0
}
1419
0
inline void PersonInfo::set_name(const char* value, size_t size) {
1420
0
  set_has_name();
1421
0
  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1422
0
      ::std::string(reinterpret_cast<const char*>(value), size));
1423
0
  // @@protoc_insertion_point(field_set_pointer:PersonInfo.name)
1424
0
}
1425
0
inline ::std::string* PersonInfo::mutable_name() {
1426
0
  set_has_name();
1427
  // @@protoc_insertion_point(field_mutable:PersonInfo.name)
1428
0
  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1429
0
}
1430
0
inline ::std::string* PersonInfo::release_name() {
1431
0
  // @@protoc_insertion_point(field_release:PersonInfo.name)
1432
0
  if (!has_name()) {
1433
0
    return NULL;
1434
0
  }
1435
0
  clear_has_name();
1436
0
  return name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1437
0
}
1438
0
inline void PersonInfo::set_allocated_name(::std::string* name) {
1439
0
  if (name != NULL) {
1440
0
    set_has_name();
1441
0
  } else {
1442
0
    clear_has_name();
1443
0
  }
1444
0
  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
1445
0
  // @@protoc_insertion_point(field_set_allocated:PersonInfo.name)
1446
0
}
1447
1448
// optional int32 id = 2;
1449
0
inline bool PersonInfo::has_id() const {
1450
0
  return (_has_bits_[0] & 0x00000004u) != 0;
1451
0
}
1452
0
inline void PersonInfo::set_has_id() {
1453
0
  _has_bits_[0] |= 0x00000004u;
1454
0
}
1455
0
inline void PersonInfo::clear_has_id() {
1456
0
  _has_bits_[0] &= ~0x00000004u;
1457
0
}
1458
0
inline void PersonInfo::clear_id() {
1459
0
  id_ = 0;
1460
0
  clear_has_id();
1461
0
}
1462
0
inline ::google::protobuf::int32 PersonInfo::id() const {
1463
  // @@protoc_insertion_point(field_get:PersonInfo.id)
1464
0
  return id_;
1465
0
}
1466
0
inline void PersonInfo::set_id(::google::protobuf::int32 value) {
1467
0
  set_has_id();
1468
0
  id_ = value;
1469
0
  // @@protoc_insertion_point(field_set:PersonInfo.id)
1470
0
}
1471
1472
// optional .JsonContextBody json_body = 18;
1473
0
inline bool PersonInfo::has_json_body() const {
1474
0
  return (_has_bits_[0] & 0x00000002u) != 0;
1475
0
}
1476
0
inline void PersonInfo::set_has_json_body() {
1477
0
  _has_bits_[0] |= 0x00000002u;
1478
0
}
1479
0
inline void PersonInfo::clear_has_json_body() {
1480
0
  _has_bits_[0] &= ~0x00000002u;
1481
0
}
1482
0
inline void PersonInfo::clear_json_body() {
1483
0
  if (json_body_ != NULL) json_body_->Clear();
1484
0
  clear_has_json_body();
1485
0
}
1486
0
inline const ::JsonContextBody& PersonInfo::_internal_json_body() const {
1487
0
  return *json_body_;
1488
0
}
1489
0
inline const ::JsonContextBody& PersonInfo::json_body() const {
1490
0
  const ::JsonContextBody* p = json_body_;
1491
  // @@protoc_insertion_point(field_get:PersonInfo.json_body)
1492
0
  return p != NULL ? *p : *reinterpret_cast<const ::JsonContextBody*>(
1493
0
      &::_JsonContextBody_default_instance_);
1494
0
}
1495
0
inline ::JsonContextBody* PersonInfo::release_json_body() {
1496
0
  // @@protoc_insertion_point(field_release:PersonInfo.json_body)
1497
0
  clear_has_json_body();
1498
0
  ::JsonContextBody* temp = json_body_;
1499
0
  json_body_ = NULL;
1500
0
  return temp;
1501
0
}
1502
0
inline ::JsonContextBody* PersonInfo::mutable_json_body() {
1503
0
  set_has_json_body();
1504
0
  if (json_body_ == NULL) {
1505
0
    auto* p = CreateMaybeMessage<::JsonContextBody>(GetArenaNoVirtual());
1506
0
    json_body_ = p;
1507
0
  }
1508
  // @@protoc_insertion_point(field_mutable:PersonInfo.json_body)
1509
0
  return json_body_;
1510
0
}
1511
0
inline void PersonInfo::set_allocated_json_body(::JsonContextBody* json_body) {
1512
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1513
0
  if (message_arena == NULL) {
1514
0
    delete json_body_;
1515
0
  }
1516
0
  if (json_body) {
1517
0
    ::google::protobuf::Arena* submessage_arena = NULL;
1518
0
    if (message_arena != submessage_arena) {
1519
0
      json_body = ::google::protobuf::internal::GetOwnedMessage(
1520
0
          message_arena, json_body, submessage_arena);
1521
0
    }
1522
0
    set_has_json_body();
1523
0
  } else {
1524
0
    clear_has_json_body();
1525
0
  }
1526
0
  json_body_ = json_body;
1527
0
  // @@protoc_insertion_point(field_set_allocated:PersonInfo.json_body)
1528
0
}
1529
1530
// -------------------------------------------------------------------
1531
1532
// AddressBook
1533
1534
// repeated .PersonInfo person = 1;
1535
0
inline int AddressBook::person_size() const {
1536
0
  return person_.size();
1537
0
}
1538
0
inline void AddressBook::clear_person() {
1539
0
  person_.Clear();
1540
0
}
1541
0
inline ::PersonInfo* AddressBook::mutable_person(int index) {
1542
0
  // @@protoc_insertion_point(field_mutable:AddressBook.person)
1543
0
  return person_.Mutable(index);
1544
0
}
1545
inline ::google::protobuf::RepeatedPtrField< ::PersonInfo >*
1546
0
AddressBook::mutable_person() {
1547
0
  // @@protoc_insertion_point(field_mutable_list:AddressBook.person)
1548
0
  return &person_;
1549
0
}
1550
0
inline const ::PersonInfo& AddressBook::person(int index) const {
1551
  // @@protoc_insertion_point(field_get:AddressBook.person)
1552
0
  return person_.Get(index);
1553
0
}
1554
0
inline ::PersonInfo* AddressBook::add_person() {
1555
  // @@protoc_insertion_point(field_add:AddressBook.person)
1556
0
  return person_.Add();
1557
0
}
1558
inline const ::google::protobuf::RepeatedPtrField< ::PersonInfo >&
1559
0
AddressBook::person() const {
1560
  // @@protoc_insertion_point(field_list:AddressBook.person)
1561
0
  return person_;
1562
0
}
1563
1564
#ifdef __GNUC__
1565
  #pragma GCC diagnostic pop
1566
#endif  // __GNUC__
1567
// -------------------------------------------------------------------
1568
1569
// -------------------------------------------------------------------
1570
1571
// -------------------------------------------------------------------
1572
1573
// -------------------------------------------------------------------
1574
1575
1576
// @@protoc_insertion_point(namespace_scope)
1577
1578
1579
namespace google {
1580
namespace protobuf {
1581
1582
template <> struct is_proto_enum< ::Ext_PhoneType> : ::std::true_type {};
1583
template <>
1584
0
inline const EnumDescriptor* GetEnumDescriptor< ::Ext_PhoneType>() {
1585
0
  return ::Ext_PhoneType_descriptor();
1586
0
}
1587
1588
}  // namespace protobuf
1589
}  // namespace google
1590
1591
// @@protoc_insertion_point(global_scope)
1592
1593
#endif  // PROTOBUF_INCLUDED_addressbook1_2eproto