/src/brpc/build/test/addressbook.pb.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: addressbook.proto |
3 | | |
4 | | #ifndef PROTOBUF_INCLUDED_addressbook_2eproto |
5 | | #define PROTOBUF_INCLUDED_addressbook_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_addressbook_2eproto |
36 | | |
37 | | namespace protobuf_addressbook_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[3]; |
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_addressbook_2eproto |
49 | | namespace addressbook { |
50 | | class AddressBook; |
51 | | class AddressBookDefaultTypeInternal; |
52 | | extern AddressBookDefaultTypeInternal _AddressBook_default_instance_; |
53 | | class Person; |
54 | | class PersonDefaultTypeInternal; |
55 | | extern PersonDefaultTypeInternal _Person_default_instance_; |
56 | | class Person_PhoneNumber; |
57 | | class Person_PhoneNumberDefaultTypeInternal; |
58 | | extern Person_PhoneNumberDefaultTypeInternal _Person_PhoneNumber_default_instance_; |
59 | | } // namespace addressbook |
60 | | namespace google { |
61 | | namespace protobuf { |
62 | | template<> ::addressbook::AddressBook* Arena::CreateMaybeMessage<::addressbook::AddressBook>(Arena*); |
63 | | template<> ::addressbook::Person* Arena::CreateMaybeMessage<::addressbook::Person>(Arena*); |
64 | | template<> ::addressbook::Person_PhoneNumber* Arena::CreateMaybeMessage<::addressbook::Person_PhoneNumber>(Arena*); |
65 | | } // namespace protobuf |
66 | | } // namespace google |
67 | | namespace addressbook { |
68 | | |
69 | | enum Person_PhoneType { |
70 | | Person_PhoneType_MOBILE = 0, |
71 | | Person_PhoneType_HOME = 1, |
72 | | Person_PhoneType_WORK = 2 |
73 | | }; |
74 | | bool Person_PhoneType_IsValid(int value); |
75 | | const Person_PhoneType Person_PhoneType_PhoneType_MIN = Person_PhoneType_MOBILE; |
76 | | const Person_PhoneType Person_PhoneType_PhoneType_MAX = Person_PhoneType_WORK; |
77 | | const int Person_PhoneType_PhoneType_ARRAYSIZE = Person_PhoneType_PhoneType_MAX + 1; |
78 | | |
79 | | const ::google::protobuf::EnumDescriptor* Person_PhoneType_descriptor(); |
80 | 0 | inline const ::std::string& Person_PhoneType_Name(Person_PhoneType value) { |
81 | 0 | return ::google::protobuf::internal::NameOfEnum( |
82 | 0 | Person_PhoneType_descriptor(), value); |
83 | 0 | } |
84 | | inline bool Person_PhoneType_Parse( |
85 | 0 | const ::std::string& name, Person_PhoneType* value) { |
86 | 0 | return ::google::protobuf::internal::ParseNamedEnum<Person_PhoneType>( |
87 | 0 | Person_PhoneType_descriptor(), name, value); |
88 | 0 | } |
89 | | // =================================================================== |
90 | | |
91 | | class Person_PhoneNumber : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:addressbook.Person.PhoneNumber) */ { |
92 | | public: |
93 | | Person_PhoneNumber(); |
94 | | virtual ~Person_PhoneNumber(); |
95 | | |
96 | | Person_PhoneNumber(const Person_PhoneNumber& from); |
97 | | |
98 | 0 | inline Person_PhoneNumber& operator=(const Person_PhoneNumber& from) { |
99 | 0 | CopyFrom(from); |
100 | 0 | return *this; |
101 | 0 | } |
102 | | #if LANG_CXX11 |
103 | | Person_PhoneNumber(Person_PhoneNumber&& from) noexcept |
104 | 0 | : Person_PhoneNumber() { |
105 | 0 | *this = ::std::move(from); |
106 | 0 | } |
107 | | |
108 | 0 | inline Person_PhoneNumber& operator=(Person_PhoneNumber&& from) noexcept { |
109 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
110 | 0 | if (this != &from) InternalSwap(&from); |
111 | 0 | } else { |
112 | 0 | CopyFrom(from); |
113 | 0 | } |
114 | 0 | return *this; |
115 | 0 | } |
116 | | #endif |
117 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
118 | 0 | return _internal_metadata_.unknown_fields(); |
119 | 0 | } |
120 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
121 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
122 | 0 | } |
123 | | |
124 | | static const ::google::protobuf::Descriptor* descriptor(); |
125 | | static const Person_PhoneNumber& default_instance(); |
126 | | |
127 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
128 | 0 | static inline const Person_PhoneNumber* internal_default_instance() { |
129 | 0 | return reinterpret_cast<const Person_PhoneNumber*>( |
130 | 0 | &_Person_PhoneNumber_default_instance_); |
131 | 0 | } |
132 | | static constexpr int kIndexInFileMessages = |
133 | | 0; |
134 | | |
135 | | void Swap(Person_PhoneNumber* other); |
136 | 0 | friend void swap(Person_PhoneNumber& a, Person_PhoneNumber& b) { |
137 | 0 | a.Swap(&b); |
138 | 0 | } |
139 | | |
140 | | // implements Message ---------------------------------------------- |
141 | | |
142 | 0 | inline Person_PhoneNumber* New() const final { |
143 | 0 | return CreateMaybeMessage<Person_PhoneNumber>(NULL); |
144 | 0 | } |
145 | | |
146 | 0 | Person_PhoneNumber* New(::google::protobuf::Arena* arena) const final { |
147 | 0 | return CreateMaybeMessage<Person_PhoneNumber>(arena); |
148 | 0 | } |
149 | | void CopyFrom(const ::google::protobuf::Message& from) final; |
150 | | void MergeFrom(const ::google::protobuf::Message& from) final; |
151 | | void CopyFrom(const Person_PhoneNumber& from); |
152 | | void MergeFrom(const Person_PhoneNumber& from); |
153 | | void Clear() final; |
154 | | bool IsInitialized() const final; |
155 | | |
156 | | size_t ByteSizeLong() const final; |
157 | | bool MergePartialFromCodedStream( |
158 | | ::google::protobuf::io::CodedInputStream* input) final; |
159 | | void SerializeWithCachedSizes( |
160 | | ::google::protobuf::io::CodedOutputStream* output) const final; |
161 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
162 | | bool deterministic, ::google::protobuf::uint8* target) const final; |
163 | 0 | int GetCachedSize() const final { return _cached_size_.Get(); } |
164 | | |
165 | | private: |
166 | | void SharedCtor(); |
167 | | void SharedDtor(); |
168 | | void SetCachedSize(int size) const final; |
169 | | void InternalSwap(Person_PhoneNumber* other); |
170 | | private: |
171 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
172 | 0 | return NULL; |
173 | 0 | } |
174 | 0 | inline void* MaybeArenaPtr() const { |
175 | 0 | return NULL; |
176 | 0 | } |
177 | | public: |
178 | | |
179 | | ::google::protobuf::Metadata GetMetadata() const final; |
180 | | |
181 | | // nested types ---------------------------------------------------- |
182 | | |
183 | | // accessors ------------------------------------------------------- |
184 | | |
185 | | // required string number = 1; |
186 | | bool has_number() const; |
187 | | void clear_number(); |
188 | | static const int kNumberFieldNumber = 1; |
189 | | const ::std::string& number() const; |
190 | | void set_number(const ::std::string& value); |
191 | | #if LANG_CXX11 |
192 | | void set_number(::std::string&& value); |
193 | | #endif |
194 | | void set_number(const char* value); |
195 | | void set_number(const char* value, size_t size); |
196 | | ::std::string* mutable_number(); |
197 | | ::std::string* release_number(); |
198 | | void set_allocated_number(::std::string* number); |
199 | | |
200 | | // optional .addressbook.Person.PhoneType type = 2 [default = HOME]; |
201 | | bool has_type() const; |
202 | | void clear_type(); |
203 | | static const int kTypeFieldNumber = 2; |
204 | | ::addressbook::Person_PhoneType type() const; |
205 | | void set_type(::addressbook::Person_PhoneType value); |
206 | | |
207 | | // @@protoc_insertion_point(class_scope:addressbook.Person.PhoneNumber) |
208 | | private: |
209 | | void set_has_number(); |
210 | | void clear_has_number(); |
211 | | void set_has_type(); |
212 | | void clear_has_type(); |
213 | | |
214 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
215 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
216 | | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
217 | | ::google::protobuf::internal::ArenaStringPtr number_; |
218 | | int type_; |
219 | | friend struct ::protobuf_addressbook_2eproto::TableStruct; |
220 | | }; |
221 | | // ------------------------------------------------------------------- |
222 | | |
223 | | class Person : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:addressbook.Person) */ { |
224 | | public: |
225 | | Person(); |
226 | | virtual ~Person(); |
227 | | |
228 | | Person(const Person& from); |
229 | | |
230 | 0 | inline Person& operator=(const Person& from) { |
231 | 0 | CopyFrom(from); |
232 | 0 | return *this; |
233 | 0 | } |
234 | | #if LANG_CXX11 |
235 | | Person(Person&& from) noexcept |
236 | 0 | : Person() { |
237 | 0 | *this = ::std::move(from); |
238 | 0 | } |
239 | | |
240 | 0 | inline Person& operator=(Person&& from) noexcept { |
241 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
242 | 0 | if (this != &from) InternalSwap(&from); |
243 | 0 | } else { |
244 | 0 | CopyFrom(from); |
245 | 0 | } |
246 | 0 | return *this; |
247 | 0 | } |
248 | | #endif |
249 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
250 | 0 | return _internal_metadata_.unknown_fields(); |
251 | 0 | } |
252 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
253 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
254 | 0 | } |
255 | | |
256 | | static const ::google::protobuf::Descriptor* descriptor(); |
257 | | static const Person& default_instance(); |
258 | | |
259 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
260 | 2 | static inline const Person* internal_default_instance() { |
261 | 2 | return reinterpret_cast<const Person*>( |
262 | 2 | &_Person_default_instance_); |
263 | 2 | } |
264 | | static constexpr int kIndexInFileMessages = |
265 | | 1; |
266 | | |
267 | | void Swap(Person* other); |
268 | 0 | friend void swap(Person& a, Person& b) { |
269 | 0 | a.Swap(&b); |
270 | 0 | } |
271 | | |
272 | | // implements Message ---------------------------------------------- |
273 | | |
274 | 0 | inline Person* New() const final { |
275 | 0 | return CreateMaybeMessage<Person>(NULL); |
276 | 0 | } |
277 | | |
278 | 0 | Person* New(::google::protobuf::Arena* arena) const final { |
279 | 0 | return CreateMaybeMessage<Person>(arena); |
280 | 0 | } |
281 | | void CopyFrom(const ::google::protobuf::Message& from) final; |
282 | | void MergeFrom(const ::google::protobuf::Message& from) final; |
283 | | void CopyFrom(const Person& from); |
284 | | void MergeFrom(const Person& from); |
285 | | void Clear() final; |
286 | | bool IsInitialized() const final; |
287 | | |
288 | | size_t ByteSizeLong() const final; |
289 | | bool MergePartialFromCodedStream( |
290 | | ::google::protobuf::io::CodedInputStream* input) final; |
291 | | void SerializeWithCachedSizes( |
292 | | ::google::protobuf::io::CodedOutputStream* output) const final; |
293 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
294 | | bool deterministic, ::google::protobuf::uint8* target) const final; |
295 | 0 | int GetCachedSize() const final { return _cached_size_.Get(); } |
296 | | |
297 | | private: |
298 | | void SharedCtor(); |
299 | | void SharedDtor(); |
300 | | void SetCachedSize(int size) const final; |
301 | | void InternalSwap(Person* other); |
302 | | private: |
303 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
304 | 0 | return NULL; |
305 | 0 | } |
306 | 0 | inline void* MaybeArenaPtr() const { |
307 | 0 | return NULL; |
308 | 0 | } |
309 | | public: |
310 | | |
311 | | ::google::protobuf::Metadata GetMetadata() const final; |
312 | | |
313 | | // nested types ---------------------------------------------------- |
314 | | |
315 | | typedef Person_PhoneNumber PhoneNumber; |
316 | | |
317 | | typedef Person_PhoneType PhoneType; |
318 | | static const PhoneType MOBILE = |
319 | | Person_PhoneType_MOBILE; |
320 | | static const PhoneType HOME = |
321 | | Person_PhoneType_HOME; |
322 | | static const PhoneType WORK = |
323 | | Person_PhoneType_WORK; |
324 | 0 | static inline bool PhoneType_IsValid(int value) { |
325 | 0 | return Person_PhoneType_IsValid(value); |
326 | 0 | } |
327 | | static const PhoneType PhoneType_MIN = |
328 | | Person_PhoneType_PhoneType_MIN; |
329 | | static const PhoneType PhoneType_MAX = |
330 | | Person_PhoneType_PhoneType_MAX; |
331 | | static const int PhoneType_ARRAYSIZE = |
332 | | Person_PhoneType_PhoneType_ARRAYSIZE; |
333 | | static inline const ::google::protobuf::EnumDescriptor* |
334 | 0 | PhoneType_descriptor() { |
335 | 0 | return Person_PhoneType_descriptor(); |
336 | 0 | } |
337 | 0 | static inline const ::std::string& PhoneType_Name(PhoneType value) { |
338 | 0 | return Person_PhoneType_Name(value); |
339 | 0 | } |
340 | | static inline bool PhoneType_Parse(const ::std::string& name, |
341 | 0 | PhoneType* value) { |
342 | 0 | return Person_PhoneType_Parse(name, value); |
343 | 0 | } |
344 | | |
345 | | // accessors ------------------------------------------------------- |
346 | | |
347 | | // repeated .addressbook.Person.PhoneNumber phone = 4; |
348 | | int phone_size() const; |
349 | | void clear_phone(); |
350 | | static const int kPhoneFieldNumber = 4; |
351 | | ::addressbook::Person_PhoneNumber* mutable_phone(int index); |
352 | | ::google::protobuf::RepeatedPtrField< ::addressbook::Person_PhoneNumber >* |
353 | | mutable_phone(); |
354 | | const ::addressbook::Person_PhoneNumber& phone(int index) const; |
355 | | ::addressbook::Person_PhoneNumber* add_phone(); |
356 | | const ::google::protobuf::RepeatedPtrField< ::addressbook::Person_PhoneNumber >& |
357 | | phone() const; |
358 | | |
359 | | // required string name = 1; |
360 | | bool has_name() const; |
361 | | void clear_name(); |
362 | | static const int kNameFieldNumber = 1; |
363 | | const ::std::string& name() const; |
364 | | void set_name(const ::std::string& value); |
365 | | #if LANG_CXX11 |
366 | | void set_name(::std::string&& value); |
367 | | #endif |
368 | | void set_name(const char* value); |
369 | | void set_name(const char* value, size_t size); |
370 | | ::std::string* mutable_name(); |
371 | | ::std::string* release_name(); |
372 | | void set_allocated_name(::std::string* name); |
373 | | |
374 | | // optional string email = 3; |
375 | | bool has_email() const; |
376 | | void clear_email(); |
377 | | static const int kEmailFieldNumber = 3; |
378 | | const ::std::string& email() const; |
379 | | void set_email(const ::std::string& value); |
380 | | #if LANG_CXX11 |
381 | | void set_email(::std::string&& value); |
382 | | #endif |
383 | | void set_email(const char* value); |
384 | | void set_email(const char* value, size_t size); |
385 | | ::std::string* mutable_email(); |
386 | | ::std::string* release_email(); |
387 | | void set_allocated_email(::std::string* email); |
388 | | |
389 | | // optional bytes databyte = 13; |
390 | | bool has_databyte() const; |
391 | | void clear_databyte(); |
392 | | static const int kDatabyteFieldNumber = 13; |
393 | | const ::std::string& databyte() const; |
394 | | void set_databyte(const ::std::string& value); |
395 | | #if LANG_CXX11 |
396 | | void set_databyte(::std::string&& value); |
397 | | #endif |
398 | | void set_databyte(const char* value); |
399 | | void set_databyte(const void* value, size_t size); |
400 | | ::std::string* mutable_databyte(); |
401 | | ::std::string* release_databyte(); |
402 | | void set_allocated_databyte(::std::string* databyte); |
403 | | |
404 | | // required int32 id = 2; |
405 | | bool has_id() const; |
406 | | void clear_id(); |
407 | | static const int kIdFieldNumber = 2; |
408 | | ::google::protobuf::int32 id() const; |
409 | | void set_id(::google::protobuf::int32 value); |
410 | | |
411 | | // optional sint32 data32 = 6; |
412 | | bool has_data32() const; |
413 | | void clear_data32(); |
414 | | static const int kData32FieldNumber = 6; |
415 | | ::google::protobuf::int32 data32() const; |
416 | | void set_data32(::google::protobuf::int32 value); |
417 | | |
418 | | // optional int64 data = 5; |
419 | | bool has_data() const; |
420 | | void clear_data(); |
421 | | static const int kDataFieldNumber = 5; |
422 | | ::google::protobuf::int64 data() const; |
423 | | void set_data(::google::protobuf::int64 value); |
424 | | |
425 | | // optional sint64 data64 = 7; |
426 | | bool has_data64() const; |
427 | | void clear_data64(); |
428 | | static const int kData64FieldNumber = 7; |
429 | | ::google::protobuf::int64 data64() const; |
430 | | void set_data64(::google::protobuf::int64 value); |
431 | | |
432 | | // required double datadouble = 8; |
433 | | bool has_datadouble() const; |
434 | | void clear_datadouble(); |
435 | | static const int kDatadoubleFieldNumber = 8; |
436 | | double datadouble() const; |
437 | | void set_datadouble(double value); |
438 | | |
439 | | // optional float datafloat = 9; |
440 | | bool has_datafloat() const; |
441 | | void clear_datafloat(); |
442 | | static const int kDatafloatFieldNumber = 9; |
443 | | float datafloat() const; |
444 | | void set_datafloat(float value); |
445 | | |
446 | | // optional uint32 datau32 = 10; |
447 | | bool has_datau32() const; |
448 | | void clear_datau32(); |
449 | | static const int kDatau32FieldNumber = 10; |
450 | | ::google::protobuf::uint32 datau32() const; |
451 | | void set_datau32(::google::protobuf::uint32 value); |
452 | | |
453 | | // optional uint64 datau64 = 11; |
454 | | bool has_datau64() const; |
455 | | void clear_datau64(); |
456 | | static const int kDatau64FieldNumber = 11; |
457 | | ::google::protobuf::uint64 datau64() const; |
458 | | void set_datau64(::google::protobuf::uint64 value); |
459 | | |
460 | | // optional bool databool = 12; |
461 | | bool has_databool() const; |
462 | | void clear_databool(); |
463 | | static const int kDataboolFieldNumber = 12; |
464 | | bool databool() const; |
465 | | void set_databool(bool value); |
466 | | |
467 | | // optional fixed32 datafix32 = 14; |
468 | | bool has_datafix32() const; |
469 | | void clear_datafix32(); |
470 | | static const int kDatafix32FieldNumber = 14; |
471 | | ::google::protobuf::uint32 datafix32() const; |
472 | | void set_datafix32(::google::protobuf::uint32 value); |
473 | | |
474 | | // optional fixed64 datafix64 = 15; |
475 | | bool has_datafix64() const; |
476 | | void clear_datafix64(); |
477 | | static const int kDatafix64FieldNumber = 15; |
478 | | ::google::protobuf::uint64 datafix64() const; |
479 | | void set_datafix64(::google::protobuf::uint64 value); |
480 | | |
481 | | // optional sfixed64 datasfix64 = 17; |
482 | | bool has_datasfix64() const; |
483 | | void clear_datasfix64(); |
484 | | static const int kDatasfix64FieldNumber = 17; |
485 | | ::google::protobuf::int64 datasfix64() const; |
486 | | void set_datasfix64(::google::protobuf::int64 value); |
487 | | |
488 | | // optional sfixed32 datasfix32 = 16; |
489 | | bool has_datasfix32() const; |
490 | | void clear_datasfix32(); |
491 | | static const int kDatasfix32FieldNumber = 16; |
492 | | ::google::protobuf::int32 datasfix32() const; |
493 | | void set_datasfix32(::google::protobuf::int32 value); |
494 | | |
495 | | // optional float datafloat_scientific = 18; |
496 | | bool has_datafloat_scientific() const; |
497 | | void clear_datafloat_scientific(); |
498 | | static const int kDatafloatScientificFieldNumber = 18; |
499 | | float datafloat_scientific() const; |
500 | | void set_datafloat_scientific(float value); |
501 | | |
502 | | // optional double datadouble_scientific = 19; |
503 | | bool has_datadouble_scientific() const; |
504 | | void clear_datadouble_scientific(); |
505 | | static const int kDatadoubleScientificFieldNumber = 19; |
506 | | double datadouble_scientific() const; |
507 | | void set_datadouble_scientific(double value); |
508 | | |
509 | | GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(Person) |
510 | | // @@protoc_insertion_point(class_scope:addressbook.Person) |
511 | | private: |
512 | | void set_has_name(); |
513 | | void clear_has_name(); |
514 | | void set_has_id(); |
515 | | void clear_has_id(); |
516 | | void set_has_email(); |
517 | | void clear_has_email(); |
518 | | void set_has_data(); |
519 | | void clear_has_data(); |
520 | | void set_has_data32(); |
521 | | void clear_has_data32(); |
522 | | void set_has_data64(); |
523 | | void clear_has_data64(); |
524 | | void set_has_datadouble(); |
525 | | void clear_has_datadouble(); |
526 | | void set_has_datafloat(); |
527 | | void clear_has_datafloat(); |
528 | | void set_has_datau32(); |
529 | | void clear_has_datau32(); |
530 | | void set_has_datau64(); |
531 | | void clear_has_datau64(); |
532 | | void set_has_databool(); |
533 | | void clear_has_databool(); |
534 | | void set_has_databyte(); |
535 | | void clear_has_databyte(); |
536 | | void set_has_datafix32(); |
537 | | void clear_has_datafix32(); |
538 | | void set_has_datafix64(); |
539 | | void clear_has_datafix64(); |
540 | | void set_has_datasfix32(); |
541 | | void clear_has_datasfix32(); |
542 | | void set_has_datasfix64(); |
543 | | void clear_has_datasfix64(); |
544 | | void set_has_datafloat_scientific(); |
545 | | void clear_has_datafloat_scientific(); |
546 | | void set_has_datadouble_scientific(); |
547 | | void clear_has_datadouble_scientific(); |
548 | | |
549 | | // helper for ByteSizeLong() |
550 | | size_t RequiredFieldsByteSizeFallback() const; |
551 | | |
552 | | ::google::protobuf::internal::ExtensionSet _extensions_; |
553 | | |
554 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
555 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
556 | | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
557 | | ::google::protobuf::RepeatedPtrField< ::addressbook::Person_PhoneNumber > phone_; |
558 | | ::google::protobuf::internal::ArenaStringPtr name_; |
559 | | ::google::protobuf::internal::ArenaStringPtr email_; |
560 | | ::google::protobuf::internal::ArenaStringPtr databyte_; |
561 | | ::google::protobuf::int32 id_; |
562 | | ::google::protobuf::int32 data32_; |
563 | | ::google::protobuf::int64 data_; |
564 | | ::google::protobuf::int64 data64_; |
565 | | double datadouble_; |
566 | | float datafloat_; |
567 | | ::google::protobuf::uint32 datau32_; |
568 | | ::google::protobuf::uint64 datau64_; |
569 | | bool databool_; |
570 | | ::google::protobuf::uint32 datafix32_; |
571 | | ::google::protobuf::uint64 datafix64_; |
572 | | ::google::protobuf::int64 datasfix64_; |
573 | | ::google::protobuf::int32 datasfix32_; |
574 | | float datafloat_scientific_; |
575 | | double datadouble_scientific_; |
576 | | friend struct ::protobuf_addressbook_2eproto::TableStruct; |
577 | | }; |
578 | | // ------------------------------------------------------------------- |
579 | | |
580 | | class AddressBook : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:addressbook.AddressBook) */ { |
581 | | public: |
582 | | AddressBook(); |
583 | | virtual ~AddressBook(); |
584 | | |
585 | | AddressBook(const AddressBook& from); |
586 | | |
587 | 0 | inline AddressBook& operator=(const AddressBook& from) { |
588 | 0 | CopyFrom(from); |
589 | 0 | return *this; |
590 | 0 | } |
591 | | #if LANG_CXX11 |
592 | | AddressBook(AddressBook&& from) noexcept |
593 | 0 | : AddressBook() { |
594 | 0 | *this = ::std::move(from); |
595 | 0 | } |
596 | | |
597 | 0 | inline AddressBook& operator=(AddressBook&& from) noexcept { |
598 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
599 | 0 | if (this != &from) InternalSwap(&from); |
600 | 0 | } else { |
601 | 0 | CopyFrom(from); |
602 | 0 | } |
603 | 0 | return *this; |
604 | 0 | } |
605 | | #endif |
606 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
607 | 0 | return _internal_metadata_.unknown_fields(); |
608 | 0 | } |
609 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
610 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
611 | 0 | } |
612 | | |
613 | | static const ::google::protobuf::Descriptor* descriptor(); |
614 | | static const AddressBook& default_instance(); |
615 | | |
616 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
617 | 0 | static inline const AddressBook* internal_default_instance() { |
618 | 0 | return reinterpret_cast<const AddressBook*>( |
619 | 0 | &_AddressBook_default_instance_); |
620 | 0 | } |
621 | | static constexpr int kIndexInFileMessages = |
622 | | 2; |
623 | | |
624 | | void Swap(AddressBook* other); |
625 | 0 | friend void swap(AddressBook& a, AddressBook& b) { |
626 | 0 | a.Swap(&b); |
627 | 0 | } |
628 | | |
629 | | // implements Message ---------------------------------------------- |
630 | | |
631 | 0 | inline AddressBook* New() const final { |
632 | 0 | return CreateMaybeMessage<AddressBook>(NULL); |
633 | 0 | } |
634 | | |
635 | 0 | AddressBook* New(::google::protobuf::Arena* arena) const final { |
636 | 0 | return CreateMaybeMessage<AddressBook>(arena); |
637 | 0 | } |
638 | | void CopyFrom(const ::google::protobuf::Message& from) final; |
639 | | void MergeFrom(const ::google::protobuf::Message& from) final; |
640 | | void CopyFrom(const AddressBook& from); |
641 | | void MergeFrom(const AddressBook& from); |
642 | | void Clear() final; |
643 | | bool IsInitialized() const final; |
644 | | |
645 | | size_t ByteSizeLong() const final; |
646 | | bool MergePartialFromCodedStream( |
647 | | ::google::protobuf::io::CodedInputStream* input) final; |
648 | | void SerializeWithCachedSizes( |
649 | | ::google::protobuf::io::CodedOutputStream* output) const final; |
650 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
651 | | bool deterministic, ::google::protobuf::uint8* target) const final; |
652 | 0 | int GetCachedSize() const final { return _cached_size_.Get(); } |
653 | | |
654 | | private: |
655 | | void SharedCtor(); |
656 | | void SharedDtor(); |
657 | | void SetCachedSize(int size) const final; |
658 | | void InternalSwap(AddressBook* other); |
659 | | private: |
660 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
661 | 0 | return NULL; |
662 | 0 | } |
663 | 0 | inline void* MaybeArenaPtr() const { |
664 | 0 | return NULL; |
665 | 0 | } |
666 | | public: |
667 | | |
668 | | ::google::protobuf::Metadata GetMetadata() const final; |
669 | | |
670 | | // nested types ---------------------------------------------------- |
671 | | |
672 | | // accessors ------------------------------------------------------- |
673 | | |
674 | | // repeated .addressbook.Person person = 1; |
675 | | int person_size() const; |
676 | | void clear_person(); |
677 | | static const int kPersonFieldNumber = 1; |
678 | | ::addressbook::Person* mutable_person(int index); |
679 | | ::google::protobuf::RepeatedPtrField< ::addressbook::Person >* |
680 | | mutable_person(); |
681 | | const ::addressbook::Person& person(int index) const; |
682 | | ::addressbook::Person* add_person(); |
683 | | const ::google::protobuf::RepeatedPtrField< ::addressbook::Person >& |
684 | | person() const; |
685 | | |
686 | | // @@protoc_insertion_point(class_scope:addressbook.AddressBook) |
687 | | private: |
688 | | |
689 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
690 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
691 | | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
692 | | ::google::protobuf::RepeatedPtrField< ::addressbook::Person > person_; |
693 | | friend struct ::protobuf_addressbook_2eproto::TableStruct; |
694 | | }; |
695 | | // =================================================================== |
696 | | |
697 | | static const int kHobbyFieldNumber = 100; |
698 | | extern ::google::protobuf::internal::ExtensionIdentifier< ::addressbook::Person, |
699 | | ::google::protobuf::internal::StringTypeTraits, 9, false > |
700 | | hobby; |
701 | | |
702 | | // =================================================================== |
703 | | |
704 | | #ifdef __GNUC__ |
705 | | #pragma GCC diagnostic push |
706 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
707 | | #endif // __GNUC__ |
708 | | // Person_PhoneNumber |
709 | | |
710 | | // required string number = 1; |
711 | 0 | inline bool Person_PhoneNumber::has_number() const { |
712 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
713 | 0 | } |
714 | 0 | inline void Person_PhoneNumber::set_has_number() { |
715 | 0 | _has_bits_[0] |= 0x00000001u; |
716 | 0 | } |
717 | 0 | inline void Person_PhoneNumber::clear_has_number() { |
718 | 0 | _has_bits_[0] &= ~0x00000001u; |
719 | 0 | } |
720 | 0 | inline void Person_PhoneNumber::clear_number() { |
721 | 0 | number_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
722 | 0 | clear_has_number(); |
723 | 0 | } |
724 | 0 | inline const ::std::string& Person_PhoneNumber::number() const { |
725 | | // @@protoc_insertion_point(field_get:addressbook.Person.PhoneNumber.number) |
726 | 0 | return number_.GetNoArena(); |
727 | 0 | } |
728 | 0 | inline void Person_PhoneNumber::set_number(const ::std::string& value) { |
729 | 0 | set_has_number(); |
730 | 0 | number_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
731 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.PhoneNumber.number) |
732 | 0 | } |
733 | | #if LANG_CXX11 |
734 | 0 | inline void Person_PhoneNumber::set_number(::std::string&& value) { |
735 | 0 | set_has_number(); |
736 | 0 | number_.SetNoArena( |
737 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
738 | 0 | // @@protoc_insertion_point(field_set_rvalue:addressbook.Person.PhoneNumber.number) |
739 | 0 | } |
740 | | #endif |
741 | 0 | inline void Person_PhoneNumber::set_number(const char* value) { |
742 | 0 | GOOGLE_DCHECK(value != NULL); |
743 | 0 | set_has_number(); |
744 | 0 | number_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
745 | 0 | // @@protoc_insertion_point(field_set_char:addressbook.Person.PhoneNumber.number) |
746 | 0 | } |
747 | 0 | inline void Person_PhoneNumber::set_number(const char* value, size_t size) { |
748 | 0 | set_has_number(); |
749 | 0 | number_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
750 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
751 | 0 | // @@protoc_insertion_point(field_set_pointer:addressbook.Person.PhoneNumber.number) |
752 | 0 | } |
753 | 0 | inline ::std::string* Person_PhoneNumber::mutable_number() { |
754 | 0 | set_has_number(); |
755 | | // @@protoc_insertion_point(field_mutable:addressbook.Person.PhoneNumber.number) |
756 | 0 | return number_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
757 | 0 | } |
758 | 0 | inline ::std::string* Person_PhoneNumber::release_number() { |
759 | 0 | // @@protoc_insertion_point(field_release:addressbook.Person.PhoneNumber.number) |
760 | 0 | if (!has_number()) { |
761 | 0 | return NULL; |
762 | 0 | } |
763 | 0 | clear_has_number(); |
764 | 0 | return number_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
765 | 0 | } |
766 | 0 | inline void Person_PhoneNumber::set_allocated_number(::std::string* number) { |
767 | 0 | if (number != NULL) { |
768 | 0 | set_has_number(); |
769 | 0 | } else { |
770 | 0 | clear_has_number(); |
771 | 0 | } |
772 | 0 | number_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), number); |
773 | 0 | // @@protoc_insertion_point(field_set_allocated:addressbook.Person.PhoneNumber.number) |
774 | 0 | } |
775 | | |
776 | | // optional .addressbook.Person.PhoneType type = 2 [default = HOME]; |
777 | 0 | inline bool Person_PhoneNumber::has_type() const { |
778 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
779 | 0 | } |
780 | 0 | inline void Person_PhoneNumber::set_has_type() { |
781 | 0 | _has_bits_[0] |= 0x00000002u; |
782 | 0 | } |
783 | 0 | inline void Person_PhoneNumber::clear_has_type() { |
784 | 0 | _has_bits_[0] &= ~0x00000002u; |
785 | 0 | } |
786 | 0 | inline void Person_PhoneNumber::clear_type() { |
787 | 0 | type_ = 1; |
788 | 0 | clear_has_type(); |
789 | 0 | } |
790 | 0 | inline ::addressbook::Person_PhoneType Person_PhoneNumber::type() const { |
791 | | // @@protoc_insertion_point(field_get:addressbook.Person.PhoneNumber.type) |
792 | 0 | return static_cast< ::addressbook::Person_PhoneType >(type_); |
793 | 0 | } |
794 | 0 | inline void Person_PhoneNumber::set_type(::addressbook::Person_PhoneType value) { |
795 | 0 | assert(::addressbook::Person_PhoneType_IsValid(value)); |
796 | 0 | set_has_type(); |
797 | 0 | type_ = value; |
798 | | // @@protoc_insertion_point(field_set:addressbook.Person.PhoneNumber.type) |
799 | 0 | } |
800 | | |
801 | | // ------------------------------------------------------------------- |
802 | | |
803 | | // Person |
804 | | |
805 | | // required string name = 1; |
806 | 0 | inline bool Person::has_name() const { |
807 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
808 | 0 | } |
809 | 0 | inline void Person::set_has_name() { |
810 | 0 | _has_bits_[0] |= 0x00000001u; |
811 | 0 | } |
812 | 0 | inline void Person::clear_has_name() { |
813 | 0 | _has_bits_[0] &= ~0x00000001u; |
814 | 0 | } |
815 | 0 | inline void Person::clear_name() { |
816 | 0 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
817 | 0 | clear_has_name(); |
818 | 0 | } |
819 | 0 | inline const ::std::string& Person::name() const { |
820 | | // @@protoc_insertion_point(field_get:addressbook.Person.name) |
821 | 0 | return name_.GetNoArena(); |
822 | 0 | } |
823 | 0 | inline void Person::set_name(const ::std::string& value) { |
824 | 0 | set_has_name(); |
825 | 0 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
826 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.name) |
827 | 0 | } |
828 | | #if LANG_CXX11 |
829 | 0 | inline void Person::set_name(::std::string&& value) { |
830 | 0 | set_has_name(); |
831 | 0 | name_.SetNoArena( |
832 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
833 | 0 | // @@protoc_insertion_point(field_set_rvalue:addressbook.Person.name) |
834 | 0 | } |
835 | | #endif |
836 | 0 | inline void Person::set_name(const char* value) { |
837 | 0 | GOOGLE_DCHECK(value != NULL); |
838 | 0 | set_has_name(); |
839 | 0 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
840 | 0 | // @@protoc_insertion_point(field_set_char:addressbook.Person.name) |
841 | 0 | } |
842 | 0 | inline void Person::set_name(const char* value, size_t size) { |
843 | 0 | set_has_name(); |
844 | 0 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
845 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
846 | 0 | // @@protoc_insertion_point(field_set_pointer:addressbook.Person.name) |
847 | 0 | } |
848 | 0 | inline ::std::string* Person::mutable_name() { |
849 | 0 | set_has_name(); |
850 | | // @@protoc_insertion_point(field_mutable:addressbook.Person.name) |
851 | 0 | return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
852 | 0 | } |
853 | 0 | inline ::std::string* Person::release_name() { |
854 | 0 | // @@protoc_insertion_point(field_release:addressbook.Person.name) |
855 | 0 | if (!has_name()) { |
856 | 0 | return NULL; |
857 | 0 | } |
858 | 0 | clear_has_name(); |
859 | 0 | return name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
860 | 0 | } |
861 | 0 | inline void Person::set_allocated_name(::std::string* name) { |
862 | 0 | if (name != NULL) { |
863 | 0 | set_has_name(); |
864 | 0 | } else { |
865 | 0 | clear_has_name(); |
866 | 0 | } |
867 | 0 | name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); |
868 | 0 | // @@protoc_insertion_point(field_set_allocated:addressbook.Person.name) |
869 | 0 | } |
870 | | |
871 | | // required int32 id = 2; |
872 | 0 | inline bool Person::has_id() const { |
873 | 0 | return (_has_bits_[0] & 0x00000008u) != 0; |
874 | 0 | } |
875 | 0 | inline void Person::set_has_id() { |
876 | 0 | _has_bits_[0] |= 0x00000008u; |
877 | 0 | } |
878 | 0 | inline void Person::clear_has_id() { |
879 | 0 | _has_bits_[0] &= ~0x00000008u; |
880 | 0 | } |
881 | 0 | inline void Person::clear_id() { |
882 | 0 | id_ = 0; |
883 | 0 | clear_has_id(); |
884 | 0 | } |
885 | 0 | inline ::google::protobuf::int32 Person::id() const { |
886 | | // @@protoc_insertion_point(field_get:addressbook.Person.id) |
887 | 0 | return id_; |
888 | 0 | } |
889 | 0 | inline void Person::set_id(::google::protobuf::int32 value) { |
890 | 0 | set_has_id(); |
891 | 0 | id_ = value; |
892 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.id) |
893 | 0 | } |
894 | | |
895 | | // optional string email = 3; |
896 | 0 | inline bool Person::has_email() const { |
897 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
898 | 0 | } |
899 | 0 | inline void Person::set_has_email() { |
900 | 0 | _has_bits_[0] |= 0x00000002u; |
901 | 0 | } |
902 | 0 | inline void Person::clear_has_email() { |
903 | 0 | _has_bits_[0] &= ~0x00000002u; |
904 | 0 | } |
905 | 0 | inline void Person::clear_email() { |
906 | 0 | email_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
907 | 0 | clear_has_email(); |
908 | 0 | } |
909 | 0 | inline const ::std::string& Person::email() const { |
910 | | // @@protoc_insertion_point(field_get:addressbook.Person.email) |
911 | 0 | return email_.GetNoArena(); |
912 | 0 | } |
913 | 0 | inline void Person::set_email(const ::std::string& value) { |
914 | 0 | set_has_email(); |
915 | 0 | email_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
916 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.email) |
917 | 0 | } |
918 | | #if LANG_CXX11 |
919 | 0 | inline void Person::set_email(::std::string&& value) { |
920 | 0 | set_has_email(); |
921 | 0 | email_.SetNoArena( |
922 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
923 | 0 | // @@protoc_insertion_point(field_set_rvalue:addressbook.Person.email) |
924 | 0 | } |
925 | | #endif |
926 | 0 | inline void Person::set_email(const char* value) { |
927 | 0 | GOOGLE_DCHECK(value != NULL); |
928 | 0 | set_has_email(); |
929 | 0 | email_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
930 | 0 | // @@protoc_insertion_point(field_set_char:addressbook.Person.email) |
931 | 0 | } |
932 | 0 | inline void Person::set_email(const char* value, size_t size) { |
933 | 0 | set_has_email(); |
934 | 0 | email_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
935 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
936 | 0 | // @@protoc_insertion_point(field_set_pointer:addressbook.Person.email) |
937 | 0 | } |
938 | 0 | inline ::std::string* Person::mutable_email() { |
939 | 0 | set_has_email(); |
940 | | // @@protoc_insertion_point(field_mutable:addressbook.Person.email) |
941 | 0 | return email_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
942 | 0 | } |
943 | 0 | inline ::std::string* Person::release_email() { |
944 | 0 | // @@protoc_insertion_point(field_release:addressbook.Person.email) |
945 | 0 | if (!has_email()) { |
946 | 0 | return NULL; |
947 | 0 | } |
948 | 0 | clear_has_email(); |
949 | 0 | return email_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
950 | 0 | } |
951 | 0 | inline void Person::set_allocated_email(::std::string* email) { |
952 | 0 | if (email != NULL) { |
953 | 0 | set_has_email(); |
954 | 0 | } else { |
955 | 0 | clear_has_email(); |
956 | 0 | } |
957 | 0 | email_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), email); |
958 | 0 | // @@protoc_insertion_point(field_set_allocated:addressbook.Person.email) |
959 | 0 | } |
960 | | |
961 | | // repeated .addressbook.Person.PhoneNumber phone = 4; |
962 | 0 | inline int Person::phone_size() const { |
963 | 0 | return phone_.size(); |
964 | 0 | } |
965 | 0 | inline void Person::clear_phone() { |
966 | 0 | phone_.Clear(); |
967 | 0 | } |
968 | 0 | inline ::addressbook::Person_PhoneNumber* Person::mutable_phone(int index) { |
969 | 0 | // @@protoc_insertion_point(field_mutable:addressbook.Person.phone) |
970 | 0 | return phone_.Mutable(index); |
971 | 0 | } |
972 | | inline ::google::protobuf::RepeatedPtrField< ::addressbook::Person_PhoneNumber >* |
973 | 0 | Person::mutable_phone() { |
974 | 0 | // @@protoc_insertion_point(field_mutable_list:addressbook.Person.phone) |
975 | 0 | return &phone_; |
976 | 0 | } |
977 | 0 | inline const ::addressbook::Person_PhoneNumber& Person::phone(int index) const { |
978 | | // @@protoc_insertion_point(field_get:addressbook.Person.phone) |
979 | 0 | return phone_.Get(index); |
980 | 0 | } |
981 | 0 | inline ::addressbook::Person_PhoneNumber* Person::add_phone() { |
982 | | // @@protoc_insertion_point(field_add:addressbook.Person.phone) |
983 | 0 | return phone_.Add(); |
984 | 0 | } |
985 | | inline const ::google::protobuf::RepeatedPtrField< ::addressbook::Person_PhoneNumber >& |
986 | 0 | Person::phone() const { |
987 | | // @@protoc_insertion_point(field_list:addressbook.Person.phone) |
988 | 0 | return phone_; |
989 | 0 | } |
990 | | |
991 | | // optional int64 data = 5; |
992 | 0 | inline bool Person::has_data() const { |
993 | 0 | return (_has_bits_[0] & 0x00000020u) != 0; |
994 | 0 | } |
995 | 0 | inline void Person::set_has_data() { |
996 | 0 | _has_bits_[0] |= 0x00000020u; |
997 | 0 | } |
998 | 0 | inline void Person::clear_has_data() { |
999 | 0 | _has_bits_[0] &= ~0x00000020u; |
1000 | 0 | } |
1001 | 0 | inline void Person::clear_data() { |
1002 | 0 | data_ = GOOGLE_LONGLONG(0); |
1003 | 0 | clear_has_data(); |
1004 | 0 | } |
1005 | 0 | inline ::google::protobuf::int64 Person::data() const { |
1006 | | // @@protoc_insertion_point(field_get:addressbook.Person.data) |
1007 | 0 | return data_; |
1008 | 0 | } |
1009 | 0 | inline void Person::set_data(::google::protobuf::int64 value) { |
1010 | 0 | set_has_data(); |
1011 | 0 | data_ = value; |
1012 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.data) |
1013 | 0 | } |
1014 | | |
1015 | | // optional sint32 data32 = 6; |
1016 | 0 | inline bool Person::has_data32() const { |
1017 | 0 | return (_has_bits_[0] & 0x00000010u) != 0; |
1018 | 0 | } |
1019 | 0 | inline void Person::set_has_data32() { |
1020 | 0 | _has_bits_[0] |= 0x00000010u; |
1021 | 0 | } |
1022 | 0 | inline void Person::clear_has_data32() { |
1023 | 0 | _has_bits_[0] &= ~0x00000010u; |
1024 | 0 | } |
1025 | 0 | inline void Person::clear_data32() { |
1026 | 0 | data32_ = 0; |
1027 | 0 | clear_has_data32(); |
1028 | 0 | } |
1029 | 0 | inline ::google::protobuf::int32 Person::data32() const { |
1030 | | // @@protoc_insertion_point(field_get:addressbook.Person.data32) |
1031 | 0 | return data32_; |
1032 | 0 | } |
1033 | 0 | inline void Person::set_data32(::google::protobuf::int32 value) { |
1034 | 0 | set_has_data32(); |
1035 | 0 | data32_ = value; |
1036 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.data32) |
1037 | 0 | } |
1038 | | |
1039 | | // optional sint64 data64 = 7; |
1040 | 0 | inline bool Person::has_data64() const { |
1041 | 0 | return (_has_bits_[0] & 0x00000040u) != 0; |
1042 | 0 | } |
1043 | 0 | inline void Person::set_has_data64() { |
1044 | 0 | _has_bits_[0] |= 0x00000040u; |
1045 | 0 | } |
1046 | 0 | inline void Person::clear_has_data64() { |
1047 | 0 | _has_bits_[0] &= ~0x00000040u; |
1048 | 0 | } |
1049 | 0 | inline void Person::clear_data64() { |
1050 | 0 | data64_ = GOOGLE_LONGLONG(0); |
1051 | 0 | clear_has_data64(); |
1052 | 0 | } |
1053 | 0 | inline ::google::protobuf::int64 Person::data64() const { |
1054 | | // @@protoc_insertion_point(field_get:addressbook.Person.data64) |
1055 | 0 | return data64_; |
1056 | 0 | } |
1057 | 0 | inline void Person::set_data64(::google::protobuf::int64 value) { |
1058 | 0 | set_has_data64(); |
1059 | 0 | data64_ = value; |
1060 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.data64) |
1061 | 0 | } |
1062 | | |
1063 | | // required double datadouble = 8; |
1064 | 0 | inline bool Person::has_datadouble() const { |
1065 | 0 | return (_has_bits_[0] & 0x00000080u) != 0; |
1066 | 0 | } |
1067 | 0 | inline void Person::set_has_datadouble() { |
1068 | 0 | _has_bits_[0] |= 0x00000080u; |
1069 | 0 | } |
1070 | 0 | inline void Person::clear_has_datadouble() { |
1071 | 0 | _has_bits_[0] &= ~0x00000080u; |
1072 | 0 | } |
1073 | 0 | inline void Person::clear_datadouble() { |
1074 | 0 | datadouble_ = 0; |
1075 | 0 | clear_has_datadouble(); |
1076 | 0 | } |
1077 | 0 | inline double Person::datadouble() const { |
1078 | | // @@protoc_insertion_point(field_get:addressbook.Person.datadouble) |
1079 | 0 | return datadouble_; |
1080 | 0 | } |
1081 | 0 | inline void Person::set_datadouble(double value) { |
1082 | 0 | set_has_datadouble(); |
1083 | 0 | datadouble_ = value; |
1084 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.datadouble) |
1085 | 0 | } |
1086 | | |
1087 | | // optional float datafloat = 9; |
1088 | 0 | inline bool Person::has_datafloat() const { |
1089 | 0 | return (_has_bits_[0] & 0x00000100u) != 0; |
1090 | 0 | } |
1091 | 0 | inline void Person::set_has_datafloat() { |
1092 | 0 | _has_bits_[0] |= 0x00000100u; |
1093 | 0 | } |
1094 | 0 | inline void Person::clear_has_datafloat() { |
1095 | 0 | _has_bits_[0] &= ~0x00000100u; |
1096 | 0 | } |
1097 | 0 | inline void Person::clear_datafloat() { |
1098 | 0 | datafloat_ = 0; |
1099 | 0 | clear_has_datafloat(); |
1100 | 0 | } |
1101 | 0 | inline float Person::datafloat() const { |
1102 | | // @@protoc_insertion_point(field_get:addressbook.Person.datafloat) |
1103 | 0 | return datafloat_; |
1104 | 0 | } |
1105 | 0 | inline void Person::set_datafloat(float value) { |
1106 | 0 | set_has_datafloat(); |
1107 | 0 | datafloat_ = value; |
1108 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.datafloat) |
1109 | 0 | } |
1110 | | |
1111 | | // optional uint32 datau32 = 10; |
1112 | 0 | inline bool Person::has_datau32() const { |
1113 | 0 | return (_has_bits_[0] & 0x00000200u) != 0; |
1114 | 0 | } |
1115 | 0 | inline void Person::set_has_datau32() { |
1116 | 0 | _has_bits_[0] |= 0x00000200u; |
1117 | 0 | } |
1118 | 0 | inline void Person::clear_has_datau32() { |
1119 | 0 | _has_bits_[0] &= ~0x00000200u; |
1120 | 0 | } |
1121 | 0 | inline void Person::clear_datau32() { |
1122 | 0 | datau32_ = 0u; |
1123 | 0 | clear_has_datau32(); |
1124 | 0 | } |
1125 | 0 | inline ::google::protobuf::uint32 Person::datau32() const { |
1126 | | // @@protoc_insertion_point(field_get:addressbook.Person.datau32) |
1127 | 0 | return datau32_; |
1128 | 0 | } |
1129 | 0 | inline void Person::set_datau32(::google::protobuf::uint32 value) { |
1130 | 0 | set_has_datau32(); |
1131 | 0 | datau32_ = value; |
1132 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.datau32) |
1133 | 0 | } |
1134 | | |
1135 | | // optional uint64 datau64 = 11; |
1136 | 0 | inline bool Person::has_datau64() const { |
1137 | 0 | return (_has_bits_[0] & 0x00000400u) != 0; |
1138 | 0 | } |
1139 | 0 | inline void Person::set_has_datau64() { |
1140 | 0 | _has_bits_[0] |= 0x00000400u; |
1141 | 0 | } |
1142 | 0 | inline void Person::clear_has_datau64() { |
1143 | 0 | _has_bits_[0] &= ~0x00000400u; |
1144 | 0 | } |
1145 | 0 | inline void Person::clear_datau64() { |
1146 | 0 | datau64_ = GOOGLE_ULONGLONG(0); |
1147 | 0 | clear_has_datau64(); |
1148 | 0 | } |
1149 | 0 | inline ::google::protobuf::uint64 Person::datau64() const { |
1150 | | // @@protoc_insertion_point(field_get:addressbook.Person.datau64) |
1151 | 0 | return datau64_; |
1152 | 0 | } |
1153 | 0 | inline void Person::set_datau64(::google::protobuf::uint64 value) { |
1154 | 0 | set_has_datau64(); |
1155 | 0 | datau64_ = value; |
1156 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.datau64) |
1157 | 0 | } |
1158 | | |
1159 | | // optional bool databool = 12; |
1160 | 0 | inline bool Person::has_databool() const { |
1161 | 0 | return (_has_bits_[0] & 0x00000800u) != 0; |
1162 | 0 | } |
1163 | 0 | inline void Person::set_has_databool() { |
1164 | 0 | _has_bits_[0] |= 0x00000800u; |
1165 | 0 | } |
1166 | 0 | inline void Person::clear_has_databool() { |
1167 | 0 | _has_bits_[0] &= ~0x00000800u; |
1168 | 0 | } |
1169 | 0 | inline void Person::clear_databool() { |
1170 | 0 | databool_ = false; |
1171 | 0 | clear_has_databool(); |
1172 | 0 | } |
1173 | 0 | inline bool Person::databool() const { |
1174 | | // @@protoc_insertion_point(field_get:addressbook.Person.databool) |
1175 | 0 | return databool_; |
1176 | 0 | } |
1177 | 0 | inline void Person::set_databool(bool value) { |
1178 | 0 | set_has_databool(); |
1179 | 0 | databool_ = value; |
1180 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.databool) |
1181 | 0 | } |
1182 | | |
1183 | | // optional bytes databyte = 13; |
1184 | 0 | inline bool Person::has_databyte() const { |
1185 | 0 | return (_has_bits_[0] & 0x00000004u) != 0; |
1186 | 0 | } |
1187 | 0 | inline void Person::set_has_databyte() { |
1188 | 0 | _has_bits_[0] |= 0x00000004u; |
1189 | 0 | } |
1190 | 0 | inline void Person::clear_has_databyte() { |
1191 | 0 | _has_bits_[0] &= ~0x00000004u; |
1192 | 0 | } |
1193 | 0 | inline void Person::clear_databyte() { |
1194 | 0 | databyte_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1195 | 0 | clear_has_databyte(); |
1196 | 0 | } |
1197 | 0 | inline const ::std::string& Person::databyte() const { |
1198 | | // @@protoc_insertion_point(field_get:addressbook.Person.databyte) |
1199 | 0 | return databyte_.GetNoArena(); |
1200 | 0 | } |
1201 | 0 | inline void Person::set_databyte(const ::std::string& value) { |
1202 | 0 | set_has_databyte(); |
1203 | 0 | databyte_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
1204 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.databyte) |
1205 | 0 | } |
1206 | | #if LANG_CXX11 |
1207 | 0 | inline void Person::set_databyte(::std::string&& value) { |
1208 | 0 | set_has_databyte(); |
1209 | 0 | databyte_.SetNoArena( |
1210 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
1211 | 0 | // @@protoc_insertion_point(field_set_rvalue:addressbook.Person.databyte) |
1212 | 0 | } |
1213 | | #endif |
1214 | 0 | inline void Person::set_databyte(const char* value) { |
1215 | 0 | GOOGLE_DCHECK(value != NULL); |
1216 | 0 | set_has_databyte(); |
1217 | 0 | databyte_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
1218 | 0 | // @@protoc_insertion_point(field_set_char:addressbook.Person.databyte) |
1219 | 0 | } |
1220 | 0 | inline void Person::set_databyte(const void* value, size_t size) { |
1221 | 0 | set_has_databyte(); |
1222 | 0 | databyte_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
1223 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
1224 | 0 | // @@protoc_insertion_point(field_set_pointer:addressbook.Person.databyte) |
1225 | 0 | } |
1226 | 0 | inline ::std::string* Person::mutable_databyte() { |
1227 | 0 | set_has_databyte(); |
1228 | | // @@protoc_insertion_point(field_mutable:addressbook.Person.databyte) |
1229 | 0 | return databyte_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1230 | 0 | } |
1231 | 0 | inline ::std::string* Person::release_databyte() { |
1232 | 0 | // @@protoc_insertion_point(field_release:addressbook.Person.databyte) |
1233 | 0 | if (!has_databyte()) { |
1234 | 0 | return NULL; |
1235 | 0 | } |
1236 | 0 | clear_has_databyte(); |
1237 | 0 | return databyte_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1238 | 0 | } |
1239 | 0 | inline void Person::set_allocated_databyte(::std::string* databyte) { |
1240 | 0 | if (databyte != NULL) { |
1241 | 0 | set_has_databyte(); |
1242 | 0 | } else { |
1243 | 0 | clear_has_databyte(); |
1244 | 0 | } |
1245 | 0 | databyte_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), databyte); |
1246 | 0 | // @@protoc_insertion_point(field_set_allocated:addressbook.Person.databyte) |
1247 | 0 | } |
1248 | | |
1249 | | // optional fixed32 datafix32 = 14; |
1250 | 0 | inline bool Person::has_datafix32() const { |
1251 | 0 | return (_has_bits_[0] & 0x00001000u) != 0; |
1252 | 0 | } |
1253 | 0 | inline void Person::set_has_datafix32() { |
1254 | 0 | _has_bits_[0] |= 0x00001000u; |
1255 | 0 | } |
1256 | 0 | inline void Person::clear_has_datafix32() { |
1257 | 0 | _has_bits_[0] &= ~0x00001000u; |
1258 | 0 | } |
1259 | 0 | inline void Person::clear_datafix32() { |
1260 | 0 | datafix32_ = 0u; |
1261 | 0 | clear_has_datafix32(); |
1262 | 0 | } |
1263 | 0 | inline ::google::protobuf::uint32 Person::datafix32() const { |
1264 | | // @@protoc_insertion_point(field_get:addressbook.Person.datafix32) |
1265 | 0 | return datafix32_; |
1266 | 0 | } |
1267 | 0 | inline void Person::set_datafix32(::google::protobuf::uint32 value) { |
1268 | 0 | set_has_datafix32(); |
1269 | 0 | datafix32_ = value; |
1270 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.datafix32) |
1271 | 0 | } |
1272 | | |
1273 | | // optional fixed64 datafix64 = 15; |
1274 | 0 | inline bool Person::has_datafix64() const { |
1275 | 0 | return (_has_bits_[0] & 0x00002000u) != 0; |
1276 | 0 | } |
1277 | 0 | inline void Person::set_has_datafix64() { |
1278 | 0 | _has_bits_[0] |= 0x00002000u; |
1279 | 0 | } |
1280 | 0 | inline void Person::clear_has_datafix64() { |
1281 | 0 | _has_bits_[0] &= ~0x00002000u; |
1282 | 0 | } |
1283 | 0 | inline void Person::clear_datafix64() { |
1284 | 0 | datafix64_ = GOOGLE_ULONGLONG(0); |
1285 | 0 | clear_has_datafix64(); |
1286 | 0 | } |
1287 | 0 | inline ::google::protobuf::uint64 Person::datafix64() const { |
1288 | | // @@protoc_insertion_point(field_get:addressbook.Person.datafix64) |
1289 | 0 | return datafix64_; |
1290 | 0 | } |
1291 | 0 | inline void Person::set_datafix64(::google::protobuf::uint64 value) { |
1292 | 0 | set_has_datafix64(); |
1293 | 0 | datafix64_ = value; |
1294 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.datafix64) |
1295 | 0 | } |
1296 | | |
1297 | | // optional sfixed32 datasfix32 = 16; |
1298 | 0 | inline bool Person::has_datasfix32() const { |
1299 | 0 | return (_has_bits_[0] & 0x00008000u) != 0; |
1300 | 0 | } |
1301 | 0 | inline void Person::set_has_datasfix32() { |
1302 | 0 | _has_bits_[0] |= 0x00008000u; |
1303 | 0 | } |
1304 | 0 | inline void Person::clear_has_datasfix32() { |
1305 | 0 | _has_bits_[0] &= ~0x00008000u; |
1306 | 0 | } |
1307 | 0 | inline void Person::clear_datasfix32() { |
1308 | 0 | datasfix32_ = 0; |
1309 | 0 | clear_has_datasfix32(); |
1310 | 0 | } |
1311 | 0 | inline ::google::protobuf::int32 Person::datasfix32() const { |
1312 | | // @@protoc_insertion_point(field_get:addressbook.Person.datasfix32) |
1313 | 0 | return datasfix32_; |
1314 | 0 | } |
1315 | 0 | inline void Person::set_datasfix32(::google::protobuf::int32 value) { |
1316 | 0 | set_has_datasfix32(); |
1317 | 0 | datasfix32_ = value; |
1318 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.datasfix32) |
1319 | 0 | } |
1320 | | |
1321 | | // optional sfixed64 datasfix64 = 17; |
1322 | 0 | inline bool Person::has_datasfix64() const { |
1323 | 0 | return (_has_bits_[0] & 0x00004000u) != 0; |
1324 | 0 | } |
1325 | 0 | inline void Person::set_has_datasfix64() { |
1326 | 0 | _has_bits_[0] |= 0x00004000u; |
1327 | 0 | } |
1328 | 0 | inline void Person::clear_has_datasfix64() { |
1329 | 0 | _has_bits_[0] &= ~0x00004000u; |
1330 | 0 | } |
1331 | 0 | inline void Person::clear_datasfix64() { |
1332 | 0 | datasfix64_ = GOOGLE_LONGLONG(0); |
1333 | 0 | clear_has_datasfix64(); |
1334 | 0 | } |
1335 | 0 | inline ::google::protobuf::int64 Person::datasfix64() const { |
1336 | | // @@protoc_insertion_point(field_get:addressbook.Person.datasfix64) |
1337 | 0 | return datasfix64_; |
1338 | 0 | } |
1339 | 0 | inline void Person::set_datasfix64(::google::protobuf::int64 value) { |
1340 | 0 | set_has_datasfix64(); |
1341 | 0 | datasfix64_ = value; |
1342 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.datasfix64) |
1343 | 0 | } |
1344 | | |
1345 | | // optional float datafloat_scientific = 18; |
1346 | 0 | inline bool Person::has_datafloat_scientific() const { |
1347 | 0 | return (_has_bits_[0] & 0x00010000u) != 0; |
1348 | 0 | } |
1349 | 0 | inline void Person::set_has_datafloat_scientific() { |
1350 | 0 | _has_bits_[0] |= 0x00010000u; |
1351 | 0 | } |
1352 | 0 | inline void Person::clear_has_datafloat_scientific() { |
1353 | 0 | _has_bits_[0] &= ~0x00010000u; |
1354 | 0 | } |
1355 | 0 | inline void Person::clear_datafloat_scientific() { |
1356 | 0 | datafloat_scientific_ = 0; |
1357 | 0 | clear_has_datafloat_scientific(); |
1358 | 0 | } |
1359 | 0 | inline float Person::datafloat_scientific() const { |
1360 | | // @@protoc_insertion_point(field_get:addressbook.Person.datafloat_scientific) |
1361 | 0 | return datafloat_scientific_; |
1362 | 0 | } |
1363 | 0 | inline void Person::set_datafloat_scientific(float value) { |
1364 | 0 | set_has_datafloat_scientific(); |
1365 | 0 | datafloat_scientific_ = value; |
1366 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.datafloat_scientific) |
1367 | 0 | } |
1368 | | |
1369 | | // optional double datadouble_scientific = 19; |
1370 | 0 | inline bool Person::has_datadouble_scientific() const { |
1371 | 0 | return (_has_bits_[0] & 0x00020000u) != 0; |
1372 | 0 | } |
1373 | 0 | inline void Person::set_has_datadouble_scientific() { |
1374 | 0 | _has_bits_[0] |= 0x00020000u; |
1375 | 0 | } |
1376 | 0 | inline void Person::clear_has_datadouble_scientific() { |
1377 | 0 | _has_bits_[0] &= ~0x00020000u; |
1378 | 0 | } |
1379 | 0 | inline void Person::clear_datadouble_scientific() { |
1380 | 0 | datadouble_scientific_ = 0; |
1381 | 0 | clear_has_datadouble_scientific(); |
1382 | 0 | } |
1383 | 0 | inline double Person::datadouble_scientific() const { |
1384 | | // @@protoc_insertion_point(field_get:addressbook.Person.datadouble_scientific) |
1385 | 0 | return datadouble_scientific_; |
1386 | 0 | } |
1387 | 0 | inline void Person::set_datadouble_scientific(double value) { |
1388 | 0 | set_has_datadouble_scientific(); |
1389 | 0 | datadouble_scientific_ = value; |
1390 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.datadouble_scientific) |
1391 | 0 | } |
1392 | | |
1393 | | // ------------------------------------------------------------------- |
1394 | | |
1395 | | // AddressBook |
1396 | | |
1397 | | // repeated .addressbook.Person person = 1; |
1398 | 0 | inline int AddressBook::person_size() const { |
1399 | 0 | return person_.size(); |
1400 | 0 | } |
1401 | 0 | inline void AddressBook::clear_person() { |
1402 | 0 | person_.Clear(); |
1403 | 0 | } |
1404 | 0 | inline ::addressbook::Person* AddressBook::mutable_person(int index) { |
1405 | 0 | // @@protoc_insertion_point(field_mutable:addressbook.AddressBook.person) |
1406 | 0 | return person_.Mutable(index); |
1407 | 0 | } |
1408 | | inline ::google::protobuf::RepeatedPtrField< ::addressbook::Person >* |
1409 | 0 | AddressBook::mutable_person() { |
1410 | 0 | // @@protoc_insertion_point(field_mutable_list:addressbook.AddressBook.person) |
1411 | 0 | return &person_; |
1412 | 0 | } |
1413 | 0 | inline const ::addressbook::Person& AddressBook::person(int index) const { |
1414 | | // @@protoc_insertion_point(field_get:addressbook.AddressBook.person) |
1415 | 0 | return person_.Get(index); |
1416 | 0 | } |
1417 | 0 | inline ::addressbook::Person* AddressBook::add_person() { |
1418 | | // @@protoc_insertion_point(field_add:addressbook.AddressBook.person) |
1419 | 0 | return person_.Add(); |
1420 | 0 | } |
1421 | | inline const ::google::protobuf::RepeatedPtrField< ::addressbook::Person >& |
1422 | 0 | AddressBook::person() const { |
1423 | | // @@protoc_insertion_point(field_list:addressbook.AddressBook.person) |
1424 | 0 | return person_; |
1425 | 0 | } |
1426 | | |
1427 | | #ifdef __GNUC__ |
1428 | | #pragma GCC diagnostic pop |
1429 | | #endif // __GNUC__ |
1430 | | // ------------------------------------------------------------------- |
1431 | | |
1432 | | // ------------------------------------------------------------------- |
1433 | | |
1434 | | |
1435 | | // @@protoc_insertion_point(namespace_scope) |
1436 | | |
1437 | | } // namespace addressbook |
1438 | | |
1439 | | namespace google { |
1440 | | namespace protobuf { |
1441 | | |
1442 | | template <> struct is_proto_enum< ::addressbook::Person_PhoneType> : ::std::true_type {}; |
1443 | | template <> |
1444 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::addressbook::Person_PhoneType>() { |
1445 | 0 | return ::addressbook::Person_PhoneType_descriptor(); |
1446 | 0 | } |
1447 | | |
1448 | | } // namespace protobuf |
1449 | | } // namespace google |
1450 | | |
1451 | | // @@protoc_insertion_point(global_scope) |
1452 | | |
1453 | | #endif // PROTOBUF_INCLUDED_addressbook_2eproto |