123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: simpletest.proto
- #include "simpletest.pb.h"
- #include <algorithm>
- #include <google/protobuf/stubs/common.h>
- #include <google/protobuf/stubs/port.h>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/wire_format_lite_inl.h>
- #include <google/protobuf/descriptor.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/reflection_ops.h>
- #include <google/protobuf/wire_format.h>
- // This is a temporary google only hack
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- #include "third_party/protobuf/version.h"
- #endif
- // @@protoc_insertion_point(includes)
- namespace protobuf_simpletest_2eproto {
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_simpletest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SimpleStringMessage;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_simpletest_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ComplexMessage;
- } // namespace protobuf_simpletest_2eproto
- namespace qtprotobufnamespace {
- namespace tests {
- class SimpleEnumMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<SimpleEnumMessage>
- _instance;
- } _SimpleEnumMessage_default_instance_;
- class SimpleFileEnumMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<SimpleFileEnumMessage>
- _instance;
- } _SimpleFileEnumMessage_default_instance_;
- class SimpleBoolMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<SimpleBoolMessage>
- _instance;
- } _SimpleBoolMessage_default_instance_;
- class SimpleIntMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<SimpleIntMessage>
- _instance;
- } _SimpleIntMessage_default_instance_;
- class SimpleSIntMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<SimpleSIntMessage>
- _instance;
- } _SimpleSIntMessage_default_instance_;
- class SimpleUIntMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<SimpleUIntMessage>
- _instance;
- } _SimpleUIntMessage_default_instance_;
- class SimpleInt64MessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<SimpleInt64Message>
- _instance;
- } _SimpleInt64Message_default_instance_;
- class SimpleSInt64MessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<SimpleSInt64Message>
- _instance;
- } _SimpleSInt64Message_default_instance_;
- class SimpleUInt64MessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<SimpleUInt64Message>
- _instance;
- } _SimpleUInt64Message_default_instance_;
- class SimpleStringMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<SimpleStringMessage>
- _instance;
- } _SimpleStringMessage_default_instance_;
- class SimpleFloatMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<SimpleFloatMessage>
- _instance;
- } _SimpleFloatMessage_default_instance_;
- class SimpleDoubleMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<SimpleDoubleMessage>
- _instance;
- } _SimpleDoubleMessage_default_instance_;
- class SimpleBytesMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<SimpleBytesMessage>
- _instance;
- } _SimpleBytesMessage_default_instance_;
- class SimpleFixedInt32MessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<SimpleFixedInt32Message>
- _instance;
- } _SimpleFixedInt32Message_default_instance_;
- class SimpleFixedInt64MessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<SimpleFixedInt64Message>
- _instance;
- } _SimpleFixedInt64Message_default_instance_;
- class SimpleSFixedInt32MessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<SimpleSFixedInt32Message>
- _instance;
- } _SimpleSFixedInt32Message_default_instance_;
- class SimpleSFixedInt64MessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<SimpleSFixedInt64Message>
- _instance;
- } _SimpleSFixedInt64Message_default_instance_;
- class ComplexMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<ComplexMessage>
- _instance;
- } _ComplexMessage_default_instance_;
- class RepeatedIntMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<RepeatedIntMessage>
- _instance;
- } _RepeatedIntMessage_default_instance_;
- class RepeatedStringMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<RepeatedStringMessage>
- _instance;
- } _RepeatedStringMessage_default_instance_;
- class RepeatedDoubleMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<RepeatedDoubleMessage>
- _instance;
- } _RepeatedDoubleMessage_default_instance_;
- class RepeatedBytesMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<RepeatedBytesMessage>
- _instance;
- } _RepeatedBytesMessage_default_instance_;
- class RepeatedFloatMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<RepeatedFloatMessage>
- _instance;
- } _RepeatedFloatMessage_default_instance_;
- class RepeatedComplexMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<RepeatedComplexMessage>
- _instance;
- } _RepeatedComplexMessage_default_instance_;
- } // namespace tests
- } // namespace qtprotobufnamespace
- namespace protobuf_simpletest_2eproto {
- static void InitDefaultsSimpleEnumMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::qtprotobufnamespace::tests::_SimpleEnumMessage_default_instance_;
- new (ptr) ::qtprotobufnamespace::tests::SimpleEnumMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::qtprotobufnamespace::tests::SimpleEnumMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_SimpleEnumMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleEnumMessage}, {}};
- static void InitDefaultsSimpleFileEnumMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::qtprotobufnamespace::tests::_SimpleFileEnumMessage_default_instance_;
- new (ptr) ::qtprotobufnamespace::tests::SimpleFileEnumMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::qtprotobufnamespace::tests::SimpleFileEnumMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_SimpleFileEnumMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleFileEnumMessage}, {}};
- static void InitDefaultsSimpleBoolMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::qtprotobufnamespace::tests::_SimpleBoolMessage_default_instance_;
- new (ptr) ::qtprotobufnamespace::tests::SimpleBoolMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::qtprotobufnamespace::tests::SimpleBoolMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_SimpleBoolMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleBoolMessage}, {}};
- static void InitDefaultsSimpleIntMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::qtprotobufnamespace::tests::_SimpleIntMessage_default_instance_;
- new (ptr) ::qtprotobufnamespace::tests::SimpleIntMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::qtprotobufnamespace::tests::SimpleIntMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_SimpleIntMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleIntMessage}, {}};
- static void InitDefaultsSimpleSIntMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::qtprotobufnamespace::tests::_SimpleSIntMessage_default_instance_;
- new (ptr) ::qtprotobufnamespace::tests::SimpleSIntMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::qtprotobufnamespace::tests::SimpleSIntMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_SimpleSIntMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleSIntMessage}, {}};
- static void InitDefaultsSimpleUIntMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::qtprotobufnamespace::tests::_SimpleUIntMessage_default_instance_;
- new (ptr) ::qtprotobufnamespace::tests::SimpleUIntMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::qtprotobufnamespace::tests::SimpleUIntMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_SimpleUIntMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleUIntMessage}, {}};
- static void InitDefaultsSimpleInt64Message() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::qtprotobufnamespace::tests::_SimpleInt64Message_default_instance_;
- new (ptr) ::qtprotobufnamespace::tests::SimpleInt64Message();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::qtprotobufnamespace::tests::SimpleInt64Message::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_SimpleInt64Message =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleInt64Message}, {}};
- static void InitDefaultsSimpleSInt64Message() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::qtprotobufnamespace::tests::_SimpleSInt64Message_default_instance_;
- new (ptr) ::qtprotobufnamespace::tests::SimpleSInt64Message();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::qtprotobufnamespace::tests::SimpleSInt64Message::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_SimpleSInt64Message =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleSInt64Message}, {}};
- static void InitDefaultsSimpleUInt64Message() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::qtprotobufnamespace::tests::_SimpleUInt64Message_default_instance_;
- new (ptr) ::qtprotobufnamespace::tests::SimpleUInt64Message();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::qtprotobufnamespace::tests::SimpleUInt64Message::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_SimpleUInt64Message =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleUInt64Message}, {}};
- static void InitDefaultsSimpleStringMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::qtprotobufnamespace::tests::_SimpleStringMessage_default_instance_;
- new (ptr) ::qtprotobufnamespace::tests::SimpleStringMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::qtprotobufnamespace::tests::SimpleStringMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_SimpleStringMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleStringMessage}, {}};
- static void InitDefaultsSimpleFloatMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::qtprotobufnamespace::tests::_SimpleFloatMessage_default_instance_;
- new (ptr) ::qtprotobufnamespace::tests::SimpleFloatMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::qtprotobufnamespace::tests::SimpleFloatMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_SimpleFloatMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleFloatMessage}, {}};
- static void InitDefaultsSimpleDoubleMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::qtprotobufnamespace::tests::_SimpleDoubleMessage_default_instance_;
- new (ptr) ::qtprotobufnamespace::tests::SimpleDoubleMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::qtprotobufnamespace::tests::SimpleDoubleMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_SimpleDoubleMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleDoubleMessage}, {}};
- static void InitDefaultsSimpleBytesMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::qtprotobufnamespace::tests::_SimpleBytesMessage_default_instance_;
- new (ptr) ::qtprotobufnamespace::tests::SimpleBytesMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::qtprotobufnamespace::tests::SimpleBytesMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_SimpleBytesMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleBytesMessage}, {}};
- static void InitDefaultsSimpleFixedInt32Message() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::qtprotobufnamespace::tests::_SimpleFixedInt32Message_default_instance_;
- new (ptr) ::qtprotobufnamespace::tests::SimpleFixedInt32Message();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::qtprotobufnamespace::tests::SimpleFixedInt32Message::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_SimpleFixedInt32Message =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleFixedInt32Message}, {}};
- static void InitDefaultsSimpleFixedInt64Message() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::qtprotobufnamespace::tests::_SimpleFixedInt64Message_default_instance_;
- new (ptr) ::qtprotobufnamespace::tests::SimpleFixedInt64Message();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::qtprotobufnamespace::tests::SimpleFixedInt64Message::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_SimpleFixedInt64Message =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleFixedInt64Message}, {}};
- static void InitDefaultsSimpleSFixedInt32Message() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::qtprotobufnamespace::tests::_SimpleSFixedInt32Message_default_instance_;
- new (ptr) ::qtprotobufnamespace::tests::SimpleSFixedInt32Message();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::qtprotobufnamespace::tests::SimpleSFixedInt32Message::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_SimpleSFixedInt32Message =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleSFixedInt32Message}, {}};
- static void InitDefaultsSimpleSFixedInt64Message() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::qtprotobufnamespace::tests::_SimpleSFixedInt64Message_default_instance_;
- new (ptr) ::qtprotobufnamespace::tests::SimpleSFixedInt64Message();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::qtprotobufnamespace::tests::SimpleSFixedInt64Message::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_SimpleSFixedInt64Message =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleSFixedInt64Message}, {}};
- static void InitDefaultsComplexMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::qtprotobufnamespace::tests::_ComplexMessage_default_instance_;
- new (ptr) ::qtprotobufnamespace::tests::ComplexMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::qtprotobufnamespace::tests::ComplexMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_ComplexMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsComplexMessage}, {
- &protobuf_simpletest_2eproto::scc_info_SimpleStringMessage.base,}};
- static void InitDefaultsRepeatedIntMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::qtprotobufnamespace::tests::_RepeatedIntMessage_default_instance_;
- new (ptr) ::qtprotobufnamespace::tests::RepeatedIntMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::qtprotobufnamespace::tests::RepeatedIntMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_RepeatedIntMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRepeatedIntMessage}, {}};
- static void InitDefaultsRepeatedStringMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::qtprotobufnamespace::tests::_RepeatedStringMessage_default_instance_;
- new (ptr) ::qtprotobufnamespace::tests::RepeatedStringMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::qtprotobufnamespace::tests::RepeatedStringMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_RepeatedStringMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRepeatedStringMessage}, {}};
- static void InitDefaultsRepeatedDoubleMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::qtprotobufnamespace::tests::_RepeatedDoubleMessage_default_instance_;
- new (ptr) ::qtprotobufnamespace::tests::RepeatedDoubleMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::qtprotobufnamespace::tests::RepeatedDoubleMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_RepeatedDoubleMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRepeatedDoubleMessage}, {}};
- static void InitDefaultsRepeatedBytesMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::qtprotobufnamespace::tests::_RepeatedBytesMessage_default_instance_;
- new (ptr) ::qtprotobufnamespace::tests::RepeatedBytesMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::qtprotobufnamespace::tests::RepeatedBytesMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_RepeatedBytesMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRepeatedBytesMessage}, {}};
- static void InitDefaultsRepeatedFloatMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::qtprotobufnamespace::tests::_RepeatedFloatMessage_default_instance_;
- new (ptr) ::qtprotobufnamespace::tests::RepeatedFloatMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::qtprotobufnamespace::tests::RepeatedFloatMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_RepeatedFloatMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRepeatedFloatMessage}, {}};
- static void InitDefaultsRepeatedComplexMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::qtprotobufnamespace::tests::_RepeatedComplexMessage_default_instance_;
- new (ptr) ::qtprotobufnamespace::tests::RepeatedComplexMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::qtprotobufnamespace::tests::RepeatedComplexMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_RepeatedComplexMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRepeatedComplexMessage}, {
- &protobuf_simpletest_2eproto::scc_info_ComplexMessage.base,}};
- void InitDefaults() {
- ::google::protobuf::internal::InitSCC(&scc_info_SimpleEnumMessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_SimpleFileEnumMessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_SimpleBoolMessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_SimpleIntMessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_SimpleSIntMessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_SimpleUIntMessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_SimpleInt64Message.base);
- ::google::protobuf::internal::InitSCC(&scc_info_SimpleSInt64Message.base);
- ::google::protobuf::internal::InitSCC(&scc_info_SimpleUInt64Message.base);
- ::google::protobuf::internal::InitSCC(&scc_info_SimpleStringMessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_SimpleFloatMessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_SimpleDoubleMessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_SimpleBytesMessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_SimpleFixedInt32Message.base);
- ::google::protobuf::internal::InitSCC(&scc_info_SimpleFixedInt64Message.base);
- ::google::protobuf::internal::InitSCC(&scc_info_SimpleSFixedInt32Message.base);
- ::google::protobuf::internal::InitSCC(&scc_info_SimpleSFixedInt64Message.base);
- ::google::protobuf::internal::InitSCC(&scc_info_ComplexMessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_RepeatedIntMessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_RepeatedStringMessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_RepeatedDoubleMessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_RepeatedBytesMessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_RepeatedFloatMessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_RepeatedComplexMessage.base);
- }
- ::google::protobuf::Metadata file_level_metadata[24];
- const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[2];
- const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleEnumMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleEnumMessage, localenum_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleEnumMessage, localenumlist_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleFileEnumMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleFileEnumMessage, globalenum_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleFileEnumMessage, globalenumlist_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleBoolMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleBoolMessage, testfieldbool_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleIntMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleIntMessage, testfieldint_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleSIntMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleSIntMessage, testfieldint_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleUIntMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleUIntMessage, testfieldint_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleInt64Message, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleInt64Message, testfieldint_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleSInt64Message, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleSInt64Message, testfieldint_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleUInt64Message, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleUInt64Message, testfieldint_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleStringMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleStringMessage, testfieldstring_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleFloatMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleFloatMessage, testfieldfloat_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleDoubleMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleDoubleMessage, testfielddouble_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleBytesMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleBytesMessage, testfieldbytes_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleFixedInt32Message, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleFixedInt32Message, testfieldfixedint32_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleFixedInt64Message, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleFixedInt64Message, testfieldfixedint64_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleSFixedInt32Message, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleSFixedInt32Message, testfieldfixedint32_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleSFixedInt64Message, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleSFixedInt64Message, testfieldfixedint64_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::ComplexMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::ComplexMessage, testfieldint_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::ComplexMessage, testcomplexfield_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::RepeatedIntMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::RepeatedIntMessage, testrepeatedint_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::RepeatedStringMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::RepeatedStringMessage, testrepeatedstring_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::RepeatedDoubleMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::RepeatedDoubleMessage, testrepeateddouble_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::RepeatedBytesMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::RepeatedBytesMessage, testrepeatedbytes_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::RepeatedFloatMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::RepeatedFloatMessage, testrepeatedfloat_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::RepeatedComplexMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::RepeatedComplexMessage, testrepeatedcomplex_),
- };
- static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- { 0, -1, sizeof(::qtprotobufnamespace::tests::SimpleEnumMessage)},
- { 7, -1, sizeof(::qtprotobufnamespace::tests::SimpleFileEnumMessage)},
- { 14, -1, sizeof(::qtprotobufnamespace::tests::SimpleBoolMessage)},
- { 20, -1, sizeof(::qtprotobufnamespace::tests::SimpleIntMessage)},
- { 26, -1, sizeof(::qtprotobufnamespace::tests::SimpleSIntMessage)},
- { 32, -1, sizeof(::qtprotobufnamespace::tests::SimpleUIntMessage)},
- { 38, -1, sizeof(::qtprotobufnamespace::tests::SimpleInt64Message)},
- { 44, -1, sizeof(::qtprotobufnamespace::tests::SimpleSInt64Message)},
- { 50, -1, sizeof(::qtprotobufnamespace::tests::SimpleUInt64Message)},
- { 56, -1, sizeof(::qtprotobufnamespace::tests::SimpleStringMessage)},
- { 62, -1, sizeof(::qtprotobufnamespace::tests::SimpleFloatMessage)},
- { 68, -1, sizeof(::qtprotobufnamespace::tests::SimpleDoubleMessage)},
- { 74, -1, sizeof(::qtprotobufnamespace::tests::SimpleBytesMessage)},
- { 80, -1, sizeof(::qtprotobufnamespace::tests::SimpleFixedInt32Message)},
- { 86, -1, sizeof(::qtprotobufnamespace::tests::SimpleFixedInt64Message)},
- { 92, -1, sizeof(::qtprotobufnamespace::tests::SimpleSFixedInt32Message)},
- { 98, -1, sizeof(::qtprotobufnamespace::tests::SimpleSFixedInt64Message)},
- { 104, -1, sizeof(::qtprotobufnamespace::tests::ComplexMessage)},
- { 111, -1, sizeof(::qtprotobufnamespace::tests::RepeatedIntMessage)},
- { 117, -1, sizeof(::qtprotobufnamespace::tests::RepeatedStringMessage)},
- { 123, -1, sizeof(::qtprotobufnamespace::tests::RepeatedDoubleMessage)},
- { 129, -1, sizeof(::qtprotobufnamespace::tests::RepeatedBytesMessage)},
- { 135, -1, sizeof(::qtprotobufnamespace::tests::RepeatedFloatMessage)},
- { 141, -1, sizeof(::qtprotobufnamespace::tests::RepeatedComplexMessage)},
- };
- static ::google::protobuf::Message const * const file_default_instances[] = {
- reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleEnumMessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleFileEnumMessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleBoolMessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleIntMessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleSIntMessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleUIntMessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleInt64Message_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleSInt64Message_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleUInt64Message_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleStringMessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleFloatMessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleDoubleMessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleBytesMessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleFixedInt32Message_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleFixedInt64Message_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleSFixedInt32Message_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleSFixedInt64Message_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_ComplexMessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_RepeatedIntMessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_RepeatedStringMessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_RepeatedDoubleMessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_RepeatedBytesMessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_RepeatedFloatMessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_RepeatedComplexMessage_default_instance_),
- };
- void protobuf_AssignDescriptors() {
- AddDescriptors();
- AssignDescriptors(
- "simpletest.proto", schemas, file_default_instances, TableStruct::offsets,
- file_level_metadata, file_level_enum_descriptors, NULL);
- }
- void protobuf_AssignDescriptorsOnce() {
- static ::google::protobuf::internal::once_flag once;
- ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
- }
- void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
- void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 24);
- }
- void AddDescriptorsImpl() {
- InitDefaults();
- static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- "\n\020simpletest.proto\022\031qtprotobufnamespace."
- "tests\"\226\002\n\021SimpleEnumMessage\022I\n\tlocalEnum"
- "\030\001 \001(\01626.qtprotobufnamespace.tests.Simpl"
- "eEnumMessage.LocalEnum\022M\n\rlocalEnumList\030"
- "\002 \003(\01626.qtprotobufnamespace.tests.Simple"
- "EnumMessage.LocalEnum\"g\n\tLocalEnum\022\025\n\021LO"
- "CAL_ENUM_VALUE0\020\000\022\025\n\021LOCAL_ENUM_VALUE1\020\001"
- "\022\025\n\021LOCAL_ENUM_VALUE2\020\002\022\025\n\021LOCAL_ENUM_VA"
- "LUE3\020\003\"\215\001\n\025SimpleFileEnumMessage\0227\n\nglob"
- "alEnum\030\001 \001(\0162#.qtprotobufnamespace.tests"
- ".TestEnum\022;\n\016globalEnumList\030\002 \003(\0162#.qtpr"
- "otobufnamespace.tests.TestEnum\"*\n\021Simple"
- "BoolMessage\022\025\n\rtestFieldBool\030\001 \001(\010\"(\n\020Si"
- "mpleIntMessage\022\024\n\014testFieldInt\030\001 \001(\005\")\n\021"
- "SimpleSIntMessage\022\024\n\014testFieldInt\030\001 \001(\021\""
- ")\n\021SimpleUIntMessage\022\024\n\014testFieldInt\030\001 \001"
- "(\r\"*\n\022SimpleInt64Message\022\024\n\014testFieldInt"
- "\030\001 \001(\003\"+\n\023SimpleSInt64Message\022\024\n\014testFie"
- "ldInt\030\001 \001(\022\"+\n\023SimpleUInt64Message\022\024\n\014te"
- "stFieldInt\030\001 \001(\004\".\n\023SimpleStringMessage\022"
- "\027\n\017testFieldString\030\006 \001(\t\",\n\022SimpleFloatM"
- "essage\022\026\n\016testFieldFloat\030\007 \001(\002\".\n\023Simple"
- "DoubleMessage\022\027\n\017testFieldDouble\030\010 \001(\001\","
- "\n\022SimpleBytesMessage\022\026\n\016testFieldBytes\030\001"
- " \001(\014\"6\n\027SimpleFixedInt32Message\022\033\n\023testF"
- "ieldFixedInt32\030\001 \001(\007\"6\n\027SimpleFixedInt64"
- "Message\022\033\n\023testFieldFixedInt64\030\001 \001(\006\"7\n\030"
- "SimpleSFixedInt32Message\022\033\n\023testFieldFix"
- "edInt32\030\001 \001(\017\"7\n\030SimpleSFixedInt64Messag"
- "e\022\033\n\023testFieldFixedInt64\030\001 \001(\020\"p\n\016Comple"
- "xMessage\022\024\n\014testFieldInt\030\001 \001(\005\022H\n\020testCo"
- "mplexField\030\002 \001(\0132..qtprotobufnamespace.t"
- "ests.SimpleStringMessage\"-\n\022RepeatedIntM"
- "essage\022\027\n\017testRepeatedInt\030\001 \003(\021\"3\n\025Repea"
- "tedStringMessage\022\032\n\022testRepeatedString\030\001"
- " \003(\t\"3\n\025RepeatedDoubleMessage\022\032\n\022testRep"
- "eatedDouble\030\001 \003(\001\"1\n\024RepeatedBytesMessag"
- "e\022\031\n\021testRepeatedBytes\030\001 \003(\014\"1\n\024Repeated"
- "FloatMessage\022\031\n\021testRepeatedFloat\030\001 \003(\002\""
- "`\n\026RepeatedComplexMessage\022F\n\023testRepeate"
- "dComplex\030\001 \003(\0132).qtprotobufnamespace.tes"
- "ts.ComplexMessage*x\n\010TestEnum\022\024\n\020TEST_EN"
- "UM_VALUE0\020\000\022\024\n\020TEST_ENUM_VALUE1\020\001\022\024\n\020TES"
- "T_ENUM_VALUE2\020\002\022\024\n\020TEST_ENUM_VALUE3\020\004\022\024\n"
- "\020TEST_ENUM_VALUE4\020\003b\006proto3"
- };
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 1787);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "simpletest.proto", &protobuf_RegisterTypes);
- }
- void AddDescriptors() {
- static ::google::protobuf::internal::once_flag once;
- ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
- }
- // Force AddDescriptors() to be called at dynamic initialization time.
- struct StaticDescriptorInitializer {
- StaticDescriptorInitializer() {
- AddDescriptors();
- }
- } static_descriptor_initializer;
- } // namespace protobuf_simpletest_2eproto
- namespace qtprotobufnamespace {
- namespace tests {
- const ::google::protobuf::EnumDescriptor* SimpleEnumMessage_LocalEnum_descriptor() {
- protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_simpletest_2eproto::file_level_enum_descriptors[0];
- }
- bool SimpleEnumMessage_LocalEnum_IsValid(int value) {
- switch (value) {
- case 0:
- case 1:
- case 2:
- case 3:
- return true;
- default:
- return false;
- }
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const SimpleEnumMessage_LocalEnum SimpleEnumMessage::LOCAL_ENUM_VALUE0;
- const SimpleEnumMessage_LocalEnum SimpleEnumMessage::LOCAL_ENUM_VALUE1;
- const SimpleEnumMessage_LocalEnum SimpleEnumMessage::LOCAL_ENUM_VALUE2;
- const SimpleEnumMessage_LocalEnum SimpleEnumMessage::LOCAL_ENUM_VALUE3;
- const SimpleEnumMessage_LocalEnum SimpleEnumMessage::LocalEnum_MIN;
- const SimpleEnumMessage_LocalEnum SimpleEnumMessage::LocalEnum_MAX;
- const int SimpleEnumMessage::LocalEnum_ARRAYSIZE;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- const ::google::protobuf::EnumDescriptor* TestEnum_descriptor() {
- protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_simpletest_2eproto::file_level_enum_descriptors[1];
- }
- bool TestEnum_IsValid(int value) {
- switch (value) {
- case 0:
- case 1:
- case 2:
- case 3:
- case 4:
- return true;
- default:
- return false;
- }
- }
- // ===================================================================
- void SimpleEnumMessage::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int SimpleEnumMessage::kLocalEnumFieldNumber;
- const int SimpleEnumMessage::kLocalEnumListFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- SimpleEnumMessage::SimpleEnumMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_simpletest_2eproto::scc_info_SimpleEnumMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleEnumMessage)
- }
- SimpleEnumMessage::SimpleEnumMessage(const SimpleEnumMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- localenumlist_(from.localenumlist_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- localenum_ = from.localenum_;
- // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleEnumMessage)
- }
- void SimpleEnumMessage::SharedCtor() {
- localenum_ = 0;
- }
- SimpleEnumMessage::~SimpleEnumMessage() {
- // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleEnumMessage)
- SharedDtor();
- }
- void SimpleEnumMessage::SharedDtor() {
- }
- void SimpleEnumMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* SimpleEnumMessage::descriptor() {
- ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const SimpleEnumMessage& SimpleEnumMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleEnumMessage.base);
- return *internal_default_instance();
- }
- void SimpleEnumMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleEnumMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- localenumlist_.Clear();
- localenum_ = 0;
- _internal_metadata_.Clear();
- }
- bool SimpleEnumMessage::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:qtprotobufnamespace.tests.SimpleEnumMessage)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // .qtprotobufnamespace.tests.SimpleEnumMessage.LocalEnum localEnum = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- int value;
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
- input, &value)));
- set_localenum(static_cast< ::qtprotobufnamespace::tests::SimpleEnumMessage_LocalEnum >(value));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // repeated .qtprotobufnamespace.tests.SimpleEnumMessage.LocalEnum localEnumList = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- ::google::protobuf::uint32 length;
- DO_(input->ReadVarint32(&length));
- ::google::protobuf::io::CodedInputStream::Limit limit = input->PushLimit(static_cast<int>(length));
- while (input->BytesUntilLimit() > 0) {
- int value;
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
- input, &value)));
- add_localenumlist(static_cast< ::qtprotobufnamespace::tests::SimpleEnumMessage_LocalEnum >(value));
- }
- input->PopLimit(limit);
- } else if (
- static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
- int value;
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
- input, &value)));
- add_localenumlist(static_cast< ::qtprotobufnamespace::tests::SimpleEnumMessage_LocalEnum >(value));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleEnumMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleEnumMessage)
- return false;
- #undef DO_
- }
- void SimpleEnumMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleEnumMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .qtprotobufnamespace.tests.SimpleEnumMessage.LocalEnum localEnum = 1;
- if (this->localenum() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteEnum(
- 1, this->localenum(), output);
- }
- // repeated .qtprotobufnamespace.tests.SimpleEnumMessage.LocalEnum localEnumList = 2;
- if (this->localenumlist_size() > 0) {
- ::google::protobuf::internal::WireFormatLite::WriteTag(
- 2,
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
- output);
- output->WriteVarint32(
- static_cast< ::google::protobuf::uint32>(_localenumlist_cached_byte_size_));
- }
- for (int i = 0, n = this->localenumlist_size(); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteEnumNoTag(
- this->localenumlist(i), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleEnumMessage)
- }
- ::google::protobuf::uint8* SimpleEnumMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleEnumMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .qtprotobufnamespace.tests.SimpleEnumMessage.LocalEnum localEnum = 1;
- if (this->localenum() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 1, this->localenum(), target);
- }
- // repeated .qtprotobufnamespace.tests.SimpleEnumMessage.LocalEnum localEnumList = 2;
- if (this->localenumlist_size() > 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
- 2,
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
- target);
- target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::uint32>(
- _localenumlist_cached_byte_size_), target);
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumNoTagToArray(
- this->localenumlist_, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleEnumMessage)
- return target;
- }
- size_t SimpleEnumMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleEnumMessage)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // repeated .qtprotobufnamespace.tests.SimpleEnumMessage.LocalEnum localEnumList = 2;
- {
- size_t data_size = 0;
- unsigned int count = static_cast<unsigned int>(this->localenumlist_size());for (unsigned int i = 0; i < count; i++) {
- data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
- this->localenumlist(static_cast<int>(i)));
- }
- if (data_size > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- static_cast< ::google::protobuf::int32>(data_size));
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _localenumlist_cached_byte_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- total_size += data_size;
- }
- // .qtprotobufnamespace.tests.SimpleEnumMessage.LocalEnum localEnum = 1;
- if (this->localenum() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->localenum());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void SimpleEnumMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleEnumMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const SimpleEnumMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const SimpleEnumMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleEnumMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleEnumMessage)
- MergeFrom(*source);
- }
- }
- void SimpleEnumMessage::MergeFrom(const SimpleEnumMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleEnumMessage)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- localenumlist_.MergeFrom(from.localenumlist_);
- if (from.localenum() != 0) {
- set_localenum(from.localenum());
- }
- }
- void SimpleEnumMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleEnumMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void SimpleEnumMessage::CopyFrom(const SimpleEnumMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleEnumMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SimpleEnumMessage::IsInitialized() const {
- return true;
- }
- void SimpleEnumMessage::Swap(SimpleEnumMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void SimpleEnumMessage::InternalSwap(SimpleEnumMessage* other) {
- using std::swap;
- localenumlist_.InternalSwap(&other->localenumlist_);
- swap(localenum_, other->localenum_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata SimpleEnumMessage::GetMetadata() const {
- protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void SimpleFileEnumMessage::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int SimpleFileEnumMessage::kGlobalEnumFieldNumber;
- const int SimpleFileEnumMessage::kGlobalEnumListFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- SimpleFileEnumMessage::SimpleFileEnumMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_simpletest_2eproto::scc_info_SimpleFileEnumMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleFileEnumMessage)
- }
- SimpleFileEnumMessage::SimpleFileEnumMessage(const SimpleFileEnumMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- globalenumlist_(from.globalenumlist_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- globalenum_ = from.globalenum_;
- // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleFileEnumMessage)
- }
- void SimpleFileEnumMessage::SharedCtor() {
- globalenum_ = 0;
- }
- SimpleFileEnumMessage::~SimpleFileEnumMessage() {
- // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleFileEnumMessage)
- SharedDtor();
- }
- void SimpleFileEnumMessage::SharedDtor() {
- }
- void SimpleFileEnumMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* SimpleFileEnumMessage::descriptor() {
- ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const SimpleFileEnumMessage& SimpleFileEnumMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleFileEnumMessage.base);
- return *internal_default_instance();
- }
- void SimpleFileEnumMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleFileEnumMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- globalenumlist_.Clear();
- globalenum_ = 0;
- _internal_metadata_.Clear();
- }
- bool SimpleFileEnumMessage::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:qtprotobufnamespace.tests.SimpleFileEnumMessage)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // .qtprotobufnamespace.tests.TestEnum globalEnum = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- int value;
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
- input, &value)));
- set_globalenum(static_cast< ::qtprotobufnamespace::tests::TestEnum >(value));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // repeated .qtprotobufnamespace.tests.TestEnum globalEnumList = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- ::google::protobuf::uint32 length;
- DO_(input->ReadVarint32(&length));
- ::google::protobuf::io::CodedInputStream::Limit limit = input->PushLimit(static_cast<int>(length));
- while (input->BytesUntilLimit() > 0) {
- int value;
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
- input, &value)));
- add_globalenumlist(static_cast< ::qtprotobufnamespace::tests::TestEnum >(value));
- }
- input->PopLimit(limit);
- } else if (
- static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
- int value;
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
- input, &value)));
- add_globalenumlist(static_cast< ::qtprotobufnamespace::tests::TestEnum >(value));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleFileEnumMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleFileEnumMessage)
- return false;
- #undef DO_
- }
- void SimpleFileEnumMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleFileEnumMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .qtprotobufnamespace.tests.TestEnum globalEnum = 1;
- if (this->globalenum() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteEnum(
- 1, this->globalenum(), output);
- }
- // repeated .qtprotobufnamespace.tests.TestEnum globalEnumList = 2;
- if (this->globalenumlist_size() > 0) {
- ::google::protobuf::internal::WireFormatLite::WriteTag(
- 2,
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
- output);
- output->WriteVarint32(
- static_cast< ::google::protobuf::uint32>(_globalenumlist_cached_byte_size_));
- }
- for (int i = 0, n = this->globalenumlist_size(); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteEnumNoTag(
- this->globalenumlist(i), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleFileEnumMessage)
- }
- ::google::protobuf::uint8* SimpleFileEnumMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleFileEnumMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .qtprotobufnamespace.tests.TestEnum globalEnum = 1;
- if (this->globalenum() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 1, this->globalenum(), target);
- }
- // repeated .qtprotobufnamespace.tests.TestEnum globalEnumList = 2;
- if (this->globalenumlist_size() > 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
- 2,
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
- target);
- target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::uint32>(
- _globalenumlist_cached_byte_size_), target);
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumNoTagToArray(
- this->globalenumlist_, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleFileEnumMessage)
- return target;
- }
- size_t SimpleFileEnumMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleFileEnumMessage)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // repeated .qtprotobufnamespace.tests.TestEnum globalEnumList = 2;
- {
- size_t data_size = 0;
- unsigned int count = static_cast<unsigned int>(this->globalenumlist_size());for (unsigned int i = 0; i < count; i++) {
- data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
- this->globalenumlist(static_cast<int>(i)));
- }
- if (data_size > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- static_cast< ::google::protobuf::int32>(data_size));
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _globalenumlist_cached_byte_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- total_size += data_size;
- }
- // .qtprotobufnamespace.tests.TestEnum globalEnum = 1;
- if (this->globalenum() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->globalenum());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void SimpleFileEnumMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleFileEnumMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const SimpleFileEnumMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const SimpleFileEnumMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleFileEnumMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleFileEnumMessage)
- MergeFrom(*source);
- }
- }
- void SimpleFileEnumMessage::MergeFrom(const SimpleFileEnumMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleFileEnumMessage)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- globalenumlist_.MergeFrom(from.globalenumlist_);
- if (from.globalenum() != 0) {
- set_globalenum(from.globalenum());
- }
- }
- void SimpleFileEnumMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleFileEnumMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void SimpleFileEnumMessage::CopyFrom(const SimpleFileEnumMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleFileEnumMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SimpleFileEnumMessage::IsInitialized() const {
- return true;
- }
- void SimpleFileEnumMessage::Swap(SimpleFileEnumMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void SimpleFileEnumMessage::InternalSwap(SimpleFileEnumMessage* other) {
- using std::swap;
- globalenumlist_.InternalSwap(&other->globalenumlist_);
- swap(globalenum_, other->globalenum_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata SimpleFileEnumMessage::GetMetadata() const {
- protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void SimpleBoolMessage::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int SimpleBoolMessage::kTestFieldBoolFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- SimpleBoolMessage::SimpleBoolMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_simpletest_2eproto::scc_info_SimpleBoolMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleBoolMessage)
- }
- SimpleBoolMessage::SimpleBoolMessage(const SimpleBoolMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- testfieldbool_ = from.testfieldbool_;
- // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleBoolMessage)
- }
- void SimpleBoolMessage::SharedCtor() {
- testfieldbool_ = false;
- }
- SimpleBoolMessage::~SimpleBoolMessage() {
- // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleBoolMessage)
- SharedDtor();
- }
- void SimpleBoolMessage::SharedDtor() {
- }
- void SimpleBoolMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* SimpleBoolMessage::descriptor() {
- ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const SimpleBoolMessage& SimpleBoolMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleBoolMessage.base);
- return *internal_default_instance();
- }
- void SimpleBoolMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleBoolMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- testfieldbool_ = false;
- _internal_metadata_.Clear();
- }
- bool SimpleBoolMessage::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:qtprotobufnamespace.tests.SimpleBoolMessage)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // bool testFieldBool = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
- input, &testfieldbool_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleBoolMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleBoolMessage)
- return false;
- #undef DO_
- }
- void SimpleBoolMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleBoolMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // bool testFieldBool = 1;
- if (this->testfieldbool() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->testfieldbool(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleBoolMessage)
- }
- ::google::protobuf::uint8* SimpleBoolMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleBoolMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // bool testFieldBool = 1;
- if (this->testfieldbool() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->testfieldbool(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleBoolMessage)
- return target;
- }
- size_t SimpleBoolMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleBoolMessage)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // bool testFieldBool = 1;
- if (this->testfieldbool() != 0) {
- total_size += 1 + 1;
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void SimpleBoolMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleBoolMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const SimpleBoolMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const SimpleBoolMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleBoolMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleBoolMessage)
- MergeFrom(*source);
- }
- }
- void SimpleBoolMessage::MergeFrom(const SimpleBoolMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleBoolMessage)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.testfieldbool() != 0) {
- set_testfieldbool(from.testfieldbool());
- }
- }
- void SimpleBoolMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleBoolMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void SimpleBoolMessage::CopyFrom(const SimpleBoolMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleBoolMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SimpleBoolMessage::IsInitialized() const {
- return true;
- }
- void SimpleBoolMessage::Swap(SimpleBoolMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void SimpleBoolMessage::InternalSwap(SimpleBoolMessage* other) {
- using std::swap;
- swap(testfieldbool_, other->testfieldbool_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata SimpleBoolMessage::GetMetadata() const {
- protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void SimpleIntMessage::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int SimpleIntMessage::kTestFieldIntFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- SimpleIntMessage::SimpleIntMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_simpletest_2eproto::scc_info_SimpleIntMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleIntMessage)
- }
- SimpleIntMessage::SimpleIntMessage(const SimpleIntMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- testfieldint_ = from.testfieldint_;
- // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleIntMessage)
- }
- void SimpleIntMessage::SharedCtor() {
- testfieldint_ = 0;
- }
- SimpleIntMessage::~SimpleIntMessage() {
- // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleIntMessage)
- SharedDtor();
- }
- void SimpleIntMessage::SharedDtor() {
- }
- void SimpleIntMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* SimpleIntMessage::descriptor() {
- ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const SimpleIntMessage& SimpleIntMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleIntMessage.base);
- return *internal_default_instance();
- }
- void SimpleIntMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleIntMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- testfieldint_ = 0;
- _internal_metadata_.Clear();
- }
- bool SimpleIntMessage::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:qtprotobufnamespace.tests.SimpleIntMessage)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // int32 testFieldInt = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &testfieldint_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleIntMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleIntMessage)
- return false;
- #undef DO_
- }
- void SimpleIntMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleIntMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 testFieldInt = 1;
- if (this->testfieldint() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->testfieldint(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleIntMessage)
- }
- ::google::protobuf::uint8* SimpleIntMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleIntMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 testFieldInt = 1;
- if (this->testfieldint() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->testfieldint(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleIntMessage)
- return target;
- }
- size_t SimpleIntMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleIntMessage)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // int32 testFieldInt = 1;
- if (this->testfieldint() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->testfieldint());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void SimpleIntMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleIntMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const SimpleIntMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const SimpleIntMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleIntMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleIntMessage)
- MergeFrom(*source);
- }
- }
- void SimpleIntMessage::MergeFrom(const SimpleIntMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleIntMessage)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.testfieldint() != 0) {
- set_testfieldint(from.testfieldint());
- }
- }
- void SimpleIntMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleIntMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void SimpleIntMessage::CopyFrom(const SimpleIntMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleIntMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SimpleIntMessage::IsInitialized() const {
- return true;
- }
- void SimpleIntMessage::Swap(SimpleIntMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void SimpleIntMessage::InternalSwap(SimpleIntMessage* other) {
- using std::swap;
- swap(testfieldint_, other->testfieldint_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata SimpleIntMessage::GetMetadata() const {
- protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void SimpleSIntMessage::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int SimpleSIntMessage::kTestFieldIntFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- SimpleSIntMessage::SimpleSIntMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_simpletest_2eproto::scc_info_SimpleSIntMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleSIntMessage)
- }
- SimpleSIntMessage::SimpleSIntMessage(const SimpleSIntMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- testfieldint_ = from.testfieldint_;
- // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleSIntMessage)
- }
- void SimpleSIntMessage::SharedCtor() {
- testfieldint_ = 0;
- }
- SimpleSIntMessage::~SimpleSIntMessage() {
- // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleSIntMessage)
- SharedDtor();
- }
- void SimpleSIntMessage::SharedDtor() {
- }
- void SimpleSIntMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* SimpleSIntMessage::descriptor() {
- ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const SimpleSIntMessage& SimpleSIntMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleSIntMessage.base);
- return *internal_default_instance();
- }
- void SimpleSIntMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleSIntMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- testfieldint_ = 0;
- _internal_metadata_.Clear();
- }
- bool SimpleSIntMessage::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:qtprotobufnamespace.tests.SimpleSIntMessage)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // sint32 testFieldInt = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
- input, &testfieldint_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleSIntMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleSIntMessage)
- return false;
- #undef DO_
- }
- void SimpleSIntMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleSIntMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // sint32 testFieldInt = 1;
- if (this->testfieldint() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteSInt32(1, this->testfieldint(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleSIntMessage)
- }
- ::google::protobuf::uint8* SimpleSIntMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleSIntMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // sint32 testFieldInt = 1;
- if (this->testfieldint() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteSInt32ToArray(1, this->testfieldint(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleSIntMessage)
- return target;
- }
- size_t SimpleSIntMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleSIntMessage)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // sint32 testFieldInt = 1;
- if (this->testfieldint() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::SInt32Size(
- this->testfieldint());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void SimpleSIntMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleSIntMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const SimpleSIntMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const SimpleSIntMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleSIntMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleSIntMessage)
- MergeFrom(*source);
- }
- }
- void SimpleSIntMessage::MergeFrom(const SimpleSIntMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleSIntMessage)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.testfieldint() != 0) {
- set_testfieldint(from.testfieldint());
- }
- }
- void SimpleSIntMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleSIntMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void SimpleSIntMessage::CopyFrom(const SimpleSIntMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleSIntMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SimpleSIntMessage::IsInitialized() const {
- return true;
- }
- void SimpleSIntMessage::Swap(SimpleSIntMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void SimpleSIntMessage::InternalSwap(SimpleSIntMessage* other) {
- using std::swap;
- swap(testfieldint_, other->testfieldint_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata SimpleSIntMessage::GetMetadata() const {
- protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void SimpleUIntMessage::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int SimpleUIntMessage::kTestFieldIntFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- SimpleUIntMessage::SimpleUIntMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_simpletest_2eproto::scc_info_SimpleUIntMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleUIntMessage)
- }
- SimpleUIntMessage::SimpleUIntMessage(const SimpleUIntMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- testfieldint_ = from.testfieldint_;
- // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleUIntMessage)
- }
- void SimpleUIntMessage::SharedCtor() {
- testfieldint_ = 0u;
- }
- SimpleUIntMessage::~SimpleUIntMessage() {
- // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleUIntMessage)
- SharedDtor();
- }
- void SimpleUIntMessage::SharedDtor() {
- }
- void SimpleUIntMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* SimpleUIntMessage::descriptor() {
- ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const SimpleUIntMessage& SimpleUIntMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleUIntMessage.base);
- return *internal_default_instance();
- }
- void SimpleUIntMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleUIntMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- testfieldint_ = 0u;
- _internal_metadata_.Clear();
- }
- bool SimpleUIntMessage::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:qtprotobufnamespace.tests.SimpleUIntMessage)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // uint32 testFieldInt = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
- input, &testfieldint_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleUIntMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleUIntMessage)
- return false;
- #undef DO_
- }
- void SimpleUIntMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleUIntMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // uint32 testFieldInt = 1;
- if (this->testfieldint() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->testfieldint(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleUIntMessage)
- }
- ::google::protobuf::uint8* SimpleUIntMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleUIntMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // uint32 testFieldInt = 1;
- if (this->testfieldint() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->testfieldint(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleUIntMessage)
- return target;
- }
- size_t SimpleUIntMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleUIntMessage)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // uint32 testFieldInt = 1;
- if (this->testfieldint() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::UInt32Size(
- this->testfieldint());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void SimpleUIntMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleUIntMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const SimpleUIntMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const SimpleUIntMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleUIntMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleUIntMessage)
- MergeFrom(*source);
- }
- }
- void SimpleUIntMessage::MergeFrom(const SimpleUIntMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleUIntMessage)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.testfieldint() != 0) {
- set_testfieldint(from.testfieldint());
- }
- }
- void SimpleUIntMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleUIntMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void SimpleUIntMessage::CopyFrom(const SimpleUIntMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleUIntMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SimpleUIntMessage::IsInitialized() const {
- return true;
- }
- void SimpleUIntMessage::Swap(SimpleUIntMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void SimpleUIntMessage::InternalSwap(SimpleUIntMessage* other) {
- using std::swap;
- swap(testfieldint_, other->testfieldint_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata SimpleUIntMessage::GetMetadata() const {
- protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void SimpleInt64Message::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int SimpleInt64Message::kTestFieldIntFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- SimpleInt64Message::SimpleInt64Message()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_simpletest_2eproto::scc_info_SimpleInt64Message.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleInt64Message)
- }
- SimpleInt64Message::SimpleInt64Message(const SimpleInt64Message& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- testfieldint_ = from.testfieldint_;
- // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleInt64Message)
- }
- void SimpleInt64Message::SharedCtor() {
- testfieldint_ = GOOGLE_LONGLONG(0);
- }
- SimpleInt64Message::~SimpleInt64Message() {
- // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleInt64Message)
- SharedDtor();
- }
- void SimpleInt64Message::SharedDtor() {
- }
- void SimpleInt64Message::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* SimpleInt64Message::descriptor() {
- ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const SimpleInt64Message& SimpleInt64Message::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleInt64Message.base);
- return *internal_default_instance();
- }
- void SimpleInt64Message::Clear() {
- // @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleInt64Message)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- testfieldint_ = GOOGLE_LONGLONG(0);
- _internal_metadata_.Clear();
- }
- bool SimpleInt64Message::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:qtprotobufnamespace.tests.SimpleInt64Message)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // int64 testFieldInt = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
- input, &testfieldint_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleInt64Message)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleInt64Message)
- return false;
- #undef DO_
- }
- void SimpleInt64Message::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleInt64Message)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // int64 testFieldInt = 1;
- if (this->testfieldint() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->testfieldint(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleInt64Message)
- }
- ::google::protobuf::uint8* SimpleInt64Message::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleInt64Message)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // int64 testFieldInt = 1;
- if (this->testfieldint() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->testfieldint(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleInt64Message)
- return target;
- }
- size_t SimpleInt64Message::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleInt64Message)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // int64 testFieldInt = 1;
- if (this->testfieldint() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->testfieldint());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void SimpleInt64Message::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleInt64Message)
- GOOGLE_DCHECK_NE(&from, this);
- const SimpleInt64Message* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const SimpleInt64Message>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleInt64Message)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleInt64Message)
- MergeFrom(*source);
- }
- }
- void SimpleInt64Message::MergeFrom(const SimpleInt64Message& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleInt64Message)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.testfieldint() != 0) {
- set_testfieldint(from.testfieldint());
- }
- }
- void SimpleInt64Message::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleInt64Message)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void SimpleInt64Message::CopyFrom(const SimpleInt64Message& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleInt64Message)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SimpleInt64Message::IsInitialized() const {
- return true;
- }
- void SimpleInt64Message::Swap(SimpleInt64Message* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void SimpleInt64Message::InternalSwap(SimpleInt64Message* other) {
- using std::swap;
- swap(testfieldint_, other->testfieldint_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata SimpleInt64Message::GetMetadata() const {
- protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void SimpleSInt64Message::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int SimpleSInt64Message::kTestFieldIntFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- SimpleSInt64Message::SimpleSInt64Message()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_simpletest_2eproto::scc_info_SimpleSInt64Message.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleSInt64Message)
- }
- SimpleSInt64Message::SimpleSInt64Message(const SimpleSInt64Message& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- testfieldint_ = from.testfieldint_;
- // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleSInt64Message)
- }
- void SimpleSInt64Message::SharedCtor() {
- testfieldint_ = GOOGLE_LONGLONG(0);
- }
- SimpleSInt64Message::~SimpleSInt64Message() {
- // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleSInt64Message)
- SharedDtor();
- }
- void SimpleSInt64Message::SharedDtor() {
- }
- void SimpleSInt64Message::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* SimpleSInt64Message::descriptor() {
- ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const SimpleSInt64Message& SimpleSInt64Message::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleSInt64Message.base);
- return *internal_default_instance();
- }
- void SimpleSInt64Message::Clear() {
- // @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleSInt64Message)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- testfieldint_ = GOOGLE_LONGLONG(0);
- _internal_metadata_.Clear();
- }
- bool SimpleSInt64Message::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:qtprotobufnamespace.tests.SimpleSInt64Message)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // sint64 testFieldInt = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
- input, &testfieldint_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleSInt64Message)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleSInt64Message)
- return false;
- #undef DO_
- }
- void SimpleSInt64Message::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleSInt64Message)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // sint64 testFieldInt = 1;
- if (this->testfieldint() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteSInt64(1, this->testfieldint(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleSInt64Message)
- }
- ::google::protobuf::uint8* SimpleSInt64Message::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleSInt64Message)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // sint64 testFieldInt = 1;
- if (this->testfieldint() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(1, this->testfieldint(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleSInt64Message)
- return target;
- }
- size_t SimpleSInt64Message::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleSInt64Message)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // sint64 testFieldInt = 1;
- if (this->testfieldint() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::SInt64Size(
- this->testfieldint());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void SimpleSInt64Message::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleSInt64Message)
- GOOGLE_DCHECK_NE(&from, this);
- const SimpleSInt64Message* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const SimpleSInt64Message>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleSInt64Message)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleSInt64Message)
- MergeFrom(*source);
- }
- }
- void SimpleSInt64Message::MergeFrom(const SimpleSInt64Message& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleSInt64Message)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.testfieldint() != 0) {
- set_testfieldint(from.testfieldint());
- }
- }
- void SimpleSInt64Message::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleSInt64Message)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void SimpleSInt64Message::CopyFrom(const SimpleSInt64Message& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleSInt64Message)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SimpleSInt64Message::IsInitialized() const {
- return true;
- }
- void SimpleSInt64Message::Swap(SimpleSInt64Message* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void SimpleSInt64Message::InternalSwap(SimpleSInt64Message* other) {
- using std::swap;
- swap(testfieldint_, other->testfieldint_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata SimpleSInt64Message::GetMetadata() const {
- protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void SimpleUInt64Message::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int SimpleUInt64Message::kTestFieldIntFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- SimpleUInt64Message::SimpleUInt64Message()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_simpletest_2eproto::scc_info_SimpleUInt64Message.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleUInt64Message)
- }
- SimpleUInt64Message::SimpleUInt64Message(const SimpleUInt64Message& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- testfieldint_ = from.testfieldint_;
- // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleUInt64Message)
- }
- void SimpleUInt64Message::SharedCtor() {
- testfieldint_ = GOOGLE_ULONGLONG(0);
- }
- SimpleUInt64Message::~SimpleUInt64Message() {
- // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleUInt64Message)
- SharedDtor();
- }
- void SimpleUInt64Message::SharedDtor() {
- }
- void SimpleUInt64Message::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* SimpleUInt64Message::descriptor() {
- ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const SimpleUInt64Message& SimpleUInt64Message::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleUInt64Message.base);
- return *internal_default_instance();
- }
- void SimpleUInt64Message::Clear() {
- // @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleUInt64Message)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- testfieldint_ = GOOGLE_ULONGLONG(0);
- _internal_metadata_.Clear();
- }
- bool SimpleUInt64Message::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:qtprotobufnamespace.tests.SimpleUInt64Message)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // uint64 testFieldInt = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
- input, &testfieldint_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleUInt64Message)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleUInt64Message)
- return false;
- #undef DO_
- }
- void SimpleUInt64Message::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleUInt64Message)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // uint64 testFieldInt = 1;
- if (this->testfieldint() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->testfieldint(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleUInt64Message)
- }
- ::google::protobuf::uint8* SimpleUInt64Message::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleUInt64Message)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // uint64 testFieldInt = 1;
- if (this->testfieldint() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->testfieldint(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleUInt64Message)
- return target;
- }
- size_t SimpleUInt64Message::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleUInt64Message)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // uint64 testFieldInt = 1;
- if (this->testfieldint() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::UInt64Size(
- this->testfieldint());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void SimpleUInt64Message::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleUInt64Message)
- GOOGLE_DCHECK_NE(&from, this);
- const SimpleUInt64Message* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const SimpleUInt64Message>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleUInt64Message)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleUInt64Message)
- MergeFrom(*source);
- }
- }
- void SimpleUInt64Message::MergeFrom(const SimpleUInt64Message& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleUInt64Message)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.testfieldint() != 0) {
- set_testfieldint(from.testfieldint());
- }
- }
- void SimpleUInt64Message::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleUInt64Message)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void SimpleUInt64Message::CopyFrom(const SimpleUInt64Message& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleUInt64Message)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SimpleUInt64Message::IsInitialized() const {
- return true;
- }
- void SimpleUInt64Message::Swap(SimpleUInt64Message* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void SimpleUInt64Message::InternalSwap(SimpleUInt64Message* other) {
- using std::swap;
- swap(testfieldint_, other->testfieldint_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata SimpleUInt64Message::GetMetadata() const {
- protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void SimpleStringMessage::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int SimpleStringMessage::kTestFieldStringFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- SimpleStringMessage::SimpleStringMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_simpletest_2eproto::scc_info_SimpleStringMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleStringMessage)
- }
- SimpleStringMessage::SimpleStringMessage(const SimpleStringMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- testfieldstring_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.testfieldstring().size() > 0) {
- testfieldstring_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.testfieldstring_);
- }
- // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleStringMessage)
- }
- void SimpleStringMessage::SharedCtor() {
- testfieldstring_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- SimpleStringMessage::~SimpleStringMessage() {
- // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleStringMessage)
- SharedDtor();
- }
- void SimpleStringMessage::SharedDtor() {
- testfieldstring_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- void SimpleStringMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* SimpleStringMessage::descriptor() {
- ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const SimpleStringMessage& SimpleStringMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleStringMessage.base);
- return *internal_default_instance();
- }
- void SimpleStringMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleStringMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- testfieldstring_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- _internal_metadata_.Clear();
- }
- bool SimpleStringMessage::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:qtprotobufnamespace.tests.SimpleStringMessage)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // string testFieldString = 6;
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_testfieldstring()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->testfieldstring().data(), static_cast<int>(this->testfieldstring().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "qtprotobufnamespace.tests.SimpleStringMessage.testFieldString"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleStringMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleStringMessage)
- return false;
- #undef DO_
- }
- void SimpleStringMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleStringMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // string testFieldString = 6;
- if (this->testfieldstring().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->testfieldstring().data(), static_cast<int>(this->testfieldstring().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "qtprotobufnamespace.tests.SimpleStringMessage.testFieldString");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 6, this->testfieldstring(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleStringMessage)
- }
- ::google::protobuf::uint8* SimpleStringMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleStringMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // string testFieldString = 6;
- if (this->testfieldstring().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->testfieldstring().data(), static_cast<int>(this->testfieldstring().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "qtprotobufnamespace.tests.SimpleStringMessage.testFieldString");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 6, this->testfieldstring(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleStringMessage)
- return target;
- }
- size_t SimpleStringMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleStringMessage)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // string testFieldString = 6;
- if (this->testfieldstring().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->testfieldstring());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void SimpleStringMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleStringMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const SimpleStringMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const SimpleStringMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleStringMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleStringMessage)
- MergeFrom(*source);
- }
- }
- void SimpleStringMessage::MergeFrom(const SimpleStringMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleStringMessage)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.testfieldstring().size() > 0) {
- testfieldstring_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.testfieldstring_);
- }
- }
- void SimpleStringMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleStringMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void SimpleStringMessage::CopyFrom(const SimpleStringMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleStringMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SimpleStringMessage::IsInitialized() const {
- return true;
- }
- void SimpleStringMessage::Swap(SimpleStringMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void SimpleStringMessage::InternalSwap(SimpleStringMessage* other) {
- using std::swap;
- testfieldstring_.Swap(&other->testfieldstring_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata SimpleStringMessage::GetMetadata() const {
- protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void SimpleFloatMessage::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int SimpleFloatMessage::kTestFieldFloatFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- SimpleFloatMessage::SimpleFloatMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_simpletest_2eproto::scc_info_SimpleFloatMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleFloatMessage)
- }
- SimpleFloatMessage::SimpleFloatMessage(const SimpleFloatMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- testfieldfloat_ = from.testfieldfloat_;
- // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleFloatMessage)
- }
- void SimpleFloatMessage::SharedCtor() {
- testfieldfloat_ = 0;
- }
- SimpleFloatMessage::~SimpleFloatMessage() {
- // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleFloatMessage)
- SharedDtor();
- }
- void SimpleFloatMessage::SharedDtor() {
- }
- void SimpleFloatMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* SimpleFloatMessage::descriptor() {
- ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const SimpleFloatMessage& SimpleFloatMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleFloatMessage.base);
- return *internal_default_instance();
- }
- void SimpleFloatMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleFloatMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- testfieldfloat_ = 0;
- _internal_metadata_.Clear();
- }
- bool SimpleFloatMessage::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:qtprotobufnamespace.tests.SimpleFloatMessage)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // float testFieldFloat = 7;
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &testfieldfloat_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleFloatMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleFloatMessage)
- return false;
- #undef DO_
- }
- void SimpleFloatMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleFloatMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // float testFieldFloat = 7;
- if (this->testfieldfloat() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->testfieldfloat(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleFloatMessage)
- }
- ::google::protobuf::uint8* SimpleFloatMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleFloatMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // float testFieldFloat = 7;
- if (this->testfieldfloat() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->testfieldfloat(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleFloatMessage)
- return target;
- }
- size_t SimpleFloatMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleFloatMessage)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // float testFieldFloat = 7;
- if (this->testfieldfloat() != 0) {
- total_size += 1 + 4;
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void SimpleFloatMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleFloatMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const SimpleFloatMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const SimpleFloatMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleFloatMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleFloatMessage)
- MergeFrom(*source);
- }
- }
- void SimpleFloatMessage::MergeFrom(const SimpleFloatMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleFloatMessage)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.testfieldfloat() != 0) {
- set_testfieldfloat(from.testfieldfloat());
- }
- }
- void SimpleFloatMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleFloatMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void SimpleFloatMessage::CopyFrom(const SimpleFloatMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleFloatMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SimpleFloatMessage::IsInitialized() const {
- return true;
- }
- void SimpleFloatMessage::Swap(SimpleFloatMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void SimpleFloatMessage::InternalSwap(SimpleFloatMessage* other) {
- using std::swap;
- swap(testfieldfloat_, other->testfieldfloat_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata SimpleFloatMessage::GetMetadata() const {
- protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void SimpleDoubleMessage::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int SimpleDoubleMessage::kTestFieldDoubleFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- SimpleDoubleMessage::SimpleDoubleMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_simpletest_2eproto::scc_info_SimpleDoubleMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleDoubleMessage)
- }
- SimpleDoubleMessage::SimpleDoubleMessage(const SimpleDoubleMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- testfielddouble_ = from.testfielddouble_;
- // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleDoubleMessage)
- }
- void SimpleDoubleMessage::SharedCtor() {
- testfielddouble_ = 0;
- }
- SimpleDoubleMessage::~SimpleDoubleMessage() {
- // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleDoubleMessage)
- SharedDtor();
- }
- void SimpleDoubleMessage::SharedDtor() {
- }
- void SimpleDoubleMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* SimpleDoubleMessage::descriptor() {
- ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const SimpleDoubleMessage& SimpleDoubleMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleDoubleMessage.base);
- return *internal_default_instance();
- }
- void SimpleDoubleMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleDoubleMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- testfielddouble_ = 0;
- _internal_metadata_.Clear();
- }
- bool SimpleDoubleMessage::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:qtprotobufnamespace.tests.SimpleDoubleMessage)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // double testFieldDouble = 8;
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(65u /* 65 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &testfielddouble_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleDoubleMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleDoubleMessage)
- return false;
- #undef DO_
- }
- void SimpleDoubleMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleDoubleMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // double testFieldDouble = 8;
- if (this->testfielddouble() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(8, this->testfielddouble(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleDoubleMessage)
- }
- ::google::protobuf::uint8* SimpleDoubleMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleDoubleMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // double testFieldDouble = 8;
- if (this->testfielddouble() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(8, this->testfielddouble(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleDoubleMessage)
- return target;
- }
- size_t SimpleDoubleMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleDoubleMessage)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // double testFieldDouble = 8;
- if (this->testfielddouble() != 0) {
- total_size += 1 + 8;
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void SimpleDoubleMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleDoubleMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const SimpleDoubleMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const SimpleDoubleMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleDoubleMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleDoubleMessage)
- MergeFrom(*source);
- }
- }
- void SimpleDoubleMessage::MergeFrom(const SimpleDoubleMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleDoubleMessage)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.testfielddouble() != 0) {
- set_testfielddouble(from.testfielddouble());
- }
- }
- void SimpleDoubleMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleDoubleMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void SimpleDoubleMessage::CopyFrom(const SimpleDoubleMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleDoubleMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SimpleDoubleMessage::IsInitialized() const {
- return true;
- }
- void SimpleDoubleMessage::Swap(SimpleDoubleMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void SimpleDoubleMessage::InternalSwap(SimpleDoubleMessage* other) {
- using std::swap;
- swap(testfielddouble_, other->testfielddouble_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata SimpleDoubleMessage::GetMetadata() const {
- protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void SimpleBytesMessage::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int SimpleBytesMessage::kTestFieldBytesFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- SimpleBytesMessage::SimpleBytesMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_simpletest_2eproto::scc_info_SimpleBytesMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleBytesMessage)
- }
- SimpleBytesMessage::SimpleBytesMessage(const SimpleBytesMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- testfieldbytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.testfieldbytes().size() > 0) {
- testfieldbytes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.testfieldbytes_);
- }
- // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleBytesMessage)
- }
- void SimpleBytesMessage::SharedCtor() {
- testfieldbytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- SimpleBytesMessage::~SimpleBytesMessage() {
- // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleBytesMessage)
- SharedDtor();
- }
- void SimpleBytesMessage::SharedDtor() {
- testfieldbytes_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- void SimpleBytesMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* SimpleBytesMessage::descriptor() {
- ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const SimpleBytesMessage& SimpleBytesMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleBytesMessage.base);
- return *internal_default_instance();
- }
- void SimpleBytesMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleBytesMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- testfieldbytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- _internal_metadata_.Clear();
- }
- bool SimpleBytesMessage::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:qtprotobufnamespace.tests.SimpleBytesMessage)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // bytes testFieldBytes = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
- input, this->mutable_testfieldbytes()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleBytesMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleBytesMessage)
- return false;
- #undef DO_
- }
- void SimpleBytesMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleBytesMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // bytes testFieldBytes = 1;
- if (this->testfieldbytes().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
- 1, this->testfieldbytes(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleBytesMessage)
- }
- ::google::protobuf::uint8* SimpleBytesMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleBytesMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // bytes testFieldBytes = 1;
- if (this->testfieldbytes().size() > 0) {
- target =
- ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
- 1, this->testfieldbytes(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleBytesMessage)
- return target;
- }
- size_t SimpleBytesMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleBytesMessage)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // bytes testFieldBytes = 1;
- if (this->testfieldbytes().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::BytesSize(
- this->testfieldbytes());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void SimpleBytesMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleBytesMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const SimpleBytesMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const SimpleBytesMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleBytesMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleBytesMessage)
- MergeFrom(*source);
- }
- }
- void SimpleBytesMessage::MergeFrom(const SimpleBytesMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleBytesMessage)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.testfieldbytes().size() > 0) {
- testfieldbytes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.testfieldbytes_);
- }
- }
- void SimpleBytesMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleBytesMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void SimpleBytesMessage::CopyFrom(const SimpleBytesMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleBytesMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SimpleBytesMessage::IsInitialized() const {
- return true;
- }
- void SimpleBytesMessage::Swap(SimpleBytesMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void SimpleBytesMessage::InternalSwap(SimpleBytesMessage* other) {
- using std::swap;
- testfieldbytes_.Swap(&other->testfieldbytes_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata SimpleBytesMessage::GetMetadata() const {
- protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void SimpleFixedInt32Message::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int SimpleFixedInt32Message::kTestFieldFixedInt32FieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- SimpleFixedInt32Message::SimpleFixedInt32Message()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_simpletest_2eproto::scc_info_SimpleFixedInt32Message.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleFixedInt32Message)
- }
- SimpleFixedInt32Message::SimpleFixedInt32Message(const SimpleFixedInt32Message& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- testfieldfixedint32_ = from.testfieldfixedint32_;
- // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleFixedInt32Message)
- }
- void SimpleFixedInt32Message::SharedCtor() {
- testfieldfixedint32_ = 0u;
- }
- SimpleFixedInt32Message::~SimpleFixedInt32Message() {
- // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleFixedInt32Message)
- SharedDtor();
- }
- void SimpleFixedInt32Message::SharedDtor() {
- }
- void SimpleFixedInt32Message::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* SimpleFixedInt32Message::descriptor() {
- ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const SimpleFixedInt32Message& SimpleFixedInt32Message::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleFixedInt32Message.base);
- return *internal_default_instance();
- }
- void SimpleFixedInt32Message::Clear() {
- // @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleFixedInt32Message)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- testfieldfixedint32_ = 0u;
- _internal_metadata_.Clear();
- }
- bool SimpleFixedInt32Message::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:qtprotobufnamespace.tests.SimpleFixedInt32Message)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // fixed32 testFieldFixedInt32 = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>(
- input, &testfieldfixedint32_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleFixedInt32Message)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleFixedInt32Message)
- return false;
- #undef DO_
- }
- void SimpleFixedInt32Message::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleFixedInt32Message)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // fixed32 testFieldFixedInt32 = 1;
- if (this->testfieldfixedint32() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->testfieldfixedint32(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleFixedInt32Message)
- }
- ::google::protobuf::uint8* SimpleFixedInt32Message::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleFixedInt32Message)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // fixed32 testFieldFixedInt32 = 1;
- if (this->testfieldfixedint32() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, this->testfieldfixedint32(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleFixedInt32Message)
- return target;
- }
- size_t SimpleFixedInt32Message::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleFixedInt32Message)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // fixed32 testFieldFixedInt32 = 1;
- if (this->testfieldfixedint32() != 0) {
- total_size += 1 + 4;
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void SimpleFixedInt32Message::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleFixedInt32Message)
- GOOGLE_DCHECK_NE(&from, this);
- const SimpleFixedInt32Message* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const SimpleFixedInt32Message>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleFixedInt32Message)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleFixedInt32Message)
- MergeFrom(*source);
- }
- }
- void SimpleFixedInt32Message::MergeFrom(const SimpleFixedInt32Message& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleFixedInt32Message)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.testfieldfixedint32() != 0) {
- set_testfieldfixedint32(from.testfieldfixedint32());
- }
- }
- void SimpleFixedInt32Message::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleFixedInt32Message)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void SimpleFixedInt32Message::CopyFrom(const SimpleFixedInt32Message& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleFixedInt32Message)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SimpleFixedInt32Message::IsInitialized() const {
- return true;
- }
- void SimpleFixedInt32Message::Swap(SimpleFixedInt32Message* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void SimpleFixedInt32Message::InternalSwap(SimpleFixedInt32Message* other) {
- using std::swap;
- swap(testfieldfixedint32_, other->testfieldfixedint32_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata SimpleFixedInt32Message::GetMetadata() const {
- protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void SimpleFixedInt64Message::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int SimpleFixedInt64Message::kTestFieldFixedInt64FieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- SimpleFixedInt64Message::SimpleFixedInt64Message()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_simpletest_2eproto::scc_info_SimpleFixedInt64Message.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleFixedInt64Message)
- }
- SimpleFixedInt64Message::SimpleFixedInt64Message(const SimpleFixedInt64Message& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- testfieldfixedint64_ = from.testfieldfixedint64_;
- // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleFixedInt64Message)
- }
- void SimpleFixedInt64Message::SharedCtor() {
- testfieldfixedint64_ = GOOGLE_ULONGLONG(0);
- }
- SimpleFixedInt64Message::~SimpleFixedInt64Message() {
- // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleFixedInt64Message)
- SharedDtor();
- }
- void SimpleFixedInt64Message::SharedDtor() {
- }
- void SimpleFixedInt64Message::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* SimpleFixedInt64Message::descriptor() {
- ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const SimpleFixedInt64Message& SimpleFixedInt64Message::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleFixedInt64Message.base);
- return *internal_default_instance();
- }
- void SimpleFixedInt64Message::Clear() {
- // @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleFixedInt64Message)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- testfieldfixedint64_ = GOOGLE_ULONGLONG(0);
- _internal_metadata_.Clear();
- }
- bool SimpleFixedInt64Message::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:qtprotobufnamespace.tests.SimpleFixedInt64Message)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // fixed64 testFieldFixedInt64 = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
- input, &testfieldfixedint64_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleFixedInt64Message)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleFixedInt64Message)
- return false;
- #undef DO_
- }
- void SimpleFixedInt64Message::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleFixedInt64Message)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // fixed64 testFieldFixedInt64 = 1;
- if (this->testfieldfixedint64() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteFixed64(1, this->testfieldfixedint64(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleFixedInt64Message)
- }
- ::google::protobuf::uint8* SimpleFixedInt64Message::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleFixedInt64Message)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // fixed64 testFieldFixedInt64 = 1;
- if (this->testfieldfixedint64() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(1, this->testfieldfixedint64(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleFixedInt64Message)
- return target;
- }
- size_t SimpleFixedInt64Message::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleFixedInt64Message)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // fixed64 testFieldFixedInt64 = 1;
- if (this->testfieldfixedint64() != 0) {
- total_size += 1 + 8;
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void SimpleFixedInt64Message::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleFixedInt64Message)
- GOOGLE_DCHECK_NE(&from, this);
- const SimpleFixedInt64Message* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const SimpleFixedInt64Message>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleFixedInt64Message)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleFixedInt64Message)
- MergeFrom(*source);
- }
- }
- void SimpleFixedInt64Message::MergeFrom(const SimpleFixedInt64Message& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleFixedInt64Message)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.testfieldfixedint64() != 0) {
- set_testfieldfixedint64(from.testfieldfixedint64());
- }
- }
- void SimpleFixedInt64Message::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleFixedInt64Message)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void SimpleFixedInt64Message::CopyFrom(const SimpleFixedInt64Message& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleFixedInt64Message)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SimpleFixedInt64Message::IsInitialized() const {
- return true;
- }
- void SimpleFixedInt64Message::Swap(SimpleFixedInt64Message* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void SimpleFixedInt64Message::InternalSwap(SimpleFixedInt64Message* other) {
- using std::swap;
- swap(testfieldfixedint64_, other->testfieldfixedint64_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata SimpleFixedInt64Message::GetMetadata() const {
- protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void SimpleSFixedInt32Message::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int SimpleSFixedInt32Message::kTestFieldFixedInt32FieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- SimpleSFixedInt32Message::SimpleSFixedInt32Message()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_simpletest_2eproto::scc_info_SimpleSFixedInt32Message.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
- }
- SimpleSFixedInt32Message::SimpleSFixedInt32Message(const SimpleSFixedInt32Message& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- testfieldfixedint32_ = from.testfieldfixedint32_;
- // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
- }
- void SimpleSFixedInt32Message::SharedCtor() {
- testfieldfixedint32_ = 0;
- }
- SimpleSFixedInt32Message::~SimpleSFixedInt32Message() {
- // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
- SharedDtor();
- }
- void SimpleSFixedInt32Message::SharedDtor() {
- }
- void SimpleSFixedInt32Message::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* SimpleSFixedInt32Message::descriptor() {
- ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const SimpleSFixedInt32Message& SimpleSFixedInt32Message::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleSFixedInt32Message.base);
- return *internal_default_instance();
- }
- void SimpleSFixedInt32Message::Clear() {
- // @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- testfieldfixedint32_ = 0;
- _internal_metadata_.Clear();
- }
- bool SimpleSFixedInt32Message::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // sfixed32 testFieldFixedInt32 = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32>(
- input, &testfieldfixedint32_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
- return false;
- #undef DO_
- }
- void SimpleSFixedInt32Message::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // sfixed32 testFieldFixedInt32 = 1;
- if (this->testfieldfixedint32() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteSFixed32(1, this->testfieldfixedint32(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
- }
- ::google::protobuf::uint8* SimpleSFixedInt32Message::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // sfixed32 testFieldFixedInt32 = 1;
- if (this->testfieldfixedint32() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteSFixed32ToArray(1, this->testfieldfixedint32(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
- return target;
- }
- size_t SimpleSFixedInt32Message::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // sfixed32 testFieldFixedInt32 = 1;
- if (this->testfieldfixedint32() != 0) {
- total_size += 1 + 4;
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void SimpleSFixedInt32Message::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
- GOOGLE_DCHECK_NE(&from, this);
- const SimpleSFixedInt32Message* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const SimpleSFixedInt32Message>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
- MergeFrom(*source);
- }
- }
- void SimpleSFixedInt32Message::MergeFrom(const SimpleSFixedInt32Message& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.testfieldfixedint32() != 0) {
- set_testfieldfixedint32(from.testfieldfixedint32());
- }
- }
- void SimpleSFixedInt32Message::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void SimpleSFixedInt32Message::CopyFrom(const SimpleSFixedInt32Message& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SimpleSFixedInt32Message::IsInitialized() const {
- return true;
- }
- void SimpleSFixedInt32Message::Swap(SimpleSFixedInt32Message* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void SimpleSFixedInt32Message::InternalSwap(SimpleSFixedInt32Message* other) {
- using std::swap;
- swap(testfieldfixedint32_, other->testfieldfixedint32_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata SimpleSFixedInt32Message::GetMetadata() const {
- protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void SimpleSFixedInt64Message::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int SimpleSFixedInt64Message::kTestFieldFixedInt64FieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- SimpleSFixedInt64Message::SimpleSFixedInt64Message()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_simpletest_2eproto::scc_info_SimpleSFixedInt64Message.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
- }
- SimpleSFixedInt64Message::SimpleSFixedInt64Message(const SimpleSFixedInt64Message& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- testfieldfixedint64_ = from.testfieldfixedint64_;
- // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
- }
- void SimpleSFixedInt64Message::SharedCtor() {
- testfieldfixedint64_ = GOOGLE_LONGLONG(0);
- }
- SimpleSFixedInt64Message::~SimpleSFixedInt64Message() {
- // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
- SharedDtor();
- }
- void SimpleSFixedInt64Message::SharedDtor() {
- }
- void SimpleSFixedInt64Message::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* SimpleSFixedInt64Message::descriptor() {
- ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const SimpleSFixedInt64Message& SimpleSFixedInt64Message::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleSFixedInt64Message.base);
- return *internal_default_instance();
- }
- void SimpleSFixedInt64Message::Clear() {
- // @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- testfieldfixedint64_ = GOOGLE_LONGLONG(0);
- _internal_metadata_.Clear();
- }
- bool SimpleSFixedInt64Message::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // sfixed64 testFieldFixedInt64 = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>(
- input, &testfieldfixedint64_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
- return false;
- #undef DO_
- }
- void SimpleSFixedInt64Message::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // sfixed64 testFieldFixedInt64 = 1;
- if (this->testfieldfixedint64() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteSFixed64(1, this->testfieldfixedint64(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
- }
- ::google::protobuf::uint8* SimpleSFixedInt64Message::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // sfixed64 testFieldFixedInt64 = 1;
- if (this->testfieldfixedint64() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteSFixed64ToArray(1, this->testfieldfixedint64(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
- return target;
- }
- size_t SimpleSFixedInt64Message::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // sfixed64 testFieldFixedInt64 = 1;
- if (this->testfieldfixedint64() != 0) {
- total_size += 1 + 8;
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void SimpleSFixedInt64Message::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
- GOOGLE_DCHECK_NE(&from, this);
- const SimpleSFixedInt64Message* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const SimpleSFixedInt64Message>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
- MergeFrom(*source);
- }
- }
- void SimpleSFixedInt64Message::MergeFrom(const SimpleSFixedInt64Message& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.testfieldfixedint64() != 0) {
- set_testfieldfixedint64(from.testfieldfixedint64());
- }
- }
- void SimpleSFixedInt64Message::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void SimpleSFixedInt64Message::CopyFrom(const SimpleSFixedInt64Message& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SimpleSFixedInt64Message::IsInitialized() const {
- return true;
- }
- void SimpleSFixedInt64Message::Swap(SimpleSFixedInt64Message* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void SimpleSFixedInt64Message::InternalSwap(SimpleSFixedInt64Message* other) {
- using std::swap;
- swap(testfieldfixedint64_, other->testfieldfixedint64_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata SimpleSFixedInt64Message::GetMetadata() const {
- protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void ComplexMessage::InitAsDefaultInstance() {
- ::qtprotobufnamespace::tests::_ComplexMessage_default_instance_._instance.get_mutable()->testcomplexfield_ = const_cast< ::qtprotobufnamespace::tests::SimpleStringMessage*>(
- ::qtprotobufnamespace::tests::SimpleStringMessage::internal_default_instance());
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int ComplexMessage::kTestFieldIntFieldNumber;
- const int ComplexMessage::kTestComplexFieldFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- ComplexMessage::ComplexMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_simpletest_2eproto::scc_info_ComplexMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.ComplexMessage)
- }
- ComplexMessage::ComplexMessage(const ComplexMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_testcomplexfield()) {
- testcomplexfield_ = new ::qtprotobufnamespace::tests::SimpleStringMessage(*from.testcomplexfield_);
- } else {
- testcomplexfield_ = NULL;
- }
- testfieldint_ = from.testfieldint_;
- // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.ComplexMessage)
- }
- void ComplexMessage::SharedCtor() {
- ::memset(&testcomplexfield_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&testfieldint_) -
- reinterpret_cast<char*>(&testcomplexfield_)) + sizeof(testfieldint_));
- }
- ComplexMessage::~ComplexMessage() {
- // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.ComplexMessage)
- SharedDtor();
- }
- void ComplexMessage::SharedDtor() {
- if (this != internal_default_instance()) delete testcomplexfield_;
- }
- void ComplexMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* ComplexMessage::descriptor() {
- ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const ComplexMessage& ComplexMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_ComplexMessage.base);
- return *internal_default_instance();
- }
- void ComplexMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.ComplexMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- if (GetArenaNoVirtual() == NULL && testcomplexfield_ != NULL) {
- delete testcomplexfield_;
- }
- testcomplexfield_ = NULL;
- testfieldint_ = 0;
- _internal_metadata_.Clear();
- }
- bool ComplexMessage::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:qtprotobufnamespace.tests.ComplexMessage)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // int32 testFieldInt = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &testfieldint_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .qtprotobufnamespace.tests.SimpleStringMessage testComplexField = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_testcomplexfield()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.ComplexMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.ComplexMessage)
- return false;
- #undef DO_
- }
- void ComplexMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.ComplexMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 testFieldInt = 1;
- if (this->testfieldint() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->testfieldint(), output);
- }
- // .qtprotobufnamespace.tests.SimpleStringMessage testComplexField = 2;
- if (this->has_testcomplexfield()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->_internal_testcomplexfield(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.ComplexMessage)
- }
- ::google::protobuf::uint8* ComplexMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.ComplexMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 testFieldInt = 1;
- if (this->testfieldint() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->testfieldint(), target);
- }
- // .qtprotobufnamespace.tests.SimpleStringMessage testComplexField = 2;
- if (this->has_testcomplexfield()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 2, this->_internal_testcomplexfield(), deterministic, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.ComplexMessage)
- return target;
- }
- size_t ComplexMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.ComplexMessage)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // .qtprotobufnamespace.tests.SimpleStringMessage testComplexField = 2;
- if (this->has_testcomplexfield()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *testcomplexfield_);
- }
- // int32 testFieldInt = 1;
- if (this->testfieldint() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->testfieldint());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void ComplexMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.ComplexMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const ComplexMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const ComplexMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.ComplexMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.ComplexMessage)
- MergeFrom(*source);
- }
- }
- void ComplexMessage::MergeFrom(const ComplexMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.ComplexMessage)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.has_testcomplexfield()) {
- mutable_testcomplexfield()->::qtprotobufnamespace::tests::SimpleStringMessage::MergeFrom(from.testcomplexfield());
- }
- if (from.testfieldint() != 0) {
- set_testfieldint(from.testfieldint());
- }
- }
- void ComplexMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.ComplexMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void ComplexMessage::CopyFrom(const ComplexMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.ComplexMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool ComplexMessage::IsInitialized() const {
- return true;
- }
- void ComplexMessage::Swap(ComplexMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void ComplexMessage::InternalSwap(ComplexMessage* other) {
- using std::swap;
- swap(testcomplexfield_, other->testcomplexfield_);
- swap(testfieldint_, other->testfieldint_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata ComplexMessage::GetMetadata() const {
- protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void RepeatedIntMessage::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int RepeatedIntMessage::kTestRepeatedIntFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- RepeatedIntMessage::RepeatedIntMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_simpletest_2eproto::scc_info_RepeatedIntMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.RepeatedIntMessage)
- }
- RepeatedIntMessage::RepeatedIntMessage(const RepeatedIntMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- testrepeatedint_(from.testrepeatedint_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.RepeatedIntMessage)
- }
- void RepeatedIntMessage::SharedCtor() {
- }
- RepeatedIntMessage::~RepeatedIntMessage() {
- // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.RepeatedIntMessage)
- SharedDtor();
- }
- void RepeatedIntMessage::SharedDtor() {
- }
- void RepeatedIntMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* RepeatedIntMessage::descriptor() {
- ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const RepeatedIntMessage& RepeatedIntMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_RepeatedIntMessage.base);
- return *internal_default_instance();
- }
- void RepeatedIntMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.RepeatedIntMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- testrepeatedint_.Clear();
- _internal_metadata_.Clear();
- }
- bool RepeatedIntMessage::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:qtprotobufnamespace.tests.RepeatedIntMessage)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // repeated sint32 testRepeatedInt = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
- input, this->mutable_testrepeatedint())));
- } else if (
- static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
- 1, 10u, input, this->mutable_testrepeatedint())));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.RepeatedIntMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.RepeatedIntMessage)
- return false;
- #undef DO_
- }
- void RepeatedIntMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.RepeatedIntMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated sint32 testRepeatedInt = 1;
- if (this->testrepeatedint_size() > 0) {
- ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
- output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
- _testrepeatedint_cached_byte_size_));
- }
- for (int i = 0, n = this->testrepeatedint_size(); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteSInt32NoTag(
- this->testrepeatedint(i), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.RepeatedIntMessage)
- }
- ::google::protobuf::uint8* RepeatedIntMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.RepeatedIntMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated sint32 testRepeatedInt = 1;
- if (this->testrepeatedint_size() > 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
- 1,
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
- target);
- target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
- static_cast< ::google::protobuf::int32>(
- _testrepeatedint_cached_byte_size_), target);
- target = ::google::protobuf::internal::WireFormatLite::
- WriteSInt32NoTagToArray(this->testrepeatedint_, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.RepeatedIntMessage)
- return target;
- }
- size_t RepeatedIntMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.RepeatedIntMessage)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // repeated sint32 testRepeatedInt = 1;
- {
- size_t data_size = ::google::protobuf::internal::WireFormatLite::
- SInt32Size(this->testrepeatedint_);
- if (data_size > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- static_cast< ::google::protobuf::int32>(data_size));
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _testrepeatedint_cached_byte_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- total_size += data_size;
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void RepeatedIntMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.RepeatedIntMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const RepeatedIntMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const RepeatedIntMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.RepeatedIntMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.RepeatedIntMessage)
- MergeFrom(*source);
- }
- }
- void RepeatedIntMessage::MergeFrom(const RepeatedIntMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.RepeatedIntMessage)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- testrepeatedint_.MergeFrom(from.testrepeatedint_);
- }
- void RepeatedIntMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.RepeatedIntMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void RepeatedIntMessage::CopyFrom(const RepeatedIntMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.RepeatedIntMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool RepeatedIntMessage::IsInitialized() const {
- return true;
- }
- void RepeatedIntMessage::Swap(RepeatedIntMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void RepeatedIntMessage::InternalSwap(RepeatedIntMessage* other) {
- using std::swap;
- testrepeatedint_.InternalSwap(&other->testrepeatedint_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata RepeatedIntMessage::GetMetadata() const {
- protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void RepeatedStringMessage::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int RepeatedStringMessage::kTestRepeatedStringFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- RepeatedStringMessage::RepeatedStringMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_simpletest_2eproto::scc_info_RepeatedStringMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.RepeatedStringMessage)
- }
- RepeatedStringMessage::RepeatedStringMessage(const RepeatedStringMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- testrepeatedstring_(from.testrepeatedstring_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.RepeatedStringMessage)
- }
- void RepeatedStringMessage::SharedCtor() {
- }
- RepeatedStringMessage::~RepeatedStringMessage() {
- // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.RepeatedStringMessage)
- SharedDtor();
- }
- void RepeatedStringMessage::SharedDtor() {
- }
- void RepeatedStringMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* RepeatedStringMessage::descriptor() {
- ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const RepeatedStringMessage& RepeatedStringMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_RepeatedStringMessage.base);
- return *internal_default_instance();
- }
- void RepeatedStringMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.RepeatedStringMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- testrepeatedstring_.Clear();
- _internal_metadata_.Clear();
- }
- bool RepeatedStringMessage::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:qtprotobufnamespace.tests.RepeatedStringMessage)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // repeated string testRepeatedString = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->add_testrepeatedstring()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->testrepeatedstring(this->testrepeatedstring_size() - 1).data(),
- static_cast<int>(this->testrepeatedstring(this->testrepeatedstring_size() - 1).length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "qtprotobufnamespace.tests.RepeatedStringMessage.testRepeatedString"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.RepeatedStringMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.RepeatedStringMessage)
- return false;
- #undef DO_
- }
- void RepeatedStringMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.RepeatedStringMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated string testRepeatedString = 1;
- for (int i = 0, n = this->testrepeatedstring_size(); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->testrepeatedstring(i).data(), static_cast<int>(this->testrepeatedstring(i).length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "qtprotobufnamespace.tests.RepeatedStringMessage.testRepeatedString");
- ::google::protobuf::internal::WireFormatLite::WriteString(
- 1, this->testrepeatedstring(i), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.RepeatedStringMessage)
- }
- ::google::protobuf::uint8* RepeatedStringMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.RepeatedStringMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated string testRepeatedString = 1;
- for (int i = 0, n = this->testrepeatedstring_size(); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->testrepeatedstring(i).data(), static_cast<int>(this->testrepeatedstring(i).length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "qtprotobufnamespace.tests.RepeatedStringMessage.testRepeatedString");
- target = ::google::protobuf::internal::WireFormatLite::
- WriteStringToArray(1, this->testrepeatedstring(i), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.RepeatedStringMessage)
- return target;
- }
- size_t RepeatedStringMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.RepeatedStringMessage)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // repeated string testRepeatedString = 1;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->testrepeatedstring_size());
- for (int i = 0, n = this->testrepeatedstring_size(); i < n; i++) {
- total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
- this->testrepeatedstring(i));
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void RepeatedStringMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.RepeatedStringMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const RepeatedStringMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const RepeatedStringMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.RepeatedStringMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.RepeatedStringMessage)
- MergeFrom(*source);
- }
- }
- void RepeatedStringMessage::MergeFrom(const RepeatedStringMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.RepeatedStringMessage)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- testrepeatedstring_.MergeFrom(from.testrepeatedstring_);
- }
- void RepeatedStringMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.RepeatedStringMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void RepeatedStringMessage::CopyFrom(const RepeatedStringMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.RepeatedStringMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool RepeatedStringMessage::IsInitialized() const {
- return true;
- }
- void RepeatedStringMessage::Swap(RepeatedStringMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void RepeatedStringMessage::InternalSwap(RepeatedStringMessage* other) {
- using std::swap;
- testrepeatedstring_.InternalSwap(CastToBase(&other->testrepeatedstring_));
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata RepeatedStringMessage::GetMetadata() const {
- protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void RepeatedDoubleMessage::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int RepeatedDoubleMessage::kTestRepeatedDoubleFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- RepeatedDoubleMessage::RepeatedDoubleMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_simpletest_2eproto::scc_info_RepeatedDoubleMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.RepeatedDoubleMessage)
- }
- RepeatedDoubleMessage::RepeatedDoubleMessage(const RepeatedDoubleMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- testrepeateddouble_(from.testrepeateddouble_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.RepeatedDoubleMessage)
- }
- void RepeatedDoubleMessage::SharedCtor() {
- }
- RepeatedDoubleMessage::~RepeatedDoubleMessage() {
- // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.RepeatedDoubleMessage)
- SharedDtor();
- }
- void RepeatedDoubleMessage::SharedDtor() {
- }
- void RepeatedDoubleMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* RepeatedDoubleMessage::descriptor() {
- ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const RepeatedDoubleMessage& RepeatedDoubleMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_RepeatedDoubleMessage.base);
- return *internal_default_instance();
- }
- void RepeatedDoubleMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.RepeatedDoubleMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- testrepeateddouble_.Clear();
- _internal_metadata_.Clear();
- }
- bool RepeatedDoubleMessage::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:qtprotobufnamespace.tests.RepeatedDoubleMessage)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // repeated double testRepeatedDouble = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, this->mutable_testrepeateddouble())));
- } else if (
- static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- 1, 10u, input, this->mutable_testrepeateddouble())));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.RepeatedDoubleMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.RepeatedDoubleMessage)
- return false;
- #undef DO_
- }
- void RepeatedDoubleMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.RepeatedDoubleMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated double testRepeatedDouble = 1;
- if (this->testrepeateddouble_size() > 0) {
- ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
- output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
- _testrepeateddouble_cached_byte_size_));
- ::google::protobuf::internal::WireFormatLite::WriteDoubleArray(
- this->testrepeateddouble().data(), this->testrepeateddouble_size(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.RepeatedDoubleMessage)
- }
- ::google::protobuf::uint8* RepeatedDoubleMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.RepeatedDoubleMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated double testRepeatedDouble = 1;
- if (this->testrepeateddouble_size() > 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
- 1,
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
- target);
- target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
- static_cast< ::google::protobuf::int32>(
- _testrepeateddouble_cached_byte_size_), target);
- target = ::google::protobuf::internal::WireFormatLite::
- WriteDoubleNoTagToArray(this->testrepeateddouble_, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.RepeatedDoubleMessage)
- return target;
- }
- size_t RepeatedDoubleMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.RepeatedDoubleMessage)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // repeated double testRepeatedDouble = 1;
- {
- unsigned int count = static_cast<unsigned int>(this->testrepeateddouble_size());
- size_t data_size = 8UL * count;
- if (data_size > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- static_cast< ::google::protobuf::int32>(data_size));
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _testrepeateddouble_cached_byte_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- total_size += data_size;
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void RepeatedDoubleMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.RepeatedDoubleMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const RepeatedDoubleMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const RepeatedDoubleMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.RepeatedDoubleMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.RepeatedDoubleMessage)
- MergeFrom(*source);
- }
- }
- void RepeatedDoubleMessage::MergeFrom(const RepeatedDoubleMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.RepeatedDoubleMessage)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- testrepeateddouble_.MergeFrom(from.testrepeateddouble_);
- }
- void RepeatedDoubleMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.RepeatedDoubleMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void RepeatedDoubleMessage::CopyFrom(const RepeatedDoubleMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.RepeatedDoubleMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool RepeatedDoubleMessage::IsInitialized() const {
- return true;
- }
- void RepeatedDoubleMessage::Swap(RepeatedDoubleMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void RepeatedDoubleMessage::InternalSwap(RepeatedDoubleMessage* other) {
- using std::swap;
- testrepeateddouble_.InternalSwap(&other->testrepeateddouble_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata RepeatedDoubleMessage::GetMetadata() const {
- protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void RepeatedBytesMessage::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int RepeatedBytesMessage::kTestRepeatedBytesFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- RepeatedBytesMessage::RepeatedBytesMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_simpletest_2eproto::scc_info_RepeatedBytesMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.RepeatedBytesMessage)
- }
- RepeatedBytesMessage::RepeatedBytesMessage(const RepeatedBytesMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- testrepeatedbytes_(from.testrepeatedbytes_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.RepeatedBytesMessage)
- }
- void RepeatedBytesMessage::SharedCtor() {
- }
- RepeatedBytesMessage::~RepeatedBytesMessage() {
- // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.RepeatedBytesMessage)
- SharedDtor();
- }
- void RepeatedBytesMessage::SharedDtor() {
- }
- void RepeatedBytesMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* RepeatedBytesMessage::descriptor() {
- ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const RepeatedBytesMessage& RepeatedBytesMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_RepeatedBytesMessage.base);
- return *internal_default_instance();
- }
- void RepeatedBytesMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.RepeatedBytesMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- testrepeatedbytes_.Clear();
- _internal_metadata_.Clear();
- }
- bool RepeatedBytesMessage::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:qtprotobufnamespace.tests.RepeatedBytesMessage)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // repeated bytes testRepeatedBytes = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
- input, this->add_testrepeatedbytes()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.RepeatedBytesMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.RepeatedBytesMessage)
- return false;
- #undef DO_
- }
- void RepeatedBytesMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.RepeatedBytesMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated bytes testRepeatedBytes = 1;
- for (int i = 0, n = this->testrepeatedbytes_size(); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteBytes(
- 1, this->testrepeatedbytes(i), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.RepeatedBytesMessage)
- }
- ::google::protobuf::uint8* RepeatedBytesMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.RepeatedBytesMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated bytes testRepeatedBytes = 1;
- for (int i = 0, n = this->testrepeatedbytes_size(); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- WriteBytesToArray(1, this->testrepeatedbytes(i), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.RepeatedBytesMessage)
- return target;
- }
- size_t RepeatedBytesMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.RepeatedBytesMessage)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // repeated bytes testRepeatedBytes = 1;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->testrepeatedbytes_size());
- for (int i = 0, n = this->testrepeatedbytes_size(); i < n; i++) {
- total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
- this->testrepeatedbytes(i));
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void RepeatedBytesMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.RepeatedBytesMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const RepeatedBytesMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const RepeatedBytesMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.RepeatedBytesMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.RepeatedBytesMessage)
- MergeFrom(*source);
- }
- }
- void RepeatedBytesMessage::MergeFrom(const RepeatedBytesMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.RepeatedBytesMessage)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- testrepeatedbytes_.MergeFrom(from.testrepeatedbytes_);
- }
- void RepeatedBytesMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.RepeatedBytesMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void RepeatedBytesMessage::CopyFrom(const RepeatedBytesMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.RepeatedBytesMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool RepeatedBytesMessage::IsInitialized() const {
- return true;
- }
- void RepeatedBytesMessage::Swap(RepeatedBytesMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void RepeatedBytesMessage::InternalSwap(RepeatedBytesMessage* other) {
- using std::swap;
- testrepeatedbytes_.InternalSwap(CastToBase(&other->testrepeatedbytes_));
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata RepeatedBytesMessage::GetMetadata() const {
- protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void RepeatedFloatMessage::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int RepeatedFloatMessage::kTestRepeatedFloatFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- RepeatedFloatMessage::RepeatedFloatMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_simpletest_2eproto::scc_info_RepeatedFloatMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.RepeatedFloatMessage)
- }
- RepeatedFloatMessage::RepeatedFloatMessage(const RepeatedFloatMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- testrepeatedfloat_(from.testrepeatedfloat_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.RepeatedFloatMessage)
- }
- void RepeatedFloatMessage::SharedCtor() {
- }
- RepeatedFloatMessage::~RepeatedFloatMessage() {
- // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.RepeatedFloatMessage)
- SharedDtor();
- }
- void RepeatedFloatMessage::SharedDtor() {
- }
- void RepeatedFloatMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* RepeatedFloatMessage::descriptor() {
- ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const RepeatedFloatMessage& RepeatedFloatMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_RepeatedFloatMessage.base);
- return *internal_default_instance();
- }
- void RepeatedFloatMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.RepeatedFloatMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- testrepeatedfloat_.Clear();
- _internal_metadata_.Clear();
- }
- bool RepeatedFloatMessage::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:qtprotobufnamespace.tests.RepeatedFloatMessage)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // repeated float testRepeatedFloat = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, this->mutable_testrepeatedfloat())));
- } else if (
- static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- 1, 10u, input, this->mutable_testrepeatedfloat())));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.RepeatedFloatMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.RepeatedFloatMessage)
- return false;
- #undef DO_
- }
- void RepeatedFloatMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.RepeatedFloatMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated float testRepeatedFloat = 1;
- if (this->testrepeatedfloat_size() > 0) {
- ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
- output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
- _testrepeatedfloat_cached_byte_size_));
- ::google::protobuf::internal::WireFormatLite::WriteFloatArray(
- this->testrepeatedfloat().data(), this->testrepeatedfloat_size(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.RepeatedFloatMessage)
- }
- ::google::protobuf::uint8* RepeatedFloatMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.RepeatedFloatMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated float testRepeatedFloat = 1;
- if (this->testrepeatedfloat_size() > 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
- 1,
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
- target);
- target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
- static_cast< ::google::protobuf::int32>(
- _testrepeatedfloat_cached_byte_size_), target);
- target = ::google::protobuf::internal::WireFormatLite::
- WriteFloatNoTagToArray(this->testrepeatedfloat_, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.RepeatedFloatMessage)
- return target;
- }
- size_t RepeatedFloatMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.RepeatedFloatMessage)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // repeated float testRepeatedFloat = 1;
- {
- unsigned int count = static_cast<unsigned int>(this->testrepeatedfloat_size());
- size_t data_size = 4UL * count;
- if (data_size > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- static_cast< ::google::protobuf::int32>(data_size));
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _testrepeatedfloat_cached_byte_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- total_size += data_size;
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void RepeatedFloatMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.RepeatedFloatMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const RepeatedFloatMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const RepeatedFloatMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.RepeatedFloatMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.RepeatedFloatMessage)
- MergeFrom(*source);
- }
- }
- void RepeatedFloatMessage::MergeFrom(const RepeatedFloatMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.RepeatedFloatMessage)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- testrepeatedfloat_.MergeFrom(from.testrepeatedfloat_);
- }
- void RepeatedFloatMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.RepeatedFloatMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void RepeatedFloatMessage::CopyFrom(const RepeatedFloatMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.RepeatedFloatMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool RepeatedFloatMessage::IsInitialized() const {
- return true;
- }
- void RepeatedFloatMessage::Swap(RepeatedFloatMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void RepeatedFloatMessage::InternalSwap(RepeatedFloatMessage* other) {
- using std::swap;
- testrepeatedfloat_.InternalSwap(&other->testrepeatedfloat_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata RepeatedFloatMessage::GetMetadata() const {
- protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void RepeatedComplexMessage::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int RepeatedComplexMessage::kTestRepeatedComplexFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- RepeatedComplexMessage::RepeatedComplexMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_simpletest_2eproto::scc_info_RepeatedComplexMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.RepeatedComplexMessage)
- }
- RepeatedComplexMessage::RepeatedComplexMessage(const RepeatedComplexMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- testrepeatedcomplex_(from.testrepeatedcomplex_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.RepeatedComplexMessage)
- }
- void RepeatedComplexMessage::SharedCtor() {
- }
- RepeatedComplexMessage::~RepeatedComplexMessage() {
- // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.RepeatedComplexMessage)
- SharedDtor();
- }
- void RepeatedComplexMessage::SharedDtor() {
- }
- void RepeatedComplexMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* RepeatedComplexMessage::descriptor() {
- ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const RepeatedComplexMessage& RepeatedComplexMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_RepeatedComplexMessage.base);
- return *internal_default_instance();
- }
- void RepeatedComplexMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.RepeatedComplexMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- testrepeatedcomplex_.Clear();
- _internal_metadata_.Clear();
- }
- bool RepeatedComplexMessage::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:qtprotobufnamespace.tests.RepeatedComplexMessage)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // repeated .qtprotobufnamespace.tests.ComplexMessage testRepeatedComplex = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, add_testrepeatedcomplex()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.RepeatedComplexMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.RepeatedComplexMessage)
- return false;
- #undef DO_
- }
- void RepeatedComplexMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.RepeatedComplexMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .qtprotobufnamespace.tests.ComplexMessage testRepeatedComplex = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->testrepeatedcomplex_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1,
- this->testrepeatedcomplex(static_cast<int>(i)),
- output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.RepeatedComplexMessage)
- }
- ::google::protobuf::uint8* RepeatedComplexMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.RepeatedComplexMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .qtprotobufnamespace.tests.ComplexMessage testRepeatedComplex = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->testrepeatedcomplex_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->testrepeatedcomplex(static_cast<int>(i)), deterministic, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.RepeatedComplexMessage)
- return target;
- }
- size_t RepeatedComplexMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.RepeatedComplexMessage)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // repeated .qtprotobufnamespace.tests.ComplexMessage testRepeatedComplex = 1;
- {
- unsigned int count = static_cast<unsigned int>(this->testrepeatedcomplex_size());
- total_size += 1UL * count;
- for (unsigned int i = 0; i < count; i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- this->testrepeatedcomplex(static_cast<int>(i)));
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void RepeatedComplexMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.RepeatedComplexMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const RepeatedComplexMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const RepeatedComplexMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.RepeatedComplexMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.RepeatedComplexMessage)
- MergeFrom(*source);
- }
- }
- void RepeatedComplexMessage::MergeFrom(const RepeatedComplexMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.RepeatedComplexMessage)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- testrepeatedcomplex_.MergeFrom(from.testrepeatedcomplex_);
- }
- void RepeatedComplexMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.RepeatedComplexMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void RepeatedComplexMessage::CopyFrom(const RepeatedComplexMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.RepeatedComplexMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool RepeatedComplexMessage::IsInitialized() const {
- return true;
- }
- void RepeatedComplexMessage::Swap(RepeatedComplexMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void RepeatedComplexMessage::InternalSwap(RepeatedComplexMessage* other) {
- using std::swap;
- CastToBase(&testrepeatedcomplex_)->InternalSwap(CastToBase(&other->testrepeatedcomplex_));
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata RepeatedComplexMessage::GetMetadata() const {
- protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace tests
- } // namespace qtprotobufnamespace
- namespace google {
- namespace protobuf {
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleEnumMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleEnumMessage >(Arena* arena) {
- return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleEnumMessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleFileEnumMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleFileEnumMessage >(Arena* arena) {
- return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleFileEnumMessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleBoolMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleBoolMessage >(Arena* arena) {
- return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleBoolMessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleIntMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleIntMessage >(Arena* arena) {
- return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleIntMessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleSIntMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleSIntMessage >(Arena* arena) {
- return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleSIntMessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleUIntMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleUIntMessage >(Arena* arena) {
- return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleUIntMessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleInt64Message* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleInt64Message >(Arena* arena) {
- return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleInt64Message >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleSInt64Message* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleSInt64Message >(Arena* arena) {
- return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleSInt64Message >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleUInt64Message* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleUInt64Message >(Arena* arena) {
- return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleUInt64Message >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleStringMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleStringMessage >(Arena* arena) {
- return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleStringMessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleFloatMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleFloatMessage >(Arena* arena) {
- return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleFloatMessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleDoubleMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleDoubleMessage >(Arena* arena) {
- return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleDoubleMessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleBytesMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleBytesMessage >(Arena* arena) {
- return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleBytesMessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleFixedInt32Message* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleFixedInt32Message >(Arena* arena) {
- return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleFixedInt32Message >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleFixedInt64Message* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleFixedInt64Message >(Arena* arena) {
- return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleFixedInt64Message >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleSFixedInt32Message* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleSFixedInt32Message >(Arena* arena) {
- return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleSFixedInt32Message >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleSFixedInt64Message* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleSFixedInt64Message >(Arena* arena) {
- return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleSFixedInt64Message >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::ComplexMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::ComplexMessage >(Arena* arena) {
- return Arena::CreateInternal< ::qtprotobufnamespace::tests::ComplexMessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::RepeatedIntMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::RepeatedIntMessage >(Arena* arena) {
- return Arena::CreateInternal< ::qtprotobufnamespace::tests::RepeatedIntMessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::RepeatedStringMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::RepeatedStringMessage >(Arena* arena) {
- return Arena::CreateInternal< ::qtprotobufnamespace::tests::RepeatedStringMessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::RepeatedDoubleMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::RepeatedDoubleMessage >(Arena* arena) {
- return Arena::CreateInternal< ::qtprotobufnamespace::tests::RepeatedDoubleMessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::RepeatedBytesMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::RepeatedBytesMessage >(Arena* arena) {
- return Arena::CreateInternal< ::qtprotobufnamespace::tests::RepeatedBytesMessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::RepeatedFloatMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::RepeatedFloatMessage >(Arena* arena) {
- return Arena::CreateInternal< ::qtprotobufnamespace::tests::RepeatedFloatMessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::RepeatedComplexMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::RepeatedComplexMessage >(Arena* arena) {
- return Arena::CreateInternal< ::qtprotobufnamespace::tests::RepeatedComplexMessage >(arena);
- }
- } // namespace protobuf
- } // namespace google
- // @@protoc_insertion_point(global_scope)
|