addressbook.pb.h 64 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: addressbook.proto
  3. #ifndef PROTOBUF_INCLUDED_addressbook_2eproto
  4. #define PROTOBUF_INCLUDED_addressbook_2eproto
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3006001
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/io/coded_stream.h>
  18. #include <google/protobuf/arena.h>
  19. #include <google/protobuf/arenastring.h>
  20. #include <google/protobuf/generated_message_table_driven.h>
  21. #include <google/protobuf/generated_message_util.h>
  22. #include <google/protobuf/inlined_string_field.h>
  23. #include <google/protobuf/metadata.h>
  24. #include <google/protobuf/message.h>
  25. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  26. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  27. #include <google/protobuf/map.h> // IWYU pragma: export
  28. #include <google/protobuf/map_entry.h>
  29. #include <google/protobuf/map_field_inl.h>
  30. #include <google/protobuf/generated_enum_reflection.h>
  31. #include <google/protobuf/unknown_field_set.h>
  32. // @@protoc_insertion_point(includes)
  33. #define PROTOBUF_INTERNAL_EXPORT_protobuf_addressbook_2eproto
  34. namespace protobuf_addressbook_2eproto {
  35. // Internal implementation detail -- do not use these members.
  36. struct TableStruct {
  37. static const ::google::protobuf::internal::ParseTableField entries[];
  38. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  39. static const ::google::protobuf::internal::ParseTable schema[8];
  40. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  41. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  42. static const ::google::protobuf::uint32 offsets[];
  43. };
  44. void AddDescriptors();
  45. } // namespace protobuf_addressbook_2eproto
  46. namespace qtprotobuf {
  47. namespace examples {
  48. class Address;
  49. class AddressDefaultTypeInternal;
  50. extern AddressDefaultTypeInternal _Address_default_instance_;
  51. class Contact;
  52. class ContactDefaultTypeInternal;
  53. extern ContactDefaultTypeInternal _Contact_default_instance_;
  54. class Contact_PhonesEntry_DoNotUse;
  55. class Contact_PhonesEntry_DoNotUseDefaultTypeInternal;
  56. extern Contact_PhonesEntry_DoNotUseDefaultTypeInternal _Contact_PhonesEntry_DoNotUse_default_instance_;
  57. class Contacts;
  58. class ContactsDefaultTypeInternal;
  59. extern ContactsDefaultTypeInternal _Contacts_default_instance_;
  60. class Job;
  61. class JobDefaultTypeInternal;
  62. extern JobDefaultTypeInternal _Job_default_instance_;
  63. class ListFrame;
  64. class ListFrameDefaultTypeInternal;
  65. extern ListFrameDefaultTypeInternal _ListFrame_default_instance_;
  66. class PhoneNumber;
  67. class PhoneNumberDefaultTypeInternal;
  68. extern PhoneNumberDefaultTypeInternal _PhoneNumber_default_instance_;
  69. class SimpleResult;
  70. class SimpleResultDefaultTypeInternal;
  71. extern SimpleResultDefaultTypeInternal _SimpleResult_default_instance_;
  72. } // namespace examples
  73. } // namespace qtprotobuf
  74. namespace google {
  75. namespace protobuf {
  76. template<> ::qtprotobuf::examples::Address* Arena::CreateMaybeMessage<::qtprotobuf::examples::Address>(Arena*);
  77. template<> ::qtprotobuf::examples::Contact* Arena::CreateMaybeMessage<::qtprotobuf::examples::Contact>(Arena*);
  78. template<> ::qtprotobuf::examples::Contact_PhonesEntry_DoNotUse* Arena::CreateMaybeMessage<::qtprotobuf::examples::Contact_PhonesEntry_DoNotUse>(Arena*);
  79. template<> ::qtprotobuf::examples::Contacts* Arena::CreateMaybeMessage<::qtprotobuf::examples::Contacts>(Arena*);
  80. template<> ::qtprotobuf::examples::Job* Arena::CreateMaybeMessage<::qtprotobuf::examples::Job>(Arena*);
  81. template<> ::qtprotobuf::examples::ListFrame* Arena::CreateMaybeMessage<::qtprotobuf::examples::ListFrame>(Arena*);
  82. template<> ::qtprotobuf::examples::PhoneNumber* Arena::CreateMaybeMessage<::qtprotobuf::examples::PhoneNumber>(Arena*);
  83. template<> ::qtprotobuf::examples::SimpleResult* Arena::CreateMaybeMessage<::qtprotobuf::examples::SimpleResult>(Arena*);
  84. } // namespace protobuf
  85. } // namespace google
  86. namespace qtprotobuf {
  87. namespace examples {
  88. enum Contact_PhoneType {
  89. Contact_PhoneType_Home = 0,
  90. Contact_PhoneType_Work = 1,
  91. Contact_PhoneType_Mobile = 2,
  92. Contact_PhoneType_Other = 3,
  93. Contact_PhoneType_Contact_PhoneType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
  94. Contact_PhoneType_Contact_PhoneType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
  95. };
  96. bool Contact_PhoneType_IsValid(int value);
  97. const Contact_PhoneType Contact_PhoneType_PhoneType_MIN = Contact_PhoneType_Home;
  98. const Contact_PhoneType Contact_PhoneType_PhoneType_MAX = Contact_PhoneType_Other;
  99. const int Contact_PhoneType_PhoneType_ARRAYSIZE = Contact_PhoneType_PhoneType_MAX + 1;
  100. const ::google::protobuf::EnumDescriptor* Contact_PhoneType_descriptor();
  101. inline const ::std::string& Contact_PhoneType_Name(Contact_PhoneType value) {
  102. return ::google::protobuf::internal::NameOfEnum(
  103. Contact_PhoneType_descriptor(), value);
  104. }
  105. inline bool Contact_PhoneType_Parse(
  106. const ::std::string& name, Contact_PhoneType* value) {
  107. return ::google::protobuf::internal::ParseNamedEnum<Contact_PhoneType>(
  108. Contact_PhoneType_descriptor(), name, value);
  109. }
  110. // ===================================================================
  111. class PhoneNumber : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobuf.examples.PhoneNumber) */ {
  112. public:
  113. PhoneNumber();
  114. virtual ~PhoneNumber();
  115. PhoneNumber(const PhoneNumber& from);
  116. inline PhoneNumber& operator=(const PhoneNumber& from) {
  117. CopyFrom(from);
  118. return *this;
  119. }
  120. #if LANG_CXX11
  121. PhoneNumber(PhoneNumber&& from) noexcept
  122. : PhoneNumber() {
  123. *this = ::std::move(from);
  124. }
  125. inline PhoneNumber& operator=(PhoneNumber&& from) noexcept {
  126. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  127. if (this != &from) InternalSwap(&from);
  128. } else {
  129. CopyFrom(from);
  130. }
  131. return *this;
  132. }
  133. #endif
  134. static const ::google::protobuf::Descriptor* descriptor();
  135. static const PhoneNumber& default_instance();
  136. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  137. static inline const PhoneNumber* internal_default_instance() {
  138. return reinterpret_cast<const PhoneNumber*>(
  139. &_PhoneNumber_default_instance_);
  140. }
  141. static constexpr int kIndexInFileMessages =
  142. 0;
  143. void Swap(PhoneNumber* other);
  144. friend void swap(PhoneNumber& a, PhoneNumber& b) {
  145. a.Swap(&b);
  146. }
  147. // implements Message ----------------------------------------------
  148. inline PhoneNumber* New() const final {
  149. return CreateMaybeMessage<PhoneNumber>(NULL);
  150. }
  151. PhoneNumber* New(::google::protobuf::Arena* arena) const final {
  152. return CreateMaybeMessage<PhoneNumber>(arena);
  153. }
  154. void CopyFrom(const ::google::protobuf::Message& from) final;
  155. void MergeFrom(const ::google::protobuf::Message& from) final;
  156. void CopyFrom(const PhoneNumber& from);
  157. void MergeFrom(const PhoneNumber& from);
  158. void Clear() final;
  159. bool IsInitialized() const final;
  160. size_t ByteSizeLong() const final;
  161. bool MergePartialFromCodedStream(
  162. ::google::protobuf::io::CodedInputStream* input) final;
  163. void SerializeWithCachedSizes(
  164. ::google::protobuf::io::CodedOutputStream* output) const final;
  165. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  166. bool deterministic, ::google::protobuf::uint8* target) const final;
  167. int GetCachedSize() const final { return _cached_size_.Get(); }
  168. private:
  169. void SharedCtor();
  170. void SharedDtor();
  171. void SetCachedSize(int size) const final;
  172. void InternalSwap(PhoneNumber* other);
  173. private:
  174. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  175. return NULL;
  176. }
  177. inline void* MaybeArenaPtr() const {
  178. return NULL;
  179. }
  180. public:
  181. ::google::protobuf::Metadata GetMetadata() const final;
  182. // nested types ----------------------------------------------------
  183. // accessors -------------------------------------------------------
  184. // uint64 number = 2;
  185. void clear_number();
  186. static const int kNumberFieldNumber = 2;
  187. ::google::protobuf::uint64 number() const;
  188. void set_number(::google::protobuf::uint64 value);
  189. // uint32 countryCode = 1;
  190. void clear_countrycode();
  191. static const int kCountryCodeFieldNumber = 1;
  192. ::google::protobuf::uint32 countrycode() const;
  193. void set_countrycode(::google::protobuf::uint32 value);
  194. // @@protoc_insertion_point(class_scope:qtprotobuf.examples.PhoneNumber)
  195. private:
  196. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  197. ::google::protobuf::uint64 number_;
  198. ::google::protobuf::uint32 countrycode_;
  199. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  200. friend struct ::protobuf_addressbook_2eproto::TableStruct;
  201. };
  202. // -------------------------------------------------------------------
  203. class Address : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobuf.examples.Address) */ {
  204. public:
  205. Address();
  206. virtual ~Address();
  207. Address(const Address& from);
  208. inline Address& operator=(const Address& from) {
  209. CopyFrom(from);
  210. return *this;
  211. }
  212. #if LANG_CXX11
  213. Address(Address&& from) noexcept
  214. : Address() {
  215. *this = ::std::move(from);
  216. }
  217. inline Address& operator=(Address&& from) noexcept {
  218. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  219. if (this != &from) InternalSwap(&from);
  220. } else {
  221. CopyFrom(from);
  222. }
  223. return *this;
  224. }
  225. #endif
  226. static const ::google::protobuf::Descriptor* descriptor();
  227. static const Address& default_instance();
  228. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  229. static inline const Address* internal_default_instance() {
  230. return reinterpret_cast<const Address*>(
  231. &_Address_default_instance_);
  232. }
  233. static constexpr int kIndexInFileMessages =
  234. 1;
  235. void Swap(Address* other);
  236. friend void swap(Address& a, Address& b) {
  237. a.Swap(&b);
  238. }
  239. // implements Message ----------------------------------------------
  240. inline Address* New() const final {
  241. return CreateMaybeMessage<Address>(NULL);
  242. }
  243. Address* New(::google::protobuf::Arena* arena) const final {
  244. return CreateMaybeMessage<Address>(arena);
  245. }
  246. void CopyFrom(const ::google::protobuf::Message& from) final;
  247. void MergeFrom(const ::google::protobuf::Message& from) final;
  248. void CopyFrom(const Address& from);
  249. void MergeFrom(const Address& from);
  250. void Clear() final;
  251. bool IsInitialized() const final;
  252. size_t ByteSizeLong() const final;
  253. bool MergePartialFromCodedStream(
  254. ::google::protobuf::io::CodedInputStream* input) final;
  255. void SerializeWithCachedSizes(
  256. ::google::protobuf::io::CodedOutputStream* output) const final;
  257. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  258. bool deterministic, ::google::protobuf::uint8* target) const final;
  259. int GetCachedSize() const final { return _cached_size_.Get(); }
  260. private:
  261. void SharedCtor();
  262. void SharedDtor();
  263. void SetCachedSize(int size) const final;
  264. void InternalSwap(Address* other);
  265. private:
  266. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  267. return NULL;
  268. }
  269. inline void* MaybeArenaPtr() const {
  270. return NULL;
  271. }
  272. public:
  273. ::google::protobuf::Metadata GetMetadata() const final;
  274. // nested types ----------------------------------------------------
  275. // accessors -------------------------------------------------------
  276. // string streetAddress1 = 2;
  277. void clear_streetaddress1();
  278. static const int kStreetAddress1FieldNumber = 2;
  279. const ::std::string& streetaddress1() const;
  280. void set_streetaddress1(const ::std::string& value);
  281. #if LANG_CXX11
  282. void set_streetaddress1(::std::string&& value);
  283. #endif
  284. void set_streetaddress1(const char* value);
  285. void set_streetaddress1(const char* value, size_t size);
  286. ::std::string* mutable_streetaddress1();
  287. ::std::string* release_streetaddress1();
  288. void set_allocated_streetaddress1(::std::string* streetaddress1);
  289. // string streetAddress2 = 3;
  290. void clear_streetaddress2();
  291. static const int kStreetAddress2FieldNumber = 3;
  292. const ::std::string& streetaddress2() const;
  293. void set_streetaddress2(const ::std::string& value);
  294. #if LANG_CXX11
  295. void set_streetaddress2(::std::string&& value);
  296. #endif
  297. void set_streetaddress2(const char* value);
  298. void set_streetaddress2(const char* value, size_t size);
  299. ::std::string* mutable_streetaddress2();
  300. ::std::string* release_streetaddress2();
  301. void set_allocated_streetaddress2(::std::string* streetaddress2);
  302. // string state = 4;
  303. void clear_state();
  304. static const int kStateFieldNumber = 4;
  305. const ::std::string& state() const;
  306. void set_state(const ::std::string& value);
  307. #if LANG_CXX11
  308. void set_state(::std::string&& value);
  309. #endif
  310. void set_state(const char* value);
  311. void set_state(const char* value, size_t size);
  312. ::std::string* mutable_state();
  313. ::std::string* release_state();
  314. void set_allocated_state(::std::string* state);
  315. // uint64 zipCode = 1;
  316. void clear_zipcode();
  317. static const int kZipCodeFieldNumber = 1;
  318. ::google::protobuf::uint64 zipcode() const;
  319. void set_zipcode(::google::protobuf::uint64 value);
  320. // uint32 country = 5;
  321. void clear_country();
  322. static const int kCountryFieldNumber = 5;
  323. ::google::protobuf::uint32 country() const;
  324. void set_country(::google::protobuf::uint32 value);
  325. // @@protoc_insertion_point(class_scope:qtprotobuf.examples.Address)
  326. private:
  327. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  328. ::google::protobuf::internal::ArenaStringPtr streetaddress1_;
  329. ::google::protobuf::internal::ArenaStringPtr streetaddress2_;
  330. ::google::protobuf::internal::ArenaStringPtr state_;
  331. ::google::protobuf::uint64 zipcode_;
  332. ::google::protobuf::uint32 country_;
  333. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  334. friend struct ::protobuf_addressbook_2eproto::TableStruct;
  335. };
  336. // -------------------------------------------------------------------
  337. class Job : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobuf.examples.Job) */ {
  338. public:
  339. Job();
  340. virtual ~Job();
  341. Job(const Job& from);
  342. inline Job& operator=(const Job& from) {
  343. CopyFrom(from);
  344. return *this;
  345. }
  346. #if LANG_CXX11
  347. Job(Job&& from) noexcept
  348. : Job() {
  349. *this = ::std::move(from);
  350. }
  351. inline Job& operator=(Job&& from) noexcept {
  352. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  353. if (this != &from) InternalSwap(&from);
  354. } else {
  355. CopyFrom(from);
  356. }
  357. return *this;
  358. }
  359. #endif
  360. static const ::google::protobuf::Descriptor* descriptor();
  361. static const Job& default_instance();
  362. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  363. static inline const Job* internal_default_instance() {
  364. return reinterpret_cast<const Job*>(
  365. &_Job_default_instance_);
  366. }
  367. static constexpr int kIndexInFileMessages =
  368. 2;
  369. void Swap(Job* other);
  370. friend void swap(Job& a, Job& b) {
  371. a.Swap(&b);
  372. }
  373. // implements Message ----------------------------------------------
  374. inline Job* New() const final {
  375. return CreateMaybeMessage<Job>(NULL);
  376. }
  377. Job* New(::google::protobuf::Arena* arena) const final {
  378. return CreateMaybeMessage<Job>(arena);
  379. }
  380. void CopyFrom(const ::google::protobuf::Message& from) final;
  381. void MergeFrom(const ::google::protobuf::Message& from) final;
  382. void CopyFrom(const Job& from);
  383. void MergeFrom(const Job& from);
  384. void Clear() final;
  385. bool IsInitialized() const final;
  386. size_t ByteSizeLong() const final;
  387. bool MergePartialFromCodedStream(
  388. ::google::protobuf::io::CodedInputStream* input) final;
  389. void SerializeWithCachedSizes(
  390. ::google::protobuf::io::CodedOutputStream* output) const final;
  391. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  392. bool deterministic, ::google::protobuf::uint8* target) const final;
  393. int GetCachedSize() const final { return _cached_size_.Get(); }
  394. private:
  395. void SharedCtor();
  396. void SharedDtor();
  397. void SetCachedSize(int size) const final;
  398. void InternalSwap(Job* other);
  399. private:
  400. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  401. return NULL;
  402. }
  403. inline void* MaybeArenaPtr() const {
  404. return NULL;
  405. }
  406. public:
  407. ::google::protobuf::Metadata GetMetadata() const final;
  408. // nested types ----------------------------------------------------
  409. // accessors -------------------------------------------------------
  410. // string title = 1;
  411. void clear_title();
  412. static const int kTitleFieldNumber = 1;
  413. const ::std::string& title() const;
  414. void set_title(const ::std::string& value);
  415. #if LANG_CXX11
  416. void set_title(::std::string&& value);
  417. #endif
  418. void set_title(const char* value);
  419. void set_title(const char* value, size_t size);
  420. ::std::string* mutable_title();
  421. ::std::string* release_title();
  422. void set_allocated_title(::std::string* title);
  423. // .qtprotobuf.examples.Address officeAddress = 2;
  424. bool has_officeaddress() const;
  425. void clear_officeaddress();
  426. static const int kOfficeAddressFieldNumber = 2;
  427. private:
  428. const ::qtprotobuf::examples::Address& _internal_officeaddress() const;
  429. public:
  430. const ::qtprotobuf::examples::Address& officeaddress() const;
  431. ::qtprotobuf::examples::Address* release_officeaddress();
  432. ::qtprotobuf::examples::Address* mutable_officeaddress();
  433. void set_allocated_officeaddress(::qtprotobuf::examples::Address* officeaddress);
  434. // @@protoc_insertion_point(class_scope:qtprotobuf.examples.Job)
  435. private:
  436. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  437. ::google::protobuf::internal::ArenaStringPtr title_;
  438. ::qtprotobuf::examples::Address* officeaddress_;
  439. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  440. friend struct ::protobuf_addressbook_2eproto::TableStruct;
  441. };
  442. // -------------------------------------------------------------------
  443. class Contact_PhonesEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<Contact_PhonesEntry_DoNotUse,
  444. ::google::protobuf::int32, ::qtprotobuf::examples::PhoneNumber,
  445. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  446. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  447. 0 > {
  448. public:
  449. typedef ::google::protobuf::internal::MapEntry<Contact_PhonesEntry_DoNotUse,
  450. ::google::protobuf::int32, ::qtprotobuf::examples::PhoneNumber,
  451. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  452. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  453. 0 > SuperType;
  454. Contact_PhonesEntry_DoNotUse();
  455. Contact_PhonesEntry_DoNotUse(::google::protobuf::Arena* arena);
  456. void MergeFrom(const Contact_PhonesEntry_DoNotUse& other);
  457. static const Contact_PhonesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const Contact_PhonesEntry_DoNotUse*>(&_Contact_PhonesEntry_DoNotUse_default_instance_); }
  458. void MergeFrom(const ::google::protobuf::Message& other) final;
  459. ::google::protobuf::Metadata GetMetadata() const;
  460. };
  461. // -------------------------------------------------------------------
  462. class Contact : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobuf.examples.Contact) */ {
  463. public:
  464. Contact();
  465. virtual ~Contact();
  466. Contact(const Contact& from);
  467. inline Contact& operator=(const Contact& from) {
  468. CopyFrom(from);
  469. return *this;
  470. }
  471. #if LANG_CXX11
  472. Contact(Contact&& from) noexcept
  473. : Contact() {
  474. *this = ::std::move(from);
  475. }
  476. inline Contact& operator=(Contact&& from) noexcept {
  477. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  478. if (this != &from) InternalSwap(&from);
  479. } else {
  480. CopyFrom(from);
  481. }
  482. return *this;
  483. }
  484. #endif
  485. static const ::google::protobuf::Descriptor* descriptor();
  486. static const Contact& default_instance();
  487. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  488. static inline const Contact* internal_default_instance() {
  489. return reinterpret_cast<const Contact*>(
  490. &_Contact_default_instance_);
  491. }
  492. static constexpr int kIndexInFileMessages =
  493. 4;
  494. void Swap(Contact* other);
  495. friend void swap(Contact& a, Contact& b) {
  496. a.Swap(&b);
  497. }
  498. // implements Message ----------------------------------------------
  499. inline Contact* New() const final {
  500. return CreateMaybeMessage<Contact>(NULL);
  501. }
  502. Contact* New(::google::protobuf::Arena* arena) const final {
  503. return CreateMaybeMessage<Contact>(arena);
  504. }
  505. void CopyFrom(const ::google::protobuf::Message& from) final;
  506. void MergeFrom(const ::google::protobuf::Message& from) final;
  507. void CopyFrom(const Contact& from);
  508. void MergeFrom(const Contact& from);
  509. void Clear() final;
  510. bool IsInitialized() const final;
  511. size_t ByteSizeLong() const final;
  512. bool MergePartialFromCodedStream(
  513. ::google::protobuf::io::CodedInputStream* input) final;
  514. void SerializeWithCachedSizes(
  515. ::google::protobuf::io::CodedOutputStream* output) const final;
  516. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  517. bool deterministic, ::google::protobuf::uint8* target) const final;
  518. int GetCachedSize() const final { return _cached_size_.Get(); }
  519. private:
  520. void SharedCtor();
  521. void SharedDtor();
  522. void SetCachedSize(int size) const final;
  523. void InternalSwap(Contact* other);
  524. private:
  525. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  526. return NULL;
  527. }
  528. inline void* MaybeArenaPtr() const {
  529. return NULL;
  530. }
  531. public:
  532. ::google::protobuf::Metadata GetMetadata() const final;
  533. // nested types ----------------------------------------------------
  534. typedef Contact_PhoneType PhoneType;
  535. static const PhoneType Home =
  536. Contact_PhoneType_Home;
  537. static const PhoneType Work =
  538. Contact_PhoneType_Work;
  539. static const PhoneType Mobile =
  540. Contact_PhoneType_Mobile;
  541. static const PhoneType Other =
  542. Contact_PhoneType_Other;
  543. static inline bool PhoneType_IsValid(int value) {
  544. return Contact_PhoneType_IsValid(value);
  545. }
  546. static const PhoneType PhoneType_MIN =
  547. Contact_PhoneType_PhoneType_MIN;
  548. static const PhoneType PhoneType_MAX =
  549. Contact_PhoneType_PhoneType_MAX;
  550. static const int PhoneType_ARRAYSIZE =
  551. Contact_PhoneType_PhoneType_ARRAYSIZE;
  552. static inline const ::google::protobuf::EnumDescriptor*
  553. PhoneType_descriptor() {
  554. return Contact_PhoneType_descriptor();
  555. }
  556. static inline const ::std::string& PhoneType_Name(PhoneType value) {
  557. return Contact_PhoneType_Name(value);
  558. }
  559. static inline bool PhoneType_Parse(const ::std::string& name,
  560. PhoneType* value) {
  561. return Contact_PhoneType_Parse(name, value);
  562. }
  563. // accessors -------------------------------------------------------
  564. // map<int32, .qtprotobuf.examples.PhoneNumber> phones = 4;
  565. int phones_size() const;
  566. void clear_phones();
  567. static const int kPhonesFieldNumber = 4;
  568. const ::google::protobuf::Map< ::google::protobuf::int32, ::qtprotobuf::examples::PhoneNumber >&
  569. phones() const;
  570. ::google::protobuf::Map< ::google::protobuf::int32, ::qtprotobuf::examples::PhoneNumber >*
  571. mutable_phones();
  572. // string firstName = 1;
  573. void clear_firstname();
  574. static const int kFirstNameFieldNumber = 1;
  575. const ::std::string& firstname() const;
  576. void set_firstname(const ::std::string& value);
  577. #if LANG_CXX11
  578. void set_firstname(::std::string&& value);
  579. #endif
  580. void set_firstname(const char* value);
  581. void set_firstname(const char* value, size_t size);
  582. ::std::string* mutable_firstname();
  583. ::std::string* release_firstname();
  584. void set_allocated_firstname(::std::string* firstname);
  585. // string lastName = 2;
  586. void clear_lastname();
  587. static const int kLastNameFieldNumber = 2;
  588. const ::std::string& lastname() const;
  589. void set_lastname(const ::std::string& value);
  590. #if LANG_CXX11
  591. void set_lastname(::std::string&& value);
  592. #endif
  593. void set_lastname(const char* value);
  594. void set_lastname(const char* value, size_t size);
  595. ::std::string* mutable_lastname();
  596. ::std::string* release_lastname();
  597. void set_allocated_lastname(::std::string* lastname);
  598. // string middleName = 3;
  599. void clear_middlename();
  600. static const int kMiddleNameFieldNumber = 3;
  601. const ::std::string& middlename() const;
  602. void set_middlename(const ::std::string& value);
  603. #if LANG_CXX11
  604. void set_middlename(::std::string&& value);
  605. #endif
  606. void set_middlename(const char* value);
  607. void set_middlename(const char* value, size_t size);
  608. ::std::string* mutable_middlename();
  609. ::std::string* release_middlename();
  610. void set_allocated_middlename(::std::string* middlename);
  611. // .qtprotobuf.examples.Address address = 5;
  612. bool has_address() const;
  613. void clear_address();
  614. static const int kAddressFieldNumber = 5;
  615. private:
  616. const ::qtprotobuf::examples::Address& _internal_address() const;
  617. public:
  618. const ::qtprotobuf::examples::Address& address() const;
  619. ::qtprotobuf::examples::Address* release_address();
  620. ::qtprotobuf::examples::Address* mutable_address();
  621. void set_allocated_address(::qtprotobuf::examples::Address* address);
  622. // .qtprotobuf.examples.Job job = 6;
  623. bool has_job() const;
  624. void clear_job();
  625. static const int kJobFieldNumber = 6;
  626. private:
  627. const ::qtprotobuf::examples::Job& _internal_job() const;
  628. public:
  629. const ::qtprotobuf::examples::Job& job() const;
  630. ::qtprotobuf::examples::Job* release_job();
  631. ::qtprotobuf::examples::Job* mutable_job();
  632. void set_allocated_job(::qtprotobuf::examples::Job* job);
  633. // @@protoc_insertion_point(class_scope:qtprotobuf.examples.Contact)
  634. private:
  635. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  636. ::google::protobuf::internal::MapField<
  637. Contact_PhonesEntry_DoNotUse,
  638. ::google::protobuf::int32, ::qtprotobuf::examples::PhoneNumber,
  639. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  640. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  641. 0 > phones_;
  642. ::google::protobuf::internal::ArenaStringPtr firstname_;
  643. ::google::protobuf::internal::ArenaStringPtr lastname_;
  644. ::google::protobuf::internal::ArenaStringPtr middlename_;
  645. ::qtprotobuf::examples::Address* address_;
  646. ::qtprotobuf::examples::Job* job_;
  647. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  648. friend struct ::protobuf_addressbook_2eproto::TableStruct;
  649. };
  650. // -------------------------------------------------------------------
  651. class Contacts : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobuf.examples.Contacts) */ {
  652. public:
  653. Contacts();
  654. virtual ~Contacts();
  655. Contacts(const Contacts& from);
  656. inline Contacts& operator=(const Contacts& from) {
  657. CopyFrom(from);
  658. return *this;
  659. }
  660. #if LANG_CXX11
  661. Contacts(Contacts&& from) noexcept
  662. : Contacts() {
  663. *this = ::std::move(from);
  664. }
  665. inline Contacts& operator=(Contacts&& from) noexcept {
  666. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  667. if (this != &from) InternalSwap(&from);
  668. } else {
  669. CopyFrom(from);
  670. }
  671. return *this;
  672. }
  673. #endif
  674. static const ::google::protobuf::Descriptor* descriptor();
  675. static const Contacts& default_instance();
  676. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  677. static inline const Contacts* internal_default_instance() {
  678. return reinterpret_cast<const Contacts*>(
  679. &_Contacts_default_instance_);
  680. }
  681. static constexpr int kIndexInFileMessages =
  682. 5;
  683. void Swap(Contacts* other);
  684. friend void swap(Contacts& a, Contacts& b) {
  685. a.Swap(&b);
  686. }
  687. // implements Message ----------------------------------------------
  688. inline Contacts* New() const final {
  689. return CreateMaybeMessage<Contacts>(NULL);
  690. }
  691. Contacts* New(::google::protobuf::Arena* arena) const final {
  692. return CreateMaybeMessage<Contacts>(arena);
  693. }
  694. void CopyFrom(const ::google::protobuf::Message& from) final;
  695. void MergeFrom(const ::google::protobuf::Message& from) final;
  696. void CopyFrom(const Contacts& from);
  697. void MergeFrom(const Contacts& from);
  698. void Clear() final;
  699. bool IsInitialized() const final;
  700. size_t ByteSizeLong() const final;
  701. bool MergePartialFromCodedStream(
  702. ::google::protobuf::io::CodedInputStream* input) final;
  703. void SerializeWithCachedSizes(
  704. ::google::protobuf::io::CodedOutputStream* output) const final;
  705. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  706. bool deterministic, ::google::protobuf::uint8* target) const final;
  707. int GetCachedSize() const final { return _cached_size_.Get(); }
  708. private:
  709. void SharedCtor();
  710. void SharedDtor();
  711. void SetCachedSize(int size) const final;
  712. void InternalSwap(Contacts* other);
  713. private:
  714. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  715. return NULL;
  716. }
  717. inline void* MaybeArenaPtr() const {
  718. return NULL;
  719. }
  720. public:
  721. ::google::protobuf::Metadata GetMetadata() const final;
  722. // nested types ----------------------------------------------------
  723. // accessors -------------------------------------------------------
  724. // repeated .qtprotobuf.examples.Contact list = 1;
  725. int list_size() const;
  726. void clear_list();
  727. static const int kListFieldNumber = 1;
  728. ::qtprotobuf::examples::Contact* mutable_list(int index);
  729. ::google::protobuf::RepeatedPtrField< ::qtprotobuf::examples::Contact >*
  730. mutable_list();
  731. const ::qtprotobuf::examples::Contact& list(int index) const;
  732. ::qtprotobuf::examples::Contact* add_list();
  733. const ::google::protobuf::RepeatedPtrField< ::qtprotobuf::examples::Contact >&
  734. list() const;
  735. // @@protoc_insertion_point(class_scope:qtprotobuf.examples.Contacts)
  736. private:
  737. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  738. ::google::protobuf::RepeatedPtrField< ::qtprotobuf::examples::Contact > list_;
  739. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  740. friend struct ::protobuf_addressbook_2eproto::TableStruct;
  741. };
  742. // -------------------------------------------------------------------
  743. class SimpleResult : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobuf.examples.SimpleResult) */ {
  744. public:
  745. SimpleResult();
  746. virtual ~SimpleResult();
  747. SimpleResult(const SimpleResult& from);
  748. inline SimpleResult& operator=(const SimpleResult& from) {
  749. CopyFrom(from);
  750. return *this;
  751. }
  752. #if LANG_CXX11
  753. SimpleResult(SimpleResult&& from) noexcept
  754. : SimpleResult() {
  755. *this = ::std::move(from);
  756. }
  757. inline SimpleResult& operator=(SimpleResult&& from) noexcept {
  758. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  759. if (this != &from) InternalSwap(&from);
  760. } else {
  761. CopyFrom(from);
  762. }
  763. return *this;
  764. }
  765. #endif
  766. static const ::google::protobuf::Descriptor* descriptor();
  767. static const SimpleResult& default_instance();
  768. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  769. static inline const SimpleResult* internal_default_instance() {
  770. return reinterpret_cast<const SimpleResult*>(
  771. &_SimpleResult_default_instance_);
  772. }
  773. static constexpr int kIndexInFileMessages =
  774. 6;
  775. void Swap(SimpleResult* other);
  776. friend void swap(SimpleResult& a, SimpleResult& b) {
  777. a.Swap(&b);
  778. }
  779. // implements Message ----------------------------------------------
  780. inline SimpleResult* New() const final {
  781. return CreateMaybeMessage<SimpleResult>(NULL);
  782. }
  783. SimpleResult* New(::google::protobuf::Arena* arena) const final {
  784. return CreateMaybeMessage<SimpleResult>(arena);
  785. }
  786. void CopyFrom(const ::google::protobuf::Message& from) final;
  787. void MergeFrom(const ::google::protobuf::Message& from) final;
  788. void CopyFrom(const SimpleResult& from);
  789. void MergeFrom(const SimpleResult& from);
  790. void Clear() final;
  791. bool IsInitialized() const final;
  792. size_t ByteSizeLong() const final;
  793. bool MergePartialFromCodedStream(
  794. ::google::protobuf::io::CodedInputStream* input) final;
  795. void SerializeWithCachedSizes(
  796. ::google::protobuf::io::CodedOutputStream* output) const final;
  797. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  798. bool deterministic, ::google::protobuf::uint8* target) const final;
  799. int GetCachedSize() const final { return _cached_size_.Get(); }
  800. private:
  801. void SharedCtor();
  802. void SharedDtor();
  803. void SetCachedSize(int size) const final;
  804. void InternalSwap(SimpleResult* other);
  805. private:
  806. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  807. return NULL;
  808. }
  809. inline void* MaybeArenaPtr() const {
  810. return NULL;
  811. }
  812. public:
  813. ::google::protobuf::Metadata GetMetadata() const final;
  814. // nested types ----------------------------------------------------
  815. // accessors -------------------------------------------------------
  816. // bool ok = 1;
  817. void clear_ok();
  818. static const int kOkFieldNumber = 1;
  819. bool ok() const;
  820. void set_ok(bool value);
  821. // @@protoc_insertion_point(class_scope:qtprotobuf.examples.SimpleResult)
  822. private:
  823. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  824. bool ok_;
  825. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  826. friend struct ::protobuf_addressbook_2eproto::TableStruct;
  827. };
  828. // -------------------------------------------------------------------
  829. class ListFrame : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobuf.examples.ListFrame) */ {
  830. public:
  831. ListFrame();
  832. virtual ~ListFrame();
  833. ListFrame(const ListFrame& from);
  834. inline ListFrame& operator=(const ListFrame& from) {
  835. CopyFrom(from);
  836. return *this;
  837. }
  838. #if LANG_CXX11
  839. ListFrame(ListFrame&& from) noexcept
  840. : ListFrame() {
  841. *this = ::std::move(from);
  842. }
  843. inline ListFrame& operator=(ListFrame&& from) noexcept {
  844. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  845. if (this != &from) InternalSwap(&from);
  846. } else {
  847. CopyFrom(from);
  848. }
  849. return *this;
  850. }
  851. #endif
  852. static const ::google::protobuf::Descriptor* descriptor();
  853. static const ListFrame& default_instance();
  854. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  855. static inline const ListFrame* internal_default_instance() {
  856. return reinterpret_cast<const ListFrame*>(
  857. &_ListFrame_default_instance_);
  858. }
  859. static constexpr int kIndexInFileMessages =
  860. 7;
  861. void Swap(ListFrame* other);
  862. friend void swap(ListFrame& a, ListFrame& b) {
  863. a.Swap(&b);
  864. }
  865. // implements Message ----------------------------------------------
  866. inline ListFrame* New() const final {
  867. return CreateMaybeMessage<ListFrame>(NULL);
  868. }
  869. ListFrame* New(::google::protobuf::Arena* arena) const final {
  870. return CreateMaybeMessage<ListFrame>(arena);
  871. }
  872. void CopyFrom(const ::google::protobuf::Message& from) final;
  873. void MergeFrom(const ::google::protobuf::Message& from) final;
  874. void CopyFrom(const ListFrame& from);
  875. void MergeFrom(const ListFrame& from);
  876. void Clear() final;
  877. bool IsInitialized() const final;
  878. size_t ByteSizeLong() const final;
  879. bool MergePartialFromCodedStream(
  880. ::google::protobuf::io::CodedInputStream* input) final;
  881. void SerializeWithCachedSizes(
  882. ::google::protobuf::io::CodedOutputStream* output) const final;
  883. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  884. bool deterministic, ::google::protobuf::uint8* target) const final;
  885. int GetCachedSize() const final { return _cached_size_.Get(); }
  886. private:
  887. void SharedCtor();
  888. void SharedDtor();
  889. void SetCachedSize(int size) const final;
  890. void InternalSwap(ListFrame* other);
  891. private:
  892. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  893. return NULL;
  894. }
  895. inline void* MaybeArenaPtr() const {
  896. return NULL;
  897. }
  898. public:
  899. ::google::protobuf::Metadata GetMetadata() const final;
  900. // nested types ----------------------------------------------------
  901. // accessors -------------------------------------------------------
  902. // sint32 start = 1;
  903. void clear_start();
  904. static const int kStartFieldNumber = 1;
  905. ::google::protobuf::int32 start() const;
  906. void set_start(::google::protobuf::int32 value);
  907. // sint32 end = 2;
  908. void clear_end();
  909. static const int kEndFieldNumber = 2;
  910. ::google::protobuf::int32 end() const;
  911. void set_end(::google::protobuf::int32 value);
  912. // @@protoc_insertion_point(class_scope:qtprotobuf.examples.ListFrame)
  913. private:
  914. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  915. ::google::protobuf::int32 start_;
  916. ::google::protobuf::int32 end_;
  917. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  918. friend struct ::protobuf_addressbook_2eproto::TableStruct;
  919. };
  920. // ===================================================================
  921. // ===================================================================
  922. #ifdef __GNUC__
  923. #pragma GCC diagnostic push
  924. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  925. #endif // __GNUC__
  926. // PhoneNumber
  927. // uint32 countryCode = 1;
  928. inline void PhoneNumber::clear_countrycode() {
  929. countrycode_ = 0u;
  930. }
  931. inline ::google::protobuf::uint32 PhoneNumber::countrycode() const {
  932. // @@protoc_insertion_point(field_get:qtprotobuf.examples.PhoneNumber.countryCode)
  933. return countrycode_;
  934. }
  935. inline void PhoneNumber::set_countrycode(::google::protobuf::uint32 value) {
  936. countrycode_ = value;
  937. // @@protoc_insertion_point(field_set:qtprotobuf.examples.PhoneNumber.countryCode)
  938. }
  939. // uint64 number = 2;
  940. inline void PhoneNumber::clear_number() {
  941. number_ = GOOGLE_ULONGLONG(0);
  942. }
  943. inline ::google::protobuf::uint64 PhoneNumber::number() const {
  944. // @@protoc_insertion_point(field_get:qtprotobuf.examples.PhoneNumber.number)
  945. return number_;
  946. }
  947. inline void PhoneNumber::set_number(::google::protobuf::uint64 value) {
  948. number_ = value;
  949. // @@protoc_insertion_point(field_set:qtprotobuf.examples.PhoneNumber.number)
  950. }
  951. // -------------------------------------------------------------------
  952. // Address
  953. // uint64 zipCode = 1;
  954. inline void Address::clear_zipcode() {
  955. zipcode_ = GOOGLE_ULONGLONG(0);
  956. }
  957. inline ::google::protobuf::uint64 Address::zipcode() const {
  958. // @@protoc_insertion_point(field_get:qtprotobuf.examples.Address.zipCode)
  959. return zipcode_;
  960. }
  961. inline void Address::set_zipcode(::google::protobuf::uint64 value) {
  962. zipcode_ = value;
  963. // @@protoc_insertion_point(field_set:qtprotobuf.examples.Address.zipCode)
  964. }
  965. // string streetAddress1 = 2;
  966. inline void Address::clear_streetaddress1() {
  967. streetaddress1_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  968. }
  969. inline const ::std::string& Address::streetaddress1() const {
  970. // @@protoc_insertion_point(field_get:qtprotobuf.examples.Address.streetAddress1)
  971. return streetaddress1_.GetNoArena();
  972. }
  973. inline void Address::set_streetaddress1(const ::std::string& value) {
  974. streetaddress1_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  975. // @@protoc_insertion_point(field_set:qtprotobuf.examples.Address.streetAddress1)
  976. }
  977. #if LANG_CXX11
  978. inline void Address::set_streetaddress1(::std::string&& value) {
  979. streetaddress1_.SetNoArena(
  980. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  981. // @@protoc_insertion_point(field_set_rvalue:qtprotobuf.examples.Address.streetAddress1)
  982. }
  983. #endif
  984. inline void Address::set_streetaddress1(const char* value) {
  985. GOOGLE_DCHECK(value != NULL);
  986. streetaddress1_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  987. // @@protoc_insertion_point(field_set_char:qtprotobuf.examples.Address.streetAddress1)
  988. }
  989. inline void Address::set_streetaddress1(const char* value, size_t size) {
  990. streetaddress1_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  991. ::std::string(reinterpret_cast<const char*>(value), size));
  992. // @@protoc_insertion_point(field_set_pointer:qtprotobuf.examples.Address.streetAddress1)
  993. }
  994. inline ::std::string* Address::mutable_streetaddress1() {
  995. // @@protoc_insertion_point(field_mutable:qtprotobuf.examples.Address.streetAddress1)
  996. return streetaddress1_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  997. }
  998. inline ::std::string* Address::release_streetaddress1() {
  999. // @@protoc_insertion_point(field_release:qtprotobuf.examples.Address.streetAddress1)
  1000. return streetaddress1_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1001. }
  1002. inline void Address::set_allocated_streetaddress1(::std::string* streetaddress1) {
  1003. if (streetaddress1 != NULL) {
  1004. } else {
  1005. }
  1006. streetaddress1_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), streetaddress1);
  1007. // @@protoc_insertion_point(field_set_allocated:qtprotobuf.examples.Address.streetAddress1)
  1008. }
  1009. // string streetAddress2 = 3;
  1010. inline void Address::clear_streetaddress2() {
  1011. streetaddress2_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1012. }
  1013. inline const ::std::string& Address::streetaddress2() const {
  1014. // @@protoc_insertion_point(field_get:qtprotobuf.examples.Address.streetAddress2)
  1015. return streetaddress2_.GetNoArena();
  1016. }
  1017. inline void Address::set_streetaddress2(const ::std::string& value) {
  1018. streetaddress2_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  1019. // @@protoc_insertion_point(field_set:qtprotobuf.examples.Address.streetAddress2)
  1020. }
  1021. #if LANG_CXX11
  1022. inline void Address::set_streetaddress2(::std::string&& value) {
  1023. streetaddress2_.SetNoArena(
  1024. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1025. // @@protoc_insertion_point(field_set_rvalue:qtprotobuf.examples.Address.streetAddress2)
  1026. }
  1027. #endif
  1028. inline void Address::set_streetaddress2(const char* value) {
  1029. GOOGLE_DCHECK(value != NULL);
  1030. streetaddress2_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1031. // @@protoc_insertion_point(field_set_char:qtprotobuf.examples.Address.streetAddress2)
  1032. }
  1033. inline void Address::set_streetaddress2(const char* value, size_t size) {
  1034. streetaddress2_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1035. ::std::string(reinterpret_cast<const char*>(value), size));
  1036. // @@protoc_insertion_point(field_set_pointer:qtprotobuf.examples.Address.streetAddress2)
  1037. }
  1038. inline ::std::string* Address::mutable_streetaddress2() {
  1039. // @@protoc_insertion_point(field_mutable:qtprotobuf.examples.Address.streetAddress2)
  1040. return streetaddress2_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1041. }
  1042. inline ::std::string* Address::release_streetaddress2() {
  1043. // @@protoc_insertion_point(field_release:qtprotobuf.examples.Address.streetAddress2)
  1044. return streetaddress2_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1045. }
  1046. inline void Address::set_allocated_streetaddress2(::std::string* streetaddress2) {
  1047. if (streetaddress2 != NULL) {
  1048. } else {
  1049. }
  1050. streetaddress2_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), streetaddress2);
  1051. // @@protoc_insertion_point(field_set_allocated:qtprotobuf.examples.Address.streetAddress2)
  1052. }
  1053. // string state = 4;
  1054. inline void Address::clear_state() {
  1055. state_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1056. }
  1057. inline const ::std::string& Address::state() const {
  1058. // @@protoc_insertion_point(field_get:qtprotobuf.examples.Address.state)
  1059. return state_.GetNoArena();
  1060. }
  1061. inline void Address::set_state(const ::std::string& value) {
  1062. state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  1063. // @@protoc_insertion_point(field_set:qtprotobuf.examples.Address.state)
  1064. }
  1065. #if LANG_CXX11
  1066. inline void Address::set_state(::std::string&& value) {
  1067. state_.SetNoArena(
  1068. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1069. // @@protoc_insertion_point(field_set_rvalue:qtprotobuf.examples.Address.state)
  1070. }
  1071. #endif
  1072. inline void Address::set_state(const char* value) {
  1073. GOOGLE_DCHECK(value != NULL);
  1074. state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1075. // @@protoc_insertion_point(field_set_char:qtprotobuf.examples.Address.state)
  1076. }
  1077. inline void Address::set_state(const char* value, size_t size) {
  1078. state_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1079. ::std::string(reinterpret_cast<const char*>(value), size));
  1080. // @@protoc_insertion_point(field_set_pointer:qtprotobuf.examples.Address.state)
  1081. }
  1082. inline ::std::string* Address::mutable_state() {
  1083. // @@protoc_insertion_point(field_mutable:qtprotobuf.examples.Address.state)
  1084. return state_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1085. }
  1086. inline ::std::string* Address::release_state() {
  1087. // @@protoc_insertion_point(field_release:qtprotobuf.examples.Address.state)
  1088. return state_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1089. }
  1090. inline void Address::set_allocated_state(::std::string* state) {
  1091. if (state != NULL) {
  1092. } else {
  1093. }
  1094. state_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), state);
  1095. // @@protoc_insertion_point(field_set_allocated:qtprotobuf.examples.Address.state)
  1096. }
  1097. // uint32 country = 5;
  1098. inline void Address::clear_country() {
  1099. country_ = 0u;
  1100. }
  1101. inline ::google::protobuf::uint32 Address::country() const {
  1102. // @@protoc_insertion_point(field_get:qtprotobuf.examples.Address.country)
  1103. return country_;
  1104. }
  1105. inline void Address::set_country(::google::protobuf::uint32 value) {
  1106. country_ = value;
  1107. // @@protoc_insertion_point(field_set:qtprotobuf.examples.Address.country)
  1108. }
  1109. // -------------------------------------------------------------------
  1110. // Job
  1111. // string title = 1;
  1112. inline void Job::clear_title() {
  1113. title_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1114. }
  1115. inline const ::std::string& Job::title() const {
  1116. // @@protoc_insertion_point(field_get:qtprotobuf.examples.Job.title)
  1117. return title_.GetNoArena();
  1118. }
  1119. inline void Job::set_title(const ::std::string& value) {
  1120. title_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  1121. // @@protoc_insertion_point(field_set:qtprotobuf.examples.Job.title)
  1122. }
  1123. #if LANG_CXX11
  1124. inline void Job::set_title(::std::string&& value) {
  1125. title_.SetNoArena(
  1126. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1127. // @@protoc_insertion_point(field_set_rvalue:qtprotobuf.examples.Job.title)
  1128. }
  1129. #endif
  1130. inline void Job::set_title(const char* value) {
  1131. GOOGLE_DCHECK(value != NULL);
  1132. title_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1133. // @@protoc_insertion_point(field_set_char:qtprotobuf.examples.Job.title)
  1134. }
  1135. inline void Job::set_title(const char* value, size_t size) {
  1136. title_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1137. ::std::string(reinterpret_cast<const char*>(value), size));
  1138. // @@protoc_insertion_point(field_set_pointer:qtprotobuf.examples.Job.title)
  1139. }
  1140. inline ::std::string* Job::mutable_title() {
  1141. // @@protoc_insertion_point(field_mutable:qtprotobuf.examples.Job.title)
  1142. return title_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1143. }
  1144. inline ::std::string* Job::release_title() {
  1145. // @@protoc_insertion_point(field_release:qtprotobuf.examples.Job.title)
  1146. return title_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1147. }
  1148. inline void Job::set_allocated_title(::std::string* title) {
  1149. if (title != NULL) {
  1150. } else {
  1151. }
  1152. title_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), title);
  1153. // @@protoc_insertion_point(field_set_allocated:qtprotobuf.examples.Job.title)
  1154. }
  1155. // .qtprotobuf.examples.Address officeAddress = 2;
  1156. inline bool Job::has_officeaddress() const {
  1157. return this != internal_default_instance() && officeaddress_ != NULL;
  1158. }
  1159. inline void Job::clear_officeaddress() {
  1160. if (GetArenaNoVirtual() == NULL && officeaddress_ != NULL) {
  1161. delete officeaddress_;
  1162. }
  1163. officeaddress_ = NULL;
  1164. }
  1165. inline const ::qtprotobuf::examples::Address& Job::_internal_officeaddress() const {
  1166. return *officeaddress_;
  1167. }
  1168. inline const ::qtprotobuf::examples::Address& Job::officeaddress() const {
  1169. const ::qtprotobuf::examples::Address* p = officeaddress_;
  1170. // @@protoc_insertion_point(field_get:qtprotobuf.examples.Job.officeAddress)
  1171. return p != NULL ? *p : *reinterpret_cast<const ::qtprotobuf::examples::Address*>(
  1172. &::qtprotobuf::examples::_Address_default_instance_);
  1173. }
  1174. inline ::qtprotobuf::examples::Address* Job::release_officeaddress() {
  1175. // @@protoc_insertion_point(field_release:qtprotobuf.examples.Job.officeAddress)
  1176. ::qtprotobuf::examples::Address* temp = officeaddress_;
  1177. officeaddress_ = NULL;
  1178. return temp;
  1179. }
  1180. inline ::qtprotobuf::examples::Address* Job::mutable_officeaddress() {
  1181. if (officeaddress_ == NULL) {
  1182. auto* p = CreateMaybeMessage<::qtprotobuf::examples::Address>(GetArenaNoVirtual());
  1183. officeaddress_ = p;
  1184. }
  1185. // @@protoc_insertion_point(field_mutable:qtprotobuf.examples.Job.officeAddress)
  1186. return officeaddress_;
  1187. }
  1188. inline void Job::set_allocated_officeaddress(::qtprotobuf::examples::Address* officeaddress) {
  1189. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1190. if (message_arena == NULL) {
  1191. delete officeaddress_;
  1192. }
  1193. if (officeaddress) {
  1194. ::google::protobuf::Arena* submessage_arena = NULL;
  1195. if (message_arena != submessage_arena) {
  1196. officeaddress = ::google::protobuf::internal::GetOwnedMessage(
  1197. message_arena, officeaddress, submessage_arena);
  1198. }
  1199. } else {
  1200. }
  1201. officeaddress_ = officeaddress;
  1202. // @@protoc_insertion_point(field_set_allocated:qtprotobuf.examples.Job.officeAddress)
  1203. }
  1204. // -------------------------------------------------------------------
  1205. // -------------------------------------------------------------------
  1206. // Contact
  1207. // string firstName = 1;
  1208. inline void Contact::clear_firstname() {
  1209. firstname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1210. }
  1211. inline const ::std::string& Contact::firstname() const {
  1212. // @@protoc_insertion_point(field_get:qtprotobuf.examples.Contact.firstName)
  1213. return firstname_.GetNoArena();
  1214. }
  1215. inline void Contact::set_firstname(const ::std::string& value) {
  1216. firstname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  1217. // @@protoc_insertion_point(field_set:qtprotobuf.examples.Contact.firstName)
  1218. }
  1219. #if LANG_CXX11
  1220. inline void Contact::set_firstname(::std::string&& value) {
  1221. firstname_.SetNoArena(
  1222. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1223. // @@protoc_insertion_point(field_set_rvalue:qtprotobuf.examples.Contact.firstName)
  1224. }
  1225. #endif
  1226. inline void Contact::set_firstname(const char* value) {
  1227. GOOGLE_DCHECK(value != NULL);
  1228. firstname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1229. // @@protoc_insertion_point(field_set_char:qtprotobuf.examples.Contact.firstName)
  1230. }
  1231. inline void Contact::set_firstname(const char* value, size_t size) {
  1232. firstname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1233. ::std::string(reinterpret_cast<const char*>(value), size));
  1234. // @@protoc_insertion_point(field_set_pointer:qtprotobuf.examples.Contact.firstName)
  1235. }
  1236. inline ::std::string* Contact::mutable_firstname() {
  1237. // @@protoc_insertion_point(field_mutable:qtprotobuf.examples.Contact.firstName)
  1238. return firstname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1239. }
  1240. inline ::std::string* Contact::release_firstname() {
  1241. // @@protoc_insertion_point(field_release:qtprotobuf.examples.Contact.firstName)
  1242. return firstname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1243. }
  1244. inline void Contact::set_allocated_firstname(::std::string* firstname) {
  1245. if (firstname != NULL) {
  1246. } else {
  1247. }
  1248. firstname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), firstname);
  1249. // @@protoc_insertion_point(field_set_allocated:qtprotobuf.examples.Contact.firstName)
  1250. }
  1251. // string lastName = 2;
  1252. inline void Contact::clear_lastname() {
  1253. lastname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1254. }
  1255. inline const ::std::string& Contact::lastname() const {
  1256. // @@protoc_insertion_point(field_get:qtprotobuf.examples.Contact.lastName)
  1257. return lastname_.GetNoArena();
  1258. }
  1259. inline void Contact::set_lastname(const ::std::string& value) {
  1260. lastname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  1261. // @@protoc_insertion_point(field_set:qtprotobuf.examples.Contact.lastName)
  1262. }
  1263. #if LANG_CXX11
  1264. inline void Contact::set_lastname(::std::string&& value) {
  1265. lastname_.SetNoArena(
  1266. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1267. // @@protoc_insertion_point(field_set_rvalue:qtprotobuf.examples.Contact.lastName)
  1268. }
  1269. #endif
  1270. inline void Contact::set_lastname(const char* value) {
  1271. GOOGLE_DCHECK(value != NULL);
  1272. lastname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1273. // @@protoc_insertion_point(field_set_char:qtprotobuf.examples.Contact.lastName)
  1274. }
  1275. inline void Contact::set_lastname(const char* value, size_t size) {
  1276. lastname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1277. ::std::string(reinterpret_cast<const char*>(value), size));
  1278. // @@protoc_insertion_point(field_set_pointer:qtprotobuf.examples.Contact.lastName)
  1279. }
  1280. inline ::std::string* Contact::mutable_lastname() {
  1281. // @@protoc_insertion_point(field_mutable:qtprotobuf.examples.Contact.lastName)
  1282. return lastname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1283. }
  1284. inline ::std::string* Contact::release_lastname() {
  1285. // @@protoc_insertion_point(field_release:qtprotobuf.examples.Contact.lastName)
  1286. return lastname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1287. }
  1288. inline void Contact::set_allocated_lastname(::std::string* lastname) {
  1289. if (lastname != NULL) {
  1290. } else {
  1291. }
  1292. lastname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), lastname);
  1293. // @@protoc_insertion_point(field_set_allocated:qtprotobuf.examples.Contact.lastName)
  1294. }
  1295. // string middleName = 3;
  1296. inline void Contact::clear_middlename() {
  1297. middlename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1298. }
  1299. inline const ::std::string& Contact::middlename() const {
  1300. // @@protoc_insertion_point(field_get:qtprotobuf.examples.Contact.middleName)
  1301. return middlename_.GetNoArena();
  1302. }
  1303. inline void Contact::set_middlename(const ::std::string& value) {
  1304. middlename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  1305. // @@protoc_insertion_point(field_set:qtprotobuf.examples.Contact.middleName)
  1306. }
  1307. #if LANG_CXX11
  1308. inline void Contact::set_middlename(::std::string&& value) {
  1309. middlename_.SetNoArena(
  1310. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1311. // @@protoc_insertion_point(field_set_rvalue:qtprotobuf.examples.Contact.middleName)
  1312. }
  1313. #endif
  1314. inline void Contact::set_middlename(const char* value) {
  1315. GOOGLE_DCHECK(value != NULL);
  1316. middlename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1317. // @@protoc_insertion_point(field_set_char:qtprotobuf.examples.Contact.middleName)
  1318. }
  1319. inline void Contact::set_middlename(const char* value, size_t size) {
  1320. middlename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1321. ::std::string(reinterpret_cast<const char*>(value), size));
  1322. // @@protoc_insertion_point(field_set_pointer:qtprotobuf.examples.Contact.middleName)
  1323. }
  1324. inline ::std::string* Contact::mutable_middlename() {
  1325. // @@protoc_insertion_point(field_mutable:qtprotobuf.examples.Contact.middleName)
  1326. return middlename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1327. }
  1328. inline ::std::string* Contact::release_middlename() {
  1329. // @@protoc_insertion_point(field_release:qtprotobuf.examples.Contact.middleName)
  1330. return middlename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1331. }
  1332. inline void Contact::set_allocated_middlename(::std::string* middlename) {
  1333. if (middlename != NULL) {
  1334. } else {
  1335. }
  1336. middlename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), middlename);
  1337. // @@protoc_insertion_point(field_set_allocated:qtprotobuf.examples.Contact.middleName)
  1338. }
  1339. // map<int32, .qtprotobuf.examples.PhoneNumber> phones = 4;
  1340. inline int Contact::phones_size() const {
  1341. return phones_.size();
  1342. }
  1343. inline void Contact::clear_phones() {
  1344. phones_.Clear();
  1345. }
  1346. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::qtprotobuf::examples::PhoneNumber >&
  1347. Contact::phones() const {
  1348. // @@protoc_insertion_point(field_map:qtprotobuf.examples.Contact.phones)
  1349. return phones_.GetMap();
  1350. }
  1351. inline ::google::protobuf::Map< ::google::protobuf::int32, ::qtprotobuf::examples::PhoneNumber >*
  1352. Contact::mutable_phones() {
  1353. // @@protoc_insertion_point(field_mutable_map:qtprotobuf.examples.Contact.phones)
  1354. return phones_.MutableMap();
  1355. }
  1356. // .qtprotobuf.examples.Address address = 5;
  1357. inline bool Contact::has_address() const {
  1358. return this != internal_default_instance() && address_ != NULL;
  1359. }
  1360. inline void Contact::clear_address() {
  1361. if (GetArenaNoVirtual() == NULL && address_ != NULL) {
  1362. delete address_;
  1363. }
  1364. address_ = NULL;
  1365. }
  1366. inline const ::qtprotobuf::examples::Address& Contact::_internal_address() const {
  1367. return *address_;
  1368. }
  1369. inline const ::qtprotobuf::examples::Address& Contact::address() const {
  1370. const ::qtprotobuf::examples::Address* p = address_;
  1371. // @@protoc_insertion_point(field_get:qtprotobuf.examples.Contact.address)
  1372. return p != NULL ? *p : *reinterpret_cast<const ::qtprotobuf::examples::Address*>(
  1373. &::qtprotobuf::examples::_Address_default_instance_);
  1374. }
  1375. inline ::qtprotobuf::examples::Address* Contact::release_address() {
  1376. // @@protoc_insertion_point(field_release:qtprotobuf.examples.Contact.address)
  1377. ::qtprotobuf::examples::Address* temp = address_;
  1378. address_ = NULL;
  1379. return temp;
  1380. }
  1381. inline ::qtprotobuf::examples::Address* Contact::mutable_address() {
  1382. if (address_ == NULL) {
  1383. auto* p = CreateMaybeMessage<::qtprotobuf::examples::Address>(GetArenaNoVirtual());
  1384. address_ = p;
  1385. }
  1386. // @@protoc_insertion_point(field_mutable:qtprotobuf.examples.Contact.address)
  1387. return address_;
  1388. }
  1389. inline void Contact::set_allocated_address(::qtprotobuf::examples::Address* address) {
  1390. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1391. if (message_arena == NULL) {
  1392. delete address_;
  1393. }
  1394. if (address) {
  1395. ::google::protobuf::Arena* submessage_arena = NULL;
  1396. if (message_arena != submessage_arena) {
  1397. address = ::google::protobuf::internal::GetOwnedMessage(
  1398. message_arena, address, submessage_arena);
  1399. }
  1400. } else {
  1401. }
  1402. address_ = address;
  1403. // @@protoc_insertion_point(field_set_allocated:qtprotobuf.examples.Contact.address)
  1404. }
  1405. // .qtprotobuf.examples.Job job = 6;
  1406. inline bool Contact::has_job() const {
  1407. return this != internal_default_instance() && job_ != NULL;
  1408. }
  1409. inline void Contact::clear_job() {
  1410. if (GetArenaNoVirtual() == NULL && job_ != NULL) {
  1411. delete job_;
  1412. }
  1413. job_ = NULL;
  1414. }
  1415. inline const ::qtprotobuf::examples::Job& Contact::_internal_job() const {
  1416. return *job_;
  1417. }
  1418. inline const ::qtprotobuf::examples::Job& Contact::job() const {
  1419. const ::qtprotobuf::examples::Job* p = job_;
  1420. // @@protoc_insertion_point(field_get:qtprotobuf.examples.Contact.job)
  1421. return p != NULL ? *p : *reinterpret_cast<const ::qtprotobuf::examples::Job*>(
  1422. &::qtprotobuf::examples::_Job_default_instance_);
  1423. }
  1424. inline ::qtprotobuf::examples::Job* Contact::release_job() {
  1425. // @@protoc_insertion_point(field_release:qtprotobuf.examples.Contact.job)
  1426. ::qtprotobuf::examples::Job* temp = job_;
  1427. job_ = NULL;
  1428. return temp;
  1429. }
  1430. inline ::qtprotobuf::examples::Job* Contact::mutable_job() {
  1431. if (job_ == NULL) {
  1432. auto* p = CreateMaybeMessage<::qtprotobuf::examples::Job>(GetArenaNoVirtual());
  1433. job_ = p;
  1434. }
  1435. // @@protoc_insertion_point(field_mutable:qtprotobuf.examples.Contact.job)
  1436. return job_;
  1437. }
  1438. inline void Contact::set_allocated_job(::qtprotobuf::examples::Job* job) {
  1439. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1440. if (message_arena == NULL) {
  1441. delete job_;
  1442. }
  1443. if (job) {
  1444. ::google::protobuf::Arena* submessage_arena = NULL;
  1445. if (message_arena != submessage_arena) {
  1446. job = ::google::protobuf::internal::GetOwnedMessage(
  1447. message_arena, job, submessage_arena);
  1448. }
  1449. } else {
  1450. }
  1451. job_ = job;
  1452. // @@protoc_insertion_point(field_set_allocated:qtprotobuf.examples.Contact.job)
  1453. }
  1454. // -------------------------------------------------------------------
  1455. // Contacts
  1456. // repeated .qtprotobuf.examples.Contact list = 1;
  1457. inline int Contacts::list_size() const {
  1458. return list_.size();
  1459. }
  1460. inline void Contacts::clear_list() {
  1461. list_.Clear();
  1462. }
  1463. inline ::qtprotobuf::examples::Contact* Contacts::mutable_list(int index) {
  1464. // @@protoc_insertion_point(field_mutable:qtprotobuf.examples.Contacts.list)
  1465. return list_.Mutable(index);
  1466. }
  1467. inline ::google::protobuf::RepeatedPtrField< ::qtprotobuf::examples::Contact >*
  1468. Contacts::mutable_list() {
  1469. // @@protoc_insertion_point(field_mutable_list:qtprotobuf.examples.Contacts.list)
  1470. return &list_;
  1471. }
  1472. inline const ::qtprotobuf::examples::Contact& Contacts::list(int index) const {
  1473. // @@protoc_insertion_point(field_get:qtprotobuf.examples.Contacts.list)
  1474. return list_.Get(index);
  1475. }
  1476. inline ::qtprotobuf::examples::Contact* Contacts::add_list() {
  1477. // @@protoc_insertion_point(field_add:qtprotobuf.examples.Contacts.list)
  1478. return list_.Add();
  1479. }
  1480. inline const ::google::protobuf::RepeatedPtrField< ::qtprotobuf::examples::Contact >&
  1481. Contacts::list() const {
  1482. // @@protoc_insertion_point(field_list:qtprotobuf.examples.Contacts.list)
  1483. return list_;
  1484. }
  1485. // -------------------------------------------------------------------
  1486. // SimpleResult
  1487. // bool ok = 1;
  1488. inline void SimpleResult::clear_ok() {
  1489. ok_ = false;
  1490. }
  1491. inline bool SimpleResult::ok() const {
  1492. // @@protoc_insertion_point(field_get:qtprotobuf.examples.SimpleResult.ok)
  1493. return ok_;
  1494. }
  1495. inline void SimpleResult::set_ok(bool value) {
  1496. ok_ = value;
  1497. // @@protoc_insertion_point(field_set:qtprotobuf.examples.SimpleResult.ok)
  1498. }
  1499. // -------------------------------------------------------------------
  1500. // ListFrame
  1501. // sint32 start = 1;
  1502. inline void ListFrame::clear_start() {
  1503. start_ = 0;
  1504. }
  1505. inline ::google::protobuf::int32 ListFrame::start() const {
  1506. // @@protoc_insertion_point(field_get:qtprotobuf.examples.ListFrame.start)
  1507. return start_;
  1508. }
  1509. inline void ListFrame::set_start(::google::protobuf::int32 value) {
  1510. start_ = value;
  1511. // @@protoc_insertion_point(field_set:qtprotobuf.examples.ListFrame.start)
  1512. }
  1513. // sint32 end = 2;
  1514. inline void ListFrame::clear_end() {
  1515. end_ = 0;
  1516. }
  1517. inline ::google::protobuf::int32 ListFrame::end() const {
  1518. // @@protoc_insertion_point(field_get:qtprotobuf.examples.ListFrame.end)
  1519. return end_;
  1520. }
  1521. inline void ListFrame::set_end(::google::protobuf::int32 value) {
  1522. end_ = value;
  1523. // @@protoc_insertion_point(field_set:qtprotobuf.examples.ListFrame.end)
  1524. }
  1525. #ifdef __GNUC__
  1526. #pragma GCC diagnostic pop
  1527. #endif // __GNUC__
  1528. // -------------------------------------------------------------------
  1529. // -------------------------------------------------------------------
  1530. // -------------------------------------------------------------------
  1531. // -------------------------------------------------------------------
  1532. // -------------------------------------------------------------------
  1533. // -------------------------------------------------------------------
  1534. // -------------------------------------------------------------------
  1535. // @@protoc_insertion_point(namespace_scope)
  1536. } // namespace examples
  1537. } // namespace qtprotobuf
  1538. namespace google {
  1539. namespace protobuf {
  1540. template <> struct is_proto_enum< ::qtprotobuf::examples::Contact_PhoneType> : ::std::true_type {};
  1541. template <>
  1542. inline const EnumDescriptor* GetEnumDescriptor< ::qtprotobuf::examples::Contact_PhoneType>() {
  1543. return ::qtprotobuf::examples::Contact_PhoneType_descriptor();
  1544. }
  1545. } // namespace protobuf
  1546. } // namespace google
  1547. // @@protoc_insertion_point(global_scope)
  1548. #endif // PROTOBUF_INCLUDED_addressbook_2eproto