addressbook.pb.h 65 KB

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