/src/brpc/build/test/addressbook.pb.h
Line | Count | Source |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: addressbook.proto |
3 | | |
4 | | #ifndef GOOGLE_PROTOBUF_INCLUDED_addressbook_2eproto |
5 | | #define GOOGLE_PROTOBUF_INCLUDED_addressbook_2eproto |
6 | | |
7 | | #include <limits> |
8 | | #include <string> |
9 | | |
10 | | #include <google/protobuf/port_def.inc> |
11 | | #if PROTOBUF_VERSION < 3021000 |
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 3021012 < 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/port_undef.inc> |
23 | | #include <google/protobuf/io/coded_stream.h> |
24 | | #include <google/protobuf/arena.h> |
25 | | #include <google/protobuf/arenastring.h> |
26 | | #include <google/protobuf/generated_message_util.h> |
27 | | #include <google/protobuf/metadata_lite.h> |
28 | | #include <google/protobuf/generated_message_reflection.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 | | #include <google/protobuf/port_def.inc> |
36 | | #define PROTOBUF_INTERNAL_EXPORT_addressbook_2eproto |
37 | | PROTOBUF_NAMESPACE_OPEN |
38 | | namespace internal { |
39 | | class AnyMetadata; |
40 | | } // namespace internal |
41 | | PROTOBUF_NAMESPACE_CLOSE |
42 | | |
43 | | // Internal implementation detail -- do not use these members. |
44 | | struct TableStruct_addressbook_2eproto { |
45 | | static const uint32_t offsets[]; |
46 | | }; |
47 | | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_addressbook_2eproto; |
48 | | namespace addressbook { |
49 | | class AddressBook; |
50 | | struct AddressBookDefaultTypeInternal; |
51 | | extern AddressBookDefaultTypeInternal _AddressBook_default_instance_; |
52 | | class Person; |
53 | | struct PersonDefaultTypeInternal; |
54 | | extern PersonDefaultTypeInternal _Person_default_instance_; |
55 | | class Person_PhoneNumber; |
56 | | struct Person_PhoneNumberDefaultTypeInternal; |
57 | | extern Person_PhoneNumberDefaultTypeInternal _Person_PhoneNumber_default_instance_; |
58 | | } // namespace addressbook |
59 | | PROTOBUF_NAMESPACE_OPEN |
60 | | template<> ::addressbook::AddressBook* Arena::CreateMaybeMessage<::addressbook::AddressBook>(Arena*); |
61 | | template<> ::addressbook::Person* Arena::CreateMaybeMessage<::addressbook::Person>(Arena*); |
62 | | template<> ::addressbook::Person_PhoneNumber* Arena::CreateMaybeMessage<::addressbook::Person_PhoneNumber>(Arena*); |
63 | | PROTOBUF_NAMESPACE_CLOSE |
64 | | namespace addressbook { |
65 | | |
66 | | enum Person_PhoneType : int { |
67 | | Person_PhoneType_MOBILE = 0, |
68 | | Person_PhoneType_HOME = 1, |
69 | | Person_PhoneType_WORK = 2 |
70 | | }; |
71 | | bool Person_PhoneType_IsValid(int value); |
72 | | constexpr Person_PhoneType Person_PhoneType_PhoneType_MIN = Person_PhoneType_MOBILE; |
73 | | constexpr Person_PhoneType Person_PhoneType_PhoneType_MAX = Person_PhoneType_WORK; |
74 | | constexpr int Person_PhoneType_PhoneType_ARRAYSIZE = Person_PhoneType_PhoneType_MAX + 1; |
75 | | |
76 | | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Person_PhoneType_descriptor(); |
77 | | template<typename T> |
78 | | inline const std::string& Person_PhoneType_Name(T enum_t_value) { |
79 | | static_assert(::std::is_same<T, Person_PhoneType>::value || |
80 | | ::std::is_integral<T>::value, |
81 | | "Incorrect type passed to function Person_PhoneType_Name."); |
82 | | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
83 | | Person_PhoneType_descriptor(), enum_t_value); |
84 | | } |
85 | | inline bool Person_PhoneType_Parse( |
86 | 0 | ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Person_PhoneType* value) { |
87 | 0 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Person_PhoneType>( |
88 | 0 | Person_PhoneType_descriptor(), name, value); |
89 | 0 | } |
90 | | // =================================================================== |
91 | | |
92 | | class Person_PhoneNumber final : |
93 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:addressbook.Person.PhoneNumber) */ { |
94 | | public: |
95 | 0 | inline Person_PhoneNumber() : Person_PhoneNumber(nullptr) {} |
96 | | ~Person_PhoneNumber() override; |
97 | | explicit PROTOBUF_CONSTEXPR Person_PhoneNumber(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
98 | | |
99 | | Person_PhoneNumber(const Person_PhoneNumber& from); |
100 | | Person_PhoneNumber(Person_PhoneNumber&& from) noexcept |
101 | 0 | : Person_PhoneNumber() { |
102 | 0 | *this = ::std::move(from); |
103 | 0 | } |
104 | | |
105 | 0 | inline Person_PhoneNumber& operator=(const Person_PhoneNumber& from) { |
106 | 0 | CopyFrom(from); |
107 | 0 | return *this; |
108 | 0 | } |
109 | 0 | inline Person_PhoneNumber& operator=(Person_PhoneNumber&& from) noexcept { |
110 | 0 | if (this == &from) return *this; |
111 | 0 | if (GetOwningArena() == from.GetOwningArena() |
112 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
113 | 0 | && GetOwningArena() != nullptr |
114 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
115 | 0 | ) { |
116 | 0 | InternalSwap(&from); |
117 | 0 | } else { |
118 | 0 | CopyFrom(from); |
119 | 0 | } |
120 | 0 | return *this; |
121 | 0 | } |
122 | | |
123 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
124 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
125 | 0 | } |
126 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
127 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
128 | 0 | } |
129 | | |
130 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
131 | 0 | return GetDescriptor(); |
132 | 0 | } |
133 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
134 | 0 | return default_instance().GetMetadata().descriptor; |
135 | 0 | } |
136 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
137 | 0 | return default_instance().GetMetadata().reflection; |
138 | 0 | } |
139 | 0 | static const Person_PhoneNumber& default_instance() { |
140 | 0 | return *internal_default_instance(); |
141 | 0 | } |
142 | 0 | static inline const Person_PhoneNumber* internal_default_instance() { |
143 | 0 | return reinterpret_cast<const Person_PhoneNumber*>( |
144 | 0 | &_Person_PhoneNumber_default_instance_); |
145 | 0 | } |
146 | | static constexpr int kIndexInFileMessages = |
147 | | 0; |
148 | | |
149 | 0 | friend void swap(Person_PhoneNumber& a, Person_PhoneNumber& b) { |
150 | 0 | a.Swap(&b); |
151 | 0 | } |
152 | 0 | inline void Swap(Person_PhoneNumber* other) { |
153 | 0 | if (other == this) return; |
154 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
155 | 0 | if (GetOwningArena() != nullptr && |
156 | 0 | GetOwningArena() == other->GetOwningArena()) { |
157 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
158 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
159 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
160 | 0 | InternalSwap(other); |
161 | 0 | } else { |
162 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
163 | 0 | } |
164 | 0 | } |
165 | 0 | void UnsafeArenaSwap(Person_PhoneNumber* other) { |
166 | 0 | if (other == this) return; |
167 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
168 | 0 | InternalSwap(other); |
169 | 0 | } |
170 | | |
171 | | // implements Message ---------------------------------------------- |
172 | | |
173 | 0 | Person_PhoneNumber* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
174 | 0 | return CreateMaybeMessage<Person_PhoneNumber>(arena); |
175 | 0 | } |
176 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
177 | | void CopyFrom(const Person_PhoneNumber& from); |
178 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
179 | 0 | void MergeFrom( const Person_PhoneNumber& from) { |
180 | 0 | Person_PhoneNumber::MergeImpl(*this, from); |
181 | 0 | } |
182 | | private: |
183 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
184 | | public: |
185 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
186 | | bool IsInitialized() const final; |
187 | | |
188 | | size_t ByteSizeLong() const final; |
189 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
190 | | uint8_t* _InternalSerialize( |
191 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
192 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
193 | | |
194 | | private: |
195 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
196 | | void SharedDtor(); |
197 | | void SetCachedSize(int size) const final; |
198 | | void InternalSwap(Person_PhoneNumber* other); |
199 | | |
200 | | private: |
201 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
202 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
203 | 0 | return "addressbook.Person.PhoneNumber"; |
204 | 0 | } |
205 | | protected: |
206 | | explicit Person_PhoneNumber(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
207 | | bool is_message_owned = false); |
208 | | public: |
209 | | |
210 | | static const ClassData _class_data_; |
211 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
212 | | |
213 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
214 | | |
215 | | // nested types ---------------------------------------------------- |
216 | | |
217 | | // accessors ------------------------------------------------------- |
218 | | |
219 | | enum : int { |
220 | | kNumberFieldNumber = 1, |
221 | | kTypeFieldNumber = 2, |
222 | | }; |
223 | | // required string number = 1; |
224 | | bool has_number() const; |
225 | | private: |
226 | | bool _internal_has_number() const; |
227 | | public: |
228 | | void clear_number(); |
229 | | const std::string& number() const; |
230 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
231 | | void set_number(ArgT0&& arg0, ArgT... args); |
232 | | std::string* mutable_number(); |
233 | | PROTOBUF_NODISCARD std::string* release_number(); |
234 | | void set_allocated_number(std::string* number); |
235 | | private: |
236 | | const std::string& _internal_number() const; |
237 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_number(const std::string& value); |
238 | | std::string* _internal_mutable_number(); |
239 | | public: |
240 | | |
241 | | // optional .addressbook.Person.PhoneType type = 2 [default = HOME]; |
242 | | bool has_type() const; |
243 | | private: |
244 | | bool _internal_has_type() const; |
245 | | public: |
246 | | void clear_type(); |
247 | | ::addressbook::Person_PhoneType type() const; |
248 | | void set_type(::addressbook::Person_PhoneType value); |
249 | | private: |
250 | | ::addressbook::Person_PhoneType _internal_type() const; |
251 | | void _internal_set_type(::addressbook::Person_PhoneType value); |
252 | | public: |
253 | | |
254 | | // @@protoc_insertion_point(class_scope:addressbook.Person.PhoneNumber) |
255 | | private: |
256 | | class _Internal; |
257 | | |
258 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
259 | | typedef void InternalArenaConstructable_; |
260 | | typedef void DestructorSkippable_; |
261 | | struct Impl_ { |
262 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
263 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
264 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr number_; |
265 | | int type_; |
266 | | }; |
267 | | union { Impl_ _impl_; }; |
268 | | friend struct ::TableStruct_addressbook_2eproto; |
269 | | }; |
270 | | // ------------------------------------------------------------------- |
271 | | |
272 | | class Person final : |
273 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:addressbook.Person) */ { |
274 | | public: |
275 | 0 | inline Person() : Person(nullptr) {} |
276 | | ~Person() override; |
277 | | explicit PROTOBUF_CONSTEXPR Person(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
278 | | |
279 | | Person(const Person& from); |
280 | | Person(Person&& from) noexcept |
281 | 0 | : Person() { |
282 | 0 | *this = ::std::move(from); |
283 | 0 | } |
284 | | |
285 | 0 | inline Person& operator=(const Person& from) { |
286 | 0 | CopyFrom(from); |
287 | 0 | return *this; |
288 | 0 | } |
289 | 0 | inline Person& operator=(Person&& from) noexcept { |
290 | 0 | if (this == &from) return *this; |
291 | 0 | if (GetOwningArena() == from.GetOwningArena() |
292 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
293 | 0 | && GetOwningArena() != nullptr |
294 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
295 | 0 | ) { |
296 | 0 | InternalSwap(&from); |
297 | 0 | } else { |
298 | 0 | CopyFrom(from); |
299 | 0 | } |
300 | 0 | return *this; |
301 | 0 | } |
302 | | |
303 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
304 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
305 | 0 | } |
306 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
307 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
308 | 0 | } |
309 | | |
310 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
311 | 0 | return GetDescriptor(); |
312 | 0 | } |
313 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
314 | 0 | return default_instance().GetMetadata().descriptor; |
315 | 0 | } |
316 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
317 | 0 | return default_instance().GetMetadata().reflection; |
318 | 0 | } |
319 | 2 | static const Person& default_instance() { |
320 | 2 | return *internal_default_instance(); |
321 | 2 | } |
322 | 2 | static inline const Person* internal_default_instance() { |
323 | 2 | return reinterpret_cast<const Person*>( |
324 | 2 | &_Person_default_instance_); |
325 | 2 | } |
326 | | static constexpr int kIndexInFileMessages = |
327 | | 1; |
328 | | |
329 | 0 | friend void swap(Person& a, Person& b) { |
330 | 0 | a.Swap(&b); |
331 | 0 | } |
332 | 0 | inline void Swap(Person* other) { |
333 | 0 | if (other == this) return; |
334 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
335 | 0 | if (GetOwningArena() != nullptr && |
336 | 0 | GetOwningArena() == other->GetOwningArena()) { |
337 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
338 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
339 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
340 | 0 | InternalSwap(other); |
341 | 0 | } else { |
342 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
343 | 0 | } |
344 | 0 | } |
345 | 0 | void UnsafeArenaSwap(Person* other) { |
346 | 0 | if (other == this) return; |
347 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
348 | 0 | InternalSwap(other); |
349 | 0 | } |
350 | | |
351 | | // implements Message ---------------------------------------------- |
352 | | |
353 | 0 | Person* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
354 | 0 | return CreateMaybeMessage<Person>(arena); |
355 | 0 | } |
356 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
357 | | void CopyFrom(const Person& from); |
358 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
359 | 0 | void MergeFrom( const Person& from) { |
360 | 0 | Person::MergeImpl(*this, from); |
361 | 0 | } |
362 | | private: |
363 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
364 | | public: |
365 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
366 | | bool IsInitialized() const final; |
367 | | |
368 | | size_t ByteSizeLong() const final; |
369 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
370 | | uint8_t* _InternalSerialize( |
371 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
372 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
373 | | |
374 | | private: |
375 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
376 | | void SharedDtor(); |
377 | | void SetCachedSize(int size) const final; |
378 | | void InternalSwap(Person* other); |
379 | | |
380 | | private: |
381 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
382 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
383 | 0 | return "addressbook.Person"; |
384 | 0 | } |
385 | | protected: |
386 | | explicit Person(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
387 | | bool is_message_owned = false); |
388 | | public: |
389 | | |
390 | | static const ClassData _class_data_; |
391 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
392 | | |
393 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
394 | | |
395 | | // nested types ---------------------------------------------------- |
396 | | |
397 | | typedef Person_PhoneNumber PhoneNumber; |
398 | | |
399 | | typedef Person_PhoneType PhoneType; |
400 | | static constexpr PhoneType MOBILE = |
401 | | Person_PhoneType_MOBILE; |
402 | | static constexpr PhoneType HOME = |
403 | | Person_PhoneType_HOME; |
404 | | static constexpr PhoneType WORK = |
405 | | Person_PhoneType_WORK; |
406 | 0 | static inline bool PhoneType_IsValid(int value) { |
407 | 0 | return Person_PhoneType_IsValid(value); |
408 | 0 | } |
409 | | static constexpr PhoneType PhoneType_MIN = |
410 | | Person_PhoneType_PhoneType_MIN; |
411 | | static constexpr PhoneType PhoneType_MAX = |
412 | | Person_PhoneType_PhoneType_MAX; |
413 | | static constexpr int PhoneType_ARRAYSIZE = |
414 | | Person_PhoneType_PhoneType_ARRAYSIZE; |
415 | | static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* |
416 | 0 | PhoneType_descriptor() { |
417 | 0 | return Person_PhoneType_descriptor(); |
418 | 0 | } |
419 | | template<typename T> |
420 | | static inline const std::string& PhoneType_Name(T enum_t_value) { |
421 | | static_assert(::std::is_same<T, PhoneType>::value || |
422 | | ::std::is_integral<T>::value, |
423 | | "Incorrect type passed to function PhoneType_Name."); |
424 | | return Person_PhoneType_Name(enum_t_value); |
425 | | } |
426 | | static inline bool PhoneType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, |
427 | 0 | PhoneType* value) { |
428 | 0 | return Person_PhoneType_Parse(name, value); |
429 | 0 | } |
430 | | |
431 | | // accessors ------------------------------------------------------- |
432 | | |
433 | | enum : int { |
434 | | kPhoneFieldNumber = 4, |
435 | | kNameFieldNumber = 1, |
436 | | kEmailFieldNumber = 3, |
437 | | kDatabyteFieldNumber = 13, |
438 | | kIdFieldNumber = 2, |
439 | | kData32FieldNumber = 6, |
440 | | kDataFieldNumber = 5, |
441 | | kData64FieldNumber = 7, |
442 | | kDatadoubleFieldNumber = 8, |
443 | | kDatafloatFieldNumber = 9, |
444 | | kDatau32FieldNumber = 10, |
445 | | kDatau64FieldNumber = 11, |
446 | | kDataboolFieldNumber = 12, |
447 | | kDatafix32FieldNumber = 14, |
448 | | kDatafix64FieldNumber = 15, |
449 | | kDatasfix64FieldNumber = 17, |
450 | | kDatasfix32FieldNumber = 16, |
451 | | kDatafloatScientificFieldNumber = 18, |
452 | | kDatadoubleScientificFieldNumber = 19, |
453 | | }; |
454 | | // repeated .addressbook.Person.PhoneNumber phone = 4; |
455 | | int phone_size() const; |
456 | | private: |
457 | | int _internal_phone_size() const; |
458 | | public: |
459 | | void clear_phone(); |
460 | | ::addressbook::Person_PhoneNumber* mutable_phone(int index); |
461 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::addressbook::Person_PhoneNumber >* |
462 | | mutable_phone(); |
463 | | private: |
464 | | const ::addressbook::Person_PhoneNumber& _internal_phone(int index) const; |
465 | | ::addressbook::Person_PhoneNumber* _internal_add_phone(); |
466 | | public: |
467 | | const ::addressbook::Person_PhoneNumber& phone(int index) const; |
468 | | ::addressbook::Person_PhoneNumber* add_phone(); |
469 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::addressbook::Person_PhoneNumber >& |
470 | | phone() const; |
471 | | |
472 | | // required string name = 1; |
473 | | bool has_name() const; |
474 | | private: |
475 | | bool _internal_has_name() const; |
476 | | public: |
477 | | void clear_name(); |
478 | | const std::string& name() const; |
479 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
480 | | void set_name(ArgT0&& arg0, ArgT... args); |
481 | | std::string* mutable_name(); |
482 | | PROTOBUF_NODISCARD std::string* release_name(); |
483 | | void set_allocated_name(std::string* name); |
484 | | private: |
485 | | const std::string& _internal_name() const; |
486 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); |
487 | | std::string* _internal_mutable_name(); |
488 | | public: |
489 | | |
490 | | // optional string email = 3; |
491 | | bool has_email() const; |
492 | | private: |
493 | | bool _internal_has_email() const; |
494 | | public: |
495 | | void clear_email(); |
496 | | const std::string& email() const; |
497 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
498 | | void set_email(ArgT0&& arg0, ArgT... args); |
499 | | std::string* mutable_email(); |
500 | | PROTOBUF_NODISCARD std::string* release_email(); |
501 | | void set_allocated_email(std::string* email); |
502 | | private: |
503 | | const std::string& _internal_email() const; |
504 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_email(const std::string& value); |
505 | | std::string* _internal_mutable_email(); |
506 | | public: |
507 | | |
508 | | // optional bytes databyte = 13; |
509 | | bool has_databyte() const; |
510 | | private: |
511 | | bool _internal_has_databyte() const; |
512 | | public: |
513 | | void clear_databyte(); |
514 | | const std::string& databyte() const; |
515 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
516 | | void set_databyte(ArgT0&& arg0, ArgT... args); |
517 | | std::string* mutable_databyte(); |
518 | | PROTOBUF_NODISCARD std::string* release_databyte(); |
519 | | void set_allocated_databyte(std::string* databyte); |
520 | | private: |
521 | | const std::string& _internal_databyte() const; |
522 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_databyte(const std::string& value); |
523 | | std::string* _internal_mutable_databyte(); |
524 | | public: |
525 | | |
526 | | // required int32 id = 2; |
527 | | bool has_id() const; |
528 | | private: |
529 | | bool _internal_has_id() const; |
530 | | public: |
531 | | void clear_id(); |
532 | | int32_t id() const; |
533 | | void set_id(int32_t value); |
534 | | private: |
535 | | int32_t _internal_id() const; |
536 | | void _internal_set_id(int32_t value); |
537 | | public: |
538 | | |
539 | | // optional sint32 data32 = 6; |
540 | | bool has_data32() const; |
541 | | private: |
542 | | bool _internal_has_data32() const; |
543 | | public: |
544 | | void clear_data32(); |
545 | | int32_t data32() const; |
546 | | void set_data32(int32_t value); |
547 | | private: |
548 | | int32_t _internal_data32() const; |
549 | | void _internal_set_data32(int32_t value); |
550 | | public: |
551 | | |
552 | | // optional int64 data = 5; |
553 | | bool has_data() const; |
554 | | private: |
555 | | bool _internal_has_data() const; |
556 | | public: |
557 | | void clear_data(); |
558 | | int64_t data() const; |
559 | | void set_data(int64_t value); |
560 | | private: |
561 | | int64_t _internal_data() const; |
562 | | void _internal_set_data(int64_t value); |
563 | | public: |
564 | | |
565 | | // optional sint64 data64 = 7; |
566 | | bool has_data64() const; |
567 | | private: |
568 | | bool _internal_has_data64() const; |
569 | | public: |
570 | | void clear_data64(); |
571 | | int64_t data64() const; |
572 | | void set_data64(int64_t value); |
573 | | private: |
574 | | int64_t _internal_data64() const; |
575 | | void _internal_set_data64(int64_t value); |
576 | | public: |
577 | | |
578 | | // required double datadouble = 8; |
579 | | bool has_datadouble() const; |
580 | | private: |
581 | | bool _internal_has_datadouble() const; |
582 | | public: |
583 | | void clear_datadouble(); |
584 | | double datadouble() const; |
585 | | void set_datadouble(double value); |
586 | | private: |
587 | | double _internal_datadouble() const; |
588 | | void _internal_set_datadouble(double value); |
589 | | public: |
590 | | |
591 | | // optional float datafloat = 9; |
592 | | bool has_datafloat() const; |
593 | | private: |
594 | | bool _internal_has_datafloat() const; |
595 | | public: |
596 | | void clear_datafloat(); |
597 | | float datafloat() const; |
598 | | void set_datafloat(float value); |
599 | | private: |
600 | | float _internal_datafloat() const; |
601 | | void _internal_set_datafloat(float value); |
602 | | public: |
603 | | |
604 | | // optional uint32 datau32 = 10; |
605 | | bool has_datau32() const; |
606 | | private: |
607 | | bool _internal_has_datau32() const; |
608 | | public: |
609 | | void clear_datau32(); |
610 | | uint32_t datau32() const; |
611 | | void set_datau32(uint32_t value); |
612 | | private: |
613 | | uint32_t _internal_datau32() const; |
614 | | void _internal_set_datau32(uint32_t value); |
615 | | public: |
616 | | |
617 | | // optional uint64 datau64 = 11; |
618 | | bool has_datau64() const; |
619 | | private: |
620 | | bool _internal_has_datau64() const; |
621 | | public: |
622 | | void clear_datau64(); |
623 | | uint64_t datau64() const; |
624 | | void set_datau64(uint64_t value); |
625 | | private: |
626 | | uint64_t _internal_datau64() const; |
627 | | void _internal_set_datau64(uint64_t value); |
628 | | public: |
629 | | |
630 | | // optional bool databool = 12; |
631 | | bool has_databool() const; |
632 | | private: |
633 | | bool _internal_has_databool() const; |
634 | | public: |
635 | | void clear_databool(); |
636 | | bool databool() const; |
637 | | void set_databool(bool value); |
638 | | private: |
639 | | bool _internal_databool() const; |
640 | | void _internal_set_databool(bool value); |
641 | | public: |
642 | | |
643 | | // optional fixed32 datafix32 = 14; |
644 | | bool has_datafix32() const; |
645 | | private: |
646 | | bool _internal_has_datafix32() const; |
647 | | public: |
648 | | void clear_datafix32(); |
649 | | uint32_t datafix32() const; |
650 | | void set_datafix32(uint32_t value); |
651 | | private: |
652 | | uint32_t _internal_datafix32() const; |
653 | | void _internal_set_datafix32(uint32_t value); |
654 | | public: |
655 | | |
656 | | // optional fixed64 datafix64 = 15; |
657 | | bool has_datafix64() const; |
658 | | private: |
659 | | bool _internal_has_datafix64() const; |
660 | | public: |
661 | | void clear_datafix64(); |
662 | | uint64_t datafix64() const; |
663 | | void set_datafix64(uint64_t value); |
664 | | private: |
665 | | uint64_t _internal_datafix64() const; |
666 | | void _internal_set_datafix64(uint64_t value); |
667 | | public: |
668 | | |
669 | | // optional sfixed64 datasfix64 = 17; |
670 | | bool has_datasfix64() const; |
671 | | private: |
672 | | bool _internal_has_datasfix64() const; |
673 | | public: |
674 | | void clear_datasfix64(); |
675 | | int64_t datasfix64() const; |
676 | | void set_datasfix64(int64_t value); |
677 | | private: |
678 | | int64_t _internal_datasfix64() const; |
679 | | void _internal_set_datasfix64(int64_t value); |
680 | | public: |
681 | | |
682 | | // optional sfixed32 datasfix32 = 16; |
683 | | bool has_datasfix32() const; |
684 | | private: |
685 | | bool _internal_has_datasfix32() const; |
686 | | public: |
687 | | void clear_datasfix32(); |
688 | | int32_t datasfix32() const; |
689 | | void set_datasfix32(int32_t value); |
690 | | private: |
691 | | int32_t _internal_datasfix32() const; |
692 | | void _internal_set_datasfix32(int32_t value); |
693 | | public: |
694 | | |
695 | | // optional float datafloat_scientific = 18; |
696 | | bool has_datafloat_scientific() const; |
697 | | private: |
698 | | bool _internal_has_datafloat_scientific() const; |
699 | | public: |
700 | | void clear_datafloat_scientific(); |
701 | | float datafloat_scientific() const; |
702 | | void set_datafloat_scientific(float value); |
703 | | private: |
704 | | float _internal_datafloat_scientific() const; |
705 | | void _internal_set_datafloat_scientific(float value); |
706 | | public: |
707 | | |
708 | | // optional double datadouble_scientific = 19; |
709 | | bool has_datadouble_scientific() const; |
710 | | private: |
711 | | bool _internal_has_datadouble_scientific() const; |
712 | | public: |
713 | | void clear_datadouble_scientific(); |
714 | | double datadouble_scientific() const; |
715 | | void set_datadouble_scientific(double value); |
716 | | private: |
717 | | double _internal_datadouble_scientific() const; |
718 | | void _internal_set_datadouble_scientific(double value); |
719 | | public: |
720 | | |
721 | | |
722 | | template <typename _proto_TypeTraits, |
723 | | ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, |
724 | | bool _is_packed> |
725 | | inline bool HasExtension( |
726 | | const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< |
727 | | Person, _proto_TypeTraits, _field_type, _is_packed>& id) const { |
728 | | |
729 | | return _impl_._extensions_.Has(id.number()); |
730 | | } |
731 | | |
732 | | template <typename _proto_TypeTraits, |
733 | | ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, |
734 | | bool _is_packed> |
735 | | inline void ClearExtension( |
736 | | const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< |
737 | | Person, _proto_TypeTraits, _field_type, _is_packed>& id) { |
738 | | _impl_._extensions_.ClearExtension(id.number()); |
739 | | |
740 | | } |
741 | | |
742 | | template <typename _proto_TypeTraits, |
743 | | ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, |
744 | | bool _is_packed> |
745 | | inline int ExtensionSize( |
746 | | const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< |
747 | | Person, _proto_TypeTraits, _field_type, _is_packed>& id) const { |
748 | | |
749 | | return _impl_._extensions_.ExtensionSize(id.number()); |
750 | | } |
751 | | |
752 | | template <typename _proto_TypeTraits, |
753 | | ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, |
754 | | bool _is_packed> |
755 | | inline typename _proto_TypeTraits::Singular::ConstType GetExtension( |
756 | | const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< |
757 | | Person, _proto_TypeTraits, _field_type, _is_packed>& id) const { |
758 | | |
759 | | return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, |
760 | | id.default_value()); |
761 | | } |
762 | | |
763 | | template <typename _proto_TypeTraits, |
764 | | ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, |
765 | | bool _is_packed> |
766 | | inline typename _proto_TypeTraits::Singular::MutableType MutableExtension( |
767 | | const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< |
768 | | Person, _proto_TypeTraits, _field_type, _is_packed>& id) { |
769 | | |
770 | | return _proto_TypeTraits::Mutable(id.number(), _field_type, |
771 | | &_impl_._extensions_); |
772 | | } |
773 | | |
774 | | template <typename _proto_TypeTraits, |
775 | | ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, |
776 | | bool _is_packed> |
777 | | inline void SetExtension( |
778 | | const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< |
779 | | Person, _proto_TypeTraits, _field_type, _is_packed>& id, |
780 | | typename _proto_TypeTraits::Singular::ConstType value) { |
781 | | _proto_TypeTraits::Set(id.number(), _field_type, value, &_impl_._extensions_); |
782 | | |
783 | | } |
784 | | |
785 | | template <typename _proto_TypeTraits, |
786 | | ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, |
787 | | bool _is_packed> |
788 | | inline void SetAllocatedExtension( |
789 | | const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< |
790 | | Person, _proto_TypeTraits, _field_type, _is_packed>& id, |
791 | | typename _proto_TypeTraits::Singular::MutableType value) { |
792 | | _proto_TypeTraits::SetAllocated(id.number(), _field_type, value, |
793 | | &_impl_._extensions_); |
794 | | |
795 | | } |
796 | | template <typename _proto_TypeTraits, |
797 | | ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, |
798 | | bool _is_packed> |
799 | | inline void UnsafeArenaSetAllocatedExtension( |
800 | | const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< |
801 | | Person, _proto_TypeTraits, _field_type, _is_packed>& id, |
802 | | typename _proto_TypeTraits::Singular::MutableType value) { |
803 | | _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type, |
804 | | value, &_impl_._extensions_); |
805 | | |
806 | | } |
807 | | template <typename _proto_TypeTraits, |
808 | | ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, |
809 | | bool _is_packed> |
810 | | PROTOBUF_NODISCARD inline |
811 | | typename _proto_TypeTraits::Singular::MutableType |
812 | | ReleaseExtension( |
813 | | const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< |
814 | | Person, _proto_TypeTraits, _field_type, _is_packed>& id) { |
815 | | |
816 | | return _proto_TypeTraits::Release(id.number(), _field_type, |
817 | | &_impl_._extensions_); |
818 | | } |
819 | | template <typename _proto_TypeTraits, |
820 | | ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, |
821 | | bool _is_packed> |
822 | | inline typename _proto_TypeTraits::Singular::MutableType |
823 | | UnsafeArenaReleaseExtension( |
824 | | const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< |
825 | | Person, _proto_TypeTraits, _field_type, _is_packed>& id) { |
826 | | |
827 | | return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type, |
828 | | &_impl_._extensions_); |
829 | | } |
830 | | |
831 | | template <typename _proto_TypeTraits, |
832 | | ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, |
833 | | bool _is_packed> |
834 | | inline typename _proto_TypeTraits::Repeated::ConstType GetExtension( |
835 | | const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< |
836 | | Person, _proto_TypeTraits, _field_type, _is_packed>& id, |
837 | | int index) const { |
838 | | |
839 | | return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, index); |
840 | | } |
841 | | |
842 | | template <typename _proto_TypeTraits, |
843 | | ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, |
844 | | bool _is_packed> |
845 | | inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension( |
846 | | const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< |
847 | | Person, _proto_TypeTraits, _field_type, _is_packed>& id, |
848 | | int index) { |
849 | | |
850 | | return _proto_TypeTraits::Mutable(id.number(), index, &_impl_._extensions_); |
851 | | } |
852 | | |
853 | | template <typename _proto_TypeTraits, |
854 | | ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, |
855 | | bool _is_packed> |
856 | | inline void SetExtension( |
857 | | const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< |
858 | | Person, _proto_TypeTraits, _field_type, _is_packed>& id, |
859 | | int index, typename _proto_TypeTraits::Repeated::ConstType value) { |
860 | | _proto_TypeTraits::Set(id.number(), index, value, &_impl_._extensions_); |
861 | | |
862 | | } |
863 | | |
864 | | template <typename _proto_TypeTraits, |
865 | | ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, |
866 | | bool _is_packed> |
867 | | inline typename _proto_TypeTraits::Repeated::MutableType AddExtension( |
868 | | const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< |
869 | | Person, _proto_TypeTraits, _field_type, _is_packed>& id) { |
870 | | typename _proto_TypeTraits::Repeated::MutableType to_add = |
871 | | _proto_TypeTraits::Add(id.number(), _field_type, &_impl_._extensions_); |
872 | | |
873 | | return to_add; |
874 | | } |
875 | | |
876 | | template <typename _proto_TypeTraits, |
877 | | ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, |
878 | | bool _is_packed> |
879 | | inline void AddExtension( |
880 | | const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< |
881 | | Person, _proto_TypeTraits, _field_type, _is_packed>& id, |
882 | | typename _proto_TypeTraits::Repeated::ConstType value) { |
883 | | _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value, |
884 | | &_impl_._extensions_); |
885 | | |
886 | | } |
887 | | |
888 | | template <typename _proto_TypeTraits, |
889 | | ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, |
890 | | bool _is_packed> |
891 | | inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType& |
892 | | GetRepeatedExtension( |
893 | | const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< |
894 | | Person, _proto_TypeTraits, _field_type, _is_packed>& id) const { |
895 | | |
896 | | return _proto_TypeTraits::GetRepeated(id.number(), _impl_._extensions_); |
897 | | } |
898 | | |
899 | | template <typename _proto_TypeTraits, |
900 | | ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, |
901 | | bool _is_packed> |
902 | | inline typename _proto_TypeTraits::Repeated::RepeatedFieldType* |
903 | | MutableRepeatedExtension( |
904 | | const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< |
905 | | Person, _proto_TypeTraits, _field_type, _is_packed>& id) { |
906 | | |
907 | | return _proto_TypeTraits::MutableRepeated(id.number(), _field_type, |
908 | | _is_packed, &_impl_._extensions_); |
909 | | } |
910 | | |
911 | | // @@protoc_insertion_point(class_scope:addressbook.Person) |
912 | | private: |
913 | | class _Internal; |
914 | | |
915 | | // helper for ByteSizeLong() |
916 | | size_t RequiredFieldsByteSizeFallback() const; |
917 | | |
918 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
919 | | typedef void InternalArenaConstructable_; |
920 | | typedef void DestructorSkippable_; |
921 | | struct Impl_ { |
922 | | ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_; |
923 | | |
924 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
925 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
926 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::addressbook::Person_PhoneNumber > phone_; |
927 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; |
928 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr email_; |
929 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr databyte_; |
930 | | int32_t id_; |
931 | | int32_t data32_; |
932 | | int64_t data_; |
933 | | int64_t data64_; |
934 | | double datadouble_; |
935 | | float datafloat_; |
936 | | uint32_t datau32_; |
937 | | uint64_t datau64_; |
938 | | bool databool_; |
939 | | uint32_t datafix32_; |
940 | | uint64_t datafix64_; |
941 | | int64_t datasfix64_; |
942 | | int32_t datasfix32_; |
943 | | float datafloat_scientific_; |
944 | | double datadouble_scientific_; |
945 | | }; |
946 | | union { Impl_ _impl_; }; |
947 | | friend struct ::TableStruct_addressbook_2eproto; |
948 | | }; |
949 | | // ------------------------------------------------------------------- |
950 | | |
951 | | class AddressBook final : |
952 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:addressbook.AddressBook) */ { |
953 | | public: |
954 | 0 | inline AddressBook() : AddressBook(nullptr) {} |
955 | | ~AddressBook() override; |
956 | | explicit PROTOBUF_CONSTEXPR AddressBook(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
957 | | |
958 | | AddressBook(const AddressBook& from); |
959 | | AddressBook(AddressBook&& from) noexcept |
960 | 0 | : AddressBook() { |
961 | 0 | *this = ::std::move(from); |
962 | 0 | } |
963 | | |
964 | 0 | inline AddressBook& operator=(const AddressBook& from) { |
965 | 0 | CopyFrom(from); |
966 | 0 | return *this; |
967 | 0 | } |
968 | 0 | inline AddressBook& operator=(AddressBook&& from) noexcept { |
969 | 0 | if (this == &from) return *this; |
970 | 0 | if (GetOwningArena() == from.GetOwningArena() |
971 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
972 | 0 | && GetOwningArena() != nullptr |
973 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
974 | 0 | ) { |
975 | 0 | InternalSwap(&from); |
976 | 0 | } else { |
977 | 0 | CopyFrom(from); |
978 | 0 | } |
979 | 0 | return *this; |
980 | 0 | } |
981 | | |
982 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
983 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
984 | 0 | } |
985 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
986 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
987 | 0 | } |
988 | | |
989 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
990 | 0 | return GetDescriptor(); |
991 | 0 | } |
992 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
993 | 0 | return default_instance().GetMetadata().descriptor; |
994 | 0 | } |
995 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
996 | 0 | return default_instance().GetMetadata().reflection; |
997 | 0 | } |
998 | 0 | static const AddressBook& default_instance() { |
999 | 0 | return *internal_default_instance(); |
1000 | 0 | } |
1001 | 0 | static inline const AddressBook* internal_default_instance() { |
1002 | 0 | return reinterpret_cast<const AddressBook*>( |
1003 | 0 | &_AddressBook_default_instance_); |
1004 | 0 | } |
1005 | | static constexpr int kIndexInFileMessages = |
1006 | | 2; |
1007 | | |
1008 | 0 | friend void swap(AddressBook& a, AddressBook& b) { |
1009 | 0 | a.Swap(&b); |
1010 | 0 | } |
1011 | 0 | inline void Swap(AddressBook* other) { |
1012 | 0 | if (other == this) return; |
1013 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
1014 | 0 | if (GetOwningArena() != nullptr && |
1015 | 0 | GetOwningArena() == other->GetOwningArena()) { |
1016 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
1017 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
1018 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
1019 | 0 | InternalSwap(other); |
1020 | 0 | } else { |
1021 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1022 | 0 | } |
1023 | 0 | } |
1024 | 0 | void UnsafeArenaSwap(AddressBook* other) { |
1025 | 0 | if (other == this) return; |
1026 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
1027 | 0 | InternalSwap(other); |
1028 | 0 | } |
1029 | | |
1030 | | // implements Message ---------------------------------------------- |
1031 | | |
1032 | 0 | AddressBook* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
1033 | 0 | return CreateMaybeMessage<AddressBook>(arena); |
1034 | 0 | } |
1035 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
1036 | | void CopyFrom(const AddressBook& from); |
1037 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
1038 | 0 | void MergeFrom( const AddressBook& from) { |
1039 | 0 | AddressBook::MergeImpl(*this, from); |
1040 | 0 | } |
1041 | | private: |
1042 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
1043 | | public: |
1044 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1045 | | bool IsInitialized() const final; |
1046 | | |
1047 | | size_t ByteSizeLong() const final; |
1048 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1049 | | uint8_t* _InternalSerialize( |
1050 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
1051 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
1052 | | |
1053 | | private: |
1054 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
1055 | | void SharedDtor(); |
1056 | | void SetCachedSize(int size) const final; |
1057 | | void InternalSwap(AddressBook* other); |
1058 | | |
1059 | | private: |
1060 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1061 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1062 | 0 | return "addressbook.AddressBook"; |
1063 | 0 | } |
1064 | | protected: |
1065 | | explicit AddressBook(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1066 | | bool is_message_owned = false); |
1067 | | public: |
1068 | | |
1069 | | static const ClassData _class_data_; |
1070 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
1071 | | |
1072 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1073 | | |
1074 | | // nested types ---------------------------------------------------- |
1075 | | |
1076 | | // accessors ------------------------------------------------------- |
1077 | | |
1078 | | enum : int { |
1079 | | kPersonFieldNumber = 1, |
1080 | | }; |
1081 | | // repeated .addressbook.Person person = 1; |
1082 | | int person_size() const; |
1083 | | private: |
1084 | | int _internal_person_size() const; |
1085 | | public: |
1086 | | void clear_person(); |
1087 | | ::addressbook::Person* mutable_person(int index); |
1088 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::addressbook::Person >* |
1089 | | mutable_person(); |
1090 | | private: |
1091 | | const ::addressbook::Person& _internal_person(int index) const; |
1092 | | ::addressbook::Person* _internal_add_person(); |
1093 | | public: |
1094 | | const ::addressbook::Person& person(int index) const; |
1095 | | ::addressbook::Person* add_person(); |
1096 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::addressbook::Person >& |
1097 | | person() const; |
1098 | | |
1099 | | // @@protoc_insertion_point(class_scope:addressbook.AddressBook) |
1100 | | private: |
1101 | | class _Internal; |
1102 | | |
1103 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1104 | | typedef void InternalArenaConstructable_; |
1105 | | typedef void DestructorSkippable_; |
1106 | | struct Impl_ { |
1107 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::addressbook::Person > person_; |
1108 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1109 | | }; |
1110 | | union { Impl_ _impl_; }; |
1111 | | friend struct ::TableStruct_addressbook_2eproto; |
1112 | | }; |
1113 | | // =================================================================== |
1114 | | |
1115 | | static const int kHobbyFieldNumber = 100; |
1116 | | extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::addressbook::Person, |
1117 | | ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false > |
1118 | | hobby; |
1119 | | |
1120 | | // =================================================================== |
1121 | | |
1122 | | #ifdef __GNUC__ |
1123 | | #pragma GCC diagnostic push |
1124 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
1125 | | #endif // __GNUC__ |
1126 | | // Person_PhoneNumber |
1127 | | |
1128 | | // required string number = 1; |
1129 | 0 | inline bool Person_PhoneNumber::_internal_has_number() const { |
1130 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
1131 | 0 | return value; |
1132 | 0 | } |
1133 | 0 | inline bool Person_PhoneNumber::has_number() const { |
1134 | 0 | return _internal_has_number(); |
1135 | 0 | } |
1136 | 0 | inline void Person_PhoneNumber::clear_number() { |
1137 | 0 | _impl_.number_.ClearToEmpty(); |
1138 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
1139 | 0 | } |
1140 | 0 | inline const std::string& Person_PhoneNumber::number() const { |
1141 | 0 | // @@protoc_insertion_point(field_get:addressbook.Person.PhoneNumber.number) |
1142 | 0 | return _internal_number(); |
1143 | 0 | } |
1144 | | template <typename ArgT0, typename... ArgT> |
1145 | | inline PROTOBUF_ALWAYS_INLINE |
1146 | | void Person_PhoneNumber::set_number(ArgT0&& arg0, ArgT... args) { |
1147 | | _impl_._has_bits_[0] |= 0x00000001u; |
1148 | | _impl_.number_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
1149 | | // @@protoc_insertion_point(field_set:addressbook.Person.PhoneNumber.number) |
1150 | | } |
1151 | 0 | inline std::string* Person_PhoneNumber::mutable_number() { |
1152 | 0 | std::string* _s = _internal_mutable_number(); |
1153 | 0 | // @@protoc_insertion_point(field_mutable:addressbook.Person.PhoneNumber.number) |
1154 | 0 | return _s; |
1155 | 0 | } |
1156 | 0 | inline const std::string& Person_PhoneNumber::_internal_number() const { |
1157 | 0 | return _impl_.number_.Get(); |
1158 | 0 | } |
1159 | 0 | inline void Person_PhoneNumber::_internal_set_number(const std::string& value) { |
1160 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
1161 | 0 | _impl_.number_.Set(value, GetArenaForAllocation()); |
1162 | 0 | } |
1163 | 0 | inline std::string* Person_PhoneNumber::_internal_mutable_number() { |
1164 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
1165 | 0 | return _impl_.number_.Mutable(GetArenaForAllocation()); |
1166 | 0 | } |
1167 | 0 | inline std::string* Person_PhoneNumber::release_number() { |
1168 | 0 | // @@protoc_insertion_point(field_release:addressbook.Person.PhoneNumber.number) |
1169 | 0 | if (!_internal_has_number()) { |
1170 | 0 | return nullptr; |
1171 | 0 | } |
1172 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
1173 | 0 | auto* p = _impl_.number_.Release(); |
1174 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1175 | 0 | if (_impl_.number_.IsDefault()) { |
1176 | 0 | _impl_.number_.Set("", GetArenaForAllocation()); |
1177 | 0 | } |
1178 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1179 | 0 | return p; |
1180 | 0 | } |
1181 | 0 | inline void Person_PhoneNumber::set_allocated_number(std::string* number) { |
1182 | 0 | if (number != nullptr) { |
1183 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
1184 | 0 | } else { |
1185 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
1186 | 0 | } |
1187 | 0 | _impl_.number_.SetAllocated(number, GetArenaForAllocation()); |
1188 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1189 | 0 | if (_impl_.number_.IsDefault()) { |
1190 | 0 | _impl_.number_.Set("", GetArenaForAllocation()); |
1191 | 0 | } |
1192 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1193 | 0 | // @@protoc_insertion_point(field_set_allocated:addressbook.Person.PhoneNumber.number) |
1194 | 0 | } |
1195 | | |
1196 | | // optional .addressbook.Person.PhoneType type = 2 [default = HOME]; |
1197 | 0 | inline bool Person_PhoneNumber::_internal_has_type() const { |
1198 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
1199 | 0 | return value; |
1200 | 0 | } |
1201 | 0 | inline bool Person_PhoneNumber::has_type() const { |
1202 | 0 | return _internal_has_type(); |
1203 | 0 | } |
1204 | 0 | inline void Person_PhoneNumber::clear_type() { |
1205 | 0 | _impl_.type_ = 1; |
1206 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
1207 | 0 | } |
1208 | 0 | inline ::addressbook::Person_PhoneType Person_PhoneNumber::_internal_type() const { |
1209 | 0 | return static_cast< ::addressbook::Person_PhoneType >(_impl_.type_); |
1210 | 0 | } |
1211 | 0 | inline ::addressbook::Person_PhoneType Person_PhoneNumber::type() const { |
1212 | 0 | // @@protoc_insertion_point(field_get:addressbook.Person.PhoneNumber.type) |
1213 | 0 | return _internal_type(); |
1214 | 0 | } |
1215 | 0 | inline void Person_PhoneNumber::_internal_set_type(::addressbook::Person_PhoneType value) { |
1216 | 0 | assert(::addressbook::Person_PhoneType_IsValid(value)); |
1217 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
1218 | 0 | _impl_.type_ = value; |
1219 | 0 | } |
1220 | 0 | inline void Person_PhoneNumber::set_type(::addressbook::Person_PhoneType value) { |
1221 | 0 | _internal_set_type(value); |
1222 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.PhoneNumber.type) |
1223 | 0 | } |
1224 | | |
1225 | | // ------------------------------------------------------------------- |
1226 | | |
1227 | | // Person |
1228 | | |
1229 | | // required string name = 1; |
1230 | 0 | inline bool Person::_internal_has_name() const { |
1231 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
1232 | 0 | return value; |
1233 | 0 | } |
1234 | 0 | inline bool Person::has_name() const { |
1235 | 0 | return _internal_has_name(); |
1236 | 0 | } |
1237 | 0 | inline void Person::clear_name() { |
1238 | 0 | _impl_.name_.ClearToEmpty(); |
1239 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
1240 | 0 | } |
1241 | 0 | inline const std::string& Person::name() const { |
1242 | 0 | // @@protoc_insertion_point(field_get:addressbook.Person.name) |
1243 | 0 | return _internal_name(); |
1244 | 0 | } |
1245 | | template <typename ArgT0, typename... ArgT> |
1246 | | inline PROTOBUF_ALWAYS_INLINE |
1247 | | void Person::set_name(ArgT0&& arg0, ArgT... args) { |
1248 | | _impl_._has_bits_[0] |= 0x00000001u; |
1249 | | _impl_.name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
1250 | | // @@protoc_insertion_point(field_set:addressbook.Person.name) |
1251 | | } |
1252 | 0 | inline std::string* Person::mutable_name() { |
1253 | 0 | std::string* _s = _internal_mutable_name(); |
1254 | 0 | // @@protoc_insertion_point(field_mutable:addressbook.Person.name) |
1255 | 0 | return _s; |
1256 | 0 | } |
1257 | 0 | inline const std::string& Person::_internal_name() const { |
1258 | 0 | return _impl_.name_.Get(); |
1259 | 0 | } |
1260 | 0 | inline void Person::_internal_set_name(const std::string& value) { |
1261 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
1262 | 0 | _impl_.name_.Set(value, GetArenaForAllocation()); |
1263 | 0 | } |
1264 | 0 | inline std::string* Person::_internal_mutable_name() { |
1265 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
1266 | 0 | return _impl_.name_.Mutable(GetArenaForAllocation()); |
1267 | 0 | } |
1268 | 0 | inline std::string* Person::release_name() { |
1269 | 0 | // @@protoc_insertion_point(field_release:addressbook.Person.name) |
1270 | 0 | if (!_internal_has_name()) { |
1271 | 0 | return nullptr; |
1272 | 0 | } |
1273 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
1274 | 0 | auto* p = _impl_.name_.Release(); |
1275 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1276 | 0 | if (_impl_.name_.IsDefault()) { |
1277 | 0 | _impl_.name_.Set("", GetArenaForAllocation()); |
1278 | 0 | } |
1279 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1280 | 0 | return p; |
1281 | 0 | } |
1282 | 0 | inline void Person::set_allocated_name(std::string* name) { |
1283 | 0 | if (name != nullptr) { |
1284 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
1285 | 0 | } else { |
1286 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
1287 | 0 | } |
1288 | 0 | _impl_.name_.SetAllocated(name, GetArenaForAllocation()); |
1289 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1290 | 0 | if (_impl_.name_.IsDefault()) { |
1291 | 0 | _impl_.name_.Set("", GetArenaForAllocation()); |
1292 | 0 | } |
1293 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1294 | 0 | // @@protoc_insertion_point(field_set_allocated:addressbook.Person.name) |
1295 | 0 | } |
1296 | | |
1297 | | // required int32 id = 2; |
1298 | 0 | inline bool Person::_internal_has_id() const { |
1299 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; |
1300 | 0 | return value; |
1301 | 0 | } |
1302 | 0 | inline bool Person::has_id() const { |
1303 | 0 | return _internal_has_id(); |
1304 | 0 | } |
1305 | 0 | inline void Person::clear_id() { |
1306 | 0 | _impl_.id_ = 0; |
1307 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
1308 | 0 | } |
1309 | 0 | inline int32_t Person::_internal_id() const { |
1310 | 0 | return _impl_.id_; |
1311 | 0 | } |
1312 | 0 | inline int32_t Person::id() const { |
1313 | 0 | // @@protoc_insertion_point(field_get:addressbook.Person.id) |
1314 | 0 | return _internal_id(); |
1315 | 0 | } |
1316 | 0 | inline void Person::_internal_set_id(int32_t value) { |
1317 | 0 | _impl_._has_bits_[0] |= 0x00000008u; |
1318 | 0 | _impl_.id_ = value; |
1319 | 0 | } |
1320 | 0 | inline void Person::set_id(int32_t value) { |
1321 | 0 | _internal_set_id(value); |
1322 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.id) |
1323 | 0 | } |
1324 | | |
1325 | | // optional string email = 3; |
1326 | 0 | inline bool Person::_internal_has_email() const { |
1327 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
1328 | 0 | return value; |
1329 | 0 | } |
1330 | 0 | inline bool Person::has_email() const { |
1331 | 0 | return _internal_has_email(); |
1332 | 0 | } |
1333 | 0 | inline void Person::clear_email() { |
1334 | 0 | _impl_.email_.ClearToEmpty(); |
1335 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
1336 | 0 | } |
1337 | 0 | inline const std::string& Person::email() const { |
1338 | 0 | // @@protoc_insertion_point(field_get:addressbook.Person.email) |
1339 | 0 | return _internal_email(); |
1340 | 0 | } |
1341 | | template <typename ArgT0, typename... ArgT> |
1342 | | inline PROTOBUF_ALWAYS_INLINE |
1343 | | void Person::set_email(ArgT0&& arg0, ArgT... args) { |
1344 | | _impl_._has_bits_[0] |= 0x00000002u; |
1345 | | _impl_.email_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
1346 | | // @@protoc_insertion_point(field_set:addressbook.Person.email) |
1347 | | } |
1348 | 0 | inline std::string* Person::mutable_email() { |
1349 | 0 | std::string* _s = _internal_mutable_email(); |
1350 | 0 | // @@protoc_insertion_point(field_mutable:addressbook.Person.email) |
1351 | 0 | return _s; |
1352 | 0 | } |
1353 | 0 | inline const std::string& Person::_internal_email() const { |
1354 | 0 | return _impl_.email_.Get(); |
1355 | 0 | } |
1356 | 0 | inline void Person::_internal_set_email(const std::string& value) { |
1357 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
1358 | 0 | _impl_.email_.Set(value, GetArenaForAllocation()); |
1359 | 0 | } |
1360 | 0 | inline std::string* Person::_internal_mutable_email() { |
1361 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
1362 | 0 | return _impl_.email_.Mutable(GetArenaForAllocation()); |
1363 | 0 | } |
1364 | 0 | inline std::string* Person::release_email() { |
1365 | 0 | // @@protoc_insertion_point(field_release:addressbook.Person.email) |
1366 | 0 | if (!_internal_has_email()) { |
1367 | 0 | return nullptr; |
1368 | 0 | } |
1369 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
1370 | 0 | auto* p = _impl_.email_.Release(); |
1371 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1372 | 0 | if (_impl_.email_.IsDefault()) { |
1373 | 0 | _impl_.email_.Set("", GetArenaForAllocation()); |
1374 | 0 | } |
1375 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1376 | 0 | return p; |
1377 | 0 | } |
1378 | 0 | inline void Person::set_allocated_email(std::string* email) { |
1379 | 0 | if (email != nullptr) { |
1380 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
1381 | 0 | } else { |
1382 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
1383 | 0 | } |
1384 | 0 | _impl_.email_.SetAllocated(email, GetArenaForAllocation()); |
1385 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1386 | 0 | if (_impl_.email_.IsDefault()) { |
1387 | 0 | _impl_.email_.Set("", GetArenaForAllocation()); |
1388 | 0 | } |
1389 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1390 | 0 | // @@protoc_insertion_point(field_set_allocated:addressbook.Person.email) |
1391 | 0 | } |
1392 | | |
1393 | | // repeated .addressbook.Person.PhoneNumber phone = 4; |
1394 | 0 | inline int Person::_internal_phone_size() const { |
1395 | 0 | return _impl_.phone_.size(); |
1396 | 0 | } |
1397 | 0 | inline int Person::phone_size() const { |
1398 | 0 | return _internal_phone_size(); |
1399 | 0 | } |
1400 | 0 | inline void Person::clear_phone() { |
1401 | 0 | _impl_.phone_.Clear(); |
1402 | 0 | } |
1403 | 0 | inline ::addressbook::Person_PhoneNumber* Person::mutable_phone(int index) { |
1404 | 0 | // @@protoc_insertion_point(field_mutable:addressbook.Person.phone) |
1405 | 0 | return _impl_.phone_.Mutable(index); |
1406 | 0 | } |
1407 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::addressbook::Person_PhoneNumber >* |
1408 | 0 | Person::mutable_phone() { |
1409 | 0 | // @@protoc_insertion_point(field_mutable_list:addressbook.Person.phone) |
1410 | 0 | return &_impl_.phone_; |
1411 | 0 | } |
1412 | 0 | inline const ::addressbook::Person_PhoneNumber& Person::_internal_phone(int index) const { |
1413 | 0 | return _impl_.phone_.Get(index); |
1414 | 0 | } |
1415 | 0 | inline const ::addressbook::Person_PhoneNumber& Person::phone(int index) const { |
1416 | 0 | // @@protoc_insertion_point(field_get:addressbook.Person.phone) |
1417 | 0 | return _internal_phone(index); |
1418 | 0 | } |
1419 | 0 | inline ::addressbook::Person_PhoneNumber* Person::_internal_add_phone() { |
1420 | 0 | return _impl_.phone_.Add(); |
1421 | 0 | } |
1422 | 0 | inline ::addressbook::Person_PhoneNumber* Person::add_phone() { |
1423 | 0 | ::addressbook::Person_PhoneNumber* _add = _internal_add_phone(); |
1424 | 0 | // @@protoc_insertion_point(field_add:addressbook.Person.phone) |
1425 | 0 | return _add; |
1426 | 0 | } |
1427 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::addressbook::Person_PhoneNumber >& |
1428 | 0 | Person::phone() const { |
1429 | 0 | // @@protoc_insertion_point(field_list:addressbook.Person.phone) |
1430 | 0 | return _impl_.phone_; |
1431 | 0 | } |
1432 | | |
1433 | | // optional int64 data = 5; |
1434 | 0 | inline bool Person::_internal_has_data() const { |
1435 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; |
1436 | 0 | return value; |
1437 | 0 | } |
1438 | 0 | inline bool Person::has_data() const { |
1439 | 0 | return _internal_has_data(); |
1440 | 0 | } |
1441 | 0 | inline void Person::clear_data() { |
1442 | 0 | _impl_.data_ = int64_t{0}; |
1443 | 0 | _impl_._has_bits_[0] &= ~0x00000020u; |
1444 | 0 | } |
1445 | 0 | inline int64_t Person::_internal_data() const { |
1446 | 0 | return _impl_.data_; |
1447 | 0 | } |
1448 | 0 | inline int64_t Person::data() const { |
1449 | 0 | // @@protoc_insertion_point(field_get:addressbook.Person.data) |
1450 | 0 | return _internal_data(); |
1451 | 0 | } |
1452 | 0 | inline void Person::_internal_set_data(int64_t value) { |
1453 | 0 | _impl_._has_bits_[0] |= 0x00000020u; |
1454 | 0 | _impl_.data_ = value; |
1455 | 0 | } |
1456 | 0 | inline void Person::set_data(int64_t value) { |
1457 | 0 | _internal_set_data(value); |
1458 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.data) |
1459 | 0 | } |
1460 | | |
1461 | | // optional sint32 data32 = 6; |
1462 | 0 | inline bool Person::_internal_has_data32() const { |
1463 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; |
1464 | 0 | return value; |
1465 | 0 | } |
1466 | 0 | inline bool Person::has_data32() const { |
1467 | 0 | return _internal_has_data32(); |
1468 | 0 | } |
1469 | 0 | inline void Person::clear_data32() { |
1470 | 0 | _impl_.data32_ = 0; |
1471 | 0 | _impl_._has_bits_[0] &= ~0x00000010u; |
1472 | 0 | } |
1473 | 0 | inline int32_t Person::_internal_data32() const { |
1474 | 0 | return _impl_.data32_; |
1475 | 0 | } |
1476 | 0 | inline int32_t Person::data32() const { |
1477 | 0 | // @@protoc_insertion_point(field_get:addressbook.Person.data32) |
1478 | 0 | return _internal_data32(); |
1479 | 0 | } |
1480 | 0 | inline void Person::_internal_set_data32(int32_t value) { |
1481 | 0 | _impl_._has_bits_[0] |= 0x00000010u; |
1482 | 0 | _impl_.data32_ = value; |
1483 | 0 | } |
1484 | 0 | inline void Person::set_data32(int32_t value) { |
1485 | 0 | _internal_set_data32(value); |
1486 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.data32) |
1487 | 0 | } |
1488 | | |
1489 | | // optional sint64 data64 = 7; |
1490 | 0 | inline bool Person::_internal_has_data64() const { |
1491 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; |
1492 | 0 | return value; |
1493 | 0 | } |
1494 | 0 | inline bool Person::has_data64() const { |
1495 | 0 | return _internal_has_data64(); |
1496 | 0 | } |
1497 | 0 | inline void Person::clear_data64() { |
1498 | 0 | _impl_.data64_ = int64_t{0}; |
1499 | 0 | _impl_._has_bits_[0] &= ~0x00000040u; |
1500 | 0 | } |
1501 | 0 | inline int64_t Person::_internal_data64() const { |
1502 | 0 | return _impl_.data64_; |
1503 | 0 | } |
1504 | 0 | inline int64_t Person::data64() const { |
1505 | 0 | // @@protoc_insertion_point(field_get:addressbook.Person.data64) |
1506 | 0 | return _internal_data64(); |
1507 | 0 | } |
1508 | 0 | inline void Person::_internal_set_data64(int64_t value) { |
1509 | 0 | _impl_._has_bits_[0] |= 0x00000040u; |
1510 | 0 | _impl_.data64_ = value; |
1511 | 0 | } |
1512 | 0 | inline void Person::set_data64(int64_t value) { |
1513 | 0 | _internal_set_data64(value); |
1514 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.data64) |
1515 | 0 | } |
1516 | | |
1517 | | // required double datadouble = 8; |
1518 | 0 | inline bool Person::_internal_has_datadouble() const { |
1519 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0; |
1520 | 0 | return value; |
1521 | 0 | } |
1522 | 0 | inline bool Person::has_datadouble() const { |
1523 | 0 | return _internal_has_datadouble(); |
1524 | 0 | } |
1525 | 0 | inline void Person::clear_datadouble() { |
1526 | 0 | _impl_.datadouble_ = 0; |
1527 | 0 | _impl_._has_bits_[0] &= ~0x00000080u; |
1528 | 0 | } |
1529 | 0 | inline double Person::_internal_datadouble() const { |
1530 | 0 | return _impl_.datadouble_; |
1531 | 0 | } |
1532 | 0 | inline double Person::datadouble() const { |
1533 | 0 | // @@protoc_insertion_point(field_get:addressbook.Person.datadouble) |
1534 | 0 | return _internal_datadouble(); |
1535 | 0 | } |
1536 | 0 | inline void Person::_internal_set_datadouble(double value) { |
1537 | 0 | _impl_._has_bits_[0] |= 0x00000080u; |
1538 | 0 | _impl_.datadouble_ = value; |
1539 | 0 | } |
1540 | 0 | inline void Person::set_datadouble(double value) { |
1541 | 0 | _internal_set_datadouble(value); |
1542 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.datadouble) |
1543 | 0 | } |
1544 | | |
1545 | | // optional float datafloat = 9; |
1546 | 0 | inline bool Person::_internal_has_datafloat() const { |
1547 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0; |
1548 | 0 | return value; |
1549 | 0 | } |
1550 | 0 | inline bool Person::has_datafloat() const { |
1551 | 0 | return _internal_has_datafloat(); |
1552 | 0 | } |
1553 | 0 | inline void Person::clear_datafloat() { |
1554 | 0 | _impl_.datafloat_ = 0; |
1555 | 0 | _impl_._has_bits_[0] &= ~0x00000100u; |
1556 | 0 | } |
1557 | 0 | inline float Person::_internal_datafloat() const { |
1558 | 0 | return _impl_.datafloat_; |
1559 | 0 | } |
1560 | 0 | inline float Person::datafloat() const { |
1561 | 0 | // @@protoc_insertion_point(field_get:addressbook.Person.datafloat) |
1562 | 0 | return _internal_datafloat(); |
1563 | 0 | } |
1564 | 0 | inline void Person::_internal_set_datafloat(float value) { |
1565 | 0 | _impl_._has_bits_[0] |= 0x00000100u; |
1566 | 0 | _impl_.datafloat_ = value; |
1567 | 0 | } |
1568 | 0 | inline void Person::set_datafloat(float value) { |
1569 | 0 | _internal_set_datafloat(value); |
1570 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.datafloat) |
1571 | 0 | } |
1572 | | |
1573 | | // optional uint32 datau32 = 10; |
1574 | 0 | inline bool Person::_internal_has_datau32() const { |
1575 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0; |
1576 | 0 | return value; |
1577 | 0 | } |
1578 | 0 | inline bool Person::has_datau32() const { |
1579 | 0 | return _internal_has_datau32(); |
1580 | 0 | } |
1581 | 0 | inline void Person::clear_datau32() { |
1582 | 0 | _impl_.datau32_ = 0u; |
1583 | 0 | _impl_._has_bits_[0] &= ~0x00000200u; |
1584 | 0 | } |
1585 | 0 | inline uint32_t Person::_internal_datau32() const { |
1586 | 0 | return _impl_.datau32_; |
1587 | 0 | } |
1588 | 0 | inline uint32_t Person::datau32() const { |
1589 | 0 | // @@protoc_insertion_point(field_get:addressbook.Person.datau32) |
1590 | 0 | return _internal_datau32(); |
1591 | 0 | } |
1592 | 0 | inline void Person::_internal_set_datau32(uint32_t value) { |
1593 | 0 | _impl_._has_bits_[0] |= 0x00000200u; |
1594 | 0 | _impl_.datau32_ = value; |
1595 | 0 | } |
1596 | 0 | inline void Person::set_datau32(uint32_t value) { |
1597 | 0 | _internal_set_datau32(value); |
1598 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.datau32) |
1599 | 0 | } |
1600 | | |
1601 | | // optional uint64 datau64 = 11; |
1602 | 0 | inline bool Person::_internal_has_datau64() const { |
1603 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000400u) != 0; |
1604 | 0 | return value; |
1605 | 0 | } |
1606 | 0 | inline bool Person::has_datau64() const { |
1607 | 0 | return _internal_has_datau64(); |
1608 | 0 | } |
1609 | 0 | inline void Person::clear_datau64() { |
1610 | 0 | _impl_.datau64_ = uint64_t{0u}; |
1611 | 0 | _impl_._has_bits_[0] &= ~0x00000400u; |
1612 | 0 | } |
1613 | 0 | inline uint64_t Person::_internal_datau64() const { |
1614 | 0 | return _impl_.datau64_; |
1615 | 0 | } |
1616 | 0 | inline uint64_t Person::datau64() const { |
1617 | 0 | // @@protoc_insertion_point(field_get:addressbook.Person.datau64) |
1618 | 0 | return _internal_datau64(); |
1619 | 0 | } |
1620 | 0 | inline void Person::_internal_set_datau64(uint64_t value) { |
1621 | 0 | _impl_._has_bits_[0] |= 0x00000400u; |
1622 | 0 | _impl_.datau64_ = value; |
1623 | 0 | } |
1624 | 0 | inline void Person::set_datau64(uint64_t value) { |
1625 | 0 | _internal_set_datau64(value); |
1626 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.datau64) |
1627 | 0 | } |
1628 | | |
1629 | | // optional bool databool = 12; |
1630 | 0 | inline bool Person::_internal_has_databool() const { |
1631 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000800u) != 0; |
1632 | 0 | return value; |
1633 | 0 | } |
1634 | 0 | inline bool Person::has_databool() const { |
1635 | 0 | return _internal_has_databool(); |
1636 | 0 | } |
1637 | 0 | inline void Person::clear_databool() { |
1638 | 0 | _impl_.databool_ = false; |
1639 | 0 | _impl_._has_bits_[0] &= ~0x00000800u; |
1640 | 0 | } |
1641 | 0 | inline bool Person::_internal_databool() const { |
1642 | 0 | return _impl_.databool_; |
1643 | 0 | } |
1644 | 0 | inline bool Person::databool() const { |
1645 | 0 | // @@protoc_insertion_point(field_get:addressbook.Person.databool) |
1646 | 0 | return _internal_databool(); |
1647 | 0 | } |
1648 | 0 | inline void Person::_internal_set_databool(bool value) { |
1649 | 0 | _impl_._has_bits_[0] |= 0x00000800u; |
1650 | 0 | _impl_.databool_ = value; |
1651 | 0 | } |
1652 | 0 | inline void Person::set_databool(bool value) { |
1653 | 0 | _internal_set_databool(value); |
1654 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.databool) |
1655 | 0 | } |
1656 | | |
1657 | | // optional bytes databyte = 13; |
1658 | 0 | inline bool Person::_internal_has_databyte() const { |
1659 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
1660 | 0 | return value; |
1661 | 0 | } |
1662 | 0 | inline bool Person::has_databyte() const { |
1663 | 0 | return _internal_has_databyte(); |
1664 | 0 | } |
1665 | 0 | inline void Person::clear_databyte() { |
1666 | 0 | _impl_.databyte_.ClearToEmpty(); |
1667 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
1668 | 0 | } |
1669 | 0 | inline const std::string& Person::databyte() const { |
1670 | 0 | // @@protoc_insertion_point(field_get:addressbook.Person.databyte) |
1671 | 0 | return _internal_databyte(); |
1672 | 0 | } |
1673 | | template <typename ArgT0, typename... ArgT> |
1674 | | inline PROTOBUF_ALWAYS_INLINE |
1675 | | void Person::set_databyte(ArgT0&& arg0, ArgT... args) { |
1676 | | _impl_._has_bits_[0] |= 0x00000004u; |
1677 | | _impl_.databyte_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
1678 | | // @@protoc_insertion_point(field_set:addressbook.Person.databyte) |
1679 | | } |
1680 | 0 | inline std::string* Person::mutable_databyte() { |
1681 | 0 | std::string* _s = _internal_mutable_databyte(); |
1682 | 0 | // @@protoc_insertion_point(field_mutable:addressbook.Person.databyte) |
1683 | 0 | return _s; |
1684 | 0 | } |
1685 | 0 | inline const std::string& Person::_internal_databyte() const { |
1686 | 0 | return _impl_.databyte_.Get(); |
1687 | 0 | } |
1688 | 0 | inline void Person::_internal_set_databyte(const std::string& value) { |
1689 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
1690 | 0 | _impl_.databyte_.Set(value, GetArenaForAllocation()); |
1691 | 0 | } |
1692 | 0 | inline std::string* Person::_internal_mutable_databyte() { |
1693 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
1694 | 0 | return _impl_.databyte_.Mutable(GetArenaForAllocation()); |
1695 | 0 | } |
1696 | 0 | inline std::string* Person::release_databyte() { |
1697 | 0 | // @@protoc_insertion_point(field_release:addressbook.Person.databyte) |
1698 | 0 | if (!_internal_has_databyte()) { |
1699 | 0 | return nullptr; |
1700 | 0 | } |
1701 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
1702 | 0 | auto* p = _impl_.databyte_.Release(); |
1703 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1704 | 0 | if (_impl_.databyte_.IsDefault()) { |
1705 | 0 | _impl_.databyte_.Set("", GetArenaForAllocation()); |
1706 | 0 | } |
1707 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1708 | 0 | return p; |
1709 | 0 | } |
1710 | 0 | inline void Person::set_allocated_databyte(std::string* databyte) { |
1711 | 0 | if (databyte != nullptr) { |
1712 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
1713 | 0 | } else { |
1714 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
1715 | 0 | } |
1716 | 0 | _impl_.databyte_.SetAllocated(databyte, GetArenaForAllocation()); |
1717 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1718 | 0 | if (_impl_.databyte_.IsDefault()) { |
1719 | 0 | _impl_.databyte_.Set("", GetArenaForAllocation()); |
1720 | 0 | } |
1721 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1722 | 0 | // @@protoc_insertion_point(field_set_allocated:addressbook.Person.databyte) |
1723 | 0 | } |
1724 | | |
1725 | | // optional fixed32 datafix32 = 14; |
1726 | 0 | inline bool Person::_internal_has_datafix32() const { |
1727 | 0 | bool value = (_impl_._has_bits_[0] & 0x00001000u) != 0; |
1728 | 0 | return value; |
1729 | 0 | } |
1730 | 0 | inline bool Person::has_datafix32() const { |
1731 | 0 | return _internal_has_datafix32(); |
1732 | 0 | } |
1733 | 0 | inline void Person::clear_datafix32() { |
1734 | 0 | _impl_.datafix32_ = 0u; |
1735 | 0 | _impl_._has_bits_[0] &= ~0x00001000u; |
1736 | 0 | } |
1737 | 0 | inline uint32_t Person::_internal_datafix32() const { |
1738 | 0 | return _impl_.datafix32_; |
1739 | 0 | } |
1740 | 0 | inline uint32_t Person::datafix32() const { |
1741 | 0 | // @@protoc_insertion_point(field_get:addressbook.Person.datafix32) |
1742 | 0 | return _internal_datafix32(); |
1743 | 0 | } |
1744 | 0 | inline void Person::_internal_set_datafix32(uint32_t value) { |
1745 | 0 | _impl_._has_bits_[0] |= 0x00001000u; |
1746 | 0 | _impl_.datafix32_ = value; |
1747 | 0 | } |
1748 | 0 | inline void Person::set_datafix32(uint32_t value) { |
1749 | 0 | _internal_set_datafix32(value); |
1750 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.datafix32) |
1751 | 0 | } |
1752 | | |
1753 | | // optional fixed64 datafix64 = 15; |
1754 | 0 | inline bool Person::_internal_has_datafix64() const { |
1755 | 0 | bool value = (_impl_._has_bits_[0] & 0x00002000u) != 0; |
1756 | 0 | return value; |
1757 | 0 | } |
1758 | 0 | inline bool Person::has_datafix64() const { |
1759 | 0 | return _internal_has_datafix64(); |
1760 | 0 | } |
1761 | 0 | inline void Person::clear_datafix64() { |
1762 | 0 | _impl_.datafix64_ = uint64_t{0u}; |
1763 | 0 | _impl_._has_bits_[0] &= ~0x00002000u; |
1764 | 0 | } |
1765 | 0 | inline uint64_t Person::_internal_datafix64() const { |
1766 | 0 | return _impl_.datafix64_; |
1767 | 0 | } |
1768 | 0 | inline uint64_t Person::datafix64() const { |
1769 | 0 | // @@protoc_insertion_point(field_get:addressbook.Person.datafix64) |
1770 | 0 | return _internal_datafix64(); |
1771 | 0 | } |
1772 | 0 | inline void Person::_internal_set_datafix64(uint64_t value) { |
1773 | 0 | _impl_._has_bits_[0] |= 0x00002000u; |
1774 | 0 | _impl_.datafix64_ = value; |
1775 | 0 | } |
1776 | 0 | inline void Person::set_datafix64(uint64_t value) { |
1777 | 0 | _internal_set_datafix64(value); |
1778 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.datafix64) |
1779 | 0 | } |
1780 | | |
1781 | | // optional sfixed32 datasfix32 = 16; |
1782 | 0 | inline bool Person::_internal_has_datasfix32() const { |
1783 | 0 | bool value = (_impl_._has_bits_[0] & 0x00008000u) != 0; |
1784 | 0 | return value; |
1785 | 0 | } |
1786 | 0 | inline bool Person::has_datasfix32() const { |
1787 | 0 | return _internal_has_datasfix32(); |
1788 | 0 | } |
1789 | 0 | inline void Person::clear_datasfix32() { |
1790 | 0 | _impl_.datasfix32_ = 0; |
1791 | 0 | _impl_._has_bits_[0] &= ~0x00008000u; |
1792 | 0 | } |
1793 | 0 | inline int32_t Person::_internal_datasfix32() const { |
1794 | 0 | return _impl_.datasfix32_; |
1795 | 0 | } |
1796 | 0 | inline int32_t Person::datasfix32() const { |
1797 | 0 | // @@protoc_insertion_point(field_get:addressbook.Person.datasfix32) |
1798 | 0 | return _internal_datasfix32(); |
1799 | 0 | } |
1800 | 0 | inline void Person::_internal_set_datasfix32(int32_t value) { |
1801 | 0 | _impl_._has_bits_[0] |= 0x00008000u; |
1802 | 0 | _impl_.datasfix32_ = value; |
1803 | 0 | } |
1804 | 0 | inline void Person::set_datasfix32(int32_t value) { |
1805 | 0 | _internal_set_datasfix32(value); |
1806 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.datasfix32) |
1807 | 0 | } |
1808 | | |
1809 | | // optional sfixed64 datasfix64 = 17; |
1810 | 0 | inline bool Person::_internal_has_datasfix64() const { |
1811 | 0 | bool value = (_impl_._has_bits_[0] & 0x00004000u) != 0; |
1812 | 0 | return value; |
1813 | 0 | } |
1814 | 0 | inline bool Person::has_datasfix64() const { |
1815 | 0 | return _internal_has_datasfix64(); |
1816 | 0 | } |
1817 | 0 | inline void Person::clear_datasfix64() { |
1818 | 0 | _impl_.datasfix64_ = int64_t{0}; |
1819 | 0 | _impl_._has_bits_[0] &= ~0x00004000u; |
1820 | 0 | } |
1821 | 0 | inline int64_t Person::_internal_datasfix64() const { |
1822 | 0 | return _impl_.datasfix64_; |
1823 | 0 | } |
1824 | 0 | inline int64_t Person::datasfix64() const { |
1825 | 0 | // @@protoc_insertion_point(field_get:addressbook.Person.datasfix64) |
1826 | 0 | return _internal_datasfix64(); |
1827 | 0 | } |
1828 | 0 | inline void Person::_internal_set_datasfix64(int64_t value) { |
1829 | 0 | _impl_._has_bits_[0] |= 0x00004000u; |
1830 | 0 | _impl_.datasfix64_ = value; |
1831 | 0 | } |
1832 | 0 | inline void Person::set_datasfix64(int64_t value) { |
1833 | 0 | _internal_set_datasfix64(value); |
1834 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.datasfix64) |
1835 | 0 | } |
1836 | | |
1837 | | // optional float datafloat_scientific = 18; |
1838 | 0 | inline bool Person::_internal_has_datafloat_scientific() const { |
1839 | 0 | bool value = (_impl_._has_bits_[0] & 0x00010000u) != 0; |
1840 | 0 | return value; |
1841 | 0 | } |
1842 | 0 | inline bool Person::has_datafloat_scientific() const { |
1843 | 0 | return _internal_has_datafloat_scientific(); |
1844 | 0 | } |
1845 | 0 | inline void Person::clear_datafloat_scientific() { |
1846 | 0 | _impl_.datafloat_scientific_ = 0; |
1847 | 0 | _impl_._has_bits_[0] &= ~0x00010000u; |
1848 | 0 | } |
1849 | 0 | inline float Person::_internal_datafloat_scientific() const { |
1850 | 0 | return _impl_.datafloat_scientific_; |
1851 | 0 | } |
1852 | 0 | inline float Person::datafloat_scientific() const { |
1853 | 0 | // @@protoc_insertion_point(field_get:addressbook.Person.datafloat_scientific) |
1854 | 0 | return _internal_datafloat_scientific(); |
1855 | 0 | } |
1856 | 0 | inline void Person::_internal_set_datafloat_scientific(float value) { |
1857 | 0 | _impl_._has_bits_[0] |= 0x00010000u; |
1858 | 0 | _impl_.datafloat_scientific_ = value; |
1859 | 0 | } |
1860 | 0 | inline void Person::set_datafloat_scientific(float value) { |
1861 | 0 | _internal_set_datafloat_scientific(value); |
1862 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.datafloat_scientific) |
1863 | 0 | } |
1864 | | |
1865 | | // optional double datadouble_scientific = 19; |
1866 | 0 | inline bool Person::_internal_has_datadouble_scientific() const { |
1867 | 0 | bool value = (_impl_._has_bits_[0] & 0x00020000u) != 0; |
1868 | 0 | return value; |
1869 | 0 | } |
1870 | 0 | inline bool Person::has_datadouble_scientific() const { |
1871 | 0 | return _internal_has_datadouble_scientific(); |
1872 | 0 | } |
1873 | 0 | inline void Person::clear_datadouble_scientific() { |
1874 | 0 | _impl_.datadouble_scientific_ = 0; |
1875 | 0 | _impl_._has_bits_[0] &= ~0x00020000u; |
1876 | 0 | } |
1877 | 0 | inline double Person::_internal_datadouble_scientific() const { |
1878 | 0 | return _impl_.datadouble_scientific_; |
1879 | 0 | } |
1880 | 0 | inline double Person::datadouble_scientific() const { |
1881 | 0 | // @@protoc_insertion_point(field_get:addressbook.Person.datadouble_scientific) |
1882 | 0 | return _internal_datadouble_scientific(); |
1883 | 0 | } |
1884 | 0 | inline void Person::_internal_set_datadouble_scientific(double value) { |
1885 | 0 | _impl_._has_bits_[0] |= 0x00020000u; |
1886 | 0 | _impl_.datadouble_scientific_ = value; |
1887 | 0 | } |
1888 | 0 | inline void Person::set_datadouble_scientific(double value) { |
1889 | 0 | _internal_set_datadouble_scientific(value); |
1890 | 0 | // @@protoc_insertion_point(field_set:addressbook.Person.datadouble_scientific) |
1891 | 0 | } |
1892 | | |
1893 | | // ------------------------------------------------------------------- |
1894 | | |
1895 | | // AddressBook |
1896 | | |
1897 | | // repeated .addressbook.Person person = 1; |
1898 | 0 | inline int AddressBook::_internal_person_size() const { |
1899 | 0 | return _impl_.person_.size(); |
1900 | 0 | } |
1901 | 0 | inline int AddressBook::person_size() const { |
1902 | 0 | return _internal_person_size(); |
1903 | 0 | } |
1904 | 0 | inline void AddressBook::clear_person() { |
1905 | 0 | _impl_.person_.Clear(); |
1906 | 0 | } |
1907 | 0 | inline ::addressbook::Person* AddressBook::mutable_person(int index) { |
1908 | 0 | // @@protoc_insertion_point(field_mutable:addressbook.AddressBook.person) |
1909 | 0 | return _impl_.person_.Mutable(index); |
1910 | 0 | } |
1911 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::addressbook::Person >* |
1912 | 0 | AddressBook::mutable_person() { |
1913 | 0 | // @@protoc_insertion_point(field_mutable_list:addressbook.AddressBook.person) |
1914 | 0 | return &_impl_.person_; |
1915 | 0 | } |
1916 | 0 | inline const ::addressbook::Person& AddressBook::_internal_person(int index) const { |
1917 | 0 | return _impl_.person_.Get(index); |
1918 | 0 | } |
1919 | 0 | inline const ::addressbook::Person& AddressBook::person(int index) const { |
1920 | 0 | // @@protoc_insertion_point(field_get:addressbook.AddressBook.person) |
1921 | 0 | return _internal_person(index); |
1922 | 0 | } |
1923 | 0 | inline ::addressbook::Person* AddressBook::_internal_add_person() { |
1924 | 0 | return _impl_.person_.Add(); |
1925 | 0 | } |
1926 | 0 | inline ::addressbook::Person* AddressBook::add_person() { |
1927 | 0 | ::addressbook::Person* _add = _internal_add_person(); |
1928 | 0 | // @@protoc_insertion_point(field_add:addressbook.AddressBook.person) |
1929 | 0 | return _add; |
1930 | 0 | } |
1931 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::addressbook::Person >& |
1932 | 0 | AddressBook::person() const { |
1933 | 0 | // @@protoc_insertion_point(field_list:addressbook.AddressBook.person) |
1934 | 0 | return _impl_.person_; |
1935 | 0 | } |
1936 | | |
1937 | | #ifdef __GNUC__ |
1938 | | #pragma GCC diagnostic pop |
1939 | | #endif // __GNUC__ |
1940 | | // ------------------------------------------------------------------- |
1941 | | |
1942 | | // ------------------------------------------------------------------- |
1943 | | |
1944 | | |
1945 | | // @@protoc_insertion_point(namespace_scope) |
1946 | | |
1947 | | } // namespace addressbook |
1948 | | |
1949 | | PROTOBUF_NAMESPACE_OPEN |
1950 | | |
1951 | | template <> struct is_proto_enum< ::addressbook::Person_PhoneType> : ::std::true_type {}; |
1952 | | template <> |
1953 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::addressbook::Person_PhoneType>() { |
1954 | 0 | return ::addressbook::Person_PhoneType_descriptor(); |
1955 | 0 | } |
1956 | | |
1957 | | PROTOBUF_NAMESPACE_CLOSE |
1958 | | |
1959 | | // @@protoc_insertion_point(global_scope) |
1960 | | |
1961 | | #include <google/protobuf/port_undef.inc> |
1962 | | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_addressbook_2eproto |