addressbook.pb.h 62 KB

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