addressbook.pb.cc 106 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: addressbook.proto
  3. #include "addressbook.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/io/coded_stream.h>
  8. #include <google/protobuf/wire_format_lite_inl.h>
  9. #include <google/protobuf/descriptor.h>
  10. #include <google/protobuf/generated_message_reflection.h>
  11. #include <google/protobuf/reflection_ops.h>
  12. #include <google/protobuf/wire_format.h>
  13. // This is a temporary google only hack
  14. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  15. #include "third_party/protobuf/version.h"
  16. #endif
  17. // @@protoc_insertion_point(includes)
  18. namespace protobuf_addressbook_2eproto {
  19. extern PROTOBUF_INTERNAL_EXPORT_protobuf_addressbook_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Address;
  20. extern PROTOBUF_INTERNAL_EXPORT_protobuf_addressbook_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PhoneNumber;
  21. extern PROTOBUF_INTERNAL_EXPORT_protobuf_addressbook_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Contact_PhonesEntry_DoNotUse;
  22. extern PROTOBUF_INTERNAL_EXPORT_protobuf_addressbook_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Job;
  23. extern PROTOBUF_INTERNAL_EXPORT_protobuf_addressbook_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Contact;
  24. } // namespace protobuf_addressbook_2eproto
  25. namespace qtprotobuf {
  26. namespace examples {
  27. class PhoneNumberDefaultTypeInternal {
  28. public:
  29. ::google::protobuf::internal::ExplicitlyConstructed<PhoneNumber>
  30. _instance;
  31. } _PhoneNumber_default_instance_;
  32. class AddressDefaultTypeInternal {
  33. public:
  34. ::google::protobuf::internal::ExplicitlyConstructed<Address>
  35. _instance;
  36. } _Address_default_instance_;
  37. class JobDefaultTypeInternal {
  38. public:
  39. ::google::protobuf::internal::ExplicitlyConstructed<Job>
  40. _instance;
  41. } _Job_default_instance_;
  42. class Contact_PhonesEntry_DoNotUseDefaultTypeInternal {
  43. public:
  44. ::google::protobuf::internal::ExplicitlyConstructed<Contact_PhonesEntry_DoNotUse>
  45. _instance;
  46. } _Contact_PhonesEntry_DoNotUse_default_instance_;
  47. class ContactDefaultTypeInternal {
  48. public:
  49. ::google::protobuf::internal::ExplicitlyConstructed<Contact>
  50. _instance;
  51. } _Contact_default_instance_;
  52. class ContactsDefaultTypeInternal {
  53. public:
  54. ::google::protobuf::internal::ExplicitlyConstructed<Contacts>
  55. _instance;
  56. } _Contacts_default_instance_;
  57. class SimpleResultDefaultTypeInternal {
  58. public:
  59. ::google::protobuf::internal::ExplicitlyConstructed<SimpleResult>
  60. _instance;
  61. } _SimpleResult_default_instance_;
  62. class ListFrameDefaultTypeInternal {
  63. public:
  64. ::google::protobuf::internal::ExplicitlyConstructed<ListFrame>
  65. _instance;
  66. } _ListFrame_default_instance_;
  67. } // namespace examples
  68. } // namespace qtprotobuf
  69. namespace protobuf_addressbook_2eproto {
  70. static void InitDefaultsPhoneNumber() {
  71. GOOGLE_PROTOBUF_VERIFY_VERSION;
  72. {
  73. void* ptr = &::qtprotobuf::examples::_PhoneNumber_default_instance_;
  74. new (ptr) ::qtprotobuf::examples::PhoneNumber();
  75. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  76. }
  77. ::qtprotobuf::examples::PhoneNumber::InitAsDefaultInstance();
  78. }
  79. ::google::protobuf::internal::SCCInfo<0> scc_info_PhoneNumber =
  80. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPhoneNumber}, {}};
  81. static void InitDefaultsAddress() {
  82. GOOGLE_PROTOBUF_VERIFY_VERSION;
  83. {
  84. void* ptr = &::qtprotobuf::examples::_Address_default_instance_;
  85. new (ptr) ::qtprotobuf::examples::Address();
  86. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  87. }
  88. ::qtprotobuf::examples::Address::InitAsDefaultInstance();
  89. }
  90. ::google::protobuf::internal::SCCInfo<0> scc_info_Address =
  91. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAddress}, {}};
  92. static void InitDefaultsJob() {
  93. GOOGLE_PROTOBUF_VERIFY_VERSION;
  94. {
  95. void* ptr = &::qtprotobuf::examples::_Job_default_instance_;
  96. new (ptr) ::qtprotobuf::examples::Job();
  97. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  98. }
  99. ::qtprotobuf::examples::Job::InitAsDefaultInstance();
  100. }
  101. ::google::protobuf::internal::SCCInfo<1> scc_info_Job =
  102. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsJob}, {
  103. &protobuf_addressbook_2eproto::scc_info_Address.base,}};
  104. static void InitDefaultsContact_PhonesEntry_DoNotUse() {
  105. GOOGLE_PROTOBUF_VERIFY_VERSION;
  106. {
  107. void* ptr = &::qtprotobuf::examples::_Contact_PhonesEntry_DoNotUse_default_instance_;
  108. new (ptr) ::qtprotobuf::examples::Contact_PhonesEntry_DoNotUse();
  109. }
  110. ::qtprotobuf::examples::Contact_PhonesEntry_DoNotUse::InitAsDefaultInstance();
  111. }
  112. ::google::protobuf::internal::SCCInfo<1> scc_info_Contact_PhonesEntry_DoNotUse =
  113. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsContact_PhonesEntry_DoNotUse}, {
  114. &protobuf_addressbook_2eproto::scc_info_PhoneNumber.base,}};
  115. static void InitDefaultsContact() {
  116. GOOGLE_PROTOBUF_VERIFY_VERSION;
  117. {
  118. void* ptr = &::qtprotobuf::examples::_Contact_default_instance_;
  119. new (ptr) ::qtprotobuf::examples::Contact();
  120. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  121. }
  122. ::qtprotobuf::examples::Contact::InitAsDefaultInstance();
  123. }
  124. ::google::protobuf::internal::SCCInfo<3> scc_info_Contact =
  125. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsContact}, {
  126. &protobuf_addressbook_2eproto::scc_info_Contact_PhonesEntry_DoNotUse.base,
  127. &protobuf_addressbook_2eproto::scc_info_Address.base,
  128. &protobuf_addressbook_2eproto::scc_info_Job.base,}};
  129. static void InitDefaultsContacts() {
  130. GOOGLE_PROTOBUF_VERIFY_VERSION;
  131. {
  132. void* ptr = &::qtprotobuf::examples::_Contacts_default_instance_;
  133. new (ptr) ::qtprotobuf::examples::Contacts();
  134. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  135. }
  136. ::qtprotobuf::examples::Contacts::InitAsDefaultInstance();
  137. }
  138. ::google::protobuf::internal::SCCInfo<1> scc_info_Contacts =
  139. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsContacts}, {
  140. &protobuf_addressbook_2eproto::scc_info_Contact.base,}};
  141. static void InitDefaultsSimpleResult() {
  142. GOOGLE_PROTOBUF_VERIFY_VERSION;
  143. {
  144. void* ptr = &::qtprotobuf::examples::_SimpleResult_default_instance_;
  145. new (ptr) ::qtprotobuf::examples::SimpleResult();
  146. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  147. }
  148. ::qtprotobuf::examples::SimpleResult::InitAsDefaultInstance();
  149. }
  150. ::google::protobuf::internal::SCCInfo<0> scc_info_SimpleResult =
  151. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleResult}, {}};
  152. static void InitDefaultsListFrame() {
  153. GOOGLE_PROTOBUF_VERIFY_VERSION;
  154. {
  155. void* ptr = &::qtprotobuf::examples::_ListFrame_default_instance_;
  156. new (ptr) ::qtprotobuf::examples::ListFrame();
  157. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  158. }
  159. ::qtprotobuf::examples::ListFrame::InitAsDefaultInstance();
  160. }
  161. ::google::protobuf::internal::SCCInfo<0> scc_info_ListFrame =
  162. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsListFrame}, {}};
  163. void InitDefaults() {
  164. ::google::protobuf::internal::InitSCC(&scc_info_PhoneNumber.base);
  165. ::google::protobuf::internal::InitSCC(&scc_info_Address.base);
  166. ::google::protobuf::internal::InitSCC(&scc_info_Job.base);
  167. ::google::protobuf::internal::InitSCC(&scc_info_Contact_PhonesEntry_DoNotUse.base);
  168. ::google::protobuf::internal::InitSCC(&scc_info_Contact.base);
  169. ::google::protobuf::internal::InitSCC(&scc_info_Contacts.base);
  170. ::google::protobuf::internal::InitSCC(&scc_info_SimpleResult.base);
  171. ::google::protobuf::internal::InitSCC(&scc_info_ListFrame.base);
  172. }
  173. ::google::protobuf::Metadata file_level_metadata[8];
  174. const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
  175. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  176. ~0u, // no _has_bits_
  177. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::PhoneNumber, _internal_metadata_),
  178. ~0u, // no _extensions_
  179. ~0u, // no _oneof_case_
  180. ~0u, // no _weak_field_map_
  181. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::PhoneNumber, countrycode_),
  182. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::PhoneNumber, number_),
  183. ~0u, // no _has_bits_
  184. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::Address, _internal_metadata_),
  185. ~0u, // no _extensions_
  186. ~0u, // no _oneof_case_
  187. ~0u, // no _weak_field_map_
  188. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::Address, zipcode_),
  189. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::Address, streetaddress1_),
  190. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::Address, streetaddress2_),
  191. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::Address, state_),
  192. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::Address, country_),
  193. ~0u, // no _has_bits_
  194. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::Job, _internal_metadata_),
  195. ~0u, // no _extensions_
  196. ~0u, // no _oneof_case_
  197. ~0u, // no _weak_field_map_
  198. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::Job, title_),
  199. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::Job, officeaddress_),
  200. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::Contact_PhonesEntry_DoNotUse, _has_bits_),
  201. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::Contact_PhonesEntry_DoNotUse, _internal_metadata_),
  202. ~0u, // no _extensions_
  203. ~0u, // no _oneof_case_
  204. ~0u, // no _weak_field_map_
  205. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::Contact_PhonesEntry_DoNotUse, key_),
  206. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::Contact_PhonesEntry_DoNotUse, value_),
  207. 0,
  208. 1,
  209. ~0u, // no _has_bits_
  210. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::Contact, _internal_metadata_),
  211. ~0u, // no _extensions_
  212. ~0u, // no _oneof_case_
  213. ~0u, // no _weak_field_map_
  214. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::Contact, firstname_),
  215. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::Contact, lastname_),
  216. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::Contact, middlename_),
  217. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::Contact, phones_),
  218. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::Contact, address_),
  219. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::Contact, job_),
  220. ~0u, // no _has_bits_
  221. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::Contacts, _internal_metadata_),
  222. ~0u, // no _extensions_
  223. ~0u, // no _oneof_case_
  224. ~0u, // no _weak_field_map_
  225. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::Contacts, list_),
  226. ~0u, // no _has_bits_
  227. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::SimpleResult, _internal_metadata_),
  228. ~0u, // no _extensions_
  229. ~0u, // no _oneof_case_
  230. ~0u, // no _weak_field_map_
  231. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::SimpleResult, ok_),
  232. ~0u, // no _has_bits_
  233. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::ListFrame, _internal_metadata_),
  234. ~0u, // no _extensions_
  235. ~0u, // no _oneof_case_
  236. ~0u, // no _weak_field_map_
  237. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::ListFrame, start_),
  238. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobuf::examples::ListFrame, end_),
  239. };
  240. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  241. { 0, -1, sizeof(::qtprotobuf::examples::PhoneNumber)},
  242. { 7, -1, sizeof(::qtprotobuf::examples::Address)},
  243. { 17, -1, sizeof(::qtprotobuf::examples::Job)},
  244. { 24, 31, sizeof(::qtprotobuf::examples::Contact_PhonesEntry_DoNotUse)},
  245. { 33, -1, sizeof(::qtprotobuf::examples::Contact)},
  246. { 44, -1, sizeof(::qtprotobuf::examples::Contacts)},
  247. { 50, -1, sizeof(::qtprotobuf::examples::SimpleResult)},
  248. { 56, -1, sizeof(::qtprotobuf::examples::ListFrame)},
  249. };
  250. static ::google::protobuf::Message const * const file_default_instances[] = {
  251. reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobuf::examples::_PhoneNumber_default_instance_),
  252. reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobuf::examples::_Address_default_instance_),
  253. reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobuf::examples::_Job_default_instance_),
  254. reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobuf::examples::_Contact_PhonesEntry_DoNotUse_default_instance_),
  255. reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobuf::examples::_Contact_default_instance_),
  256. reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobuf::examples::_Contacts_default_instance_),
  257. reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobuf::examples::_SimpleResult_default_instance_),
  258. reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobuf::examples::_ListFrame_default_instance_),
  259. };
  260. void protobuf_AssignDescriptors() {
  261. AddDescriptors();
  262. AssignDescriptors(
  263. "addressbook.proto", schemas, file_default_instances, TableStruct::offsets,
  264. file_level_metadata, file_level_enum_descriptors, NULL);
  265. }
  266. void protobuf_AssignDescriptorsOnce() {
  267. static ::google::protobuf::internal::once_flag once;
  268. ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
  269. }
  270. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  271. void protobuf_RegisterTypes(const ::std::string&) {
  272. protobuf_AssignDescriptorsOnce();
  273. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 8);
  274. }
  275. void AddDescriptorsImpl() {
  276. InitDefaults();
  277. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  278. "\n\021addressbook.proto\022\023qtprotobuf.examples"
  279. "\"2\n\013PhoneNumber\022\023\n\013countryCode\030\001 \001(\r\022\016\n\006"
  280. "number\030\002 \003(\004\"j\n\007Address\022\017\n\007zipCode\030\001 \001(\004"
  281. "\022\026\n\016streetAddress1\030\002 \001(\t\022\026\n\016streetAddres"
  282. "s2\030\003 \001(\t\022\r\n\005state\030\004 \001(\t\022\017\n\007country\030\005 \001(\r"
  283. "\"I\n\003Job\022\r\n\005title\030\001 \001(\t\0223\n\rofficeAddress\030"
  284. "\002 \001(\0132\034.qtprotobuf.examples.Address\"\333\002\n\007"
  285. "Contact\022\021\n\tfirstName\030\001 \001(\t\022\020\n\010lastName\030\002"
  286. " \001(\t\022\022\n\nmiddleName\030\003 \001(\t\0228\n\006phones\030\004 \003(\013"
  287. "2(.qtprotobuf.examples.Contact.PhonesEnt"
  288. "ry\022-\n\007address\030\005 \001(\0132\034.qtprotobuf.example"
  289. "s.Address\022%\n\003job\030\006 \001(\0132\030.qtprotobuf.exam"
  290. "ples.Job\032O\n\013PhonesEntry\022\013\n\003key\030\001 \001(\005\022/\n\005"
  291. "value\030\002 \001(\0132 .qtprotobuf.examples.PhoneN"
  292. "umber:\0028\001\"6\n\tPhoneType\022\010\n\004Home\020\000\022\010\n\004Work"
  293. "\020\001\022\n\n\006Mobile\020\002\022\t\n\005Other\020\003\"6\n\010Contacts\022*\n"
  294. "\004list\030\001 \003(\0132\034.qtprotobuf.examples.Contac"
  295. "t\"\032\n\014SimpleResult\022\n\n\002ok\030\001 \001(\010\"\'\n\tListFra"
  296. "me\022\r\n\005start\030\001 \001(\021\022\013\n\003end\030\002 \001(\0212\232\003\n\013Addre"
  297. "ssBook\022K\n\naddContact\022\034.qtprotobuf.exampl"
  298. "es.Contact\032\035.qtprotobuf.examples.Contact"
  299. "s\"\000\022N\n\rremoveContact\022\034.qtprotobuf.exampl"
  300. "es.Contact\032\035.qtprotobuf.examples.Contact"
  301. "s\"\000\022N\n\013getContacts\022\036.qtprotobuf.examples"
  302. ".ListFrame\032\035.qtprotobuf.examples.Contact"
  303. "s\"\000\022M\n\010makeCall\022\034.qtprotobuf.examples.Co"
  304. "ntact\032!.qtprotobuf.examples.SimpleResult"
  305. "\"\000\022O\n\nnavigateTo\022\034.qtprotobuf.examples.A"
  306. "ddress\032!.qtprotobuf.examples.SimpleResul"
  307. "t\"\000b\006proto3"
  308. };
  309. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  310. descriptor, 1171);
  311. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  312. "addressbook.proto", &protobuf_RegisterTypes);
  313. }
  314. void AddDescriptors() {
  315. static ::google::protobuf::internal::once_flag once;
  316. ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
  317. }
  318. // Force AddDescriptors() to be called at dynamic initialization time.
  319. struct StaticDescriptorInitializer {
  320. StaticDescriptorInitializer() {
  321. AddDescriptors();
  322. }
  323. } static_descriptor_initializer;
  324. } // namespace protobuf_addressbook_2eproto
  325. namespace qtprotobuf {
  326. namespace examples {
  327. const ::google::protobuf::EnumDescriptor* Contact_PhoneType_descriptor() {
  328. protobuf_addressbook_2eproto::protobuf_AssignDescriptorsOnce();
  329. return protobuf_addressbook_2eproto::file_level_enum_descriptors[0];
  330. }
  331. bool Contact_PhoneType_IsValid(int value) {
  332. switch (value) {
  333. case 0:
  334. case 1:
  335. case 2:
  336. case 3:
  337. return true;
  338. default:
  339. return false;
  340. }
  341. }
  342. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  343. const Contact_PhoneType Contact::Home;
  344. const Contact_PhoneType Contact::Work;
  345. const Contact_PhoneType Contact::Mobile;
  346. const Contact_PhoneType Contact::Other;
  347. const Contact_PhoneType Contact::PhoneType_MIN;
  348. const Contact_PhoneType Contact::PhoneType_MAX;
  349. const int Contact::PhoneType_ARRAYSIZE;
  350. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  351. // ===================================================================
  352. void PhoneNumber::InitAsDefaultInstance() {
  353. }
  354. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  355. const int PhoneNumber::kCountryCodeFieldNumber;
  356. const int PhoneNumber::kNumberFieldNumber;
  357. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  358. PhoneNumber::PhoneNumber()
  359. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  360. ::google::protobuf::internal::InitSCC(
  361. &protobuf_addressbook_2eproto::scc_info_PhoneNumber.base);
  362. SharedCtor();
  363. // @@protoc_insertion_point(constructor:qtprotobuf.examples.PhoneNumber)
  364. }
  365. PhoneNumber::PhoneNumber(const PhoneNumber& from)
  366. : ::google::protobuf::Message(),
  367. _internal_metadata_(NULL),
  368. number_(from.number_) {
  369. _internal_metadata_.MergeFrom(from._internal_metadata_);
  370. countrycode_ = from.countrycode_;
  371. // @@protoc_insertion_point(copy_constructor:qtprotobuf.examples.PhoneNumber)
  372. }
  373. void PhoneNumber::SharedCtor() {
  374. countrycode_ = 0u;
  375. }
  376. PhoneNumber::~PhoneNumber() {
  377. // @@protoc_insertion_point(destructor:qtprotobuf.examples.PhoneNumber)
  378. SharedDtor();
  379. }
  380. void PhoneNumber::SharedDtor() {
  381. }
  382. void PhoneNumber::SetCachedSize(int size) const {
  383. _cached_size_.Set(size);
  384. }
  385. const ::google::protobuf::Descriptor* PhoneNumber::descriptor() {
  386. ::protobuf_addressbook_2eproto::protobuf_AssignDescriptorsOnce();
  387. return ::protobuf_addressbook_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  388. }
  389. const PhoneNumber& PhoneNumber::default_instance() {
  390. ::google::protobuf::internal::InitSCC(&protobuf_addressbook_2eproto::scc_info_PhoneNumber.base);
  391. return *internal_default_instance();
  392. }
  393. void PhoneNumber::Clear() {
  394. // @@protoc_insertion_point(message_clear_start:qtprotobuf.examples.PhoneNumber)
  395. ::google::protobuf::uint32 cached_has_bits = 0;
  396. // Prevent compiler warnings about cached_has_bits being unused
  397. (void) cached_has_bits;
  398. number_.Clear();
  399. countrycode_ = 0u;
  400. _internal_metadata_.Clear();
  401. }
  402. bool PhoneNumber::MergePartialFromCodedStream(
  403. ::google::protobuf::io::CodedInputStream* input) {
  404. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  405. ::google::protobuf::uint32 tag;
  406. // @@protoc_insertion_point(parse_start:qtprotobuf.examples.PhoneNumber)
  407. for (;;) {
  408. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  409. tag = p.first;
  410. if (!p.second) goto handle_unusual;
  411. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  412. // uint32 countryCode = 1;
  413. case 1: {
  414. if (static_cast< ::google::protobuf::uint8>(tag) ==
  415. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  416. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  417. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  418. input, &countrycode_)));
  419. } else {
  420. goto handle_unusual;
  421. }
  422. break;
  423. }
  424. // repeated uint64 number = 2;
  425. case 2: {
  426. if (static_cast< ::google::protobuf::uint8>(tag) ==
  427. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  428. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
  429. ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
  430. input, this->mutable_number())));
  431. } else if (
  432. static_cast< ::google::protobuf::uint8>(tag) ==
  433. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  434. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
  435. ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
  436. 1, 18u, input, this->mutable_number())));
  437. } else {
  438. goto handle_unusual;
  439. }
  440. break;
  441. }
  442. default: {
  443. handle_unusual:
  444. if (tag == 0) {
  445. goto success;
  446. }
  447. DO_(::google::protobuf::internal::WireFormat::SkipField(
  448. input, tag, _internal_metadata_.mutable_unknown_fields()));
  449. break;
  450. }
  451. }
  452. }
  453. success:
  454. // @@protoc_insertion_point(parse_success:qtprotobuf.examples.PhoneNumber)
  455. return true;
  456. failure:
  457. // @@protoc_insertion_point(parse_failure:qtprotobuf.examples.PhoneNumber)
  458. return false;
  459. #undef DO_
  460. }
  461. void PhoneNumber::SerializeWithCachedSizes(
  462. ::google::protobuf::io::CodedOutputStream* output) const {
  463. // @@protoc_insertion_point(serialize_start:qtprotobuf.examples.PhoneNumber)
  464. ::google::protobuf::uint32 cached_has_bits = 0;
  465. (void) cached_has_bits;
  466. // uint32 countryCode = 1;
  467. if (this->countrycode() != 0) {
  468. ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->countrycode(), output);
  469. }
  470. // repeated uint64 number = 2;
  471. if (this->number_size() > 0) {
  472. ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
  473. output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
  474. _number_cached_byte_size_));
  475. }
  476. for (int i = 0, n = this->number_size(); i < n; i++) {
  477. ::google::protobuf::internal::WireFormatLite::WriteUInt64NoTag(
  478. this->number(i), output);
  479. }
  480. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  481. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  482. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  483. }
  484. // @@protoc_insertion_point(serialize_end:qtprotobuf.examples.PhoneNumber)
  485. }
  486. ::google::protobuf::uint8* PhoneNumber::InternalSerializeWithCachedSizesToArray(
  487. bool deterministic, ::google::protobuf::uint8* target) const {
  488. (void)deterministic; // Unused
  489. // @@protoc_insertion_point(serialize_to_array_start:qtprotobuf.examples.PhoneNumber)
  490. ::google::protobuf::uint32 cached_has_bits = 0;
  491. (void) cached_has_bits;
  492. // uint32 countryCode = 1;
  493. if (this->countrycode() != 0) {
  494. target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->countrycode(), target);
  495. }
  496. // repeated uint64 number = 2;
  497. if (this->number_size() > 0) {
  498. target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
  499. 2,
  500. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
  501. target);
  502. target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
  503. static_cast< ::google::protobuf::int32>(
  504. _number_cached_byte_size_), target);
  505. target = ::google::protobuf::internal::WireFormatLite::
  506. WriteUInt64NoTagToArray(this->number_, target);
  507. }
  508. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  509. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  510. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  511. }
  512. // @@protoc_insertion_point(serialize_to_array_end:qtprotobuf.examples.PhoneNumber)
  513. return target;
  514. }
  515. size_t PhoneNumber::ByteSizeLong() const {
  516. // @@protoc_insertion_point(message_byte_size_start:qtprotobuf.examples.PhoneNumber)
  517. size_t total_size = 0;
  518. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  519. total_size +=
  520. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  521. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  522. }
  523. // repeated uint64 number = 2;
  524. {
  525. size_t data_size = ::google::protobuf::internal::WireFormatLite::
  526. UInt64Size(this->number_);
  527. if (data_size > 0) {
  528. total_size += 1 +
  529. ::google::protobuf::internal::WireFormatLite::Int32Size(
  530. static_cast< ::google::protobuf::int32>(data_size));
  531. }
  532. int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
  533. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  534. _number_cached_byte_size_ = cached_size;
  535. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  536. total_size += data_size;
  537. }
  538. // uint32 countryCode = 1;
  539. if (this->countrycode() != 0) {
  540. total_size += 1 +
  541. ::google::protobuf::internal::WireFormatLite::UInt32Size(
  542. this->countrycode());
  543. }
  544. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  545. SetCachedSize(cached_size);
  546. return total_size;
  547. }
  548. void PhoneNumber::MergeFrom(const ::google::protobuf::Message& from) {
  549. // @@protoc_insertion_point(generalized_merge_from_start:qtprotobuf.examples.PhoneNumber)
  550. GOOGLE_DCHECK_NE(&from, this);
  551. const PhoneNumber* source =
  552. ::google::protobuf::internal::DynamicCastToGenerated<const PhoneNumber>(
  553. &from);
  554. if (source == NULL) {
  555. // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobuf.examples.PhoneNumber)
  556. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  557. } else {
  558. // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobuf.examples.PhoneNumber)
  559. MergeFrom(*source);
  560. }
  561. }
  562. void PhoneNumber::MergeFrom(const PhoneNumber& from) {
  563. // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobuf.examples.PhoneNumber)
  564. GOOGLE_DCHECK_NE(&from, this);
  565. _internal_metadata_.MergeFrom(from._internal_metadata_);
  566. ::google::protobuf::uint32 cached_has_bits = 0;
  567. (void) cached_has_bits;
  568. number_.MergeFrom(from.number_);
  569. if (from.countrycode() != 0) {
  570. set_countrycode(from.countrycode());
  571. }
  572. }
  573. void PhoneNumber::CopyFrom(const ::google::protobuf::Message& from) {
  574. // @@protoc_insertion_point(generalized_copy_from_start:qtprotobuf.examples.PhoneNumber)
  575. if (&from == this) return;
  576. Clear();
  577. MergeFrom(from);
  578. }
  579. void PhoneNumber::CopyFrom(const PhoneNumber& from) {
  580. // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobuf.examples.PhoneNumber)
  581. if (&from == this) return;
  582. Clear();
  583. MergeFrom(from);
  584. }
  585. bool PhoneNumber::IsInitialized() const {
  586. return true;
  587. }
  588. void PhoneNumber::Swap(PhoneNumber* other) {
  589. if (other == this) return;
  590. InternalSwap(other);
  591. }
  592. void PhoneNumber::InternalSwap(PhoneNumber* other) {
  593. using std::swap;
  594. number_.InternalSwap(&other->number_);
  595. swap(countrycode_, other->countrycode_);
  596. _internal_metadata_.Swap(&other->_internal_metadata_);
  597. }
  598. ::google::protobuf::Metadata PhoneNumber::GetMetadata() const {
  599. protobuf_addressbook_2eproto::protobuf_AssignDescriptorsOnce();
  600. return ::protobuf_addressbook_2eproto::file_level_metadata[kIndexInFileMessages];
  601. }
  602. // ===================================================================
  603. void Address::InitAsDefaultInstance() {
  604. }
  605. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  606. const int Address::kZipCodeFieldNumber;
  607. const int Address::kStreetAddress1FieldNumber;
  608. const int Address::kStreetAddress2FieldNumber;
  609. const int Address::kStateFieldNumber;
  610. const int Address::kCountryFieldNumber;
  611. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  612. Address::Address()
  613. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  614. ::google::protobuf::internal::InitSCC(
  615. &protobuf_addressbook_2eproto::scc_info_Address.base);
  616. SharedCtor();
  617. // @@protoc_insertion_point(constructor:qtprotobuf.examples.Address)
  618. }
  619. Address::Address(const Address& from)
  620. : ::google::protobuf::Message(),
  621. _internal_metadata_(NULL) {
  622. _internal_metadata_.MergeFrom(from._internal_metadata_);
  623. streetaddress1_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  624. if (from.streetaddress1().size() > 0) {
  625. streetaddress1_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.streetaddress1_);
  626. }
  627. streetaddress2_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  628. if (from.streetaddress2().size() > 0) {
  629. streetaddress2_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.streetaddress2_);
  630. }
  631. state_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  632. if (from.state().size() > 0) {
  633. state_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.state_);
  634. }
  635. ::memcpy(&zipcode_, &from.zipcode_,
  636. static_cast<size_t>(reinterpret_cast<char*>(&country_) -
  637. reinterpret_cast<char*>(&zipcode_)) + sizeof(country_));
  638. // @@protoc_insertion_point(copy_constructor:qtprotobuf.examples.Address)
  639. }
  640. void Address::SharedCtor() {
  641. streetaddress1_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  642. streetaddress2_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  643. state_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  644. ::memset(&zipcode_, 0, static_cast<size_t>(
  645. reinterpret_cast<char*>(&country_) -
  646. reinterpret_cast<char*>(&zipcode_)) + sizeof(country_));
  647. }
  648. Address::~Address() {
  649. // @@protoc_insertion_point(destructor:qtprotobuf.examples.Address)
  650. SharedDtor();
  651. }
  652. void Address::SharedDtor() {
  653. streetaddress1_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  654. streetaddress2_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  655. state_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  656. }
  657. void Address::SetCachedSize(int size) const {
  658. _cached_size_.Set(size);
  659. }
  660. const ::google::protobuf::Descriptor* Address::descriptor() {
  661. ::protobuf_addressbook_2eproto::protobuf_AssignDescriptorsOnce();
  662. return ::protobuf_addressbook_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  663. }
  664. const Address& Address::default_instance() {
  665. ::google::protobuf::internal::InitSCC(&protobuf_addressbook_2eproto::scc_info_Address.base);
  666. return *internal_default_instance();
  667. }
  668. void Address::Clear() {
  669. // @@protoc_insertion_point(message_clear_start:qtprotobuf.examples.Address)
  670. ::google::protobuf::uint32 cached_has_bits = 0;
  671. // Prevent compiler warnings about cached_has_bits being unused
  672. (void) cached_has_bits;
  673. streetaddress1_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  674. streetaddress2_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  675. state_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  676. ::memset(&zipcode_, 0, static_cast<size_t>(
  677. reinterpret_cast<char*>(&country_) -
  678. reinterpret_cast<char*>(&zipcode_)) + sizeof(country_));
  679. _internal_metadata_.Clear();
  680. }
  681. bool Address::MergePartialFromCodedStream(
  682. ::google::protobuf::io::CodedInputStream* input) {
  683. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  684. ::google::protobuf::uint32 tag;
  685. // @@protoc_insertion_point(parse_start:qtprotobuf.examples.Address)
  686. for (;;) {
  687. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  688. tag = p.first;
  689. if (!p.second) goto handle_unusual;
  690. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  691. // uint64 zipCode = 1;
  692. case 1: {
  693. if (static_cast< ::google::protobuf::uint8>(tag) ==
  694. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  695. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  696. ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
  697. input, &zipcode_)));
  698. } else {
  699. goto handle_unusual;
  700. }
  701. break;
  702. }
  703. // string streetAddress1 = 2;
  704. case 2: {
  705. if (static_cast< ::google::protobuf::uint8>(tag) ==
  706. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  707. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  708. input, this->mutable_streetaddress1()));
  709. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  710. this->streetaddress1().data(), static_cast<int>(this->streetaddress1().length()),
  711. ::google::protobuf::internal::WireFormatLite::PARSE,
  712. "qtprotobuf.examples.Address.streetAddress1"));
  713. } else {
  714. goto handle_unusual;
  715. }
  716. break;
  717. }
  718. // string streetAddress2 = 3;
  719. case 3: {
  720. if (static_cast< ::google::protobuf::uint8>(tag) ==
  721. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  722. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  723. input, this->mutable_streetaddress2()));
  724. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  725. this->streetaddress2().data(), static_cast<int>(this->streetaddress2().length()),
  726. ::google::protobuf::internal::WireFormatLite::PARSE,
  727. "qtprotobuf.examples.Address.streetAddress2"));
  728. } else {
  729. goto handle_unusual;
  730. }
  731. break;
  732. }
  733. // string state = 4;
  734. case 4: {
  735. if (static_cast< ::google::protobuf::uint8>(tag) ==
  736. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  737. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  738. input, this->mutable_state()));
  739. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  740. this->state().data(), static_cast<int>(this->state().length()),
  741. ::google::protobuf::internal::WireFormatLite::PARSE,
  742. "qtprotobuf.examples.Address.state"));
  743. } else {
  744. goto handle_unusual;
  745. }
  746. break;
  747. }
  748. // uint32 country = 5;
  749. case 5: {
  750. if (static_cast< ::google::protobuf::uint8>(tag) ==
  751. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  752. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  753. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  754. input, &country_)));
  755. } else {
  756. goto handle_unusual;
  757. }
  758. break;
  759. }
  760. default: {
  761. handle_unusual:
  762. if (tag == 0) {
  763. goto success;
  764. }
  765. DO_(::google::protobuf::internal::WireFormat::SkipField(
  766. input, tag, _internal_metadata_.mutable_unknown_fields()));
  767. break;
  768. }
  769. }
  770. }
  771. success:
  772. // @@protoc_insertion_point(parse_success:qtprotobuf.examples.Address)
  773. return true;
  774. failure:
  775. // @@protoc_insertion_point(parse_failure:qtprotobuf.examples.Address)
  776. return false;
  777. #undef DO_
  778. }
  779. void Address::SerializeWithCachedSizes(
  780. ::google::protobuf::io::CodedOutputStream* output) const {
  781. // @@protoc_insertion_point(serialize_start:qtprotobuf.examples.Address)
  782. ::google::protobuf::uint32 cached_has_bits = 0;
  783. (void) cached_has_bits;
  784. // uint64 zipCode = 1;
  785. if (this->zipcode() != 0) {
  786. ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->zipcode(), output);
  787. }
  788. // string streetAddress1 = 2;
  789. if (this->streetaddress1().size() > 0) {
  790. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  791. this->streetaddress1().data(), static_cast<int>(this->streetaddress1().length()),
  792. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  793. "qtprotobuf.examples.Address.streetAddress1");
  794. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  795. 2, this->streetaddress1(), output);
  796. }
  797. // string streetAddress2 = 3;
  798. if (this->streetaddress2().size() > 0) {
  799. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  800. this->streetaddress2().data(), static_cast<int>(this->streetaddress2().length()),
  801. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  802. "qtprotobuf.examples.Address.streetAddress2");
  803. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  804. 3, this->streetaddress2(), output);
  805. }
  806. // string state = 4;
  807. if (this->state().size() > 0) {
  808. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  809. this->state().data(), static_cast<int>(this->state().length()),
  810. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  811. "qtprotobuf.examples.Address.state");
  812. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  813. 4, this->state(), output);
  814. }
  815. // uint32 country = 5;
  816. if (this->country() != 0) {
  817. ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->country(), output);
  818. }
  819. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  820. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  821. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  822. }
  823. // @@protoc_insertion_point(serialize_end:qtprotobuf.examples.Address)
  824. }
  825. ::google::protobuf::uint8* Address::InternalSerializeWithCachedSizesToArray(
  826. bool deterministic, ::google::protobuf::uint8* target) const {
  827. (void)deterministic; // Unused
  828. // @@protoc_insertion_point(serialize_to_array_start:qtprotobuf.examples.Address)
  829. ::google::protobuf::uint32 cached_has_bits = 0;
  830. (void) cached_has_bits;
  831. // uint64 zipCode = 1;
  832. if (this->zipcode() != 0) {
  833. target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->zipcode(), target);
  834. }
  835. // string streetAddress1 = 2;
  836. if (this->streetaddress1().size() > 0) {
  837. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  838. this->streetaddress1().data(), static_cast<int>(this->streetaddress1().length()),
  839. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  840. "qtprotobuf.examples.Address.streetAddress1");
  841. target =
  842. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  843. 2, this->streetaddress1(), target);
  844. }
  845. // string streetAddress2 = 3;
  846. if (this->streetaddress2().size() > 0) {
  847. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  848. this->streetaddress2().data(), static_cast<int>(this->streetaddress2().length()),
  849. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  850. "qtprotobuf.examples.Address.streetAddress2");
  851. target =
  852. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  853. 3, this->streetaddress2(), target);
  854. }
  855. // string state = 4;
  856. if (this->state().size() > 0) {
  857. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  858. this->state().data(), static_cast<int>(this->state().length()),
  859. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  860. "qtprotobuf.examples.Address.state");
  861. target =
  862. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  863. 4, this->state(), target);
  864. }
  865. // uint32 country = 5;
  866. if (this->country() != 0) {
  867. target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->country(), target);
  868. }
  869. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  870. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  871. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  872. }
  873. // @@protoc_insertion_point(serialize_to_array_end:qtprotobuf.examples.Address)
  874. return target;
  875. }
  876. size_t Address::ByteSizeLong() const {
  877. // @@protoc_insertion_point(message_byte_size_start:qtprotobuf.examples.Address)
  878. size_t total_size = 0;
  879. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  880. total_size +=
  881. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  882. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  883. }
  884. // string streetAddress1 = 2;
  885. if (this->streetaddress1().size() > 0) {
  886. total_size += 1 +
  887. ::google::protobuf::internal::WireFormatLite::StringSize(
  888. this->streetaddress1());
  889. }
  890. // string streetAddress2 = 3;
  891. if (this->streetaddress2().size() > 0) {
  892. total_size += 1 +
  893. ::google::protobuf::internal::WireFormatLite::StringSize(
  894. this->streetaddress2());
  895. }
  896. // string state = 4;
  897. if (this->state().size() > 0) {
  898. total_size += 1 +
  899. ::google::protobuf::internal::WireFormatLite::StringSize(
  900. this->state());
  901. }
  902. // uint64 zipCode = 1;
  903. if (this->zipcode() != 0) {
  904. total_size += 1 +
  905. ::google::protobuf::internal::WireFormatLite::UInt64Size(
  906. this->zipcode());
  907. }
  908. // uint32 country = 5;
  909. if (this->country() != 0) {
  910. total_size += 1 +
  911. ::google::protobuf::internal::WireFormatLite::UInt32Size(
  912. this->country());
  913. }
  914. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  915. SetCachedSize(cached_size);
  916. return total_size;
  917. }
  918. void Address::MergeFrom(const ::google::protobuf::Message& from) {
  919. // @@protoc_insertion_point(generalized_merge_from_start:qtprotobuf.examples.Address)
  920. GOOGLE_DCHECK_NE(&from, this);
  921. const Address* source =
  922. ::google::protobuf::internal::DynamicCastToGenerated<const Address>(
  923. &from);
  924. if (source == NULL) {
  925. // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobuf.examples.Address)
  926. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  927. } else {
  928. // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobuf.examples.Address)
  929. MergeFrom(*source);
  930. }
  931. }
  932. void Address::MergeFrom(const Address& from) {
  933. // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobuf.examples.Address)
  934. GOOGLE_DCHECK_NE(&from, this);
  935. _internal_metadata_.MergeFrom(from._internal_metadata_);
  936. ::google::protobuf::uint32 cached_has_bits = 0;
  937. (void) cached_has_bits;
  938. if (from.streetaddress1().size() > 0) {
  939. streetaddress1_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.streetaddress1_);
  940. }
  941. if (from.streetaddress2().size() > 0) {
  942. streetaddress2_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.streetaddress2_);
  943. }
  944. if (from.state().size() > 0) {
  945. state_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.state_);
  946. }
  947. if (from.zipcode() != 0) {
  948. set_zipcode(from.zipcode());
  949. }
  950. if (from.country() != 0) {
  951. set_country(from.country());
  952. }
  953. }
  954. void Address::CopyFrom(const ::google::protobuf::Message& from) {
  955. // @@protoc_insertion_point(generalized_copy_from_start:qtprotobuf.examples.Address)
  956. if (&from == this) return;
  957. Clear();
  958. MergeFrom(from);
  959. }
  960. void Address::CopyFrom(const Address& from) {
  961. // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobuf.examples.Address)
  962. if (&from == this) return;
  963. Clear();
  964. MergeFrom(from);
  965. }
  966. bool Address::IsInitialized() const {
  967. return true;
  968. }
  969. void Address::Swap(Address* other) {
  970. if (other == this) return;
  971. InternalSwap(other);
  972. }
  973. void Address::InternalSwap(Address* other) {
  974. using std::swap;
  975. streetaddress1_.Swap(&other->streetaddress1_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  976. GetArenaNoVirtual());
  977. streetaddress2_.Swap(&other->streetaddress2_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  978. GetArenaNoVirtual());
  979. state_.Swap(&other->state_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  980. GetArenaNoVirtual());
  981. swap(zipcode_, other->zipcode_);
  982. swap(country_, other->country_);
  983. _internal_metadata_.Swap(&other->_internal_metadata_);
  984. }
  985. ::google::protobuf::Metadata Address::GetMetadata() const {
  986. protobuf_addressbook_2eproto::protobuf_AssignDescriptorsOnce();
  987. return ::protobuf_addressbook_2eproto::file_level_metadata[kIndexInFileMessages];
  988. }
  989. // ===================================================================
  990. void Job::InitAsDefaultInstance() {
  991. ::qtprotobuf::examples::_Job_default_instance_._instance.get_mutable()->officeaddress_ = const_cast< ::qtprotobuf::examples::Address*>(
  992. ::qtprotobuf::examples::Address::internal_default_instance());
  993. }
  994. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  995. const int Job::kTitleFieldNumber;
  996. const int Job::kOfficeAddressFieldNumber;
  997. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  998. Job::Job()
  999. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1000. ::google::protobuf::internal::InitSCC(
  1001. &protobuf_addressbook_2eproto::scc_info_Job.base);
  1002. SharedCtor();
  1003. // @@protoc_insertion_point(constructor:qtprotobuf.examples.Job)
  1004. }
  1005. Job::Job(const Job& from)
  1006. : ::google::protobuf::Message(),
  1007. _internal_metadata_(NULL) {
  1008. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1009. title_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1010. if (from.title().size() > 0) {
  1011. title_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.title_);
  1012. }
  1013. if (from.has_officeaddress()) {
  1014. officeaddress_ = new ::qtprotobuf::examples::Address(*from.officeaddress_);
  1015. } else {
  1016. officeaddress_ = NULL;
  1017. }
  1018. // @@protoc_insertion_point(copy_constructor:qtprotobuf.examples.Job)
  1019. }
  1020. void Job::SharedCtor() {
  1021. title_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1022. officeaddress_ = NULL;
  1023. }
  1024. Job::~Job() {
  1025. // @@protoc_insertion_point(destructor:qtprotobuf.examples.Job)
  1026. SharedDtor();
  1027. }
  1028. void Job::SharedDtor() {
  1029. title_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1030. if (this != internal_default_instance()) delete officeaddress_;
  1031. }
  1032. void Job::SetCachedSize(int size) const {
  1033. _cached_size_.Set(size);
  1034. }
  1035. const ::google::protobuf::Descriptor* Job::descriptor() {
  1036. ::protobuf_addressbook_2eproto::protobuf_AssignDescriptorsOnce();
  1037. return ::protobuf_addressbook_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1038. }
  1039. const Job& Job::default_instance() {
  1040. ::google::protobuf::internal::InitSCC(&protobuf_addressbook_2eproto::scc_info_Job.base);
  1041. return *internal_default_instance();
  1042. }
  1043. void Job::Clear() {
  1044. // @@protoc_insertion_point(message_clear_start:qtprotobuf.examples.Job)
  1045. ::google::protobuf::uint32 cached_has_bits = 0;
  1046. // Prevent compiler warnings about cached_has_bits being unused
  1047. (void) cached_has_bits;
  1048. title_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1049. if (GetArenaNoVirtual() == NULL && officeaddress_ != NULL) {
  1050. delete officeaddress_;
  1051. }
  1052. officeaddress_ = NULL;
  1053. _internal_metadata_.Clear();
  1054. }
  1055. bool Job::MergePartialFromCodedStream(
  1056. ::google::protobuf::io::CodedInputStream* input) {
  1057. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1058. ::google::protobuf::uint32 tag;
  1059. // @@protoc_insertion_point(parse_start:qtprotobuf.examples.Job)
  1060. for (;;) {
  1061. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1062. tag = p.first;
  1063. if (!p.second) goto handle_unusual;
  1064. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1065. // string title = 1;
  1066. case 1: {
  1067. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1068. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1069. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1070. input, this->mutable_title()));
  1071. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1072. this->title().data(), static_cast<int>(this->title().length()),
  1073. ::google::protobuf::internal::WireFormatLite::PARSE,
  1074. "qtprotobuf.examples.Job.title"));
  1075. } else {
  1076. goto handle_unusual;
  1077. }
  1078. break;
  1079. }
  1080. // .qtprotobuf.examples.Address officeAddress = 2;
  1081. case 2: {
  1082. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1083. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1084. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1085. input, mutable_officeaddress()));
  1086. } else {
  1087. goto handle_unusual;
  1088. }
  1089. break;
  1090. }
  1091. default: {
  1092. handle_unusual:
  1093. if (tag == 0) {
  1094. goto success;
  1095. }
  1096. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1097. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1098. break;
  1099. }
  1100. }
  1101. }
  1102. success:
  1103. // @@protoc_insertion_point(parse_success:qtprotobuf.examples.Job)
  1104. return true;
  1105. failure:
  1106. // @@protoc_insertion_point(parse_failure:qtprotobuf.examples.Job)
  1107. return false;
  1108. #undef DO_
  1109. }
  1110. void Job::SerializeWithCachedSizes(
  1111. ::google::protobuf::io::CodedOutputStream* output) const {
  1112. // @@protoc_insertion_point(serialize_start:qtprotobuf.examples.Job)
  1113. ::google::protobuf::uint32 cached_has_bits = 0;
  1114. (void) cached_has_bits;
  1115. // string title = 1;
  1116. if (this->title().size() > 0) {
  1117. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1118. this->title().data(), static_cast<int>(this->title().length()),
  1119. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1120. "qtprotobuf.examples.Job.title");
  1121. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1122. 1, this->title(), output);
  1123. }
  1124. // .qtprotobuf.examples.Address officeAddress = 2;
  1125. if (this->has_officeaddress()) {
  1126. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1127. 2, this->_internal_officeaddress(), output);
  1128. }
  1129. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1130. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1131. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  1132. }
  1133. // @@protoc_insertion_point(serialize_end:qtprotobuf.examples.Job)
  1134. }
  1135. ::google::protobuf::uint8* Job::InternalSerializeWithCachedSizesToArray(
  1136. bool deterministic, ::google::protobuf::uint8* target) const {
  1137. (void)deterministic; // Unused
  1138. // @@protoc_insertion_point(serialize_to_array_start:qtprotobuf.examples.Job)
  1139. ::google::protobuf::uint32 cached_has_bits = 0;
  1140. (void) cached_has_bits;
  1141. // string title = 1;
  1142. if (this->title().size() > 0) {
  1143. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1144. this->title().data(), static_cast<int>(this->title().length()),
  1145. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1146. "qtprotobuf.examples.Job.title");
  1147. target =
  1148. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1149. 1, this->title(), target);
  1150. }
  1151. // .qtprotobuf.examples.Address officeAddress = 2;
  1152. if (this->has_officeaddress()) {
  1153. target = ::google::protobuf::internal::WireFormatLite::
  1154. InternalWriteMessageToArray(
  1155. 2, this->_internal_officeaddress(), deterministic, target);
  1156. }
  1157. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1158. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1159. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  1160. }
  1161. // @@protoc_insertion_point(serialize_to_array_end:qtprotobuf.examples.Job)
  1162. return target;
  1163. }
  1164. size_t Job::ByteSizeLong() const {
  1165. // @@protoc_insertion_point(message_byte_size_start:qtprotobuf.examples.Job)
  1166. size_t total_size = 0;
  1167. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1168. total_size +=
  1169. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1170. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  1171. }
  1172. // string title = 1;
  1173. if (this->title().size() > 0) {
  1174. total_size += 1 +
  1175. ::google::protobuf::internal::WireFormatLite::StringSize(
  1176. this->title());
  1177. }
  1178. // .qtprotobuf.examples.Address officeAddress = 2;
  1179. if (this->has_officeaddress()) {
  1180. total_size += 1 +
  1181. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1182. *officeaddress_);
  1183. }
  1184. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1185. SetCachedSize(cached_size);
  1186. return total_size;
  1187. }
  1188. void Job::MergeFrom(const ::google::protobuf::Message& from) {
  1189. // @@protoc_insertion_point(generalized_merge_from_start:qtprotobuf.examples.Job)
  1190. GOOGLE_DCHECK_NE(&from, this);
  1191. const Job* source =
  1192. ::google::protobuf::internal::DynamicCastToGenerated<const Job>(
  1193. &from);
  1194. if (source == NULL) {
  1195. // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobuf.examples.Job)
  1196. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1197. } else {
  1198. // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobuf.examples.Job)
  1199. MergeFrom(*source);
  1200. }
  1201. }
  1202. void Job::MergeFrom(const Job& from) {
  1203. // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobuf.examples.Job)
  1204. GOOGLE_DCHECK_NE(&from, this);
  1205. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1206. ::google::protobuf::uint32 cached_has_bits = 0;
  1207. (void) cached_has_bits;
  1208. if (from.title().size() > 0) {
  1209. title_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.title_);
  1210. }
  1211. if (from.has_officeaddress()) {
  1212. mutable_officeaddress()->::qtprotobuf::examples::Address::MergeFrom(from.officeaddress());
  1213. }
  1214. }
  1215. void Job::CopyFrom(const ::google::protobuf::Message& from) {
  1216. // @@protoc_insertion_point(generalized_copy_from_start:qtprotobuf.examples.Job)
  1217. if (&from == this) return;
  1218. Clear();
  1219. MergeFrom(from);
  1220. }
  1221. void Job::CopyFrom(const Job& from) {
  1222. // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobuf.examples.Job)
  1223. if (&from == this) return;
  1224. Clear();
  1225. MergeFrom(from);
  1226. }
  1227. bool Job::IsInitialized() const {
  1228. return true;
  1229. }
  1230. void Job::Swap(Job* other) {
  1231. if (other == this) return;
  1232. InternalSwap(other);
  1233. }
  1234. void Job::InternalSwap(Job* other) {
  1235. using std::swap;
  1236. title_.Swap(&other->title_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1237. GetArenaNoVirtual());
  1238. swap(officeaddress_, other->officeaddress_);
  1239. _internal_metadata_.Swap(&other->_internal_metadata_);
  1240. }
  1241. ::google::protobuf::Metadata Job::GetMetadata() const {
  1242. protobuf_addressbook_2eproto::protobuf_AssignDescriptorsOnce();
  1243. return ::protobuf_addressbook_2eproto::file_level_metadata[kIndexInFileMessages];
  1244. }
  1245. // ===================================================================
  1246. Contact_PhonesEntry_DoNotUse::Contact_PhonesEntry_DoNotUse() {}
  1247. Contact_PhonesEntry_DoNotUse::Contact_PhonesEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  1248. void Contact_PhonesEntry_DoNotUse::MergeFrom(const Contact_PhonesEntry_DoNotUse& other) {
  1249. MergeFromInternal(other);
  1250. }
  1251. ::google::protobuf::Metadata Contact_PhonesEntry_DoNotUse::GetMetadata() const {
  1252. ::protobuf_addressbook_2eproto::protobuf_AssignDescriptorsOnce();
  1253. return ::protobuf_addressbook_2eproto::file_level_metadata[3];
  1254. }
  1255. void Contact_PhonesEntry_DoNotUse::MergeFrom(
  1256. const ::google::protobuf::Message& other) {
  1257. ::google::protobuf::Message::MergeFrom(other);
  1258. }
  1259. // ===================================================================
  1260. void Contact::InitAsDefaultInstance() {
  1261. ::qtprotobuf::examples::_Contact_default_instance_._instance.get_mutable()->address_ = const_cast< ::qtprotobuf::examples::Address*>(
  1262. ::qtprotobuf::examples::Address::internal_default_instance());
  1263. ::qtprotobuf::examples::_Contact_default_instance_._instance.get_mutable()->job_ = const_cast< ::qtprotobuf::examples::Job*>(
  1264. ::qtprotobuf::examples::Job::internal_default_instance());
  1265. }
  1266. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1267. const int Contact::kFirstNameFieldNumber;
  1268. const int Contact::kLastNameFieldNumber;
  1269. const int Contact::kMiddleNameFieldNumber;
  1270. const int Contact::kPhonesFieldNumber;
  1271. const int Contact::kAddressFieldNumber;
  1272. const int Contact::kJobFieldNumber;
  1273. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1274. Contact::Contact()
  1275. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1276. ::google::protobuf::internal::InitSCC(
  1277. &protobuf_addressbook_2eproto::scc_info_Contact.base);
  1278. SharedCtor();
  1279. // @@protoc_insertion_point(constructor:qtprotobuf.examples.Contact)
  1280. }
  1281. Contact::Contact(const Contact& from)
  1282. : ::google::protobuf::Message(),
  1283. _internal_metadata_(NULL) {
  1284. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1285. phones_.MergeFrom(from.phones_);
  1286. firstname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1287. if (from.firstname().size() > 0) {
  1288. firstname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.firstname_);
  1289. }
  1290. lastname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1291. if (from.lastname().size() > 0) {
  1292. lastname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.lastname_);
  1293. }
  1294. middlename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1295. if (from.middlename().size() > 0) {
  1296. middlename_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.middlename_);
  1297. }
  1298. if (from.has_address()) {
  1299. address_ = new ::qtprotobuf::examples::Address(*from.address_);
  1300. } else {
  1301. address_ = NULL;
  1302. }
  1303. if (from.has_job()) {
  1304. job_ = new ::qtprotobuf::examples::Job(*from.job_);
  1305. } else {
  1306. job_ = NULL;
  1307. }
  1308. // @@protoc_insertion_point(copy_constructor:qtprotobuf.examples.Contact)
  1309. }
  1310. void Contact::SharedCtor() {
  1311. firstname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1312. lastname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1313. middlename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1314. ::memset(&address_, 0, static_cast<size_t>(
  1315. reinterpret_cast<char*>(&job_) -
  1316. reinterpret_cast<char*>(&address_)) + sizeof(job_));
  1317. }
  1318. Contact::~Contact() {
  1319. // @@protoc_insertion_point(destructor:qtprotobuf.examples.Contact)
  1320. SharedDtor();
  1321. }
  1322. void Contact::SharedDtor() {
  1323. firstname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1324. lastname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1325. middlename_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1326. if (this != internal_default_instance()) delete address_;
  1327. if (this != internal_default_instance()) delete job_;
  1328. }
  1329. void Contact::SetCachedSize(int size) const {
  1330. _cached_size_.Set(size);
  1331. }
  1332. const ::google::protobuf::Descriptor* Contact::descriptor() {
  1333. ::protobuf_addressbook_2eproto::protobuf_AssignDescriptorsOnce();
  1334. return ::protobuf_addressbook_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1335. }
  1336. const Contact& Contact::default_instance() {
  1337. ::google::protobuf::internal::InitSCC(&protobuf_addressbook_2eproto::scc_info_Contact.base);
  1338. return *internal_default_instance();
  1339. }
  1340. void Contact::Clear() {
  1341. // @@protoc_insertion_point(message_clear_start:qtprotobuf.examples.Contact)
  1342. ::google::protobuf::uint32 cached_has_bits = 0;
  1343. // Prevent compiler warnings about cached_has_bits being unused
  1344. (void) cached_has_bits;
  1345. phones_.Clear();
  1346. firstname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1347. lastname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1348. middlename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1349. if (GetArenaNoVirtual() == NULL && address_ != NULL) {
  1350. delete address_;
  1351. }
  1352. address_ = NULL;
  1353. if (GetArenaNoVirtual() == NULL && job_ != NULL) {
  1354. delete job_;
  1355. }
  1356. job_ = NULL;
  1357. _internal_metadata_.Clear();
  1358. }
  1359. bool Contact::MergePartialFromCodedStream(
  1360. ::google::protobuf::io::CodedInputStream* input) {
  1361. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1362. ::google::protobuf::uint32 tag;
  1363. // @@protoc_insertion_point(parse_start:qtprotobuf.examples.Contact)
  1364. for (;;) {
  1365. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1366. tag = p.first;
  1367. if (!p.second) goto handle_unusual;
  1368. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1369. // string firstName = 1;
  1370. case 1: {
  1371. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1372. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1373. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1374. input, this->mutable_firstname()));
  1375. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1376. this->firstname().data(), static_cast<int>(this->firstname().length()),
  1377. ::google::protobuf::internal::WireFormatLite::PARSE,
  1378. "qtprotobuf.examples.Contact.firstName"));
  1379. } else {
  1380. goto handle_unusual;
  1381. }
  1382. break;
  1383. }
  1384. // string lastName = 2;
  1385. case 2: {
  1386. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1387. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1388. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1389. input, this->mutable_lastname()));
  1390. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1391. this->lastname().data(), static_cast<int>(this->lastname().length()),
  1392. ::google::protobuf::internal::WireFormatLite::PARSE,
  1393. "qtprotobuf.examples.Contact.lastName"));
  1394. } else {
  1395. goto handle_unusual;
  1396. }
  1397. break;
  1398. }
  1399. // string middleName = 3;
  1400. case 3: {
  1401. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1402. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  1403. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1404. input, this->mutable_middlename()));
  1405. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1406. this->middlename().data(), static_cast<int>(this->middlename().length()),
  1407. ::google::protobuf::internal::WireFormatLite::PARSE,
  1408. "qtprotobuf.examples.Contact.middleName"));
  1409. } else {
  1410. goto handle_unusual;
  1411. }
  1412. break;
  1413. }
  1414. // map<int32, .qtprotobuf.examples.PhoneNumber> phones = 4;
  1415. case 4: {
  1416. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1417. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  1418. Contact_PhonesEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  1419. Contact_PhonesEntry_DoNotUse,
  1420. ::google::protobuf::int32, ::qtprotobuf::examples::PhoneNumber,
  1421. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1422. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1423. 0 >,
  1424. ::google::protobuf::Map< ::google::protobuf::int32, ::qtprotobuf::examples::PhoneNumber > > parser(&phones_);
  1425. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1426. input, &parser));
  1427. } else {
  1428. goto handle_unusual;
  1429. }
  1430. break;
  1431. }
  1432. // .qtprotobuf.examples.Address address = 5;
  1433. case 5: {
  1434. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1435. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  1436. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1437. input, mutable_address()));
  1438. } else {
  1439. goto handle_unusual;
  1440. }
  1441. break;
  1442. }
  1443. // .qtprotobuf.examples.Job job = 6;
  1444. case 6: {
  1445. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1446. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  1447. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1448. input, mutable_job()));
  1449. } else {
  1450. goto handle_unusual;
  1451. }
  1452. break;
  1453. }
  1454. default: {
  1455. handle_unusual:
  1456. if (tag == 0) {
  1457. goto success;
  1458. }
  1459. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1460. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1461. break;
  1462. }
  1463. }
  1464. }
  1465. success:
  1466. // @@protoc_insertion_point(parse_success:qtprotobuf.examples.Contact)
  1467. return true;
  1468. failure:
  1469. // @@protoc_insertion_point(parse_failure:qtprotobuf.examples.Contact)
  1470. return false;
  1471. #undef DO_
  1472. }
  1473. void Contact::SerializeWithCachedSizes(
  1474. ::google::protobuf::io::CodedOutputStream* output) const {
  1475. // @@protoc_insertion_point(serialize_start:qtprotobuf.examples.Contact)
  1476. ::google::protobuf::uint32 cached_has_bits = 0;
  1477. (void) cached_has_bits;
  1478. // string firstName = 1;
  1479. if (this->firstname().size() > 0) {
  1480. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1481. this->firstname().data(), static_cast<int>(this->firstname().length()),
  1482. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1483. "qtprotobuf.examples.Contact.firstName");
  1484. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1485. 1, this->firstname(), output);
  1486. }
  1487. // string lastName = 2;
  1488. if (this->lastname().size() > 0) {
  1489. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1490. this->lastname().data(), static_cast<int>(this->lastname().length()),
  1491. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1492. "qtprotobuf.examples.Contact.lastName");
  1493. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1494. 2, this->lastname(), output);
  1495. }
  1496. // string middleName = 3;
  1497. if (this->middlename().size() > 0) {
  1498. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1499. this->middlename().data(), static_cast<int>(this->middlename().length()),
  1500. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1501. "qtprotobuf.examples.Contact.middleName");
  1502. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1503. 3, this->middlename(), output);
  1504. }
  1505. // map<int32, .qtprotobuf.examples.PhoneNumber> phones = 4;
  1506. if (!this->phones().empty()) {
  1507. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::qtprotobuf::examples::PhoneNumber >::const_pointer
  1508. ConstPtr;
  1509. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  1510. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  1511. if (output->IsSerializationDeterministic() &&
  1512. this->phones().size() > 1) {
  1513. ::std::unique_ptr<SortItem[]> items(
  1514. new SortItem[this->phones().size()]);
  1515. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::qtprotobuf::examples::PhoneNumber >::size_type size_type;
  1516. size_type n = 0;
  1517. for (::google::protobuf::Map< ::google::protobuf::int32, ::qtprotobuf::examples::PhoneNumber >::const_iterator
  1518. it = this->phones().begin();
  1519. it != this->phones().end(); ++it, ++n) {
  1520. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  1521. }
  1522. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  1523. ::std::unique_ptr<Contact_PhonesEntry_DoNotUse> entry;
  1524. for (size_type i = 0; i < n; i++) {
  1525. entry.reset(phones_.NewEntryWrapper(
  1526. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  1527. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1528. 4, *entry, output);
  1529. }
  1530. } else {
  1531. ::std::unique_ptr<Contact_PhonesEntry_DoNotUse> entry;
  1532. for (::google::protobuf::Map< ::google::protobuf::int32, ::qtprotobuf::examples::PhoneNumber >::const_iterator
  1533. it = this->phones().begin();
  1534. it != this->phones().end(); ++it) {
  1535. entry.reset(phones_.NewEntryWrapper(
  1536. it->first, it->second));
  1537. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1538. 4, *entry, output);
  1539. }
  1540. }
  1541. }
  1542. // .qtprotobuf.examples.Address address = 5;
  1543. if (this->has_address()) {
  1544. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1545. 5, this->_internal_address(), output);
  1546. }
  1547. // .qtprotobuf.examples.Job job = 6;
  1548. if (this->has_job()) {
  1549. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1550. 6, this->_internal_job(), output);
  1551. }
  1552. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1553. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1554. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  1555. }
  1556. // @@protoc_insertion_point(serialize_end:qtprotobuf.examples.Contact)
  1557. }
  1558. ::google::protobuf::uint8* Contact::InternalSerializeWithCachedSizesToArray(
  1559. bool deterministic, ::google::protobuf::uint8* target) const {
  1560. (void)deterministic; // Unused
  1561. // @@protoc_insertion_point(serialize_to_array_start:qtprotobuf.examples.Contact)
  1562. ::google::protobuf::uint32 cached_has_bits = 0;
  1563. (void) cached_has_bits;
  1564. // string firstName = 1;
  1565. if (this->firstname().size() > 0) {
  1566. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1567. this->firstname().data(), static_cast<int>(this->firstname().length()),
  1568. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1569. "qtprotobuf.examples.Contact.firstName");
  1570. target =
  1571. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1572. 1, this->firstname(), target);
  1573. }
  1574. // string lastName = 2;
  1575. if (this->lastname().size() > 0) {
  1576. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1577. this->lastname().data(), static_cast<int>(this->lastname().length()),
  1578. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1579. "qtprotobuf.examples.Contact.lastName");
  1580. target =
  1581. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1582. 2, this->lastname(), target);
  1583. }
  1584. // string middleName = 3;
  1585. if (this->middlename().size() > 0) {
  1586. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1587. this->middlename().data(), static_cast<int>(this->middlename().length()),
  1588. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1589. "qtprotobuf.examples.Contact.middleName");
  1590. target =
  1591. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1592. 3, this->middlename(), target);
  1593. }
  1594. // map<int32, .qtprotobuf.examples.PhoneNumber> phones = 4;
  1595. if (!this->phones().empty()) {
  1596. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::qtprotobuf::examples::PhoneNumber >::const_pointer
  1597. ConstPtr;
  1598. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  1599. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  1600. if (deterministic &&
  1601. this->phones().size() > 1) {
  1602. ::std::unique_ptr<SortItem[]> items(
  1603. new SortItem[this->phones().size()]);
  1604. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::qtprotobuf::examples::PhoneNumber >::size_type size_type;
  1605. size_type n = 0;
  1606. for (::google::protobuf::Map< ::google::protobuf::int32, ::qtprotobuf::examples::PhoneNumber >::const_iterator
  1607. it = this->phones().begin();
  1608. it != this->phones().end(); ++it, ++n) {
  1609. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  1610. }
  1611. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  1612. ::std::unique_ptr<Contact_PhonesEntry_DoNotUse> entry;
  1613. for (size_type i = 0; i < n; i++) {
  1614. entry.reset(phones_.NewEntryWrapper(
  1615. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  1616. target = ::google::protobuf::internal::WireFormatLite::
  1617. InternalWriteMessageNoVirtualToArray(
  1618. 4, *entry, deterministic, target);
  1619. ;
  1620. }
  1621. } else {
  1622. ::std::unique_ptr<Contact_PhonesEntry_DoNotUse> entry;
  1623. for (::google::protobuf::Map< ::google::protobuf::int32, ::qtprotobuf::examples::PhoneNumber >::const_iterator
  1624. it = this->phones().begin();
  1625. it != this->phones().end(); ++it) {
  1626. entry.reset(phones_.NewEntryWrapper(
  1627. it->first, it->second));
  1628. target = ::google::protobuf::internal::WireFormatLite::
  1629. InternalWriteMessageNoVirtualToArray(
  1630. 4, *entry, deterministic, target);
  1631. ;
  1632. }
  1633. }
  1634. }
  1635. // .qtprotobuf.examples.Address address = 5;
  1636. if (this->has_address()) {
  1637. target = ::google::protobuf::internal::WireFormatLite::
  1638. InternalWriteMessageToArray(
  1639. 5, this->_internal_address(), deterministic, target);
  1640. }
  1641. // .qtprotobuf.examples.Job job = 6;
  1642. if (this->has_job()) {
  1643. target = ::google::protobuf::internal::WireFormatLite::
  1644. InternalWriteMessageToArray(
  1645. 6, this->_internal_job(), deterministic, target);
  1646. }
  1647. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1648. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1649. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  1650. }
  1651. // @@protoc_insertion_point(serialize_to_array_end:qtprotobuf.examples.Contact)
  1652. return target;
  1653. }
  1654. size_t Contact::ByteSizeLong() const {
  1655. // @@protoc_insertion_point(message_byte_size_start:qtprotobuf.examples.Contact)
  1656. size_t total_size = 0;
  1657. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1658. total_size +=
  1659. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1660. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  1661. }
  1662. // map<int32, .qtprotobuf.examples.PhoneNumber> phones = 4;
  1663. total_size += 1 *
  1664. ::google::protobuf::internal::FromIntSize(this->phones_size());
  1665. {
  1666. ::std::unique_ptr<Contact_PhonesEntry_DoNotUse> entry;
  1667. for (::google::protobuf::Map< ::google::protobuf::int32, ::qtprotobuf::examples::PhoneNumber >::const_iterator
  1668. it = this->phones().begin();
  1669. it != this->phones().end(); ++it) {
  1670. entry.reset(phones_.NewEntryWrapper(it->first, it->second));
  1671. total_size += ::google::protobuf::internal::WireFormatLite::
  1672. MessageSizeNoVirtual(*entry);
  1673. }
  1674. }
  1675. // string firstName = 1;
  1676. if (this->firstname().size() > 0) {
  1677. total_size += 1 +
  1678. ::google::protobuf::internal::WireFormatLite::StringSize(
  1679. this->firstname());
  1680. }
  1681. // string lastName = 2;
  1682. if (this->lastname().size() > 0) {
  1683. total_size += 1 +
  1684. ::google::protobuf::internal::WireFormatLite::StringSize(
  1685. this->lastname());
  1686. }
  1687. // string middleName = 3;
  1688. if (this->middlename().size() > 0) {
  1689. total_size += 1 +
  1690. ::google::protobuf::internal::WireFormatLite::StringSize(
  1691. this->middlename());
  1692. }
  1693. // .qtprotobuf.examples.Address address = 5;
  1694. if (this->has_address()) {
  1695. total_size += 1 +
  1696. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1697. *address_);
  1698. }
  1699. // .qtprotobuf.examples.Job job = 6;
  1700. if (this->has_job()) {
  1701. total_size += 1 +
  1702. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1703. *job_);
  1704. }
  1705. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1706. SetCachedSize(cached_size);
  1707. return total_size;
  1708. }
  1709. void Contact::MergeFrom(const ::google::protobuf::Message& from) {
  1710. // @@protoc_insertion_point(generalized_merge_from_start:qtprotobuf.examples.Contact)
  1711. GOOGLE_DCHECK_NE(&from, this);
  1712. const Contact* source =
  1713. ::google::protobuf::internal::DynamicCastToGenerated<const Contact>(
  1714. &from);
  1715. if (source == NULL) {
  1716. // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobuf.examples.Contact)
  1717. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1718. } else {
  1719. // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobuf.examples.Contact)
  1720. MergeFrom(*source);
  1721. }
  1722. }
  1723. void Contact::MergeFrom(const Contact& from) {
  1724. // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobuf.examples.Contact)
  1725. GOOGLE_DCHECK_NE(&from, this);
  1726. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1727. ::google::protobuf::uint32 cached_has_bits = 0;
  1728. (void) cached_has_bits;
  1729. phones_.MergeFrom(from.phones_);
  1730. if (from.firstname().size() > 0) {
  1731. firstname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.firstname_);
  1732. }
  1733. if (from.lastname().size() > 0) {
  1734. lastname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.lastname_);
  1735. }
  1736. if (from.middlename().size() > 0) {
  1737. middlename_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.middlename_);
  1738. }
  1739. if (from.has_address()) {
  1740. mutable_address()->::qtprotobuf::examples::Address::MergeFrom(from.address());
  1741. }
  1742. if (from.has_job()) {
  1743. mutable_job()->::qtprotobuf::examples::Job::MergeFrom(from.job());
  1744. }
  1745. }
  1746. void Contact::CopyFrom(const ::google::protobuf::Message& from) {
  1747. // @@protoc_insertion_point(generalized_copy_from_start:qtprotobuf.examples.Contact)
  1748. if (&from == this) return;
  1749. Clear();
  1750. MergeFrom(from);
  1751. }
  1752. void Contact::CopyFrom(const Contact& from) {
  1753. // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobuf.examples.Contact)
  1754. if (&from == this) return;
  1755. Clear();
  1756. MergeFrom(from);
  1757. }
  1758. bool Contact::IsInitialized() const {
  1759. return true;
  1760. }
  1761. void Contact::Swap(Contact* other) {
  1762. if (other == this) return;
  1763. InternalSwap(other);
  1764. }
  1765. void Contact::InternalSwap(Contact* other) {
  1766. using std::swap;
  1767. phones_.Swap(&other->phones_);
  1768. firstname_.Swap(&other->firstname_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1769. GetArenaNoVirtual());
  1770. lastname_.Swap(&other->lastname_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1771. GetArenaNoVirtual());
  1772. middlename_.Swap(&other->middlename_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1773. GetArenaNoVirtual());
  1774. swap(address_, other->address_);
  1775. swap(job_, other->job_);
  1776. _internal_metadata_.Swap(&other->_internal_metadata_);
  1777. }
  1778. ::google::protobuf::Metadata Contact::GetMetadata() const {
  1779. protobuf_addressbook_2eproto::protobuf_AssignDescriptorsOnce();
  1780. return ::protobuf_addressbook_2eproto::file_level_metadata[kIndexInFileMessages];
  1781. }
  1782. // ===================================================================
  1783. void Contacts::InitAsDefaultInstance() {
  1784. }
  1785. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1786. const int Contacts::kListFieldNumber;
  1787. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1788. Contacts::Contacts()
  1789. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1790. ::google::protobuf::internal::InitSCC(
  1791. &protobuf_addressbook_2eproto::scc_info_Contacts.base);
  1792. SharedCtor();
  1793. // @@protoc_insertion_point(constructor:qtprotobuf.examples.Contacts)
  1794. }
  1795. Contacts::Contacts(const Contacts& from)
  1796. : ::google::protobuf::Message(),
  1797. _internal_metadata_(NULL),
  1798. list_(from.list_) {
  1799. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1800. // @@protoc_insertion_point(copy_constructor:qtprotobuf.examples.Contacts)
  1801. }
  1802. void Contacts::SharedCtor() {
  1803. }
  1804. Contacts::~Contacts() {
  1805. // @@protoc_insertion_point(destructor:qtprotobuf.examples.Contacts)
  1806. SharedDtor();
  1807. }
  1808. void Contacts::SharedDtor() {
  1809. }
  1810. void Contacts::SetCachedSize(int size) const {
  1811. _cached_size_.Set(size);
  1812. }
  1813. const ::google::protobuf::Descriptor* Contacts::descriptor() {
  1814. ::protobuf_addressbook_2eproto::protobuf_AssignDescriptorsOnce();
  1815. return ::protobuf_addressbook_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1816. }
  1817. const Contacts& Contacts::default_instance() {
  1818. ::google::protobuf::internal::InitSCC(&protobuf_addressbook_2eproto::scc_info_Contacts.base);
  1819. return *internal_default_instance();
  1820. }
  1821. void Contacts::Clear() {
  1822. // @@protoc_insertion_point(message_clear_start:qtprotobuf.examples.Contacts)
  1823. ::google::protobuf::uint32 cached_has_bits = 0;
  1824. // Prevent compiler warnings about cached_has_bits being unused
  1825. (void) cached_has_bits;
  1826. list_.Clear();
  1827. _internal_metadata_.Clear();
  1828. }
  1829. bool Contacts::MergePartialFromCodedStream(
  1830. ::google::protobuf::io::CodedInputStream* input) {
  1831. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1832. ::google::protobuf::uint32 tag;
  1833. // @@protoc_insertion_point(parse_start:qtprotobuf.examples.Contacts)
  1834. for (;;) {
  1835. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1836. tag = p.first;
  1837. if (!p.second) goto handle_unusual;
  1838. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1839. // repeated .qtprotobuf.examples.Contact list = 1;
  1840. case 1: {
  1841. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1842. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1843. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1844. input, add_list()));
  1845. } else {
  1846. goto handle_unusual;
  1847. }
  1848. break;
  1849. }
  1850. default: {
  1851. handle_unusual:
  1852. if (tag == 0) {
  1853. goto success;
  1854. }
  1855. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1856. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1857. break;
  1858. }
  1859. }
  1860. }
  1861. success:
  1862. // @@protoc_insertion_point(parse_success:qtprotobuf.examples.Contacts)
  1863. return true;
  1864. failure:
  1865. // @@protoc_insertion_point(parse_failure:qtprotobuf.examples.Contacts)
  1866. return false;
  1867. #undef DO_
  1868. }
  1869. void Contacts::SerializeWithCachedSizes(
  1870. ::google::protobuf::io::CodedOutputStream* output) const {
  1871. // @@protoc_insertion_point(serialize_start:qtprotobuf.examples.Contacts)
  1872. ::google::protobuf::uint32 cached_has_bits = 0;
  1873. (void) cached_has_bits;
  1874. // repeated .qtprotobuf.examples.Contact list = 1;
  1875. for (unsigned int i = 0,
  1876. n = static_cast<unsigned int>(this->list_size()); i < n; i++) {
  1877. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1878. 1,
  1879. this->list(static_cast<int>(i)),
  1880. output);
  1881. }
  1882. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1883. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1884. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  1885. }
  1886. // @@protoc_insertion_point(serialize_end:qtprotobuf.examples.Contacts)
  1887. }
  1888. ::google::protobuf::uint8* Contacts::InternalSerializeWithCachedSizesToArray(
  1889. bool deterministic, ::google::protobuf::uint8* target) const {
  1890. (void)deterministic; // Unused
  1891. // @@protoc_insertion_point(serialize_to_array_start:qtprotobuf.examples.Contacts)
  1892. ::google::protobuf::uint32 cached_has_bits = 0;
  1893. (void) cached_has_bits;
  1894. // repeated .qtprotobuf.examples.Contact list = 1;
  1895. for (unsigned int i = 0,
  1896. n = static_cast<unsigned int>(this->list_size()); i < n; i++) {
  1897. target = ::google::protobuf::internal::WireFormatLite::
  1898. InternalWriteMessageToArray(
  1899. 1, this->list(static_cast<int>(i)), deterministic, target);
  1900. }
  1901. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1902. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1903. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  1904. }
  1905. // @@protoc_insertion_point(serialize_to_array_end:qtprotobuf.examples.Contacts)
  1906. return target;
  1907. }
  1908. size_t Contacts::ByteSizeLong() const {
  1909. // @@protoc_insertion_point(message_byte_size_start:qtprotobuf.examples.Contacts)
  1910. size_t total_size = 0;
  1911. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1912. total_size +=
  1913. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1914. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  1915. }
  1916. // repeated .qtprotobuf.examples.Contact list = 1;
  1917. {
  1918. unsigned int count = static_cast<unsigned int>(this->list_size());
  1919. total_size += 1UL * count;
  1920. for (unsigned int i = 0; i < count; i++) {
  1921. total_size +=
  1922. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1923. this->list(static_cast<int>(i)));
  1924. }
  1925. }
  1926. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1927. SetCachedSize(cached_size);
  1928. return total_size;
  1929. }
  1930. void Contacts::MergeFrom(const ::google::protobuf::Message& from) {
  1931. // @@protoc_insertion_point(generalized_merge_from_start:qtprotobuf.examples.Contacts)
  1932. GOOGLE_DCHECK_NE(&from, this);
  1933. const Contacts* source =
  1934. ::google::protobuf::internal::DynamicCastToGenerated<const Contacts>(
  1935. &from);
  1936. if (source == NULL) {
  1937. // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobuf.examples.Contacts)
  1938. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1939. } else {
  1940. // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobuf.examples.Contacts)
  1941. MergeFrom(*source);
  1942. }
  1943. }
  1944. void Contacts::MergeFrom(const Contacts& from) {
  1945. // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobuf.examples.Contacts)
  1946. GOOGLE_DCHECK_NE(&from, this);
  1947. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1948. ::google::protobuf::uint32 cached_has_bits = 0;
  1949. (void) cached_has_bits;
  1950. list_.MergeFrom(from.list_);
  1951. }
  1952. void Contacts::CopyFrom(const ::google::protobuf::Message& from) {
  1953. // @@protoc_insertion_point(generalized_copy_from_start:qtprotobuf.examples.Contacts)
  1954. if (&from == this) return;
  1955. Clear();
  1956. MergeFrom(from);
  1957. }
  1958. void Contacts::CopyFrom(const Contacts& from) {
  1959. // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobuf.examples.Contacts)
  1960. if (&from == this) return;
  1961. Clear();
  1962. MergeFrom(from);
  1963. }
  1964. bool Contacts::IsInitialized() const {
  1965. return true;
  1966. }
  1967. void Contacts::Swap(Contacts* other) {
  1968. if (other == this) return;
  1969. InternalSwap(other);
  1970. }
  1971. void Contacts::InternalSwap(Contacts* other) {
  1972. using std::swap;
  1973. CastToBase(&list_)->InternalSwap(CastToBase(&other->list_));
  1974. _internal_metadata_.Swap(&other->_internal_metadata_);
  1975. }
  1976. ::google::protobuf::Metadata Contacts::GetMetadata() const {
  1977. protobuf_addressbook_2eproto::protobuf_AssignDescriptorsOnce();
  1978. return ::protobuf_addressbook_2eproto::file_level_metadata[kIndexInFileMessages];
  1979. }
  1980. // ===================================================================
  1981. void SimpleResult::InitAsDefaultInstance() {
  1982. }
  1983. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1984. const int SimpleResult::kOkFieldNumber;
  1985. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1986. SimpleResult::SimpleResult()
  1987. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1988. ::google::protobuf::internal::InitSCC(
  1989. &protobuf_addressbook_2eproto::scc_info_SimpleResult.base);
  1990. SharedCtor();
  1991. // @@protoc_insertion_point(constructor:qtprotobuf.examples.SimpleResult)
  1992. }
  1993. SimpleResult::SimpleResult(const SimpleResult& from)
  1994. : ::google::protobuf::Message(),
  1995. _internal_metadata_(NULL) {
  1996. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1997. ok_ = from.ok_;
  1998. // @@protoc_insertion_point(copy_constructor:qtprotobuf.examples.SimpleResult)
  1999. }
  2000. void SimpleResult::SharedCtor() {
  2001. ok_ = false;
  2002. }
  2003. SimpleResult::~SimpleResult() {
  2004. // @@protoc_insertion_point(destructor:qtprotobuf.examples.SimpleResult)
  2005. SharedDtor();
  2006. }
  2007. void SimpleResult::SharedDtor() {
  2008. }
  2009. void SimpleResult::SetCachedSize(int size) const {
  2010. _cached_size_.Set(size);
  2011. }
  2012. const ::google::protobuf::Descriptor* SimpleResult::descriptor() {
  2013. ::protobuf_addressbook_2eproto::protobuf_AssignDescriptorsOnce();
  2014. return ::protobuf_addressbook_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2015. }
  2016. const SimpleResult& SimpleResult::default_instance() {
  2017. ::google::protobuf::internal::InitSCC(&protobuf_addressbook_2eproto::scc_info_SimpleResult.base);
  2018. return *internal_default_instance();
  2019. }
  2020. void SimpleResult::Clear() {
  2021. // @@protoc_insertion_point(message_clear_start:qtprotobuf.examples.SimpleResult)
  2022. ::google::protobuf::uint32 cached_has_bits = 0;
  2023. // Prevent compiler warnings about cached_has_bits being unused
  2024. (void) cached_has_bits;
  2025. ok_ = false;
  2026. _internal_metadata_.Clear();
  2027. }
  2028. bool SimpleResult::MergePartialFromCodedStream(
  2029. ::google::protobuf::io::CodedInputStream* input) {
  2030. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2031. ::google::protobuf::uint32 tag;
  2032. // @@protoc_insertion_point(parse_start:qtprotobuf.examples.SimpleResult)
  2033. for (;;) {
  2034. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2035. tag = p.first;
  2036. if (!p.second) goto handle_unusual;
  2037. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2038. // bool ok = 1;
  2039. case 1: {
  2040. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2041. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  2042. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2043. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  2044. input, &ok_)));
  2045. } else {
  2046. goto handle_unusual;
  2047. }
  2048. break;
  2049. }
  2050. default: {
  2051. handle_unusual:
  2052. if (tag == 0) {
  2053. goto success;
  2054. }
  2055. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2056. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2057. break;
  2058. }
  2059. }
  2060. }
  2061. success:
  2062. // @@protoc_insertion_point(parse_success:qtprotobuf.examples.SimpleResult)
  2063. return true;
  2064. failure:
  2065. // @@protoc_insertion_point(parse_failure:qtprotobuf.examples.SimpleResult)
  2066. return false;
  2067. #undef DO_
  2068. }
  2069. void SimpleResult::SerializeWithCachedSizes(
  2070. ::google::protobuf::io::CodedOutputStream* output) const {
  2071. // @@protoc_insertion_point(serialize_start:qtprotobuf.examples.SimpleResult)
  2072. ::google::protobuf::uint32 cached_has_bits = 0;
  2073. (void) cached_has_bits;
  2074. // bool ok = 1;
  2075. if (this->ok() != 0) {
  2076. ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->ok(), output);
  2077. }
  2078. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  2079. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2080. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  2081. }
  2082. // @@protoc_insertion_point(serialize_end:qtprotobuf.examples.SimpleResult)
  2083. }
  2084. ::google::protobuf::uint8* SimpleResult::InternalSerializeWithCachedSizesToArray(
  2085. bool deterministic, ::google::protobuf::uint8* target) const {
  2086. (void)deterministic; // Unused
  2087. // @@protoc_insertion_point(serialize_to_array_start:qtprotobuf.examples.SimpleResult)
  2088. ::google::protobuf::uint32 cached_has_bits = 0;
  2089. (void) cached_has_bits;
  2090. // bool ok = 1;
  2091. if (this->ok() != 0) {
  2092. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->ok(), target);
  2093. }
  2094. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  2095. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2096. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  2097. }
  2098. // @@protoc_insertion_point(serialize_to_array_end:qtprotobuf.examples.SimpleResult)
  2099. return target;
  2100. }
  2101. size_t SimpleResult::ByteSizeLong() const {
  2102. // @@protoc_insertion_point(message_byte_size_start:qtprotobuf.examples.SimpleResult)
  2103. size_t total_size = 0;
  2104. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  2105. total_size +=
  2106. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2107. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  2108. }
  2109. // bool ok = 1;
  2110. if (this->ok() != 0) {
  2111. total_size += 1 + 1;
  2112. }
  2113. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2114. SetCachedSize(cached_size);
  2115. return total_size;
  2116. }
  2117. void SimpleResult::MergeFrom(const ::google::protobuf::Message& from) {
  2118. // @@protoc_insertion_point(generalized_merge_from_start:qtprotobuf.examples.SimpleResult)
  2119. GOOGLE_DCHECK_NE(&from, this);
  2120. const SimpleResult* source =
  2121. ::google::protobuf::internal::DynamicCastToGenerated<const SimpleResult>(
  2122. &from);
  2123. if (source == NULL) {
  2124. // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobuf.examples.SimpleResult)
  2125. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2126. } else {
  2127. // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobuf.examples.SimpleResult)
  2128. MergeFrom(*source);
  2129. }
  2130. }
  2131. void SimpleResult::MergeFrom(const SimpleResult& from) {
  2132. // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobuf.examples.SimpleResult)
  2133. GOOGLE_DCHECK_NE(&from, this);
  2134. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2135. ::google::protobuf::uint32 cached_has_bits = 0;
  2136. (void) cached_has_bits;
  2137. if (from.ok() != 0) {
  2138. set_ok(from.ok());
  2139. }
  2140. }
  2141. void SimpleResult::CopyFrom(const ::google::protobuf::Message& from) {
  2142. // @@protoc_insertion_point(generalized_copy_from_start:qtprotobuf.examples.SimpleResult)
  2143. if (&from == this) return;
  2144. Clear();
  2145. MergeFrom(from);
  2146. }
  2147. void SimpleResult::CopyFrom(const SimpleResult& from) {
  2148. // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobuf.examples.SimpleResult)
  2149. if (&from == this) return;
  2150. Clear();
  2151. MergeFrom(from);
  2152. }
  2153. bool SimpleResult::IsInitialized() const {
  2154. return true;
  2155. }
  2156. void SimpleResult::Swap(SimpleResult* other) {
  2157. if (other == this) return;
  2158. InternalSwap(other);
  2159. }
  2160. void SimpleResult::InternalSwap(SimpleResult* other) {
  2161. using std::swap;
  2162. swap(ok_, other->ok_);
  2163. _internal_metadata_.Swap(&other->_internal_metadata_);
  2164. }
  2165. ::google::protobuf::Metadata SimpleResult::GetMetadata() const {
  2166. protobuf_addressbook_2eproto::protobuf_AssignDescriptorsOnce();
  2167. return ::protobuf_addressbook_2eproto::file_level_metadata[kIndexInFileMessages];
  2168. }
  2169. // ===================================================================
  2170. void ListFrame::InitAsDefaultInstance() {
  2171. }
  2172. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2173. const int ListFrame::kStartFieldNumber;
  2174. const int ListFrame::kEndFieldNumber;
  2175. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2176. ListFrame::ListFrame()
  2177. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2178. ::google::protobuf::internal::InitSCC(
  2179. &protobuf_addressbook_2eproto::scc_info_ListFrame.base);
  2180. SharedCtor();
  2181. // @@protoc_insertion_point(constructor:qtprotobuf.examples.ListFrame)
  2182. }
  2183. ListFrame::ListFrame(const ListFrame& from)
  2184. : ::google::protobuf::Message(),
  2185. _internal_metadata_(NULL) {
  2186. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2187. ::memcpy(&start_, &from.start_,
  2188. static_cast<size_t>(reinterpret_cast<char*>(&end_) -
  2189. reinterpret_cast<char*>(&start_)) + sizeof(end_));
  2190. // @@protoc_insertion_point(copy_constructor:qtprotobuf.examples.ListFrame)
  2191. }
  2192. void ListFrame::SharedCtor() {
  2193. ::memset(&start_, 0, static_cast<size_t>(
  2194. reinterpret_cast<char*>(&end_) -
  2195. reinterpret_cast<char*>(&start_)) + sizeof(end_));
  2196. }
  2197. ListFrame::~ListFrame() {
  2198. // @@protoc_insertion_point(destructor:qtprotobuf.examples.ListFrame)
  2199. SharedDtor();
  2200. }
  2201. void ListFrame::SharedDtor() {
  2202. }
  2203. void ListFrame::SetCachedSize(int size) const {
  2204. _cached_size_.Set(size);
  2205. }
  2206. const ::google::protobuf::Descriptor* ListFrame::descriptor() {
  2207. ::protobuf_addressbook_2eproto::protobuf_AssignDescriptorsOnce();
  2208. return ::protobuf_addressbook_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2209. }
  2210. const ListFrame& ListFrame::default_instance() {
  2211. ::google::protobuf::internal::InitSCC(&protobuf_addressbook_2eproto::scc_info_ListFrame.base);
  2212. return *internal_default_instance();
  2213. }
  2214. void ListFrame::Clear() {
  2215. // @@protoc_insertion_point(message_clear_start:qtprotobuf.examples.ListFrame)
  2216. ::google::protobuf::uint32 cached_has_bits = 0;
  2217. // Prevent compiler warnings about cached_has_bits being unused
  2218. (void) cached_has_bits;
  2219. ::memset(&start_, 0, static_cast<size_t>(
  2220. reinterpret_cast<char*>(&end_) -
  2221. reinterpret_cast<char*>(&start_)) + sizeof(end_));
  2222. _internal_metadata_.Clear();
  2223. }
  2224. bool ListFrame::MergePartialFromCodedStream(
  2225. ::google::protobuf::io::CodedInputStream* input) {
  2226. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2227. ::google::protobuf::uint32 tag;
  2228. // @@protoc_insertion_point(parse_start:qtprotobuf.examples.ListFrame)
  2229. for (;;) {
  2230. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2231. tag = p.first;
  2232. if (!p.second) goto handle_unusual;
  2233. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2234. // sint32 start = 1;
  2235. case 1: {
  2236. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2237. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  2238. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2239. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
  2240. input, &start_)));
  2241. } else {
  2242. goto handle_unusual;
  2243. }
  2244. break;
  2245. }
  2246. // sint32 end = 2;
  2247. case 2: {
  2248. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2249. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  2250. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2251. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
  2252. input, &end_)));
  2253. } else {
  2254. goto handle_unusual;
  2255. }
  2256. break;
  2257. }
  2258. default: {
  2259. handle_unusual:
  2260. if (tag == 0) {
  2261. goto success;
  2262. }
  2263. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2264. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2265. break;
  2266. }
  2267. }
  2268. }
  2269. success:
  2270. // @@protoc_insertion_point(parse_success:qtprotobuf.examples.ListFrame)
  2271. return true;
  2272. failure:
  2273. // @@protoc_insertion_point(parse_failure:qtprotobuf.examples.ListFrame)
  2274. return false;
  2275. #undef DO_
  2276. }
  2277. void ListFrame::SerializeWithCachedSizes(
  2278. ::google::protobuf::io::CodedOutputStream* output) const {
  2279. // @@protoc_insertion_point(serialize_start:qtprotobuf.examples.ListFrame)
  2280. ::google::protobuf::uint32 cached_has_bits = 0;
  2281. (void) cached_has_bits;
  2282. // sint32 start = 1;
  2283. if (this->start() != 0) {
  2284. ::google::protobuf::internal::WireFormatLite::WriteSInt32(1, this->start(), output);
  2285. }
  2286. // sint32 end = 2;
  2287. if (this->end() != 0) {
  2288. ::google::protobuf::internal::WireFormatLite::WriteSInt32(2, this->end(), output);
  2289. }
  2290. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  2291. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2292. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  2293. }
  2294. // @@protoc_insertion_point(serialize_end:qtprotobuf.examples.ListFrame)
  2295. }
  2296. ::google::protobuf::uint8* ListFrame::InternalSerializeWithCachedSizesToArray(
  2297. bool deterministic, ::google::protobuf::uint8* target) const {
  2298. (void)deterministic; // Unused
  2299. // @@protoc_insertion_point(serialize_to_array_start:qtprotobuf.examples.ListFrame)
  2300. ::google::protobuf::uint32 cached_has_bits = 0;
  2301. (void) cached_has_bits;
  2302. // sint32 start = 1;
  2303. if (this->start() != 0) {
  2304. target = ::google::protobuf::internal::WireFormatLite::WriteSInt32ToArray(1, this->start(), target);
  2305. }
  2306. // sint32 end = 2;
  2307. if (this->end() != 0) {
  2308. target = ::google::protobuf::internal::WireFormatLite::WriteSInt32ToArray(2, this->end(), target);
  2309. }
  2310. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  2311. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2312. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  2313. }
  2314. // @@protoc_insertion_point(serialize_to_array_end:qtprotobuf.examples.ListFrame)
  2315. return target;
  2316. }
  2317. size_t ListFrame::ByteSizeLong() const {
  2318. // @@protoc_insertion_point(message_byte_size_start:qtprotobuf.examples.ListFrame)
  2319. size_t total_size = 0;
  2320. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  2321. total_size +=
  2322. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2323. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  2324. }
  2325. // sint32 start = 1;
  2326. if (this->start() != 0) {
  2327. total_size += 1 +
  2328. ::google::protobuf::internal::WireFormatLite::SInt32Size(
  2329. this->start());
  2330. }
  2331. // sint32 end = 2;
  2332. if (this->end() != 0) {
  2333. total_size += 1 +
  2334. ::google::protobuf::internal::WireFormatLite::SInt32Size(
  2335. this->end());
  2336. }
  2337. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2338. SetCachedSize(cached_size);
  2339. return total_size;
  2340. }
  2341. void ListFrame::MergeFrom(const ::google::protobuf::Message& from) {
  2342. // @@protoc_insertion_point(generalized_merge_from_start:qtprotobuf.examples.ListFrame)
  2343. GOOGLE_DCHECK_NE(&from, this);
  2344. const ListFrame* source =
  2345. ::google::protobuf::internal::DynamicCastToGenerated<const ListFrame>(
  2346. &from);
  2347. if (source == NULL) {
  2348. // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobuf.examples.ListFrame)
  2349. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2350. } else {
  2351. // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobuf.examples.ListFrame)
  2352. MergeFrom(*source);
  2353. }
  2354. }
  2355. void ListFrame::MergeFrom(const ListFrame& from) {
  2356. // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobuf.examples.ListFrame)
  2357. GOOGLE_DCHECK_NE(&from, this);
  2358. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2359. ::google::protobuf::uint32 cached_has_bits = 0;
  2360. (void) cached_has_bits;
  2361. if (from.start() != 0) {
  2362. set_start(from.start());
  2363. }
  2364. if (from.end() != 0) {
  2365. set_end(from.end());
  2366. }
  2367. }
  2368. void ListFrame::CopyFrom(const ::google::protobuf::Message& from) {
  2369. // @@protoc_insertion_point(generalized_copy_from_start:qtprotobuf.examples.ListFrame)
  2370. if (&from == this) return;
  2371. Clear();
  2372. MergeFrom(from);
  2373. }
  2374. void ListFrame::CopyFrom(const ListFrame& from) {
  2375. // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobuf.examples.ListFrame)
  2376. if (&from == this) return;
  2377. Clear();
  2378. MergeFrom(from);
  2379. }
  2380. bool ListFrame::IsInitialized() const {
  2381. return true;
  2382. }
  2383. void ListFrame::Swap(ListFrame* other) {
  2384. if (other == this) return;
  2385. InternalSwap(other);
  2386. }
  2387. void ListFrame::InternalSwap(ListFrame* other) {
  2388. using std::swap;
  2389. swap(start_, other->start_);
  2390. swap(end_, other->end_);
  2391. _internal_metadata_.Swap(&other->_internal_metadata_);
  2392. }
  2393. ::google::protobuf::Metadata ListFrame::GetMetadata() const {
  2394. protobuf_addressbook_2eproto::protobuf_AssignDescriptorsOnce();
  2395. return ::protobuf_addressbook_2eproto::file_level_metadata[kIndexInFileMessages];
  2396. }
  2397. // @@protoc_insertion_point(namespace_scope)
  2398. } // namespace examples
  2399. } // namespace qtprotobuf
  2400. namespace google {
  2401. namespace protobuf {
  2402. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobuf::examples::PhoneNumber* Arena::CreateMaybeMessage< ::qtprotobuf::examples::PhoneNumber >(Arena* arena) {
  2403. return Arena::CreateInternal< ::qtprotobuf::examples::PhoneNumber >(arena);
  2404. }
  2405. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobuf::examples::Address* Arena::CreateMaybeMessage< ::qtprotobuf::examples::Address >(Arena* arena) {
  2406. return Arena::CreateInternal< ::qtprotobuf::examples::Address >(arena);
  2407. }
  2408. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobuf::examples::Job* Arena::CreateMaybeMessage< ::qtprotobuf::examples::Job >(Arena* arena) {
  2409. return Arena::CreateInternal< ::qtprotobuf::examples::Job >(arena);
  2410. }
  2411. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobuf::examples::Contact_PhonesEntry_DoNotUse* Arena::CreateMaybeMessage< ::qtprotobuf::examples::Contact_PhonesEntry_DoNotUse >(Arena* arena) {
  2412. return Arena::CreateInternal< ::qtprotobuf::examples::Contact_PhonesEntry_DoNotUse >(arena);
  2413. }
  2414. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobuf::examples::Contact* Arena::CreateMaybeMessage< ::qtprotobuf::examples::Contact >(Arena* arena) {
  2415. return Arena::CreateInternal< ::qtprotobuf::examples::Contact >(arena);
  2416. }
  2417. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobuf::examples::Contacts* Arena::CreateMaybeMessage< ::qtprotobuf::examples::Contacts >(Arena* arena) {
  2418. return Arena::CreateInternal< ::qtprotobuf::examples::Contacts >(arena);
  2419. }
  2420. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobuf::examples::SimpleResult* Arena::CreateMaybeMessage< ::qtprotobuf::examples::SimpleResult >(Arena* arena) {
  2421. return Arena::CreateInternal< ::qtprotobuf::examples::SimpleResult >(arena);
  2422. }
  2423. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobuf::examples::ListFrame* Arena::CreateMaybeMessage< ::qtprotobuf::examples::ListFrame >(Arena* arena) {
  2424. return Arena::CreateInternal< ::qtprotobuf::examples::ListFrame >(arena);
  2425. }
  2426. } // namespace protobuf
  2427. } // namespace google
  2428. // @@protoc_insertion_point(global_scope)