fish_protocol.pb.cc 792 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: fish_protocol.proto
  3. #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
  4. #include "fish_protocol.pb.h"
  5. #include <algorithm>
  6. #include <google/protobuf/stubs/common.h>
  7. #include <google/protobuf/stubs/once.h>
  8. #include <google/protobuf/io/coded_stream.h>
  9. #include <google/protobuf/wire_format_lite_inl.h>
  10. #include <google/protobuf/descriptor.h>
  11. #include <google/protobuf/generated_message_reflection.h>
  12. #include <google/protobuf/reflection_ops.h>
  13. #include <google/protobuf/wire_format.h>
  14. // @@protoc_insertion_point(includes)
  15. namespace fish_protocols {
  16. namespace {
  17. const ::google::protobuf::Descriptor* packetc2l_get_room_info_descriptor_ = NULL;
  18. const ::google::protobuf::internal::GeneratedMessageReflection*
  19. packetc2l_get_room_info_reflection_ = NULL;
  20. const ::google::protobuf::Descriptor* msg_room_info_descriptor_ = NULL;
  21. const ::google::protobuf::internal::GeneratedMessageReflection*
  22. msg_room_info_reflection_ = NULL;
  23. const ::google::protobuf::Descriptor* packetl2c_get_room_info_result_descriptor_ = NULL;
  24. const ::google::protobuf::internal::GeneratedMessageReflection*
  25. packetl2c_get_room_info_result_reflection_ = NULL;
  26. const ::google::protobuf::Descriptor* packetc2l_enter_table_descriptor_ = NULL;
  27. const ::google::protobuf::internal::GeneratedMessageReflection*
  28. packetc2l_enter_table_reflection_ = NULL;
  29. const ::google::protobuf::Descriptor* packetl2c_enter_table_result_descriptor_ = NULL;
  30. const ::google::protobuf::internal::GeneratedMessageReflection*
  31. packetl2c_enter_table_result_reflection_ = NULL;
  32. const ::google::protobuf::Descriptor* packetc2l_change_table_descriptor_ = NULL;
  33. const ::google::protobuf::internal::GeneratedMessageReflection*
  34. packetc2l_change_table_reflection_ = NULL;
  35. const ::google::protobuf::Descriptor* packetl2c_change_table_result_descriptor_ = NULL;
  36. const ::google::protobuf::internal::GeneratedMessageReflection*
  37. packetl2c_change_table_result_reflection_ = NULL;
  38. const ::google::protobuf::Descriptor* packetc2l_leave_table_descriptor_ = NULL;
  39. const ::google::protobuf::internal::GeneratedMessageReflection*
  40. packetc2l_leave_table_reflection_ = NULL;
  41. const ::google::protobuf::Descriptor* packetl2c_leave_table_result_descriptor_ = NULL;
  42. const ::google::protobuf::internal::GeneratedMessageReflection*
  43. packetl2c_leave_table_result_reflection_ = NULL;
  44. const ::google::protobuf::Descriptor* packetc2l_check_state_descriptor_ = NULL;
  45. const ::google::protobuf::internal::GeneratedMessageReflection*
  46. packetc2l_check_state_reflection_ = NULL;
  47. const ::google::protobuf::Descriptor* skill_unit_descriptor_ = NULL;
  48. const ::google::protobuf::internal::GeneratedMessageReflection*
  49. skill_unit_reflection_ = NULL;
  50. const ::google::protobuf::Descriptor* turret_unit_descriptor_ = NULL;
  51. const ::google::protobuf::internal::GeneratedMessageReflection*
  52. turret_unit_reflection_ = NULL;
  53. const ::google::protobuf::Descriptor* wing_unit_descriptor_ = NULL;
  54. const ::google::protobuf::internal::GeneratedMessageReflection*
  55. wing_unit_reflection_ = NULL;
  56. const ::google::protobuf::Descriptor* packetl2c_check_state_result_descriptor_ = NULL;
  57. const ::google::protobuf::internal::GeneratedMessageReflection*
  58. packetl2c_check_state_result_reflection_ = NULL;
  59. const ::google::protobuf::Descriptor* packetc2l_buy_item_descriptor_ = NULL;
  60. const ::google::protobuf::internal::GeneratedMessageReflection*
  61. packetc2l_buy_item_reflection_ = NULL;
  62. const ::google::protobuf::Descriptor* packetl2c_buy_item_result_descriptor_ = NULL;
  63. const ::google::protobuf::internal::GeneratedMessageReflection*
  64. packetl2c_buy_item_result_reflection_ = NULL;
  65. const ::google::protobuf::Descriptor* packetc2l_use_item_descriptor_ = NULL;
  66. const ::google::protobuf::internal::GeneratedMessageReflection*
  67. packetc2l_use_item_reflection_ = NULL;
  68. const ::google::protobuf::Descriptor* getItemsInfo_descriptor_ = NULL;
  69. const ::google::protobuf::internal::GeneratedMessageReflection*
  70. getItemsInfo_reflection_ = NULL;
  71. const ::google::protobuf::Descriptor* ItemInfo_descriptor_ = NULL;
  72. const ::google::protobuf::internal::GeneratedMessageReflection*
  73. ItemInfo_reflection_ = NULL;
  74. const ::google::protobuf::Descriptor* packetl2c_use_item_result_descriptor_ = NULL;
  75. const ::google::protobuf::internal::GeneratedMessageReflection*
  76. packetl2c_use_item_result_reflection_ = NULL;
  77. const ::google::protobuf::Descriptor* packetc2l_change_turret_descriptor_ = NULL;
  78. const ::google::protobuf::internal::GeneratedMessageReflection*
  79. packetc2l_change_turret_reflection_ = NULL;
  80. const ::google::protobuf::Descriptor* packetl2c_change_turret_result_descriptor_ = NULL;
  81. const ::google::protobuf::internal::GeneratedMessageReflection*
  82. packetl2c_change_turret_result_reflection_ = NULL;
  83. const ::google::protobuf::Descriptor* PointsRankInfo_descriptor_ = NULL;
  84. const ::google::protobuf::internal::GeneratedMessageReflection*
  85. PointsRankInfo_reflection_ = NULL;
  86. const ::google::protobuf::Descriptor* packetc2l_get_points_rank_descriptor_ = NULL;
  87. const ::google::protobuf::internal::GeneratedMessageReflection*
  88. packetc2l_get_points_rank_reflection_ = NULL;
  89. const ::google::protobuf::Descriptor* packetl2c_get_points_rank_result_descriptor_ = NULL;
  90. const ::google::protobuf::internal::GeneratedMessageReflection*
  91. packetl2c_get_points_rank_result_reflection_ = NULL;
  92. const ::google::protobuf::Descriptor* exItemInfo_descriptor_ = NULL;
  93. const ::google::protobuf::internal::GeneratedMessageReflection*
  94. exItemInfo_reflection_ = NULL;
  95. const ::google::protobuf::Descriptor* packetc2l_medium_grade_exchange_descriptor_ = NULL;
  96. const ::google::protobuf::internal::GeneratedMessageReflection*
  97. packetc2l_medium_grade_exchange_reflection_ = NULL;
  98. const ::google::protobuf::Descriptor* pointsInfo_descriptor_ = NULL;
  99. const ::google::protobuf::internal::GeneratedMessageReflection*
  100. pointsInfo_reflection_ = NULL;
  101. const ::google::protobuf::Descriptor* packetl2c_medium_grade_exchange_result_descriptor_ = NULL;
  102. const ::google::protobuf::internal::GeneratedMessageReflection*
  103. packetl2c_medium_grade_exchange_result_reflection_ = NULL;
  104. const ::google::protobuf::Descriptor* packetc2l_get_shoplist_descriptor_ = NULL;
  105. const ::google::protobuf::internal::GeneratedMessageReflection*
  106. packetc2l_get_shoplist_reflection_ = NULL;
  107. const ::google::protobuf::Descriptor* msg_shopitem_descriptor_ = NULL;
  108. const ::google::protobuf::internal::GeneratedMessageReflection*
  109. msg_shopitem_reflection_ = NULL;
  110. const ::google::protobuf::Descriptor* packetl2c_get_shoplist_result_descriptor_ = NULL;
  111. const ::google::protobuf::internal::GeneratedMessageReflection*
  112. packetl2c_get_shoplist_result_reflection_ = NULL;
  113. const ::google::protobuf::Descriptor* packetc2l_turret_levelup_descriptor_ = NULL;
  114. const ::google::protobuf::internal::GeneratedMessageReflection*
  115. packetc2l_turret_levelup_reflection_ = NULL;
  116. const ::google::protobuf::Descriptor* packetl2c_turret_levelup_result_descriptor_ = NULL;
  117. const ::google::protobuf::internal::GeneratedMessageReflection*
  118. packetl2c_turret_levelup_result_reflection_ = NULL;
  119. const ::google::protobuf::Descriptor* packetl2c_player_auto_levelup_descriptor_ = NULL;
  120. const ::google::protobuf::internal::GeneratedMessageReflection*
  121. packetl2c_player_auto_levelup_reflection_ = NULL;
  122. const ::google::protobuf::Descriptor* packetl2c_give_item_result_descriptor_ = NULL;
  123. const ::google::protobuf::internal::GeneratedMessageReflection*
  124. packetl2c_give_item_result_reflection_ = NULL;
  125. const ::google::protobuf::Descriptor* packetc2l_buy_func_item_descriptor_ = NULL;
  126. const ::google::protobuf::internal::GeneratedMessageReflection*
  127. packetc2l_buy_func_item_reflection_ = NULL;
  128. const ::google::protobuf::Descriptor* packetl2c_buy_func_item_result_descriptor_ = NULL;
  129. const ::google::protobuf::internal::GeneratedMessageReflection*
  130. packetl2c_buy_func_item_result_reflection_ = NULL;
  131. const ::google::protobuf::Descriptor* packetc2l_torpedo_exchange_descriptor_ = NULL;
  132. const ::google::protobuf::internal::GeneratedMessageReflection*
  133. packetc2l_torpedo_exchange_reflection_ = NULL;
  134. const ::google::protobuf::Descriptor* packetl2c_torpedo_exchange_result_descriptor_ = NULL;
  135. const ::google::protobuf::internal::GeneratedMessageReflection*
  136. packetl2c_torpedo_exchange_result_reflection_ = NULL;
  137. const ::google::protobuf::Descriptor* packetc2l_torpedo_compose_descriptor_ = NULL;
  138. const ::google::protobuf::internal::GeneratedMessageReflection*
  139. packetc2l_torpedo_compose_reflection_ = NULL;
  140. const ::google::protobuf::Descriptor* packetl2c_torpedo_compose_result_descriptor_ = NULL;
  141. const ::google::protobuf::internal::GeneratedMessageReflection*
  142. packetl2c_torpedo_compose_result_reflection_ = NULL;
  143. const ::google::protobuf::Descriptor* msg_airdropitem_descriptor_ = NULL;
  144. const ::google::protobuf::internal::GeneratedMessageReflection*
  145. msg_airdropitem_reflection_ = NULL;
  146. const ::google::protobuf::Descriptor* packetl2c_get_airdrop_list_result_descriptor_ = NULL;
  147. const ::google::protobuf::internal::GeneratedMessageReflection*
  148. packetl2c_get_airdrop_list_result_reflection_ = NULL;
  149. const ::google::protobuf::Descriptor* packetc2l_goldfish_lottery_descriptor_ = NULL;
  150. const ::google::protobuf::internal::GeneratedMessageReflection*
  151. packetc2l_goldfish_lottery_reflection_ = NULL;
  152. const ::google::protobuf::Descriptor* packetl2c_goldfish_lottery_result_descriptor_ = NULL;
  153. const ::google::protobuf::internal::GeneratedMessageReflection*
  154. packetl2c_goldfish_lottery_result_reflection_ = NULL;
  155. const ::google::protobuf::Descriptor* packetl2c_bc_table_finish_turntablefish_balance_descriptor_ = NULL;
  156. const ::google::protobuf::internal::GeneratedMessageReflection*
  157. packetl2c_bc_table_finish_turntablefish_balance_reflection_ = NULL;
  158. const ::google::protobuf::Descriptor* packetc2l_exchange_dimensity_descriptor_ = NULL;
  159. const ::google::protobuf::internal::GeneratedMessageReflection*
  160. packetc2l_exchange_dimensity_reflection_ = NULL;
  161. const ::google::protobuf::Descriptor* packetl2c_exchange_dimensity_result_descriptor_ = NULL;
  162. const ::google::protobuf::internal::GeneratedMessageReflection*
  163. packetl2c_exchange_dimensity_result_reflection_ = NULL;
  164. const ::google::protobuf::Descriptor* packetc2l_lucky_lottery_descriptor_ = NULL;
  165. const ::google::protobuf::internal::GeneratedMessageReflection*
  166. packetc2l_lucky_lottery_reflection_ = NULL;
  167. const ::google::protobuf::Descriptor* packetl2c_lucky_lottery_result_descriptor_ = NULL;
  168. const ::google::protobuf::internal::GeneratedMessageReflection*
  169. packetl2c_lucky_lottery_result_reflection_ = NULL;
  170. const ::google::protobuf::Descriptor* recordInfo_descriptor_ = NULL;
  171. const ::google::protobuf::internal::GeneratedMessageReflection*
  172. recordInfo_reflection_ = NULL;
  173. const ::google::protobuf::Descriptor* packetc2l_syn_record_info_descriptor_ = NULL;
  174. const ::google::protobuf::internal::GeneratedMessageReflection*
  175. packetc2l_syn_record_info_reflection_ = NULL;
  176. const ::google::protobuf::Descriptor* packetc2l_auto_fire_descriptor_ = NULL;
  177. const ::google::protobuf::internal::GeneratedMessageReflection*
  178. packetc2l_auto_fire_reflection_ = NULL;
  179. const ::google::protobuf::Descriptor* packetc2l_change_headid_descriptor_ = NULL;
  180. const ::google::protobuf::internal::GeneratedMessageReflection*
  181. packetc2l_change_headid_reflection_ = NULL;
  182. const ::google::protobuf::Descriptor* packetl2c_change_headid_result_descriptor_ = NULL;
  183. const ::google::protobuf::internal::GeneratedMessageReflection*
  184. packetl2c_change_headid_result_reflection_ = NULL;
  185. const ::google::protobuf::Descriptor* packetc2l_rand_turret_addition_descriptor_ = NULL;
  186. const ::google::protobuf::internal::GeneratedMessageReflection*
  187. packetc2l_rand_turret_addition_reflection_ = NULL;
  188. const ::google::protobuf::Descriptor* packetl2c_rand_turret_addition_result_descriptor_ = NULL;
  189. const ::google::protobuf::internal::GeneratedMessageReflection*
  190. packetl2c_rand_turret_addition_result_reflection_ = NULL;
  191. const ::google::protobuf::Descriptor* packetc2l_turret_addition_confirm_descriptor_ = NULL;
  192. const ::google::protobuf::internal::GeneratedMessageReflection*
  193. packetc2l_turret_addition_confirm_reflection_ = NULL;
  194. const ::google::protobuf::Descriptor* packetl2c_turret_addition_confirm_result_descriptor_ = NULL;
  195. const ::google::protobuf::internal::GeneratedMessageReflection*
  196. packetl2c_turret_addition_confirm_result_reflection_ = NULL;
  197. const ::google::protobuf::Descriptor* packetc2l_turret_addition_reset_descriptor_ = NULL;
  198. const ::google::protobuf::internal::GeneratedMessageReflection*
  199. packetc2l_turret_addition_reset_reflection_ = NULL;
  200. const ::google::protobuf::Descriptor* packetl2c_turret_addition_reset_result_descriptor_ = NULL;
  201. const ::google::protobuf::internal::GeneratedMessageReflection*
  202. packetl2c_turret_addition_reset_result_reflection_ = NULL;
  203. } // namespace
  204. void protobuf_AssignDesc_fish_5fprotocol_2eproto() {
  205. protobuf_AddDesc_fish_5fprotocol_2eproto();
  206. const ::google::protobuf::FileDescriptor* file =
  207. ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
  208. "fish_protocol.proto");
  209. GOOGLE_CHECK(file != NULL);
  210. packetc2l_get_room_info_descriptor_ = file->message_type(0);
  211. static const int packetc2l_get_room_info_offsets_[1] = {
  212. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_room_info, packet_id_),
  213. };
  214. packetc2l_get_room_info_reflection_ =
  215. new ::google::protobuf::internal::GeneratedMessageReflection(
  216. packetc2l_get_room_info_descriptor_,
  217. packetc2l_get_room_info::default_instance_,
  218. packetc2l_get_room_info_offsets_,
  219. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_room_info, _has_bits_[0]),
  220. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_room_info, _unknown_fields_),
  221. -1,
  222. ::google::protobuf::DescriptorPool::generated_pool(),
  223. ::google::protobuf::MessageFactory::generated_factory(),
  224. sizeof(packetc2l_get_room_info));
  225. msg_room_info_descriptor_ = file->message_type(1);
  226. static const int msg_room_info_offsets_[4] = {
  227. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_room_info, roomid_),
  228. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_room_info, player_count_),
  229. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_room_info, jackpot_),
  230. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_room_info, leftsecond_),
  231. };
  232. msg_room_info_reflection_ =
  233. new ::google::protobuf::internal::GeneratedMessageReflection(
  234. msg_room_info_descriptor_,
  235. msg_room_info::default_instance_,
  236. msg_room_info_offsets_,
  237. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_room_info, _has_bits_[0]),
  238. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_room_info, _unknown_fields_),
  239. -1,
  240. ::google::protobuf::DescriptorPool::generated_pool(),
  241. ::google::protobuf::MessageFactory::generated_factory(),
  242. sizeof(msg_room_info));
  243. packetl2c_get_room_info_result_descriptor_ = file->message_type(2);
  244. static const int packetl2c_get_room_info_result_offsets_[2] = {
  245. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_room_info_result, packet_id_),
  246. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_room_info_result, rooms_),
  247. };
  248. packetl2c_get_room_info_result_reflection_ =
  249. new ::google::protobuf::internal::GeneratedMessageReflection(
  250. packetl2c_get_room_info_result_descriptor_,
  251. packetl2c_get_room_info_result::default_instance_,
  252. packetl2c_get_room_info_result_offsets_,
  253. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_room_info_result, _has_bits_[0]),
  254. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_room_info_result, _unknown_fields_),
  255. -1,
  256. ::google::protobuf::DescriptorPool::generated_pool(),
  257. ::google::protobuf::MessageFactory::generated_factory(),
  258. sizeof(packetl2c_get_room_info_result));
  259. packetc2l_enter_table_descriptor_ = file->message_type(3);
  260. static const int packetc2l_enter_table_offsets_[2] = {
  261. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_enter_table, packet_id_),
  262. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_enter_table, roomid_),
  263. };
  264. packetc2l_enter_table_reflection_ =
  265. new ::google::protobuf::internal::GeneratedMessageReflection(
  266. packetc2l_enter_table_descriptor_,
  267. packetc2l_enter_table::default_instance_,
  268. packetc2l_enter_table_offsets_,
  269. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_enter_table, _has_bits_[0]),
  270. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_enter_table, _unknown_fields_),
  271. -1,
  272. ::google::protobuf::DescriptorPool::generated_pool(),
  273. ::google::protobuf::MessageFactory::generated_factory(),
  274. sizeof(packetc2l_enter_table));
  275. packetl2c_enter_table_result_descriptor_ = file->message_type(4);
  276. static const int packetl2c_enter_table_result_offsets_[4] = {
  277. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_enter_table_result, packet_id_),
  278. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_enter_table_result, result_),
  279. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_enter_table_result, roomid_),
  280. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_enter_table_result, isrecvgemreward_),
  281. };
  282. packetl2c_enter_table_result_reflection_ =
  283. new ::google::protobuf::internal::GeneratedMessageReflection(
  284. packetl2c_enter_table_result_descriptor_,
  285. packetl2c_enter_table_result::default_instance_,
  286. packetl2c_enter_table_result_offsets_,
  287. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_enter_table_result, _has_bits_[0]),
  288. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_enter_table_result, _unknown_fields_),
  289. -1,
  290. ::google::protobuf::DescriptorPool::generated_pool(),
  291. ::google::protobuf::MessageFactory::generated_factory(),
  292. sizeof(packetl2c_enter_table_result));
  293. packetc2l_change_table_descriptor_ = file->message_type(5);
  294. static const int packetc2l_change_table_offsets_[1] = {
  295. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_change_table, packet_id_),
  296. };
  297. packetc2l_change_table_reflection_ =
  298. new ::google::protobuf::internal::GeneratedMessageReflection(
  299. packetc2l_change_table_descriptor_,
  300. packetc2l_change_table::default_instance_,
  301. packetc2l_change_table_offsets_,
  302. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_change_table, _has_bits_[0]),
  303. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_change_table, _unknown_fields_),
  304. -1,
  305. ::google::protobuf::DescriptorPool::generated_pool(),
  306. ::google::protobuf::MessageFactory::generated_factory(),
  307. sizeof(packetc2l_change_table));
  308. packetl2c_change_table_result_descriptor_ = file->message_type(6);
  309. static const int packetl2c_change_table_result_offsets_[2] = {
  310. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_change_table_result, packet_id_),
  311. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_change_table_result, result_),
  312. };
  313. packetl2c_change_table_result_reflection_ =
  314. new ::google::protobuf::internal::GeneratedMessageReflection(
  315. packetl2c_change_table_result_descriptor_,
  316. packetl2c_change_table_result::default_instance_,
  317. packetl2c_change_table_result_offsets_,
  318. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_change_table_result, _has_bits_[0]),
  319. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_change_table_result, _unknown_fields_),
  320. -1,
  321. ::google::protobuf::DescriptorPool::generated_pool(),
  322. ::google::protobuf::MessageFactory::generated_factory(),
  323. sizeof(packetl2c_change_table_result));
  324. packetc2l_leave_table_descriptor_ = file->message_type(7);
  325. static const int packetc2l_leave_table_offsets_[1] = {
  326. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_leave_table, packet_id_),
  327. };
  328. packetc2l_leave_table_reflection_ =
  329. new ::google::protobuf::internal::GeneratedMessageReflection(
  330. packetc2l_leave_table_descriptor_,
  331. packetc2l_leave_table::default_instance_,
  332. packetc2l_leave_table_offsets_,
  333. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_leave_table, _has_bits_[0]),
  334. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_leave_table, _unknown_fields_),
  335. -1,
  336. ::google::protobuf::DescriptorPool::generated_pool(),
  337. ::google::protobuf::MessageFactory::generated_factory(),
  338. sizeof(packetc2l_leave_table));
  339. packetl2c_leave_table_result_descriptor_ = file->message_type(8);
  340. static const int packetl2c_leave_table_result_offsets_[4] = {
  341. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_leave_table_result, packet_id_),
  342. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_leave_table_result, sync_gold_),
  343. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_leave_table_result, syncdbchip_),
  344. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_leave_table_result, playerexp_),
  345. };
  346. packetl2c_leave_table_result_reflection_ =
  347. new ::google::protobuf::internal::GeneratedMessageReflection(
  348. packetl2c_leave_table_result_descriptor_,
  349. packetl2c_leave_table_result::default_instance_,
  350. packetl2c_leave_table_result_offsets_,
  351. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_leave_table_result, _has_bits_[0]),
  352. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_leave_table_result, _unknown_fields_),
  353. -1,
  354. ::google::protobuf::DescriptorPool::generated_pool(),
  355. ::google::protobuf::MessageFactory::generated_factory(),
  356. sizeof(packetl2c_leave_table_result));
  357. packetc2l_check_state_descriptor_ = file->message_type(9);
  358. static const int packetc2l_check_state_offsets_[1] = {
  359. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_check_state, packet_id_),
  360. };
  361. packetc2l_check_state_reflection_ =
  362. new ::google::protobuf::internal::GeneratedMessageReflection(
  363. packetc2l_check_state_descriptor_,
  364. packetc2l_check_state::default_instance_,
  365. packetc2l_check_state_offsets_,
  366. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_check_state, _has_bits_[0]),
  367. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_check_state, _unknown_fields_),
  368. -1,
  369. ::google::protobuf::DescriptorPool::generated_pool(),
  370. ::google::protobuf::MessageFactory::generated_factory(),
  371. sizeof(packetc2l_check_state));
  372. skill_unit_descriptor_ = file->message_type(10);
  373. static const int skill_unit_offsets_[2] = {
  374. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(skill_unit, skillid_),
  375. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(skill_unit, addtimes_),
  376. };
  377. skill_unit_reflection_ =
  378. new ::google::protobuf::internal::GeneratedMessageReflection(
  379. skill_unit_descriptor_,
  380. skill_unit::default_instance_,
  381. skill_unit_offsets_,
  382. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(skill_unit, _has_bits_[0]),
  383. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(skill_unit, _unknown_fields_),
  384. -1,
  385. ::google::protobuf::DescriptorPool::generated_pool(),
  386. ::google::protobuf::MessageFactory::generated_factory(),
  387. sizeof(skill_unit));
  388. turret_unit_descriptor_ = file->message_type(11);
  389. static const int turret_unit_offsets_[4] = {
  390. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(turret_unit, turretid_),
  391. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(turret_unit, additionlv_),
  392. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(turret_unit, endtime_),
  393. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(turret_unit, addtionlist_),
  394. };
  395. turret_unit_reflection_ =
  396. new ::google::protobuf::internal::GeneratedMessageReflection(
  397. turret_unit_descriptor_,
  398. turret_unit::default_instance_,
  399. turret_unit_offsets_,
  400. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(turret_unit, _has_bits_[0]),
  401. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(turret_unit, _unknown_fields_),
  402. -1,
  403. ::google::protobuf::DescriptorPool::generated_pool(),
  404. ::google::protobuf::MessageFactory::generated_factory(),
  405. sizeof(turret_unit));
  406. wing_unit_descriptor_ = file->message_type(12);
  407. static const int wing_unit_offsets_[6] = {
  408. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(wing_unit, wingid_),
  409. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(wing_unit, additionlv_),
  410. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(wing_unit, endtime_),
  411. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(wing_unit, randtimes_),
  412. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(wing_unit, randid_),
  413. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(wing_unit, addtionlist_),
  414. };
  415. wing_unit_reflection_ =
  416. new ::google::protobuf::internal::GeneratedMessageReflection(
  417. wing_unit_descriptor_,
  418. wing_unit::default_instance_,
  419. wing_unit_offsets_,
  420. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(wing_unit, _has_bits_[0]),
  421. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(wing_unit, _unknown_fields_),
  422. -1,
  423. ::google::protobuf::DescriptorPool::generated_pool(),
  424. ::google::protobuf::MessageFactory::generated_factory(),
  425. sizeof(wing_unit));
  426. packetl2c_check_state_result_descriptor_ = file->message_type(13);
  427. static const int packetl2c_check_state_result_offsets_[22] = {
  428. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_check_state_result, packet_id_),
  429. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_check_state_result, is_intable_),
  430. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_check_state_result, itemlist_),
  431. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_check_state_result, turretlist_),
  432. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_check_state_result, winglist_),
  433. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_check_state_result, turret_id_),
  434. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_check_state_result, wing_id_),
  435. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_check_state_result, headid_),
  436. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_check_state_result, frameid_),
  437. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_check_state_result, playerlvl_),
  438. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_check_state_result, turretlvl_),
  439. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_check_state_result, gameexp_),
  440. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_check_state_result, dimensity_),
  441. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_check_state_result, roomid_),
  442. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_check_state_result, kill_goldfish_count_),
  443. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_check_state_result, goldfish_pool_),
  444. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_check_state_result, goldfish_lottery_count_),
  445. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_check_state_result, dailyadtimes_),
  446. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_check_state_result, redenvlopeinfos_),
  447. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_check_state_result, autofirelefttime_),
  448. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_check_state_result, canreceivetommorrowbuffcount_),
  449. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_check_state_result, canreceivetommorrowbufftoday_),
  450. };
  451. packetl2c_check_state_result_reflection_ =
  452. new ::google::protobuf::internal::GeneratedMessageReflection(
  453. packetl2c_check_state_result_descriptor_,
  454. packetl2c_check_state_result::default_instance_,
  455. packetl2c_check_state_result_offsets_,
  456. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_check_state_result, _has_bits_[0]),
  457. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_check_state_result, _unknown_fields_),
  458. -1,
  459. ::google::protobuf::DescriptorPool::generated_pool(),
  460. ::google::protobuf::MessageFactory::generated_factory(),
  461. sizeof(packetl2c_check_state_result));
  462. packetc2l_buy_item_descriptor_ = file->message_type(14);
  463. static const int packetc2l_buy_item_offsets_[4] = {
  464. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_buy_item, packet_id_),
  465. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_buy_item, isshop_),
  466. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_buy_item, shop_id_),
  467. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_buy_item, shop_count_),
  468. };
  469. packetc2l_buy_item_reflection_ =
  470. new ::google::protobuf::internal::GeneratedMessageReflection(
  471. packetc2l_buy_item_descriptor_,
  472. packetc2l_buy_item::default_instance_,
  473. packetc2l_buy_item_offsets_,
  474. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_buy_item, _has_bits_[0]),
  475. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_buy_item, _unknown_fields_),
  476. -1,
  477. ::google::protobuf::DescriptorPool::generated_pool(),
  478. ::google::protobuf::MessageFactory::generated_factory(),
  479. sizeof(packetc2l_buy_item));
  480. packetl2c_buy_item_result_descriptor_ = file->message_type(15);
  481. static const int packetl2c_buy_item_result_offsets_[4] = {
  482. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_buy_item_result, packet_id_),
  483. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_buy_item_result, shop_id_),
  484. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_buy_item_result, result_),
  485. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_buy_item_result, shop_count_),
  486. };
  487. packetl2c_buy_item_result_reflection_ =
  488. new ::google::protobuf::internal::GeneratedMessageReflection(
  489. packetl2c_buy_item_result_descriptor_,
  490. packetl2c_buy_item_result::default_instance_,
  491. packetl2c_buy_item_result_offsets_,
  492. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_buy_item_result, _has_bits_[0]),
  493. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_buy_item_result, _unknown_fields_),
  494. -1,
  495. ::google::protobuf::DescriptorPool::generated_pool(),
  496. ::google::protobuf::MessageFactory::generated_factory(),
  497. sizeof(packetl2c_buy_item_result));
  498. packetc2l_use_item_descriptor_ = file->message_type(16);
  499. static const int packetc2l_use_item_offsets_[3] = {
  500. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_use_item, packet_id_),
  501. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_use_item, item_id_),
  502. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_use_item, whereuse_),
  503. };
  504. packetc2l_use_item_reflection_ =
  505. new ::google::protobuf::internal::GeneratedMessageReflection(
  506. packetc2l_use_item_descriptor_,
  507. packetc2l_use_item::default_instance_,
  508. packetc2l_use_item_offsets_,
  509. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_use_item, _has_bits_[0]),
  510. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_use_item, _unknown_fields_),
  511. -1,
  512. ::google::protobuf::DescriptorPool::generated_pool(),
  513. ::google::protobuf::MessageFactory::generated_factory(),
  514. sizeof(packetc2l_use_item));
  515. getItemsInfo_descriptor_ = file->message_type(17);
  516. static const int getItemsInfo_offsets_[2] = {
  517. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(getItemsInfo, itemid_),
  518. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(getItemsInfo, itemcount_),
  519. };
  520. getItemsInfo_reflection_ =
  521. new ::google::protobuf::internal::GeneratedMessageReflection(
  522. getItemsInfo_descriptor_,
  523. getItemsInfo::default_instance_,
  524. getItemsInfo_offsets_,
  525. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(getItemsInfo, _has_bits_[0]),
  526. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(getItemsInfo, _unknown_fields_),
  527. -1,
  528. ::google::protobuf::DescriptorPool::generated_pool(),
  529. ::google::protobuf::MessageFactory::generated_factory(),
  530. sizeof(getItemsInfo));
  531. ItemInfo_descriptor_ = file->message_type(18);
  532. static const int ItemInfo_offsets_[2] = {
  533. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ItemInfo, itemid_),
  534. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ItemInfo, count_),
  535. };
  536. ItemInfo_reflection_ =
  537. new ::google::protobuf::internal::GeneratedMessageReflection(
  538. ItemInfo_descriptor_,
  539. ItemInfo::default_instance_,
  540. ItemInfo_offsets_,
  541. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ItemInfo, _has_bits_[0]),
  542. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ItemInfo, _unknown_fields_),
  543. -1,
  544. ::google::protobuf::DescriptorPool::generated_pool(),
  545. ::google::protobuf::MessageFactory::generated_factory(),
  546. sizeof(ItemInfo));
  547. packetl2c_use_item_result_descriptor_ = file->message_type(19);
  548. static const int packetl2c_use_item_result_offsets_[8] = {
  549. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_use_item_result, packet_id_),
  550. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_use_item_result, pid_),
  551. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_use_item_result, item_id_),
  552. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_use_item_result, result_),
  553. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_use_item_result, item_count_),
  554. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_use_item_result, whereuse_),
  555. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_use_item_result, score_),
  556. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_use_item_result, items_),
  557. };
  558. packetl2c_use_item_result_reflection_ =
  559. new ::google::protobuf::internal::GeneratedMessageReflection(
  560. packetl2c_use_item_result_descriptor_,
  561. packetl2c_use_item_result::default_instance_,
  562. packetl2c_use_item_result_offsets_,
  563. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_use_item_result, _has_bits_[0]),
  564. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_use_item_result, _unknown_fields_),
  565. -1,
  566. ::google::protobuf::DescriptorPool::generated_pool(),
  567. ::google::protobuf::MessageFactory::generated_factory(),
  568. sizeof(packetl2c_use_item_result));
  569. packetc2l_change_turret_descriptor_ = file->message_type(20);
  570. static const int packetc2l_change_turret_offsets_[3] = {
  571. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_change_turret, packet_id_),
  572. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_change_turret, turret_id_),
  573. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_change_turret, wing_id_),
  574. };
  575. packetc2l_change_turret_reflection_ =
  576. new ::google::protobuf::internal::GeneratedMessageReflection(
  577. packetc2l_change_turret_descriptor_,
  578. packetc2l_change_turret::default_instance_,
  579. packetc2l_change_turret_offsets_,
  580. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_change_turret, _has_bits_[0]),
  581. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_change_turret, _unknown_fields_),
  582. -1,
  583. ::google::protobuf::DescriptorPool::generated_pool(),
  584. ::google::protobuf::MessageFactory::generated_factory(),
  585. sizeof(packetc2l_change_turret));
  586. packetl2c_change_turret_result_descriptor_ = file->message_type(21);
  587. static const int packetl2c_change_turret_result_offsets_[7] = {
  588. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_change_turret_result, packet_id_),
  589. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_change_turret_result, result_),
  590. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_change_turret_result, player_id_),
  591. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_change_turret_result, turret_id_),
  592. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_change_turret_result, turret_lv_),
  593. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_change_turret_result, wing_id_),
  594. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_change_turret_result, wing_lv_),
  595. };
  596. packetl2c_change_turret_result_reflection_ =
  597. new ::google::protobuf::internal::GeneratedMessageReflection(
  598. packetl2c_change_turret_result_descriptor_,
  599. packetl2c_change_turret_result::default_instance_,
  600. packetl2c_change_turret_result_offsets_,
  601. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_change_turret_result, _has_bits_[0]),
  602. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_change_turret_result, _unknown_fields_),
  603. -1,
  604. ::google::protobuf::DescriptorPool::generated_pool(),
  605. ::google::protobuf::MessageFactory::generated_factory(),
  606. sizeof(packetl2c_change_turret_result));
  607. PointsRankInfo_descriptor_ = file->message_type(22);
  608. static const int PointsRankInfo_offsets_[8] = {
  609. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PointsRankInfo, rank_),
  610. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PointsRankInfo, playerid_),
  611. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PointsRankInfo, nickname_),
  612. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PointsRankInfo, points_),
  613. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PointsRankInfo, singlemax_),
  614. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PointsRankInfo, viplv_),
  615. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PointsRankInfo, headid_),
  616. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PointsRankInfo, frameid_),
  617. };
  618. PointsRankInfo_reflection_ =
  619. new ::google::protobuf::internal::GeneratedMessageReflection(
  620. PointsRankInfo_descriptor_,
  621. PointsRankInfo::default_instance_,
  622. PointsRankInfo_offsets_,
  623. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PointsRankInfo, _has_bits_[0]),
  624. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PointsRankInfo, _unknown_fields_),
  625. -1,
  626. ::google::protobuf::DescriptorPool::generated_pool(),
  627. ::google::protobuf::MessageFactory::generated_factory(),
  628. sizeof(PointsRankInfo));
  629. packetc2l_get_points_rank_descriptor_ = file->message_type(23);
  630. static const int packetc2l_get_points_rank_offsets_[1] = {
  631. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_points_rank, packet_id_),
  632. };
  633. packetc2l_get_points_rank_reflection_ =
  634. new ::google::protobuf::internal::GeneratedMessageReflection(
  635. packetc2l_get_points_rank_descriptor_,
  636. packetc2l_get_points_rank::default_instance_,
  637. packetc2l_get_points_rank_offsets_,
  638. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_points_rank, _has_bits_[0]),
  639. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_points_rank, _unknown_fields_),
  640. -1,
  641. ::google::protobuf::DescriptorPool::generated_pool(),
  642. ::google::protobuf::MessageFactory::generated_factory(),
  643. sizeof(packetc2l_get_points_rank));
  644. packetl2c_get_points_rank_result_descriptor_ = file->message_type(24);
  645. static const int packetl2c_get_points_rank_result_offsets_[9] = {
  646. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_points_rank_result, packet_id_),
  647. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_points_rank_result, mypoint_),
  648. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_points_rank_result, mysinglepoint_),
  649. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_points_rank_result, pointranklist_),
  650. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_points_rank_result, luckyranklist_),
  651. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_points_rank_result, pointthresholdvalue_),
  652. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_points_rank_result, luckythresholdvalue_),
  653. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_points_rank_result, mypointrank_),
  654. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_points_rank_result, myluckyrank_),
  655. };
  656. packetl2c_get_points_rank_result_reflection_ =
  657. new ::google::protobuf::internal::GeneratedMessageReflection(
  658. packetl2c_get_points_rank_result_descriptor_,
  659. packetl2c_get_points_rank_result::default_instance_,
  660. packetl2c_get_points_rank_result_offsets_,
  661. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_points_rank_result, _has_bits_[0]),
  662. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_points_rank_result, _unknown_fields_),
  663. -1,
  664. ::google::protobuf::DescriptorPool::generated_pool(),
  665. ::google::protobuf::MessageFactory::generated_factory(),
  666. sizeof(packetl2c_get_points_rank_result));
  667. exItemInfo_descriptor_ = file->message_type(25);
  668. static const int exItemInfo_offsets_[2] = {
  669. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(exItemInfo, ex_item_id_),
  670. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(exItemInfo, ex_item_count_),
  671. };
  672. exItemInfo_reflection_ =
  673. new ::google::protobuf::internal::GeneratedMessageReflection(
  674. exItemInfo_descriptor_,
  675. exItemInfo::default_instance_,
  676. exItemInfo_offsets_,
  677. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(exItemInfo, _has_bits_[0]),
  678. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(exItemInfo, _unknown_fields_),
  679. -1,
  680. ::google::protobuf::DescriptorPool::generated_pool(),
  681. ::google::protobuf::MessageFactory::generated_factory(),
  682. sizeof(exItemInfo));
  683. packetc2l_medium_grade_exchange_descriptor_ = file->message_type(26);
  684. static const int packetc2l_medium_grade_exchange_offsets_[3] = {
  685. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_medium_grade_exchange, packet_id_),
  686. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_medium_grade_exchange, exchange_id_),
  687. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_medium_grade_exchange, ex_reward_id_),
  688. };
  689. packetc2l_medium_grade_exchange_reflection_ =
  690. new ::google::protobuf::internal::GeneratedMessageReflection(
  691. packetc2l_medium_grade_exchange_descriptor_,
  692. packetc2l_medium_grade_exchange::default_instance_,
  693. packetc2l_medium_grade_exchange_offsets_,
  694. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_medium_grade_exchange, _has_bits_[0]),
  695. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_medium_grade_exchange, _unknown_fields_),
  696. -1,
  697. ::google::protobuf::DescriptorPool::generated_pool(),
  698. ::google::protobuf::MessageFactory::generated_factory(),
  699. sizeof(packetc2l_medium_grade_exchange));
  700. pointsInfo_descriptor_ = file->message_type(27);
  701. static const int pointsInfo_offsets_[2] = {
  702. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(pointsInfo, points_),
  703. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(pointsInfo, pointsex_),
  704. };
  705. pointsInfo_reflection_ =
  706. new ::google::protobuf::internal::GeneratedMessageReflection(
  707. pointsInfo_descriptor_,
  708. pointsInfo::default_instance_,
  709. pointsInfo_offsets_,
  710. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(pointsInfo, _has_bits_[0]),
  711. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(pointsInfo, _unknown_fields_),
  712. -1,
  713. ::google::protobuf::DescriptorPool::generated_pool(),
  714. ::google::protobuf::MessageFactory::generated_factory(),
  715. sizeof(pointsInfo));
  716. packetl2c_medium_grade_exchange_result_descriptor_ = file->message_type(28);
  717. static const int packetl2c_medium_grade_exchange_result_offsets_[5] = {
  718. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_medium_grade_exchange_result, packet_id_),
  719. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_medium_grade_exchange_result, result_),
  720. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_medium_grade_exchange_result, exchange_id_),
  721. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_medium_grade_exchange_result, ex_item_),
  722. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_medium_grade_exchange_result, points_),
  723. };
  724. packetl2c_medium_grade_exchange_result_reflection_ =
  725. new ::google::protobuf::internal::GeneratedMessageReflection(
  726. packetl2c_medium_grade_exchange_result_descriptor_,
  727. packetl2c_medium_grade_exchange_result::default_instance_,
  728. packetl2c_medium_grade_exchange_result_offsets_,
  729. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_medium_grade_exchange_result, _has_bits_[0]),
  730. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_medium_grade_exchange_result, _unknown_fields_),
  731. -1,
  732. ::google::protobuf::DescriptorPool::generated_pool(),
  733. ::google::protobuf::MessageFactory::generated_factory(),
  734. sizeof(packetl2c_medium_grade_exchange_result));
  735. packetc2l_get_shoplist_descriptor_ = file->message_type(29);
  736. static const int packetc2l_get_shoplist_offsets_[1] = {
  737. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_shoplist, packet_id_),
  738. };
  739. packetc2l_get_shoplist_reflection_ =
  740. new ::google::protobuf::internal::GeneratedMessageReflection(
  741. packetc2l_get_shoplist_descriptor_,
  742. packetc2l_get_shoplist::default_instance_,
  743. packetc2l_get_shoplist_offsets_,
  744. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_shoplist, _has_bits_[0]),
  745. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_shoplist, _unknown_fields_),
  746. -1,
  747. ::google::protobuf::DescriptorPool::generated_pool(),
  748. ::google::protobuf::MessageFactory::generated_factory(),
  749. sizeof(packetc2l_get_shoplist));
  750. msg_shopitem_descriptor_ = file->message_type(30);
  751. static const int msg_shopitem_offsets_[8] = {
  752. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_shopitem, shop_id_),
  753. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_shopitem, item_id_),
  754. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_shopitem, item_count_),
  755. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_shopitem, consume_type_),
  756. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_shopitem, consume_count_),
  757. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_shopitem, show_type_),
  758. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_shopitem, need_vip_),
  759. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_shopitem, show_tab_),
  760. };
  761. msg_shopitem_reflection_ =
  762. new ::google::protobuf::internal::GeneratedMessageReflection(
  763. msg_shopitem_descriptor_,
  764. msg_shopitem::default_instance_,
  765. msg_shopitem_offsets_,
  766. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_shopitem, _has_bits_[0]),
  767. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_shopitem, _unknown_fields_),
  768. -1,
  769. ::google::protobuf::DescriptorPool::generated_pool(),
  770. ::google::protobuf::MessageFactory::generated_factory(),
  771. sizeof(msg_shopitem));
  772. packetl2c_get_shoplist_result_descriptor_ = file->message_type(31);
  773. static const int packetl2c_get_shoplist_result_offsets_[2] = {
  774. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_shoplist_result, packet_id_),
  775. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_shoplist_result, shoplist_),
  776. };
  777. packetl2c_get_shoplist_result_reflection_ =
  778. new ::google::protobuf::internal::GeneratedMessageReflection(
  779. packetl2c_get_shoplist_result_descriptor_,
  780. packetl2c_get_shoplist_result::default_instance_,
  781. packetl2c_get_shoplist_result_offsets_,
  782. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_shoplist_result, _has_bits_[0]),
  783. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_shoplist_result, _unknown_fields_),
  784. -1,
  785. ::google::protobuf::DescriptorPool::generated_pool(),
  786. ::google::protobuf::MessageFactory::generated_factory(),
  787. sizeof(packetl2c_get_shoplist_result));
  788. packetc2l_turret_levelup_descriptor_ = file->message_type(32);
  789. static const int packetc2l_turret_levelup_offsets_[2] = {
  790. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_turret_levelup, packet_id_),
  791. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_turret_levelup, uselucky_),
  792. };
  793. packetc2l_turret_levelup_reflection_ =
  794. new ::google::protobuf::internal::GeneratedMessageReflection(
  795. packetc2l_turret_levelup_descriptor_,
  796. packetc2l_turret_levelup::default_instance_,
  797. packetc2l_turret_levelup_offsets_,
  798. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_turret_levelup, _has_bits_[0]),
  799. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_turret_levelup, _unknown_fields_),
  800. -1,
  801. ::google::protobuf::DescriptorPool::generated_pool(),
  802. ::google::protobuf::MessageFactory::generated_factory(),
  803. sizeof(packetc2l_turret_levelup));
  804. packetl2c_turret_levelup_result_descriptor_ = file->message_type(33);
  805. static const int packetl2c_turret_levelup_result_offsets_[6] = {
  806. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_turret_levelup_result, packet_id_),
  807. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_turret_levelup_result, result_),
  808. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_turret_levelup_result, usediamond_),
  809. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_turret_levelup_result, uselucky_),
  810. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_turret_levelup_result, cur_lv_),
  811. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_turret_levelup_result, cur_lucky_),
  812. };
  813. packetl2c_turret_levelup_result_reflection_ =
  814. new ::google::protobuf::internal::GeneratedMessageReflection(
  815. packetl2c_turret_levelup_result_descriptor_,
  816. packetl2c_turret_levelup_result::default_instance_,
  817. packetl2c_turret_levelup_result_offsets_,
  818. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_turret_levelup_result, _has_bits_[0]),
  819. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_turret_levelup_result, _unknown_fields_),
  820. -1,
  821. ::google::protobuf::DescriptorPool::generated_pool(),
  822. ::google::protobuf::MessageFactory::generated_factory(),
  823. sizeof(packetl2c_turret_levelup_result));
  824. packetl2c_player_auto_levelup_descriptor_ = file->message_type(34);
  825. static const int packetl2c_player_auto_levelup_offsets_[6] = {
  826. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_player_auto_levelup, packet_id_),
  827. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_player_auto_levelup, uplevel_),
  828. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_player_auto_levelup, award_gold_),
  829. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_player_auto_levelup, award_ticket_),
  830. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_player_auto_levelup, unlock_rate_),
  831. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_player_auto_levelup, award_item_),
  832. };
  833. packetl2c_player_auto_levelup_reflection_ =
  834. new ::google::protobuf::internal::GeneratedMessageReflection(
  835. packetl2c_player_auto_levelup_descriptor_,
  836. packetl2c_player_auto_levelup::default_instance_,
  837. packetl2c_player_auto_levelup_offsets_,
  838. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_player_auto_levelup, _has_bits_[0]),
  839. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_player_auto_levelup, _unknown_fields_),
  840. -1,
  841. ::google::protobuf::DescriptorPool::generated_pool(),
  842. ::google::protobuf::MessageFactory::generated_factory(),
  843. sizeof(packetl2c_player_auto_levelup));
  844. packetl2c_give_item_result_descriptor_ = file->message_type(35);
  845. static const int packetl2c_give_item_result_offsets_[3] = {
  846. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_give_item_result, packet_id_),
  847. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_give_item_result, itemid_),
  848. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_give_item_result, itemcount_),
  849. };
  850. packetl2c_give_item_result_reflection_ =
  851. new ::google::protobuf::internal::GeneratedMessageReflection(
  852. packetl2c_give_item_result_descriptor_,
  853. packetl2c_give_item_result::default_instance_,
  854. packetl2c_give_item_result_offsets_,
  855. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_give_item_result, _has_bits_[0]),
  856. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_give_item_result, _unknown_fields_),
  857. -1,
  858. ::google::protobuf::DescriptorPool::generated_pool(),
  859. ::google::protobuf::MessageFactory::generated_factory(),
  860. sizeof(packetl2c_give_item_result));
  861. packetc2l_buy_func_item_descriptor_ = file->message_type(36);
  862. static const int packetc2l_buy_func_item_offsets_[3] = {
  863. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_buy_func_item, packet_id_),
  864. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_buy_func_item, item_id_),
  865. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_buy_func_item, item_count_),
  866. };
  867. packetc2l_buy_func_item_reflection_ =
  868. new ::google::protobuf::internal::GeneratedMessageReflection(
  869. packetc2l_buy_func_item_descriptor_,
  870. packetc2l_buy_func_item::default_instance_,
  871. packetc2l_buy_func_item_offsets_,
  872. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_buy_func_item, _has_bits_[0]),
  873. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_buy_func_item, _unknown_fields_),
  874. -1,
  875. ::google::protobuf::DescriptorPool::generated_pool(),
  876. ::google::protobuf::MessageFactory::generated_factory(),
  877. sizeof(packetc2l_buy_func_item));
  878. packetl2c_buy_func_item_result_descriptor_ = file->message_type(37);
  879. static const int packetl2c_buy_func_item_result_offsets_[4] = {
  880. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_buy_func_item_result, packet_id_),
  881. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_buy_func_item_result, item_id_),
  882. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_buy_func_item_result, result_),
  883. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_buy_func_item_result, item_count_),
  884. };
  885. packetl2c_buy_func_item_result_reflection_ =
  886. new ::google::protobuf::internal::GeneratedMessageReflection(
  887. packetl2c_buy_func_item_result_descriptor_,
  888. packetl2c_buy_func_item_result::default_instance_,
  889. packetl2c_buy_func_item_result_offsets_,
  890. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_buy_func_item_result, _has_bits_[0]),
  891. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_buy_func_item_result, _unknown_fields_),
  892. -1,
  893. ::google::protobuf::DescriptorPool::generated_pool(),
  894. ::google::protobuf::MessageFactory::generated_factory(),
  895. sizeof(packetl2c_buy_func_item_result));
  896. packetc2l_torpedo_exchange_descriptor_ = file->message_type(38);
  897. static const int packetc2l_torpedo_exchange_offsets_[4] = {
  898. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_torpedo_exchange, packet_id_),
  899. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_torpedo_exchange, type_),
  900. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_torpedo_exchange, torpedo_id_),
  901. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_torpedo_exchange, torpedo_count_),
  902. };
  903. packetc2l_torpedo_exchange_reflection_ =
  904. new ::google::protobuf::internal::GeneratedMessageReflection(
  905. packetc2l_torpedo_exchange_descriptor_,
  906. packetc2l_torpedo_exchange::default_instance_,
  907. packetc2l_torpedo_exchange_offsets_,
  908. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_torpedo_exchange, _has_bits_[0]),
  909. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_torpedo_exchange, _unknown_fields_),
  910. -1,
  911. ::google::protobuf::DescriptorPool::generated_pool(),
  912. ::google::protobuf::MessageFactory::generated_factory(),
  913. sizeof(packetc2l_torpedo_exchange));
  914. packetl2c_torpedo_exchange_result_descriptor_ = file->message_type(39);
  915. static const int packetl2c_torpedo_exchange_result_offsets_[5] = {
  916. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_torpedo_exchange_result, packet_id_),
  917. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_torpedo_exchange_result, result_),
  918. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_torpedo_exchange_result, type_),
  919. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_torpedo_exchange_result, torpedo_id_),
  920. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_torpedo_exchange_result, torpedo_count_),
  921. };
  922. packetl2c_torpedo_exchange_result_reflection_ =
  923. new ::google::protobuf::internal::GeneratedMessageReflection(
  924. packetl2c_torpedo_exchange_result_descriptor_,
  925. packetl2c_torpedo_exchange_result::default_instance_,
  926. packetl2c_torpedo_exchange_result_offsets_,
  927. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_torpedo_exchange_result, _has_bits_[0]),
  928. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_torpedo_exchange_result, _unknown_fields_),
  929. -1,
  930. ::google::protobuf::DescriptorPool::generated_pool(),
  931. ::google::protobuf::MessageFactory::generated_factory(),
  932. sizeof(packetl2c_torpedo_exchange_result));
  933. packetc2l_torpedo_compose_descriptor_ = file->message_type(40);
  934. static const int packetc2l_torpedo_compose_offsets_[4] = {
  935. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_torpedo_compose, packet_id_),
  936. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_torpedo_compose, type_),
  937. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_torpedo_compose, compose_id_),
  938. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_torpedo_compose, compose_count_),
  939. };
  940. packetc2l_torpedo_compose_reflection_ =
  941. new ::google::protobuf::internal::GeneratedMessageReflection(
  942. packetc2l_torpedo_compose_descriptor_,
  943. packetc2l_torpedo_compose::default_instance_,
  944. packetc2l_torpedo_compose_offsets_,
  945. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_torpedo_compose, _has_bits_[0]),
  946. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_torpedo_compose, _unknown_fields_),
  947. -1,
  948. ::google::protobuf::DescriptorPool::generated_pool(),
  949. ::google::protobuf::MessageFactory::generated_factory(),
  950. sizeof(packetc2l_torpedo_compose));
  951. packetl2c_torpedo_compose_result_descriptor_ = file->message_type(41);
  952. static const int packetl2c_torpedo_compose_result_offsets_[4] = {
  953. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_torpedo_compose_result, packet_id_),
  954. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_torpedo_compose_result, result_),
  955. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_torpedo_compose_result, compose_id_),
  956. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_torpedo_compose_result, compose_count_),
  957. };
  958. packetl2c_torpedo_compose_result_reflection_ =
  959. new ::google::protobuf::internal::GeneratedMessageReflection(
  960. packetl2c_torpedo_compose_result_descriptor_,
  961. packetl2c_torpedo_compose_result::default_instance_,
  962. packetl2c_torpedo_compose_result_offsets_,
  963. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_torpedo_compose_result, _has_bits_[0]),
  964. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_torpedo_compose_result, _unknown_fields_),
  965. -1,
  966. ::google::protobuf::DescriptorPool::generated_pool(),
  967. ::google::protobuf::MessageFactory::generated_factory(),
  968. sizeof(packetl2c_torpedo_compose_result));
  969. msg_airdropitem_descriptor_ = file->message_type(42);
  970. static const int msg_airdropitem_offsets_[9] = {
  971. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_airdropitem, uuid_),
  972. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_airdropitem, playerid_),
  973. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_airdropitem, itemid_),
  974. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_airdropitem, itemcount_),
  975. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_airdropitem, nickname_),
  976. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_airdropitem, headurl_),
  977. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_airdropitem, pwd_),
  978. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_airdropitem, leftsecond_),
  979. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_airdropitem, receiveid_),
  980. };
  981. msg_airdropitem_reflection_ =
  982. new ::google::protobuf::internal::GeneratedMessageReflection(
  983. msg_airdropitem_descriptor_,
  984. msg_airdropitem::default_instance_,
  985. msg_airdropitem_offsets_,
  986. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_airdropitem, _has_bits_[0]),
  987. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_airdropitem, _unknown_fields_),
  988. -1,
  989. ::google::protobuf::DescriptorPool::generated_pool(),
  990. ::google::protobuf::MessageFactory::generated_factory(),
  991. sizeof(msg_airdropitem));
  992. packetl2c_get_airdrop_list_result_descriptor_ = file->message_type(43);
  993. static const int packetl2c_get_airdrop_list_result_offsets_[5] = {
  994. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_airdrop_list_result, packet_id_),
  995. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_airdrop_list_result, result_),
  996. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_airdrop_list_result, bplayerairdrop_),
  997. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_airdrop_list_result, items_),
  998. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_airdrop_list_result, errorcount_),
  999. };
  1000. packetl2c_get_airdrop_list_result_reflection_ =
  1001. new ::google::protobuf::internal::GeneratedMessageReflection(
  1002. packetl2c_get_airdrop_list_result_descriptor_,
  1003. packetl2c_get_airdrop_list_result::default_instance_,
  1004. packetl2c_get_airdrop_list_result_offsets_,
  1005. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_airdrop_list_result, _has_bits_[0]),
  1006. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_airdrop_list_result, _unknown_fields_),
  1007. -1,
  1008. ::google::protobuf::DescriptorPool::generated_pool(),
  1009. ::google::protobuf::MessageFactory::generated_factory(),
  1010. sizeof(packetl2c_get_airdrop_list_result));
  1011. packetc2l_goldfish_lottery_descriptor_ = file->message_type(44);
  1012. static const int packetc2l_goldfish_lottery_offsets_[2] = {
  1013. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_goldfish_lottery, packet_id_),
  1014. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_goldfish_lottery, id_),
  1015. };
  1016. packetc2l_goldfish_lottery_reflection_ =
  1017. new ::google::protobuf::internal::GeneratedMessageReflection(
  1018. packetc2l_goldfish_lottery_descriptor_,
  1019. packetc2l_goldfish_lottery::default_instance_,
  1020. packetc2l_goldfish_lottery_offsets_,
  1021. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_goldfish_lottery, _has_bits_[0]),
  1022. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_goldfish_lottery, _unknown_fields_),
  1023. -1,
  1024. ::google::protobuf::DescriptorPool::generated_pool(),
  1025. ::google::protobuf::MessageFactory::generated_factory(),
  1026. sizeof(packetc2l_goldfish_lottery));
  1027. packetl2c_goldfish_lottery_result_descriptor_ = file->message_type(45);
  1028. static const int packetl2c_goldfish_lottery_result_offsets_[5] = {
  1029. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_goldfish_lottery_result, packet_id_),
  1030. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_goldfish_lottery_result, result_),
  1031. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_goldfish_lottery_result, playerid_),
  1032. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_goldfish_lottery_result, id_),
  1033. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_goldfish_lottery_result, rewardid_),
  1034. };
  1035. packetl2c_goldfish_lottery_result_reflection_ =
  1036. new ::google::protobuf::internal::GeneratedMessageReflection(
  1037. packetl2c_goldfish_lottery_result_descriptor_,
  1038. packetl2c_goldfish_lottery_result::default_instance_,
  1039. packetl2c_goldfish_lottery_result_offsets_,
  1040. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_goldfish_lottery_result, _has_bits_[0]),
  1041. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_goldfish_lottery_result, _unknown_fields_),
  1042. -1,
  1043. ::google::protobuf::DescriptorPool::generated_pool(),
  1044. ::google::protobuf::MessageFactory::generated_factory(),
  1045. sizeof(packetl2c_goldfish_lottery_result));
  1046. packetl2c_bc_table_finish_turntablefish_balance_descriptor_ = file->message_type(46);
  1047. static const int packetl2c_bc_table_finish_turntablefish_balance_offsets_[3] = {
  1048. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_finish_turntablefish_balance, packet_id_),
  1049. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_finish_turntablefish_balance, playerid_),
  1050. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_finish_turntablefish_balance, addgold_),
  1051. };
  1052. packetl2c_bc_table_finish_turntablefish_balance_reflection_ =
  1053. new ::google::protobuf::internal::GeneratedMessageReflection(
  1054. packetl2c_bc_table_finish_turntablefish_balance_descriptor_,
  1055. packetl2c_bc_table_finish_turntablefish_balance::default_instance_,
  1056. packetl2c_bc_table_finish_turntablefish_balance_offsets_,
  1057. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_finish_turntablefish_balance, _has_bits_[0]),
  1058. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_finish_turntablefish_balance, _unknown_fields_),
  1059. -1,
  1060. ::google::protobuf::DescriptorPool::generated_pool(),
  1061. ::google::protobuf::MessageFactory::generated_factory(),
  1062. sizeof(packetl2c_bc_table_finish_turntablefish_balance));
  1063. packetc2l_exchange_dimensity_descriptor_ = file->message_type(47);
  1064. static const int packetc2l_exchange_dimensity_offsets_[2] = {
  1065. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_exchange_dimensity, packet_id_),
  1066. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_exchange_dimensity, exchangeid_),
  1067. };
  1068. packetc2l_exchange_dimensity_reflection_ =
  1069. new ::google::protobuf::internal::GeneratedMessageReflection(
  1070. packetc2l_exchange_dimensity_descriptor_,
  1071. packetc2l_exchange_dimensity::default_instance_,
  1072. packetc2l_exchange_dimensity_offsets_,
  1073. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_exchange_dimensity, _has_bits_[0]),
  1074. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_exchange_dimensity, _unknown_fields_),
  1075. -1,
  1076. ::google::protobuf::DescriptorPool::generated_pool(),
  1077. ::google::protobuf::MessageFactory::generated_factory(),
  1078. sizeof(packetc2l_exchange_dimensity));
  1079. packetl2c_exchange_dimensity_result_descriptor_ = file->message_type(48);
  1080. static const int packetl2c_exchange_dimensity_result_offsets_[3] = {
  1081. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_exchange_dimensity_result, packet_id_),
  1082. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_exchange_dimensity_result, exchangeid_),
  1083. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_exchange_dimensity_result, result_),
  1084. };
  1085. packetl2c_exchange_dimensity_result_reflection_ =
  1086. new ::google::protobuf::internal::GeneratedMessageReflection(
  1087. packetl2c_exchange_dimensity_result_descriptor_,
  1088. packetl2c_exchange_dimensity_result::default_instance_,
  1089. packetl2c_exchange_dimensity_result_offsets_,
  1090. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_exchange_dimensity_result, _has_bits_[0]),
  1091. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_exchange_dimensity_result, _unknown_fields_),
  1092. -1,
  1093. ::google::protobuf::DescriptorPool::generated_pool(),
  1094. ::google::protobuf::MessageFactory::generated_factory(),
  1095. sizeof(packetl2c_exchange_dimensity_result));
  1096. packetc2l_lucky_lottery_descriptor_ = file->message_type(49);
  1097. static const int packetc2l_lucky_lottery_offsets_[2] = {
  1098. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_lucky_lottery, packet_id_),
  1099. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_lucky_lottery, all_),
  1100. };
  1101. packetc2l_lucky_lottery_reflection_ =
  1102. new ::google::protobuf::internal::GeneratedMessageReflection(
  1103. packetc2l_lucky_lottery_descriptor_,
  1104. packetc2l_lucky_lottery::default_instance_,
  1105. packetc2l_lucky_lottery_offsets_,
  1106. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_lucky_lottery, _has_bits_[0]),
  1107. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_lucky_lottery, _unknown_fields_),
  1108. -1,
  1109. ::google::protobuf::DescriptorPool::generated_pool(),
  1110. ::google::protobuf::MessageFactory::generated_factory(),
  1111. sizeof(packetc2l_lucky_lottery));
  1112. packetl2c_lucky_lottery_result_descriptor_ = file->message_type(50);
  1113. static const int packetl2c_lucky_lottery_result_offsets_[4] = {
  1114. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_lucky_lottery_result, packet_id_),
  1115. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_lucky_lottery_result, all_),
  1116. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_lucky_lottery_result, result_),
  1117. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_lucky_lottery_result, rewardindex_),
  1118. };
  1119. packetl2c_lucky_lottery_result_reflection_ =
  1120. new ::google::protobuf::internal::GeneratedMessageReflection(
  1121. packetl2c_lucky_lottery_result_descriptor_,
  1122. packetl2c_lucky_lottery_result::default_instance_,
  1123. packetl2c_lucky_lottery_result_offsets_,
  1124. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_lucky_lottery_result, _has_bits_[0]),
  1125. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_lucky_lottery_result, _unknown_fields_),
  1126. -1,
  1127. ::google::protobuf::DescriptorPool::generated_pool(),
  1128. ::google::protobuf::MessageFactory::generated_factory(),
  1129. sizeof(packetl2c_lucky_lottery_result));
  1130. recordInfo_descriptor_ = file->message_type(51);
  1131. static const int recordInfo_offsets_[3] = {
  1132. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(recordInfo, type_),
  1133. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(recordInfo, param_),
  1134. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(recordInfo, count_),
  1135. };
  1136. recordInfo_reflection_ =
  1137. new ::google::protobuf::internal::GeneratedMessageReflection(
  1138. recordInfo_descriptor_,
  1139. recordInfo::default_instance_,
  1140. recordInfo_offsets_,
  1141. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(recordInfo, _has_bits_[0]),
  1142. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(recordInfo, _unknown_fields_),
  1143. -1,
  1144. ::google::protobuf::DescriptorPool::generated_pool(),
  1145. ::google::protobuf::MessageFactory::generated_factory(),
  1146. sizeof(recordInfo));
  1147. packetc2l_syn_record_info_descriptor_ = file->message_type(52);
  1148. static const int packetc2l_syn_record_info_offsets_[2] = {
  1149. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_syn_record_info, packet_id_),
  1150. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_syn_record_info, recordlist_),
  1151. };
  1152. packetc2l_syn_record_info_reflection_ =
  1153. new ::google::protobuf::internal::GeneratedMessageReflection(
  1154. packetc2l_syn_record_info_descriptor_,
  1155. packetc2l_syn_record_info::default_instance_,
  1156. packetc2l_syn_record_info_offsets_,
  1157. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_syn_record_info, _has_bits_[0]),
  1158. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_syn_record_info, _unknown_fields_),
  1159. -1,
  1160. ::google::protobuf::DescriptorPool::generated_pool(),
  1161. ::google::protobuf::MessageFactory::generated_factory(),
  1162. sizeof(packetc2l_syn_record_info));
  1163. packetc2l_auto_fire_descriptor_ = file->message_type(53);
  1164. static const int packetc2l_auto_fire_offsets_[2] = {
  1165. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_auto_fire, packet_id_),
  1166. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_auto_fire, type_),
  1167. };
  1168. packetc2l_auto_fire_reflection_ =
  1169. new ::google::protobuf::internal::GeneratedMessageReflection(
  1170. packetc2l_auto_fire_descriptor_,
  1171. packetc2l_auto_fire::default_instance_,
  1172. packetc2l_auto_fire_offsets_,
  1173. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_auto_fire, _has_bits_[0]),
  1174. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_auto_fire, _unknown_fields_),
  1175. -1,
  1176. ::google::protobuf::DescriptorPool::generated_pool(),
  1177. ::google::protobuf::MessageFactory::generated_factory(),
  1178. sizeof(packetc2l_auto_fire));
  1179. packetc2l_change_headid_descriptor_ = file->message_type(54);
  1180. static const int packetc2l_change_headid_offsets_[3] = {
  1181. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_change_headid, packet_id_),
  1182. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_change_headid, headid_),
  1183. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_change_headid, frameid_),
  1184. };
  1185. packetc2l_change_headid_reflection_ =
  1186. new ::google::protobuf::internal::GeneratedMessageReflection(
  1187. packetc2l_change_headid_descriptor_,
  1188. packetc2l_change_headid::default_instance_,
  1189. packetc2l_change_headid_offsets_,
  1190. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_change_headid, _has_bits_[0]),
  1191. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_change_headid, _unknown_fields_),
  1192. -1,
  1193. ::google::protobuf::DescriptorPool::generated_pool(),
  1194. ::google::protobuf::MessageFactory::generated_factory(),
  1195. sizeof(packetc2l_change_headid));
  1196. packetl2c_change_headid_result_descriptor_ = file->message_type(55);
  1197. static const int packetl2c_change_headid_result_offsets_[5] = {
  1198. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_change_headid_result, packet_id_),
  1199. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_change_headid_result, playerid_),
  1200. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_change_headid_result, headid_),
  1201. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_change_headid_result, frameid_),
  1202. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_change_headid_result, result_),
  1203. };
  1204. packetl2c_change_headid_result_reflection_ =
  1205. new ::google::protobuf::internal::GeneratedMessageReflection(
  1206. packetl2c_change_headid_result_descriptor_,
  1207. packetl2c_change_headid_result::default_instance_,
  1208. packetl2c_change_headid_result_offsets_,
  1209. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_change_headid_result, _has_bits_[0]),
  1210. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_change_headid_result, _unknown_fields_),
  1211. -1,
  1212. ::google::protobuf::DescriptorPool::generated_pool(),
  1213. ::google::protobuf::MessageFactory::generated_factory(),
  1214. sizeof(packetl2c_change_headid_result));
  1215. packetc2l_rand_turret_addition_descriptor_ = file->message_type(56);
  1216. static const int packetc2l_rand_turret_addition_offsets_[3] = {
  1217. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_rand_turret_addition, packet_id_),
  1218. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_rand_turret_addition, type_),
  1219. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_rand_turret_addition, id_),
  1220. };
  1221. packetc2l_rand_turret_addition_reflection_ =
  1222. new ::google::protobuf::internal::GeneratedMessageReflection(
  1223. packetc2l_rand_turret_addition_descriptor_,
  1224. packetc2l_rand_turret_addition::default_instance_,
  1225. packetc2l_rand_turret_addition_offsets_,
  1226. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_rand_turret_addition, _has_bits_[0]),
  1227. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_rand_turret_addition, _unknown_fields_),
  1228. -1,
  1229. ::google::protobuf::DescriptorPool::generated_pool(),
  1230. ::google::protobuf::MessageFactory::generated_factory(),
  1231. sizeof(packetc2l_rand_turret_addition));
  1232. packetl2c_rand_turret_addition_result_descriptor_ = file->message_type(57);
  1233. static const int packetl2c_rand_turret_addition_result_offsets_[8] = {
  1234. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_rand_turret_addition_result, packet_id_),
  1235. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_rand_turret_addition_result, type_),
  1236. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_rand_turret_addition_result, id_),
  1237. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_rand_turret_addition_result, result_),
  1238. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_rand_turret_addition_result, lefttimes_),
  1239. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_rand_turret_addition_result, addid_),
  1240. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_rand_turret_addition_result, costitem_),
  1241. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_rand_turret_addition_result, costcount_),
  1242. };
  1243. packetl2c_rand_turret_addition_result_reflection_ =
  1244. new ::google::protobuf::internal::GeneratedMessageReflection(
  1245. packetl2c_rand_turret_addition_result_descriptor_,
  1246. packetl2c_rand_turret_addition_result::default_instance_,
  1247. packetl2c_rand_turret_addition_result_offsets_,
  1248. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_rand_turret_addition_result, _has_bits_[0]),
  1249. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_rand_turret_addition_result, _unknown_fields_),
  1250. -1,
  1251. ::google::protobuf::DescriptorPool::generated_pool(),
  1252. ::google::protobuf::MessageFactory::generated_factory(),
  1253. sizeof(packetl2c_rand_turret_addition_result));
  1254. packetc2l_turret_addition_confirm_descriptor_ = file->message_type(58);
  1255. static const int packetc2l_turret_addition_confirm_offsets_[3] = {
  1256. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_turret_addition_confirm, packet_id_),
  1257. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_turret_addition_confirm, type_),
  1258. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_turret_addition_confirm, id_),
  1259. };
  1260. packetc2l_turret_addition_confirm_reflection_ =
  1261. new ::google::protobuf::internal::GeneratedMessageReflection(
  1262. packetc2l_turret_addition_confirm_descriptor_,
  1263. packetc2l_turret_addition_confirm::default_instance_,
  1264. packetc2l_turret_addition_confirm_offsets_,
  1265. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_turret_addition_confirm, _has_bits_[0]),
  1266. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_turret_addition_confirm, _unknown_fields_),
  1267. -1,
  1268. ::google::protobuf::DescriptorPool::generated_pool(),
  1269. ::google::protobuf::MessageFactory::generated_factory(),
  1270. sizeof(packetc2l_turret_addition_confirm));
  1271. packetl2c_turret_addition_confirm_result_descriptor_ = file->message_type(59);
  1272. static const int packetl2c_turret_addition_confirm_result_offsets_[6] = {
  1273. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_turret_addition_confirm_result, packet_id_),
  1274. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_turret_addition_confirm_result, type_),
  1275. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_turret_addition_confirm_result, id_),
  1276. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_turret_addition_confirm_result, result_),
  1277. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_turret_addition_confirm_result, wingdata_),
  1278. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_turret_addition_confirm_result, turretdata_),
  1279. };
  1280. packetl2c_turret_addition_confirm_result_reflection_ =
  1281. new ::google::protobuf::internal::GeneratedMessageReflection(
  1282. packetl2c_turret_addition_confirm_result_descriptor_,
  1283. packetl2c_turret_addition_confirm_result::default_instance_,
  1284. packetl2c_turret_addition_confirm_result_offsets_,
  1285. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_turret_addition_confirm_result, _has_bits_[0]),
  1286. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_turret_addition_confirm_result, _unknown_fields_),
  1287. -1,
  1288. ::google::protobuf::DescriptorPool::generated_pool(),
  1289. ::google::protobuf::MessageFactory::generated_factory(),
  1290. sizeof(packetl2c_turret_addition_confirm_result));
  1291. packetc2l_turret_addition_reset_descriptor_ = file->message_type(60);
  1292. static const int packetc2l_turret_addition_reset_offsets_[3] = {
  1293. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_turret_addition_reset, packet_id_),
  1294. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_turret_addition_reset, type_),
  1295. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_turret_addition_reset, id_),
  1296. };
  1297. packetc2l_turret_addition_reset_reflection_ =
  1298. new ::google::protobuf::internal::GeneratedMessageReflection(
  1299. packetc2l_turret_addition_reset_descriptor_,
  1300. packetc2l_turret_addition_reset::default_instance_,
  1301. packetc2l_turret_addition_reset_offsets_,
  1302. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_turret_addition_reset, _has_bits_[0]),
  1303. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_turret_addition_reset, _unknown_fields_),
  1304. -1,
  1305. ::google::protobuf::DescriptorPool::generated_pool(),
  1306. ::google::protobuf::MessageFactory::generated_factory(),
  1307. sizeof(packetc2l_turret_addition_reset));
  1308. packetl2c_turret_addition_reset_result_descriptor_ = file->message_type(61);
  1309. static const int packetl2c_turret_addition_reset_result_offsets_[5] = {
  1310. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_turret_addition_reset_result, packet_id_),
  1311. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_turret_addition_reset_result, type_),
  1312. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_turret_addition_reset_result, id_),
  1313. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_turret_addition_reset_result, result_),
  1314. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_turret_addition_reset_result, returncount_),
  1315. };
  1316. packetl2c_turret_addition_reset_result_reflection_ =
  1317. new ::google::protobuf::internal::GeneratedMessageReflection(
  1318. packetl2c_turret_addition_reset_result_descriptor_,
  1319. packetl2c_turret_addition_reset_result::default_instance_,
  1320. packetl2c_turret_addition_reset_result_offsets_,
  1321. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_turret_addition_reset_result, _has_bits_[0]),
  1322. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_turret_addition_reset_result, _unknown_fields_),
  1323. -1,
  1324. ::google::protobuf::DescriptorPool::generated_pool(),
  1325. ::google::protobuf::MessageFactory::generated_factory(),
  1326. sizeof(packetl2c_turret_addition_reset_result));
  1327. }
  1328. namespace {
  1329. GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
  1330. inline void protobuf_AssignDescriptorsOnce() {
  1331. ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
  1332. &protobuf_AssignDesc_fish_5fprotocol_2eproto);
  1333. }
  1334. void protobuf_RegisterTypes(const ::std::string&) {
  1335. protobuf_AssignDescriptorsOnce();
  1336. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1337. packetc2l_get_room_info_descriptor_, &packetc2l_get_room_info::default_instance());
  1338. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1339. msg_room_info_descriptor_, &msg_room_info::default_instance());
  1340. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1341. packetl2c_get_room_info_result_descriptor_, &packetl2c_get_room_info_result::default_instance());
  1342. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1343. packetc2l_enter_table_descriptor_, &packetc2l_enter_table::default_instance());
  1344. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1345. packetl2c_enter_table_result_descriptor_, &packetl2c_enter_table_result::default_instance());
  1346. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1347. packetc2l_change_table_descriptor_, &packetc2l_change_table::default_instance());
  1348. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1349. packetl2c_change_table_result_descriptor_, &packetl2c_change_table_result::default_instance());
  1350. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1351. packetc2l_leave_table_descriptor_, &packetc2l_leave_table::default_instance());
  1352. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1353. packetl2c_leave_table_result_descriptor_, &packetl2c_leave_table_result::default_instance());
  1354. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1355. packetc2l_check_state_descriptor_, &packetc2l_check_state::default_instance());
  1356. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1357. skill_unit_descriptor_, &skill_unit::default_instance());
  1358. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1359. turret_unit_descriptor_, &turret_unit::default_instance());
  1360. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1361. wing_unit_descriptor_, &wing_unit::default_instance());
  1362. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1363. packetl2c_check_state_result_descriptor_, &packetl2c_check_state_result::default_instance());
  1364. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1365. packetc2l_buy_item_descriptor_, &packetc2l_buy_item::default_instance());
  1366. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1367. packetl2c_buy_item_result_descriptor_, &packetl2c_buy_item_result::default_instance());
  1368. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1369. packetc2l_use_item_descriptor_, &packetc2l_use_item::default_instance());
  1370. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1371. getItemsInfo_descriptor_, &getItemsInfo::default_instance());
  1372. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1373. ItemInfo_descriptor_, &ItemInfo::default_instance());
  1374. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1375. packetl2c_use_item_result_descriptor_, &packetl2c_use_item_result::default_instance());
  1376. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1377. packetc2l_change_turret_descriptor_, &packetc2l_change_turret::default_instance());
  1378. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1379. packetl2c_change_turret_result_descriptor_, &packetl2c_change_turret_result::default_instance());
  1380. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1381. PointsRankInfo_descriptor_, &PointsRankInfo::default_instance());
  1382. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1383. packetc2l_get_points_rank_descriptor_, &packetc2l_get_points_rank::default_instance());
  1384. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1385. packetl2c_get_points_rank_result_descriptor_, &packetl2c_get_points_rank_result::default_instance());
  1386. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1387. exItemInfo_descriptor_, &exItemInfo::default_instance());
  1388. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1389. packetc2l_medium_grade_exchange_descriptor_, &packetc2l_medium_grade_exchange::default_instance());
  1390. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1391. pointsInfo_descriptor_, &pointsInfo::default_instance());
  1392. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1393. packetl2c_medium_grade_exchange_result_descriptor_, &packetl2c_medium_grade_exchange_result::default_instance());
  1394. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1395. packetc2l_get_shoplist_descriptor_, &packetc2l_get_shoplist::default_instance());
  1396. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1397. msg_shopitem_descriptor_, &msg_shopitem::default_instance());
  1398. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1399. packetl2c_get_shoplist_result_descriptor_, &packetl2c_get_shoplist_result::default_instance());
  1400. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1401. packetc2l_turret_levelup_descriptor_, &packetc2l_turret_levelup::default_instance());
  1402. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1403. packetl2c_turret_levelup_result_descriptor_, &packetl2c_turret_levelup_result::default_instance());
  1404. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1405. packetl2c_player_auto_levelup_descriptor_, &packetl2c_player_auto_levelup::default_instance());
  1406. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1407. packetl2c_give_item_result_descriptor_, &packetl2c_give_item_result::default_instance());
  1408. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1409. packetc2l_buy_func_item_descriptor_, &packetc2l_buy_func_item::default_instance());
  1410. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1411. packetl2c_buy_func_item_result_descriptor_, &packetl2c_buy_func_item_result::default_instance());
  1412. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1413. packetc2l_torpedo_exchange_descriptor_, &packetc2l_torpedo_exchange::default_instance());
  1414. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1415. packetl2c_torpedo_exchange_result_descriptor_, &packetl2c_torpedo_exchange_result::default_instance());
  1416. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1417. packetc2l_torpedo_compose_descriptor_, &packetc2l_torpedo_compose::default_instance());
  1418. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1419. packetl2c_torpedo_compose_result_descriptor_, &packetl2c_torpedo_compose_result::default_instance());
  1420. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1421. msg_airdropitem_descriptor_, &msg_airdropitem::default_instance());
  1422. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1423. packetl2c_get_airdrop_list_result_descriptor_, &packetl2c_get_airdrop_list_result::default_instance());
  1424. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1425. packetc2l_goldfish_lottery_descriptor_, &packetc2l_goldfish_lottery::default_instance());
  1426. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1427. packetl2c_goldfish_lottery_result_descriptor_, &packetl2c_goldfish_lottery_result::default_instance());
  1428. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1429. packetl2c_bc_table_finish_turntablefish_balance_descriptor_, &packetl2c_bc_table_finish_turntablefish_balance::default_instance());
  1430. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1431. packetc2l_exchange_dimensity_descriptor_, &packetc2l_exchange_dimensity::default_instance());
  1432. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1433. packetl2c_exchange_dimensity_result_descriptor_, &packetl2c_exchange_dimensity_result::default_instance());
  1434. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1435. packetc2l_lucky_lottery_descriptor_, &packetc2l_lucky_lottery::default_instance());
  1436. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1437. packetl2c_lucky_lottery_result_descriptor_, &packetl2c_lucky_lottery_result::default_instance());
  1438. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1439. recordInfo_descriptor_, &recordInfo::default_instance());
  1440. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1441. packetc2l_syn_record_info_descriptor_, &packetc2l_syn_record_info::default_instance());
  1442. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1443. packetc2l_auto_fire_descriptor_, &packetc2l_auto_fire::default_instance());
  1444. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1445. packetc2l_change_headid_descriptor_, &packetc2l_change_headid::default_instance());
  1446. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1447. packetl2c_change_headid_result_descriptor_, &packetl2c_change_headid_result::default_instance());
  1448. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1449. packetc2l_rand_turret_addition_descriptor_, &packetc2l_rand_turret_addition::default_instance());
  1450. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1451. packetl2c_rand_turret_addition_result_descriptor_, &packetl2c_rand_turret_addition_result::default_instance());
  1452. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1453. packetc2l_turret_addition_confirm_descriptor_, &packetc2l_turret_addition_confirm::default_instance());
  1454. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1455. packetl2c_turret_addition_confirm_result_descriptor_, &packetl2c_turret_addition_confirm_result::default_instance());
  1456. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1457. packetc2l_turret_addition_reset_descriptor_, &packetc2l_turret_addition_reset::default_instance());
  1458. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  1459. packetl2c_turret_addition_reset_result_descriptor_, &packetl2c_turret_addition_reset_result::default_instance());
  1460. }
  1461. } // namespace
  1462. void protobuf_ShutdownFile_fish_5fprotocol_2eproto() {
  1463. delete packetc2l_get_room_info::default_instance_;
  1464. delete packetc2l_get_room_info_reflection_;
  1465. delete msg_room_info::default_instance_;
  1466. delete msg_room_info_reflection_;
  1467. delete packetl2c_get_room_info_result::default_instance_;
  1468. delete packetl2c_get_room_info_result_reflection_;
  1469. delete packetc2l_enter_table::default_instance_;
  1470. delete packetc2l_enter_table_reflection_;
  1471. delete packetl2c_enter_table_result::default_instance_;
  1472. delete packetl2c_enter_table_result_reflection_;
  1473. delete packetc2l_change_table::default_instance_;
  1474. delete packetc2l_change_table_reflection_;
  1475. delete packetl2c_change_table_result::default_instance_;
  1476. delete packetl2c_change_table_result_reflection_;
  1477. delete packetc2l_leave_table::default_instance_;
  1478. delete packetc2l_leave_table_reflection_;
  1479. delete packetl2c_leave_table_result::default_instance_;
  1480. delete packetl2c_leave_table_result_reflection_;
  1481. delete packetc2l_check_state::default_instance_;
  1482. delete packetc2l_check_state_reflection_;
  1483. delete skill_unit::default_instance_;
  1484. delete skill_unit_reflection_;
  1485. delete turret_unit::default_instance_;
  1486. delete turret_unit_reflection_;
  1487. delete wing_unit::default_instance_;
  1488. delete wing_unit_reflection_;
  1489. delete packetl2c_check_state_result::default_instance_;
  1490. delete packetl2c_check_state_result_reflection_;
  1491. delete packetc2l_buy_item::default_instance_;
  1492. delete packetc2l_buy_item_reflection_;
  1493. delete packetl2c_buy_item_result::default_instance_;
  1494. delete packetl2c_buy_item_result_reflection_;
  1495. delete packetc2l_use_item::default_instance_;
  1496. delete packetc2l_use_item_reflection_;
  1497. delete getItemsInfo::default_instance_;
  1498. delete getItemsInfo_reflection_;
  1499. delete ItemInfo::default_instance_;
  1500. delete ItemInfo_reflection_;
  1501. delete packetl2c_use_item_result::default_instance_;
  1502. delete packetl2c_use_item_result_reflection_;
  1503. delete packetc2l_change_turret::default_instance_;
  1504. delete packetc2l_change_turret_reflection_;
  1505. delete packetl2c_change_turret_result::default_instance_;
  1506. delete packetl2c_change_turret_result_reflection_;
  1507. delete PointsRankInfo::default_instance_;
  1508. delete PointsRankInfo_reflection_;
  1509. delete packetc2l_get_points_rank::default_instance_;
  1510. delete packetc2l_get_points_rank_reflection_;
  1511. delete packetl2c_get_points_rank_result::default_instance_;
  1512. delete packetl2c_get_points_rank_result_reflection_;
  1513. delete exItemInfo::default_instance_;
  1514. delete exItemInfo_reflection_;
  1515. delete packetc2l_medium_grade_exchange::default_instance_;
  1516. delete packetc2l_medium_grade_exchange_reflection_;
  1517. delete pointsInfo::default_instance_;
  1518. delete pointsInfo_reflection_;
  1519. delete packetl2c_medium_grade_exchange_result::default_instance_;
  1520. delete packetl2c_medium_grade_exchange_result_reflection_;
  1521. delete packetc2l_get_shoplist::default_instance_;
  1522. delete packetc2l_get_shoplist_reflection_;
  1523. delete msg_shopitem::default_instance_;
  1524. delete msg_shopitem_reflection_;
  1525. delete packetl2c_get_shoplist_result::default_instance_;
  1526. delete packetl2c_get_shoplist_result_reflection_;
  1527. delete packetc2l_turret_levelup::default_instance_;
  1528. delete packetc2l_turret_levelup_reflection_;
  1529. delete packetl2c_turret_levelup_result::default_instance_;
  1530. delete packetl2c_turret_levelup_result_reflection_;
  1531. delete packetl2c_player_auto_levelup::default_instance_;
  1532. delete packetl2c_player_auto_levelup_reflection_;
  1533. delete packetl2c_give_item_result::default_instance_;
  1534. delete packetl2c_give_item_result_reflection_;
  1535. delete packetc2l_buy_func_item::default_instance_;
  1536. delete packetc2l_buy_func_item_reflection_;
  1537. delete packetl2c_buy_func_item_result::default_instance_;
  1538. delete packetl2c_buy_func_item_result_reflection_;
  1539. delete packetc2l_torpedo_exchange::default_instance_;
  1540. delete packetc2l_torpedo_exchange_reflection_;
  1541. delete packetl2c_torpedo_exchange_result::default_instance_;
  1542. delete packetl2c_torpedo_exchange_result_reflection_;
  1543. delete packetc2l_torpedo_compose::default_instance_;
  1544. delete packetc2l_torpedo_compose_reflection_;
  1545. delete packetl2c_torpedo_compose_result::default_instance_;
  1546. delete packetl2c_torpedo_compose_result_reflection_;
  1547. delete msg_airdropitem::default_instance_;
  1548. delete msg_airdropitem_reflection_;
  1549. delete packetl2c_get_airdrop_list_result::default_instance_;
  1550. delete packetl2c_get_airdrop_list_result_reflection_;
  1551. delete packetc2l_goldfish_lottery::default_instance_;
  1552. delete packetc2l_goldfish_lottery_reflection_;
  1553. delete packetl2c_goldfish_lottery_result::default_instance_;
  1554. delete packetl2c_goldfish_lottery_result_reflection_;
  1555. delete packetl2c_bc_table_finish_turntablefish_balance::default_instance_;
  1556. delete packetl2c_bc_table_finish_turntablefish_balance_reflection_;
  1557. delete packetc2l_exchange_dimensity::default_instance_;
  1558. delete packetc2l_exchange_dimensity_reflection_;
  1559. delete packetl2c_exchange_dimensity_result::default_instance_;
  1560. delete packetl2c_exchange_dimensity_result_reflection_;
  1561. delete packetc2l_lucky_lottery::default_instance_;
  1562. delete packetc2l_lucky_lottery_reflection_;
  1563. delete packetl2c_lucky_lottery_result::default_instance_;
  1564. delete packetl2c_lucky_lottery_result_reflection_;
  1565. delete recordInfo::default_instance_;
  1566. delete recordInfo_reflection_;
  1567. delete packetc2l_syn_record_info::default_instance_;
  1568. delete packetc2l_syn_record_info_reflection_;
  1569. delete packetc2l_auto_fire::default_instance_;
  1570. delete packetc2l_auto_fire_reflection_;
  1571. delete packetc2l_change_headid::default_instance_;
  1572. delete packetc2l_change_headid_reflection_;
  1573. delete packetl2c_change_headid_result::default_instance_;
  1574. delete packetl2c_change_headid_result_reflection_;
  1575. delete packetc2l_rand_turret_addition::default_instance_;
  1576. delete packetc2l_rand_turret_addition_reflection_;
  1577. delete packetl2c_rand_turret_addition_result::default_instance_;
  1578. delete packetl2c_rand_turret_addition_result_reflection_;
  1579. delete packetc2l_turret_addition_confirm::default_instance_;
  1580. delete packetc2l_turret_addition_confirm_reflection_;
  1581. delete packetl2c_turret_addition_confirm_result::default_instance_;
  1582. delete packetl2c_turret_addition_confirm_result_reflection_;
  1583. delete packetc2l_turret_addition_reset::default_instance_;
  1584. delete packetc2l_turret_addition_reset_reflection_;
  1585. delete packetl2c_turret_addition_reset_result::default_instance_;
  1586. delete packetl2c_turret_addition_reset_result_reflection_;
  1587. }
  1588. void protobuf_AddDesc_fish_5fprotocol_2eproto() {
  1589. static bool already_here = false;
  1590. if (already_here) return;
  1591. already_here = true;
  1592. GOOGLE_PROTOBUF_VERIFY_VERSION;
  1593. ::fish_protocols::protobuf_AddDesc_fish_5fdef_2eproto();
  1594. ::fish_protocols::protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
  1595. ::msg_type_def::protobuf_AddDesc_msg_5ftype_5fdef_2eproto();
  1596. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  1597. "\n\023fish_protocol.proto\022\016fish_protocols\032\016f"
  1598. "ish_def.proto\032\023fish_type_def.proto\032\022msg_"
  1599. "type_def.proto\"h\n\027packetc2l_get_room_inf"
  1600. "o\022M\n\tpacket_id\030\001 \001(\0162!.fish_protocols.e_"
  1601. "server_msg_type:\027e_mst_c2l_get_room_info"
  1602. "\"Z\n\rmsg_room_info\022\016\n\006roomid\030\001 \001(\005\022\024\n\014pla"
  1603. "yer_count\030\002 \001(\005\022\017\n\007jackpot\030\003 \001(\003\022\022\n\nleft"
  1604. "Second\030\004 \001(\005\"\244\001\n\036packetl2c_get_room_info"
  1605. "_result\022T\n\tpacket_id\030\001 \001(\0162!.fish_protoc"
  1606. "ols.e_server_msg_type:\036e_mst_l2c_get_roo"
  1607. "m_info_result\022,\n\005rooms\030\002 \003(\0132\035.fish_prot"
  1608. "ocols.msg_room_info\"w\n\025packetc2l_enter_t"
  1609. "able\022K\n\tpacket_id\030\001 \001(\0162!.fish_protocols"
  1610. ".e_server_msg_type:\025e_mst_c2l_enter_tabl"
  1611. "e\022\021\n\006roomid\030\002 \001(\005:\0010\"\327\001\n\034packetl2c_enter"
  1612. "_table_result\022R\n\tpacket_id\030\001 \001(\0162!.fish_"
  1613. "protocols.e_server_msg_type:\034e_mst_l2c_e"
  1614. "nter_table_result\022:\n\006result\030\002 \001(\0162\036.msg_"
  1615. "type_def.e_msg_result_def:\ne_rmt_fail\022\016\n"
  1616. "\006roomid\030\003 \001(\005\022\027\n\017isRecvGemReward\030\004 \001(\010\"f"
  1617. "\n\026packetc2l_change_table\022L\n\tpacket_id\030\001 "
  1618. "\001(\0162!.fish_protocols.e_server_msg_type:\026"
  1619. "e_mst_c2l_change_table\"\260\001\n\035packetl2c_cha"
  1620. "nge_table_result\022S\n\tpacket_id\030\001 \001(\0162!.fi"
  1621. "sh_protocols.e_server_msg_type:\035e_mst_l2"
  1622. "c_change_table_result\022:\n\006result\030\002 \001(\0162\036."
  1623. "msg_type_def.e_msg_result_def:\ne_rmt_fai"
  1624. "l\"d\n\025packetc2l_leave_table\022K\n\tpacket_id\030"
  1625. "\001 \001(\0162!.fish_protocols.e_server_msg_type"
  1626. ":\025e_mst_c2l_leave_table\"\254\001\n\034packetl2c_le"
  1627. "ave_table_result\022R\n\tpacket_id\030\001 \001(\0162!.fi"
  1628. "sh_protocols.e_server_msg_type:\034e_mst_l2"
  1629. "c_leave_table_result\022\021\n\tsync_gold\030\002 \001(\003\022"
  1630. "\022\n\nsyncDbChip\030\003 \001(\005\022\021\n\tplayerExp\030\004 \001(\003\"d"
  1631. "\n\025packetc2l_check_state\022K\n\tpacket_id\030\001 \001"
  1632. "(\0162!.fish_protocols.e_server_msg_type:\025e"
  1633. "_mst_c2l_check_state\"/\n\nskill_unit\022\017\n\007sk"
  1634. "illId\030\001 \001(\005\022\020\n\010addTimes\030\002 \001(\005\"u\n\013turret_"
  1635. "unit\022\020\n\010turretId\030\001 \001(\005\022\022\n\nadditionLv\030\002 \001"
  1636. "(\005\022\017\n\007endTime\030\003 \001(\005\022/\n\013addtionList\030\004 \003(\013"
  1637. "2\032.fish_protocols.skill_unit\"\224\001\n\twing_un"
  1638. "it\022\016\n\006wingId\030\001 \001(\005\022\022\n\nadditionLv\030\002 \001(\005\022\017"
  1639. "\n\007endTime\030\003 \001(\005\022\021\n\trandTimes\030\004 \001(\005\022\016\n\006ra"
  1640. "ndId\030\005 \001(\005\022/\n\013addtionList\030\006 \003(\0132\032.fish_p"
  1641. "rotocols.skill_unit\"\277\005\n\034packetl2c_check_"
  1642. "state_result\022R\n\tpacket_id\030\001 \001(\0162!.fish_p"
  1643. "rotocols.e_server_msg_type:\034e_mst_l2c_ch"
  1644. "eck_state_result\022\031\n\nis_intable\030\002 \001(\010:\005fa"
  1645. "lse\022*\n\010itemlist\030\003 \003(\0132\030.fish_protocols.m"
  1646. "sg_item\022/\n\nturretlist\030\004 \003(\0132\033.fish_proto"
  1647. "cols.turret_unit\022+\n\010winglist\030\005 \003(\0132\031.fis"
  1648. "h_protocols.wing_unit\022\021\n\tturret_id\030\006 \001(\005"
  1649. "\022\017\n\007wing_id\030\007 \001(\005\022\016\n\006headId\030\010 \001(\005\022\017\n\007fra"
  1650. "meId\030\t \001(\005\022\021\n\tplayerlvl\030\n \001(\005\022\021\n\tturretl"
  1651. "vl\030\013 \001(\005\022\017\n\007gameexp\030\014 \001(\003\022\021\n\tdimensity\030\r"
  1652. " \001(\005\022\016\n\006roomId\030\016 \001(\005\022\033\n\023kill_goldfish_co"
  1653. "unt\030\017 \001(\005\022\025\n\rgoldfish_pool\030\020 \001(\005\022\036\n\026gold"
  1654. "fish_lottery_count\030\021 \001(\005\022\024\n\014dailyAdTimes"
  1655. "\030\022 \001(\005\0227\n\017redEnvlopeInfos\030\023 \003(\0132\036.fish_p"
  1656. "rotocols.redEnvlopeInfo\022\030\n\020autofireleftt"
  1657. "ime\030\024 \001(\005\022$\n\034canReceiveTommorrowBuffCoun"
  1658. "t\030\025 \001(\005\022$\n\034canReceiveTommorrowBuffToday\030"
  1659. "\026 \001(\010\"\226\001\n\022packetc2l_buy_item\022H\n\tpacket_i"
  1660. "d\030\001 \001(\0162!.fish_protocols.e_server_msg_ty"
  1661. "pe:\022e_mst_c2l_buy_item\022\016\n\006isshop\030\002 \001(\010\022\017"
  1662. "\n\007shop_id\030\003 \001(\005\022\025\n\nshop_count\030\004 \001(\005:\0011\"\320"
  1663. "\001\n\031packetl2c_buy_item_result\022O\n\tpacket_i"
  1664. "d\030\001 \001(\0162!.fish_protocols.e_server_msg_ty"
  1665. "pe:\031e_mst_l2c_buy_item_result\022\017\n\007shop_id"
  1666. "\030\002 \001(\005\022:\n\006result\030\003 \001(\0162\036.msg_type_def.e_"
  1667. "msg_result_def:\ne_rmt_fail\022\025\n\nshop_count"
  1668. "\030\004 \001(\005:\0011\"\201\001\n\022packetc2l_use_item\022H\n\tpack"
  1669. "et_id\030\001 \001(\0162!.fish_protocols.e_server_ms"
  1670. "g_type:\022e_mst_c2l_use_item\022\017\n\007item_id\030\002 "
  1671. "\001(\005\022\020\n\010whereUse\030\003 \001(\005\"1\n\014getItemsInfo\022\016\n"
  1672. "\006itemid\030\010 \001(\005\022\021\n\titemcount\030\t \001(\005\")\n\010Item"
  1673. "Info\022\016\n\006itemId\030\001 \001(\005\022\r\n\005count\030\002 \001(\005\"\247\002\n\031"
  1674. "packetl2c_use_item_result\022O\n\tpacket_id\030\001"
  1675. " \001(\0162!.fish_protocols.e_server_msg_type:"
  1676. "\031e_mst_l2c_use_item_result\022\013\n\003pid\030\002 \001(\005\022"
  1677. "\017\n\007item_id\030\003 \001(\005\022:\n\006result\030\004 \001(\0162\036.msg_t"
  1678. "ype_def.e_msg_result_def:\ne_rmt_fail\022\025\n\n"
  1679. "item_count\030\005 \001(\005:\0011\022\020\n\010whereUse\030\006 \001(\005\022\r\n"
  1680. "\005score\030\007 \001(\005\022\'\n\005items\030\010 \003(\0132\030.fish_proto"
  1681. "cols.ItemInfo\"\214\001\n\027packetc2l_change_turre"
  1682. "t\022M\n\tpacket_id\030\001 \001(\0162!.fish_protocols.e_"
  1683. "server_msg_type:\027e_mst_c2l_change_turret"
  1684. "\022\021\n\tturret_id\030\002 \001(\005\022\017\n\007wing_id\030\003 \001(\005\"\215\002\n"
  1685. "\036packetl2c_change_turret_result\022T\n\tpacke"
  1686. "t_id\030\001 \001(\0162!.fish_protocols.e_server_msg"
  1687. "_type:\036e_mst_l2c_change_turret_result\022:\n"
  1688. "\006result\030\002 \001(\0162\036.msg_type_def.e_msg_resul"
  1689. "t_def:\ne_rmt_fail\022\021\n\tplayer_id\030\003 \001(\005\022\021\n\t"
  1690. "turret_id\030\004 \001(\005\022\021\n\tturret_lv\030\005 \001(\005\022\017\n\007wi"
  1691. "ng_id\030\006 \001(\005\022\017\n\007wing_lv\030\007 \001(\005\"\225\001\n\016PointsR"
  1692. "ankInfo\022\014\n\004rank\030\001 \001(\005\022\020\n\010playerId\030\002 \001(\005\022"
  1693. "\020\n\010nickName\030\003 \001(\t\022\016\n\006points\030\004 \001(\003\022\021\n\tsin"
  1694. "gleMax\030\005 \001(\005\022\r\n\005viplv\030\006 \001(\005\022\016\n\006headid\030\007 "
  1695. "\001(\005\022\017\n\007frameid\030\010 \001(\005\"l\n\031packetc2l_get_po"
  1696. "ints_rank\022O\n\tpacket_id\030\001 \001(\0162!.fish_prot"
  1697. "ocols.e_server_msg_type:\031e_mst_c2l_get_p"
  1698. "oints_rank\"\364\002\n packetl2c_get_points_rank"
  1699. "_result\022V\n\tpacket_id\030\001 \001(\0162!.fish_protoc"
  1700. "ols.e_server_msg_type: e_mst_l2c_get_poi"
  1701. "nts_rank_result\022\017\n\007mypoint\030\002 \001(\003\022\025\n\rmysi"
  1702. "nglepoint\030\003 \001(\005\0225\n\rPointRankList\030\004 \003(\0132\036"
  1703. ".fish_protocols.PointsRankInfo\0225\n\rLuckyR"
  1704. "ankList\030\005 \003(\0132\036.fish_protocols.PointsRan"
  1705. "kInfo\022\033\n\023PointThresholdvalue\030\006 \003(\005\022\033\n\023lu"
  1706. "ckyThresholdvalue\030\007 \003(\005\022\023\n\013myPointRank\030\010"
  1707. " \001(\003\022\023\n\013myLuckyRank\030\t \001(\003\"7\n\nexItemInfo\022"
  1708. "\022\n\nex_item_id\030\001 \001(\005\022\025\n\rex_item_count\030\002 \001"
  1709. "(\005\"\243\001\n\037packetc2l_medium_grade_exchange\022U"
  1710. "\n\tpacket_id\030\001 \001(\0162!.fish_protocols.e_ser"
  1711. "ver_msg_type:\037e_mst_c2l_medium_grade_exc"
  1712. "hange\022\023\n\013exchange_id\030\002 \001(\005\022\024\n\014ex_reward_"
  1713. "id\030\003 \001(\005\".\n\npointsInfo\022\016\n\006points\030\001 \001(\005\022\020"
  1714. "\n\010pointsEx\030\002 \001(\005\"\260\002\n&packetl2c_medium_gr"
  1715. "ade_exchange_result\022\\\n\tpacket_id\030\001 \001(\0162!"
  1716. ".fish_protocols.e_server_msg_type:&e_mst"
  1717. "_l2c_medium_grade_exchange_result\022:\n\006res"
  1718. "ult\030\002 \001(\0162\036.msg_type_def.e_msg_result_de"
  1719. "f:\ne_rmt_fail\022\023\n\013exchange_id\030\003 \003(\005\022+\n\007ex"
  1720. "_item\030\004 \003(\0132\032.fish_protocols.exItemInfo\022"
  1721. "*\n\006points\030\005 \003(\0132\032.fish_protocols.pointsI"
  1722. "nfo\"f\n\026packetc2l_get_shoplist\022L\n\tpacket_"
  1723. "id\030\001 \001(\0162!.fish_protocols.e_server_msg_t"
  1724. "ype:\026e_mst_c2l_get_shoplist\"\250\001\n\014msg_shop"
  1725. "item\022\017\n\007shop_id\030\001 \001(\005\022\017\n\007item_id\030\002 \001(\005\022\022"
  1726. "\n\nitem_count\030\003 \001(\005\022\024\n\014consume_type\030\004 \001(\005"
  1727. "\022\025\n\rconsume_count\030\005 \001(\005\022\021\n\tshow_type\030\006 \001"
  1728. "(\005\022\020\n\010need_vip\030\007 \001(\005\022\020\n\010show_tab\030\010 \001(\005\"\244"
  1729. "\001\n\035packetl2c_get_shoplist_result\022S\n\tpack"
  1730. "et_id\030\001 \001(\0162!.fish_protocols.e_server_ms"
  1731. "g_type:\035e_mst_l2c_get_shoplist_result\022.\n"
  1732. "\010shoplist\030\002 \003(\0132\034.fish_protocols.msg_sho"
  1733. "pitem\"\203\001\n\030packetc2l_turret_levelup\022N\n\tpa"
  1734. "cket_id\030\001 \001(\0162!.fish_protocols.e_server_"
  1735. "msg_type:\030e_mst_c2l_turret_levelup\022\027\n\010us"
  1736. "elucky\030\002 \001(\010:\005false\"\203\002\n\037packetl2c_turret"
  1737. "_levelup_result\022U\n\tpacket_id\030\001 \001(\0162!.fis"
  1738. "h_protocols.e_server_msg_type:\037e_mst_l2c"
  1739. "_turret_levelup_result\022:\n\006result\030\002 \001(\0162\036"
  1740. ".msg_type_def.e_msg_result_def:\ne_rmt_fa"
  1741. "il\022\022\n\nusediamond\030\003 \001(\010\022\020\n\010uselucky\030\004 \001(\010"
  1742. "\022\021\n\006cur_lv\030\005 \001(\005:\0010\022\024\n\tcur_lucky\030\006 \001(\005:\001"
  1743. "0\"\365\001\n\035packetl2c_player_auto_levelup\022S\n\tp"
  1744. "acket_id\030\001 \001(\0162!.fish_protocols.e_server"
  1745. "_msg_type:\035e_mst_l2c_player_auto_levelup"
  1746. "\022\017\n\007uplevel\030\002 \001(\005\022\022\n\naward_gold\030\003 \001(\005\022\024\n"
  1747. "\014award_ticket\030\004 \001(\005\022\026\n\013unlock_rate\030\005 \001(\005"
  1748. ":\0010\022,\n\naward_item\030\006 \003(\0132\030.fish_protocols"
  1749. ".msg_item\"\224\001\n\032packetl2c_give_item_result"
  1750. "\022P\n\tpacket_id\030\001 \001(\0162!.fish_protocols.e_s"
  1751. "erver_msg_type:\032e_mst_l2c_give_item_resu"
  1752. "lt\022\016\n\006itemid\030\002 \001(\005\022\024\n\titemcount\030\003 \001(\005:\0011"
  1753. "\"\220\001\n\027packetc2l_buy_func_item\022M\n\tpacket_i"
  1754. "d\030\001 \001(\0162!.fish_protocols.e_server_msg_ty"
  1755. "pe:\027e_mst_c2l_buy_func_item\022\017\n\007item_id\030\002"
  1756. " \001(\005\022\025\n\nitem_count\030\003 \001(\005:\0011\"\332\001\n\036packetl2"
  1757. "c_buy_func_item_result\022T\n\tpacket_id\030\001 \001("
  1758. "\0162!.fish_protocols.e_server_msg_type:\036e_"
  1759. "mst_l2c_buy_func_item_result\022\017\n\007item_id\030"
  1760. "\002 \001(\005\022:\n\006result\030\003 \001(\0162\036.msg_type_def.e_m"
  1761. "sg_result_def:\ne_rmt_fail\022\025\n\nitem_count\030"
  1762. "\004 \001(\005:\0011\"\247\001\n\032packetc2l_torpedo_exchange\022"
  1763. "P\n\tpacket_id\030\001 \001(\0162!.fish_protocols.e_se"
  1764. "rver_msg_type:\032e_mst_c2l_torpedo_exchang"
  1765. "e\022\014\n\004type\030\002 \001(\005\022\022\n\ntorpedo_id\030\003 \001(\005\022\025\n\rt"
  1766. "orpedo_count\030\004 \001(\005\"\361\001\n!packetl2c_torpedo"
  1767. "_exchange_result\022W\n\tpacket_id\030\001 \001(\0162!.fi"
  1768. "sh_protocols.e_server_msg_type:!e_mst_l2"
  1769. "c_torpedo_exchange_result\022:\n\006result\030\002 \001("
  1770. "\0162\036.msg_type_def.e_msg_result_def:\ne_rmt"
  1771. "_fail\022\014\n\004type\030\003 \001(\005\022\022\n\ntorpedo_id\030\004 \001(\005\022"
  1772. "\025\n\rtorpedo_count\030\005 \001(\005\"\245\001\n\031packetc2l_tor"
  1773. "pedo_compose\022O\n\tpacket_id\030\001 \001(\0162!.fish_p"
  1774. "rotocols.e_server_msg_type:\031e_mst_c2l_to"
  1775. "rpedo_compose\022\014\n\004type\030\002 \001(\005\022\022\n\ncompose_i"
  1776. "d\030\003 \001(\005\022\025\n\rcompose_count\030\004 \001(\005\"\341\001\n packe"
  1777. "tl2c_torpedo_compose_result\022V\n\tpacket_id"
  1778. "\030\001 \001(\0162!.fish_protocols.e_server_msg_typ"
  1779. "e: e_mst_l2c_torpedo_compose_result\022:\n\006r"
  1780. "esult\030\002 \001(\0162\036.msg_type_def.e_msg_result_"
  1781. "def:\ne_rmt_fail\022\022\n\ncompose_id\030\003 \001(\005\022\025\n\rc"
  1782. "ompose_count\030\004 \001(\005\"\253\001\n\017msg_airdropitem\022\014"
  1783. "\n\004uuid\030\001 \001(\005\022\020\n\010playerid\030\002 \001(\005\022\016\n\006itemid"
  1784. "\030\003 \001(\005\022\021\n\titemcount\030\004 \001(\005\022\020\n\010nickname\030\005 "
  1785. "\001(\t\022\017\n\007headurl\030\006 \001(\t\022\013\n\003pwd\030\007 \001(\t\022\022\n\nlef"
  1786. "tsecond\030\010 \001(\005\022\021\n\treceiveId\030\t \001(\005\"\224\002\n!pac"
  1787. "ketl2c_get_airdrop_list_result\022W\n\tpacket"
  1788. "_id\030\001 \001(\0162!.fish_protocols.e_server_msg_"
  1789. "type:!e_mst_l2c_get_airdrop_list_result\022"
  1790. ":\n\006result\030\002 \001(\0162\036.msg_type_def.e_msg_res"
  1791. "ult_def:\ne_rmt_fail\022\026\n\016bplayerairdrop\030\003 "
  1792. "\001(\010\022.\n\005items\030\004 \003(\0132\037.fish_protocols.msg_"
  1793. "airdropitem\022\022\n\nerrorcount\030\005 \001(\005\"z\n\032packe"
  1794. "tc2l_goldfish_lottery\022P\n\tpacket_id\030\001 \001(\016"
  1795. "2!.fish_protocols.e_server_msg_type:\032e_m"
  1796. "st_c2l_goldfish_lottery\022\n\n\002id\030\002 \001(\005\"\350\001\n!"
  1797. "packetl2c_goldfish_lottery_result\022W\n\tpac"
  1798. "ket_id\030\001 \001(\0162!.fish_protocols.e_server_m"
  1799. "sg_type:!e_mst_l2c_goldfish_lottery_resu"
  1800. "lt\022:\n\006result\030\002 \001(\0162\036.msg_type_def.e_msg_"
  1801. "result_def:\ne_rmt_fail\022\020\n\010playerid\030\003 \001(\005"
  1802. "\022\n\n\002id\030\004 \001(\005\022\020\n\010rewardID\030\005 \001(\005\"\273\001\n/packe"
  1803. "tl2c_bc_table_finish_turntablefish_balan"
  1804. "ce\022e\n\tpacket_id\030\001 \001(\0162!.fish_protocols.e"
  1805. "_server_msg_type:/e_mst_l2c_bc_table_fin"
  1806. "ish_turntablefish_balance\022\020\n\010playerId\030\002 "
  1807. "\001(\005\022\017\n\007addGold\030\003 \001(\005\"\206\001\n\034packetc2l_excha"
  1808. "nge_dimensity\022R\n\tpacket_id\030\001 \001(\0162!.fish_"
  1809. "protocols.e_server_msg_type:\034e_mst_c2l_e"
  1810. "xchange_dimensity\022\022\n\nexchangeId\030\002 \001(\005\"\244\001"
  1811. "\n#packetl2c_exchange_dimensity_result\022Y\n"
  1812. "\tpacket_id\030\001 \001(\0162!.fish_protocols.e_serv"
  1813. "er_msg_type:#e_mst_l2c_exchange_dimensit"
  1814. "y_result\022\022\n\nexchangeId\030\002 \001(\005\022\016\n\006result\030\003"
  1815. " \001(\005\"u\n\027packetc2l_lucky_lottery\022M\n\tpacke"
  1816. "t_id\030\001 \001(\0162!.fish_protocols.e_server_msg"
  1817. "_type:\027e_mst_c2l_lucky_lottery\022\013\n\003all\030\002 "
  1818. "\001(\010\"\250\001\n\036packetl2c_lucky_lottery_result\022T"
  1819. "\n\tpacket_id\030\001 \001(\0162!.fish_protocols.e_ser"
  1820. "ver_msg_type:\036e_mst_l2c_lucky_lottery_re"
  1821. "sult\022\013\n\003all\030\002 \001(\010\022\016\n\006result\030\003 \001(\005\022\023\n\013rew"
  1822. "ardIndex\030\004 \003(\005\"8\n\nrecordInfo\022\014\n\004type\030\001 \001"
  1823. "(\005\022\r\n\005param\030\002 \001(\005\022\r\n\005count\030\003 \001(\005\"\234\001\n\031pac"
  1824. "ketc2l_syn_record_info\022O\n\tpacket_id\030\001 \001("
  1825. "\0162!.fish_protocols.e_server_msg_type:\031e_"
  1826. "mst_c2l_syn_record_info\022.\n\nrecordList\030\002 "
  1827. "\003(\0132\032.fish_protocols.recordInfo\"n\n\023packe"
  1828. "tc2l_auto_fire\022I\n\tpacket_id\030\001 \001(\0162!.fish"
  1829. "_protocols.e_server_msg_type:\023e_mst_c2l_"
  1830. "auto_fire\022\014\n\004type\030\002 \001(\005\"\211\001\n\027packetc2l_ch"
  1831. "ange_headid\022M\n\tpacket_id\030\001 \001(\0162!.fish_pr"
  1832. "otocols.e_server_msg_type:\027e_mst_c2l_cha"
  1833. "nge_headid\022\016\n\006headId\030\002 \001(\005\022\017\n\007frameid\030\003 "
  1834. "\001(\005\"\271\001\n\036packetl2c_change_headid_result\022T"
  1835. "\n\tpacket_id\030\001 \001(\0162!.fish_protocols.e_ser"
  1836. "ver_msg_type:\036e_mst_l2c_change_headid_re"
  1837. "sult\022\020\n\010playerId\030\002 \001(\005\022\016\n\006headId\030\003 \001(\005\022\017"
  1838. "\n\007frameid\030\004 \001(\005\022\016\n\006result\030\005 \001(\005\"\220\001\n\036pack"
  1839. "etc2l_rand_turret_addition\022T\n\tpacket_id\030"
  1840. "\001 \001(\0162!.fish_protocols.e_server_msg_type"
  1841. ":\036e_mst_c2l_rand_turret_addition\022\014\n\004type"
  1842. "\030\002 \001(\005\022\n\n\002id\030\003 \001(\005\"\365\001\n%packetl2c_rand_tu"
  1843. "rret_addition_result\022[\n\tpacket_id\030\001 \001(\0162"
  1844. "!.fish_protocols.e_server_msg_type:%e_ms"
  1845. "t_l2c_rand_turret_addition_result\022\014\n\004typ"
  1846. "e\030\002 \001(\005\022\n\n\002id\030\003 \001(\005\022\016\n\006result\030\004 \001(\005\022\021\n\tl"
  1847. "eftTimes\030\005 \001(\005\022\r\n\005addId\030\006 \001(\005\022\020\n\010costIte"
  1848. "m\030\007 \001(\005\022\021\n\tcostCount\030\010 \001(\005\"\226\001\n!packetc2l"
  1849. "_turret_addition_confirm\022W\n\tpacket_id\030\001 "
  1850. "\001(\0162!.fish_protocols.e_server_msg_type:!"
  1851. "e_mst_c2l_turret_addition_confirm\022\014\n\004typ"
  1852. "e\030\002 \001(\005\022\n\n\002id\030\003 \001(\005\"\222\002\n(packetl2c_turret"
  1853. "_addition_confirm_result\022^\n\tpacket_id\030\001 "
  1854. "\001(\0162!.fish_protocols.e_server_msg_type:("
  1855. "e_mst_l2c_turret_addition_confirm_result"
  1856. "\022\014\n\004type\030\002 \001(\005\022\n\n\002id\030\003 \001(\005\022\016\n\006result\030\004 \001"
  1857. "(\005\022+\n\010wingdata\030\005 \001(\0132\031.fish_protocols.wi"
  1858. "ng_unit\022/\n\nturretdata\030\006 \001(\0132\033.fish_proto"
  1859. "cols.turret_unit\"\222\001\n\037packetc2l_turret_ad"
  1860. "dition_reset\022U\n\tpacket_id\030\001 \001(\0162!.fish_p"
  1861. "rotocols.e_server_msg_type:\037e_mst_c2l_tu"
  1862. "rret_addition_reset\022\014\n\004type\030\002 \001(\005\022\n\n\002id\030"
  1863. "\003 \001(\005\"\305\001\n&packetl2c_turret_addition_rese"
  1864. "t_result\022\\\n\tpacket_id\030\001 \001(\0162!.fish_proto"
  1865. "cols.e_server_msg_type:&e_mst_l2c_turret"
  1866. "_addition_reset_result\022\014\n\004type\030\002 \001(\005\022\n\n\002"
  1867. "id\030\003 \001(\005\022\016\n\006result\030\004 \001(\005\022\023\n\013returnCount\030"
  1868. "\005 \001(\005", 10845);
  1869. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  1870. "fish_protocol.proto", &protobuf_RegisterTypes);
  1871. packetc2l_get_room_info::default_instance_ = new packetc2l_get_room_info();
  1872. msg_room_info::default_instance_ = new msg_room_info();
  1873. packetl2c_get_room_info_result::default_instance_ = new packetl2c_get_room_info_result();
  1874. packetc2l_enter_table::default_instance_ = new packetc2l_enter_table();
  1875. packetl2c_enter_table_result::default_instance_ = new packetl2c_enter_table_result();
  1876. packetc2l_change_table::default_instance_ = new packetc2l_change_table();
  1877. packetl2c_change_table_result::default_instance_ = new packetl2c_change_table_result();
  1878. packetc2l_leave_table::default_instance_ = new packetc2l_leave_table();
  1879. packetl2c_leave_table_result::default_instance_ = new packetl2c_leave_table_result();
  1880. packetc2l_check_state::default_instance_ = new packetc2l_check_state();
  1881. skill_unit::default_instance_ = new skill_unit();
  1882. turret_unit::default_instance_ = new turret_unit();
  1883. wing_unit::default_instance_ = new wing_unit();
  1884. packetl2c_check_state_result::default_instance_ = new packetl2c_check_state_result();
  1885. packetc2l_buy_item::default_instance_ = new packetc2l_buy_item();
  1886. packetl2c_buy_item_result::default_instance_ = new packetl2c_buy_item_result();
  1887. packetc2l_use_item::default_instance_ = new packetc2l_use_item();
  1888. getItemsInfo::default_instance_ = new getItemsInfo();
  1889. ItemInfo::default_instance_ = new ItemInfo();
  1890. packetl2c_use_item_result::default_instance_ = new packetl2c_use_item_result();
  1891. packetc2l_change_turret::default_instance_ = new packetc2l_change_turret();
  1892. packetl2c_change_turret_result::default_instance_ = new packetl2c_change_turret_result();
  1893. PointsRankInfo::default_instance_ = new PointsRankInfo();
  1894. packetc2l_get_points_rank::default_instance_ = new packetc2l_get_points_rank();
  1895. packetl2c_get_points_rank_result::default_instance_ = new packetl2c_get_points_rank_result();
  1896. exItemInfo::default_instance_ = new exItemInfo();
  1897. packetc2l_medium_grade_exchange::default_instance_ = new packetc2l_medium_grade_exchange();
  1898. pointsInfo::default_instance_ = new pointsInfo();
  1899. packetl2c_medium_grade_exchange_result::default_instance_ = new packetl2c_medium_grade_exchange_result();
  1900. packetc2l_get_shoplist::default_instance_ = new packetc2l_get_shoplist();
  1901. msg_shopitem::default_instance_ = new msg_shopitem();
  1902. packetl2c_get_shoplist_result::default_instance_ = new packetl2c_get_shoplist_result();
  1903. packetc2l_turret_levelup::default_instance_ = new packetc2l_turret_levelup();
  1904. packetl2c_turret_levelup_result::default_instance_ = new packetl2c_turret_levelup_result();
  1905. packetl2c_player_auto_levelup::default_instance_ = new packetl2c_player_auto_levelup();
  1906. packetl2c_give_item_result::default_instance_ = new packetl2c_give_item_result();
  1907. packetc2l_buy_func_item::default_instance_ = new packetc2l_buy_func_item();
  1908. packetl2c_buy_func_item_result::default_instance_ = new packetl2c_buy_func_item_result();
  1909. packetc2l_torpedo_exchange::default_instance_ = new packetc2l_torpedo_exchange();
  1910. packetl2c_torpedo_exchange_result::default_instance_ = new packetl2c_torpedo_exchange_result();
  1911. packetc2l_torpedo_compose::default_instance_ = new packetc2l_torpedo_compose();
  1912. packetl2c_torpedo_compose_result::default_instance_ = new packetl2c_torpedo_compose_result();
  1913. msg_airdropitem::default_instance_ = new msg_airdropitem();
  1914. packetl2c_get_airdrop_list_result::default_instance_ = new packetl2c_get_airdrop_list_result();
  1915. packetc2l_goldfish_lottery::default_instance_ = new packetc2l_goldfish_lottery();
  1916. packetl2c_goldfish_lottery_result::default_instance_ = new packetl2c_goldfish_lottery_result();
  1917. packetl2c_bc_table_finish_turntablefish_balance::default_instance_ = new packetl2c_bc_table_finish_turntablefish_balance();
  1918. packetc2l_exchange_dimensity::default_instance_ = new packetc2l_exchange_dimensity();
  1919. packetl2c_exchange_dimensity_result::default_instance_ = new packetl2c_exchange_dimensity_result();
  1920. packetc2l_lucky_lottery::default_instance_ = new packetc2l_lucky_lottery();
  1921. packetl2c_lucky_lottery_result::default_instance_ = new packetl2c_lucky_lottery_result();
  1922. recordInfo::default_instance_ = new recordInfo();
  1923. packetc2l_syn_record_info::default_instance_ = new packetc2l_syn_record_info();
  1924. packetc2l_auto_fire::default_instance_ = new packetc2l_auto_fire();
  1925. packetc2l_change_headid::default_instance_ = new packetc2l_change_headid();
  1926. packetl2c_change_headid_result::default_instance_ = new packetl2c_change_headid_result();
  1927. packetc2l_rand_turret_addition::default_instance_ = new packetc2l_rand_turret_addition();
  1928. packetl2c_rand_turret_addition_result::default_instance_ = new packetl2c_rand_turret_addition_result();
  1929. packetc2l_turret_addition_confirm::default_instance_ = new packetc2l_turret_addition_confirm();
  1930. packetl2c_turret_addition_confirm_result::default_instance_ = new packetl2c_turret_addition_confirm_result();
  1931. packetc2l_turret_addition_reset::default_instance_ = new packetc2l_turret_addition_reset();
  1932. packetl2c_turret_addition_reset_result::default_instance_ = new packetl2c_turret_addition_reset_result();
  1933. packetc2l_get_room_info::default_instance_->InitAsDefaultInstance();
  1934. msg_room_info::default_instance_->InitAsDefaultInstance();
  1935. packetl2c_get_room_info_result::default_instance_->InitAsDefaultInstance();
  1936. packetc2l_enter_table::default_instance_->InitAsDefaultInstance();
  1937. packetl2c_enter_table_result::default_instance_->InitAsDefaultInstance();
  1938. packetc2l_change_table::default_instance_->InitAsDefaultInstance();
  1939. packetl2c_change_table_result::default_instance_->InitAsDefaultInstance();
  1940. packetc2l_leave_table::default_instance_->InitAsDefaultInstance();
  1941. packetl2c_leave_table_result::default_instance_->InitAsDefaultInstance();
  1942. packetc2l_check_state::default_instance_->InitAsDefaultInstance();
  1943. skill_unit::default_instance_->InitAsDefaultInstance();
  1944. turret_unit::default_instance_->InitAsDefaultInstance();
  1945. wing_unit::default_instance_->InitAsDefaultInstance();
  1946. packetl2c_check_state_result::default_instance_->InitAsDefaultInstance();
  1947. packetc2l_buy_item::default_instance_->InitAsDefaultInstance();
  1948. packetl2c_buy_item_result::default_instance_->InitAsDefaultInstance();
  1949. packetc2l_use_item::default_instance_->InitAsDefaultInstance();
  1950. getItemsInfo::default_instance_->InitAsDefaultInstance();
  1951. ItemInfo::default_instance_->InitAsDefaultInstance();
  1952. packetl2c_use_item_result::default_instance_->InitAsDefaultInstance();
  1953. packetc2l_change_turret::default_instance_->InitAsDefaultInstance();
  1954. packetl2c_change_turret_result::default_instance_->InitAsDefaultInstance();
  1955. PointsRankInfo::default_instance_->InitAsDefaultInstance();
  1956. packetc2l_get_points_rank::default_instance_->InitAsDefaultInstance();
  1957. packetl2c_get_points_rank_result::default_instance_->InitAsDefaultInstance();
  1958. exItemInfo::default_instance_->InitAsDefaultInstance();
  1959. packetc2l_medium_grade_exchange::default_instance_->InitAsDefaultInstance();
  1960. pointsInfo::default_instance_->InitAsDefaultInstance();
  1961. packetl2c_medium_grade_exchange_result::default_instance_->InitAsDefaultInstance();
  1962. packetc2l_get_shoplist::default_instance_->InitAsDefaultInstance();
  1963. msg_shopitem::default_instance_->InitAsDefaultInstance();
  1964. packetl2c_get_shoplist_result::default_instance_->InitAsDefaultInstance();
  1965. packetc2l_turret_levelup::default_instance_->InitAsDefaultInstance();
  1966. packetl2c_turret_levelup_result::default_instance_->InitAsDefaultInstance();
  1967. packetl2c_player_auto_levelup::default_instance_->InitAsDefaultInstance();
  1968. packetl2c_give_item_result::default_instance_->InitAsDefaultInstance();
  1969. packetc2l_buy_func_item::default_instance_->InitAsDefaultInstance();
  1970. packetl2c_buy_func_item_result::default_instance_->InitAsDefaultInstance();
  1971. packetc2l_torpedo_exchange::default_instance_->InitAsDefaultInstance();
  1972. packetl2c_torpedo_exchange_result::default_instance_->InitAsDefaultInstance();
  1973. packetc2l_torpedo_compose::default_instance_->InitAsDefaultInstance();
  1974. packetl2c_torpedo_compose_result::default_instance_->InitAsDefaultInstance();
  1975. msg_airdropitem::default_instance_->InitAsDefaultInstance();
  1976. packetl2c_get_airdrop_list_result::default_instance_->InitAsDefaultInstance();
  1977. packetc2l_goldfish_lottery::default_instance_->InitAsDefaultInstance();
  1978. packetl2c_goldfish_lottery_result::default_instance_->InitAsDefaultInstance();
  1979. packetl2c_bc_table_finish_turntablefish_balance::default_instance_->InitAsDefaultInstance();
  1980. packetc2l_exchange_dimensity::default_instance_->InitAsDefaultInstance();
  1981. packetl2c_exchange_dimensity_result::default_instance_->InitAsDefaultInstance();
  1982. packetc2l_lucky_lottery::default_instance_->InitAsDefaultInstance();
  1983. packetl2c_lucky_lottery_result::default_instance_->InitAsDefaultInstance();
  1984. recordInfo::default_instance_->InitAsDefaultInstance();
  1985. packetc2l_syn_record_info::default_instance_->InitAsDefaultInstance();
  1986. packetc2l_auto_fire::default_instance_->InitAsDefaultInstance();
  1987. packetc2l_change_headid::default_instance_->InitAsDefaultInstance();
  1988. packetl2c_change_headid_result::default_instance_->InitAsDefaultInstance();
  1989. packetc2l_rand_turret_addition::default_instance_->InitAsDefaultInstance();
  1990. packetl2c_rand_turret_addition_result::default_instance_->InitAsDefaultInstance();
  1991. packetc2l_turret_addition_confirm::default_instance_->InitAsDefaultInstance();
  1992. packetl2c_turret_addition_confirm_result::default_instance_->InitAsDefaultInstance();
  1993. packetc2l_turret_addition_reset::default_instance_->InitAsDefaultInstance();
  1994. packetl2c_turret_addition_reset_result::default_instance_->InitAsDefaultInstance();
  1995. ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_fish_5fprotocol_2eproto);
  1996. }
  1997. // Force AddDescriptors() to be called at static initialization time.
  1998. struct StaticDescriptorInitializer_fish_5fprotocol_2eproto {
  1999. StaticDescriptorInitializer_fish_5fprotocol_2eproto() {
  2000. protobuf_AddDesc_fish_5fprotocol_2eproto();
  2001. }
  2002. } static_descriptor_initializer_fish_5fprotocol_2eproto_;
  2003. // ===================================================================
  2004. #ifndef _MSC_VER
  2005. const int packetc2l_get_room_info::kPacketIdFieldNumber;
  2006. #endif // !_MSC_VER
  2007. packetc2l_get_room_info::packetc2l_get_room_info()
  2008. : ::google::protobuf::Message() {
  2009. SharedCtor();
  2010. }
  2011. void packetc2l_get_room_info::InitAsDefaultInstance() {
  2012. }
  2013. packetc2l_get_room_info::packetc2l_get_room_info(const packetc2l_get_room_info& from)
  2014. : ::google::protobuf::Message() {
  2015. SharedCtor();
  2016. MergeFrom(from);
  2017. }
  2018. void packetc2l_get_room_info::SharedCtor() {
  2019. _cached_size_ = 0;
  2020. packet_id_ = 10001;
  2021. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2022. }
  2023. packetc2l_get_room_info::~packetc2l_get_room_info() {
  2024. SharedDtor();
  2025. }
  2026. void packetc2l_get_room_info::SharedDtor() {
  2027. if (this != default_instance_) {
  2028. }
  2029. }
  2030. void packetc2l_get_room_info::SetCachedSize(int size) const {
  2031. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2032. _cached_size_ = size;
  2033. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2034. }
  2035. const ::google::protobuf::Descriptor* packetc2l_get_room_info::descriptor() {
  2036. protobuf_AssignDescriptorsOnce();
  2037. return packetc2l_get_room_info_descriptor_;
  2038. }
  2039. const packetc2l_get_room_info& packetc2l_get_room_info::default_instance() {
  2040. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  2041. return *default_instance_;
  2042. }
  2043. packetc2l_get_room_info* packetc2l_get_room_info::default_instance_ = NULL;
  2044. packetc2l_get_room_info* packetc2l_get_room_info::New() const {
  2045. return new packetc2l_get_room_info;
  2046. }
  2047. void packetc2l_get_room_info::Clear() {
  2048. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2049. packet_id_ = 10001;
  2050. }
  2051. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2052. mutable_unknown_fields()->Clear();
  2053. }
  2054. bool packetc2l_get_room_info::MergePartialFromCodedStream(
  2055. ::google::protobuf::io::CodedInputStream* input) {
  2056. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  2057. ::google::protobuf::uint32 tag;
  2058. while ((tag = input->ReadTag()) != 0) {
  2059. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2060. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_room_info];
  2061. case 1: {
  2062. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2063. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2064. int value;
  2065. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2066. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2067. input, &value)));
  2068. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  2069. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  2070. } else {
  2071. mutable_unknown_fields()->AddVarint(1, value);
  2072. }
  2073. } else {
  2074. goto handle_uninterpreted;
  2075. }
  2076. if (input->ExpectAtEnd()) return true;
  2077. break;
  2078. }
  2079. default: {
  2080. handle_uninterpreted:
  2081. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2082. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2083. return true;
  2084. }
  2085. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2086. input, tag, mutable_unknown_fields()));
  2087. break;
  2088. }
  2089. }
  2090. }
  2091. return true;
  2092. #undef DO_
  2093. }
  2094. void packetc2l_get_room_info::SerializeWithCachedSizes(
  2095. ::google::protobuf::io::CodedOutputStream* output) const {
  2096. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_room_info];
  2097. if (has_packet_id()) {
  2098. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2099. 1, this->packet_id(), output);
  2100. }
  2101. if (!unknown_fields().empty()) {
  2102. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2103. unknown_fields(), output);
  2104. }
  2105. }
  2106. ::google::protobuf::uint8* packetc2l_get_room_info::SerializeWithCachedSizesToArray(
  2107. ::google::protobuf::uint8* target) const {
  2108. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_room_info];
  2109. if (has_packet_id()) {
  2110. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2111. 1, this->packet_id(), target);
  2112. }
  2113. if (!unknown_fields().empty()) {
  2114. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2115. unknown_fields(), target);
  2116. }
  2117. return target;
  2118. }
  2119. int packetc2l_get_room_info::ByteSize() const {
  2120. int total_size = 0;
  2121. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2122. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_room_info];
  2123. if (has_packet_id()) {
  2124. total_size += 1 +
  2125. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  2126. }
  2127. }
  2128. if (!unknown_fields().empty()) {
  2129. total_size +=
  2130. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2131. unknown_fields());
  2132. }
  2133. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2134. _cached_size_ = total_size;
  2135. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2136. return total_size;
  2137. }
  2138. void packetc2l_get_room_info::MergeFrom(const ::google::protobuf::Message& from) {
  2139. GOOGLE_CHECK_NE(&from, this);
  2140. const packetc2l_get_room_info* source =
  2141. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_get_room_info*>(
  2142. &from);
  2143. if (source == NULL) {
  2144. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2145. } else {
  2146. MergeFrom(*source);
  2147. }
  2148. }
  2149. void packetc2l_get_room_info::MergeFrom(const packetc2l_get_room_info& from) {
  2150. GOOGLE_CHECK_NE(&from, this);
  2151. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2152. if (from.has_packet_id()) {
  2153. set_packet_id(from.packet_id());
  2154. }
  2155. }
  2156. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  2157. }
  2158. void packetc2l_get_room_info::CopyFrom(const ::google::protobuf::Message& from) {
  2159. if (&from == this) return;
  2160. Clear();
  2161. MergeFrom(from);
  2162. }
  2163. void packetc2l_get_room_info::CopyFrom(const packetc2l_get_room_info& from) {
  2164. if (&from == this) return;
  2165. Clear();
  2166. MergeFrom(from);
  2167. }
  2168. bool packetc2l_get_room_info::IsInitialized() const {
  2169. return true;
  2170. }
  2171. void packetc2l_get_room_info::Swap(packetc2l_get_room_info* other) {
  2172. if (other != this) {
  2173. std::swap(packet_id_, other->packet_id_);
  2174. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2175. _unknown_fields_.Swap(&other->_unknown_fields_);
  2176. std::swap(_cached_size_, other->_cached_size_);
  2177. }
  2178. }
  2179. ::google::protobuf::Metadata packetc2l_get_room_info::GetMetadata() const {
  2180. protobuf_AssignDescriptorsOnce();
  2181. ::google::protobuf::Metadata metadata;
  2182. metadata.descriptor = packetc2l_get_room_info_descriptor_;
  2183. metadata.reflection = packetc2l_get_room_info_reflection_;
  2184. return metadata;
  2185. }
  2186. // ===================================================================
  2187. #ifndef _MSC_VER
  2188. const int msg_room_info::kRoomidFieldNumber;
  2189. const int msg_room_info::kPlayerCountFieldNumber;
  2190. const int msg_room_info::kJackpotFieldNumber;
  2191. const int msg_room_info::kLeftSecondFieldNumber;
  2192. #endif // !_MSC_VER
  2193. msg_room_info::msg_room_info()
  2194. : ::google::protobuf::Message() {
  2195. SharedCtor();
  2196. }
  2197. void msg_room_info::InitAsDefaultInstance() {
  2198. }
  2199. msg_room_info::msg_room_info(const msg_room_info& from)
  2200. : ::google::protobuf::Message() {
  2201. SharedCtor();
  2202. MergeFrom(from);
  2203. }
  2204. void msg_room_info::SharedCtor() {
  2205. _cached_size_ = 0;
  2206. roomid_ = 0;
  2207. player_count_ = 0;
  2208. jackpot_ = GOOGLE_LONGLONG(0);
  2209. leftsecond_ = 0;
  2210. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2211. }
  2212. msg_room_info::~msg_room_info() {
  2213. SharedDtor();
  2214. }
  2215. void msg_room_info::SharedDtor() {
  2216. if (this != default_instance_) {
  2217. }
  2218. }
  2219. void msg_room_info::SetCachedSize(int size) const {
  2220. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2221. _cached_size_ = size;
  2222. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2223. }
  2224. const ::google::protobuf::Descriptor* msg_room_info::descriptor() {
  2225. protobuf_AssignDescriptorsOnce();
  2226. return msg_room_info_descriptor_;
  2227. }
  2228. const msg_room_info& msg_room_info::default_instance() {
  2229. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  2230. return *default_instance_;
  2231. }
  2232. msg_room_info* msg_room_info::default_instance_ = NULL;
  2233. msg_room_info* msg_room_info::New() const {
  2234. return new msg_room_info;
  2235. }
  2236. void msg_room_info::Clear() {
  2237. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2238. roomid_ = 0;
  2239. player_count_ = 0;
  2240. jackpot_ = GOOGLE_LONGLONG(0);
  2241. leftsecond_ = 0;
  2242. }
  2243. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2244. mutable_unknown_fields()->Clear();
  2245. }
  2246. bool msg_room_info::MergePartialFromCodedStream(
  2247. ::google::protobuf::io::CodedInputStream* input) {
  2248. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  2249. ::google::protobuf::uint32 tag;
  2250. while ((tag = input->ReadTag()) != 0) {
  2251. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2252. // optional int32 roomid = 1;
  2253. case 1: {
  2254. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2255. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2256. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2257. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2258. input, &roomid_)));
  2259. set_has_roomid();
  2260. } else {
  2261. goto handle_uninterpreted;
  2262. }
  2263. if (input->ExpectTag(16)) goto parse_player_count;
  2264. break;
  2265. }
  2266. // optional int32 player_count = 2;
  2267. case 2: {
  2268. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2269. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2270. parse_player_count:
  2271. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2272. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2273. input, &player_count_)));
  2274. set_has_player_count();
  2275. } else {
  2276. goto handle_uninterpreted;
  2277. }
  2278. if (input->ExpectTag(24)) goto parse_jackpot;
  2279. break;
  2280. }
  2281. // optional int64 jackpot = 3;
  2282. case 3: {
  2283. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2284. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2285. parse_jackpot:
  2286. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2287. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  2288. input, &jackpot_)));
  2289. set_has_jackpot();
  2290. } else {
  2291. goto handle_uninterpreted;
  2292. }
  2293. if (input->ExpectTag(32)) goto parse_leftSecond;
  2294. break;
  2295. }
  2296. // optional int32 leftSecond = 4;
  2297. case 4: {
  2298. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2299. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2300. parse_leftSecond:
  2301. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2302. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2303. input, &leftsecond_)));
  2304. set_has_leftsecond();
  2305. } else {
  2306. goto handle_uninterpreted;
  2307. }
  2308. if (input->ExpectAtEnd()) return true;
  2309. break;
  2310. }
  2311. default: {
  2312. handle_uninterpreted:
  2313. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2314. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2315. return true;
  2316. }
  2317. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2318. input, tag, mutable_unknown_fields()));
  2319. break;
  2320. }
  2321. }
  2322. }
  2323. return true;
  2324. #undef DO_
  2325. }
  2326. void msg_room_info::SerializeWithCachedSizes(
  2327. ::google::protobuf::io::CodedOutputStream* output) const {
  2328. // optional int32 roomid = 1;
  2329. if (has_roomid()) {
  2330. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->roomid(), output);
  2331. }
  2332. // optional int32 player_count = 2;
  2333. if (has_player_count()) {
  2334. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->player_count(), output);
  2335. }
  2336. // optional int64 jackpot = 3;
  2337. if (has_jackpot()) {
  2338. ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->jackpot(), output);
  2339. }
  2340. // optional int32 leftSecond = 4;
  2341. if (has_leftsecond()) {
  2342. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->leftsecond(), output);
  2343. }
  2344. if (!unknown_fields().empty()) {
  2345. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2346. unknown_fields(), output);
  2347. }
  2348. }
  2349. ::google::protobuf::uint8* msg_room_info::SerializeWithCachedSizesToArray(
  2350. ::google::protobuf::uint8* target) const {
  2351. // optional int32 roomid = 1;
  2352. if (has_roomid()) {
  2353. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->roomid(), target);
  2354. }
  2355. // optional int32 player_count = 2;
  2356. if (has_player_count()) {
  2357. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->player_count(), target);
  2358. }
  2359. // optional int64 jackpot = 3;
  2360. if (has_jackpot()) {
  2361. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->jackpot(), target);
  2362. }
  2363. // optional int32 leftSecond = 4;
  2364. if (has_leftsecond()) {
  2365. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->leftsecond(), target);
  2366. }
  2367. if (!unknown_fields().empty()) {
  2368. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2369. unknown_fields(), target);
  2370. }
  2371. return target;
  2372. }
  2373. int msg_room_info::ByteSize() const {
  2374. int total_size = 0;
  2375. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2376. // optional int32 roomid = 1;
  2377. if (has_roomid()) {
  2378. total_size += 1 +
  2379. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2380. this->roomid());
  2381. }
  2382. // optional int32 player_count = 2;
  2383. if (has_player_count()) {
  2384. total_size += 1 +
  2385. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2386. this->player_count());
  2387. }
  2388. // optional int64 jackpot = 3;
  2389. if (has_jackpot()) {
  2390. total_size += 1 +
  2391. ::google::protobuf::internal::WireFormatLite::Int64Size(
  2392. this->jackpot());
  2393. }
  2394. // optional int32 leftSecond = 4;
  2395. if (has_leftsecond()) {
  2396. total_size += 1 +
  2397. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2398. this->leftsecond());
  2399. }
  2400. }
  2401. if (!unknown_fields().empty()) {
  2402. total_size +=
  2403. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2404. unknown_fields());
  2405. }
  2406. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2407. _cached_size_ = total_size;
  2408. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2409. return total_size;
  2410. }
  2411. void msg_room_info::MergeFrom(const ::google::protobuf::Message& from) {
  2412. GOOGLE_CHECK_NE(&from, this);
  2413. const msg_room_info* source =
  2414. ::google::protobuf::internal::dynamic_cast_if_available<const msg_room_info*>(
  2415. &from);
  2416. if (source == NULL) {
  2417. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2418. } else {
  2419. MergeFrom(*source);
  2420. }
  2421. }
  2422. void msg_room_info::MergeFrom(const msg_room_info& from) {
  2423. GOOGLE_CHECK_NE(&from, this);
  2424. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2425. if (from.has_roomid()) {
  2426. set_roomid(from.roomid());
  2427. }
  2428. if (from.has_player_count()) {
  2429. set_player_count(from.player_count());
  2430. }
  2431. if (from.has_jackpot()) {
  2432. set_jackpot(from.jackpot());
  2433. }
  2434. if (from.has_leftsecond()) {
  2435. set_leftsecond(from.leftsecond());
  2436. }
  2437. }
  2438. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  2439. }
  2440. void msg_room_info::CopyFrom(const ::google::protobuf::Message& from) {
  2441. if (&from == this) return;
  2442. Clear();
  2443. MergeFrom(from);
  2444. }
  2445. void msg_room_info::CopyFrom(const msg_room_info& from) {
  2446. if (&from == this) return;
  2447. Clear();
  2448. MergeFrom(from);
  2449. }
  2450. bool msg_room_info::IsInitialized() const {
  2451. return true;
  2452. }
  2453. void msg_room_info::Swap(msg_room_info* other) {
  2454. if (other != this) {
  2455. std::swap(roomid_, other->roomid_);
  2456. std::swap(player_count_, other->player_count_);
  2457. std::swap(jackpot_, other->jackpot_);
  2458. std::swap(leftsecond_, other->leftsecond_);
  2459. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2460. _unknown_fields_.Swap(&other->_unknown_fields_);
  2461. std::swap(_cached_size_, other->_cached_size_);
  2462. }
  2463. }
  2464. ::google::protobuf::Metadata msg_room_info::GetMetadata() const {
  2465. protobuf_AssignDescriptorsOnce();
  2466. ::google::protobuf::Metadata metadata;
  2467. metadata.descriptor = msg_room_info_descriptor_;
  2468. metadata.reflection = msg_room_info_reflection_;
  2469. return metadata;
  2470. }
  2471. // ===================================================================
  2472. #ifndef _MSC_VER
  2473. const int packetl2c_get_room_info_result::kPacketIdFieldNumber;
  2474. const int packetl2c_get_room_info_result::kRoomsFieldNumber;
  2475. #endif // !_MSC_VER
  2476. packetl2c_get_room_info_result::packetl2c_get_room_info_result()
  2477. : ::google::protobuf::Message() {
  2478. SharedCtor();
  2479. }
  2480. void packetl2c_get_room_info_result::InitAsDefaultInstance() {
  2481. }
  2482. packetl2c_get_room_info_result::packetl2c_get_room_info_result(const packetl2c_get_room_info_result& from)
  2483. : ::google::protobuf::Message() {
  2484. SharedCtor();
  2485. MergeFrom(from);
  2486. }
  2487. void packetl2c_get_room_info_result::SharedCtor() {
  2488. _cached_size_ = 0;
  2489. packet_id_ = 15001;
  2490. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2491. }
  2492. packetl2c_get_room_info_result::~packetl2c_get_room_info_result() {
  2493. SharedDtor();
  2494. }
  2495. void packetl2c_get_room_info_result::SharedDtor() {
  2496. if (this != default_instance_) {
  2497. }
  2498. }
  2499. void packetl2c_get_room_info_result::SetCachedSize(int size) const {
  2500. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2501. _cached_size_ = size;
  2502. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2503. }
  2504. const ::google::protobuf::Descriptor* packetl2c_get_room_info_result::descriptor() {
  2505. protobuf_AssignDescriptorsOnce();
  2506. return packetl2c_get_room_info_result_descriptor_;
  2507. }
  2508. const packetl2c_get_room_info_result& packetl2c_get_room_info_result::default_instance() {
  2509. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  2510. return *default_instance_;
  2511. }
  2512. packetl2c_get_room_info_result* packetl2c_get_room_info_result::default_instance_ = NULL;
  2513. packetl2c_get_room_info_result* packetl2c_get_room_info_result::New() const {
  2514. return new packetl2c_get_room_info_result;
  2515. }
  2516. void packetl2c_get_room_info_result::Clear() {
  2517. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2518. packet_id_ = 15001;
  2519. }
  2520. rooms_.Clear();
  2521. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2522. mutable_unknown_fields()->Clear();
  2523. }
  2524. bool packetl2c_get_room_info_result::MergePartialFromCodedStream(
  2525. ::google::protobuf::io::CodedInputStream* input) {
  2526. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  2527. ::google::protobuf::uint32 tag;
  2528. while ((tag = input->ReadTag()) != 0) {
  2529. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2530. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_room_info_result];
  2531. case 1: {
  2532. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2533. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2534. int value;
  2535. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2536. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2537. input, &value)));
  2538. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  2539. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  2540. } else {
  2541. mutable_unknown_fields()->AddVarint(1, value);
  2542. }
  2543. } else {
  2544. goto handle_uninterpreted;
  2545. }
  2546. if (input->ExpectTag(18)) goto parse_rooms;
  2547. break;
  2548. }
  2549. // repeated .fish_protocols.msg_room_info rooms = 2;
  2550. case 2: {
  2551. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2552. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  2553. parse_rooms:
  2554. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2555. input, add_rooms()));
  2556. } else {
  2557. goto handle_uninterpreted;
  2558. }
  2559. if (input->ExpectTag(18)) goto parse_rooms;
  2560. if (input->ExpectAtEnd()) return true;
  2561. break;
  2562. }
  2563. default: {
  2564. handle_uninterpreted:
  2565. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2566. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2567. return true;
  2568. }
  2569. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2570. input, tag, mutable_unknown_fields()));
  2571. break;
  2572. }
  2573. }
  2574. }
  2575. return true;
  2576. #undef DO_
  2577. }
  2578. void packetl2c_get_room_info_result::SerializeWithCachedSizes(
  2579. ::google::protobuf::io::CodedOutputStream* output) const {
  2580. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_room_info_result];
  2581. if (has_packet_id()) {
  2582. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2583. 1, this->packet_id(), output);
  2584. }
  2585. // repeated .fish_protocols.msg_room_info rooms = 2;
  2586. for (int i = 0; i < this->rooms_size(); i++) {
  2587. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2588. 2, this->rooms(i), output);
  2589. }
  2590. if (!unknown_fields().empty()) {
  2591. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2592. unknown_fields(), output);
  2593. }
  2594. }
  2595. ::google::protobuf::uint8* packetl2c_get_room_info_result::SerializeWithCachedSizesToArray(
  2596. ::google::protobuf::uint8* target) const {
  2597. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_room_info_result];
  2598. if (has_packet_id()) {
  2599. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2600. 1, this->packet_id(), target);
  2601. }
  2602. // repeated .fish_protocols.msg_room_info rooms = 2;
  2603. for (int i = 0; i < this->rooms_size(); i++) {
  2604. target = ::google::protobuf::internal::WireFormatLite::
  2605. WriteMessageNoVirtualToArray(
  2606. 2, this->rooms(i), target);
  2607. }
  2608. if (!unknown_fields().empty()) {
  2609. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2610. unknown_fields(), target);
  2611. }
  2612. return target;
  2613. }
  2614. int packetl2c_get_room_info_result::ByteSize() const {
  2615. int total_size = 0;
  2616. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2617. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_room_info_result];
  2618. if (has_packet_id()) {
  2619. total_size += 1 +
  2620. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  2621. }
  2622. }
  2623. // repeated .fish_protocols.msg_room_info rooms = 2;
  2624. total_size += 1 * this->rooms_size();
  2625. for (int i = 0; i < this->rooms_size(); i++) {
  2626. total_size +=
  2627. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  2628. this->rooms(i));
  2629. }
  2630. if (!unknown_fields().empty()) {
  2631. total_size +=
  2632. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2633. unknown_fields());
  2634. }
  2635. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2636. _cached_size_ = total_size;
  2637. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2638. return total_size;
  2639. }
  2640. void packetl2c_get_room_info_result::MergeFrom(const ::google::protobuf::Message& from) {
  2641. GOOGLE_CHECK_NE(&from, this);
  2642. const packetl2c_get_room_info_result* source =
  2643. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_get_room_info_result*>(
  2644. &from);
  2645. if (source == NULL) {
  2646. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2647. } else {
  2648. MergeFrom(*source);
  2649. }
  2650. }
  2651. void packetl2c_get_room_info_result::MergeFrom(const packetl2c_get_room_info_result& from) {
  2652. GOOGLE_CHECK_NE(&from, this);
  2653. rooms_.MergeFrom(from.rooms_);
  2654. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2655. if (from.has_packet_id()) {
  2656. set_packet_id(from.packet_id());
  2657. }
  2658. }
  2659. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  2660. }
  2661. void packetl2c_get_room_info_result::CopyFrom(const ::google::protobuf::Message& from) {
  2662. if (&from == this) return;
  2663. Clear();
  2664. MergeFrom(from);
  2665. }
  2666. void packetl2c_get_room_info_result::CopyFrom(const packetl2c_get_room_info_result& from) {
  2667. if (&from == this) return;
  2668. Clear();
  2669. MergeFrom(from);
  2670. }
  2671. bool packetl2c_get_room_info_result::IsInitialized() const {
  2672. return true;
  2673. }
  2674. void packetl2c_get_room_info_result::Swap(packetl2c_get_room_info_result* other) {
  2675. if (other != this) {
  2676. std::swap(packet_id_, other->packet_id_);
  2677. rooms_.Swap(&other->rooms_);
  2678. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2679. _unknown_fields_.Swap(&other->_unknown_fields_);
  2680. std::swap(_cached_size_, other->_cached_size_);
  2681. }
  2682. }
  2683. ::google::protobuf::Metadata packetl2c_get_room_info_result::GetMetadata() const {
  2684. protobuf_AssignDescriptorsOnce();
  2685. ::google::protobuf::Metadata metadata;
  2686. metadata.descriptor = packetl2c_get_room_info_result_descriptor_;
  2687. metadata.reflection = packetl2c_get_room_info_result_reflection_;
  2688. return metadata;
  2689. }
  2690. // ===================================================================
  2691. #ifndef _MSC_VER
  2692. const int packetc2l_enter_table::kPacketIdFieldNumber;
  2693. const int packetc2l_enter_table::kRoomidFieldNumber;
  2694. #endif // !_MSC_VER
  2695. packetc2l_enter_table::packetc2l_enter_table()
  2696. : ::google::protobuf::Message() {
  2697. SharedCtor();
  2698. }
  2699. void packetc2l_enter_table::InitAsDefaultInstance() {
  2700. }
  2701. packetc2l_enter_table::packetc2l_enter_table(const packetc2l_enter_table& from)
  2702. : ::google::protobuf::Message() {
  2703. SharedCtor();
  2704. MergeFrom(from);
  2705. }
  2706. void packetc2l_enter_table::SharedCtor() {
  2707. _cached_size_ = 0;
  2708. packet_id_ = 10002;
  2709. roomid_ = 0;
  2710. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2711. }
  2712. packetc2l_enter_table::~packetc2l_enter_table() {
  2713. SharedDtor();
  2714. }
  2715. void packetc2l_enter_table::SharedDtor() {
  2716. if (this != default_instance_) {
  2717. }
  2718. }
  2719. void packetc2l_enter_table::SetCachedSize(int size) const {
  2720. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2721. _cached_size_ = size;
  2722. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2723. }
  2724. const ::google::protobuf::Descriptor* packetc2l_enter_table::descriptor() {
  2725. protobuf_AssignDescriptorsOnce();
  2726. return packetc2l_enter_table_descriptor_;
  2727. }
  2728. const packetc2l_enter_table& packetc2l_enter_table::default_instance() {
  2729. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  2730. return *default_instance_;
  2731. }
  2732. packetc2l_enter_table* packetc2l_enter_table::default_instance_ = NULL;
  2733. packetc2l_enter_table* packetc2l_enter_table::New() const {
  2734. return new packetc2l_enter_table;
  2735. }
  2736. void packetc2l_enter_table::Clear() {
  2737. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2738. packet_id_ = 10002;
  2739. roomid_ = 0;
  2740. }
  2741. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2742. mutable_unknown_fields()->Clear();
  2743. }
  2744. bool packetc2l_enter_table::MergePartialFromCodedStream(
  2745. ::google::protobuf::io::CodedInputStream* input) {
  2746. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  2747. ::google::protobuf::uint32 tag;
  2748. while ((tag = input->ReadTag()) != 0) {
  2749. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2750. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_enter_table];
  2751. case 1: {
  2752. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2753. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2754. int value;
  2755. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2756. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2757. input, &value)));
  2758. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  2759. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  2760. } else {
  2761. mutable_unknown_fields()->AddVarint(1, value);
  2762. }
  2763. } else {
  2764. goto handle_uninterpreted;
  2765. }
  2766. if (input->ExpectTag(16)) goto parse_roomid;
  2767. break;
  2768. }
  2769. // optional int32 roomid = 2 [default = 0];
  2770. case 2: {
  2771. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2772. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2773. parse_roomid:
  2774. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2775. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2776. input, &roomid_)));
  2777. set_has_roomid();
  2778. } else {
  2779. goto handle_uninterpreted;
  2780. }
  2781. if (input->ExpectAtEnd()) return true;
  2782. break;
  2783. }
  2784. default: {
  2785. handle_uninterpreted:
  2786. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2787. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2788. return true;
  2789. }
  2790. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2791. input, tag, mutable_unknown_fields()));
  2792. break;
  2793. }
  2794. }
  2795. }
  2796. return true;
  2797. #undef DO_
  2798. }
  2799. void packetc2l_enter_table::SerializeWithCachedSizes(
  2800. ::google::protobuf::io::CodedOutputStream* output) const {
  2801. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_enter_table];
  2802. if (has_packet_id()) {
  2803. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2804. 1, this->packet_id(), output);
  2805. }
  2806. // optional int32 roomid = 2 [default = 0];
  2807. if (has_roomid()) {
  2808. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->roomid(), output);
  2809. }
  2810. if (!unknown_fields().empty()) {
  2811. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2812. unknown_fields(), output);
  2813. }
  2814. }
  2815. ::google::protobuf::uint8* packetc2l_enter_table::SerializeWithCachedSizesToArray(
  2816. ::google::protobuf::uint8* target) const {
  2817. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_enter_table];
  2818. if (has_packet_id()) {
  2819. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2820. 1, this->packet_id(), target);
  2821. }
  2822. // optional int32 roomid = 2 [default = 0];
  2823. if (has_roomid()) {
  2824. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->roomid(), target);
  2825. }
  2826. if (!unknown_fields().empty()) {
  2827. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2828. unknown_fields(), target);
  2829. }
  2830. return target;
  2831. }
  2832. int packetc2l_enter_table::ByteSize() const {
  2833. int total_size = 0;
  2834. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2835. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_enter_table];
  2836. if (has_packet_id()) {
  2837. total_size += 1 +
  2838. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  2839. }
  2840. // optional int32 roomid = 2 [default = 0];
  2841. if (has_roomid()) {
  2842. total_size += 1 +
  2843. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2844. this->roomid());
  2845. }
  2846. }
  2847. if (!unknown_fields().empty()) {
  2848. total_size +=
  2849. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2850. unknown_fields());
  2851. }
  2852. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2853. _cached_size_ = total_size;
  2854. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2855. return total_size;
  2856. }
  2857. void packetc2l_enter_table::MergeFrom(const ::google::protobuf::Message& from) {
  2858. GOOGLE_CHECK_NE(&from, this);
  2859. const packetc2l_enter_table* source =
  2860. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_enter_table*>(
  2861. &from);
  2862. if (source == NULL) {
  2863. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2864. } else {
  2865. MergeFrom(*source);
  2866. }
  2867. }
  2868. void packetc2l_enter_table::MergeFrom(const packetc2l_enter_table& from) {
  2869. GOOGLE_CHECK_NE(&from, this);
  2870. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2871. if (from.has_packet_id()) {
  2872. set_packet_id(from.packet_id());
  2873. }
  2874. if (from.has_roomid()) {
  2875. set_roomid(from.roomid());
  2876. }
  2877. }
  2878. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  2879. }
  2880. void packetc2l_enter_table::CopyFrom(const ::google::protobuf::Message& from) {
  2881. if (&from == this) return;
  2882. Clear();
  2883. MergeFrom(from);
  2884. }
  2885. void packetc2l_enter_table::CopyFrom(const packetc2l_enter_table& from) {
  2886. if (&from == this) return;
  2887. Clear();
  2888. MergeFrom(from);
  2889. }
  2890. bool packetc2l_enter_table::IsInitialized() const {
  2891. return true;
  2892. }
  2893. void packetc2l_enter_table::Swap(packetc2l_enter_table* other) {
  2894. if (other != this) {
  2895. std::swap(packet_id_, other->packet_id_);
  2896. std::swap(roomid_, other->roomid_);
  2897. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2898. _unknown_fields_.Swap(&other->_unknown_fields_);
  2899. std::swap(_cached_size_, other->_cached_size_);
  2900. }
  2901. }
  2902. ::google::protobuf::Metadata packetc2l_enter_table::GetMetadata() const {
  2903. protobuf_AssignDescriptorsOnce();
  2904. ::google::protobuf::Metadata metadata;
  2905. metadata.descriptor = packetc2l_enter_table_descriptor_;
  2906. metadata.reflection = packetc2l_enter_table_reflection_;
  2907. return metadata;
  2908. }
  2909. // ===================================================================
  2910. #ifndef _MSC_VER
  2911. const int packetl2c_enter_table_result::kPacketIdFieldNumber;
  2912. const int packetl2c_enter_table_result::kResultFieldNumber;
  2913. const int packetl2c_enter_table_result::kRoomidFieldNumber;
  2914. const int packetl2c_enter_table_result::kIsRecvGemRewardFieldNumber;
  2915. #endif // !_MSC_VER
  2916. packetl2c_enter_table_result::packetl2c_enter_table_result()
  2917. : ::google::protobuf::Message() {
  2918. SharedCtor();
  2919. }
  2920. void packetl2c_enter_table_result::InitAsDefaultInstance() {
  2921. }
  2922. packetl2c_enter_table_result::packetl2c_enter_table_result(const packetl2c_enter_table_result& from)
  2923. : ::google::protobuf::Message() {
  2924. SharedCtor();
  2925. MergeFrom(from);
  2926. }
  2927. void packetl2c_enter_table_result::SharedCtor() {
  2928. _cached_size_ = 0;
  2929. packet_id_ = 15002;
  2930. result_ = 2;
  2931. roomid_ = 0;
  2932. isrecvgemreward_ = false;
  2933. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2934. }
  2935. packetl2c_enter_table_result::~packetl2c_enter_table_result() {
  2936. SharedDtor();
  2937. }
  2938. void packetl2c_enter_table_result::SharedDtor() {
  2939. if (this != default_instance_) {
  2940. }
  2941. }
  2942. void packetl2c_enter_table_result::SetCachedSize(int size) const {
  2943. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2944. _cached_size_ = size;
  2945. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2946. }
  2947. const ::google::protobuf::Descriptor* packetl2c_enter_table_result::descriptor() {
  2948. protobuf_AssignDescriptorsOnce();
  2949. return packetl2c_enter_table_result_descriptor_;
  2950. }
  2951. const packetl2c_enter_table_result& packetl2c_enter_table_result::default_instance() {
  2952. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  2953. return *default_instance_;
  2954. }
  2955. packetl2c_enter_table_result* packetl2c_enter_table_result::default_instance_ = NULL;
  2956. packetl2c_enter_table_result* packetl2c_enter_table_result::New() const {
  2957. return new packetl2c_enter_table_result;
  2958. }
  2959. void packetl2c_enter_table_result::Clear() {
  2960. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2961. packet_id_ = 15002;
  2962. result_ = 2;
  2963. roomid_ = 0;
  2964. isrecvgemreward_ = false;
  2965. }
  2966. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2967. mutable_unknown_fields()->Clear();
  2968. }
  2969. bool packetl2c_enter_table_result::MergePartialFromCodedStream(
  2970. ::google::protobuf::io::CodedInputStream* input) {
  2971. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  2972. ::google::protobuf::uint32 tag;
  2973. while ((tag = input->ReadTag()) != 0) {
  2974. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2975. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_enter_table_result];
  2976. case 1: {
  2977. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2978. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2979. int value;
  2980. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2981. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2982. input, &value)));
  2983. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  2984. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  2985. } else {
  2986. mutable_unknown_fields()->AddVarint(1, value);
  2987. }
  2988. } else {
  2989. goto handle_uninterpreted;
  2990. }
  2991. if (input->ExpectTag(16)) goto parse_result;
  2992. break;
  2993. }
  2994. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  2995. case 2: {
  2996. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2997. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2998. parse_result:
  2999. int value;
  3000. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3001. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3002. input, &value)));
  3003. if (::msg_type_def::e_msg_result_def_IsValid(value)) {
  3004. set_result(static_cast< ::msg_type_def::e_msg_result_def >(value));
  3005. } else {
  3006. mutable_unknown_fields()->AddVarint(2, value);
  3007. }
  3008. } else {
  3009. goto handle_uninterpreted;
  3010. }
  3011. if (input->ExpectTag(24)) goto parse_roomid;
  3012. break;
  3013. }
  3014. // optional int32 roomid = 3;
  3015. case 3: {
  3016. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3017. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3018. parse_roomid:
  3019. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3020. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3021. input, &roomid_)));
  3022. set_has_roomid();
  3023. } else {
  3024. goto handle_uninterpreted;
  3025. }
  3026. if (input->ExpectTag(32)) goto parse_isRecvGemReward;
  3027. break;
  3028. }
  3029. // optional bool isRecvGemReward = 4;
  3030. case 4: {
  3031. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3032. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3033. parse_isRecvGemReward:
  3034. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3035. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  3036. input, &isrecvgemreward_)));
  3037. set_has_isrecvgemreward();
  3038. } else {
  3039. goto handle_uninterpreted;
  3040. }
  3041. if (input->ExpectAtEnd()) return true;
  3042. break;
  3043. }
  3044. default: {
  3045. handle_uninterpreted:
  3046. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3047. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  3048. return true;
  3049. }
  3050. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3051. input, tag, mutable_unknown_fields()));
  3052. break;
  3053. }
  3054. }
  3055. }
  3056. return true;
  3057. #undef DO_
  3058. }
  3059. void packetl2c_enter_table_result::SerializeWithCachedSizes(
  3060. ::google::protobuf::io::CodedOutputStream* output) const {
  3061. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_enter_table_result];
  3062. if (has_packet_id()) {
  3063. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3064. 1, this->packet_id(), output);
  3065. }
  3066. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  3067. if (has_result()) {
  3068. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3069. 2, this->result(), output);
  3070. }
  3071. // optional int32 roomid = 3;
  3072. if (has_roomid()) {
  3073. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->roomid(), output);
  3074. }
  3075. // optional bool isRecvGemReward = 4;
  3076. if (has_isrecvgemreward()) {
  3077. ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->isrecvgemreward(), output);
  3078. }
  3079. if (!unknown_fields().empty()) {
  3080. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3081. unknown_fields(), output);
  3082. }
  3083. }
  3084. ::google::protobuf::uint8* packetl2c_enter_table_result::SerializeWithCachedSizesToArray(
  3085. ::google::protobuf::uint8* target) const {
  3086. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_enter_table_result];
  3087. if (has_packet_id()) {
  3088. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3089. 1, this->packet_id(), target);
  3090. }
  3091. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  3092. if (has_result()) {
  3093. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3094. 2, this->result(), target);
  3095. }
  3096. // optional int32 roomid = 3;
  3097. if (has_roomid()) {
  3098. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->roomid(), target);
  3099. }
  3100. // optional bool isRecvGemReward = 4;
  3101. if (has_isrecvgemreward()) {
  3102. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->isrecvgemreward(), target);
  3103. }
  3104. if (!unknown_fields().empty()) {
  3105. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3106. unknown_fields(), target);
  3107. }
  3108. return target;
  3109. }
  3110. int packetl2c_enter_table_result::ByteSize() const {
  3111. int total_size = 0;
  3112. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3113. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_enter_table_result];
  3114. if (has_packet_id()) {
  3115. total_size += 1 +
  3116. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  3117. }
  3118. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  3119. if (has_result()) {
  3120. total_size += 1 +
  3121. ::google::protobuf::internal::WireFormatLite::EnumSize(this->result());
  3122. }
  3123. // optional int32 roomid = 3;
  3124. if (has_roomid()) {
  3125. total_size += 1 +
  3126. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3127. this->roomid());
  3128. }
  3129. // optional bool isRecvGemReward = 4;
  3130. if (has_isrecvgemreward()) {
  3131. total_size += 1 + 1;
  3132. }
  3133. }
  3134. if (!unknown_fields().empty()) {
  3135. total_size +=
  3136. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3137. unknown_fields());
  3138. }
  3139. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3140. _cached_size_ = total_size;
  3141. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3142. return total_size;
  3143. }
  3144. void packetl2c_enter_table_result::MergeFrom(const ::google::protobuf::Message& from) {
  3145. GOOGLE_CHECK_NE(&from, this);
  3146. const packetl2c_enter_table_result* source =
  3147. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_enter_table_result*>(
  3148. &from);
  3149. if (source == NULL) {
  3150. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3151. } else {
  3152. MergeFrom(*source);
  3153. }
  3154. }
  3155. void packetl2c_enter_table_result::MergeFrom(const packetl2c_enter_table_result& from) {
  3156. GOOGLE_CHECK_NE(&from, this);
  3157. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3158. if (from.has_packet_id()) {
  3159. set_packet_id(from.packet_id());
  3160. }
  3161. if (from.has_result()) {
  3162. set_result(from.result());
  3163. }
  3164. if (from.has_roomid()) {
  3165. set_roomid(from.roomid());
  3166. }
  3167. if (from.has_isrecvgemreward()) {
  3168. set_isrecvgemreward(from.isrecvgemreward());
  3169. }
  3170. }
  3171. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  3172. }
  3173. void packetl2c_enter_table_result::CopyFrom(const ::google::protobuf::Message& from) {
  3174. if (&from == this) return;
  3175. Clear();
  3176. MergeFrom(from);
  3177. }
  3178. void packetl2c_enter_table_result::CopyFrom(const packetl2c_enter_table_result& from) {
  3179. if (&from == this) return;
  3180. Clear();
  3181. MergeFrom(from);
  3182. }
  3183. bool packetl2c_enter_table_result::IsInitialized() const {
  3184. return true;
  3185. }
  3186. void packetl2c_enter_table_result::Swap(packetl2c_enter_table_result* other) {
  3187. if (other != this) {
  3188. std::swap(packet_id_, other->packet_id_);
  3189. std::swap(result_, other->result_);
  3190. std::swap(roomid_, other->roomid_);
  3191. std::swap(isrecvgemreward_, other->isrecvgemreward_);
  3192. std::swap(_has_bits_[0], other->_has_bits_[0]);
  3193. _unknown_fields_.Swap(&other->_unknown_fields_);
  3194. std::swap(_cached_size_, other->_cached_size_);
  3195. }
  3196. }
  3197. ::google::protobuf::Metadata packetl2c_enter_table_result::GetMetadata() const {
  3198. protobuf_AssignDescriptorsOnce();
  3199. ::google::protobuf::Metadata metadata;
  3200. metadata.descriptor = packetl2c_enter_table_result_descriptor_;
  3201. metadata.reflection = packetl2c_enter_table_result_reflection_;
  3202. return metadata;
  3203. }
  3204. // ===================================================================
  3205. #ifndef _MSC_VER
  3206. const int packetc2l_change_table::kPacketIdFieldNumber;
  3207. #endif // !_MSC_VER
  3208. packetc2l_change_table::packetc2l_change_table()
  3209. : ::google::protobuf::Message() {
  3210. SharedCtor();
  3211. }
  3212. void packetc2l_change_table::InitAsDefaultInstance() {
  3213. }
  3214. packetc2l_change_table::packetc2l_change_table(const packetc2l_change_table& from)
  3215. : ::google::protobuf::Message() {
  3216. SharedCtor();
  3217. MergeFrom(from);
  3218. }
  3219. void packetc2l_change_table::SharedCtor() {
  3220. _cached_size_ = 0;
  3221. packet_id_ = 10113;
  3222. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3223. }
  3224. packetc2l_change_table::~packetc2l_change_table() {
  3225. SharedDtor();
  3226. }
  3227. void packetc2l_change_table::SharedDtor() {
  3228. if (this != default_instance_) {
  3229. }
  3230. }
  3231. void packetc2l_change_table::SetCachedSize(int size) const {
  3232. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3233. _cached_size_ = size;
  3234. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3235. }
  3236. const ::google::protobuf::Descriptor* packetc2l_change_table::descriptor() {
  3237. protobuf_AssignDescriptorsOnce();
  3238. return packetc2l_change_table_descriptor_;
  3239. }
  3240. const packetc2l_change_table& packetc2l_change_table::default_instance() {
  3241. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  3242. return *default_instance_;
  3243. }
  3244. packetc2l_change_table* packetc2l_change_table::default_instance_ = NULL;
  3245. packetc2l_change_table* packetc2l_change_table::New() const {
  3246. return new packetc2l_change_table;
  3247. }
  3248. void packetc2l_change_table::Clear() {
  3249. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3250. packet_id_ = 10113;
  3251. }
  3252. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3253. mutable_unknown_fields()->Clear();
  3254. }
  3255. bool packetc2l_change_table::MergePartialFromCodedStream(
  3256. ::google::protobuf::io::CodedInputStream* input) {
  3257. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  3258. ::google::protobuf::uint32 tag;
  3259. while ((tag = input->ReadTag()) != 0) {
  3260. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3261. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_change_table];
  3262. case 1: {
  3263. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3264. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3265. int value;
  3266. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3267. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3268. input, &value)));
  3269. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  3270. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  3271. } else {
  3272. mutable_unknown_fields()->AddVarint(1, value);
  3273. }
  3274. } else {
  3275. goto handle_uninterpreted;
  3276. }
  3277. if (input->ExpectAtEnd()) return true;
  3278. break;
  3279. }
  3280. default: {
  3281. handle_uninterpreted:
  3282. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3283. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  3284. return true;
  3285. }
  3286. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3287. input, tag, mutable_unknown_fields()));
  3288. break;
  3289. }
  3290. }
  3291. }
  3292. return true;
  3293. #undef DO_
  3294. }
  3295. void packetc2l_change_table::SerializeWithCachedSizes(
  3296. ::google::protobuf::io::CodedOutputStream* output) const {
  3297. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_change_table];
  3298. if (has_packet_id()) {
  3299. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3300. 1, this->packet_id(), output);
  3301. }
  3302. if (!unknown_fields().empty()) {
  3303. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3304. unknown_fields(), output);
  3305. }
  3306. }
  3307. ::google::protobuf::uint8* packetc2l_change_table::SerializeWithCachedSizesToArray(
  3308. ::google::protobuf::uint8* target) const {
  3309. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_change_table];
  3310. if (has_packet_id()) {
  3311. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3312. 1, this->packet_id(), target);
  3313. }
  3314. if (!unknown_fields().empty()) {
  3315. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3316. unknown_fields(), target);
  3317. }
  3318. return target;
  3319. }
  3320. int packetc2l_change_table::ByteSize() const {
  3321. int total_size = 0;
  3322. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3323. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_change_table];
  3324. if (has_packet_id()) {
  3325. total_size += 1 +
  3326. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  3327. }
  3328. }
  3329. if (!unknown_fields().empty()) {
  3330. total_size +=
  3331. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3332. unknown_fields());
  3333. }
  3334. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3335. _cached_size_ = total_size;
  3336. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3337. return total_size;
  3338. }
  3339. void packetc2l_change_table::MergeFrom(const ::google::protobuf::Message& from) {
  3340. GOOGLE_CHECK_NE(&from, this);
  3341. const packetc2l_change_table* source =
  3342. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_change_table*>(
  3343. &from);
  3344. if (source == NULL) {
  3345. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3346. } else {
  3347. MergeFrom(*source);
  3348. }
  3349. }
  3350. void packetc2l_change_table::MergeFrom(const packetc2l_change_table& from) {
  3351. GOOGLE_CHECK_NE(&from, this);
  3352. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3353. if (from.has_packet_id()) {
  3354. set_packet_id(from.packet_id());
  3355. }
  3356. }
  3357. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  3358. }
  3359. void packetc2l_change_table::CopyFrom(const ::google::protobuf::Message& from) {
  3360. if (&from == this) return;
  3361. Clear();
  3362. MergeFrom(from);
  3363. }
  3364. void packetc2l_change_table::CopyFrom(const packetc2l_change_table& from) {
  3365. if (&from == this) return;
  3366. Clear();
  3367. MergeFrom(from);
  3368. }
  3369. bool packetc2l_change_table::IsInitialized() const {
  3370. return true;
  3371. }
  3372. void packetc2l_change_table::Swap(packetc2l_change_table* other) {
  3373. if (other != this) {
  3374. std::swap(packet_id_, other->packet_id_);
  3375. std::swap(_has_bits_[0], other->_has_bits_[0]);
  3376. _unknown_fields_.Swap(&other->_unknown_fields_);
  3377. std::swap(_cached_size_, other->_cached_size_);
  3378. }
  3379. }
  3380. ::google::protobuf::Metadata packetc2l_change_table::GetMetadata() const {
  3381. protobuf_AssignDescriptorsOnce();
  3382. ::google::protobuf::Metadata metadata;
  3383. metadata.descriptor = packetc2l_change_table_descriptor_;
  3384. metadata.reflection = packetc2l_change_table_reflection_;
  3385. return metadata;
  3386. }
  3387. // ===================================================================
  3388. #ifndef _MSC_VER
  3389. const int packetl2c_change_table_result::kPacketIdFieldNumber;
  3390. const int packetl2c_change_table_result::kResultFieldNumber;
  3391. #endif // !_MSC_VER
  3392. packetl2c_change_table_result::packetl2c_change_table_result()
  3393. : ::google::protobuf::Message() {
  3394. SharedCtor();
  3395. }
  3396. void packetl2c_change_table_result::InitAsDefaultInstance() {
  3397. }
  3398. packetl2c_change_table_result::packetl2c_change_table_result(const packetl2c_change_table_result& from)
  3399. : ::google::protobuf::Message() {
  3400. SharedCtor();
  3401. MergeFrom(from);
  3402. }
  3403. void packetl2c_change_table_result::SharedCtor() {
  3404. _cached_size_ = 0;
  3405. packet_id_ = 15105;
  3406. result_ = 2;
  3407. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3408. }
  3409. packetl2c_change_table_result::~packetl2c_change_table_result() {
  3410. SharedDtor();
  3411. }
  3412. void packetl2c_change_table_result::SharedDtor() {
  3413. if (this != default_instance_) {
  3414. }
  3415. }
  3416. void packetl2c_change_table_result::SetCachedSize(int size) const {
  3417. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3418. _cached_size_ = size;
  3419. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3420. }
  3421. const ::google::protobuf::Descriptor* packetl2c_change_table_result::descriptor() {
  3422. protobuf_AssignDescriptorsOnce();
  3423. return packetl2c_change_table_result_descriptor_;
  3424. }
  3425. const packetl2c_change_table_result& packetl2c_change_table_result::default_instance() {
  3426. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  3427. return *default_instance_;
  3428. }
  3429. packetl2c_change_table_result* packetl2c_change_table_result::default_instance_ = NULL;
  3430. packetl2c_change_table_result* packetl2c_change_table_result::New() const {
  3431. return new packetl2c_change_table_result;
  3432. }
  3433. void packetl2c_change_table_result::Clear() {
  3434. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3435. packet_id_ = 15105;
  3436. result_ = 2;
  3437. }
  3438. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3439. mutable_unknown_fields()->Clear();
  3440. }
  3441. bool packetl2c_change_table_result::MergePartialFromCodedStream(
  3442. ::google::protobuf::io::CodedInputStream* input) {
  3443. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  3444. ::google::protobuf::uint32 tag;
  3445. while ((tag = input->ReadTag()) != 0) {
  3446. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3447. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_change_table_result];
  3448. case 1: {
  3449. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3450. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3451. int value;
  3452. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3453. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3454. input, &value)));
  3455. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  3456. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  3457. } else {
  3458. mutable_unknown_fields()->AddVarint(1, value);
  3459. }
  3460. } else {
  3461. goto handle_uninterpreted;
  3462. }
  3463. if (input->ExpectTag(16)) goto parse_result;
  3464. break;
  3465. }
  3466. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  3467. case 2: {
  3468. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3469. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3470. parse_result:
  3471. int value;
  3472. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3473. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3474. input, &value)));
  3475. if (::msg_type_def::e_msg_result_def_IsValid(value)) {
  3476. set_result(static_cast< ::msg_type_def::e_msg_result_def >(value));
  3477. } else {
  3478. mutable_unknown_fields()->AddVarint(2, value);
  3479. }
  3480. } else {
  3481. goto handle_uninterpreted;
  3482. }
  3483. if (input->ExpectAtEnd()) return true;
  3484. break;
  3485. }
  3486. default: {
  3487. handle_uninterpreted:
  3488. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3489. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  3490. return true;
  3491. }
  3492. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3493. input, tag, mutable_unknown_fields()));
  3494. break;
  3495. }
  3496. }
  3497. }
  3498. return true;
  3499. #undef DO_
  3500. }
  3501. void packetl2c_change_table_result::SerializeWithCachedSizes(
  3502. ::google::protobuf::io::CodedOutputStream* output) const {
  3503. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_change_table_result];
  3504. if (has_packet_id()) {
  3505. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3506. 1, this->packet_id(), output);
  3507. }
  3508. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  3509. if (has_result()) {
  3510. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3511. 2, this->result(), output);
  3512. }
  3513. if (!unknown_fields().empty()) {
  3514. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3515. unknown_fields(), output);
  3516. }
  3517. }
  3518. ::google::protobuf::uint8* packetl2c_change_table_result::SerializeWithCachedSizesToArray(
  3519. ::google::protobuf::uint8* target) const {
  3520. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_change_table_result];
  3521. if (has_packet_id()) {
  3522. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3523. 1, this->packet_id(), target);
  3524. }
  3525. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  3526. if (has_result()) {
  3527. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3528. 2, this->result(), target);
  3529. }
  3530. if (!unknown_fields().empty()) {
  3531. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3532. unknown_fields(), target);
  3533. }
  3534. return target;
  3535. }
  3536. int packetl2c_change_table_result::ByteSize() const {
  3537. int total_size = 0;
  3538. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3539. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_change_table_result];
  3540. if (has_packet_id()) {
  3541. total_size += 1 +
  3542. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  3543. }
  3544. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  3545. if (has_result()) {
  3546. total_size += 1 +
  3547. ::google::protobuf::internal::WireFormatLite::EnumSize(this->result());
  3548. }
  3549. }
  3550. if (!unknown_fields().empty()) {
  3551. total_size +=
  3552. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3553. unknown_fields());
  3554. }
  3555. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3556. _cached_size_ = total_size;
  3557. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3558. return total_size;
  3559. }
  3560. void packetl2c_change_table_result::MergeFrom(const ::google::protobuf::Message& from) {
  3561. GOOGLE_CHECK_NE(&from, this);
  3562. const packetl2c_change_table_result* source =
  3563. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_change_table_result*>(
  3564. &from);
  3565. if (source == NULL) {
  3566. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3567. } else {
  3568. MergeFrom(*source);
  3569. }
  3570. }
  3571. void packetl2c_change_table_result::MergeFrom(const packetl2c_change_table_result& from) {
  3572. GOOGLE_CHECK_NE(&from, this);
  3573. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3574. if (from.has_packet_id()) {
  3575. set_packet_id(from.packet_id());
  3576. }
  3577. if (from.has_result()) {
  3578. set_result(from.result());
  3579. }
  3580. }
  3581. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  3582. }
  3583. void packetl2c_change_table_result::CopyFrom(const ::google::protobuf::Message& from) {
  3584. if (&from == this) return;
  3585. Clear();
  3586. MergeFrom(from);
  3587. }
  3588. void packetl2c_change_table_result::CopyFrom(const packetl2c_change_table_result& from) {
  3589. if (&from == this) return;
  3590. Clear();
  3591. MergeFrom(from);
  3592. }
  3593. bool packetl2c_change_table_result::IsInitialized() const {
  3594. return true;
  3595. }
  3596. void packetl2c_change_table_result::Swap(packetl2c_change_table_result* other) {
  3597. if (other != this) {
  3598. std::swap(packet_id_, other->packet_id_);
  3599. std::swap(result_, other->result_);
  3600. std::swap(_has_bits_[0], other->_has_bits_[0]);
  3601. _unknown_fields_.Swap(&other->_unknown_fields_);
  3602. std::swap(_cached_size_, other->_cached_size_);
  3603. }
  3604. }
  3605. ::google::protobuf::Metadata packetl2c_change_table_result::GetMetadata() const {
  3606. protobuf_AssignDescriptorsOnce();
  3607. ::google::protobuf::Metadata metadata;
  3608. metadata.descriptor = packetl2c_change_table_result_descriptor_;
  3609. metadata.reflection = packetl2c_change_table_result_reflection_;
  3610. return metadata;
  3611. }
  3612. // ===================================================================
  3613. #ifndef _MSC_VER
  3614. const int packetc2l_leave_table::kPacketIdFieldNumber;
  3615. #endif // !_MSC_VER
  3616. packetc2l_leave_table::packetc2l_leave_table()
  3617. : ::google::protobuf::Message() {
  3618. SharedCtor();
  3619. }
  3620. void packetc2l_leave_table::InitAsDefaultInstance() {
  3621. }
  3622. packetc2l_leave_table::packetc2l_leave_table(const packetc2l_leave_table& from)
  3623. : ::google::protobuf::Message() {
  3624. SharedCtor();
  3625. MergeFrom(from);
  3626. }
  3627. void packetc2l_leave_table::SharedCtor() {
  3628. _cached_size_ = 0;
  3629. packet_id_ = 10003;
  3630. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3631. }
  3632. packetc2l_leave_table::~packetc2l_leave_table() {
  3633. SharedDtor();
  3634. }
  3635. void packetc2l_leave_table::SharedDtor() {
  3636. if (this != default_instance_) {
  3637. }
  3638. }
  3639. void packetc2l_leave_table::SetCachedSize(int size) const {
  3640. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3641. _cached_size_ = size;
  3642. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3643. }
  3644. const ::google::protobuf::Descriptor* packetc2l_leave_table::descriptor() {
  3645. protobuf_AssignDescriptorsOnce();
  3646. return packetc2l_leave_table_descriptor_;
  3647. }
  3648. const packetc2l_leave_table& packetc2l_leave_table::default_instance() {
  3649. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  3650. return *default_instance_;
  3651. }
  3652. packetc2l_leave_table* packetc2l_leave_table::default_instance_ = NULL;
  3653. packetc2l_leave_table* packetc2l_leave_table::New() const {
  3654. return new packetc2l_leave_table;
  3655. }
  3656. void packetc2l_leave_table::Clear() {
  3657. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3658. packet_id_ = 10003;
  3659. }
  3660. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3661. mutable_unknown_fields()->Clear();
  3662. }
  3663. bool packetc2l_leave_table::MergePartialFromCodedStream(
  3664. ::google::protobuf::io::CodedInputStream* input) {
  3665. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  3666. ::google::protobuf::uint32 tag;
  3667. while ((tag = input->ReadTag()) != 0) {
  3668. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3669. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_leave_table];
  3670. case 1: {
  3671. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3672. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3673. int value;
  3674. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3675. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3676. input, &value)));
  3677. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  3678. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  3679. } else {
  3680. mutable_unknown_fields()->AddVarint(1, value);
  3681. }
  3682. } else {
  3683. goto handle_uninterpreted;
  3684. }
  3685. if (input->ExpectAtEnd()) return true;
  3686. break;
  3687. }
  3688. default: {
  3689. handle_uninterpreted:
  3690. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3691. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  3692. return true;
  3693. }
  3694. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3695. input, tag, mutable_unknown_fields()));
  3696. break;
  3697. }
  3698. }
  3699. }
  3700. return true;
  3701. #undef DO_
  3702. }
  3703. void packetc2l_leave_table::SerializeWithCachedSizes(
  3704. ::google::protobuf::io::CodedOutputStream* output) const {
  3705. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_leave_table];
  3706. if (has_packet_id()) {
  3707. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3708. 1, this->packet_id(), output);
  3709. }
  3710. if (!unknown_fields().empty()) {
  3711. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3712. unknown_fields(), output);
  3713. }
  3714. }
  3715. ::google::protobuf::uint8* packetc2l_leave_table::SerializeWithCachedSizesToArray(
  3716. ::google::protobuf::uint8* target) const {
  3717. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_leave_table];
  3718. if (has_packet_id()) {
  3719. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3720. 1, this->packet_id(), target);
  3721. }
  3722. if (!unknown_fields().empty()) {
  3723. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3724. unknown_fields(), target);
  3725. }
  3726. return target;
  3727. }
  3728. int packetc2l_leave_table::ByteSize() const {
  3729. int total_size = 0;
  3730. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3731. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_leave_table];
  3732. if (has_packet_id()) {
  3733. total_size += 1 +
  3734. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  3735. }
  3736. }
  3737. if (!unknown_fields().empty()) {
  3738. total_size +=
  3739. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3740. unknown_fields());
  3741. }
  3742. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3743. _cached_size_ = total_size;
  3744. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3745. return total_size;
  3746. }
  3747. void packetc2l_leave_table::MergeFrom(const ::google::protobuf::Message& from) {
  3748. GOOGLE_CHECK_NE(&from, this);
  3749. const packetc2l_leave_table* source =
  3750. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_leave_table*>(
  3751. &from);
  3752. if (source == NULL) {
  3753. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3754. } else {
  3755. MergeFrom(*source);
  3756. }
  3757. }
  3758. void packetc2l_leave_table::MergeFrom(const packetc2l_leave_table& from) {
  3759. GOOGLE_CHECK_NE(&from, this);
  3760. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3761. if (from.has_packet_id()) {
  3762. set_packet_id(from.packet_id());
  3763. }
  3764. }
  3765. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  3766. }
  3767. void packetc2l_leave_table::CopyFrom(const ::google::protobuf::Message& from) {
  3768. if (&from == this) return;
  3769. Clear();
  3770. MergeFrom(from);
  3771. }
  3772. void packetc2l_leave_table::CopyFrom(const packetc2l_leave_table& from) {
  3773. if (&from == this) return;
  3774. Clear();
  3775. MergeFrom(from);
  3776. }
  3777. bool packetc2l_leave_table::IsInitialized() const {
  3778. return true;
  3779. }
  3780. void packetc2l_leave_table::Swap(packetc2l_leave_table* other) {
  3781. if (other != this) {
  3782. std::swap(packet_id_, other->packet_id_);
  3783. std::swap(_has_bits_[0], other->_has_bits_[0]);
  3784. _unknown_fields_.Swap(&other->_unknown_fields_);
  3785. std::swap(_cached_size_, other->_cached_size_);
  3786. }
  3787. }
  3788. ::google::protobuf::Metadata packetc2l_leave_table::GetMetadata() const {
  3789. protobuf_AssignDescriptorsOnce();
  3790. ::google::protobuf::Metadata metadata;
  3791. metadata.descriptor = packetc2l_leave_table_descriptor_;
  3792. metadata.reflection = packetc2l_leave_table_reflection_;
  3793. return metadata;
  3794. }
  3795. // ===================================================================
  3796. #ifndef _MSC_VER
  3797. const int packetl2c_leave_table_result::kPacketIdFieldNumber;
  3798. const int packetl2c_leave_table_result::kSyncGoldFieldNumber;
  3799. const int packetl2c_leave_table_result::kSyncDbChipFieldNumber;
  3800. const int packetl2c_leave_table_result::kPlayerExpFieldNumber;
  3801. #endif // !_MSC_VER
  3802. packetl2c_leave_table_result::packetl2c_leave_table_result()
  3803. : ::google::protobuf::Message() {
  3804. SharedCtor();
  3805. }
  3806. void packetl2c_leave_table_result::InitAsDefaultInstance() {
  3807. }
  3808. packetl2c_leave_table_result::packetl2c_leave_table_result(const packetl2c_leave_table_result& from)
  3809. : ::google::protobuf::Message() {
  3810. SharedCtor();
  3811. MergeFrom(from);
  3812. }
  3813. void packetl2c_leave_table_result::SharedCtor() {
  3814. _cached_size_ = 0;
  3815. packet_id_ = 15003;
  3816. sync_gold_ = GOOGLE_LONGLONG(0);
  3817. syncdbchip_ = 0;
  3818. playerexp_ = GOOGLE_LONGLONG(0);
  3819. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3820. }
  3821. packetl2c_leave_table_result::~packetl2c_leave_table_result() {
  3822. SharedDtor();
  3823. }
  3824. void packetl2c_leave_table_result::SharedDtor() {
  3825. if (this != default_instance_) {
  3826. }
  3827. }
  3828. void packetl2c_leave_table_result::SetCachedSize(int size) const {
  3829. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3830. _cached_size_ = size;
  3831. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3832. }
  3833. const ::google::protobuf::Descriptor* packetl2c_leave_table_result::descriptor() {
  3834. protobuf_AssignDescriptorsOnce();
  3835. return packetl2c_leave_table_result_descriptor_;
  3836. }
  3837. const packetl2c_leave_table_result& packetl2c_leave_table_result::default_instance() {
  3838. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  3839. return *default_instance_;
  3840. }
  3841. packetl2c_leave_table_result* packetl2c_leave_table_result::default_instance_ = NULL;
  3842. packetl2c_leave_table_result* packetl2c_leave_table_result::New() const {
  3843. return new packetl2c_leave_table_result;
  3844. }
  3845. void packetl2c_leave_table_result::Clear() {
  3846. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3847. packet_id_ = 15003;
  3848. sync_gold_ = GOOGLE_LONGLONG(0);
  3849. syncdbchip_ = 0;
  3850. playerexp_ = GOOGLE_LONGLONG(0);
  3851. }
  3852. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3853. mutable_unknown_fields()->Clear();
  3854. }
  3855. bool packetl2c_leave_table_result::MergePartialFromCodedStream(
  3856. ::google::protobuf::io::CodedInputStream* input) {
  3857. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  3858. ::google::protobuf::uint32 tag;
  3859. while ((tag = input->ReadTag()) != 0) {
  3860. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3861. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_leave_table_result];
  3862. case 1: {
  3863. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3864. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3865. int value;
  3866. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3867. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3868. input, &value)));
  3869. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  3870. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  3871. } else {
  3872. mutable_unknown_fields()->AddVarint(1, value);
  3873. }
  3874. } else {
  3875. goto handle_uninterpreted;
  3876. }
  3877. if (input->ExpectTag(16)) goto parse_sync_gold;
  3878. break;
  3879. }
  3880. // optional int64 sync_gold = 2;
  3881. case 2: {
  3882. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3883. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3884. parse_sync_gold:
  3885. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3886. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  3887. input, &sync_gold_)));
  3888. set_has_sync_gold();
  3889. } else {
  3890. goto handle_uninterpreted;
  3891. }
  3892. if (input->ExpectTag(24)) goto parse_syncDbChip;
  3893. break;
  3894. }
  3895. // optional int32 syncDbChip = 3;
  3896. case 3: {
  3897. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3898. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3899. parse_syncDbChip:
  3900. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3901. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3902. input, &syncdbchip_)));
  3903. set_has_syncdbchip();
  3904. } else {
  3905. goto handle_uninterpreted;
  3906. }
  3907. if (input->ExpectTag(32)) goto parse_playerExp;
  3908. break;
  3909. }
  3910. // optional int64 playerExp = 4;
  3911. case 4: {
  3912. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3913. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3914. parse_playerExp:
  3915. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3916. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  3917. input, &playerexp_)));
  3918. set_has_playerexp();
  3919. } else {
  3920. goto handle_uninterpreted;
  3921. }
  3922. if (input->ExpectAtEnd()) return true;
  3923. break;
  3924. }
  3925. default: {
  3926. handle_uninterpreted:
  3927. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3928. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  3929. return true;
  3930. }
  3931. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3932. input, tag, mutable_unknown_fields()));
  3933. break;
  3934. }
  3935. }
  3936. }
  3937. return true;
  3938. #undef DO_
  3939. }
  3940. void packetl2c_leave_table_result::SerializeWithCachedSizes(
  3941. ::google::protobuf::io::CodedOutputStream* output) const {
  3942. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_leave_table_result];
  3943. if (has_packet_id()) {
  3944. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3945. 1, this->packet_id(), output);
  3946. }
  3947. // optional int64 sync_gold = 2;
  3948. if (has_sync_gold()) {
  3949. ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->sync_gold(), output);
  3950. }
  3951. // optional int32 syncDbChip = 3;
  3952. if (has_syncdbchip()) {
  3953. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->syncdbchip(), output);
  3954. }
  3955. // optional int64 playerExp = 4;
  3956. if (has_playerexp()) {
  3957. ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->playerexp(), output);
  3958. }
  3959. if (!unknown_fields().empty()) {
  3960. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3961. unknown_fields(), output);
  3962. }
  3963. }
  3964. ::google::protobuf::uint8* packetl2c_leave_table_result::SerializeWithCachedSizesToArray(
  3965. ::google::protobuf::uint8* target) const {
  3966. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_leave_table_result];
  3967. if (has_packet_id()) {
  3968. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3969. 1, this->packet_id(), target);
  3970. }
  3971. // optional int64 sync_gold = 2;
  3972. if (has_sync_gold()) {
  3973. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->sync_gold(), target);
  3974. }
  3975. // optional int32 syncDbChip = 3;
  3976. if (has_syncdbchip()) {
  3977. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->syncdbchip(), target);
  3978. }
  3979. // optional int64 playerExp = 4;
  3980. if (has_playerexp()) {
  3981. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->playerexp(), target);
  3982. }
  3983. if (!unknown_fields().empty()) {
  3984. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3985. unknown_fields(), target);
  3986. }
  3987. return target;
  3988. }
  3989. int packetl2c_leave_table_result::ByteSize() const {
  3990. int total_size = 0;
  3991. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3992. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_leave_table_result];
  3993. if (has_packet_id()) {
  3994. total_size += 1 +
  3995. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  3996. }
  3997. // optional int64 sync_gold = 2;
  3998. if (has_sync_gold()) {
  3999. total_size += 1 +
  4000. ::google::protobuf::internal::WireFormatLite::Int64Size(
  4001. this->sync_gold());
  4002. }
  4003. // optional int32 syncDbChip = 3;
  4004. if (has_syncdbchip()) {
  4005. total_size += 1 +
  4006. ::google::protobuf::internal::WireFormatLite::Int32Size(
  4007. this->syncdbchip());
  4008. }
  4009. // optional int64 playerExp = 4;
  4010. if (has_playerexp()) {
  4011. total_size += 1 +
  4012. ::google::protobuf::internal::WireFormatLite::Int64Size(
  4013. this->playerexp());
  4014. }
  4015. }
  4016. if (!unknown_fields().empty()) {
  4017. total_size +=
  4018. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  4019. unknown_fields());
  4020. }
  4021. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4022. _cached_size_ = total_size;
  4023. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4024. return total_size;
  4025. }
  4026. void packetl2c_leave_table_result::MergeFrom(const ::google::protobuf::Message& from) {
  4027. GOOGLE_CHECK_NE(&from, this);
  4028. const packetl2c_leave_table_result* source =
  4029. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_leave_table_result*>(
  4030. &from);
  4031. if (source == NULL) {
  4032. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  4033. } else {
  4034. MergeFrom(*source);
  4035. }
  4036. }
  4037. void packetl2c_leave_table_result::MergeFrom(const packetl2c_leave_table_result& from) {
  4038. GOOGLE_CHECK_NE(&from, this);
  4039. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4040. if (from.has_packet_id()) {
  4041. set_packet_id(from.packet_id());
  4042. }
  4043. if (from.has_sync_gold()) {
  4044. set_sync_gold(from.sync_gold());
  4045. }
  4046. if (from.has_syncdbchip()) {
  4047. set_syncdbchip(from.syncdbchip());
  4048. }
  4049. if (from.has_playerexp()) {
  4050. set_playerexp(from.playerexp());
  4051. }
  4052. }
  4053. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  4054. }
  4055. void packetl2c_leave_table_result::CopyFrom(const ::google::protobuf::Message& from) {
  4056. if (&from == this) return;
  4057. Clear();
  4058. MergeFrom(from);
  4059. }
  4060. void packetl2c_leave_table_result::CopyFrom(const packetl2c_leave_table_result& from) {
  4061. if (&from == this) return;
  4062. Clear();
  4063. MergeFrom(from);
  4064. }
  4065. bool packetl2c_leave_table_result::IsInitialized() const {
  4066. return true;
  4067. }
  4068. void packetl2c_leave_table_result::Swap(packetl2c_leave_table_result* other) {
  4069. if (other != this) {
  4070. std::swap(packet_id_, other->packet_id_);
  4071. std::swap(sync_gold_, other->sync_gold_);
  4072. std::swap(syncdbchip_, other->syncdbchip_);
  4073. std::swap(playerexp_, other->playerexp_);
  4074. std::swap(_has_bits_[0], other->_has_bits_[0]);
  4075. _unknown_fields_.Swap(&other->_unknown_fields_);
  4076. std::swap(_cached_size_, other->_cached_size_);
  4077. }
  4078. }
  4079. ::google::protobuf::Metadata packetl2c_leave_table_result::GetMetadata() const {
  4080. protobuf_AssignDescriptorsOnce();
  4081. ::google::protobuf::Metadata metadata;
  4082. metadata.descriptor = packetl2c_leave_table_result_descriptor_;
  4083. metadata.reflection = packetl2c_leave_table_result_reflection_;
  4084. return metadata;
  4085. }
  4086. // ===================================================================
  4087. #ifndef _MSC_VER
  4088. const int packetc2l_check_state::kPacketIdFieldNumber;
  4089. #endif // !_MSC_VER
  4090. packetc2l_check_state::packetc2l_check_state()
  4091. : ::google::protobuf::Message() {
  4092. SharedCtor();
  4093. }
  4094. void packetc2l_check_state::InitAsDefaultInstance() {
  4095. }
  4096. packetc2l_check_state::packetc2l_check_state(const packetc2l_check_state& from)
  4097. : ::google::protobuf::Message() {
  4098. SharedCtor();
  4099. MergeFrom(from);
  4100. }
  4101. void packetc2l_check_state::SharedCtor() {
  4102. _cached_size_ = 0;
  4103. packet_id_ = 10004;
  4104. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4105. }
  4106. packetc2l_check_state::~packetc2l_check_state() {
  4107. SharedDtor();
  4108. }
  4109. void packetc2l_check_state::SharedDtor() {
  4110. if (this != default_instance_) {
  4111. }
  4112. }
  4113. void packetc2l_check_state::SetCachedSize(int size) const {
  4114. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4115. _cached_size_ = size;
  4116. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4117. }
  4118. const ::google::protobuf::Descriptor* packetc2l_check_state::descriptor() {
  4119. protobuf_AssignDescriptorsOnce();
  4120. return packetc2l_check_state_descriptor_;
  4121. }
  4122. const packetc2l_check_state& packetc2l_check_state::default_instance() {
  4123. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  4124. return *default_instance_;
  4125. }
  4126. packetc2l_check_state* packetc2l_check_state::default_instance_ = NULL;
  4127. packetc2l_check_state* packetc2l_check_state::New() const {
  4128. return new packetc2l_check_state;
  4129. }
  4130. void packetc2l_check_state::Clear() {
  4131. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4132. packet_id_ = 10004;
  4133. }
  4134. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4135. mutable_unknown_fields()->Clear();
  4136. }
  4137. bool packetc2l_check_state::MergePartialFromCodedStream(
  4138. ::google::protobuf::io::CodedInputStream* input) {
  4139. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  4140. ::google::protobuf::uint32 tag;
  4141. while ((tag = input->ReadTag()) != 0) {
  4142. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  4143. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_check_state];
  4144. case 1: {
  4145. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4146. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4147. int value;
  4148. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4149. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  4150. input, &value)));
  4151. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  4152. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  4153. } else {
  4154. mutable_unknown_fields()->AddVarint(1, value);
  4155. }
  4156. } else {
  4157. goto handle_uninterpreted;
  4158. }
  4159. if (input->ExpectAtEnd()) return true;
  4160. break;
  4161. }
  4162. default: {
  4163. handle_uninterpreted:
  4164. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4165. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  4166. return true;
  4167. }
  4168. DO_(::google::protobuf::internal::WireFormat::SkipField(
  4169. input, tag, mutable_unknown_fields()));
  4170. break;
  4171. }
  4172. }
  4173. }
  4174. return true;
  4175. #undef DO_
  4176. }
  4177. void packetc2l_check_state::SerializeWithCachedSizes(
  4178. ::google::protobuf::io::CodedOutputStream* output) const {
  4179. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_check_state];
  4180. if (has_packet_id()) {
  4181. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4182. 1, this->packet_id(), output);
  4183. }
  4184. if (!unknown_fields().empty()) {
  4185. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  4186. unknown_fields(), output);
  4187. }
  4188. }
  4189. ::google::protobuf::uint8* packetc2l_check_state::SerializeWithCachedSizesToArray(
  4190. ::google::protobuf::uint8* target) const {
  4191. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_check_state];
  4192. if (has_packet_id()) {
  4193. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4194. 1, this->packet_id(), target);
  4195. }
  4196. if (!unknown_fields().empty()) {
  4197. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  4198. unknown_fields(), target);
  4199. }
  4200. return target;
  4201. }
  4202. int packetc2l_check_state::ByteSize() const {
  4203. int total_size = 0;
  4204. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4205. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_check_state];
  4206. if (has_packet_id()) {
  4207. total_size += 1 +
  4208. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  4209. }
  4210. }
  4211. if (!unknown_fields().empty()) {
  4212. total_size +=
  4213. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  4214. unknown_fields());
  4215. }
  4216. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4217. _cached_size_ = total_size;
  4218. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4219. return total_size;
  4220. }
  4221. void packetc2l_check_state::MergeFrom(const ::google::protobuf::Message& from) {
  4222. GOOGLE_CHECK_NE(&from, this);
  4223. const packetc2l_check_state* source =
  4224. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_check_state*>(
  4225. &from);
  4226. if (source == NULL) {
  4227. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  4228. } else {
  4229. MergeFrom(*source);
  4230. }
  4231. }
  4232. void packetc2l_check_state::MergeFrom(const packetc2l_check_state& from) {
  4233. GOOGLE_CHECK_NE(&from, this);
  4234. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4235. if (from.has_packet_id()) {
  4236. set_packet_id(from.packet_id());
  4237. }
  4238. }
  4239. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  4240. }
  4241. void packetc2l_check_state::CopyFrom(const ::google::protobuf::Message& from) {
  4242. if (&from == this) return;
  4243. Clear();
  4244. MergeFrom(from);
  4245. }
  4246. void packetc2l_check_state::CopyFrom(const packetc2l_check_state& from) {
  4247. if (&from == this) return;
  4248. Clear();
  4249. MergeFrom(from);
  4250. }
  4251. bool packetc2l_check_state::IsInitialized() const {
  4252. return true;
  4253. }
  4254. void packetc2l_check_state::Swap(packetc2l_check_state* other) {
  4255. if (other != this) {
  4256. std::swap(packet_id_, other->packet_id_);
  4257. std::swap(_has_bits_[0], other->_has_bits_[0]);
  4258. _unknown_fields_.Swap(&other->_unknown_fields_);
  4259. std::swap(_cached_size_, other->_cached_size_);
  4260. }
  4261. }
  4262. ::google::protobuf::Metadata packetc2l_check_state::GetMetadata() const {
  4263. protobuf_AssignDescriptorsOnce();
  4264. ::google::protobuf::Metadata metadata;
  4265. metadata.descriptor = packetc2l_check_state_descriptor_;
  4266. metadata.reflection = packetc2l_check_state_reflection_;
  4267. return metadata;
  4268. }
  4269. // ===================================================================
  4270. #ifndef _MSC_VER
  4271. const int skill_unit::kSkillIdFieldNumber;
  4272. const int skill_unit::kAddTimesFieldNumber;
  4273. #endif // !_MSC_VER
  4274. skill_unit::skill_unit()
  4275. : ::google::protobuf::Message() {
  4276. SharedCtor();
  4277. }
  4278. void skill_unit::InitAsDefaultInstance() {
  4279. }
  4280. skill_unit::skill_unit(const skill_unit& from)
  4281. : ::google::protobuf::Message() {
  4282. SharedCtor();
  4283. MergeFrom(from);
  4284. }
  4285. void skill_unit::SharedCtor() {
  4286. _cached_size_ = 0;
  4287. skillid_ = 0;
  4288. addtimes_ = 0;
  4289. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4290. }
  4291. skill_unit::~skill_unit() {
  4292. SharedDtor();
  4293. }
  4294. void skill_unit::SharedDtor() {
  4295. if (this != default_instance_) {
  4296. }
  4297. }
  4298. void skill_unit::SetCachedSize(int size) const {
  4299. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4300. _cached_size_ = size;
  4301. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4302. }
  4303. const ::google::protobuf::Descriptor* skill_unit::descriptor() {
  4304. protobuf_AssignDescriptorsOnce();
  4305. return skill_unit_descriptor_;
  4306. }
  4307. const skill_unit& skill_unit::default_instance() {
  4308. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  4309. return *default_instance_;
  4310. }
  4311. skill_unit* skill_unit::default_instance_ = NULL;
  4312. skill_unit* skill_unit::New() const {
  4313. return new skill_unit;
  4314. }
  4315. void skill_unit::Clear() {
  4316. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4317. skillid_ = 0;
  4318. addtimes_ = 0;
  4319. }
  4320. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4321. mutable_unknown_fields()->Clear();
  4322. }
  4323. bool skill_unit::MergePartialFromCodedStream(
  4324. ::google::protobuf::io::CodedInputStream* input) {
  4325. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  4326. ::google::protobuf::uint32 tag;
  4327. while ((tag = input->ReadTag()) != 0) {
  4328. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  4329. // optional int32 skillId = 1;
  4330. case 1: {
  4331. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4332. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4333. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4334. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4335. input, &skillid_)));
  4336. set_has_skillid();
  4337. } else {
  4338. goto handle_uninterpreted;
  4339. }
  4340. if (input->ExpectTag(16)) goto parse_addTimes;
  4341. break;
  4342. }
  4343. // optional int32 addTimes = 2;
  4344. case 2: {
  4345. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4346. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4347. parse_addTimes:
  4348. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4349. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4350. input, &addtimes_)));
  4351. set_has_addtimes();
  4352. } else {
  4353. goto handle_uninterpreted;
  4354. }
  4355. if (input->ExpectAtEnd()) return true;
  4356. break;
  4357. }
  4358. default: {
  4359. handle_uninterpreted:
  4360. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4361. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  4362. return true;
  4363. }
  4364. DO_(::google::protobuf::internal::WireFormat::SkipField(
  4365. input, tag, mutable_unknown_fields()));
  4366. break;
  4367. }
  4368. }
  4369. }
  4370. return true;
  4371. #undef DO_
  4372. }
  4373. void skill_unit::SerializeWithCachedSizes(
  4374. ::google::protobuf::io::CodedOutputStream* output) const {
  4375. // optional int32 skillId = 1;
  4376. if (has_skillid()) {
  4377. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->skillid(), output);
  4378. }
  4379. // optional int32 addTimes = 2;
  4380. if (has_addtimes()) {
  4381. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->addtimes(), output);
  4382. }
  4383. if (!unknown_fields().empty()) {
  4384. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  4385. unknown_fields(), output);
  4386. }
  4387. }
  4388. ::google::protobuf::uint8* skill_unit::SerializeWithCachedSizesToArray(
  4389. ::google::protobuf::uint8* target) const {
  4390. // optional int32 skillId = 1;
  4391. if (has_skillid()) {
  4392. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->skillid(), target);
  4393. }
  4394. // optional int32 addTimes = 2;
  4395. if (has_addtimes()) {
  4396. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->addtimes(), target);
  4397. }
  4398. if (!unknown_fields().empty()) {
  4399. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  4400. unknown_fields(), target);
  4401. }
  4402. return target;
  4403. }
  4404. int skill_unit::ByteSize() const {
  4405. int total_size = 0;
  4406. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4407. // optional int32 skillId = 1;
  4408. if (has_skillid()) {
  4409. total_size += 1 +
  4410. ::google::protobuf::internal::WireFormatLite::Int32Size(
  4411. this->skillid());
  4412. }
  4413. // optional int32 addTimes = 2;
  4414. if (has_addtimes()) {
  4415. total_size += 1 +
  4416. ::google::protobuf::internal::WireFormatLite::Int32Size(
  4417. this->addtimes());
  4418. }
  4419. }
  4420. if (!unknown_fields().empty()) {
  4421. total_size +=
  4422. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  4423. unknown_fields());
  4424. }
  4425. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4426. _cached_size_ = total_size;
  4427. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4428. return total_size;
  4429. }
  4430. void skill_unit::MergeFrom(const ::google::protobuf::Message& from) {
  4431. GOOGLE_CHECK_NE(&from, this);
  4432. const skill_unit* source =
  4433. ::google::protobuf::internal::dynamic_cast_if_available<const skill_unit*>(
  4434. &from);
  4435. if (source == NULL) {
  4436. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  4437. } else {
  4438. MergeFrom(*source);
  4439. }
  4440. }
  4441. void skill_unit::MergeFrom(const skill_unit& from) {
  4442. GOOGLE_CHECK_NE(&from, this);
  4443. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4444. if (from.has_skillid()) {
  4445. set_skillid(from.skillid());
  4446. }
  4447. if (from.has_addtimes()) {
  4448. set_addtimes(from.addtimes());
  4449. }
  4450. }
  4451. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  4452. }
  4453. void skill_unit::CopyFrom(const ::google::protobuf::Message& from) {
  4454. if (&from == this) return;
  4455. Clear();
  4456. MergeFrom(from);
  4457. }
  4458. void skill_unit::CopyFrom(const skill_unit& from) {
  4459. if (&from == this) return;
  4460. Clear();
  4461. MergeFrom(from);
  4462. }
  4463. bool skill_unit::IsInitialized() const {
  4464. return true;
  4465. }
  4466. void skill_unit::Swap(skill_unit* other) {
  4467. if (other != this) {
  4468. std::swap(skillid_, other->skillid_);
  4469. std::swap(addtimes_, other->addtimes_);
  4470. std::swap(_has_bits_[0], other->_has_bits_[0]);
  4471. _unknown_fields_.Swap(&other->_unknown_fields_);
  4472. std::swap(_cached_size_, other->_cached_size_);
  4473. }
  4474. }
  4475. ::google::protobuf::Metadata skill_unit::GetMetadata() const {
  4476. protobuf_AssignDescriptorsOnce();
  4477. ::google::protobuf::Metadata metadata;
  4478. metadata.descriptor = skill_unit_descriptor_;
  4479. metadata.reflection = skill_unit_reflection_;
  4480. return metadata;
  4481. }
  4482. // ===================================================================
  4483. #ifndef _MSC_VER
  4484. const int turret_unit::kTurretIdFieldNumber;
  4485. const int turret_unit::kAdditionLvFieldNumber;
  4486. const int turret_unit::kEndTimeFieldNumber;
  4487. const int turret_unit::kAddtionListFieldNumber;
  4488. #endif // !_MSC_VER
  4489. turret_unit::turret_unit()
  4490. : ::google::protobuf::Message() {
  4491. SharedCtor();
  4492. }
  4493. void turret_unit::InitAsDefaultInstance() {
  4494. }
  4495. turret_unit::turret_unit(const turret_unit& from)
  4496. : ::google::protobuf::Message() {
  4497. SharedCtor();
  4498. MergeFrom(from);
  4499. }
  4500. void turret_unit::SharedCtor() {
  4501. _cached_size_ = 0;
  4502. turretid_ = 0;
  4503. additionlv_ = 0;
  4504. endtime_ = 0;
  4505. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4506. }
  4507. turret_unit::~turret_unit() {
  4508. SharedDtor();
  4509. }
  4510. void turret_unit::SharedDtor() {
  4511. if (this != default_instance_) {
  4512. }
  4513. }
  4514. void turret_unit::SetCachedSize(int size) const {
  4515. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4516. _cached_size_ = size;
  4517. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4518. }
  4519. const ::google::protobuf::Descriptor* turret_unit::descriptor() {
  4520. protobuf_AssignDescriptorsOnce();
  4521. return turret_unit_descriptor_;
  4522. }
  4523. const turret_unit& turret_unit::default_instance() {
  4524. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  4525. return *default_instance_;
  4526. }
  4527. turret_unit* turret_unit::default_instance_ = NULL;
  4528. turret_unit* turret_unit::New() const {
  4529. return new turret_unit;
  4530. }
  4531. void turret_unit::Clear() {
  4532. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4533. turretid_ = 0;
  4534. additionlv_ = 0;
  4535. endtime_ = 0;
  4536. }
  4537. addtionlist_.Clear();
  4538. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4539. mutable_unknown_fields()->Clear();
  4540. }
  4541. bool turret_unit::MergePartialFromCodedStream(
  4542. ::google::protobuf::io::CodedInputStream* input) {
  4543. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  4544. ::google::protobuf::uint32 tag;
  4545. while ((tag = input->ReadTag()) != 0) {
  4546. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  4547. // optional int32 turretId = 1;
  4548. case 1: {
  4549. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4550. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4551. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4552. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4553. input, &turretid_)));
  4554. set_has_turretid();
  4555. } else {
  4556. goto handle_uninterpreted;
  4557. }
  4558. if (input->ExpectTag(16)) goto parse_additionLv;
  4559. break;
  4560. }
  4561. // optional int32 additionLv = 2;
  4562. case 2: {
  4563. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4564. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4565. parse_additionLv:
  4566. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4567. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4568. input, &additionlv_)));
  4569. set_has_additionlv();
  4570. } else {
  4571. goto handle_uninterpreted;
  4572. }
  4573. if (input->ExpectTag(24)) goto parse_endTime;
  4574. break;
  4575. }
  4576. // optional int32 endTime = 3;
  4577. case 3: {
  4578. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4579. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4580. parse_endTime:
  4581. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4582. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4583. input, &endtime_)));
  4584. set_has_endtime();
  4585. } else {
  4586. goto handle_uninterpreted;
  4587. }
  4588. if (input->ExpectTag(34)) goto parse_addtionList;
  4589. break;
  4590. }
  4591. // repeated .fish_protocols.skill_unit addtionList = 4;
  4592. case 4: {
  4593. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4594. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  4595. parse_addtionList:
  4596. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  4597. input, add_addtionlist()));
  4598. } else {
  4599. goto handle_uninterpreted;
  4600. }
  4601. if (input->ExpectTag(34)) goto parse_addtionList;
  4602. if (input->ExpectAtEnd()) return true;
  4603. break;
  4604. }
  4605. default: {
  4606. handle_uninterpreted:
  4607. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4608. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  4609. return true;
  4610. }
  4611. DO_(::google::protobuf::internal::WireFormat::SkipField(
  4612. input, tag, mutable_unknown_fields()));
  4613. break;
  4614. }
  4615. }
  4616. }
  4617. return true;
  4618. #undef DO_
  4619. }
  4620. void turret_unit::SerializeWithCachedSizes(
  4621. ::google::protobuf::io::CodedOutputStream* output) const {
  4622. // optional int32 turretId = 1;
  4623. if (has_turretid()) {
  4624. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->turretid(), output);
  4625. }
  4626. // optional int32 additionLv = 2;
  4627. if (has_additionlv()) {
  4628. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->additionlv(), output);
  4629. }
  4630. // optional int32 endTime = 3;
  4631. if (has_endtime()) {
  4632. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->endtime(), output);
  4633. }
  4634. // repeated .fish_protocols.skill_unit addtionList = 4;
  4635. for (int i = 0; i < this->addtionlist_size(); i++) {
  4636. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  4637. 4, this->addtionlist(i), output);
  4638. }
  4639. if (!unknown_fields().empty()) {
  4640. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  4641. unknown_fields(), output);
  4642. }
  4643. }
  4644. ::google::protobuf::uint8* turret_unit::SerializeWithCachedSizesToArray(
  4645. ::google::protobuf::uint8* target) const {
  4646. // optional int32 turretId = 1;
  4647. if (has_turretid()) {
  4648. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->turretid(), target);
  4649. }
  4650. // optional int32 additionLv = 2;
  4651. if (has_additionlv()) {
  4652. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->additionlv(), target);
  4653. }
  4654. // optional int32 endTime = 3;
  4655. if (has_endtime()) {
  4656. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->endtime(), target);
  4657. }
  4658. // repeated .fish_protocols.skill_unit addtionList = 4;
  4659. for (int i = 0; i < this->addtionlist_size(); i++) {
  4660. target = ::google::protobuf::internal::WireFormatLite::
  4661. WriteMessageNoVirtualToArray(
  4662. 4, this->addtionlist(i), target);
  4663. }
  4664. if (!unknown_fields().empty()) {
  4665. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  4666. unknown_fields(), target);
  4667. }
  4668. return target;
  4669. }
  4670. int turret_unit::ByteSize() const {
  4671. int total_size = 0;
  4672. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4673. // optional int32 turretId = 1;
  4674. if (has_turretid()) {
  4675. total_size += 1 +
  4676. ::google::protobuf::internal::WireFormatLite::Int32Size(
  4677. this->turretid());
  4678. }
  4679. // optional int32 additionLv = 2;
  4680. if (has_additionlv()) {
  4681. total_size += 1 +
  4682. ::google::protobuf::internal::WireFormatLite::Int32Size(
  4683. this->additionlv());
  4684. }
  4685. // optional int32 endTime = 3;
  4686. if (has_endtime()) {
  4687. total_size += 1 +
  4688. ::google::protobuf::internal::WireFormatLite::Int32Size(
  4689. this->endtime());
  4690. }
  4691. }
  4692. // repeated .fish_protocols.skill_unit addtionList = 4;
  4693. total_size += 1 * this->addtionlist_size();
  4694. for (int i = 0; i < this->addtionlist_size(); i++) {
  4695. total_size +=
  4696. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  4697. this->addtionlist(i));
  4698. }
  4699. if (!unknown_fields().empty()) {
  4700. total_size +=
  4701. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  4702. unknown_fields());
  4703. }
  4704. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4705. _cached_size_ = total_size;
  4706. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4707. return total_size;
  4708. }
  4709. void turret_unit::MergeFrom(const ::google::protobuf::Message& from) {
  4710. GOOGLE_CHECK_NE(&from, this);
  4711. const turret_unit* source =
  4712. ::google::protobuf::internal::dynamic_cast_if_available<const turret_unit*>(
  4713. &from);
  4714. if (source == NULL) {
  4715. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  4716. } else {
  4717. MergeFrom(*source);
  4718. }
  4719. }
  4720. void turret_unit::MergeFrom(const turret_unit& from) {
  4721. GOOGLE_CHECK_NE(&from, this);
  4722. addtionlist_.MergeFrom(from.addtionlist_);
  4723. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4724. if (from.has_turretid()) {
  4725. set_turretid(from.turretid());
  4726. }
  4727. if (from.has_additionlv()) {
  4728. set_additionlv(from.additionlv());
  4729. }
  4730. if (from.has_endtime()) {
  4731. set_endtime(from.endtime());
  4732. }
  4733. }
  4734. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  4735. }
  4736. void turret_unit::CopyFrom(const ::google::protobuf::Message& from) {
  4737. if (&from == this) return;
  4738. Clear();
  4739. MergeFrom(from);
  4740. }
  4741. void turret_unit::CopyFrom(const turret_unit& from) {
  4742. if (&from == this) return;
  4743. Clear();
  4744. MergeFrom(from);
  4745. }
  4746. bool turret_unit::IsInitialized() const {
  4747. return true;
  4748. }
  4749. void turret_unit::Swap(turret_unit* other) {
  4750. if (other != this) {
  4751. std::swap(turretid_, other->turretid_);
  4752. std::swap(additionlv_, other->additionlv_);
  4753. std::swap(endtime_, other->endtime_);
  4754. addtionlist_.Swap(&other->addtionlist_);
  4755. std::swap(_has_bits_[0], other->_has_bits_[0]);
  4756. _unknown_fields_.Swap(&other->_unknown_fields_);
  4757. std::swap(_cached_size_, other->_cached_size_);
  4758. }
  4759. }
  4760. ::google::protobuf::Metadata turret_unit::GetMetadata() const {
  4761. protobuf_AssignDescriptorsOnce();
  4762. ::google::protobuf::Metadata metadata;
  4763. metadata.descriptor = turret_unit_descriptor_;
  4764. metadata.reflection = turret_unit_reflection_;
  4765. return metadata;
  4766. }
  4767. // ===================================================================
  4768. #ifndef _MSC_VER
  4769. const int wing_unit::kWingIdFieldNumber;
  4770. const int wing_unit::kAdditionLvFieldNumber;
  4771. const int wing_unit::kEndTimeFieldNumber;
  4772. const int wing_unit::kRandTimesFieldNumber;
  4773. const int wing_unit::kRandIdFieldNumber;
  4774. const int wing_unit::kAddtionListFieldNumber;
  4775. #endif // !_MSC_VER
  4776. wing_unit::wing_unit()
  4777. : ::google::protobuf::Message() {
  4778. SharedCtor();
  4779. }
  4780. void wing_unit::InitAsDefaultInstance() {
  4781. }
  4782. wing_unit::wing_unit(const wing_unit& from)
  4783. : ::google::protobuf::Message() {
  4784. SharedCtor();
  4785. MergeFrom(from);
  4786. }
  4787. void wing_unit::SharedCtor() {
  4788. _cached_size_ = 0;
  4789. wingid_ = 0;
  4790. additionlv_ = 0;
  4791. endtime_ = 0;
  4792. randtimes_ = 0;
  4793. randid_ = 0;
  4794. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4795. }
  4796. wing_unit::~wing_unit() {
  4797. SharedDtor();
  4798. }
  4799. void wing_unit::SharedDtor() {
  4800. if (this != default_instance_) {
  4801. }
  4802. }
  4803. void wing_unit::SetCachedSize(int size) const {
  4804. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4805. _cached_size_ = size;
  4806. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4807. }
  4808. const ::google::protobuf::Descriptor* wing_unit::descriptor() {
  4809. protobuf_AssignDescriptorsOnce();
  4810. return wing_unit_descriptor_;
  4811. }
  4812. const wing_unit& wing_unit::default_instance() {
  4813. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  4814. return *default_instance_;
  4815. }
  4816. wing_unit* wing_unit::default_instance_ = NULL;
  4817. wing_unit* wing_unit::New() const {
  4818. return new wing_unit;
  4819. }
  4820. void wing_unit::Clear() {
  4821. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4822. wingid_ = 0;
  4823. additionlv_ = 0;
  4824. endtime_ = 0;
  4825. randtimes_ = 0;
  4826. randid_ = 0;
  4827. }
  4828. addtionlist_.Clear();
  4829. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4830. mutable_unknown_fields()->Clear();
  4831. }
  4832. bool wing_unit::MergePartialFromCodedStream(
  4833. ::google::protobuf::io::CodedInputStream* input) {
  4834. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  4835. ::google::protobuf::uint32 tag;
  4836. while ((tag = input->ReadTag()) != 0) {
  4837. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  4838. // optional int32 wingId = 1;
  4839. case 1: {
  4840. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4841. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4842. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4843. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4844. input, &wingid_)));
  4845. set_has_wingid();
  4846. } else {
  4847. goto handle_uninterpreted;
  4848. }
  4849. if (input->ExpectTag(16)) goto parse_additionLv;
  4850. break;
  4851. }
  4852. // optional int32 additionLv = 2;
  4853. case 2: {
  4854. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4855. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4856. parse_additionLv:
  4857. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4858. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4859. input, &additionlv_)));
  4860. set_has_additionlv();
  4861. } else {
  4862. goto handle_uninterpreted;
  4863. }
  4864. if (input->ExpectTag(24)) goto parse_endTime;
  4865. break;
  4866. }
  4867. // optional int32 endTime = 3;
  4868. case 3: {
  4869. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4870. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4871. parse_endTime:
  4872. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4873. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4874. input, &endtime_)));
  4875. set_has_endtime();
  4876. } else {
  4877. goto handle_uninterpreted;
  4878. }
  4879. if (input->ExpectTag(32)) goto parse_randTimes;
  4880. break;
  4881. }
  4882. // optional int32 randTimes = 4;
  4883. case 4: {
  4884. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4885. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4886. parse_randTimes:
  4887. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4888. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4889. input, &randtimes_)));
  4890. set_has_randtimes();
  4891. } else {
  4892. goto handle_uninterpreted;
  4893. }
  4894. if (input->ExpectTag(40)) goto parse_randId;
  4895. break;
  4896. }
  4897. // optional int32 randId = 5;
  4898. case 5: {
  4899. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4900. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4901. parse_randId:
  4902. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4903. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4904. input, &randid_)));
  4905. set_has_randid();
  4906. } else {
  4907. goto handle_uninterpreted;
  4908. }
  4909. if (input->ExpectTag(50)) goto parse_addtionList;
  4910. break;
  4911. }
  4912. // repeated .fish_protocols.skill_unit addtionList = 6;
  4913. case 6: {
  4914. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4915. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  4916. parse_addtionList:
  4917. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  4918. input, add_addtionlist()));
  4919. } else {
  4920. goto handle_uninterpreted;
  4921. }
  4922. if (input->ExpectTag(50)) goto parse_addtionList;
  4923. if (input->ExpectAtEnd()) return true;
  4924. break;
  4925. }
  4926. default: {
  4927. handle_uninterpreted:
  4928. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4929. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  4930. return true;
  4931. }
  4932. DO_(::google::protobuf::internal::WireFormat::SkipField(
  4933. input, tag, mutable_unknown_fields()));
  4934. break;
  4935. }
  4936. }
  4937. }
  4938. return true;
  4939. #undef DO_
  4940. }
  4941. void wing_unit::SerializeWithCachedSizes(
  4942. ::google::protobuf::io::CodedOutputStream* output) const {
  4943. // optional int32 wingId = 1;
  4944. if (has_wingid()) {
  4945. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->wingid(), output);
  4946. }
  4947. // optional int32 additionLv = 2;
  4948. if (has_additionlv()) {
  4949. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->additionlv(), output);
  4950. }
  4951. // optional int32 endTime = 3;
  4952. if (has_endtime()) {
  4953. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->endtime(), output);
  4954. }
  4955. // optional int32 randTimes = 4;
  4956. if (has_randtimes()) {
  4957. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->randtimes(), output);
  4958. }
  4959. // optional int32 randId = 5;
  4960. if (has_randid()) {
  4961. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->randid(), output);
  4962. }
  4963. // repeated .fish_protocols.skill_unit addtionList = 6;
  4964. for (int i = 0; i < this->addtionlist_size(); i++) {
  4965. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  4966. 6, this->addtionlist(i), output);
  4967. }
  4968. if (!unknown_fields().empty()) {
  4969. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  4970. unknown_fields(), output);
  4971. }
  4972. }
  4973. ::google::protobuf::uint8* wing_unit::SerializeWithCachedSizesToArray(
  4974. ::google::protobuf::uint8* target) const {
  4975. // optional int32 wingId = 1;
  4976. if (has_wingid()) {
  4977. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->wingid(), target);
  4978. }
  4979. // optional int32 additionLv = 2;
  4980. if (has_additionlv()) {
  4981. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->additionlv(), target);
  4982. }
  4983. // optional int32 endTime = 3;
  4984. if (has_endtime()) {
  4985. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->endtime(), target);
  4986. }
  4987. // optional int32 randTimes = 4;
  4988. if (has_randtimes()) {
  4989. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->randtimes(), target);
  4990. }
  4991. // optional int32 randId = 5;
  4992. if (has_randid()) {
  4993. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->randid(), target);
  4994. }
  4995. // repeated .fish_protocols.skill_unit addtionList = 6;
  4996. for (int i = 0; i < this->addtionlist_size(); i++) {
  4997. target = ::google::protobuf::internal::WireFormatLite::
  4998. WriteMessageNoVirtualToArray(
  4999. 6, this->addtionlist(i), target);
  5000. }
  5001. if (!unknown_fields().empty()) {
  5002. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  5003. unknown_fields(), target);
  5004. }
  5005. return target;
  5006. }
  5007. int wing_unit::ByteSize() const {
  5008. int total_size = 0;
  5009. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  5010. // optional int32 wingId = 1;
  5011. if (has_wingid()) {
  5012. total_size += 1 +
  5013. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5014. this->wingid());
  5015. }
  5016. // optional int32 additionLv = 2;
  5017. if (has_additionlv()) {
  5018. total_size += 1 +
  5019. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5020. this->additionlv());
  5021. }
  5022. // optional int32 endTime = 3;
  5023. if (has_endtime()) {
  5024. total_size += 1 +
  5025. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5026. this->endtime());
  5027. }
  5028. // optional int32 randTimes = 4;
  5029. if (has_randtimes()) {
  5030. total_size += 1 +
  5031. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5032. this->randtimes());
  5033. }
  5034. // optional int32 randId = 5;
  5035. if (has_randid()) {
  5036. total_size += 1 +
  5037. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5038. this->randid());
  5039. }
  5040. }
  5041. // repeated .fish_protocols.skill_unit addtionList = 6;
  5042. total_size += 1 * this->addtionlist_size();
  5043. for (int i = 0; i < this->addtionlist_size(); i++) {
  5044. total_size +=
  5045. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  5046. this->addtionlist(i));
  5047. }
  5048. if (!unknown_fields().empty()) {
  5049. total_size +=
  5050. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  5051. unknown_fields());
  5052. }
  5053. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  5054. _cached_size_ = total_size;
  5055. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  5056. return total_size;
  5057. }
  5058. void wing_unit::MergeFrom(const ::google::protobuf::Message& from) {
  5059. GOOGLE_CHECK_NE(&from, this);
  5060. const wing_unit* source =
  5061. ::google::protobuf::internal::dynamic_cast_if_available<const wing_unit*>(
  5062. &from);
  5063. if (source == NULL) {
  5064. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  5065. } else {
  5066. MergeFrom(*source);
  5067. }
  5068. }
  5069. void wing_unit::MergeFrom(const wing_unit& from) {
  5070. GOOGLE_CHECK_NE(&from, this);
  5071. addtionlist_.MergeFrom(from.addtionlist_);
  5072. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  5073. if (from.has_wingid()) {
  5074. set_wingid(from.wingid());
  5075. }
  5076. if (from.has_additionlv()) {
  5077. set_additionlv(from.additionlv());
  5078. }
  5079. if (from.has_endtime()) {
  5080. set_endtime(from.endtime());
  5081. }
  5082. if (from.has_randtimes()) {
  5083. set_randtimes(from.randtimes());
  5084. }
  5085. if (from.has_randid()) {
  5086. set_randid(from.randid());
  5087. }
  5088. }
  5089. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  5090. }
  5091. void wing_unit::CopyFrom(const ::google::protobuf::Message& from) {
  5092. if (&from == this) return;
  5093. Clear();
  5094. MergeFrom(from);
  5095. }
  5096. void wing_unit::CopyFrom(const wing_unit& from) {
  5097. if (&from == this) return;
  5098. Clear();
  5099. MergeFrom(from);
  5100. }
  5101. bool wing_unit::IsInitialized() const {
  5102. return true;
  5103. }
  5104. void wing_unit::Swap(wing_unit* other) {
  5105. if (other != this) {
  5106. std::swap(wingid_, other->wingid_);
  5107. std::swap(additionlv_, other->additionlv_);
  5108. std::swap(endtime_, other->endtime_);
  5109. std::swap(randtimes_, other->randtimes_);
  5110. std::swap(randid_, other->randid_);
  5111. addtionlist_.Swap(&other->addtionlist_);
  5112. std::swap(_has_bits_[0], other->_has_bits_[0]);
  5113. _unknown_fields_.Swap(&other->_unknown_fields_);
  5114. std::swap(_cached_size_, other->_cached_size_);
  5115. }
  5116. }
  5117. ::google::protobuf::Metadata wing_unit::GetMetadata() const {
  5118. protobuf_AssignDescriptorsOnce();
  5119. ::google::protobuf::Metadata metadata;
  5120. metadata.descriptor = wing_unit_descriptor_;
  5121. metadata.reflection = wing_unit_reflection_;
  5122. return metadata;
  5123. }
  5124. // ===================================================================
  5125. #ifndef _MSC_VER
  5126. const int packetl2c_check_state_result::kPacketIdFieldNumber;
  5127. const int packetl2c_check_state_result::kIsIntableFieldNumber;
  5128. const int packetl2c_check_state_result::kItemlistFieldNumber;
  5129. const int packetl2c_check_state_result::kTurretlistFieldNumber;
  5130. const int packetl2c_check_state_result::kWinglistFieldNumber;
  5131. const int packetl2c_check_state_result::kTurretIdFieldNumber;
  5132. const int packetl2c_check_state_result::kWingIdFieldNumber;
  5133. const int packetl2c_check_state_result::kHeadIdFieldNumber;
  5134. const int packetl2c_check_state_result::kFrameIdFieldNumber;
  5135. const int packetl2c_check_state_result::kPlayerlvlFieldNumber;
  5136. const int packetl2c_check_state_result::kTurretlvlFieldNumber;
  5137. const int packetl2c_check_state_result::kGameexpFieldNumber;
  5138. const int packetl2c_check_state_result::kDimensityFieldNumber;
  5139. const int packetl2c_check_state_result::kRoomIdFieldNumber;
  5140. const int packetl2c_check_state_result::kKillGoldfishCountFieldNumber;
  5141. const int packetl2c_check_state_result::kGoldfishPoolFieldNumber;
  5142. const int packetl2c_check_state_result::kGoldfishLotteryCountFieldNumber;
  5143. const int packetl2c_check_state_result::kDailyAdTimesFieldNumber;
  5144. const int packetl2c_check_state_result::kRedEnvlopeInfosFieldNumber;
  5145. const int packetl2c_check_state_result::kAutofirelefttimeFieldNumber;
  5146. const int packetl2c_check_state_result::kCanReceiveTommorrowBuffCountFieldNumber;
  5147. const int packetl2c_check_state_result::kCanReceiveTommorrowBuffTodayFieldNumber;
  5148. #endif // !_MSC_VER
  5149. packetl2c_check_state_result::packetl2c_check_state_result()
  5150. : ::google::protobuf::Message() {
  5151. SharedCtor();
  5152. }
  5153. void packetl2c_check_state_result::InitAsDefaultInstance() {
  5154. }
  5155. packetl2c_check_state_result::packetl2c_check_state_result(const packetl2c_check_state_result& from)
  5156. : ::google::protobuf::Message() {
  5157. SharedCtor();
  5158. MergeFrom(from);
  5159. }
  5160. void packetl2c_check_state_result::SharedCtor() {
  5161. _cached_size_ = 0;
  5162. packet_id_ = 15004;
  5163. is_intable_ = false;
  5164. turret_id_ = 0;
  5165. wing_id_ = 0;
  5166. headid_ = 0;
  5167. frameid_ = 0;
  5168. playerlvl_ = 0;
  5169. turretlvl_ = 0;
  5170. gameexp_ = GOOGLE_LONGLONG(0);
  5171. dimensity_ = 0;
  5172. roomid_ = 0;
  5173. kill_goldfish_count_ = 0;
  5174. goldfish_pool_ = 0;
  5175. goldfish_lottery_count_ = 0;
  5176. dailyadtimes_ = 0;
  5177. autofirelefttime_ = 0;
  5178. canreceivetommorrowbuffcount_ = 0;
  5179. canreceivetommorrowbufftoday_ = false;
  5180. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  5181. }
  5182. packetl2c_check_state_result::~packetl2c_check_state_result() {
  5183. SharedDtor();
  5184. }
  5185. void packetl2c_check_state_result::SharedDtor() {
  5186. if (this != default_instance_) {
  5187. }
  5188. }
  5189. void packetl2c_check_state_result::SetCachedSize(int size) const {
  5190. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  5191. _cached_size_ = size;
  5192. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  5193. }
  5194. const ::google::protobuf::Descriptor* packetl2c_check_state_result::descriptor() {
  5195. protobuf_AssignDescriptorsOnce();
  5196. return packetl2c_check_state_result_descriptor_;
  5197. }
  5198. const packetl2c_check_state_result& packetl2c_check_state_result::default_instance() {
  5199. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  5200. return *default_instance_;
  5201. }
  5202. packetl2c_check_state_result* packetl2c_check_state_result::default_instance_ = NULL;
  5203. packetl2c_check_state_result* packetl2c_check_state_result::New() const {
  5204. return new packetl2c_check_state_result;
  5205. }
  5206. void packetl2c_check_state_result::Clear() {
  5207. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  5208. packet_id_ = 15004;
  5209. is_intable_ = false;
  5210. turret_id_ = 0;
  5211. wing_id_ = 0;
  5212. headid_ = 0;
  5213. }
  5214. if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
  5215. frameid_ = 0;
  5216. playerlvl_ = 0;
  5217. turretlvl_ = 0;
  5218. gameexp_ = GOOGLE_LONGLONG(0);
  5219. dimensity_ = 0;
  5220. roomid_ = 0;
  5221. kill_goldfish_count_ = 0;
  5222. goldfish_pool_ = 0;
  5223. }
  5224. if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
  5225. goldfish_lottery_count_ = 0;
  5226. dailyadtimes_ = 0;
  5227. autofirelefttime_ = 0;
  5228. canreceivetommorrowbuffcount_ = 0;
  5229. canreceivetommorrowbufftoday_ = false;
  5230. }
  5231. itemlist_.Clear();
  5232. turretlist_.Clear();
  5233. winglist_.Clear();
  5234. redenvlopeinfos_.Clear();
  5235. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  5236. mutable_unknown_fields()->Clear();
  5237. }
  5238. bool packetl2c_check_state_result::MergePartialFromCodedStream(
  5239. ::google::protobuf::io::CodedInputStream* input) {
  5240. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  5241. ::google::protobuf::uint32 tag;
  5242. while ((tag = input->ReadTag()) != 0) {
  5243. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  5244. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_check_state_result];
  5245. case 1: {
  5246. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5247. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5248. int value;
  5249. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5250. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  5251. input, &value)));
  5252. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  5253. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  5254. } else {
  5255. mutable_unknown_fields()->AddVarint(1, value);
  5256. }
  5257. } else {
  5258. goto handle_uninterpreted;
  5259. }
  5260. if (input->ExpectTag(16)) goto parse_is_intable;
  5261. break;
  5262. }
  5263. // optional bool is_intable = 2 [default = false];
  5264. case 2: {
  5265. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5266. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5267. parse_is_intable:
  5268. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5269. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  5270. input, &is_intable_)));
  5271. set_has_is_intable();
  5272. } else {
  5273. goto handle_uninterpreted;
  5274. }
  5275. if (input->ExpectTag(26)) goto parse_itemlist;
  5276. break;
  5277. }
  5278. // repeated .fish_protocols.msg_item itemlist = 3;
  5279. case 3: {
  5280. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5281. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  5282. parse_itemlist:
  5283. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  5284. input, add_itemlist()));
  5285. } else {
  5286. goto handle_uninterpreted;
  5287. }
  5288. if (input->ExpectTag(26)) goto parse_itemlist;
  5289. if (input->ExpectTag(34)) goto parse_turretlist;
  5290. break;
  5291. }
  5292. // repeated .fish_protocols.turret_unit turretlist = 4;
  5293. case 4: {
  5294. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5295. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  5296. parse_turretlist:
  5297. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  5298. input, add_turretlist()));
  5299. } else {
  5300. goto handle_uninterpreted;
  5301. }
  5302. if (input->ExpectTag(34)) goto parse_turretlist;
  5303. if (input->ExpectTag(42)) goto parse_winglist;
  5304. break;
  5305. }
  5306. // repeated .fish_protocols.wing_unit winglist = 5;
  5307. case 5: {
  5308. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5309. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  5310. parse_winglist:
  5311. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  5312. input, add_winglist()));
  5313. } else {
  5314. goto handle_uninterpreted;
  5315. }
  5316. if (input->ExpectTag(42)) goto parse_winglist;
  5317. if (input->ExpectTag(48)) goto parse_turret_id;
  5318. break;
  5319. }
  5320. // optional int32 turret_id = 6;
  5321. case 6: {
  5322. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5323. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5324. parse_turret_id:
  5325. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5326. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5327. input, &turret_id_)));
  5328. set_has_turret_id();
  5329. } else {
  5330. goto handle_uninterpreted;
  5331. }
  5332. if (input->ExpectTag(56)) goto parse_wing_id;
  5333. break;
  5334. }
  5335. // optional int32 wing_id = 7;
  5336. case 7: {
  5337. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5338. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5339. parse_wing_id:
  5340. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5341. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5342. input, &wing_id_)));
  5343. set_has_wing_id();
  5344. } else {
  5345. goto handle_uninterpreted;
  5346. }
  5347. if (input->ExpectTag(64)) goto parse_headId;
  5348. break;
  5349. }
  5350. // optional int32 headId = 8;
  5351. case 8: {
  5352. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5353. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5354. parse_headId:
  5355. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5356. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5357. input, &headid_)));
  5358. set_has_headid();
  5359. } else {
  5360. goto handle_uninterpreted;
  5361. }
  5362. if (input->ExpectTag(72)) goto parse_frameId;
  5363. break;
  5364. }
  5365. // optional int32 frameId = 9;
  5366. case 9: {
  5367. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5368. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5369. parse_frameId:
  5370. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5371. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5372. input, &frameid_)));
  5373. set_has_frameid();
  5374. } else {
  5375. goto handle_uninterpreted;
  5376. }
  5377. if (input->ExpectTag(80)) goto parse_playerlvl;
  5378. break;
  5379. }
  5380. // optional int32 playerlvl = 10;
  5381. case 10: {
  5382. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5383. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5384. parse_playerlvl:
  5385. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5386. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5387. input, &playerlvl_)));
  5388. set_has_playerlvl();
  5389. } else {
  5390. goto handle_uninterpreted;
  5391. }
  5392. if (input->ExpectTag(88)) goto parse_turretlvl;
  5393. break;
  5394. }
  5395. // optional int32 turretlvl = 11;
  5396. case 11: {
  5397. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5398. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5399. parse_turretlvl:
  5400. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5401. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5402. input, &turretlvl_)));
  5403. set_has_turretlvl();
  5404. } else {
  5405. goto handle_uninterpreted;
  5406. }
  5407. if (input->ExpectTag(96)) goto parse_gameexp;
  5408. break;
  5409. }
  5410. // optional int64 gameexp = 12;
  5411. case 12: {
  5412. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5413. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5414. parse_gameexp:
  5415. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5416. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  5417. input, &gameexp_)));
  5418. set_has_gameexp();
  5419. } else {
  5420. goto handle_uninterpreted;
  5421. }
  5422. if (input->ExpectTag(104)) goto parse_dimensity;
  5423. break;
  5424. }
  5425. // optional int32 dimensity = 13;
  5426. case 13: {
  5427. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5428. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5429. parse_dimensity:
  5430. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5431. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5432. input, &dimensity_)));
  5433. set_has_dimensity();
  5434. } else {
  5435. goto handle_uninterpreted;
  5436. }
  5437. if (input->ExpectTag(112)) goto parse_roomId;
  5438. break;
  5439. }
  5440. // optional int32 roomId = 14;
  5441. case 14: {
  5442. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5443. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5444. parse_roomId:
  5445. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5446. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5447. input, &roomid_)));
  5448. set_has_roomid();
  5449. } else {
  5450. goto handle_uninterpreted;
  5451. }
  5452. if (input->ExpectTag(120)) goto parse_kill_goldfish_count;
  5453. break;
  5454. }
  5455. // optional int32 kill_goldfish_count = 15;
  5456. case 15: {
  5457. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5458. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5459. parse_kill_goldfish_count:
  5460. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5461. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5462. input, &kill_goldfish_count_)));
  5463. set_has_kill_goldfish_count();
  5464. } else {
  5465. goto handle_uninterpreted;
  5466. }
  5467. if (input->ExpectTag(128)) goto parse_goldfish_pool;
  5468. break;
  5469. }
  5470. // optional int32 goldfish_pool = 16;
  5471. case 16: {
  5472. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5473. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5474. parse_goldfish_pool:
  5475. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5476. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5477. input, &goldfish_pool_)));
  5478. set_has_goldfish_pool();
  5479. } else {
  5480. goto handle_uninterpreted;
  5481. }
  5482. if (input->ExpectTag(136)) goto parse_goldfish_lottery_count;
  5483. break;
  5484. }
  5485. // optional int32 goldfish_lottery_count = 17;
  5486. case 17: {
  5487. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5488. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5489. parse_goldfish_lottery_count:
  5490. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5491. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5492. input, &goldfish_lottery_count_)));
  5493. set_has_goldfish_lottery_count();
  5494. } else {
  5495. goto handle_uninterpreted;
  5496. }
  5497. if (input->ExpectTag(144)) goto parse_dailyAdTimes;
  5498. break;
  5499. }
  5500. // optional int32 dailyAdTimes = 18;
  5501. case 18: {
  5502. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5503. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5504. parse_dailyAdTimes:
  5505. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5506. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5507. input, &dailyadtimes_)));
  5508. set_has_dailyadtimes();
  5509. } else {
  5510. goto handle_uninterpreted;
  5511. }
  5512. if (input->ExpectTag(154)) goto parse_redEnvlopeInfos;
  5513. break;
  5514. }
  5515. // repeated .fish_protocols.redEnvlopeInfo redEnvlopeInfos = 19;
  5516. case 19: {
  5517. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5518. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  5519. parse_redEnvlopeInfos:
  5520. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  5521. input, add_redenvlopeinfos()));
  5522. } else {
  5523. goto handle_uninterpreted;
  5524. }
  5525. if (input->ExpectTag(154)) goto parse_redEnvlopeInfos;
  5526. if (input->ExpectTag(160)) goto parse_autofirelefttime;
  5527. break;
  5528. }
  5529. // optional int32 autofirelefttime = 20;
  5530. case 20: {
  5531. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5532. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5533. parse_autofirelefttime:
  5534. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5535. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5536. input, &autofirelefttime_)));
  5537. set_has_autofirelefttime();
  5538. } else {
  5539. goto handle_uninterpreted;
  5540. }
  5541. if (input->ExpectTag(168)) goto parse_canReceiveTommorrowBuffCount;
  5542. break;
  5543. }
  5544. // optional int32 canReceiveTommorrowBuffCount = 21;
  5545. case 21: {
  5546. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5547. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5548. parse_canReceiveTommorrowBuffCount:
  5549. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5550. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5551. input, &canreceivetommorrowbuffcount_)));
  5552. set_has_canreceivetommorrowbuffcount();
  5553. } else {
  5554. goto handle_uninterpreted;
  5555. }
  5556. if (input->ExpectTag(176)) goto parse_canReceiveTommorrowBuffToday;
  5557. break;
  5558. }
  5559. // optional bool canReceiveTommorrowBuffToday = 22;
  5560. case 22: {
  5561. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5562. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5563. parse_canReceiveTommorrowBuffToday:
  5564. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5565. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  5566. input, &canreceivetommorrowbufftoday_)));
  5567. set_has_canreceivetommorrowbufftoday();
  5568. } else {
  5569. goto handle_uninterpreted;
  5570. }
  5571. if (input->ExpectAtEnd()) return true;
  5572. break;
  5573. }
  5574. default: {
  5575. handle_uninterpreted:
  5576. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5577. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  5578. return true;
  5579. }
  5580. DO_(::google::protobuf::internal::WireFormat::SkipField(
  5581. input, tag, mutable_unknown_fields()));
  5582. break;
  5583. }
  5584. }
  5585. }
  5586. return true;
  5587. #undef DO_
  5588. }
  5589. void packetl2c_check_state_result::SerializeWithCachedSizes(
  5590. ::google::protobuf::io::CodedOutputStream* output) const {
  5591. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_check_state_result];
  5592. if (has_packet_id()) {
  5593. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  5594. 1, this->packet_id(), output);
  5595. }
  5596. // optional bool is_intable = 2 [default = false];
  5597. if (has_is_intable()) {
  5598. ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_intable(), output);
  5599. }
  5600. // repeated .fish_protocols.msg_item itemlist = 3;
  5601. for (int i = 0; i < this->itemlist_size(); i++) {
  5602. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  5603. 3, this->itemlist(i), output);
  5604. }
  5605. // repeated .fish_protocols.turret_unit turretlist = 4;
  5606. for (int i = 0; i < this->turretlist_size(); i++) {
  5607. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  5608. 4, this->turretlist(i), output);
  5609. }
  5610. // repeated .fish_protocols.wing_unit winglist = 5;
  5611. for (int i = 0; i < this->winglist_size(); i++) {
  5612. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  5613. 5, this->winglist(i), output);
  5614. }
  5615. // optional int32 turret_id = 6;
  5616. if (has_turret_id()) {
  5617. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->turret_id(), output);
  5618. }
  5619. // optional int32 wing_id = 7;
  5620. if (has_wing_id()) {
  5621. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->wing_id(), output);
  5622. }
  5623. // optional int32 headId = 8;
  5624. if (has_headid()) {
  5625. ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->headid(), output);
  5626. }
  5627. // optional int32 frameId = 9;
  5628. if (has_frameid()) {
  5629. ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->frameid(), output);
  5630. }
  5631. // optional int32 playerlvl = 10;
  5632. if (has_playerlvl()) {
  5633. ::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->playerlvl(), output);
  5634. }
  5635. // optional int32 turretlvl = 11;
  5636. if (has_turretlvl()) {
  5637. ::google::protobuf::internal::WireFormatLite::WriteInt32(11, this->turretlvl(), output);
  5638. }
  5639. // optional int64 gameexp = 12;
  5640. if (has_gameexp()) {
  5641. ::google::protobuf::internal::WireFormatLite::WriteInt64(12, this->gameexp(), output);
  5642. }
  5643. // optional int32 dimensity = 13;
  5644. if (has_dimensity()) {
  5645. ::google::protobuf::internal::WireFormatLite::WriteInt32(13, this->dimensity(), output);
  5646. }
  5647. // optional int32 roomId = 14;
  5648. if (has_roomid()) {
  5649. ::google::protobuf::internal::WireFormatLite::WriteInt32(14, this->roomid(), output);
  5650. }
  5651. // optional int32 kill_goldfish_count = 15;
  5652. if (has_kill_goldfish_count()) {
  5653. ::google::protobuf::internal::WireFormatLite::WriteInt32(15, this->kill_goldfish_count(), output);
  5654. }
  5655. // optional int32 goldfish_pool = 16;
  5656. if (has_goldfish_pool()) {
  5657. ::google::protobuf::internal::WireFormatLite::WriteInt32(16, this->goldfish_pool(), output);
  5658. }
  5659. // optional int32 goldfish_lottery_count = 17;
  5660. if (has_goldfish_lottery_count()) {
  5661. ::google::protobuf::internal::WireFormatLite::WriteInt32(17, this->goldfish_lottery_count(), output);
  5662. }
  5663. // optional int32 dailyAdTimes = 18;
  5664. if (has_dailyadtimes()) {
  5665. ::google::protobuf::internal::WireFormatLite::WriteInt32(18, this->dailyadtimes(), output);
  5666. }
  5667. // repeated .fish_protocols.redEnvlopeInfo redEnvlopeInfos = 19;
  5668. for (int i = 0; i < this->redenvlopeinfos_size(); i++) {
  5669. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  5670. 19, this->redenvlopeinfos(i), output);
  5671. }
  5672. // optional int32 autofirelefttime = 20;
  5673. if (has_autofirelefttime()) {
  5674. ::google::protobuf::internal::WireFormatLite::WriteInt32(20, this->autofirelefttime(), output);
  5675. }
  5676. // optional int32 canReceiveTommorrowBuffCount = 21;
  5677. if (has_canreceivetommorrowbuffcount()) {
  5678. ::google::protobuf::internal::WireFormatLite::WriteInt32(21, this->canreceivetommorrowbuffcount(), output);
  5679. }
  5680. // optional bool canReceiveTommorrowBuffToday = 22;
  5681. if (has_canreceivetommorrowbufftoday()) {
  5682. ::google::protobuf::internal::WireFormatLite::WriteBool(22, this->canreceivetommorrowbufftoday(), output);
  5683. }
  5684. if (!unknown_fields().empty()) {
  5685. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  5686. unknown_fields(), output);
  5687. }
  5688. }
  5689. ::google::protobuf::uint8* packetl2c_check_state_result::SerializeWithCachedSizesToArray(
  5690. ::google::protobuf::uint8* target) const {
  5691. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_check_state_result];
  5692. if (has_packet_id()) {
  5693. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  5694. 1, this->packet_id(), target);
  5695. }
  5696. // optional bool is_intable = 2 [default = false];
  5697. if (has_is_intable()) {
  5698. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_intable(), target);
  5699. }
  5700. // repeated .fish_protocols.msg_item itemlist = 3;
  5701. for (int i = 0; i < this->itemlist_size(); i++) {
  5702. target = ::google::protobuf::internal::WireFormatLite::
  5703. WriteMessageNoVirtualToArray(
  5704. 3, this->itemlist(i), target);
  5705. }
  5706. // repeated .fish_protocols.turret_unit turretlist = 4;
  5707. for (int i = 0; i < this->turretlist_size(); i++) {
  5708. target = ::google::protobuf::internal::WireFormatLite::
  5709. WriteMessageNoVirtualToArray(
  5710. 4, this->turretlist(i), target);
  5711. }
  5712. // repeated .fish_protocols.wing_unit winglist = 5;
  5713. for (int i = 0; i < this->winglist_size(); i++) {
  5714. target = ::google::protobuf::internal::WireFormatLite::
  5715. WriteMessageNoVirtualToArray(
  5716. 5, this->winglist(i), target);
  5717. }
  5718. // optional int32 turret_id = 6;
  5719. if (has_turret_id()) {
  5720. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->turret_id(), target);
  5721. }
  5722. // optional int32 wing_id = 7;
  5723. if (has_wing_id()) {
  5724. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->wing_id(), target);
  5725. }
  5726. // optional int32 headId = 8;
  5727. if (has_headid()) {
  5728. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->headid(), target);
  5729. }
  5730. // optional int32 frameId = 9;
  5731. if (has_frameid()) {
  5732. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->frameid(), target);
  5733. }
  5734. // optional int32 playerlvl = 10;
  5735. if (has_playerlvl()) {
  5736. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->playerlvl(), target);
  5737. }
  5738. // optional int32 turretlvl = 11;
  5739. if (has_turretlvl()) {
  5740. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(11, this->turretlvl(), target);
  5741. }
  5742. // optional int64 gameexp = 12;
  5743. if (has_gameexp()) {
  5744. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(12, this->gameexp(), target);
  5745. }
  5746. // optional int32 dimensity = 13;
  5747. if (has_dimensity()) {
  5748. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(13, this->dimensity(), target);
  5749. }
  5750. // optional int32 roomId = 14;
  5751. if (has_roomid()) {
  5752. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(14, this->roomid(), target);
  5753. }
  5754. // optional int32 kill_goldfish_count = 15;
  5755. if (has_kill_goldfish_count()) {
  5756. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(15, this->kill_goldfish_count(), target);
  5757. }
  5758. // optional int32 goldfish_pool = 16;
  5759. if (has_goldfish_pool()) {
  5760. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(16, this->goldfish_pool(), target);
  5761. }
  5762. // optional int32 goldfish_lottery_count = 17;
  5763. if (has_goldfish_lottery_count()) {
  5764. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(17, this->goldfish_lottery_count(), target);
  5765. }
  5766. // optional int32 dailyAdTimes = 18;
  5767. if (has_dailyadtimes()) {
  5768. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(18, this->dailyadtimes(), target);
  5769. }
  5770. // repeated .fish_protocols.redEnvlopeInfo redEnvlopeInfos = 19;
  5771. for (int i = 0; i < this->redenvlopeinfos_size(); i++) {
  5772. target = ::google::protobuf::internal::WireFormatLite::
  5773. WriteMessageNoVirtualToArray(
  5774. 19, this->redenvlopeinfos(i), target);
  5775. }
  5776. // optional int32 autofirelefttime = 20;
  5777. if (has_autofirelefttime()) {
  5778. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(20, this->autofirelefttime(), target);
  5779. }
  5780. // optional int32 canReceiveTommorrowBuffCount = 21;
  5781. if (has_canreceivetommorrowbuffcount()) {
  5782. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(21, this->canreceivetommorrowbuffcount(), target);
  5783. }
  5784. // optional bool canReceiveTommorrowBuffToday = 22;
  5785. if (has_canreceivetommorrowbufftoday()) {
  5786. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(22, this->canreceivetommorrowbufftoday(), target);
  5787. }
  5788. if (!unknown_fields().empty()) {
  5789. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  5790. unknown_fields(), target);
  5791. }
  5792. return target;
  5793. }
  5794. int packetl2c_check_state_result::ByteSize() const {
  5795. int total_size = 0;
  5796. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  5797. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_check_state_result];
  5798. if (has_packet_id()) {
  5799. total_size += 1 +
  5800. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  5801. }
  5802. // optional bool is_intable = 2 [default = false];
  5803. if (has_is_intable()) {
  5804. total_size += 1 + 1;
  5805. }
  5806. // optional int32 turret_id = 6;
  5807. if (has_turret_id()) {
  5808. total_size += 1 +
  5809. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5810. this->turret_id());
  5811. }
  5812. // optional int32 wing_id = 7;
  5813. if (has_wing_id()) {
  5814. total_size += 1 +
  5815. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5816. this->wing_id());
  5817. }
  5818. // optional int32 headId = 8;
  5819. if (has_headid()) {
  5820. total_size += 1 +
  5821. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5822. this->headid());
  5823. }
  5824. }
  5825. if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
  5826. // optional int32 frameId = 9;
  5827. if (has_frameid()) {
  5828. total_size += 1 +
  5829. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5830. this->frameid());
  5831. }
  5832. // optional int32 playerlvl = 10;
  5833. if (has_playerlvl()) {
  5834. total_size += 1 +
  5835. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5836. this->playerlvl());
  5837. }
  5838. // optional int32 turretlvl = 11;
  5839. if (has_turretlvl()) {
  5840. total_size += 1 +
  5841. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5842. this->turretlvl());
  5843. }
  5844. // optional int64 gameexp = 12;
  5845. if (has_gameexp()) {
  5846. total_size += 1 +
  5847. ::google::protobuf::internal::WireFormatLite::Int64Size(
  5848. this->gameexp());
  5849. }
  5850. // optional int32 dimensity = 13;
  5851. if (has_dimensity()) {
  5852. total_size += 1 +
  5853. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5854. this->dimensity());
  5855. }
  5856. // optional int32 roomId = 14;
  5857. if (has_roomid()) {
  5858. total_size += 1 +
  5859. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5860. this->roomid());
  5861. }
  5862. // optional int32 kill_goldfish_count = 15;
  5863. if (has_kill_goldfish_count()) {
  5864. total_size += 1 +
  5865. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5866. this->kill_goldfish_count());
  5867. }
  5868. // optional int32 goldfish_pool = 16;
  5869. if (has_goldfish_pool()) {
  5870. total_size += 2 +
  5871. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5872. this->goldfish_pool());
  5873. }
  5874. }
  5875. if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
  5876. // optional int32 goldfish_lottery_count = 17;
  5877. if (has_goldfish_lottery_count()) {
  5878. total_size += 2 +
  5879. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5880. this->goldfish_lottery_count());
  5881. }
  5882. // optional int32 dailyAdTimes = 18;
  5883. if (has_dailyadtimes()) {
  5884. total_size += 2 +
  5885. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5886. this->dailyadtimes());
  5887. }
  5888. // optional int32 autofirelefttime = 20;
  5889. if (has_autofirelefttime()) {
  5890. total_size += 2 +
  5891. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5892. this->autofirelefttime());
  5893. }
  5894. // optional int32 canReceiveTommorrowBuffCount = 21;
  5895. if (has_canreceivetommorrowbuffcount()) {
  5896. total_size += 2 +
  5897. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5898. this->canreceivetommorrowbuffcount());
  5899. }
  5900. // optional bool canReceiveTommorrowBuffToday = 22;
  5901. if (has_canreceivetommorrowbufftoday()) {
  5902. total_size += 2 + 1;
  5903. }
  5904. }
  5905. // repeated .fish_protocols.msg_item itemlist = 3;
  5906. total_size += 1 * this->itemlist_size();
  5907. for (int i = 0; i < this->itemlist_size(); i++) {
  5908. total_size +=
  5909. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  5910. this->itemlist(i));
  5911. }
  5912. // repeated .fish_protocols.turret_unit turretlist = 4;
  5913. total_size += 1 * this->turretlist_size();
  5914. for (int i = 0; i < this->turretlist_size(); i++) {
  5915. total_size +=
  5916. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  5917. this->turretlist(i));
  5918. }
  5919. // repeated .fish_protocols.wing_unit winglist = 5;
  5920. total_size += 1 * this->winglist_size();
  5921. for (int i = 0; i < this->winglist_size(); i++) {
  5922. total_size +=
  5923. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  5924. this->winglist(i));
  5925. }
  5926. // repeated .fish_protocols.redEnvlopeInfo redEnvlopeInfos = 19;
  5927. total_size += 2 * this->redenvlopeinfos_size();
  5928. for (int i = 0; i < this->redenvlopeinfos_size(); i++) {
  5929. total_size +=
  5930. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  5931. this->redenvlopeinfos(i));
  5932. }
  5933. if (!unknown_fields().empty()) {
  5934. total_size +=
  5935. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  5936. unknown_fields());
  5937. }
  5938. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  5939. _cached_size_ = total_size;
  5940. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  5941. return total_size;
  5942. }
  5943. void packetl2c_check_state_result::MergeFrom(const ::google::protobuf::Message& from) {
  5944. GOOGLE_CHECK_NE(&from, this);
  5945. const packetl2c_check_state_result* source =
  5946. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_check_state_result*>(
  5947. &from);
  5948. if (source == NULL) {
  5949. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  5950. } else {
  5951. MergeFrom(*source);
  5952. }
  5953. }
  5954. void packetl2c_check_state_result::MergeFrom(const packetl2c_check_state_result& from) {
  5955. GOOGLE_CHECK_NE(&from, this);
  5956. itemlist_.MergeFrom(from.itemlist_);
  5957. turretlist_.MergeFrom(from.turretlist_);
  5958. winglist_.MergeFrom(from.winglist_);
  5959. redenvlopeinfos_.MergeFrom(from.redenvlopeinfos_);
  5960. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  5961. if (from.has_packet_id()) {
  5962. set_packet_id(from.packet_id());
  5963. }
  5964. if (from.has_is_intable()) {
  5965. set_is_intable(from.is_intable());
  5966. }
  5967. if (from.has_turret_id()) {
  5968. set_turret_id(from.turret_id());
  5969. }
  5970. if (from.has_wing_id()) {
  5971. set_wing_id(from.wing_id());
  5972. }
  5973. if (from.has_headid()) {
  5974. set_headid(from.headid());
  5975. }
  5976. }
  5977. if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
  5978. if (from.has_frameid()) {
  5979. set_frameid(from.frameid());
  5980. }
  5981. if (from.has_playerlvl()) {
  5982. set_playerlvl(from.playerlvl());
  5983. }
  5984. if (from.has_turretlvl()) {
  5985. set_turretlvl(from.turretlvl());
  5986. }
  5987. if (from.has_gameexp()) {
  5988. set_gameexp(from.gameexp());
  5989. }
  5990. if (from.has_dimensity()) {
  5991. set_dimensity(from.dimensity());
  5992. }
  5993. if (from.has_roomid()) {
  5994. set_roomid(from.roomid());
  5995. }
  5996. if (from.has_kill_goldfish_count()) {
  5997. set_kill_goldfish_count(from.kill_goldfish_count());
  5998. }
  5999. if (from.has_goldfish_pool()) {
  6000. set_goldfish_pool(from.goldfish_pool());
  6001. }
  6002. }
  6003. if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) {
  6004. if (from.has_goldfish_lottery_count()) {
  6005. set_goldfish_lottery_count(from.goldfish_lottery_count());
  6006. }
  6007. if (from.has_dailyadtimes()) {
  6008. set_dailyadtimes(from.dailyadtimes());
  6009. }
  6010. if (from.has_autofirelefttime()) {
  6011. set_autofirelefttime(from.autofirelefttime());
  6012. }
  6013. if (from.has_canreceivetommorrowbuffcount()) {
  6014. set_canreceivetommorrowbuffcount(from.canreceivetommorrowbuffcount());
  6015. }
  6016. if (from.has_canreceivetommorrowbufftoday()) {
  6017. set_canreceivetommorrowbufftoday(from.canreceivetommorrowbufftoday());
  6018. }
  6019. }
  6020. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  6021. }
  6022. void packetl2c_check_state_result::CopyFrom(const ::google::protobuf::Message& from) {
  6023. if (&from == this) return;
  6024. Clear();
  6025. MergeFrom(from);
  6026. }
  6027. void packetl2c_check_state_result::CopyFrom(const packetl2c_check_state_result& from) {
  6028. if (&from == this) return;
  6029. Clear();
  6030. MergeFrom(from);
  6031. }
  6032. bool packetl2c_check_state_result::IsInitialized() const {
  6033. return true;
  6034. }
  6035. void packetl2c_check_state_result::Swap(packetl2c_check_state_result* other) {
  6036. if (other != this) {
  6037. std::swap(packet_id_, other->packet_id_);
  6038. std::swap(is_intable_, other->is_intable_);
  6039. itemlist_.Swap(&other->itemlist_);
  6040. turretlist_.Swap(&other->turretlist_);
  6041. winglist_.Swap(&other->winglist_);
  6042. std::swap(turret_id_, other->turret_id_);
  6043. std::swap(wing_id_, other->wing_id_);
  6044. std::swap(headid_, other->headid_);
  6045. std::swap(frameid_, other->frameid_);
  6046. std::swap(playerlvl_, other->playerlvl_);
  6047. std::swap(turretlvl_, other->turretlvl_);
  6048. std::swap(gameexp_, other->gameexp_);
  6049. std::swap(dimensity_, other->dimensity_);
  6050. std::swap(roomid_, other->roomid_);
  6051. std::swap(kill_goldfish_count_, other->kill_goldfish_count_);
  6052. std::swap(goldfish_pool_, other->goldfish_pool_);
  6053. std::swap(goldfish_lottery_count_, other->goldfish_lottery_count_);
  6054. std::swap(dailyadtimes_, other->dailyadtimes_);
  6055. redenvlopeinfos_.Swap(&other->redenvlopeinfos_);
  6056. std::swap(autofirelefttime_, other->autofirelefttime_);
  6057. std::swap(canreceivetommorrowbuffcount_, other->canreceivetommorrowbuffcount_);
  6058. std::swap(canreceivetommorrowbufftoday_, other->canreceivetommorrowbufftoday_);
  6059. std::swap(_has_bits_[0], other->_has_bits_[0]);
  6060. _unknown_fields_.Swap(&other->_unknown_fields_);
  6061. std::swap(_cached_size_, other->_cached_size_);
  6062. }
  6063. }
  6064. ::google::protobuf::Metadata packetl2c_check_state_result::GetMetadata() const {
  6065. protobuf_AssignDescriptorsOnce();
  6066. ::google::protobuf::Metadata metadata;
  6067. metadata.descriptor = packetl2c_check_state_result_descriptor_;
  6068. metadata.reflection = packetl2c_check_state_result_reflection_;
  6069. return metadata;
  6070. }
  6071. // ===================================================================
  6072. #ifndef _MSC_VER
  6073. const int packetc2l_buy_item::kPacketIdFieldNumber;
  6074. const int packetc2l_buy_item::kIsshopFieldNumber;
  6075. const int packetc2l_buy_item::kShopIdFieldNumber;
  6076. const int packetc2l_buy_item::kShopCountFieldNumber;
  6077. #endif // !_MSC_VER
  6078. packetc2l_buy_item::packetc2l_buy_item()
  6079. : ::google::protobuf::Message() {
  6080. SharedCtor();
  6081. }
  6082. void packetc2l_buy_item::InitAsDefaultInstance() {
  6083. }
  6084. packetc2l_buy_item::packetc2l_buy_item(const packetc2l_buy_item& from)
  6085. : ::google::protobuf::Message() {
  6086. SharedCtor();
  6087. MergeFrom(from);
  6088. }
  6089. void packetc2l_buy_item::SharedCtor() {
  6090. _cached_size_ = 0;
  6091. packet_id_ = 10105;
  6092. isshop_ = false;
  6093. shop_id_ = 0;
  6094. shop_count_ = 1;
  6095. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  6096. }
  6097. packetc2l_buy_item::~packetc2l_buy_item() {
  6098. SharedDtor();
  6099. }
  6100. void packetc2l_buy_item::SharedDtor() {
  6101. if (this != default_instance_) {
  6102. }
  6103. }
  6104. void packetc2l_buy_item::SetCachedSize(int size) const {
  6105. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  6106. _cached_size_ = size;
  6107. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  6108. }
  6109. const ::google::protobuf::Descriptor* packetc2l_buy_item::descriptor() {
  6110. protobuf_AssignDescriptorsOnce();
  6111. return packetc2l_buy_item_descriptor_;
  6112. }
  6113. const packetc2l_buy_item& packetc2l_buy_item::default_instance() {
  6114. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  6115. return *default_instance_;
  6116. }
  6117. packetc2l_buy_item* packetc2l_buy_item::default_instance_ = NULL;
  6118. packetc2l_buy_item* packetc2l_buy_item::New() const {
  6119. return new packetc2l_buy_item;
  6120. }
  6121. void packetc2l_buy_item::Clear() {
  6122. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  6123. packet_id_ = 10105;
  6124. isshop_ = false;
  6125. shop_id_ = 0;
  6126. shop_count_ = 1;
  6127. }
  6128. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  6129. mutable_unknown_fields()->Clear();
  6130. }
  6131. bool packetc2l_buy_item::MergePartialFromCodedStream(
  6132. ::google::protobuf::io::CodedInputStream* input) {
  6133. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  6134. ::google::protobuf::uint32 tag;
  6135. while ((tag = input->ReadTag()) != 0) {
  6136. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  6137. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_buy_item];
  6138. case 1: {
  6139. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6140. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  6141. int value;
  6142. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  6143. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  6144. input, &value)));
  6145. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  6146. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  6147. } else {
  6148. mutable_unknown_fields()->AddVarint(1, value);
  6149. }
  6150. } else {
  6151. goto handle_uninterpreted;
  6152. }
  6153. if (input->ExpectTag(16)) goto parse_isshop;
  6154. break;
  6155. }
  6156. // optional bool isshop = 2;
  6157. case 2: {
  6158. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6159. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  6160. parse_isshop:
  6161. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  6162. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  6163. input, &isshop_)));
  6164. set_has_isshop();
  6165. } else {
  6166. goto handle_uninterpreted;
  6167. }
  6168. if (input->ExpectTag(24)) goto parse_shop_id;
  6169. break;
  6170. }
  6171. // optional int32 shop_id = 3;
  6172. case 3: {
  6173. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6174. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  6175. parse_shop_id:
  6176. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  6177. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  6178. input, &shop_id_)));
  6179. set_has_shop_id();
  6180. } else {
  6181. goto handle_uninterpreted;
  6182. }
  6183. if (input->ExpectTag(32)) goto parse_shop_count;
  6184. break;
  6185. }
  6186. // optional int32 shop_count = 4 [default = 1];
  6187. case 4: {
  6188. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6189. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  6190. parse_shop_count:
  6191. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  6192. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  6193. input, &shop_count_)));
  6194. set_has_shop_count();
  6195. } else {
  6196. goto handle_uninterpreted;
  6197. }
  6198. if (input->ExpectAtEnd()) return true;
  6199. break;
  6200. }
  6201. default: {
  6202. handle_uninterpreted:
  6203. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6204. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  6205. return true;
  6206. }
  6207. DO_(::google::protobuf::internal::WireFormat::SkipField(
  6208. input, tag, mutable_unknown_fields()));
  6209. break;
  6210. }
  6211. }
  6212. }
  6213. return true;
  6214. #undef DO_
  6215. }
  6216. void packetc2l_buy_item::SerializeWithCachedSizes(
  6217. ::google::protobuf::io::CodedOutputStream* output) const {
  6218. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_buy_item];
  6219. if (has_packet_id()) {
  6220. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  6221. 1, this->packet_id(), output);
  6222. }
  6223. // optional bool isshop = 2;
  6224. if (has_isshop()) {
  6225. ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->isshop(), output);
  6226. }
  6227. // optional int32 shop_id = 3;
  6228. if (has_shop_id()) {
  6229. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->shop_id(), output);
  6230. }
  6231. // optional int32 shop_count = 4 [default = 1];
  6232. if (has_shop_count()) {
  6233. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->shop_count(), output);
  6234. }
  6235. if (!unknown_fields().empty()) {
  6236. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  6237. unknown_fields(), output);
  6238. }
  6239. }
  6240. ::google::protobuf::uint8* packetc2l_buy_item::SerializeWithCachedSizesToArray(
  6241. ::google::protobuf::uint8* target) const {
  6242. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_buy_item];
  6243. if (has_packet_id()) {
  6244. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  6245. 1, this->packet_id(), target);
  6246. }
  6247. // optional bool isshop = 2;
  6248. if (has_isshop()) {
  6249. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->isshop(), target);
  6250. }
  6251. // optional int32 shop_id = 3;
  6252. if (has_shop_id()) {
  6253. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->shop_id(), target);
  6254. }
  6255. // optional int32 shop_count = 4 [default = 1];
  6256. if (has_shop_count()) {
  6257. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->shop_count(), target);
  6258. }
  6259. if (!unknown_fields().empty()) {
  6260. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  6261. unknown_fields(), target);
  6262. }
  6263. return target;
  6264. }
  6265. int packetc2l_buy_item::ByteSize() const {
  6266. int total_size = 0;
  6267. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  6268. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_buy_item];
  6269. if (has_packet_id()) {
  6270. total_size += 1 +
  6271. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  6272. }
  6273. // optional bool isshop = 2;
  6274. if (has_isshop()) {
  6275. total_size += 1 + 1;
  6276. }
  6277. // optional int32 shop_id = 3;
  6278. if (has_shop_id()) {
  6279. total_size += 1 +
  6280. ::google::protobuf::internal::WireFormatLite::Int32Size(
  6281. this->shop_id());
  6282. }
  6283. // optional int32 shop_count = 4 [default = 1];
  6284. if (has_shop_count()) {
  6285. total_size += 1 +
  6286. ::google::protobuf::internal::WireFormatLite::Int32Size(
  6287. this->shop_count());
  6288. }
  6289. }
  6290. if (!unknown_fields().empty()) {
  6291. total_size +=
  6292. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  6293. unknown_fields());
  6294. }
  6295. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  6296. _cached_size_ = total_size;
  6297. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  6298. return total_size;
  6299. }
  6300. void packetc2l_buy_item::MergeFrom(const ::google::protobuf::Message& from) {
  6301. GOOGLE_CHECK_NE(&from, this);
  6302. const packetc2l_buy_item* source =
  6303. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_buy_item*>(
  6304. &from);
  6305. if (source == NULL) {
  6306. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  6307. } else {
  6308. MergeFrom(*source);
  6309. }
  6310. }
  6311. void packetc2l_buy_item::MergeFrom(const packetc2l_buy_item& from) {
  6312. GOOGLE_CHECK_NE(&from, this);
  6313. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  6314. if (from.has_packet_id()) {
  6315. set_packet_id(from.packet_id());
  6316. }
  6317. if (from.has_isshop()) {
  6318. set_isshop(from.isshop());
  6319. }
  6320. if (from.has_shop_id()) {
  6321. set_shop_id(from.shop_id());
  6322. }
  6323. if (from.has_shop_count()) {
  6324. set_shop_count(from.shop_count());
  6325. }
  6326. }
  6327. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  6328. }
  6329. void packetc2l_buy_item::CopyFrom(const ::google::protobuf::Message& from) {
  6330. if (&from == this) return;
  6331. Clear();
  6332. MergeFrom(from);
  6333. }
  6334. void packetc2l_buy_item::CopyFrom(const packetc2l_buy_item& from) {
  6335. if (&from == this) return;
  6336. Clear();
  6337. MergeFrom(from);
  6338. }
  6339. bool packetc2l_buy_item::IsInitialized() const {
  6340. return true;
  6341. }
  6342. void packetc2l_buy_item::Swap(packetc2l_buy_item* other) {
  6343. if (other != this) {
  6344. std::swap(packet_id_, other->packet_id_);
  6345. std::swap(isshop_, other->isshop_);
  6346. std::swap(shop_id_, other->shop_id_);
  6347. std::swap(shop_count_, other->shop_count_);
  6348. std::swap(_has_bits_[0], other->_has_bits_[0]);
  6349. _unknown_fields_.Swap(&other->_unknown_fields_);
  6350. std::swap(_cached_size_, other->_cached_size_);
  6351. }
  6352. }
  6353. ::google::protobuf::Metadata packetc2l_buy_item::GetMetadata() const {
  6354. protobuf_AssignDescriptorsOnce();
  6355. ::google::protobuf::Metadata metadata;
  6356. metadata.descriptor = packetc2l_buy_item_descriptor_;
  6357. metadata.reflection = packetc2l_buy_item_reflection_;
  6358. return metadata;
  6359. }
  6360. // ===================================================================
  6361. #ifndef _MSC_VER
  6362. const int packetl2c_buy_item_result::kPacketIdFieldNumber;
  6363. const int packetl2c_buy_item_result::kShopIdFieldNumber;
  6364. const int packetl2c_buy_item_result::kResultFieldNumber;
  6365. const int packetl2c_buy_item_result::kShopCountFieldNumber;
  6366. #endif // !_MSC_VER
  6367. packetl2c_buy_item_result::packetl2c_buy_item_result()
  6368. : ::google::protobuf::Message() {
  6369. SharedCtor();
  6370. }
  6371. void packetl2c_buy_item_result::InitAsDefaultInstance() {
  6372. }
  6373. packetl2c_buy_item_result::packetl2c_buy_item_result(const packetl2c_buy_item_result& from)
  6374. : ::google::protobuf::Message() {
  6375. SharedCtor();
  6376. MergeFrom(from);
  6377. }
  6378. void packetl2c_buy_item_result::SharedCtor() {
  6379. _cached_size_ = 0;
  6380. packet_id_ = 15210;
  6381. shop_id_ = 0;
  6382. result_ = 2;
  6383. shop_count_ = 1;
  6384. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  6385. }
  6386. packetl2c_buy_item_result::~packetl2c_buy_item_result() {
  6387. SharedDtor();
  6388. }
  6389. void packetl2c_buy_item_result::SharedDtor() {
  6390. if (this != default_instance_) {
  6391. }
  6392. }
  6393. void packetl2c_buy_item_result::SetCachedSize(int size) const {
  6394. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  6395. _cached_size_ = size;
  6396. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  6397. }
  6398. const ::google::protobuf::Descriptor* packetl2c_buy_item_result::descriptor() {
  6399. protobuf_AssignDescriptorsOnce();
  6400. return packetl2c_buy_item_result_descriptor_;
  6401. }
  6402. const packetl2c_buy_item_result& packetl2c_buy_item_result::default_instance() {
  6403. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  6404. return *default_instance_;
  6405. }
  6406. packetl2c_buy_item_result* packetl2c_buy_item_result::default_instance_ = NULL;
  6407. packetl2c_buy_item_result* packetl2c_buy_item_result::New() const {
  6408. return new packetl2c_buy_item_result;
  6409. }
  6410. void packetl2c_buy_item_result::Clear() {
  6411. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  6412. packet_id_ = 15210;
  6413. shop_id_ = 0;
  6414. result_ = 2;
  6415. shop_count_ = 1;
  6416. }
  6417. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  6418. mutable_unknown_fields()->Clear();
  6419. }
  6420. bool packetl2c_buy_item_result::MergePartialFromCodedStream(
  6421. ::google::protobuf::io::CodedInputStream* input) {
  6422. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  6423. ::google::protobuf::uint32 tag;
  6424. while ((tag = input->ReadTag()) != 0) {
  6425. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  6426. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_buy_item_result];
  6427. case 1: {
  6428. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6429. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  6430. int value;
  6431. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  6432. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  6433. input, &value)));
  6434. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  6435. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  6436. } else {
  6437. mutable_unknown_fields()->AddVarint(1, value);
  6438. }
  6439. } else {
  6440. goto handle_uninterpreted;
  6441. }
  6442. if (input->ExpectTag(16)) goto parse_shop_id;
  6443. break;
  6444. }
  6445. // optional int32 shop_id = 2;
  6446. case 2: {
  6447. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6448. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  6449. parse_shop_id:
  6450. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  6451. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  6452. input, &shop_id_)));
  6453. set_has_shop_id();
  6454. } else {
  6455. goto handle_uninterpreted;
  6456. }
  6457. if (input->ExpectTag(24)) goto parse_result;
  6458. break;
  6459. }
  6460. // optional .msg_type_def.e_msg_result_def result = 3 [default = e_rmt_fail];
  6461. case 3: {
  6462. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6463. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  6464. parse_result:
  6465. int value;
  6466. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  6467. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  6468. input, &value)));
  6469. if (::msg_type_def::e_msg_result_def_IsValid(value)) {
  6470. set_result(static_cast< ::msg_type_def::e_msg_result_def >(value));
  6471. } else {
  6472. mutable_unknown_fields()->AddVarint(3, value);
  6473. }
  6474. } else {
  6475. goto handle_uninterpreted;
  6476. }
  6477. if (input->ExpectTag(32)) goto parse_shop_count;
  6478. break;
  6479. }
  6480. // optional int32 shop_count = 4 [default = 1];
  6481. case 4: {
  6482. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6483. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  6484. parse_shop_count:
  6485. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  6486. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  6487. input, &shop_count_)));
  6488. set_has_shop_count();
  6489. } else {
  6490. goto handle_uninterpreted;
  6491. }
  6492. if (input->ExpectAtEnd()) return true;
  6493. break;
  6494. }
  6495. default: {
  6496. handle_uninterpreted:
  6497. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6498. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  6499. return true;
  6500. }
  6501. DO_(::google::protobuf::internal::WireFormat::SkipField(
  6502. input, tag, mutable_unknown_fields()));
  6503. break;
  6504. }
  6505. }
  6506. }
  6507. return true;
  6508. #undef DO_
  6509. }
  6510. void packetl2c_buy_item_result::SerializeWithCachedSizes(
  6511. ::google::protobuf::io::CodedOutputStream* output) const {
  6512. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_buy_item_result];
  6513. if (has_packet_id()) {
  6514. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  6515. 1, this->packet_id(), output);
  6516. }
  6517. // optional int32 shop_id = 2;
  6518. if (has_shop_id()) {
  6519. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->shop_id(), output);
  6520. }
  6521. // optional .msg_type_def.e_msg_result_def result = 3 [default = e_rmt_fail];
  6522. if (has_result()) {
  6523. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  6524. 3, this->result(), output);
  6525. }
  6526. // optional int32 shop_count = 4 [default = 1];
  6527. if (has_shop_count()) {
  6528. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->shop_count(), output);
  6529. }
  6530. if (!unknown_fields().empty()) {
  6531. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  6532. unknown_fields(), output);
  6533. }
  6534. }
  6535. ::google::protobuf::uint8* packetl2c_buy_item_result::SerializeWithCachedSizesToArray(
  6536. ::google::protobuf::uint8* target) const {
  6537. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_buy_item_result];
  6538. if (has_packet_id()) {
  6539. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  6540. 1, this->packet_id(), target);
  6541. }
  6542. // optional int32 shop_id = 2;
  6543. if (has_shop_id()) {
  6544. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->shop_id(), target);
  6545. }
  6546. // optional .msg_type_def.e_msg_result_def result = 3 [default = e_rmt_fail];
  6547. if (has_result()) {
  6548. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  6549. 3, this->result(), target);
  6550. }
  6551. // optional int32 shop_count = 4 [default = 1];
  6552. if (has_shop_count()) {
  6553. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->shop_count(), target);
  6554. }
  6555. if (!unknown_fields().empty()) {
  6556. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  6557. unknown_fields(), target);
  6558. }
  6559. return target;
  6560. }
  6561. int packetl2c_buy_item_result::ByteSize() const {
  6562. int total_size = 0;
  6563. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  6564. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_buy_item_result];
  6565. if (has_packet_id()) {
  6566. total_size += 1 +
  6567. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  6568. }
  6569. // optional int32 shop_id = 2;
  6570. if (has_shop_id()) {
  6571. total_size += 1 +
  6572. ::google::protobuf::internal::WireFormatLite::Int32Size(
  6573. this->shop_id());
  6574. }
  6575. // optional .msg_type_def.e_msg_result_def result = 3 [default = e_rmt_fail];
  6576. if (has_result()) {
  6577. total_size += 1 +
  6578. ::google::protobuf::internal::WireFormatLite::EnumSize(this->result());
  6579. }
  6580. // optional int32 shop_count = 4 [default = 1];
  6581. if (has_shop_count()) {
  6582. total_size += 1 +
  6583. ::google::protobuf::internal::WireFormatLite::Int32Size(
  6584. this->shop_count());
  6585. }
  6586. }
  6587. if (!unknown_fields().empty()) {
  6588. total_size +=
  6589. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  6590. unknown_fields());
  6591. }
  6592. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  6593. _cached_size_ = total_size;
  6594. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  6595. return total_size;
  6596. }
  6597. void packetl2c_buy_item_result::MergeFrom(const ::google::protobuf::Message& from) {
  6598. GOOGLE_CHECK_NE(&from, this);
  6599. const packetl2c_buy_item_result* source =
  6600. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_buy_item_result*>(
  6601. &from);
  6602. if (source == NULL) {
  6603. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  6604. } else {
  6605. MergeFrom(*source);
  6606. }
  6607. }
  6608. void packetl2c_buy_item_result::MergeFrom(const packetl2c_buy_item_result& from) {
  6609. GOOGLE_CHECK_NE(&from, this);
  6610. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  6611. if (from.has_packet_id()) {
  6612. set_packet_id(from.packet_id());
  6613. }
  6614. if (from.has_shop_id()) {
  6615. set_shop_id(from.shop_id());
  6616. }
  6617. if (from.has_result()) {
  6618. set_result(from.result());
  6619. }
  6620. if (from.has_shop_count()) {
  6621. set_shop_count(from.shop_count());
  6622. }
  6623. }
  6624. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  6625. }
  6626. void packetl2c_buy_item_result::CopyFrom(const ::google::protobuf::Message& from) {
  6627. if (&from == this) return;
  6628. Clear();
  6629. MergeFrom(from);
  6630. }
  6631. void packetl2c_buy_item_result::CopyFrom(const packetl2c_buy_item_result& from) {
  6632. if (&from == this) return;
  6633. Clear();
  6634. MergeFrom(from);
  6635. }
  6636. bool packetl2c_buy_item_result::IsInitialized() const {
  6637. return true;
  6638. }
  6639. void packetl2c_buy_item_result::Swap(packetl2c_buy_item_result* other) {
  6640. if (other != this) {
  6641. std::swap(packet_id_, other->packet_id_);
  6642. std::swap(shop_id_, other->shop_id_);
  6643. std::swap(result_, other->result_);
  6644. std::swap(shop_count_, other->shop_count_);
  6645. std::swap(_has_bits_[0], other->_has_bits_[0]);
  6646. _unknown_fields_.Swap(&other->_unknown_fields_);
  6647. std::swap(_cached_size_, other->_cached_size_);
  6648. }
  6649. }
  6650. ::google::protobuf::Metadata packetl2c_buy_item_result::GetMetadata() const {
  6651. protobuf_AssignDescriptorsOnce();
  6652. ::google::protobuf::Metadata metadata;
  6653. metadata.descriptor = packetl2c_buy_item_result_descriptor_;
  6654. metadata.reflection = packetl2c_buy_item_result_reflection_;
  6655. return metadata;
  6656. }
  6657. // ===================================================================
  6658. #ifndef _MSC_VER
  6659. const int packetc2l_use_item::kPacketIdFieldNumber;
  6660. const int packetc2l_use_item::kItemIdFieldNumber;
  6661. const int packetc2l_use_item::kWhereUseFieldNumber;
  6662. #endif // !_MSC_VER
  6663. packetc2l_use_item::packetc2l_use_item()
  6664. : ::google::protobuf::Message() {
  6665. SharedCtor();
  6666. }
  6667. void packetc2l_use_item::InitAsDefaultInstance() {
  6668. }
  6669. packetc2l_use_item::packetc2l_use_item(const packetc2l_use_item& from)
  6670. : ::google::protobuf::Message() {
  6671. SharedCtor();
  6672. MergeFrom(from);
  6673. }
  6674. void packetc2l_use_item::SharedCtor() {
  6675. _cached_size_ = 0;
  6676. packet_id_ = 10106;
  6677. item_id_ = 0;
  6678. whereuse_ = 0;
  6679. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  6680. }
  6681. packetc2l_use_item::~packetc2l_use_item() {
  6682. SharedDtor();
  6683. }
  6684. void packetc2l_use_item::SharedDtor() {
  6685. if (this != default_instance_) {
  6686. }
  6687. }
  6688. void packetc2l_use_item::SetCachedSize(int size) const {
  6689. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  6690. _cached_size_ = size;
  6691. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  6692. }
  6693. const ::google::protobuf::Descriptor* packetc2l_use_item::descriptor() {
  6694. protobuf_AssignDescriptorsOnce();
  6695. return packetc2l_use_item_descriptor_;
  6696. }
  6697. const packetc2l_use_item& packetc2l_use_item::default_instance() {
  6698. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  6699. return *default_instance_;
  6700. }
  6701. packetc2l_use_item* packetc2l_use_item::default_instance_ = NULL;
  6702. packetc2l_use_item* packetc2l_use_item::New() const {
  6703. return new packetc2l_use_item;
  6704. }
  6705. void packetc2l_use_item::Clear() {
  6706. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  6707. packet_id_ = 10106;
  6708. item_id_ = 0;
  6709. whereuse_ = 0;
  6710. }
  6711. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  6712. mutable_unknown_fields()->Clear();
  6713. }
  6714. bool packetc2l_use_item::MergePartialFromCodedStream(
  6715. ::google::protobuf::io::CodedInputStream* input) {
  6716. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  6717. ::google::protobuf::uint32 tag;
  6718. while ((tag = input->ReadTag()) != 0) {
  6719. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  6720. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_use_item];
  6721. case 1: {
  6722. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6723. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  6724. int value;
  6725. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  6726. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  6727. input, &value)));
  6728. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  6729. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  6730. } else {
  6731. mutable_unknown_fields()->AddVarint(1, value);
  6732. }
  6733. } else {
  6734. goto handle_uninterpreted;
  6735. }
  6736. if (input->ExpectTag(16)) goto parse_item_id;
  6737. break;
  6738. }
  6739. // optional int32 item_id = 2;
  6740. case 2: {
  6741. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6742. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  6743. parse_item_id:
  6744. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  6745. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  6746. input, &item_id_)));
  6747. set_has_item_id();
  6748. } else {
  6749. goto handle_uninterpreted;
  6750. }
  6751. if (input->ExpectTag(24)) goto parse_whereUse;
  6752. break;
  6753. }
  6754. // optional int32 whereUse = 3;
  6755. case 3: {
  6756. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6757. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  6758. parse_whereUse:
  6759. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  6760. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  6761. input, &whereuse_)));
  6762. set_has_whereuse();
  6763. } else {
  6764. goto handle_uninterpreted;
  6765. }
  6766. if (input->ExpectAtEnd()) return true;
  6767. break;
  6768. }
  6769. default: {
  6770. handle_uninterpreted:
  6771. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6772. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  6773. return true;
  6774. }
  6775. DO_(::google::protobuf::internal::WireFormat::SkipField(
  6776. input, tag, mutable_unknown_fields()));
  6777. break;
  6778. }
  6779. }
  6780. }
  6781. return true;
  6782. #undef DO_
  6783. }
  6784. void packetc2l_use_item::SerializeWithCachedSizes(
  6785. ::google::protobuf::io::CodedOutputStream* output) const {
  6786. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_use_item];
  6787. if (has_packet_id()) {
  6788. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  6789. 1, this->packet_id(), output);
  6790. }
  6791. // optional int32 item_id = 2;
  6792. if (has_item_id()) {
  6793. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->item_id(), output);
  6794. }
  6795. // optional int32 whereUse = 3;
  6796. if (has_whereuse()) {
  6797. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->whereuse(), output);
  6798. }
  6799. if (!unknown_fields().empty()) {
  6800. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  6801. unknown_fields(), output);
  6802. }
  6803. }
  6804. ::google::protobuf::uint8* packetc2l_use_item::SerializeWithCachedSizesToArray(
  6805. ::google::protobuf::uint8* target) const {
  6806. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_use_item];
  6807. if (has_packet_id()) {
  6808. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  6809. 1, this->packet_id(), target);
  6810. }
  6811. // optional int32 item_id = 2;
  6812. if (has_item_id()) {
  6813. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->item_id(), target);
  6814. }
  6815. // optional int32 whereUse = 3;
  6816. if (has_whereuse()) {
  6817. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->whereuse(), target);
  6818. }
  6819. if (!unknown_fields().empty()) {
  6820. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  6821. unknown_fields(), target);
  6822. }
  6823. return target;
  6824. }
  6825. int packetc2l_use_item::ByteSize() const {
  6826. int total_size = 0;
  6827. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  6828. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_use_item];
  6829. if (has_packet_id()) {
  6830. total_size += 1 +
  6831. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  6832. }
  6833. // optional int32 item_id = 2;
  6834. if (has_item_id()) {
  6835. total_size += 1 +
  6836. ::google::protobuf::internal::WireFormatLite::Int32Size(
  6837. this->item_id());
  6838. }
  6839. // optional int32 whereUse = 3;
  6840. if (has_whereuse()) {
  6841. total_size += 1 +
  6842. ::google::protobuf::internal::WireFormatLite::Int32Size(
  6843. this->whereuse());
  6844. }
  6845. }
  6846. if (!unknown_fields().empty()) {
  6847. total_size +=
  6848. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  6849. unknown_fields());
  6850. }
  6851. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  6852. _cached_size_ = total_size;
  6853. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  6854. return total_size;
  6855. }
  6856. void packetc2l_use_item::MergeFrom(const ::google::protobuf::Message& from) {
  6857. GOOGLE_CHECK_NE(&from, this);
  6858. const packetc2l_use_item* source =
  6859. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_use_item*>(
  6860. &from);
  6861. if (source == NULL) {
  6862. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  6863. } else {
  6864. MergeFrom(*source);
  6865. }
  6866. }
  6867. void packetc2l_use_item::MergeFrom(const packetc2l_use_item& from) {
  6868. GOOGLE_CHECK_NE(&from, this);
  6869. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  6870. if (from.has_packet_id()) {
  6871. set_packet_id(from.packet_id());
  6872. }
  6873. if (from.has_item_id()) {
  6874. set_item_id(from.item_id());
  6875. }
  6876. if (from.has_whereuse()) {
  6877. set_whereuse(from.whereuse());
  6878. }
  6879. }
  6880. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  6881. }
  6882. void packetc2l_use_item::CopyFrom(const ::google::protobuf::Message& from) {
  6883. if (&from == this) return;
  6884. Clear();
  6885. MergeFrom(from);
  6886. }
  6887. void packetc2l_use_item::CopyFrom(const packetc2l_use_item& from) {
  6888. if (&from == this) return;
  6889. Clear();
  6890. MergeFrom(from);
  6891. }
  6892. bool packetc2l_use_item::IsInitialized() const {
  6893. return true;
  6894. }
  6895. void packetc2l_use_item::Swap(packetc2l_use_item* other) {
  6896. if (other != this) {
  6897. std::swap(packet_id_, other->packet_id_);
  6898. std::swap(item_id_, other->item_id_);
  6899. std::swap(whereuse_, other->whereuse_);
  6900. std::swap(_has_bits_[0], other->_has_bits_[0]);
  6901. _unknown_fields_.Swap(&other->_unknown_fields_);
  6902. std::swap(_cached_size_, other->_cached_size_);
  6903. }
  6904. }
  6905. ::google::protobuf::Metadata packetc2l_use_item::GetMetadata() const {
  6906. protobuf_AssignDescriptorsOnce();
  6907. ::google::protobuf::Metadata metadata;
  6908. metadata.descriptor = packetc2l_use_item_descriptor_;
  6909. metadata.reflection = packetc2l_use_item_reflection_;
  6910. return metadata;
  6911. }
  6912. // ===================================================================
  6913. #ifndef _MSC_VER
  6914. const int getItemsInfo::kItemidFieldNumber;
  6915. const int getItemsInfo::kItemcountFieldNumber;
  6916. #endif // !_MSC_VER
  6917. getItemsInfo::getItemsInfo()
  6918. : ::google::protobuf::Message() {
  6919. SharedCtor();
  6920. }
  6921. void getItemsInfo::InitAsDefaultInstance() {
  6922. }
  6923. getItemsInfo::getItemsInfo(const getItemsInfo& from)
  6924. : ::google::protobuf::Message() {
  6925. SharedCtor();
  6926. MergeFrom(from);
  6927. }
  6928. void getItemsInfo::SharedCtor() {
  6929. _cached_size_ = 0;
  6930. itemid_ = 0;
  6931. itemcount_ = 0;
  6932. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  6933. }
  6934. getItemsInfo::~getItemsInfo() {
  6935. SharedDtor();
  6936. }
  6937. void getItemsInfo::SharedDtor() {
  6938. if (this != default_instance_) {
  6939. }
  6940. }
  6941. void getItemsInfo::SetCachedSize(int size) const {
  6942. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  6943. _cached_size_ = size;
  6944. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  6945. }
  6946. const ::google::protobuf::Descriptor* getItemsInfo::descriptor() {
  6947. protobuf_AssignDescriptorsOnce();
  6948. return getItemsInfo_descriptor_;
  6949. }
  6950. const getItemsInfo& getItemsInfo::default_instance() {
  6951. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  6952. return *default_instance_;
  6953. }
  6954. getItemsInfo* getItemsInfo::default_instance_ = NULL;
  6955. getItemsInfo* getItemsInfo::New() const {
  6956. return new getItemsInfo;
  6957. }
  6958. void getItemsInfo::Clear() {
  6959. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  6960. itemid_ = 0;
  6961. itemcount_ = 0;
  6962. }
  6963. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  6964. mutable_unknown_fields()->Clear();
  6965. }
  6966. bool getItemsInfo::MergePartialFromCodedStream(
  6967. ::google::protobuf::io::CodedInputStream* input) {
  6968. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  6969. ::google::protobuf::uint32 tag;
  6970. while ((tag = input->ReadTag()) != 0) {
  6971. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  6972. // optional int32 itemid = 8;
  6973. case 8: {
  6974. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6975. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  6976. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  6977. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  6978. input, &itemid_)));
  6979. set_has_itemid();
  6980. } else {
  6981. goto handle_uninterpreted;
  6982. }
  6983. if (input->ExpectTag(72)) goto parse_itemcount;
  6984. break;
  6985. }
  6986. // optional int32 itemcount = 9;
  6987. case 9: {
  6988. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6989. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  6990. parse_itemcount:
  6991. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  6992. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  6993. input, &itemcount_)));
  6994. set_has_itemcount();
  6995. } else {
  6996. goto handle_uninterpreted;
  6997. }
  6998. if (input->ExpectAtEnd()) return true;
  6999. break;
  7000. }
  7001. default: {
  7002. handle_uninterpreted:
  7003. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  7004. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  7005. return true;
  7006. }
  7007. DO_(::google::protobuf::internal::WireFormat::SkipField(
  7008. input, tag, mutable_unknown_fields()));
  7009. break;
  7010. }
  7011. }
  7012. }
  7013. return true;
  7014. #undef DO_
  7015. }
  7016. void getItemsInfo::SerializeWithCachedSizes(
  7017. ::google::protobuf::io::CodedOutputStream* output) const {
  7018. // optional int32 itemid = 8;
  7019. if (has_itemid()) {
  7020. ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->itemid(), output);
  7021. }
  7022. // optional int32 itemcount = 9;
  7023. if (has_itemcount()) {
  7024. ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->itemcount(), output);
  7025. }
  7026. if (!unknown_fields().empty()) {
  7027. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  7028. unknown_fields(), output);
  7029. }
  7030. }
  7031. ::google::protobuf::uint8* getItemsInfo::SerializeWithCachedSizesToArray(
  7032. ::google::protobuf::uint8* target) const {
  7033. // optional int32 itemid = 8;
  7034. if (has_itemid()) {
  7035. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->itemid(), target);
  7036. }
  7037. // optional int32 itemcount = 9;
  7038. if (has_itemcount()) {
  7039. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->itemcount(), target);
  7040. }
  7041. if (!unknown_fields().empty()) {
  7042. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  7043. unknown_fields(), target);
  7044. }
  7045. return target;
  7046. }
  7047. int getItemsInfo::ByteSize() const {
  7048. int total_size = 0;
  7049. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  7050. // optional int32 itemid = 8;
  7051. if (has_itemid()) {
  7052. total_size += 1 +
  7053. ::google::protobuf::internal::WireFormatLite::Int32Size(
  7054. this->itemid());
  7055. }
  7056. // optional int32 itemcount = 9;
  7057. if (has_itemcount()) {
  7058. total_size += 1 +
  7059. ::google::protobuf::internal::WireFormatLite::Int32Size(
  7060. this->itemcount());
  7061. }
  7062. }
  7063. if (!unknown_fields().empty()) {
  7064. total_size +=
  7065. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  7066. unknown_fields());
  7067. }
  7068. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  7069. _cached_size_ = total_size;
  7070. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  7071. return total_size;
  7072. }
  7073. void getItemsInfo::MergeFrom(const ::google::protobuf::Message& from) {
  7074. GOOGLE_CHECK_NE(&from, this);
  7075. const getItemsInfo* source =
  7076. ::google::protobuf::internal::dynamic_cast_if_available<const getItemsInfo*>(
  7077. &from);
  7078. if (source == NULL) {
  7079. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  7080. } else {
  7081. MergeFrom(*source);
  7082. }
  7083. }
  7084. void getItemsInfo::MergeFrom(const getItemsInfo& from) {
  7085. GOOGLE_CHECK_NE(&from, this);
  7086. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  7087. if (from.has_itemid()) {
  7088. set_itemid(from.itemid());
  7089. }
  7090. if (from.has_itemcount()) {
  7091. set_itemcount(from.itemcount());
  7092. }
  7093. }
  7094. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  7095. }
  7096. void getItemsInfo::CopyFrom(const ::google::protobuf::Message& from) {
  7097. if (&from == this) return;
  7098. Clear();
  7099. MergeFrom(from);
  7100. }
  7101. void getItemsInfo::CopyFrom(const getItemsInfo& from) {
  7102. if (&from == this) return;
  7103. Clear();
  7104. MergeFrom(from);
  7105. }
  7106. bool getItemsInfo::IsInitialized() const {
  7107. return true;
  7108. }
  7109. void getItemsInfo::Swap(getItemsInfo* other) {
  7110. if (other != this) {
  7111. std::swap(itemid_, other->itemid_);
  7112. std::swap(itemcount_, other->itemcount_);
  7113. std::swap(_has_bits_[0], other->_has_bits_[0]);
  7114. _unknown_fields_.Swap(&other->_unknown_fields_);
  7115. std::swap(_cached_size_, other->_cached_size_);
  7116. }
  7117. }
  7118. ::google::protobuf::Metadata getItemsInfo::GetMetadata() const {
  7119. protobuf_AssignDescriptorsOnce();
  7120. ::google::protobuf::Metadata metadata;
  7121. metadata.descriptor = getItemsInfo_descriptor_;
  7122. metadata.reflection = getItemsInfo_reflection_;
  7123. return metadata;
  7124. }
  7125. // ===================================================================
  7126. #ifndef _MSC_VER
  7127. const int ItemInfo::kItemIdFieldNumber;
  7128. const int ItemInfo::kCountFieldNumber;
  7129. #endif // !_MSC_VER
  7130. ItemInfo::ItemInfo()
  7131. : ::google::protobuf::Message() {
  7132. SharedCtor();
  7133. }
  7134. void ItemInfo::InitAsDefaultInstance() {
  7135. }
  7136. ItemInfo::ItemInfo(const ItemInfo& from)
  7137. : ::google::protobuf::Message() {
  7138. SharedCtor();
  7139. MergeFrom(from);
  7140. }
  7141. void ItemInfo::SharedCtor() {
  7142. _cached_size_ = 0;
  7143. itemid_ = 0;
  7144. count_ = 0;
  7145. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  7146. }
  7147. ItemInfo::~ItemInfo() {
  7148. SharedDtor();
  7149. }
  7150. void ItemInfo::SharedDtor() {
  7151. if (this != default_instance_) {
  7152. }
  7153. }
  7154. void ItemInfo::SetCachedSize(int size) const {
  7155. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  7156. _cached_size_ = size;
  7157. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  7158. }
  7159. const ::google::protobuf::Descriptor* ItemInfo::descriptor() {
  7160. protobuf_AssignDescriptorsOnce();
  7161. return ItemInfo_descriptor_;
  7162. }
  7163. const ItemInfo& ItemInfo::default_instance() {
  7164. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  7165. return *default_instance_;
  7166. }
  7167. ItemInfo* ItemInfo::default_instance_ = NULL;
  7168. ItemInfo* ItemInfo::New() const {
  7169. return new ItemInfo;
  7170. }
  7171. void ItemInfo::Clear() {
  7172. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  7173. itemid_ = 0;
  7174. count_ = 0;
  7175. }
  7176. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  7177. mutable_unknown_fields()->Clear();
  7178. }
  7179. bool ItemInfo::MergePartialFromCodedStream(
  7180. ::google::protobuf::io::CodedInputStream* input) {
  7181. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  7182. ::google::protobuf::uint32 tag;
  7183. while ((tag = input->ReadTag()) != 0) {
  7184. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  7185. // optional int32 itemId = 1;
  7186. case 1: {
  7187. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  7188. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  7189. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7190. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  7191. input, &itemid_)));
  7192. set_has_itemid();
  7193. } else {
  7194. goto handle_uninterpreted;
  7195. }
  7196. if (input->ExpectTag(16)) goto parse_count;
  7197. break;
  7198. }
  7199. // optional int32 count = 2;
  7200. case 2: {
  7201. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  7202. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  7203. parse_count:
  7204. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7205. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  7206. input, &count_)));
  7207. set_has_count();
  7208. } else {
  7209. goto handle_uninterpreted;
  7210. }
  7211. if (input->ExpectAtEnd()) return true;
  7212. break;
  7213. }
  7214. default: {
  7215. handle_uninterpreted:
  7216. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  7217. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  7218. return true;
  7219. }
  7220. DO_(::google::protobuf::internal::WireFormat::SkipField(
  7221. input, tag, mutable_unknown_fields()));
  7222. break;
  7223. }
  7224. }
  7225. }
  7226. return true;
  7227. #undef DO_
  7228. }
  7229. void ItemInfo::SerializeWithCachedSizes(
  7230. ::google::protobuf::io::CodedOutputStream* output) const {
  7231. // optional int32 itemId = 1;
  7232. if (has_itemid()) {
  7233. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->itemid(), output);
  7234. }
  7235. // optional int32 count = 2;
  7236. if (has_count()) {
  7237. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->count(), output);
  7238. }
  7239. if (!unknown_fields().empty()) {
  7240. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  7241. unknown_fields(), output);
  7242. }
  7243. }
  7244. ::google::protobuf::uint8* ItemInfo::SerializeWithCachedSizesToArray(
  7245. ::google::protobuf::uint8* target) const {
  7246. // optional int32 itemId = 1;
  7247. if (has_itemid()) {
  7248. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->itemid(), target);
  7249. }
  7250. // optional int32 count = 2;
  7251. if (has_count()) {
  7252. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->count(), target);
  7253. }
  7254. if (!unknown_fields().empty()) {
  7255. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  7256. unknown_fields(), target);
  7257. }
  7258. return target;
  7259. }
  7260. int ItemInfo::ByteSize() const {
  7261. int total_size = 0;
  7262. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  7263. // optional int32 itemId = 1;
  7264. if (has_itemid()) {
  7265. total_size += 1 +
  7266. ::google::protobuf::internal::WireFormatLite::Int32Size(
  7267. this->itemid());
  7268. }
  7269. // optional int32 count = 2;
  7270. if (has_count()) {
  7271. total_size += 1 +
  7272. ::google::protobuf::internal::WireFormatLite::Int32Size(
  7273. this->count());
  7274. }
  7275. }
  7276. if (!unknown_fields().empty()) {
  7277. total_size +=
  7278. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  7279. unknown_fields());
  7280. }
  7281. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  7282. _cached_size_ = total_size;
  7283. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  7284. return total_size;
  7285. }
  7286. void ItemInfo::MergeFrom(const ::google::protobuf::Message& from) {
  7287. GOOGLE_CHECK_NE(&from, this);
  7288. const ItemInfo* source =
  7289. ::google::protobuf::internal::dynamic_cast_if_available<const ItemInfo*>(
  7290. &from);
  7291. if (source == NULL) {
  7292. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  7293. } else {
  7294. MergeFrom(*source);
  7295. }
  7296. }
  7297. void ItemInfo::MergeFrom(const ItemInfo& from) {
  7298. GOOGLE_CHECK_NE(&from, this);
  7299. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  7300. if (from.has_itemid()) {
  7301. set_itemid(from.itemid());
  7302. }
  7303. if (from.has_count()) {
  7304. set_count(from.count());
  7305. }
  7306. }
  7307. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  7308. }
  7309. void ItemInfo::CopyFrom(const ::google::protobuf::Message& from) {
  7310. if (&from == this) return;
  7311. Clear();
  7312. MergeFrom(from);
  7313. }
  7314. void ItemInfo::CopyFrom(const ItemInfo& from) {
  7315. if (&from == this) return;
  7316. Clear();
  7317. MergeFrom(from);
  7318. }
  7319. bool ItemInfo::IsInitialized() const {
  7320. return true;
  7321. }
  7322. void ItemInfo::Swap(ItemInfo* other) {
  7323. if (other != this) {
  7324. std::swap(itemid_, other->itemid_);
  7325. std::swap(count_, other->count_);
  7326. std::swap(_has_bits_[0], other->_has_bits_[0]);
  7327. _unknown_fields_.Swap(&other->_unknown_fields_);
  7328. std::swap(_cached_size_, other->_cached_size_);
  7329. }
  7330. }
  7331. ::google::protobuf::Metadata ItemInfo::GetMetadata() const {
  7332. protobuf_AssignDescriptorsOnce();
  7333. ::google::protobuf::Metadata metadata;
  7334. metadata.descriptor = ItemInfo_descriptor_;
  7335. metadata.reflection = ItemInfo_reflection_;
  7336. return metadata;
  7337. }
  7338. // ===================================================================
  7339. #ifndef _MSC_VER
  7340. const int packetl2c_use_item_result::kPacketIdFieldNumber;
  7341. const int packetl2c_use_item_result::kPidFieldNumber;
  7342. const int packetl2c_use_item_result::kItemIdFieldNumber;
  7343. const int packetl2c_use_item_result::kResultFieldNumber;
  7344. const int packetl2c_use_item_result::kItemCountFieldNumber;
  7345. const int packetl2c_use_item_result::kWhereUseFieldNumber;
  7346. const int packetl2c_use_item_result::kScoreFieldNumber;
  7347. const int packetl2c_use_item_result::kItemsFieldNumber;
  7348. #endif // !_MSC_VER
  7349. packetl2c_use_item_result::packetl2c_use_item_result()
  7350. : ::google::protobuf::Message() {
  7351. SharedCtor();
  7352. }
  7353. void packetl2c_use_item_result::InitAsDefaultInstance() {
  7354. }
  7355. packetl2c_use_item_result::packetl2c_use_item_result(const packetl2c_use_item_result& from)
  7356. : ::google::protobuf::Message() {
  7357. SharedCtor();
  7358. MergeFrom(from);
  7359. }
  7360. void packetl2c_use_item_result::SharedCtor() {
  7361. _cached_size_ = 0;
  7362. packet_id_ = 15211;
  7363. pid_ = 0;
  7364. item_id_ = 0;
  7365. result_ = 2;
  7366. item_count_ = 1;
  7367. whereuse_ = 0;
  7368. score_ = 0;
  7369. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  7370. }
  7371. packetl2c_use_item_result::~packetl2c_use_item_result() {
  7372. SharedDtor();
  7373. }
  7374. void packetl2c_use_item_result::SharedDtor() {
  7375. if (this != default_instance_) {
  7376. }
  7377. }
  7378. void packetl2c_use_item_result::SetCachedSize(int size) const {
  7379. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  7380. _cached_size_ = size;
  7381. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  7382. }
  7383. const ::google::protobuf::Descriptor* packetl2c_use_item_result::descriptor() {
  7384. protobuf_AssignDescriptorsOnce();
  7385. return packetl2c_use_item_result_descriptor_;
  7386. }
  7387. const packetl2c_use_item_result& packetl2c_use_item_result::default_instance() {
  7388. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  7389. return *default_instance_;
  7390. }
  7391. packetl2c_use_item_result* packetl2c_use_item_result::default_instance_ = NULL;
  7392. packetl2c_use_item_result* packetl2c_use_item_result::New() const {
  7393. return new packetl2c_use_item_result;
  7394. }
  7395. void packetl2c_use_item_result::Clear() {
  7396. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  7397. packet_id_ = 15211;
  7398. pid_ = 0;
  7399. item_id_ = 0;
  7400. result_ = 2;
  7401. item_count_ = 1;
  7402. whereuse_ = 0;
  7403. score_ = 0;
  7404. }
  7405. items_.Clear();
  7406. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  7407. mutable_unknown_fields()->Clear();
  7408. }
  7409. bool packetl2c_use_item_result::MergePartialFromCodedStream(
  7410. ::google::protobuf::io::CodedInputStream* input) {
  7411. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  7412. ::google::protobuf::uint32 tag;
  7413. while ((tag = input->ReadTag()) != 0) {
  7414. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  7415. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_use_item_result];
  7416. case 1: {
  7417. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  7418. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  7419. int value;
  7420. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7421. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  7422. input, &value)));
  7423. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  7424. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  7425. } else {
  7426. mutable_unknown_fields()->AddVarint(1, value);
  7427. }
  7428. } else {
  7429. goto handle_uninterpreted;
  7430. }
  7431. if (input->ExpectTag(16)) goto parse_pid;
  7432. break;
  7433. }
  7434. // optional int32 pid = 2;
  7435. case 2: {
  7436. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  7437. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  7438. parse_pid:
  7439. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7440. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  7441. input, &pid_)));
  7442. set_has_pid();
  7443. } else {
  7444. goto handle_uninterpreted;
  7445. }
  7446. if (input->ExpectTag(24)) goto parse_item_id;
  7447. break;
  7448. }
  7449. // optional int32 item_id = 3;
  7450. case 3: {
  7451. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  7452. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  7453. parse_item_id:
  7454. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7455. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  7456. input, &item_id_)));
  7457. set_has_item_id();
  7458. } else {
  7459. goto handle_uninterpreted;
  7460. }
  7461. if (input->ExpectTag(32)) goto parse_result;
  7462. break;
  7463. }
  7464. // optional .msg_type_def.e_msg_result_def result = 4 [default = e_rmt_fail];
  7465. case 4: {
  7466. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  7467. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  7468. parse_result:
  7469. int value;
  7470. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7471. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  7472. input, &value)));
  7473. if (::msg_type_def::e_msg_result_def_IsValid(value)) {
  7474. set_result(static_cast< ::msg_type_def::e_msg_result_def >(value));
  7475. } else {
  7476. mutable_unknown_fields()->AddVarint(4, value);
  7477. }
  7478. } else {
  7479. goto handle_uninterpreted;
  7480. }
  7481. if (input->ExpectTag(40)) goto parse_item_count;
  7482. break;
  7483. }
  7484. // optional int32 item_count = 5 [default = 1];
  7485. case 5: {
  7486. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  7487. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  7488. parse_item_count:
  7489. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7490. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  7491. input, &item_count_)));
  7492. set_has_item_count();
  7493. } else {
  7494. goto handle_uninterpreted;
  7495. }
  7496. if (input->ExpectTag(48)) goto parse_whereUse;
  7497. break;
  7498. }
  7499. // optional int32 whereUse = 6;
  7500. case 6: {
  7501. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  7502. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  7503. parse_whereUse:
  7504. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7505. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  7506. input, &whereuse_)));
  7507. set_has_whereuse();
  7508. } else {
  7509. goto handle_uninterpreted;
  7510. }
  7511. if (input->ExpectTag(56)) goto parse_score;
  7512. break;
  7513. }
  7514. // optional int32 score = 7;
  7515. case 7: {
  7516. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  7517. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  7518. parse_score:
  7519. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7520. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  7521. input, &score_)));
  7522. set_has_score();
  7523. } else {
  7524. goto handle_uninterpreted;
  7525. }
  7526. if (input->ExpectTag(66)) goto parse_items;
  7527. break;
  7528. }
  7529. // repeated .fish_protocols.ItemInfo items = 8;
  7530. case 8: {
  7531. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  7532. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  7533. parse_items:
  7534. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  7535. input, add_items()));
  7536. } else {
  7537. goto handle_uninterpreted;
  7538. }
  7539. if (input->ExpectTag(66)) goto parse_items;
  7540. if (input->ExpectAtEnd()) return true;
  7541. break;
  7542. }
  7543. default: {
  7544. handle_uninterpreted:
  7545. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  7546. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  7547. return true;
  7548. }
  7549. DO_(::google::protobuf::internal::WireFormat::SkipField(
  7550. input, tag, mutable_unknown_fields()));
  7551. break;
  7552. }
  7553. }
  7554. }
  7555. return true;
  7556. #undef DO_
  7557. }
  7558. void packetl2c_use_item_result::SerializeWithCachedSizes(
  7559. ::google::protobuf::io::CodedOutputStream* output) const {
  7560. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_use_item_result];
  7561. if (has_packet_id()) {
  7562. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  7563. 1, this->packet_id(), output);
  7564. }
  7565. // optional int32 pid = 2;
  7566. if (has_pid()) {
  7567. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->pid(), output);
  7568. }
  7569. // optional int32 item_id = 3;
  7570. if (has_item_id()) {
  7571. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->item_id(), output);
  7572. }
  7573. // optional .msg_type_def.e_msg_result_def result = 4 [default = e_rmt_fail];
  7574. if (has_result()) {
  7575. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  7576. 4, this->result(), output);
  7577. }
  7578. // optional int32 item_count = 5 [default = 1];
  7579. if (has_item_count()) {
  7580. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->item_count(), output);
  7581. }
  7582. // optional int32 whereUse = 6;
  7583. if (has_whereuse()) {
  7584. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->whereuse(), output);
  7585. }
  7586. // optional int32 score = 7;
  7587. if (has_score()) {
  7588. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->score(), output);
  7589. }
  7590. // repeated .fish_protocols.ItemInfo items = 8;
  7591. for (int i = 0; i < this->items_size(); i++) {
  7592. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7593. 8, this->items(i), output);
  7594. }
  7595. if (!unknown_fields().empty()) {
  7596. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  7597. unknown_fields(), output);
  7598. }
  7599. }
  7600. ::google::protobuf::uint8* packetl2c_use_item_result::SerializeWithCachedSizesToArray(
  7601. ::google::protobuf::uint8* target) const {
  7602. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_use_item_result];
  7603. if (has_packet_id()) {
  7604. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  7605. 1, this->packet_id(), target);
  7606. }
  7607. // optional int32 pid = 2;
  7608. if (has_pid()) {
  7609. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->pid(), target);
  7610. }
  7611. // optional int32 item_id = 3;
  7612. if (has_item_id()) {
  7613. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->item_id(), target);
  7614. }
  7615. // optional .msg_type_def.e_msg_result_def result = 4 [default = e_rmt_fail];
  7616. if (has_result()) {
  7617. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  7618. 4, this->result(), target);
  7619. }
  7620. // optional int32 item_count = 5 [default = 1];
  7621. if (has_item_count()) {
  7622. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->item_count(), target);
  7623. }
  7624. // optional int32 whereUse = 6;
  7625. if (has_whereuse()) {
  7626. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->whereuse(), target);
  7627. }
  7628. // optional int32 score = 7;
  7629. if (has_score()) {
  7630. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->score(), target);
  7631. }
  7632. // repeated .fish_protocols.ItemInfo items = 8;
  7633. for (int i = 0; i < this->items_size(); i++) {
  7634. target = ::google::protobuf::internal::WireFormatLite::
  7635. WriteMessageNoVirtualToArray(
  7636. 8, this->items(i), target);
  7637. }
  7638. if (!unknown_fields().empty()) {
  7639. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  7640. unknown_fields(), target);
  7641. }
  7642. return target;
  7643. }
  7644. int packetl2c_use_item_result::ByteSize() const {
  7645. int total_size = 0;
  7646. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  7647. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_use_item_result];
  7648. if (has_packet_id()) {
  7649. total_size += 1 +
  7650. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  7651. }
  7652. // optional int32 pid = 2;
  7653. if (has_pid()) {
  7654. total_size += 1 +
  7655. ::google::protobuf::internal::WireFormatLite::Int32Size(
  7656. this->pid());
  7657. }
  7658. // optional int32 item_id = 3;
  7659. if (has_item_id()) {
  7660. total_size += 1 +
  7661. ::google::protobuf::internal::WireFormatLite::Int32Size(
  7662. this->item_id());
  7663. }
  7664. // optional .msg_type_def.e_msg_result_def result = 4 [default = e_rmt_fail];
  7665. if (has_result()) {
  7666. total_size += 1 +
  7667. ::google::protobuf::internal::WireFormatLite::EnumSize(this->result());
  7668. }
  7669. // optional int32 item_count = 5 [default = 1];
  7670. if (has_item_count()) {
  7671. total_size += 1 +
  7672. ::google::protobuf::internal::WireFormatLite::Int32Size(
  7673. this->item_count());
  7674. }
  7675. // optional int32 whereUse = 6;
  7676. if (has_whereuse()) {
  7677. total_size += 1 +
  7678. ::google::protobuf::internal::WireFormatLite::Int32Size(
  7679. this->whereuse());
  7680. }
  7681. // optional int32 score = 7;
  7682. if (has_score()) {
  7683. total_size += 1 +
  7684. ::google::protobuf::internal::WireFormatLite::Int32Size(
  7685. this->score());
  7686. }
  7687. }
  7688. // repeated .fish_protocols.ItemInfo items = 8;
  7689. total_size += 1 * this->items_size();
  7690. for (int i = 0; i < this->items_size(); i++) {
  7691. total_size +=
  7692. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  7693. this->items(i));
  7694. }
  7695. if (!unknown_fields().empty()) {
  7696. total_size +=
  7697. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  7698. unknown_fields());
  7699. }
  7700. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  7701. _cached_size_ = total_size;
  7702. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  7703. return total_size;
  7704. }
  7705. void packetl2c_use_item_result::MergeFrom(const ::google::protobuf::Message& from) {
  7706. GOOGLE_CHECK_NE(&from, this);
  7707. const packetl2c_use_item_result* source =
  7708. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_use_item_result*>(
  7709. &from);
  7710. if (source == NULL) {
  7711. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  7712. } else {
  7713. MergeFrom(*source);
  7714. }
  7715. }
  7716. void packetl2c_use_item_result::MergeFrom(const packetl2c_use_item_result& from) {
  7717. GOOGLE_CHECK_NE(&from, this);
  7718. items_.MergeFrom(from.items_);
  7719. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  7720. if (from.has_packet_id()) {
  7721. set_packet_id(from.packet_id());
  7722. }
  7723. if (from.has_pid()) {
  7724. set_pid(from.pid());
  7725. }
  7726. if (from.has_item_id()) {
  7727. set_item_id(from.item_id());
  7728. }
  7729. if (from.has_result()) {
  7730. set_result(from.result());
  7731. }
  7732. if (from.has_item_count()) {
  7733. set_item_count(from.item_count());
  7734. }
  7735. if (from.has_whereuse()) {
  7736. set_whereuse(from.whereuse());
  7737. }
  7738. if (from.has_score()) {
  7739. set_score(from.score());
  7740. }
  7741. }
  7742. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  7743. }
  7744. void packetl2c_use_item_result::CopyFrom(const ::google::protobuf::Message& from) {
  7745. if (&from == this) return;
  7746. Clear();
  7747. MergeFrom(from);
  7748. }
  7749. void packetl2c_use_item_result::CopyFrom(const packetl2c_use_item_result& from) {
  7750. if (&from == this) return;
  7751. Clear();
  7752. MergeFrom(from);
  7753. }
  7754. bool packetl2c_use_item_result::IsInitialized() const {
  7755. return true;
  7756. }
  7757. void packetl2c_use_item_result::Swap(packetl2c_use_item_result* other) {
  7758. if (other != this) {
  7759. std::swap(packet_id_, other->packet_id_);
  7760. std::swap(pid_, other->pid_);
  7761. std::swap(item_id_, other->item_id_);
  7762. std::swap(result_, other->result_);
  7763. std::swap(item_count_, other->item_count_);
  7764. std::swap(whereuse_, other->whereuse_);
  7765. std::swap(score_, other->score_);
  7766. items_.Swap(&other->items_);
  7767. std::swap(_has_bits_[0], other->_has_bits_[0]);
  7768. _unknown_fields_.Swap(&other->_unknown_fields_);
  7769. std::swap(_cached_size_, other->_cached_size_);
  7770. }
  7771. }
  7772. ::google::protobuf::Metadata packetl2c_use_item_result::GetMetadata() const {
  7773. protobuf_AssignDescriptorsOnce();
  7774. ::google::protobuf::Metadata metadata;
  7775. metadata.descriptor = packetl2c_use_item_result_descriptor_;
  7776. metadata.reflection = packetl2c_use_item_result_reflection_;
  7777. return metadata;
  7778. }
  7779. // ===================================================================
  7780. #ifndef _MSC_VER
  7781. const int packetc2l_change_turret::kPacketIdFieldNumber;
  7782. const int packetc2l_change_turret::kTurretIdFieldNumber;
  7783. const int packetc2l_change_turret::kWingIdFieldNumber;
  7784. #endif // !_MSC_VER
  7785. packetc2l_change_turret::packetc2l_change_turret()
  7786. : ::google::protobuf::Message() {
  7787. SharedCtor();
  7788. }
  7789. void packetc2l_change_turret::InitAsDefaultInstance() {
  7790. }
  7791. packetc2l_change_turret::packetc2l_change_turret(const packetc2l_change_turret& from)
  7792. : ::google::protobuf::Message() {
  7793. SharedCtor();
  7794. MergeFrom(from);
  7795. }
  7796. void packetc2l_change_turret::SharedCtor() {
  7797. _cached_size_ = 0;
  7798. packet_id_ = 10214;
  7799. turret_id_ = 0;
  7800. wing_id_ = 0;
  7801. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  7802. }
  7803. packetc2l_change_turret::~packetc2l_change_turret() {
  7804. SharedDtor();
  7805. }
  7806. void packetc2l_change_turret::SharedDtor() {
  7807. if (this != default_instance_) {
  7808. }
  7809. }
  7810. void packetc2l_change_turret::SetCachedSize(int size) const {
  7811. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  7812. _cached_size_ = size;
  7813. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  7814. }
  7815. const ::google::protobuf::Descriptor* packetc2l_change_turret::descriptor() {
  7816. protobuf_AssignDescriptorsOnce();
  7817. return packetc2l_change_turret_descriptor_;
  7818. }
  7819. const packetc2l_change_turret& packetc2l_change_turret::default_instance() {
  7820. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  7821. return *default_instance_;
  7822. }
  7823. packetc2l_change_turret* packetc2l_change_turret::default_instance_ = NULL;
  7824. packetc2l_change_turret* packetc2l_change_turret::New() const {
  7825. return new packetc2l_change_turret;
  7826. }
  7827. void packetc2l_change_turret::Clear() {
  7828. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  7829. packet_id_ = 10214;
  7830. turret_id_ = 0;
  7831. wing_id_ = 0;
  7832. }
  7833. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  7834. mutable_unknown_fields()->Clear();
  7835. }
  7836. bool packetc2l_change_turret::MergePartialFromCodedStream(
  7837. ::google::protobuf::io::CodedInputStream* input) {
  7838. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  7839. ::google::protobuf::uint32 tag;
  7840. while ((tag = input->ReadTag()) != 0) {
  7841. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  7842. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_change_turret];
  7843. case 1: {
  7844. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  7845. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  7846. int value;
  7847. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7848. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  7849. input, &value)));
  7850. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  7851. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  7852. } else {
  7853. mutable_unknown_fields()->AddVarint(1, value);
  7854. }
  7855. } else {
  7856. goto handle_uninterpreted;
  7857. }
  7858. if (input->ExpectTag(16)) goto parse_turret_id;
  7859. break;
  7860. }
  7861. // optional int32 turret_id = 2;
  7862. case 2: {
  7863. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  7864. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  7865. parse_turret_id:
  7866. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7867. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  7868. input, &turret_id_)));
  7869. set_has_turret_id();
  7870. } else {
  7871. goto handle_uninterpreted;
  7872. }
  7873. if (input->ExpectTag(24)) goto parse_wing_id;
  7874. break;
  7875. }
  7876. // optional int32 wing_id = 3;
  7877. case 3: {
  7878. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  7879. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  7880. parse_wing_id:
  7881. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7882. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  7883. input, &wing_id_)));
  7884. set_has_wing_id();
  7885. } else {
  7886. goto handle_uninterpreted;
  7887. }
  7888. if (input->ExpectAtEnd()) return true;
  7889. break;
  7890. }
  7891. default: {
  7892. handle_uninterpreted:
  7893. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  7894. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  7895. return true;
  7896. }
  7897. DO_(::google::protobuf::internal::WireFormat::SkipField(
  7898. input, tag, mutable_unknown_fields()));
  7899. break;
  7900. }
  7901. }
  7902. }
  7903. return true;
  7904. #undef DO_
  7905. }
  7906. void packetc2l_change_turret::SerializeWithCachedSizes(
  7907. ::google::protobuf::io::CodedOutputStream* output) const {
  7908. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_change_turret];
  7909. if (has_packet_id()) {
  7910. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  7911. 1, this->packet_id(), output);
  7912. }
  7913. // optional int32 turret_id = 2;
  7914. if (has_turret_id()) {
  7915. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->turret_id(), output);
  7916. }
  7917. // optional int32 wing_id = 3;
  7918. if (has_wing_id()) {
  7919. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->wing_id(), output);
  7920. }
  7921. if (!unknown_fields().empty()) {
  7922. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  7923. unknown_fields(), output);
  7924. }
  7925. }
  7926. ::google::protobuf::uint8* packetc2l_change_turret::SerializeWithCachedSizesToArray(
  7927. ::google::protobuf::uint8* target) const {
  7928. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_change_turret];
  7929. if (has_packet_id()) {
  7930. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  7931. 1, this->packet_id(), target);
  7932. }
  7933. // optional int32 turret_id = 2;
  7934. if (has_turret_id()) {
  7935. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->turret_id(), target);
  7936. }
  7937. // optional int32 wing_id = 3;
  7938. if (has_wing_id()) {
  7939. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->wing_id(), target);
  7940. }
  7941. if (!unknown_fields().empty()) {
  7942. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  7943. unknown_fields(), target);
  7944. }
  7945. return target;
  7946. }
  7947. int packetc2l_change_turret::ByteSize() const {
  7948. int total_size = 0;
  7949. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  7950. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_change_turret];
  7951. if (has_packet_id()) {
  7952. total_size += 1 +
  7953. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  7954. }
  7955. // optional int32 turret_id = 2;
  7956. if (has_turret_id()) {
  7957. total_size += 1 +
  7958. ::google::protobuf::internal::WireFormatLite::Int32Size(
  7959. this->turret_id());
  7960. }
  7961. // optional int32 wing_id = 3;
  7962. if (has_wing_id()) {
  7963. total_size += 1 +
  7964. ::google::protobuf::internal::WireFormatLite::Int32Size(
  7965. this->wing_id());
  7966. }
  7967. }
  7968. if (!unknown_fields().empty()) {
  7969. total_size +=
  7970. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  7971. unknown_fields());
  7972. }
  7973. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  7974. _cached_size_ = total_size;
  7975. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  7976. return total_size;
  7977. }
  7978. void packetc2l_change_turret::MergeFrom(const ::google::protobuf::Message& from) {
  7979. GOOGLE_CHECK_NE(&from, this);
  7980. const packetc2l_change_turret* source =
  7981. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_change_turret*>(
  7982. &from);
  7983. if (source == NULL) {
  7984. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  7985. } else {
  7986. MergeFrom(*source);
  7987. }
  7988. }
  7989. void packetc2l_change_turret::MergeFrom(const packetc2l_change_turret& from) {
  7990. GOOGLE_CHECK_NE(&from, this);
  7991. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  7992. if (from.has_packet_id()) {
  7993. set_packet_id(from.packet_id());
  7994. }
  7995. if (from.has_turret_id()) {
  7996. set_turret_id(from.turret_id());
  7997. }
  7998. if (from.has_wing_id()) {
  7999. set_wing_id(from.wing_id());
  8000. }
  8001. }
  8002. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  8003. }
  8004. void packetc2l_change_turret::CopyFrom(const ::google::protobuf::Message& from) {
  8005. if (&from == this) return;
  8006. Clear();
  8007. MergeFrom(from);
  8008. }
  8009. void packetc2l_change_turret::CopyFrom(const packetc2l_change_turret& from) {
  8010. if (&from == this) return;
  8011. Clear();
  8012. MergeFrom(from);
  8013. }
  8014. bool packetc2l_change_turret::IsInitialized() const {
  8015. return true;
  8016. }
  8017. void packetc2l_change_turret::Swap(packetc2l_change_turret* other) {
  8018. if (other != this) {
  8019. std::swap(packet_id_, other->packet_id_);
  8020. std::swap(turret_id_, other->turret_id_);
  8021. std::swap(wing_id_, other->wing_id_);
  8022. std::swap(_has_bits_[0], other->_has_bits_[0]);
  8023. _unknown_fields_.Swap(&other->_unknown_fields_);
  8024. std::swap(_cached_size_, other->_cached_size_);
  8025. }
  8026. }
  8027. ::google::protobuf::Metadata packetc2l_change_turret::GetMetadata() const {
  8028. protobuf_AssignDescriptorsOnce();
  8029. ::google::protobuf::Metadata metadata;
  8030. metadata.descriptor = packetc2l_change_turret_descriptor_;
  8031. metadata.reflection = packetc2l_change_turret_reflection_;
  8032. return metadata;
  8033. }
  8034. // ===================================================================
  8035. #ifndef _MSC_VER
  8036. const int packetl2c_change_turret_result::kPacketIdFieldNumber;
  8037. const int packetl2c_change_turret_result::kResultFieldNumber;
  8038. const int packetl2c_change_turret_result::kPlayerIdFieldNumber;
  8039. const int packetl2c_change_turret_result::kTurretIdFieldNumber;
  8040. const int packetl2c_change_turret_result::kTurretLvFieldNumber;
  8041. const int packetl2c_change_turret_result::kWingIdFieldNumber;
  8042. const int packetl2c_change_turret_result::kWingLvFieldNumber;
  8043. #endif // !_MSC_VER
  8044. packetl2c_change_turret_result::packetl2c_change_turret_result()
  8045. : ::google::protobuf::Message() {
  8046. SharedCtor();
  8047. }
  8048. void packetl2c_change_turret_result::InitAsDefaultInstance() {
  8049. }
  8050. packetl2c_change_turret_result::packetl2c_change_turret_result(const packetl2c_change_turret_result& from)
  8051. : ::google::protobuf::Message() {
  8052. SharedCtor();
  8053. MergeFrom(from);
  8054. }
  8055. void packetl2c_change_turret_result::SharedCtor() {
  8056. _cached_size_ = 0;
  8057. packet_id_ = 16217;
  8058. result_ = 2;
  8059. player_id_ = 0;
  8060. turret_id_ = 0;
  8061. turret_lv_ = 0;
  8062. wing_id_ = 0;
  8063. wing_lv_ = 0;
  8064. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  8065. }
  8066. packetl2c_change_turret_result::~packetl2c_change_turret_result() {
  8067. SharedDtor();
  8068. }
  8069. void packetl2c_change_turret_result::SharedDtor() {
  8070. if (this != default_instance_) {
  8071. }
  8072. }
  8073. void packetl2c_change_turret_result::SetCachedSize(int size) const {
  8074. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  8075. _cached_size_ = size;
  8076. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  8077. }
  8078. const ::google::protobuf::Descriptor* packetl2c_change_turret_result::descriptor() {
  8079. protobuf_AssignDescriptorsOnce();
  8080. return packetl2c_change_turret_result_descriptor_;
  8081. }
  8082. const packetl2c_change_turret_result& packetl2c_change_turret_result::default_instance() {
  8083. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  8084. return *default_instance_;
  8085. }
  8086. packetl2c_change_turret_result* packetl2c_change_turret_result::default_instance_ = NULL;
  8087. packetl2c_change_turret_result* packetl2c_change_turret_result::New() const {
  8088. return new packetl2c_change_turret_result;
  8089. }
  8090. void packetl2c_change_turret_result::Clear() {
  8091. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  8092. packet_id_ = 16217;
  8093. result_ = 2;
  8094. player_id_ = 0;
  8095. turret_id_ = 0;
  8096. turret_lv_ = 0;
  8097. wing_id_ = 0;
  8098. wing_lv_ = 0;
  8099. }
  8100. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  8101. mutable_unknown_fields()->Clear();
  8102. }
  8103. bool packetl2c_change_turret_result::MergePartialFromCodedStream(
  8104. ::google::protobuf::io::CodedInputStream* input) {
  8105. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  8106. ::google::protobuf::uint32 tag;
  8107. while ((tag = input->ReadTag()) != 0) {
  8108. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  8109. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_change_turret_result];
  8110. case 1: {
  8111. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  8112. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  8113. int value;
  8114. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8115. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  8116. input, &value)));
  8117. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  8118. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  8119. } else {
  8120. mutable_unknown_fields()->AddVarint(1, value);
  8121. }
  8122. } else {
  8123. goto handle_uninterpreted;
  8124. }
  8125. if (input->ExpectTag(16)) goto parse_result;
  8126. break;
  8127. }
  8128. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  8129. case 2: {
  8130. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  8131. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  8132. parse_result:
  8133. int value;
  8134. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8135. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  8136. input, &value)));
  8137. if (::msg_type_def::e_msg_result_def_IsValid(value)) {
  8138. set_result(static_cast< ::msg_type_def::e_msg_result_def >(value));
  8139. } else {
  8140. mutable_unknown_fields()->AddVarint(2, value);
  8141. }
  8142. } else {
  8143. goto handle_uninterpreted;
  8144. }
  8145. if (input->ExpectTag(24)) goto parse_player_id;
  8146. break;
  8147. }
  8148. // optional int32 player_id = 3;
  8149. case 3: {
  8150. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  8151. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  8152. parse_player_id:
  8153. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8154. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  8155. input, &player_id_)));
  8156. set_has_player_id();
  8157. } else {
  8158. goto handle_uninterpreted;
  8159. }
  8160. if (input->ExpectTag(32)) goto parse_turret_id;
  8161. break;
  8162. }
  8163. // optional int32 turret_id = 4;
  8164. case 4: {
  8165. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  8166. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  8167. parse_turret_id:
  8168. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8169. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  8170. input, &turret_id_)));
  8171. set_has_turret_id();
  8172. } else {
  8173. goto handle_uninterpreted;
  8174. }
  8175. if (input->ExpectTag(40)) goto parse_turret_lv;
  8176. break;
  8177. }
  8178. // optional int32 turret_lv = 5;
  8179. case 5: {
  8180. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  8181. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  8182. parse_turret_lv:
  8183. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8184. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  8185. input, &turret_lv_)));
  8186. set_has_turret_lv();
  8187. } else {
  8188. goto handle_uninterpreted;
  8189. }
  8190. if (input->ExpectTag(48)) goto parse_wing_id;
  8191. break;
  8192. }
  8193. // optional int32 wing_id = 6;
  8194. case 6: {
  8195. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  8196. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  8197. parse_wing_id:
  8198. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8199. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  8200. input, &wing_id_)));
  8201. set_has_wing_id();
  8202. } else {
  8203. goto handle_uninterpreted;
  8204. }
  8205. if (input->ExpectTag(56)) goto parse_wing_lv;
  8206. break;
  8207. }
  8208. // optional int32 wing_lv = 7;
  8209. case 7: {
  8210. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  8211. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  8212. parse_wing_lv:
  8213. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8214. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  8215. input, &wing_lv_)));
  8216. set_has_wing_lv();
  8217. } else {
  8218. goto handle_uninterpreted;
  8219. }
  8220. if (input->ExpectAtEnd()) return true;
  8221. break;
  8222. }
  8223. default: {
  8224. handle_uninterpreted:
  8225. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  8226. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  8227. return true;
  8228. }
  8229. DO_(::google::protobuf::internal::WireFormat::SkipField(
  8230. input, tag, mutable_unknown_fields()));
  8231. break;
  8232. }
  8233. }
  8234. }
  8235. return true;
  8236. #undef DO_
  8237. }
  8238. void packetl2c_change_turret_result::SerializeWithCachedSizes(
  8239. ::google::protobuf::io::CodedOutputStream* output) const {
  8240. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_change_turret_result];
  8241. if (has_packet_id()) {
  8242. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  8243. 1, this->packet_id(), output);
  8244. }
  8245. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  8246. if (has_result()) {
  8247. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  8248. 2, this->result(), output);
  8249. }
  8250. // optional int32 player_id = 3;
  8251. if (has_player_id()) {
  8252. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->player_id(), output);
  8253. }
  8254. // optional int32 turret_id = 4;
  8255. if (has_turret_id()) {
  8256. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->turret_id(), output);
  8257. }
  8258. // optional int32 turret_lv = 5;
  8259. if (has_turret_lv()) {
  8260. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->turret_lv(), output);
  8261. }
  8262. // optional int32 wing_id = 6;
  8263. if (has_wing_id()) {
  8264. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->wing_id(), output);
  8265. }
  8266. // optional int32 wing_lv = 7;
  8267. if (has_wing_lv()) {
  8268. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->wing_lv(), output);
  8269. }
  8270. if (!unknown_fields().empty()) {
  8271. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  8272. unknown_fields(), output);
  8273. }
  8274. }
  8275. ::google::protobuf::uint8* packetl2c_change_turret_result::SerializeWithCachedSizesToArray(
  8276. ::google::protobuf::uint8* target) const {
  8277. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_change_turret_result];
  8278. if (has_packet_id()) {
  8279. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  8280. 1, this->packet_id(), target);
  8281. }
  8282. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  8283. if (has_result()) {
  8284. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  8285. 2, this->result(), target);
  8286. }
  8287. // optional int32 player_id = 3;
  8288. if (has_player_id()) {
  8289. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->player_id(), target);
  8290. }
  8291. // optional int32 turret_id = 4;
  8292. if (has_turret_id()) {
  8293. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->turret_id(), target);
  8294. }
  8295. // optional int32 turret_lv = 5;
  8296. if (has_turret_lv()) {
  8297. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->turret_lv(), target);
  8298. }
  8299. // optional int32 wing_id = 6;
  8300. if (has_wing_id()) {
  8301. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->wing_id(), target);
  8302. }
  8303. // optional int32 wing_lv = 7;
  8304. if (has_wing_lv()) {
  8305. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->wing_lv(), target);
  8306. }
  8307. if (!unknown_fields().empty()) {
  8308. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  8309. unknown_fields(), target);
  8310. }
  8311. return target;
  8312. }
  8313. int packetl2c_change_turret_result::ByteSize() const {
  8314. int total_size = 0;
  8315. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  8316. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_change_turret_result];
  8317. if (has_packet_id()) {
  8318. total_size += 1 +
  8319. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  8320. }
  8321. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  8322. if (has_result()) {
  8323. total_size += 1 +
  8324. ::google::protobuf::internal::WireFormatLite::EnumSize(this->result());
  8325. }
  8326. // optional int32 player_id = 3;
  8327. if (has_player_id()) {
  8328. total_size += 1 +
  8329. ::google::protobuf::internal::WireFormatLite::Int32Size(
  8330. this->player_id());
  8331. }
  8332. // optional int32 turret_id = 4;
  8333. if (has_turret_id()) {
  8334. total_size += 1 +
  8335. ::google::protobuf::internal::WireFormatLite::Int32Size(
  8336. this->turret_id());
  8337. }
  8338. // optional int32 turret_lv = 5;
  8339. if (has_turret_lv()) {
  8340. total_size += 1 +
  8341. ::google::protobuf::internal::WireFormatLite::Int32Size(
  8342. this->turret_lv());
  8343. }
  8344. // optional int32 wing_id = 6;
  8345. if (has_wing_id()) {
  8346. total_size += 1 +
  8347. ::google::protobuf::internal::WireFormatLite::Int32Size(
  8348. this->wing_id());
  8349. }
  8350. // optional int32 wing_lv = 7;
  8351. if (has_wing_lv()) {
  8352. total_size += 1 +
  8353. ::google::protobuf::internal::WireFormatLite::Int32Size(
  8354. this->wing_lv());
  8355. }
  8356. }
  8357. if (!unknown_fields().empty()) {
  8358. total_size +=
  8359. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  8360. unknown_fields());
  8361. }
  8362. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  8363. _cached_size_ = total_size;
  8364. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  8365. return total_size;
  8366. }
  8367. void packetl2c_change_turret_result::MergeFrom(const ::google::protobuf::Message& from) {
  8368. GOOGLE_CHECK_NE(&from, this);
  8369. const packetl2c_change_turret_result* source =
  8370. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_change_turret_result*>(
  8371. &from);
  8372. if (source == NULL) {
  8373. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  8374. } else {
  8375. MergeFrom(*source);
  8376. }
  8377. }
  8378. void packetl2c_change_turret_result::MergeFrom(const packetl2c_change_turret_result& from) {
  8379. GOOGLE_CHECK_NE(&from, this);
  8380. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  8381. if (from.has_packet_id()) {
  8382. set_packet_id(from.packet_id());
  8383. }
  8384. if (from.has_result()) {
  8385. set_result(from.result());
  8386. }
  8387. if (from.has_player_id()) {
  8388. set_player_id(from.player_id());
  8389. }
  8390. if (from.has_turret_id()) {
  8391. set_turret_id(from.turret_id());
  8392. }
  8393. if (from.has_turret_lv()) {
  8394. set_turret_lv(from.turret_lv());
  8395. }
  8396. if (from.has_wing_id()) {
  8397. set_wing_id(from.wing_id());
  8398. }
  8399. if (from.has_wing_lv()) {
  8400. set_wing_lv(from.wing_lv());
  8401. }
  8402. }
  8403. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  8404. }
  8405. void packetl2c_change_turret_result::CopyFrom(const ::google::protobuf::Message& from) {
  8406. if (&from == this) return;
  8407. Clear();
  8408. MergeFrom(from);
  8409. }
  8410. void packetl2c_change_turret_result::CopyFrom(const packetl2c_change_turret_result& from) {
  8411. if (&from == this) return;
  8412. Clear();
  8413. MergeFrom(from);
  8414. }
  8415. bool packetl2c_change_turret_result::IsInitialized() const {
  8416. return true;
  8417. }
  8418. void packetl2c_change_turret_result::Swap(packetl2c_change_turret_result* other) {
  8419. if (other != this) {
  8420. std::swap(packet_id_, other->packet_id_);
  8421. std::swap(result_, other->result_);
  8422. std::swap(player_id_, other->player_id_);
  8423. std::swap(turret_id_, other->turret_id_);
  8424. std::swap(turret_lv_, other->turret_lv_);
  8425. std::swap(wing_id_, other->wing_id_);
  8426. std::swap(wing_lv_, other->wing_lv_);
  8427. std::swap(_has_bits_[0], other->_has_bits_[0]);
  8428. _unknown_fields_.Swap(&other->_unknown_fields_);
  8429. std::swap(_cached_size_, other->_cached_size_);
  8430. }
  8431. }
  8432. ::google::protobuf::Metadata packetl2c_change_turret_result::GetMetadata() const {
  8433. protobuf_AssignDescriptorsOnce();
  8434. ::google::protobuf::Metadata metadata;
  8435. metadata.descriptor = packetl2c_change_turret_result_descriptor_;
  8436. metadata.reflection = packetl2c_change_turret_result_reflection_;
  8437. return metadata;
  8438. }
  8439. // ===================================================================
  8440. #ifndef _MSC_VER
  8441. const int PointsRankInfo::kRankFieldNumber;
  8442. const int PointsRankInfo::kPlayerIdFieldNumber;
  8443. const int PointsRankInfo::kNickNameFieldNumber;
  8444. const int PointsRankInfo::kPointsFieldNumber;
  8445. const int PointsRankInfo::kSingleMaxFieldNumber;
  8446. const int PointsRankInfo::kViplvFieldNumber;
  8447. const int PointsRankInfo::kHeadidFieldNumber;
  8448. const int PointsRankInfo::kFrameidFieldNumber;
  8449. #endif // !_MSC_VER
  8450. PointsRankInfo::PointsRankInfo()
  8451. : ::google::protobuf::Message() {
  8452. SharedCtor();
  8453. }
  8454. void PointsRankInfo::InitAsDefaultInstance() {
  8455. }
  8456. PointsRankInfo::PointsRankInfo(const PointsRankInfo& from)
  8457. : ::google::protobuf::Message() {
  8458. SharedCtor();
  8459. MergeFrom(from);
  8460. }
  8461. void PointsRankInfo::SharedCtor() {
  8462. _cached_size_ = 0;
  8463. rank_ = 0;
  8464. playerid_ = 0;
  8465. nickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  8466. points_ = GOOGLE_LONGLONG(0);
  8467. singlemax_ = 0;
  8468. viplv_ = 0;
  8469. headid_ = 0;
  8470. frameid_ = 0;
  8471. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  8472. }
  8473. PointsRankInfo::~PointsRankInfo() {
  8474. SharedDtor();
  8475. }
  8476. void PointsRankInfo::SharedDtor() {
  8477. if (nickname_ != &::google::protobuf::internal::kEmptyString) {
  8478. delete nickname_;
  8479. }
  8480. if (this != default_instance_) {
  8481. }
  8482. }
  8483. void PointsRankInfo::SetCachedSize(int size) const {
  8484. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  8485. _cached_size_ = size;
  8486. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  8487. }
  8488. const ::google::protobuf::Descriptor* PointsRankInfo::descriptor() {
  8489. protobuf_AssignDescriptorsOnce();
  8490. return PointsRankInfo_descriptor_;
  8491. }
  8492. const PointsRankInfo& PointsRankInfo::default_instance() {
  8493. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  8494. return *default_instance_;
  8495. }
  8496. PointsRankInfo* PointsRankInfo::default_instance_ = NULL;
  8497. PointsRankInfo* PointsRankInfo::New() const {
  8498. return new PointsRankInfo;
  8499. }
  8500. void PointsRankInfo::Clear() {
  8501. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  8502. rank_ = 0;
  8503. playerid_ = 0;
  8504. if (has_nickname()) {
  8505. if (nickname_ != &::google::protobuf::internal::kEmptyString) {
  8506. nickname_->clear();
  8507. }
  8508. }
  8509. points_ = GOOGLE_LONGLONG(0);
  8510. singlemax_ = 0;
  8511. viplv_ = 0;
  8512. headid_ = 0;
  8513. frameid_ = 0;
  8514. }
  8515. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  8516. mutable_unknown_fields()->Clear();
  8517. }
  8518. bool PointsRankInfo::MergePartialFromCodedStream(
  8519. ::google::protobuf::io::CodedInputStream* input) {
  8520. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  8521. ::google::protobuf::uint32 tag;
  8522. while ((tag = input->ReadTag()) != 0) {
  8523. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  8524. // optional int32 rank = 1;
  8525. case 1: {
  8526. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  8527. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  8528. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8529. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  8530. input, &rank_)));
  8531. set_has_rank();
  8532. } else {
  8533. goto handle_uninterpreted;
  8534. }
  8535. if (input->ExpectTag(16)) goto parse_playerId;
  8536. break;
  8537. }
  8538. // optional int32 playerId = 2;
  8539. case 2: {
  8540. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  8541. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  8542. parse_playerId:
  8543. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8544. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  8545. input, &playerid_)));
  8546. set_has_playerid();
  8547. } else {
  8548. goto handle_uninterpreted;
  8549. }
  8550. if (input->ExpectTag(26)) goto parse_nickName;
  8551. break;
  8552. }
  8553. // optional string nickName = 3;
  8554. case 3: {
  8555. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  8556. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  8557. parse_nickName:
  8558. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  8559. input, this->mutable_nickname()));
  8560. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  8561. this->nickname().data(), this->nickname().length(),
  8562. ::google::protobuf::internal::WireFormat::PARSE);
  8563. } else {
  8564. goto handle_uninterpreted;
  8565. }
  8566. if (input->ExpectTag(32)) goto parse_points;
  8567. break;
  8568. }
  8569. // optional int64 points = 4;
  8570. case 4: {
  8571. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  8572. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  8573. parse_points:
  8574. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8575. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  8576. input, &points_)));
  8577. set_has_points();
  8578. } else {
  8579. goto handle_uninterpreted;
  8580. }
  8581. if (input->ExpectTag(40)) goto parse_singleMax;
  8582. break;
  8583. }
  8584. // optional int32 singleMax = 5;
  8585. case 5: {
  8586. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  8587. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  8588. parse_singleMax:
  8589. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8590. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  8591. input, &singlemax_)));
  8592. set_has_singlemax();
  8593. } else {
  8594. goto handle_uninterpreted;
  8595. }
  8596. if (input->ExpectTag(48)) goto parse_viplv;
  8597. break;
  8598. }
  8599. // optional int32 viplv = 6;
  8600. case 6: {
  8601. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  8602. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  8603. parse_viplv:
  8604. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8605. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  8606. input, &viplv_)));
  8607. set_has_viplv();
  8608. } else {
  8609. goto handle_uninterpreted;
  8610. }
  8611. if (input->ExpectTag(56)) goto parse_headid;
  8612. break;
  8613. }
  8614. // optional int32 headid = 7;
  8615. case 7: {
  8616. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  8617. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  8618. parse_headid:
  8619. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8620. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  8621. input, &headid_)));
  8622. set_has_headid();
  8623. } else {
  8624. goto handle_uninterpreted;
  8625. }
  8626. if (input->ExpectTag(64)) goto parse_frameid;
  8627. break;
  8628. }
  8629. // optional int32 frameid = 8;
  8630. case 8: {
  8631. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  8632. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  8633. parse_frameid:
  8634. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8635. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  8636. input, &frameid_)));
  8637. set_has_frameid();
  8638. } else {
  8639. goto handle_uninterpreted;
  8640. }
  8641. if (input->ExpectAtEnd()) return true;
  8642. break;
  8643. }
  8644. default: {
  8645. handle_uninterpreted:
  8646. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  8647. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  8648. return true;
  8649. }
  8650. DO_(::google::protobuf::internal::WireFormat::SkipField(
  8651. input, tag, mutable_unknown_fields()));
  8652. break;
  8653. }
  8654. }
  8655. }
  8656. return true;
  8657. #undef DO_
  8658. }
  8659. void PointsRankInfo::SerializeWithCachedSizes(
  8660. ::google::protobuf::io::CodedOutputStream* output) const {
  8661. // optional int32 rank = 1;
  8662. if (has_rank()) {
  8663. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->rank(), output);
  8664. }
  8665. // optional int32 playerId = 2;
  8666. if (has_playerid()) {
  8667. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->playerid(), output);
  8668. }
  8669. // optional string nickName = 3;
  8670. if (has_nickname()) {
  8671. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  8672. this->nickname().data(), this->nickname().length(),
  8673. ::google::protobuf::internal::WireFormat::SERIALIZE);
  8674. ::google::protobuf::internal::WireFormatLite::WriteString(
  8675. 3, this->nickname(), output);
  8676. }
  8677. // optional int64 points = 4;
  8678. if (has_points()) {
  8679. ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->points(), output);
  8680. }
  8681. // optional int32 singleMax = 5;
  8682. if (has_singlemax()) {
  8683. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->singlemax(), output);
  8684. }
  8685. // optional int32 viplv = 6;
  8686. if (has_viplv()) {
  8687. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->viplv(), output);
  8688. }
  8689. // optional int32 headid = 7;
  8690. if (has_headid()) {
  8691. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->headid(), output);
  8692. }
  8693. // optional int32 frameid = 8;
  8694. if (has_frameid()) {
  8695. ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->frameid(), output);
  8696. }
  8697. if (!unknown_fields().empty()) {
  8698. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  8699. unknown_fields(), output);
  8700. }
  8701. }
  8702. ::google::protobuf::uint8* PointsRankInfo::SerializeWithCachedSizesToArray(
  8703. ::google::protobuf::uint8* target) const {
  8704. // optional int32 rank = 1;
  8705. if (has_rank()) {
  8706. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->rank(), target);
  8707. }
  8708. // optional int32 playerId = 2;
  8709. if (has_playerid()) {
  8710. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->playerid(), target);
  8711. }
  8712. // optional string nickName = 3;
  8713. if (has_nickname()) {
  8714. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  8715. this->nickname().data(), this->nickname().length(),
  8716. ::google::protobuf::internal::WireFormat::SERIALIZE);
  8717. target =
  8718. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  8719. 3, this->nickname(), target);
  8720. }
  8721. // optional int64 points = 4;
  8722. if (has_points()) {
  8723. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->points(), target);
  8724. }
  8725. // optional int32 singleMax = 5;
  8726. if (has_singlemax()) {
  8727. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->singlemax(), target);
  8728. }
  8729. // optional int32 viplv = 6;
  8730. if (has_viplv()) {
  8731. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->viplv(), target);
  8732. }
  8733. // optional int32 headid = 7;
  8734. if (has_headid()) {
  8735. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->headid(), target);
  8736. }
  8737. // optional int32 frameid = 8;
  8738. if (has_frameid()) {
  8739. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->frameid(), target);
  8740. }
  8741. if (!unknown_fields().empty()) {
  8742. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  8743. unknown_fields(), target);
  8744. }
  8745. return target;
  8746. }
  8747. int PointsRankInfo::ByteSize() const {
  8748. int total_size = 0;
  8749. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  8750. // optional int32 rank = 1;
  8751. if (has_rank()) {
  8752. total_size += 1 +
  8753. ::google::protobuf::internal::WireFormatLite::Int32Size(
  8754. this->rank());
  8755. }
  8756. // optional int32 playerId = 2;
  8757. if (has_playerid()) {
  8758. total_size += 1 +
  8759. ::google::protobuf::internal::WireFormatLite::Int32Size(
  8760. this->playerid());
  8761. }
  8762. // optional string nickName = 3;
  8763. if (has_nickname()) {
  8764. total_size += 1 +
  8765. ::google::protobuf::internal::WireFormatLite::StringSize(
  8766. this->nickname());
  8767. }
  8768. // optional int64 points = 4;
  8769. if (has_points()) {
  8770. total_size += 1 +
  8771. ::google::protobuf::internal::WireFormatLite::Int64Size(
  8772. this->points());
  8773. }
  8774. // optional int32 singleMax = 5;
  8775. if (has_singlemax()) {
  8776. total_size += 1 +
  8777. ::google::protobuf::internal::WireFormatLite::Int32Size(
  8778. this->singlemax());
  8779. }
  8780. // optional int32 viplv = 6;
  8781. if (has_viplv()) {
  8782. total_size += 1 +
  8783. ::google::protobuf::internal::WireFormatLite::Int32Size(
  8784. this->viplv());
  8785. }
  8786. // optional int32 headid = 7;
  8787. if (has_headid()) {
  8788. total_size += 1 +
  8789. ::google::protobuf::internal::WireFormatLite::Int32Size(
  8790. this->headid());
  8791. }
  8792. // optional int32 frameid = 8;
  8793. if (has_frameid()) {
  8794. total_size += 1 +
  8795. ::google::protobuf::internal::WireFormatLite::Int32Size(
  8796. this->frameid());
  8797. }
  8798. }
  8799. if (!unknown_fields().empty()) {
  8800. total_size +=
  8801. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  8802. unknown_fields());
  8803. }
  8804. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  8805. _cached_size_ = total_size;
  8806. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  8807. return total_size;
  8808. }
  8809. void PointsRankInfo::MergeFrom(const ::google::protobuf::Message& from) {
  8810. GOOGLE_CHECK_NE(&from, this);
  8811. const PointsRankInfo* source =
  8812. ::google::protobuf::internal::dynamic_cast_if_available<const PointsRankInfo*>(
  8813. &from);
  8814. if (source == NULL) {
  8815. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  8816. } else {
  8817. MergeFrom(*source);
  8818. }
  8819. }
  8820. void PointsRankInfo::MergeFrom(const PointsRankInfo& from) {
  8821. GOOGLE_CHECK_NE(&from, this);
  8822. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  8823. if (from.has_rank()) {
  8824. set_rank(from.rank());
  8825. }
  8826. if (from.has_playerid()) {
  8827. set_playerid(from.playerid());
  8828. }
  8829. if (from.has_nickname()) {
  8830. set_nickname(from.nickname());
  8831. }
  8832. if (from.has_points()) {
  8833. set_points(from.points());
  8834. }
  8835. if (from.has_singlemax()) {
  8836. set_singlemax(from.singlemax());
  8837. }
  8838. if (from.has_viplv()) {
  8839. set_viplv(from.viplv());
  8840. }
  8841. if (from.has_headid()) {
  8842. set_headid(from.headid());
  8843. }
  8844. if (from.has_frameid()) {
  8845. set_frameid(from.frameid());
  8846. }
  8847. }
  8848. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  8849. }
  8850. void PointsRankInfo::CopyFrom(const ::google::protobuf::Message& from) {
  8851. if (&from == this) return;
  8852. Clear();
  8853. MergeFrom(from);
  8854. }
  8855. void PointsRankInfo::CopyFrom(const PointsRankInfo& from) {
  8856. if (&from == this) return;
  8857. Clear();
  8858. MergeFrom(from);
  8859. }
  8860. bool PointsRankInfo::IsInitialized() const {
  8861. return true;
  8862. }
  8863. void PointsRankInfo::Swap(PointsRankInfo* other) {
  8864. if (other != this) {
  8865. std::swap(rank_, other->rank_);
  8866. std::swap(playerid_, other->playerid_);
  8867. std::swap(nickname_, other->nickname_);
  8868. std::swap(points_, other->points_);
  8869. std::swap(singlemax_, other->singlemax_);
  8870. std::swap(viplv_, other->viplv_);
  8871. std::swap(headid_, other->headid_);
  8872. std::swap(frameid_, other->frameid_);
  8873. std::swap(_has_bits_[0], other->_has_bits_[0]);
  8874. _unknown_fields_.Swap(&other->_unknown_fields_);
  8875. std::swap(_cached_size_, other->_cached_size_);
  8876. }
  8877. }
  8878. ::google::protobuf::Metadata PointsRankInfo::GetMetadata() const {
  8879. protobuf_AssignDescriptorsOnce();
  8880. ::google::protobuf::Metadata metadata;
  8881. metadata.descriptor = PointsRankInfo_descriptor_;
  8882. metadata.reflection = PointsRankInfo_reflection_;
  8883. return metadata;
  8884. }
  8885. // ===================================================================
  8886. #ifndef _MSC_VER
  8887. const int packetc2l_get_points_rank::kPacketIdFieldNumber;
  8888. #endif // !_MSC_VER
  8889. packetc2l_get_points_rank::packetc2l_get_points_rank()
  8890. : ::google::protobuf::Message() {
  8891. SharedCtor();
  8892. }
  8893. void packetc2l_get_points_rank::InitAsDefaultInstance() {
  8894. }
  8895. packetc2l_get_points_rank::packetc2l_get_points_rank(const packetc2l_get_points_rank& from)
  8896. : ::google::protobuf::Message() {
  8897. SharedCtor();
  8898. MergeFrom(from);
  8899. }
  8900. void packetc2l_get_points_rank::SharedCtor() {
  8901. _cached_size_ = 0;
  8902. packet_id_ = 10160;
  8903. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  8904. }
  8905. packetc2l_get_points_rank::~packetc2l_get_points_rank() {
  8906. SharedDtor();
  8907. }
  8908. void packetc2l_get_points_rank::SharedDtor() {
  8909. if (this != default_instance_) {
  8910. }
  8911. }
  8912. void packetc2l_get_points_rank::SetCachedSize(int size) const {
  8913. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  8914. _cached_size_ = size;
  8915. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  8916. }
  8917. const ::google::protobuf::Descriptor* packetc2l_get_points_rank::descriptor() {
  8918. protobuf_AssignDescriptorsOnce();
  8919. return packetc2l_get_points_rank_descriptor_;
  8920. }
  8921. const packetc2l_get_points_rank& packetc2l_get_points_rank::default_instance() {
  8922. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  8923. return *default_instance_;
  8924. }
  8925. packetc2l_get_points_rank* packetc2l_get_points_rank::default_instance_ = NULL;
  8926. packetc2l_get_points_rank* packetc2l_get_points_rank::New() const {
  8927. return new packetc2l_get_points_rank;
  8928. }
  8929. void packetc2l_get_points_rank::Clear() {
  8930. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  8931. packet_id_ = 10160;
  8932. }
  8933. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  8934. mutable_unknown_fields()->Clear();
  8935. }
  8936. bool packetc2l_get_points_rank::MergePartialFromCodedStream(
  8937. ::google::protobuf::io::CodedInputStream* input) {
  8938. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  8939. ::google::protobuf::uint32 tag;
  8940. while ((tag = input->ReadTag()) != 0) {
  8941. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  8942. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_points_rank];
  8943. case 1: {
  8944. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  8945. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  8946. int value;
  8947. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8948. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  8949. input, &value)));
  8950. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  8951. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  8952. } else {
  8953. mutable_unknown_fields()->AddVarint(1, value);
  8954. }
  8955. } else {
  8956. goto handle_uninterpreted;
  8957. }
  8958. if (input->ExpectAtEnd()) return true;
  8959. break;
  8960. }
  8961. default: {
  8962. handle_uninterpreted:
  8963. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  8964. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  8965. return true;
  8966. }
  8967. DO_(::google::protobuf::internal::WireFormat::SkipField(
  8968. input, tag, mutable_unknown_fields()));
  8969. break;
  8970. }
  8971. }
  8972. }
  8973. return true;
  8974. #undef DO_
  8975. }
  8976. void packetc2l_get_points_rank::SerializeWithCachedSizes(
  8977. ::google::protobuf::io::CodedOutputStream* output) const {
  8978. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_points_rank];
  8979. if (has_packet_id()) {
  8980. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  8981. 1, this->packet_id(), output);
  8982. }
  8983. if (!unknown_fields().empty()) {
  8984. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  8985. unknown_fields(), output);
  8986. }
  8987. }
  8988. ::google::protobuf::uint8* packetc2l_get_points_rank::SerializeWithCachedSizesToArray(
  8989. ::google::protobuf::uint8* target) const {
  8990. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_points_rank];
  8991. if (has_packet_id()) {
  8992. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  8993. 1, this->packet_id(), target);
  8994. }
  8995. if (!unknown_fields().empty()) {
  8996. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  8997. unknown_fields(), target);
  8998. }
  8999. return target;
  9000. }
  9001. int packetc2l_get_points_rank::ByteSize() const {
  9002. int total_size = 0;
  9003. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  9004. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_points_rank];
  9005. if (has_packet_id()) {
  9006. total_size += 1 +
  9007. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  9008. }
  9009. }
  9010. if (!unknown_fields().empty()) {
  9011. total_size +=
  9012. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  9013. unknown_fields());
  9014. }
  9015. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  9016. _cached_size_ = total_size;
  9017. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  9018. return total_size;
  9019. }
  9020. void packetc2l_get_points_rank::MergeFrom(const ::google::protobuf::Message& from) {
  9021. GOOGLE_CHECK_NE(&from, this);
  9022. const packetc2l_get_points_rank* source =
  9023. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_get_points_rank*>(
  9024. &from);
  9025. if (source == NULL) {
  9026. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  9027. } else {
  9028. MergeFrom(*source);
  9029. }
  9030. }
  9031. void packetc2l_get_points_rank::MergeFrom(const packetc2l_get_points_rank& from) {
  9032. GOOGLE_CHECK_NE(&from, this);
  9033. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  9034. if (from.has_packet_id()) {
  9035. set_packet_id(from.packet_id());
  9036. }
  9037. }
  9038. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  9039. }
  9040. void packetc2l_get_points_rank::CopyFrom(const ::google::protobuf::Message& from) {
  9041. if (&from == this) return;
  9042. Clear();
  9043. MergeFrom(from);
  9044. }
  9045. void packetc2l_get_points_rank::CopyFrom(const packetc2l_get_points_rank& from) {
  9046. if (&from == this) return;
  9047. Clear();
  9048. MergeFrom(from);
  9049. }
  9050. bool packetc2l_get_points_rank::IsInitialized() const {
  9051. return true;
  9052. }
  9053. void packetc2l_get_points_rank::Swap(packetc2l_get_points_rank* other) {
  9054. if (other != this) {
  9055. std::swap(packet_id_, other->packet_id_);
  9056. std::swap(_has_bits_[0], other->_has_bits_[0]);
  9057. _unknown_fields_.Swap(&other->_unknown_fields_);
  9058. std::swap(_cached_size_, other->_cached_size_);
  9059. }
  9060. }
  9061. ::google::protobuf::Metadata packetc2l_get_points_rank::GetMetadata() const {
  9062. protobuf_AssignDescriptorsOnce();
  9063. ::google::protobuf::Metadata metadata;
  9064. metadata.descriptor = packetc2l_get_points_rank_descriptor_;
  9065. metadata.reflection = packetc2l_get_points_rank_reflection_;
  9066. return metadata;
  9067. }
  9068. // ===================================================================
  9069. #ifndef _MSC_VER
  9070. const int packetl2c_get_points_rank_result::kPacketIdFieldNumber;
  9071. const int packetl2c_get_points_rank_result::kMypointFieldNumber;
  9072. const int packetl2c_get_points_rank_result::kMysinglepointFieldNumber;
  9073. const int packetl2c_get_points_rank_result::kPointRankListFieldNumber;
  9074. const int packetl2c_get_points_rank_result::kLuckyRankListFieldNumber;
  9075. const int packetl2c_get_points_rank_result::kPointThresholdvalueFieldNumber;
  9076. const int packetl2c_get_points_rank_result::kLuckyThresholdvalueFieldNumber;
  9077. const int packetl2c_get_points_rank_result::kMyPointRankFieldNumber;
  9078. const int packetl2c_get_points_rank_result::kMyLuckyRankFieldNumber;
  9079. #endif // !_MSC_VER
  9080. packetl2c_get_points_rank_result::packetl2c_get_points_rank_result()
  9081. : ::google::protobuf::Message() {
  9082. SharedCtor();
  9083. }
  9084. void packetl2c_get_points_rank_result::InitAsDefaultInstance() {
  9085. }
  9086. packetl2c_get_points_rank_result::packetl2c_get_points_rank_result(const packetl2c_get_points_rank_result& from)
  9087. : ::google::protobuf::Message() {
  9088. SharedCtor();
  9089. MergeFrom(from);
  9090. }
  9091. void packetl2c_get_points_rank_result::SharedCtor() {
  9092. _cached_size_ = 0;
  9093. packet_id_ = 16151;
  9094. mypoint_ = GOOGLE_LONGLONG(0);
  9095. mysinglepoint_ = 0;
  9096. mypointrank_ = GOOGLE_LONGLONG(0);
  9097. myluckyrank_ = GOOGLE_LONGLONG(0);
  9098. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  9099. }
  9100. packetl2c_get_points_rank_result::~packetl2c_get_points_rank_result() {
  9101. SharedDtor();
  9102. }
  9103. void packetl2c_get_points_rank_result::SharedDtor() {
  9104. if (this != default_instance_) {
  9105. }
  9106. }
  9107. void packetl2c_get_points_rank_result::SetCachedSize(int size) const {
  9108. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  9109. _cached_size_ = size;
  9110. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  9111. }
  9112. const ::google::protobuf::Descriptor* packetl2c_get_points_rank_result::descriptor() {
  9113. protobuf_AssignDescriptorsOnce();
  9114. return packetl2c_get_points_rank_result_descriptor_;
  9115. }
  9116. const packetl2c_get_points_rank_result& packetl2c_get_points_rank_result::default_instance() {
  9117. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  9118. return *default_instance_;
  9119. }
  9120. packetl2c_get_points_rank_result* packetl2c_get_points_rank_result::default_instance_ = NULL;
  9121. packetl2c_get_points_rank_result* packetl2c_get_points_rank_result::New() const {
  9122. return new packetl2c_get_points_rank_result;
  9123. }
  9124. void packetl2c_get_points_rank_result::Clear() {
  9125. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  9126. packet_id_ = 16151;
  9127. mypoint_ = GOOGLE_LONGLONG(0);
  9128. mysinglepoint_ = 0;
  9129. mypointrank_ = GOOGLE_LONGLONG(0);
  9130. }
  9131. if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
  9132. myluckyrank_ = GOOGLE_LONGLONG(0);
  9133. }
  9134. pointranklist_.Clear();
  9135. luckyranklist_.Clear();
  9136. pointthresholdvalue_.Clear();
  9137. luckythresholdvalue_.Clear();
  9138. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  9139. mutable_unknown_fields()->Clear();
  9140. }
  9141. bool packetl2c_get_points_rank_result::MergePartialFromCodedStream(
  9142. ::google::protobuf::io::CodedInputStream* input) {
  9143. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  9144. ::google::protobuf::uint32 tag;
  9145. while ((tag = input->ReadTag()) != 0) {
  9146. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  9147. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_points_rank_result];
  9148. case 1: {
  9149. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  9150. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  9151. int value;
  9152. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  9153. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  9154. input, &value)));
  9155. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  9156. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  9157. } else {
  9158. mutable_unknown_fields()->AddVarint(1, value);
  9159. }
  9160. } else {
  9161. goto handle_uninterpreted;
  9162. }
  9163. if (input->ExpectTag(16)) goto parse_mypoint;
  9164. break;
  9165. }
  9166. // optional int64 mypoint = 2;
  9167. case 2: {
  9168. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  9169. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  9170. parse_mypoint:
  9171. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  9172. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  9173. input, &mypoint_)));
  9174. set_has_mypoint();
  9175. } else {
  9176. goto handle_uninterpreted;
  9177. }
  9178. if (input->ExpectTag(24)) goto parse_mysinglepoint;
  9179. break;
  9180. }
  9181. // optional int32 mysinglepoint = 3;
  9182. case 3: {
  9183. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  9184. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  9185. parse_mysinglepoint:
  9186. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  9187. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  9188. input, &mysinglepoint_)));
  9189. set_has_mysinglepoint();
  9190. } else {
  9191. goto handle_uninterpreted;
  9192. }
  9193. if (input->ExpectTag(34)) goto parse_PointRankList;
  9194. break;
  9195. }
  9196. // repeated .fish_protocols.PointsRankInfo PointRankList = 4;
  9197. case 4: {
  9198. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  9199. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  9200. parse_PointRankList:
  9201. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  9202. input, add_pointranklist()));
  9203. } else {
  9204. goto handle_uninterpreted;
  9205. }
  9206. if (input->ExpectTag(34)) goto parse_PointRankList;
  9207. if (input->ExpectTag(42)) goto parse_LuckyRankList;
  9208. break;
  9209. }
  9210. // repeated .fish_protocols.PointsRankInfo LuckyRankList = 5;
  9211. case 5: {
  9212. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  9213. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  9214. parse_LuckyRankList:
  9215. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  9216. input, add_luckyranklist()));
  9217. } else {
  9218. goto handle_uninterpreted;
  9219. }
  9220. if (input->ExpectTag(42)) goto parse_LuckyRankList;
  9221. if (input->ExpectTag(48)) goto parse_PointThresholdvalue;
  9222. break;
  9223. }
  9224. // repeated int32 PointThresholdvalue = 6;
  9225. case 6: {
  9226. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  9227. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  9228. parse_PointThresholdvalue:
  9229. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
  9230. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  9231. 1, 48, input, this->mutable_pointthresholdvalue())));
  9232. } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
  9233. == ::google::protobuf::internal::WireFormatLite::
  9234. WIRETYPE_LENGTH_DELIMITED) {
  9235. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
  9236. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  9237. input, this->mutable_pointthresholdvalue())));
  9238. } else {
  9239. goto handle_uninterpreted;
  9240. }
  9241. if (input->ExpectTag(48)) goto parse_PointThresholdvalue;
  9242. if (input->ExpectTag(56)) goto parse_luckyThresholdvalue;
  9243. break;
  9244. }
  9245. // repeated int32 luckyThresholdvalue = 7;
  9246. case 7: {
  9247. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  9248. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  9249. parse_luckyThresholdvalue:
  9250. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
  9251. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  9252. 1, 56, input, this->mutable_luckythresholdvalue())));
  9253. } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
  9254. == ::google::protobuf::internal::WireFormatLite::
  9255. WIRETYPE_LENGTH_DELIMITED) {
  9256. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
  9257. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  9258. input, this->mutable_luckythresholdvalue())));
  9259. } else {
  9260. goto handle_uninterpreted;
  9261. }
  9262. if (input->ExpectTag(56)) goto parse_luckyThresholdvalue;
  9263. if (input->ExpectTag(64)) goto parse_myPointRank;
  9264. break;
  9265. }
  9266. // optional int64 myPointRank = 8;
  9267. case 8: {
  9268. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  9269. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  9270. parse_myPointRank:
  9271. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  9272. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  9273. input, &mypointrank_)));
  9274. set_has_mypointrank();
  9275. } else {
  9276. goto handle_uninterpreted;
  9277. }
  9278. if (input->ExpectTag(72)) goto parse_myLuckyRank;
  9279. break;
  9280. }
  9281. // optional int64 myLuckyRank = 9;
  9282. case 9: {
  9283. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  9284. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  9285. parse_myLuckyRank:
  9286. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  9287. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  9288. input, &myluckyrank_)));
  9289. set_has_myluckyrank();
  9290. } else {
  9291. goto handle_uninterpreted;
  9292. }
  9293. if (input->ExpectAtEnd()) return true;
  9294. break;
  9295. }
  9296. default: {
  9297. handle_uninterpreted:
  9298. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  9299. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  9300. return true;
  9301. }
  9302. DO_(::google::protobuf::internal::WireFormat::SkipField(
  9303. input, tag, mutable_unknown_fields()));
  9304. break;
  9305. }
  9306. }
  9307. }
  9308. return true;
  9309. #undef DO_
  9310. }
  9311. void packetl2c_get_points_rank_result::SerializeWithCachedSizes(
  9312. ::google::protobuf::io::CodedOutputStream* output) const {
  9313. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_points_rank_result];
  9314. if (has_packet_id()) {
  9315. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  9316. 1, this->packet_id(), output);
  9317. }
  9318. // optional int64 mypoint = 2;
  9319. if (has_mypoint()) {
  9320. ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->mypoint(), output);
  9321. }
  9322. // optional int32 mysinglepoint = 3;
  9323. if (has_mysinglepoint()) {
  9324. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->mysinglepoint(), output);
  9325. }
  9326. // repeated .fish_protocols.PointsRankInfo PointRankList = 4;
  9327. for (int i = 0; i < this->pointranklist_size(); i++) {
  9328. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  9329. 4, this->pointranklist(i), output);
  9330. }
  9331. // repeated .fish_protocols.PointsRankInfo LuckyRankList = 5;
  9332. for (int i = 0; i < this->luckyranklist_size(); i++) {
  9333. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  9334. 5, this->luckyranklist(i), output);
  9335. }
  9336. // repeated int32 PointThresholdvalue = 6;
  9337. for (int i = 0; i < this->pointthresholdvalue_size(); i++) {
  9338. ::google::protobuf::internal::WireFormatLite::WriteInt32(
  9339. 6, this->pointthresholdvalue(i), output);
  9340. }
  9341. // repeated int32 luckyThresholdvalue = 7;
  9342. for (int i = 0; i < this->luckythresholdvalue_size(); i++) {
  9343. ::google::protobuf::internal::WireFormatLite::WriteInt32(
  9344. 7, this->luckythresholdvalue(i), output);
  9345. }
  9346. // optional int64 myPointRank = 8;
  9347. if (has_mypointrank()) {
  9348. ::google::protobuf::internal::WireFormatLite::WriteInt64(8, this->mypointrank(), output);
  9349. }
  9350. // optional int64 myLuckyRank = 9;
  9351. if (has_myluckyrank()) {
  9352. ::google::protobuf::internal::WireFormatLite::WriteInt64(9, this->myluckyrank(), output);
  9353. }
  9354. if (!unknown_fields().empty()) {
  9355. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  9356. unknown_fields(), output);
  9357. }
  9358. }
  9359. ::google::protobuf::uint8* packetl2c_get_points_rank_result::SerializeWithCachedSizesToArray(
  9360. ::google::protobuf::uint8* target) const {
  9361. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_points_rank_result];
  9362. if (has_packet_id()) {
  9363. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  9364. 1, this->packet_id(), target);
  9365. }
  9366. // optional int64 mypoint = 2;
  9367. if (has_mypoint()) {
  9368. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->mypoint(), target);
  9369. }
  9370. // optional int32 mysinglepoint = 3;
  9371. if (has_mysinglepoint()) {
  9372. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->mysinglepoint(), target);
  9373. }
  9374. // repeated .fish_protocols.PointsRankInfo PointRankList = 4;
  9375. for (int i = 0; i < this->pointranklist_size(); i++) {
  9376. target = ::google::protobuf::internal::WireFormatLite::
  9377. WriteMessageNoVirtualToArray(
  9378. 4, this->pointranklist(i), target);
  9379. }
  9380. // repeated .fish_protocols.PointsRankInfo LuckyRankList = 5;
  9381. for (int i = 0; i < this->luckyranklist_size(); i++) {
  9382. target = ::google::protobuf::internal::WireFormatLite::
  9383. WriteMessageNoVirtualToArray(
  9384. 5, this->luckyranklist(i), target);
  9385. }
  9386. // repeated int32 PointThresholdvalue = 6;
  9387. for (int i = 0; i < this->pointthresholdvalue_size(); i++) {
  9388. target = ::google::protobuf::internal::WireFormatLite::
  9389. WriteInt32ToArray(6, this->pointthresholdvalue(i), target);
  9390. }
  9391. // repeated int32 luckyThresholdvalue = 7;
  9392. for (int i = 0; i < this->luckythresholdvalue_size(); i++) {
  9393. target = ::google::protobuf::internal::WireFormatLite::
  9394. WriteInt32ToArray(7, this->luckythresholdvalue(i), target);
  9395. }
  9396. // optional int64 myPointRank = 8;
  9397. if (has_mypointrank()) {
  9398. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(8, this->mypointrank(), target);
  9399. }
  9400. // optional int64 myLuckyRank = 9;
  9401. if (has_myluckyrank()) {
  9402. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(9, this->myluckyrank(), target);
  9403. }
  9404. if (!unknown_fields().empty()) {
  9405. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  9406. unknown_fields(), target);
  9407. }
  9408. return target;
  9409. }
  9410. int packetl2c_get_points_rank_result::ByteSize() const {
  9411. int total_size = 0;
  9412. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  9413. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_points_rank_result];
  9414. if (has_packet_id()) {
  9415. total_size += 1 +
  9416. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  9417. }
  9418. // optional int64 mypoint = 2;
  9419. if (has_mypoint()) {
  9420. total_size += 1 +
  9421. ::google::protobuf::internal::WireFormatLite::Int64Size(
  9422. this->mypoint());
  9423. }
  9424. // optional int32 mysinglepoint = 3;
  9425. if (has_mysinglepoint()) {
  9426. total_size += 1 +
  9427. ::google::protobuf::internal::WireFormatLite::Int32Size(
  9428. this->mysinglepoint());
  9429. }
  9430. // optional int64 myPointRank = 8;
  9431. if (has_mypointrank()) {
  9432. total_size += 1 +
  9433. ::google::protobuf::internal::WireFormatLite::Int64Size(
  9434. this->mypointrank());
  9435. }
  9436. }
  9437. if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
  9438. // optional int64 myLuckyRank = 9;
  9439. if (has_myluckyrank()) {
  9440. total_size += 1 +
  9441. ::google::protobuf::internal::WireFormatLite::Int64Size(
  9442. this->myluckyrank());
  9443. }
  9444. }
  9445. // repeated .fish_protocols.PointsRankInfo PointRankList = 4;
  9446. total_size += 1 * this->pointranklist_size();
  9447. for (int i = 0; i < this->pointranklist_size(); i++) {
  9448. total_size +=
  9449. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  9450. this->pointranklist(i));
  9451. }
  9452. // repeated .fish_protocols.PointsRankInfo LuckyRankList = 5;
  9453. total_size += 1 * this->luckyranklist_size();
  9454. for (int i = 0; i < this->luckyranklist_size(); i++) {
  9455. total_size +=
  9456. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  9457. this->luckyranklist(i));
  9458. }
  9459. // repeated int32 PointThresholdvalue = 6;
  9460. {
  9461. int data_size = 0;
  9462. for (int i = 0; i < this->pointthresholdvalue_size(); i++) {
  9463. data_size += ::google::protobuf::internal::WireFormatLite::
  9464. Int32Size(this->pointthresholdvalue(i));
  9465. }
  9466. total_size += 1 * this->pointthresholdvalue_size() + data_size;
  9467. }
  9468. // repeated int32 luckyThresholdvalue = 7;
  9469. {
  9470. int data_size = 0;
  9471. for (int i = 0; i < this->luckythresholdvalue_size(); i++) {
  9472. data_size += ::google::protobuf::internal::WireFormatLite::
  9473. Int32Size(this->luckythresholdvalue(i));
  9474. }
  9475. total_size += 1 * this->luckythresholdvalue_size() + data_size;
  9476. }
  9477. if (!unknown_fields().empty()) {
  9478. total_size +=
  9479. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  9480. unknown_fields());
  9481. }
  9482. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  9483. _cached_size_ = total_size;
  9484. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  9485. return total_size;
  9486. }
  9487. void packetl2c_get_points_rank_result::MergeFrom(const ::google::protobuf::Message& from) {
  9488. GOOGLE_CHECK_NE(&from, this);
  9489. const packetl2c_get_points_rank_result* source =
  9490. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_get_points_rank_result*>(
  9491. &from);
  9492. if (source == NULL) {
  9493. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  9494. } else {
  9495. MergeFrom(*source);
  9496. }
  9497. }
  9498. void packetl2c_get_points_rank_result::MergeFrom(const packetl2c_get_points_rank_result& from) {
  9499. GOOGLE_CHECK_NE(&from, this);
  9500. pointranklist_.MergeFrom(from.pointranklist_);
  9501. luckyranklist_.MergeFrom(from.luckyranklist_);
  9502. pointthresholdvalue_.MergeFrom(from.pointthresholdvalue_);
  9503. luckythresholdvalue_.MergeFrom(from.luckythresholdvalue_);
  9504. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  9505. if (from.has_packet_id()) {
  9506. set_packet_id(from.packet_id());
  9507. }
  9508. if (from.has_mypoint()) {
  9509. set_mypoint(from.mypoint());
  9510. }
  9511. if (from.has_mysinglepoint()) {
  9512. set_mysinglepoint(from.mysinglepoint());
  9513. }
  9514. if (from.has_mypointrank()) {
  9515. set_mypointrank(from.mypointrank());
  9516. }
  9517. }
  9518. if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
  9519. if (from.has_myluckyrank()) {
  9520. set_myluckyrank(from.myluckyrank());
  9521. }
  9522. }
  9523. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  9524. }
  9525. void packetl2c_get_points_rank_result::CopyFrom(const ::google::protobuf::Message& from) {
  9526. if (&from == this) return;
  9527. Clear();
  9528. MergeFrom(from);
  9529. }
  9530. void packetl2c_get_points_rank_result::CopyFrom(const packetl2c_get_points_rank_result& from) {
  9531. if (&from == this) return;
  9532. Clear();
  9533. MergeFrom(from);
  9534. }
  9535. bool packetl2c_get_points_rank_result::IsInitialized() const {
  9536. return true;
  9537. }
  9538. void packetl2c_get_points_rank_result::Swap(packetl2c_get_points_rank_result* other) {
  9539. if (other != this) {
  9540. std::swap(packet_id_, other->packet_id_);
  9541. std::swap(mypoint_, other->mypoint_);
  9542. std::swap(mysinglepoint_, other->mysinglepoint_);
  9543. pointranklist_.Swap(&other->pointranklist_);
  9544. luckyranklist_.Swap(&other->luckyranklist_);
  9545. pointthresholdvalue_.Swap(&other->pointthresholdvalue_);
  9546. luckythresholdvalue_.Swap(&other->luckythresholdvalue_);
  9547. std::swap(mypointrank_, other->mypointrank_);
  9548. std::swap(myluckyrank_, other->myluckyrank_);
  9549. std::swap(_has_bits_[0], other->_has_bits_[0]);
  9550. _unknown_fields_.Swap(&other->_unknown_fields_);
  9551. std::swap(_cached_size_, other->_cached_size_);
  9552. }
  9553. }
  9554. ::google::protobuf::Metadata packetl2c_get_points_rank_result::GetMetadata() const {
  9555. protobuf_AssignDescriptorsOnce();
  9556. ::google::protobuf::Metadata metadata;
  9557. metadata.descriptor = packetl2c_get_points_rank_result_descriptor_;
  9558. metadata.reflection = packetl2c_get_points_rank_result_reflection_;
  9559. return metadata;
  9560. }
  9561. // ===================================================================
  9562. #ifndef _MSC_VER
  9563. const int exItemInfo::kExItemIdFieldNumber;
  9564. const int exItemInfo::kExItemCountFieldNumber;
  9565. #endif // !_MSC_VER
  9566. exItemInfo::exItemInfo()
  9567. : ::google::protobuf::Message() {
  9568. SharedCtor();
  9569. }
  9570. void exItemInfo::InitAsDefaultInstance() {
  9571. }
  9572. exItemInfo::exItemInfo(const exItemInfo& from)
  9573. : ::google::protobuf::Message() {
  9574. SharedCtor();
  9575. MergeFrom(from);
  9576. }
  9577. void exItemInfo::SharedCtor() {
  9578. _cached_size_ = 0;
  9579. ex_item_id_ = 0;
  9580. ex_item_count_ = 0;
  9581. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  9582. }
  9583. exItemInfo::~exItemInfo() {
  9584. SharedDtor();
  9585. }
  9586. void exItemInfo::SharedDtor() {
  9587. if (this != default_instance_) {
  9588. }
  9589. }
  9590. void exItemInfo::SetCachedSize(int size) const {
  9591. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  9592. _cached_size_ = size;
  9593. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  9594. }
  9595. const ::google::protobuf::Descriptor* exItemInfo::descriptor() {
  9596. protobuf_AssignDescriptorsOnce();
  9597. return exItemInfo_descriptor_;
  9598. }
  9599. const exItemInfo& exItemInfo::default_instance() {
  9600. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  9601. return *default_instance_;
  9602. }
  9603. exItemInfo* exItemInfo::default_instance_ = NULL;
  9604. exItemInfo* exItemInfo::New() const {
  9605. return new exItemInfo;
  9606. }
  9607. void exItemInfo::Clear() {
  9608. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  9609. ex_item_id_ = 0;
  9610. ex_item_count_ = 0;
  9611. }
  9612. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  9613. mutable_unknown_fields()->Clear();
  9614. }
  9615. bool exItemInfo::MergePartialFromCodedStream(
  9616. ::google::protobuf::io::CodedInputStream* input) {
  9617. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  9618. ::google::protobuf::uint32 tag;
  9619. while ((tag = input->ReadTag()) != 0) {
  9620. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  9621. // optional int32 ex_item_id = 1;
  9622. case 1: {
  9623. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  9624. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  9625. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  9626. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  9627. input, &ex_item_id_)));
  9628. set_has_ex_item_id();
  9629. } else {
  9630. goto handle_uninterpreted;
  9631. }
  9632. if (input->ExpectTag(16)) goto parse_ex_item_count;
  9633. break;
  9634. }
  9635. // optional int32 ex_item_count = 2;
  9636. case 2: {
  9637. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  9638. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  9639. parse_ex_item_count:
  9640. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  9641. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  9642. input, &ex_item_count_)));
  9643. set_has_ex_item_count();
  9644. } else {
  9645. goto handle_uninterpreted;
  9646. }
  9647. if (input->ExpectAtEnd()) return true;
  9648. break;
  9649. }
  9650. default: {
  9651. handle_uninterpreted:
  9652. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  9653. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  9654. return true;
  9655. }
  9656. DO_(::google::protobuf::internal::WireFormat::SkipField(
  9657. input, tag, mutable_unknown_fields()));
  9658. break;
  9659. }
  9660. }
  9661. }
  9662. return true;
  9663. #undef DO_
  9664. }
  9665. void exItemInfo::SerializeWithCachedSizes(
  9666. ::google::protobuf::io::CodedOutputStream* output) const {
  9667. // optional int32 ex_item_id = 1;
  9668. if (has_ex_item_id()) {
  9669. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->ex_item_id(), output);
  9670. }
  9671. // optional int32 ex_item_count = 2;
  9672. if (has_ex_item_count()) {
  9673. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->ex_item_count(), output);
  9674. }
  9675. if (!unknown_fields().empty()) {
  9676. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  9677. unknown_fields(), output);
  9678. }
  9679. }
  9680. ::google::protobuf::uint8* exItemInfo::SerializeWithCachedSizesToArray(
  9681. ::google::protobuf::uint8* target) const {
  9682. // optional int32 ex_item_id = 1;
  9683. if (has_ex_item_id()) {
  9684. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->ex_item_id(), target);
  9685. }
  9686. // optional int32 ex_item_count = 2;
  9687. if (has_ex_item_count()) {
  9688. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->ex_item_count(), target);
  9689. }
  9690. if (!unknown_fields().empty()) {
  9691. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  9692. unknown_fields(), target);
  9693. }
  9694. return target;
  9695. }
  9696. int exItemInfo::ByteSize() const {
  9697. int total_size = 0;
  9698. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  9699. // optional int32 ex_item_id = 1;
  9700. if (has_ex_item_id()) {
  9701. total_size += 1 +
  9702. ::google::protobuf::internal::WireFormatLite::Int32Size(
  9703. this->ex_item_id());
  9704. }
  9705. // optional int32 ex_item_count = 2;
  9706. if (has_ex_item_count()) {
  9707. total_size += 1 +
  9708. ::google::protobuf::internal::WireFormatLite::Int32Size(
  9709. this->ex_item_count());
  9710. }
  9711. }
  9712. if (!unknown_fields().empty()) {
  9713. total_size +=
  9714. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  9715. unknown_fields());
  9716. }
  9717. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  9718. _cached_size_ = total_size;
  9719. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  9720. return total_size;
  9721. }
  9722. void exItemInfo::MergeFrom(const ::google::protobuf::Message& from) {
  9723. GOOGLE_CHECK_NE(&from, this);
  9724. const exItemInfo* source =
  9725. ::google::protobuf::internal::dynamic_cast_if_available<const exItemInfo*>(
  9726. &from);
  9727. if (source == NULL) {
  9728. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  9729. } else {
  9730. MergeFrom(*source);
  9731. }
  9732. }
  9733. void exItemInfo::MergeFrom(const exItemInfo& from) {
  9734. GOOGLE_CHECK_NE(&from, this);
  9735. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  9736. if (from.has_ex_item_id()) {
  9737. set_ex_item_id(from.ex_item_id());
  9738. }
  9739. if (from.has_ex_item_count()) {
  9740. set_ex_item_count(from.ex_item_count());
  9741. }
  9742. }
  9743. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  9744. }
  9745. void exItemInfo::CopyFrom(const ::google::protobuf::Message& from) {
  9746. if (&from == this) return;
  9747. Clear();
  9748. MergeFrom(from);
  9749. }
  9750. void exItemInfo::CopyFrom(const exItemInfo& from) {
  9751. if (&from == this) return;
  9752. Clear();
  9753. MergeFrom(from);
  9754. }
  9755. bool exItemInfo::IsInitialized() const {
  9756. return true;
  9757. }
  9758. void exItemInfo::Swap(exItemInfo* other) {
  9759. if (other != this) {
  9760. std::swap(ex_item_id_, other->ex_item_id_);
  9761. std::swap(ex_item_count_, other->ex_item_count_);
  9762. std::swap(_has_bits_[0], other->_has_bits_[0]);
  9763. _unknown_fields_.Swap(&other->_unknown_fields_);
  9764. std::swap(_cached_size_, other->_cached_size_);
  9765. }
  9766. }
  9767. ::google::protobuf::Metadata exItemInfo::GetMetadata() const {
  9768. protobuf_AssignDescriptorsOnce();
  9769. ::google::protobuf::Metadata metadata;
  9770. metadata.descriptor = exItemInfo_descriptor_;
  9771. metadata.reflection = exItemInfo_reflection_;
  9772. return metadata;
  9773. }
  9774. // ===================================================================
  9775. #ifndef _MSC_VER
  9776. const int packetc2l_medium_grade_exchange::kPacketIdFieldNumber;
  9777. const int packetc2l_medium_grade_exchange::kExchangeIdFieldNumber;
  9778. const int packetc2l_medium_grade_exchange::kExRewardIdFieldNumber;
  9779. #endif // !_MSC_VER
  9780. packetc2l_medium_grade_exchange::packetc2l_medium_grade_exchange()
  9781. : ::google::protobuf::Message() {
  9782. SharedCtor();
  9783. }
  9784. void packetc2l_medium_grade_exchange::InitAsDefaultInstance() {
  9785. }
  9786. packetc2l_medium_grade_exchange::packetc2l_medium_grade_exchange(const packetc2l_medium_grade_exchange& from)
  9787. : ::google::protobuf::Message() {
  9788. SharedCtor();
  9789. MergeFrom(from);
  9790. }
  9791. void packetc2l_medium_grade_exchange::SharedCtor() {
  9792. _cached_size_ = 0;
  9793. packet_id_ = 10161;
  9794. exchange_id_ = 0;
  9795. ex_reward_id_ = 0;
  9796. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  9797. }
  9798. packetc2l_medium_grade_exchange::~packetc2l_medium_grade_exchange() {
  9799. SharedDtor();
  9800. }
  9801. void packetc2l_medium_grade_exchange::SharedDtor() {
  9802. if (this != default_instance_) {
  9803. }
  9804. }
  9805. void packetc2l_medium_grade_exchange::SetCachedSize(int size) const {
  9806. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  9807. _cached_size_ = size;
  9808. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  9809. }
  9810. const ::google::protobuf::Descriptor* packetc2l_medium_grade_exchange::descriptor() {
  9811. protobuf_AssignDescriptorsOnce();
  9812. return packetc2l_medium_grade_exchange_descriptor_;
  9813. }
  9814. const packetc2l_medium_grade_exchange& packetc2l_medium_grade_exchange::default_instance() {
  9815. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  9816. return *default_instance_;
  9817. }
  9818. packetc2l_medium_grade_exchange* packetc2l_medium_grade_exchange::default_instance_ = NULL;
  9819. packetc2l_medium_grade_exchange* packetc2l_medium_grade_exchange::New() const {
  9820. return new packetc2l_medium_grade_exchange;
  9821. }
  9822. void packetc2l_medium_grade_exchange::Clear() {
  9823. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  9824. packet_id_ = 10161;
  9825. exchange_id_ = 0;
  9826. ex_reward_id_ = 0;
  9827. }
  9828. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  9829. mutable_unknown_fields()->Clear();
  9830. }
  9831. bool packetc2l_medium_grade_exchange::MergePartialFromCodedStream(
  9832. ::google::protobuf::io::CodedInputStream* input) {
  9833. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  9834. ::google::protobuf::uint32 tag;
  9835. while ((tag = input->ReadTag()) != 0) {
  9836. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  9837. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_medium_grade_exchange];
  9838. case 1: {
  9839. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  9840. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  9841. int value;
  9842. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  9843. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  9844. input, &value)));
  9845. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  9846. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  9847. } else {
  9848. mutable_unknown_fields()->AddVarint(1, value);
  9849. }
  9850. } else {
  9851. goto handle_uninterpreted;
  9852. }
  9853. if (input->ExpectTag(16)) goto parse_exchange_id;
  9854. break;
  9855. }
  9856. // optional int32 exchange_id = 2;
  9857. case 2: {
  9858. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  9859. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  9860. parse_exchange_id:
  9861. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  9862. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  9863. input, &exchange_id_)));
  9864. set_has_exchange_id();
  9865. } else {
  9866. goto handle_uninterpreted;
  9867. }
  9868. if (input->ExpectTag(24)) goto parse_ex_reward_id;
  9869. break;
  9870. }
  9871. // optional int32 ex_reward_id = 3;
  9872. case 3: {
  9873. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  9874. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  9875. parse_ex_reward_id:
  9876. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  9877. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  9878. input, &ex_reward_id_)));
  9879. set_has_ex_reward_id();
  9880. } else {
  9881. goto handle_uninterpreted;
  9882. }
  9883. if (input->ExpectAtEnd()) return true;
  9884. break;
  9885. }
  9886. default: {
  9887. handle_uninterpreted:
  9888. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  9889. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  9890. return true;
  9891. }
  9892. DO_(::google::protobuf::internal::WireFormat::SkipField(
  9893. input, tag, mutable_unknown_fields()));
  9894. break;
  9895. }
  9896. }
  9897. }
  9898. return true;
  9899. #undef DO_
  9900. }
  9901. void packetc2l_medium_grade_exchange::SerializeWithCachedSizes(
  9902. ::google::protobuf::io::CodedOutputStream* output) const {
  9903. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_medium_grade_exchange];
  9904. if (has_packet_id()) {
  9905. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  9906. 1, this->packet_id(), output);
  9907. }
  9908. // optional int32 exchange_id = 2;
  9909. if (has_exchange_id()) {
  9910. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->exchange_id(), output);
  9911. }
  9912. // optional int32 ex_reward_id = 3;
  9913. if (has_ex_reward_id()) {
  9914. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->ex_reward_id(), output);
  9915. }
  9916. if (!unknown_fields().empty()) {
  9917. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  9918. unknown_fields(), output);
  9919. }
  9920. }
  9921. ::google::protobuf::uint8* packetc2l_medium_grade_exchange::SerializeWithCachedSizesToArray(
  9922. ::google::protobuf::uint8* target) const {
  9923. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_medium_grade_exchange];
  9924. if (has_packet_id()) {
  9925. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  9926. 1, this->packet_id(), target);
  9927. }
  9928. // optional int32 exchange_id = 2;
  9929. if (has_exchange_id()) {
  9930. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->exchange_id(), target);
  9931. }
  9932. // optional int32 ex_reward_id = 3;
  9933. if (has_ex_reward_id()) {
  9934. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->ex_reward_id(), target);
  9935. }
  9936. if (!unknown_fields().empty()) {
  9937. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  9938. unknown_fields(), target);
  9939. }
  9940. return target;
  9941. }
  9942. int packetc2l_medium_grade_exchange::ByteSize() const {
  9943. int total_size = 0;
  9944. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  9945. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_medium_grade_exchange];
  9946. if (has_packet_id()) {
  9947. total_size += 1 +
  9948. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  9949. }
  9950. // optional int32 exchange_id = 2;
  9951. if (has_exchange_id()) {
  9952. total_size += 1 +
  9953. ::google::protobuf::internal::WireFormatLite::Int32Size(
  9954. this->exchange_id());
  9955. }
  9956. // optional int32 ex_reward_id = 3;
  9957. if (has_ex_reward_id()) {
  9958. total_size += 1 +
  9959. ::google::protobuf::internal::WireFormatLite::Int32Size(
  9960. this->ex_reward_id());
  9961. }
  9962. }
  9963. if (!unknown_fields().empty()) {
  9964. total_size +=
  9965. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  9966. unknown_fields());
  9967. }
  9968. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  9969. _cached_size_ = total_size;
  9970. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  9971. return total_size;
  9972. }
  9973. void packetc2l_medium_grade_exchange::MergeFrom(const ::google::protobuf::Message& from) {
  9974. GOOGLE_CHECK_NE(&from, this);
  9975. const packetc2l_medium_grade_exchange* source =
  9976. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_medium_grade_exchange*>(
  9977. &from);
  9978. if (source == NULL) {
  9979. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  9980. } else {
  9981. MergeFrom(*source);
  9982. }
  9983. }
  9984. void packetc2l_medium_grade_exchange::MergeFrom(const packetc2l_medium_grade_exchange& from) {
  9985. GOOGLE_CHECK_NE(&from, this);
  9986. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  9987. if (from.has_packet_id()) {
  9988. set_packet_id(from.packet_id());
  9989. }
  9990. if (from.has_exchange_id()) {
  9991. set_exchange_id(from.exchange_id());
  9992. }
  9993. if (from.has_ex_reward_id()) {
  9994. set_ex_reward_id(from.ex_reward_id());
  9995. }
  9996. }
  9997. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  9998. }
  9999. void packetc2l_medium_grade_exchange::CopyFrom(const ::google::protobuf::Message& from) {
  10000. if (&from == this) return;
  10001. Clear();
  10002. MergeFrom(from);
  10003. }
  10004. void packetc2l_medium_grade_exchange::CopyFrom(const packetc2l_medium_grade_exchange& from) {
  10005. if (&from == this) return;
  10006. Clear();
  10007. MergeFrom(from);
  10008. }
  10009. bool packetc2l_medium_grade_exchange::IsInitialized() const {
  10010. return true;
  10011. }
  10012. void packetc2l_medium_grade_exchange::Swap(packetc2l_medium_grade_exchange* other) {
  10013. if (other != this) {
  10014. std::swap(packet_id_, other->packet_id_);
  10015. std::swap(exchange_id_, other->exchange_id_);
  10016. std::swap(ex_reward_id_, other->ex_reward_id_);
  10017. std::swap(_has_bits_[0], other->_has_bits_[0]);
  10018. _unknown_fields_.Swap(&other->_unknown_fields_);
  10019. std::swap(_cached_size_, other->_cached_size_);
  10020. }
  10021. }
  10022. ::google::protobuf::Metadata packetc2l_medium_grade_exchange::GetMetadata() const {
  10023. protobuf_AssignDescriptorsOnce();
  10024. ::google::protobuf::Metadata metadata;
  10025. metadata.descriptor = packetc2l_medium_grade_exchange_descriptor_;
  10026. metadata.reflection = packetc2l_medium_grade_exchange_reflection_;
  10027. return metadata;
  10028. }
  10029. // ===================================================================
  10030. #ifndef _MSC_VER
  10031. const int pointsInfo::kPointsFieldNumber;
  10032. const int pointsInfo::kPointsExFieldNumber;
  10033. #endif // !_MSC_VER
  10034. pointsInfo::pointsInfo()
  10035. : ::google::protobuf::Message() {
  10036. SharedCtor();
  10037. }
  10038. void pointsInfo::InitAsDefaultInstance() {
  10039. }
  10040. pointsInfo::pointsInfo(const pointsInfo& from)
  10041. : ::google::protobuf::Message() {
  10042. SharedCtor();
  10043. MergeFrom(from);
  10044. }
  10045. void pointsInfo::SharedCtor() {
  10046. _cached_size_ = 0;
  10047. points_ = 0;
  10048. pointsex_ = 0;
  10049. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  10050. }
  10051. pointsInfo::~pointsInfo() {
  10052. SharedDtor();
  10053. }
  10054. void pointsInfo::SharedDtor() {
  10055. if (this != default_instance_) {
  10056. }
  10057. }
  10058. void pointsInfo::SetCachedSize(int size) const {
  10059. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  10060. _cached_size_ = size;
  10061. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  10062. }
  10063. const ::google::protobuf::Descriptor* pointsInfo::descriptor() {
  10064. protobuf_AssignDescriptorsOnce();
  10065. return pointsInfo_descriptor_;
  10066. }
  10067. const pointsInfo& pointsInfo::default_instance() {
  10068. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  10069. return *default_instance_;
  10070. }
  10071. pointsInfo* pointsInfo::default_instance_ = NULL;
  10072. pointsInfo* pointsInfo::New() const {
  10073. return new pointsInfo;
  10074. }
  10075. void pointsInfo::Clear() {
  10076. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  10077. points_ = 0;
  10078. pointsex_ = 0;
  10079. }
  10080. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  10081. mutable_unknown_fields()->Clear();
  10082. }
  10083. bool pointsInfo::MergePartialFromCodedStream(
  10084. ::google::protobuf::io::CodedInputStream* input) {
  10085. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  10086. ::google::protobuf::uint32 tag;
  10087. while ((tag = input->ReadTag()) != 0) {
  10088. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  10089. // optional int32 points = 1;
  10090. case 1: {
  10091. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  10092. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  10093. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  10094. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  10095. input, &points_)));
  10096. set_has_points();
  10097. } else {
  10098. goto handle_uninterpreted;
  10099. }
  10100. if (input->ExpectTag(16)) goto parse_pointsEx;
  10101. break;
  10102. }
  10103. // optional int32 pointsEx = 2;
  10104. case 2: {
  10105. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  10106. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  10107. parse_pointsEx:
  10108. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  10109. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  10110. input, &pointsex_)));
  10111. set_has_pointsex();
  10112. } else {
  10113. goto handle_uninterpreted;
  10114. }
  10115. if (input->ExpectAtEnd()) return true;
  10116. break;
  10117. }
  10118. default: {
  10119. handle_uninterpreted:
  10120. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  10121. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  10122. return true;
  10123. }
  10124. DO_(::google::protobuf::internal::WireFormat::SkipField(
  10125. input, tag, mutable_unknown_fields()));
  10126. break;
  10127. }
  10128. }
  10129. }
  10130. return true;
  10131. #undef DO_
  10132. }
  10133. void pointsInfo::SerializeWithCachedSizes(
  10134. ::google::protobuf::io::CodedOutputStream* output) const {
  10135. // optional int32 points = 1;
  10136. if (has_points()) {
  10137. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->points(), output);
  10138. }
  10139. // optional int32 pointsEx = 2;
  10140. if (has_pointsex()) {
  10141. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->pointsex(), output);
  10142. }
  10143. if (!unknown_fields().empty()) {
  10144. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  10145. unknown_fields(), output);
  10146. }
  10147. }
  10148. ::google::protobuf::uint8* pointsInfo::SerializeWithCachedSizesToArray(
  10149. ::google::protobuf::uint8* target) const {
  10150. // optional int32 points = 1;
  10151. if (has_points()) {
  10152. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->points(), target);
  10153. }
  10154. // optional int32 pointsEx = 2;
  10155. if (has_pointsex()) {
  10156. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->pointsex(), target);
  10157. }
  10158. if (!unknown_fields().empty()) {
  10159. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  10160. unknown_fields(), target);
  10161. }
  10162. return target;
  10163. }
  10164. int pointsInfo::ByteSize() const {
  10165. int total_size = 0;
  10166. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  10167. // optional int32 points = 1;
  10168. if (has_points()) {
  10169. total_size += 1 +
  10170. ::google::protobuf::internal::WireFormatLite::Int32Size(
  10171. this->points());
  10172. }
  10173. // optional int32 pointsEx = 2;
  10174. if (has_pointsex()) {
  10175. total_size += 1 +
  10176. ::google::protobuf::internal::WireFormatLite::Int32Size(
  10177. this->pointsex());
  10178. }
  10179. }
  10180. if (!unknown_fields().empty()) {
  10181. total_size +=
  10182. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  10183. unknown_fields());
  10184. }
  10185. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  10186. _cached_size_ = total_size;
  10187. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  10188. return total_size;
  10189. }
  10190. void pointsInfo::MergeFrom(const ::google::protobuf::Message& from) {
  10191. GOOGLE_CHECK_NE(&from, this);
  10192. const pointsInfo* source =
  10193. ::google::protobuf::internal::dynamic_cast_if_available<const pointsInfo*>(
  10194. &from);
  10195. if (source == NULL) {
  10196. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  10197. } else {
  10198. MergeFrom(*source);
  10199. }
  10200. }
  10201. void pointsInfo::MergeFrom(const pointsInfo& from) {
  10202. GOOGLE_CHECK_NE(&from, this);
  10203. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  10204. if (from.has_points()) {
  10205. set_points(from.points());
  10206. }
  10207. if (from.has_pointsex()) {
  10208. set_pointsex(from.pointsex());
  10209. }
  10210. }
  10211. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  10212. }
  10213. void pointsInfo::CopyFrom(const ::google::protobuf::Message& from) {
  10214. if (&from == this) return;
  10215. Clear();
  10216. MergeFrom(from);
  10217. }
  10218. void pointsInfo::CopyFrom(const pointsInfo& from) {
  10219. if (&from == this) return;
  10220. Clear();
  10221. MergeFrom(from);
  10222. }
  10223. bool pointsInfo::IsInitialized() const {
  10224. return true;
  10225. }
  10226. void pointsInfo::Swap(pointsInfo* other) {
  10227. if (other != this) {
  10228. std::swap(points_, other->points_);
  10229. std::swap(pointsex_, other->pointsex_);
  10230. std::swap(_has_bits_[0], other->_has_bits_[0]);
  10231. _unknown_fields_.Swap(&other->_unknown_fields_);
  10232. std::swap(_cached_size_, other->_cached_size_);
  10233. }
  10234. }
  10235. ::google::protobuf::Metadata pointsInfo::GetMetadata() const {
  10236. protobuf_AssignDescriptorsOnce();
  10237. ::google::protobuf::Metadata metadata;
  10238. metadata.descriptor = pointsInfo_descriptor_;
  10239. metadata.reflection = pointsInfo_reflection_;
  10240. return metadata;
  10241. }
  10242. // ===================================================================
  10243. #ifndef _MSC_VER
  10244. const int packetl2c_medium_grade_exchange_result::kPacketIdFieldNumber;
  10245. const int packetl2c_medium_grade_exchange_result::kResultFieldNumber;
  10246. const int packetl2c_medium_grade_exchange_result::kExchangeIdFieldNumber;
  10247. const int packetl2c_medium_grade_exchange_result::kExItemFieldNumber;
  10248. const int packetl2c_medium_grade_exchange_result::kPointsFieldNumber;
  10249. #endif // !_MSC_VER
  10250. packetl2c_medium_grade_exchange_result::packetl2c_medium_grade_exchange_result()
  10251. : ::google::protobuf::Message() {
  10252. SharedCtor();
  10253. }
  10254. void packetl2c_medium_grade_exchange_result::InitAsDefaultInstance() {
  10255. }
  10256. packetl2c_medium_grade_exchange_result::packetl2c_medium_grade_exchange_result(const packetl2c_medium_grade_exchange_result& from)
  10257. : ::google::protobuf::Message() {
  10258. SharedCtor();
  10259. MergeFrom(from);
  10260. }
  10261. void packetl2c_medium_grade_exchange_result::SharedCtor() {
  10262. _cached_size_ = 0;
  10263. packet_id_ = 16152;
  10264. result_ = 2;
  10265. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  10266. }
  10267. packetl2c_medium_grade_exchange_result::~packetl2c_medium_grade_exchange_result() {
  10268. SharedDtor();
  10269. }
  10270. void packetl2c_medium_grade_exchange_result::SharedDtor() {
  10271. if (this != default_instance_) {
  10272. }
  10273. }
  10274. void packetl2c_medium_grade_exchange_result::SetCachedSize(int size) const {
  10275. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  10276. _cached_size_ = size;
  10277. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  10278. }
  10279. const ::google::protobuf::Descriptor* packetl2c_medium_grade_exchange_result::descriptor() {
  10280. protobuf_AssignDescriptorsOnce();
  10281. return packetl2c_medium_grade_exchange_result_descriptor_;
  10282. }
  10283. const packetl2c_medium_grade_exchange_result& packetl2c_medium_grade_exchange_result::default_instance() {
  10284. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  10285. return *default_instance_;
  10286. }
  10287. packetl2c_medium_grade_exchange_result* packetl2c_medium_grade_exchange_result::default_instance_ = NULL;
  10288. packetl2c_medium_grade_exchange_result* packetl2c_medium_grade_exchange_result::New() const {
  10289. return new packetl2c_medium_grade_exchange_result;
  10290. }
  10291. void packetl2c_medium_grade_exchange_result::Clear() {
  10292. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  10293. packet_id_ = 16152;
  10294. result_ = 2;
  10295. }
  10296. exchange_id_.Clear();
  10297. ex_item_.Clear();
  10298. points_.Clear();
  10299. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  10300. mutable_unknown_fields()->Clear();
  10301. }
  10302. bool packetl2c_medium_grade_exchange_result::MergePartialFromCodedStream(
  10303. ::google::protobuf::io::CodedInputStream* input) {
  10304. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  10305. ::google::protobuf::uint32 tag;
  10306. while ((tag = input->ReadTag()) != 0) {
  10307. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  10308. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_medium_grade_exchange_result];
  10309. case 1: {
  10310. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  10311. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  10312. int value;
  10313. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  10314. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  10315. input, &value)));
  10316. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  10317. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  10318. } else {
  10319. mutable_unknown_fields()->AddVarint(1, value);
  10320. }
  10321. } else {
  10322. goto handle_uninterpreted;
  10323. }
  10324. if (input->ExpectTag(16)) goto parse_result;
  10325. break;
  10326. }
  10327. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  10328. case 2: {
  10329. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  10330. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  10331. parse_result:
  10332. int value;
  10333. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  10334. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  10335. input, &value)));
  10336. if (::msg_type_def::e_msg_result_def_IsValid(value)) {
  10337. set_result(static_cast< ::msg_type_def::e_msg_result_def >(value));
  10338. } else {
  10339. mutable_unknown_fields()->AddVarint(2, value);
  10340. }
  10341. } else {
  10342. goto handle_uninterpreted;
  10343. }
  10344. if (input->ExpectTag(24)) goto parse_exchange_id;
  10345. break;
  10346. }
  10347. // repeated int32 exchange_id = 3;
  10348. case 3: {
  10349. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  10350. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  10351. parse_exchange_id:
  10352. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
  10353. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  10354. 1, 24, input, this->mutable_exchange_id())));
  10355. } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
  10356. == ::google::protobuf::internal::WireFormatLite::
  10357. WIRETYPE_LENGTH_DELIMITED) {
  10358. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
  10359. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  10360. input, this->mutable_exchange_id())));
  10361. } else {
  10362. goto handle_uninterpreted;
  10363. }
  10364. if (input->ExpectTag(24)) goto parse_exchange_id;
  10365. if (input->ExpectTag(34)) goto parse_ex_item;
  10366. break;
  10367. }
  10368. // repeated .fish_protocols.exItemInfo ex_item = 4;
  10369. case 4: {
  10370. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  10371. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  10372. parse_ex_item:
  10373. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  10374. input, add_ex_item()));
  10375. } else {
  10376. goto handle_uninterpreted;
  10377. }
  10378. if (input->ExpectTag(34)) goto parse_ex_item;
  10379. if (input->ExpectTag(42)) goto parse_points;
  10380. break;
  10381. }
  10382. // repeated .fish_protocols.pointsInfo points = 5;
  10383. case 5: {
  10384. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  10385. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  10386. parse_points:
  10387. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  10388. input, add_points()));
  10389. } else {
  10390. goto handle_uninterpreted;
  10391. }
  10392. if (input->ExpectTag(42)) goto parse_points;
  10393. if (input->ExpectAtEnd()) return true;
  10394. break;
  10395. }
  10396. default: {
  10397. handle_uninterpreted:
  10398. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  10399. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  10400. return true;
  10401. }
  10402. DO_(::google::protobuf::internal::WireFormat::SkipField(
  10403. input, tag, mutable_unknown_fields()));
  10404. break;
  10405. }
  10406. }
  10407. }
  10408. return true;
  10409. #undef DO_
  10410. }
  10411. void packetl2c_medium_grade_exchange_result::SerializeWithCachedSizes(
  10412. ::google::protobuf::io::CodedOutputStream* output) const {
  10413. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_medium_grade_exchange_result];
  10414. if (has_packet_id()) {
  10415. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  10416. 1, this->packet_id(), output);
  10417. }
  10418. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  10419. if (has_result()) {
  10420. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  10421. 2, this->result(), output);
  10422. }
  10423. // repeated int32 exchange_id = 3;
  10424. for (int i = 0; i < this->exchange_id_size(); i++) {
  10425. ::google::protobuf::internal::WireFormatLite::WriteInt32(
  10426. 3, this->exchange_id(i), output);
  10427. }
  10428. // repeated .fish_protocols.exItemInfo ex_item = 4;
  10429. for (int i = 0; i < this->ex_item_size(); i++) {
  10430. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  10431. 4, this->ex_item(i), output);
  10432. }
  10433. // repeated .fish_protocols.pointsInfo points = 5;
  10434. for (int i = 0; i < this->points_size(); i++) {
  10435. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  10436. 5, this->points(i), output);
  10437. }
  10438. if (!unknown_fields().empty()) {
  10439. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  10440. unknown_fields(), output);
  10441. }
  10442. }
  10443. ::google::protobuf::uint8* packetl2c_medium_grade_exchange_result::SerializeWithCachedSizesToArray(
  10444. ::google::protobuf::uint8* target) const {
  10445. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_medium_grade_exchange_result];
  10446. if (has_packet_id()) {
  10447. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  10448. 1, this->packet_id(), target);
  10449. }
  10450. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  10451. if (has_result()) {
  10452. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  10453. 2, this->result(), target);
  10454. }
  10455. // repeated int32 exchange_id = 3;
  10456. for (int i = 0; i < this->exchange_id_size(); i++) {
  10457. target = ::google::protobuf::internal::WireFormatLite::
  10458. WriteInt32ToArray(3, this->exchange_id(i), target);
  10459. }
  10460. // repeated .fish_protocols.exItemInfo ex_item = 4;
  10461. for (int i = 0; i < this->ex_item_size(); i++) {
  10462. target = ::google::protobuf::internal::WireFormatLite::
  10463. WriteMessageNoVirtualToArray(
  10464. 4, this->ex_item(i), target);
  10465. }
  10466. // repeated .fish_protocols.pointsInfo points = 5;
  10467. for (int i = 0; i < this->points_size(); i++) {
  10468. target = ::google::protobuf::internal::WireFormatLite::
  10469. WriteMessageNoVirtualToArray(
  10470. 5, this->points(i), target);
  10471. }
  10472. if (!unknown_fields().empty()) {
  10473. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  10474. unknown_fields(), target);
  10475. }
  10476. return target;
  10477. }
  10478. int packetl2c_medium_grade_exchange_result::ByteSize() const {
  10479. int total_size = 0;
  10480. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  10481. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_medium_grade_exchange_result];
  10482. if (has_packet_id()) {
  10483. total_size += 1 +
  10484. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  10485. }
  10486. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  10487. if (has_result()) {
  10488. total_size += 1 +
  10489. ::google::protobuf::internal::WireFormatLite::EnumSize(this->result());
  10490. }
  10491. }
  10492. // repeated int32 exchange_id = 3;
  10493. {
  10494. int data_size = 0;
  10495. for (int i = 0; i < this->exchange_id_size(); i++) {
  10496. data_size += ::google::protobuf::internal::WireFormatLite::
  10497. Int32Size(this->exchange_id(i));
  10498. }
  10499. total_size += 1 * this->exchange_id_size() + data_size;
  10500. }
  10501. // repeated .fish_protocols.exItemInfo ex_item = 4;
  10502. total_size += 1 * this->ex_item_size();
  10503. for (int i = 0; i < this->ex_item_size(); i++) {
  10504. total_size +=
  10505. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  10506. this->ex_item(i));
  10507. }
  10508. // repeated .fish_protocols.pointsInfo points = 5;
  10509. total_size += 1 * this->points_size();
  10510. for (int i = 0; i < this->points_size(); i++) {
  10511. total_size +=
  10512. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  10513. this->points(i));
  10514. }
  10515. if (!unknown_fields().empty()) {
  10516. total_size +=
  10517. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  10518. unknown_fields());
  10519. }
  10520. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  10521. _cached_size_ = total_size;
  10522. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  10523. return total_size;
  10524. }
  10525. void packetl2c_medium_grade_exchange_result::MergeFrom(const ::google::protobuf::Message& from) {
  10526. GOOGLE_CHECK_NE(&from, this);
  10527. const packetl2c_medium_grade_exchange_result* source =
  10528. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_medium_grade_exchange_result*>(
  10529. &from);
  10530. if (source == NULL) {
  10531. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  10532. } else {
  10533. MergeFrom(*source);
  10534. }
  10535. }
  10536. void packetl2c_medium_grade_exchange_result::MergeFrom(const packetl2c_medium_grade_exchange_result& from) {
  10537. GOOGLE_CHECK_NE(&from, this);
  10538. exchange_id_.MergeFrom(from.exchange_id_);
  10539. ex_item_.MergeFrom(from.ex_item_);
  10540. points_.MergeFrom(from.points_);
  10541. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  10542. if (from.has_packet_id()) {
  10543. set_packet_id(from.packet_id());
  10544. }
  10545. if (from.has_result()) {
  10546. set_result(from.result());
  10547. }
  10548. }
  10549. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  10550. }
  10551. void packetl2c_medium_grade_exchange_result::CopyFrom(const ::google::protobuf::Message& from) {
  10552. if (&from == this) return;
  10553. Clear();
  10554. MergeFrom(from);
  10555. }
  10556. void packetl2c_medium_grade_exchange_result::CopyFrom(const packetl2c_medium_grade_exchange_result& from) {
  10557. if (&from == this) return;
  10558. Clear();
  10559. MergeFrom(from);
  10560. }
  10561. bool packetl2c_medium_grade_exchange_result::IsInitialized() const {
  10562. return true;
  10563. }
  10564. void packetl2c_medium_grade_exchange_result::Swap(packetl2c_medium_grade_exchange_result* other) {
  10565. if (other != this) {
  10566. std::swap(packet_id_, other->packet_id_);
  10567. std::swap(result_, other->result_);
  10568. exchange_id_.Swap(&other->exchange_id_);
  10569. ex_item_.Swap(&other->ex_item_);
  10570. points_.Swap(&other->points_);
  10571. std::swap(_has_bits_[0], other->_has_bits_[0]);
  10572. _unknown_fields_.Swap(&other->_unknown_fields_);
  10573. std::swap(_cached_size_, other->_cached_size_);
  10574. }
  10575. }
  10576. ::google::protobuf::Metadata packetl2c_medium_grade_exchange_result::GetMetadata() const {
  10577. protobuf_AssignDescriptorsOnce();
  10578. ::google::protobuf::Metadata metadata;
  10579. metadata.descriptor = packetl2c_medium_grade_exchange_result_descriptor_;
  10580. metadata.reflection = packetl2c_medium_grade_exchange_result_reflection_;
  10581. return metadata;
  10582. }
  10583. // ===================================================================
  10584. #ifndef _MSC_VER
  10585. const int packetc2l_get_shoplist::kPacketIdFieldNumber;
  10586. #endif // !_MSC_VER
  10587. packetc2l_get_shoplist::packetc2l_get_shoplist()
  10588. : ::google::protobuf::Message() {
  10589. SharedCtor();
  10590. }
  10591. void packetc2l_get_shoplist::InitAsDefaultInstance() {
  10592. }
  10593. packetc2l_get_shoplist::packetc2l_get_shoplist(const packetc2l_get_shoplist& from)
  10594. : ::google::protobuf::Message() {
  10595. SharedCtor();
  10596. MergeFrom(from);
  10597. }
  10598. void packetc2l_get_shoplist::SharedCtor() {
  10599. _cached_size_ = 0;
  10600. packet_id_ = 10107;
  10601. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  10602. }
  10603. packetc2l_get_shoplist::~packetc2l_get_shoplist() {
  10604. SharedDtor();
  10605. }
  10606. void packetc2l_get_shoplist::SharedDtor() {
  10607. if (this != default_instance_) {
  10608. }
  10609. }
  10610. void packetc2l_get_shoplist::SetCachedSize(int size) const {
  10611. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  10612. _cached_size_ = size;
  10613. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  10614. }
  10615. const ::google::protobuf::Descriptor* packetc2l_get_shoplist::descriptor() {
  10616. protobuf_AssignDescriptorsOnce();
  10617. return packetc2l_get_shoplist_descriptor_;
  10618. }
  10619. const packetc2l_get_shoplist& packetc2l_get_shoplist::default_instance() {
  10620. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  10621. return *default_instance_;
  10622. }
  10623. packetc2l_get_shoplist* packetc2l_get_shoplist::default_instance_ = NULL;
  10624. packetc2l_get_shoplist* packetc2l_get_shoplist::New() const {
  10625. return new packetc2l_get_shoplist;
  10626. }
  10627. void packetc2l_get_shoplist::Clear() {
  10628. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  10629. packet_id_ = 10107;
  10630. }
  10631. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  10632. mutable_unknown_fields()->Clear();
  10633. }
  10634. bool packetc2l_get_shoplist::MergePartialFromCodedStream(
  10635. ::google::protobuf::io::CodedInputStream* input) {
  10636. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  10637. ::google::protobuf::uint32 tag;
  10638. while ((tag = input->ReadTag()) != 0) {
  10639. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  10640. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_shoplist];
  10641. case 1: {
  10642. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  10643. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  10644. int value;
  10645. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  10646. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  10647. input, &value)));
  10648. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  10649. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  10650. } else {
  10651. mutable_unknown_fields()->AddVarint(1, value);
  10652. }
  10653. } else {
  10654. goto handle_uninterpreted;
  10655. }
  10656. if (input->ExpectAtEnd()) return true;
  10657. break;
  10658. }
  10659. default: {
  10660. handle_uninterpreted:
  10661. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  10662. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  10663. return true;
  10664. }
  10665. DO_(::google::protobuf::internal::WireFormat::SkipField(
  10666. input, tag, mutable_unknown_fields()));
  10667. break;
  10668. }
  10669. }
  10670. }
  10671. return true;
  10672. #undef DO_
  10673. }
  10674. void packetc2l_get_shoplist::SerializeWithCachedSizes(
  10675. ::google::protobuf::io::CodedOutputStream* output) const {
  10676. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_shoplist];
  10677. if (has_packet_id()) {
  10678. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  10679. 1, this->packet_id(), output);
  10680. }
  10681. if (!unknown_fields().empty()) {
  10682. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  10683. unknown_fields(), output);
  10684. }
  10685. }
  10686. ::google::protobuf::uint8* packetc2l_get_shoplist::SerializeWithCachedSizesToArray(
  10687. ::google::protobuf::uint8* target) const {
  10688. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_shoplist];
  10689. if (has_packet_id()) {
  10690. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  10691. 1, this->packet_id(), target);
  10692. }
  10693. if (!unknown_fields().empty()) {
  10694. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  10695. unknown_fields(), target);
  10696. }
  10697. return target;
  10698. }
  10699. int packetc2l_get_shoplist::ByteSize() const {
  10700. int total_size = 0;
  10701. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  10702. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_shoplist];
  10703. if (has_packet_id()) {
  10704. total_size += 1 +
  10705. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  10706. }
  10707. }
  10708. if (!unknown_fields().empty()) {
  10709. total_size +=
  10710. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  10711. unknown_fields());
  10712. }
  10713. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  10714. _cached_size_ = total_size;
  10715. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  10716. return total_size;
  10717. }
  10718. void packetc2l_get_shoplist::MergeFrom(const ::google::protobuf::Message& from) {
  10719. GOOGLE_CHECK_NE(&from, this);
  10720. const packetc2l_get_shoplist* source =
  10721. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_get_shoplist*>(
  10722. &from);
  10723. if (source == NULL) {
  10724. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  10725. } else {
  10726. MergeFrom(*source);
  10727. }
  10728. }
  10729. void packetc2l_get_shoplist::MergeFrom(const packetc2l_get_shoplist& from) {
  10730. GOOGLE_CHECK_NE(&from, this);
  10731. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  10732. if (from.has_packet_id()) {
  10733. set_packet_id(from.packet_id());
  10734. }
  10735. }
  10736. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  10737. }
  10738. void packetc2l_get_shoplist::CopyFrom(const ::google::protobuf::Message& from) {
  10739. if (&from == this) return;
  10740. Clear();
  10741. MergeFrom(from);
  10742. }
  10743. void packetc2l_get_shoplist::CopyFrom(const packetc2l_get_shoplist& from) {
  10744. if (&from == this) return;
  10745. Clear();
  10746. MergeFrom(from);
  10747. }
  10748. bool packetc2l_get_shoplist::IsInitialized() const {
  10749. return true;
  10750. }
  10751. void packetc2l_get_shoplist::Swap(packetc2l_get_shoplist* other) {
  10752. if (other != this) {
  10753. std::swap(packet_id_, other->packet_id_);
  10754. std::swap(_has_bits_[0], other->_has_bits_[0]);
  10755. _unknown_fields_.Swap(&other->_unknown_fields_);
  10756. std::swap(_cached_size_, other->_cached_size_);
  10757. }
  10758. }
  10759. ::google::protobuf::Metadata packetc2l_get_shoplist::GetMetadata() const {
  10760. protobuf_AssignDescriptorsOnce();
  10761. ::google::protobuf::Metadata metadata;
  10762. metadata.descriptor = packetc2l_get_shoplist_descriptor_;
  10763. metadata.reflection = packetc2l_get_shoplist_reflection_;
  10764. return metadata;
  10765. }
  10766. // ===================================================================
  10767. #ifndef _MSC_VER
  10768. const int msg_shopitem::kShopIdFieldNumber;
  10769. const int msg_shopitem::kItemIdFieldNumber;
  10770. const int msg_shopitem::kItemCountFieldNumber;
  10771. const int msg_shopitem::kConsumeTypeFieldNumber;
  10772. const int msg_shopitem::kConsumeCountFieldNumber;
  10773. const int msg_shopitem::kShowTypeFieldNumber;
  10774. const int msg_shopitem::kNeedVipFieldNumber;
  10775. const int msg_shopitem::kShowTabFieldNumber;
  10776. #endif // !_MSC_VER
  10777. msg_shopitem::msg_shopitem()
  10778. : ::google::protobuf::Message() {
  10779. SharedCtor();
  10780. }
  10781. void msg_shopitem::InitAsDefaultInstance() {
  10782. }
  10783. msg_shopitem::msg_shopitem(const msg_shopitem& from)
  10784. : ::google::protobuf::Message() {
  10785. SharedCtor();
  10786. MergeFrom(from);
  10787. }
  10788. void msg_shopitem::SharedCtor() {
  10789. _cached_size_ = 0;
  10790. shop_id_ = 0;
  10791. item_id_ = 0;
  10792. item_count_ = 0;
  10793. consume_type_ = 0;
  10794. consume_count_ = 0;
  10795. show_type_ = 0;
  10796. need_vip_ = 0;
  10797. show_tab_ = 0;
  10798. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  10799. }
  10800. msg_shopitem::~msg_shopitem() {
  10801. SharedDtor();
  10802. }
  10803. void msg_shopitem::SharedDtor() {
  10804. if (this != default_instance_) {
  10805. }
  10806. }
  10807. void msg_shopitem::SetCachedSize(int size) const {
  10808. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  10809. _cached_size_ = size;
  10810. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  10811. }
  10812. const ::google::protobuf::Descriptor* msg_shopitem::descriptor() {
  10813. protobuf_AssignDescriptorsOnce();
  10814. return msg_shopitem_descriptor_;
  10815. }
  10816. const msg_shopitem& msg_shopitem::default_instance() {
  10817. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  10818. return *default_instance_;
  10819. }
  10820. msg_shopitem* msg_shopitem::default_instance_ = NULL;
  10821. msg_shopitem* msg_shopitem::New() const {
  10822. return new msg_shopitem;
  10823. }
  10824. void msg_shopitem::Clear() {
  10825. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  10826. shop_id_ = 0;
  10827. item_id_ = 0;
  10828. item_count_ = 0;
  10829. consume_type_ = 0;
  10830. consume_count_ = 0;
  10831. show_type_ = 0;
  10832. need_vip_ = 0;
  10833. show_tab_ = 0;
  10834. }
  10835. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  10836. mutable_unknown_fields()->Clear();
  10837. }
  10838. bool msg_shopitem::MergePartialFromCodedStream(
  10839. ::google::protobuf::io::CodedInputStream* input) {
  10840. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  10841. ::google::protobuf::uint32 tag;
  10842. while ((tag = input->ReadTag()) != 0) {
  10843. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  10844. // optional int32 shop_id = 1;
  10845. case 1: {
  10846. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  10847. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  10848. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  10849. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  10850. input, &shop_id_)));
  10851. set_has_shop_id();
  10852. } else {
  10853. goto handle_uninterpreted;
  10854. }
  10855. if (input->ExpectTag(16)) goto parse_item_id;
  10856. break;
  10857. }
  10858. // optional int32 item_id = 2;
  10859. case 2: {
  10860. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  10861. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  10862. parse_item_id:
  10863. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  10864. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  10865. input, &item_id_)));
  10866. set_has_item_id();
  10867. } else {
  10868. goto handle_uninterpreted;
  10869. }
  10870. if (input->ExpectTag(24)) goto parse_item_count;
  10871. break;
  10872. }
  10873. // optional int32 item_count = 3;
  10874. case 3: {
  10875. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  10876. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  10877. parse_item_count:
  10878. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  10879. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  10880. input, &item_count_)));
  10881. set_has_item_count();
  10882. } else {
  10883. goto handle_uninterpreted;
  10884. }
  10885. if (input->ExpectTag(32)) goto parse_consume_type;
  10886. break;
  10887. }
  10888. // optional int32 consume_type = 4;
  10889. case 4: {
  10890. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  10891. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  10892. parse_consume_type:
  10893. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  10894. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  10895. input, &consume_type_)));
  10896. set_has_consume_type();
  10897. } else {
  10898. goto handle_uninterpreted;
  10899. }
  10900. if (input->ExpectTag(40)) goto parse_consume_count;
  10901. break;
  10902. }
  10903. // optional int32 consume_count = 5;
  10904. case 5: {
  10905. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  10906. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  10907. parse_consume_count:
  10908. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  10909. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  10910. input, &consume_count_)));
  10911. set_has_consume_count();
  10912. } else {
  10913. goto handle_uninterpreted;
  10914. }
  10915. if (input->ExpectTag(48)) goto parse_show_type;
  10916. break;
  10917. }
  10918. // optional int32 show_type = 6;
  10919. case 6: {
  10920. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  10921. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  10922. parse_show_type:
  10923. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  10924. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  10925. input, &show_type_)));
  10926. set_has_show_type();
  10927. } else {
  10928. goto handle_uninterpreted;
  10929. }
  10930. if (input->ExpectTag(56)) goto parse_need_vip;
  10931. break;
  10932. }
  10933. // optional int32 need_vip = 7;
  10934. case 7: {
  10935. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  10936. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  10937. parse_need_vip:
  10938. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  10939. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  10940. input, &need_vip_)));
  10941. set_has_need_vip();
  10942. } else {
  10943. goto handle_uninterpreted;
  10944. }
  10945. if (input->ExpectTag(64)) goto parse_show_tab;
  10946. break;
  10947. }
  10948. // optional int32 show_tab = 8;
  10949. case 8: {
  10950. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  10951. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  10952. parse_show_tab:
  10953. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  10954. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  10955. input, &show_tab_)));
  10956. set_has_show_tab();
  10957. } else {
  10958. goto handle_uninterpreted;
  10959. }
  10960. if (input->ExpectAtEnd()) return true;
  10961. break;
  10962. }
  10963. default: {
  10964. handle_uninterpreted:
  10965. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  10966. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  10967. return true;
  10968. }
  10969. DO_(::google::protobuf::internal::WireFormat::SkipField(
  10970. input, tag, mutable_unknown_fields()));
  10971. break;
  10972. }
  10973. }
  10974. }
  10975. return true;
  10976. #undef DO_
  10977. }
  10978. void msg_shopitem::SerializeWithCachedSizes(
  10979. ::google::protobuf::io::CodedOutputStream* output) const {
  10980. // optional int32 shop_id = 1;
  10981. if (has_shop_id()) {
  10982. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->shop_id(), output);
  10983. }
  10984. // optional int32 item_id = 2;
  10985. if (has_item_id()) {
  10986. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->item_id(), output);
  10987. }
  10988. // optional int32 item_count = 3;
  10989. if (has_item_count()) {
  10990. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->item_count(), output);
  10991. }
  10992. // optional int32 consume_type = 4;
  10993. if (has_consume_type()) {
  10994. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->consume_type(), output);
  10995. }
  10996. // optional int32 consume_count = 5;
  10997. if (has_consume_count()) {
  10998. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->consume_count(), output);
  10999. }
  11000. // optional int32 show_type = 6;
  11001. if (has_show_type()) {
  11002. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->show_type(), output);
  11003. }
  11004. // optional int32 need_vip = 7;
  11005. if (has_need_vip()) {
  11006. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->need_vip(), output);
  11007. }
  11008. // optional int32 show_tab = 8;
  11009. if (has_show_tab()) {
  11010. ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->show_tab(), output);
  11011. }
  11012. if (!unknown_fields().empty()) {
  11013. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  11014. unknown_fields(), output);
  11015. }
  11016. }
  11017. ::google::protobuf::uint8* msg_shopitem::SerializeWithCachedSizesToArray(
  11018. ::google::protobuf::uint8* target) const {
  11019. // optional int32 shop_id = 1;
  11020. if (has_shop_id()) {
  11021. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->shop_id(), target);
  11022. }
  11023. // optional int32 item_id = 2;
  11024. if (has_item_id()) {
  11025. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->item_id(), target);
  11026. }
  11027. // optional int32 item_count = 3;
  11028. if (has_item_count()) {
  11029. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->item_count(), target);
  11030. }
  11031. // optional int32 consume_type = 4;
  11032. if (has_consume_type()) {
  11033. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->consume_type(), target);
  11034. }
  11035. // optional int32 consume_count = 5;
  11036. if (has_consume_count()) {
  11037. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->consume_count(), target);
  11038. }
  11039. // optional int32 show_type = 6;
  11040. if (has_show_type()) {
  11041. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->show_type(), target);
  11042. }
  11043. // optional int32 need_vip = 7;
  11044. if (has_need_vip()) {
  11045. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->need_vip(), target);
  11046. }
  11047. // optional int32 show_tab = 8;
  11048. if (has_show_tab()) {
  11049. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->show_tab(), target);
  11050. }
  11051. if (!unknown_fields().empty()) {
  11052. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  11053. unknown_fields(), target);
  11054. }
  11055. return target;
  11056. }
  11057. int msg_shopitem::ByteSize() const {
  11058. int total_size = 0;
  11059. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  11060. // optional int32 shop_id = 1;
  11061. if (has_shop_id()) {
  11062. total_size += 1 +
  11063. ::google::protobuf::internal::WireFormatLite::Int32Size(
  11064. this->shop_id());
  11065. }
  11066. // optional int32 item_id = 2;
  11067. if (has_item_id()) {
  11068. total_size += 1 +
  11069. ::google::protobuf::internal::WireFormatLite::Int32Size(
  11070. this->item_id());
  11071. }
  11072. // optional int32 item_count = 3;
  11073. if (has_item_count()) {
  11074. total_size += 1 +
  11075. ::google::protobuf::internal::WireFormatLite::Int32Size(
  11076. this->item_count());
  11077. }
  11078. // optional int32 consume_type = 4;
  11079. if (has_consume_type()) {
  11080. total_size += 1 +
  11081. ::google::protobuf::internal::WireFormatLite::Int32Size(
  11082. this->consume_type());
  11083. }
  11084. // optional int32 consume_count = 5;
  11085. if (has_consume_count()) {
  11086. total_size += 1 +
  11087. ::google::protobuf::internal::WireFormatLite::Int32Size(
  11088. this->consume_count());
  11089. }
  11090. // optional int32 show_type = 6;
  11091. if (has_show_type()) {
  11092. total_size += 1 +
  11093. ::google::protobuf::internal::WireFormatLite::Int32Size(
  11094. this->show_type());
  11095. }
  11096. // optional int32 need_vip = 7;
  11097. if (has_need_vip()) {
  11098. total_size += 1 +
  11099. ::google::protobuf::internal::WireFormatLite::Int32Size(
  11100. this->need_vip());
  11101. }
  11102. // optional int32 show_tab = 8;
  11103. if (has_show_tab()) {
  11104. total_size += 1 +
  11105. ::google::protobuf::internal::WireFormatLite::Int32Size(
  11106. this->show_tab());
  11107. }
  11108. }
  11109. if (!unknown_fields().empty()) {
  11110. total_size +=
  11111. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  11112. unknown_fields());
  11113. }
  11114. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  11115. _cached_size_ = total_size;
  11116. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  11117. return total_size;
  11118. }
  11119. void msg_shopitem::MergeFrom(const ::google::protobuf::Message& from) {
  11120. GOOGLE_CHECK_NE(&from, this);
  11121. const msg_shopitem* source =
  11122. ::google::protobuf::internal::dynamic_cast_if_available<const msg_shopitem*>(
  11123. &from);
  11124. if (source == NULL) {
  11125. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  11126. } else {
  11127. MergeFrom(*source);
  11128. }
  11129. }
  11130. void msg_shopitem::MergeFrom(const msg_shopitem& from) {
  11131. GOOGLE_CHECK_NE(&from, this);
  11132. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  11133. if (from.has_shop_id()) {
  11134. set_shop_id(from.shop_id());
  11135. }
  11136. if (from.has_item_id()) {
  11137. set_item_id(from.item_id());
  11138. }
  11139. if (from.has_item_count()) {
  11140. set_item_count(from.item_count());
  11141. }
  11142. if (from.has_consume_type()) {
  11143. set_consume_type(from.consume_type());
  11144. }
  11145. if (from.has_consume_count()) {
  11146. set_consume_count(from.consume_count());
  11147. }
  11148. if (from.has_show_type()) {
  11149. set_show_type(from.show_type());
  11150. }
  11151. if (from.has_need_vip()) {
  11152. set_need_vip(from.need_vip());
  11153. }
  11154. if (from.has_show_tab()) {
  11155. set_show_tab(from.show_tab());
  11156. }
  11157. }
  11158. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  11159. }
  11160. void msg_shopitem::CopyFrom(const ::google::protobuf::Message& from) {
  11161. if (&from == this) return;
  11162. Clear();
  11163. MergeFrom(from);
  11164. }
  11165. void msg_shopitem::CopyFrom(const msg_shopitem& from) {
  11166. if (&from == this) return;
  11167. Clear();
  11168. MergeFrom(from);
  11169. }
  11170. bool msg_shopitem::IsInitialized() const {
  11171. return true;
  11172. }
  11173. void msg_shopitem::Swap(msg_shopitem* other) {
  11174. if (other != this) {
  11175. std::swap(shop_id_, other->shop_id_);
  11176. std::swap(item_id_, other->item_id_);
  11177. std::swap(item_count_, other->item_count_);
  11178. std::swap(consume_type_, other->consume_type_);
  11179. std::swap(consume_count_, other->consume_count_);
  11180. std::swap(show_type_, other->show_type_);
  11181. std::swap(need_vip_, other->need_vip_);
  11182. std::swap(show_tab_, other->show_tab_);
  11183. std::swap(_has_bits_[0], other->_has_bits_[0]);
  11184. _unknown_fields_.Swap(&other->_unknown_fields_);
  11185. std::swap(_cached_size_, other->_cached_size_);
  11186. }
  11187. }
  11188. ::google::protobuf::Metadata msg_shopitem::GetMetadata() const {
  11189. protobuf_AssignDescriptorsOnce();
  11190. ::google::protobuf::Metadata metadata;
  11191. metadata.descriptor = msg_shopitem_descriptor_;
  11192. metadata.reflection = msg_shopitem_reflection_;
  11193. return metadata;
  11194. }
  11195. // ===================================================================
  11196. #ifndef _MSC_VER
  11197. const int packetl2c_get_shoplist_result::kPacketIdFieldNumber;
  11198. const int packetl2c_get_shoplist_result::kShoplistFieldNumber;
  11199. #endif // !_MSC_VER
  11200. packetl2c_get_shoplist_result::packetl2c_get_shoplist_result()
  11201. : ::google::protobuf::Message() {
  11202. SharedCtor();
  11203. }
  11204. void packetl2c_get_shoplist_result::InitAsDefaultInstance() {
  11205. }
  11206. packetl2c_get_shoplist_result::packetl2c_get_shoplist_result(const packetl2c_get_shoplist_result& from)
  11207. : ::google::protobuf::Message() {
  11208. SharedCtor();
  11209. MergeFrom(from);
  11210. }
  11211. void packetl2c_get_shoplist_result::SharedCtor() {
  11212. _cached_size_ = 0;
  11213. packet_id_ = 15212;
  11214. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  11215. }
  11216. packetl2c_get_shoplist_result::~packetl2c_get_shoplist_result() {
  11217. SharedDtor();
  11218. }
  11219. void packetl2c_get_shoplist_result::SharedDtor() {
  11220. if (this != default_instance_) {
  11221. }
  11222. }
  11223. void packetl2c_get_shoplist_result::SetCachedSize(int size) const {
  11224. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  11225. _cached_size_ = size;
  11226. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  11227. }
  11228. const ::google::protobuf::Descriptor* packetl2c_get_shoplist_result::descriptor() {
  11229. protobuf_AssignDescriptorsOnce();
  11230. return packetl2c_get_shoplist_result_descriptor_;
  11231. }
  11232. const packetl2c_get_shoplist_result& packetl2c_get_shoplist_result::default_instance() {
  11233. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  11234. return *default_instance_;
  11235. }
  11236. packetl2c_get_shoplist_result* packetl2c_get_shoplist_result::default_instance_ = NULL;
  11237. packetl2c_get_shoplist_result* packetl2c_get_shoplist_result::New() const {
  11238. return new packetl2c_get_shoplist_result;
  11239. }
  11240. void packetl2c_get_shoplist_result::Clear() {
  11241. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  11242. packet_id_ = 15212;
  11243. }
  11244. shoplist_.Clear();
  11245. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  11246. mutable_unknown_fields()->Clear();
  11247. }
  11248. bool packetl2c_get_shoplist_result::MergePartialFromCodedStream(
  11249. ::google::protobuf::io::CodedInputStream* input) {
  11250. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  11251. ::google::protobuf::uint32 tag;
  11252. while ((tag = input->ReadTag()) != 0) {
  11253. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  11254. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_shoplist_result];
  11255. case 1: {
  11256. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  11257. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  11258. int value;
  11259. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  11260. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  11261. input, &value)));
  11262. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  11263. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  11264. } else {
  11265. mutable_unknown_fields()->AddVarint(1, value);
  11266. }
  11267. } else {
  11268. goto handle_uninterpreted;
  11269. }
  11270. if (input->ExpectTag(18)) goto parse_shoplist;
  11271. break;
  11272. }
  11273. // repeated .fish_protocols.msg_shopitem shoplist = 2;
  11274. case 2: {
  11275. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  11276. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  11277. parse_shoplist:
  11278. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  11279. input, add_shoplist()));
  11280. } else {
  11281. goto handle_uninterpreted;
  11282. }
  11283. if (input->ExpectTag(18)) goto parse_shoplist;
  11284. if (input->ExpectAtEnd()) return true;
  11285. break;
  11286. }
  11287. default: {
  11288. handle_uninterpreted:
  11289. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  11290. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  11291. return true;
  11292. }
  11293. DO_(::google::protobuf::internal::WireFormat::SkipField(
  11294. input, tag, mutable_unknown_fields()));
  11295. break;
  11296. }
  11297. }
  11298. }
  11299. return true;
  11300. #undef DO_
  11301. }
  11302. void packetl2c_get_shoplist_result::SerializeWithCachedSizes(
  11303. ::google::protobuf::io::CodedOutputStream* output) const {
  11304. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_shoplist_result];
  11305. if (has_packet_id()) {
  11306. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  11307. 1, this->packet_id(), output);
  11308. }
  11309. // repeated .fish_protocols.msg_shopitem shoplist = 2;
  11310. for (int i = 0; i < this->shoplist_size(); i++) {
  11311. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  11312. 2, this->shoplist(i), output);
  11313. }
  11314. if (!unknown_fields().empty()) {
  11315. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  11316. unknown_fields(), output);
  11317. }
  11318. }
  11319. ::google::protobuf::uint8* packetl2c_get_shoplist_result::SerializeWithCachedSizesToArray(
  11320. ::google::protobuf::uint8* target) const {
  11321. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_shoplist_result];
  11322. if (has_packet_id()) {
  11323. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  11324. 1, this->packet_id(), target);
  11325. }
  11326. // repeated .fish_protocols.msg_shopitem shoplist = 2;
  11327. for (int i = 0; i < this->shoplist_size(); i++) {
  11328. target = ::google::protobuf::internal::WireFormatLite::
  11329. WriteMessageNoVirtualToArray(
  11330. 2, this->shoplist(i), target);
  11331. }
  11332. if (!unknown_fields().empty()) {
  11333. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  11334. unknown_fields(), target);
  11335. }
  11336. return target;
  11337. }
  11338. int packetl2c_get_shoplist_result::ByteSize() const {
  11339. int total_size = 0;
  11340. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  11341. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_shoplist_result];
  11342. if (has_packet_id()) {
  11343. total_size += 1 +
  11344. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  11345. }
  11346. }
  11347. // repeated .fish_protocols.msg_shopitem shoplist = 2;
  11348. total_size += 1 * this->shoplist_size();
  11349. for (int i = 0; i < this->shoplist_size(); i++) {
  11350. total_size +=
  11351. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  11352. this->shoplist(i));
  11353. }
  11354. if (!unknown_fields().empty()) {
  11355. total_size +=
  11356. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  11357. unknown_fields());
  11358. }
  11359. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  11360. _cached_size_ = total_size;
  11361. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  11362. return total_size;
  11363. }
  11364. void packetl2c_get_shoplist_result::MergeFrom(const ::google::protobuf::Message& from) {
  11365. GOOGLE_CHECK_NE(&from, this);
  11366. const packetl2c_get_shoplist_result* source =
  11367. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_get_shoplist_result*>(
  11368. &from);
  11369. if (source == NULL) {
  11370. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  11371. } else {
  11372. MergeFrom(*source);
  11373. }
  11374. }
  11375. void packetl2c_get_shoplist_result::MergeFrom(const packetl2c_get_shoplist_result& from) {
  11376. GOOGLE_CHECK_NE(&from, this);
  11377. shoplist_.MergeFrom(from.shoplist_);
  11378. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  11379. if (from.has_packet_id()) {
  11380. set_packet_id(from.packet_id());
  11381. }
  11382. }
  11383. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  11384. }
  11385. void packetl2c_get_shoplist_result::CopyFrom(const ::google::protobuf::Message& from) {
  11386. if (&from == this) return;
  11387. Clear();
  11388. MergeFrom(from);
  11389. }
  11390. void packetl2c_get_shoplist_result::CopyFrom(const packetl2c_get_shoplist_result& from) {
  11391. if (&from == this) return;
  11392. Clear();
  11393. MergeFrom(from);
  11394. }
  11395. bool packetl2c_get_shoplist_result::IsInitialized() const {
  11396. return true;
  11397. }
  11398. void packetl2c_get_shoplist_result::Swap(packetl2c_get_shoplist_result* other) {
  11399. if (other != this) {
  11400. std::swap(packet_id_, other->packet_id_);
  11401. shoplist_.Swap(&other->shoplist_);
  11402. std::swap(_has_bits_[0], other->_has_bits_[0]);
  11403. _unknown_fields_.Swap(&other->_unknown_fields_);
  11404. std::swap(_cached_size_, other->_cached_size_);
  11405. }
  11406. }
  11407. ::google::protobuf::Metadata packetl2c_get_shoplist_result::GetMetadata() const {
  11408. protobuf_AssignDescriptorsOnce();
  11409. ::google::protobuf::Metadata metadata;
  11410. metadata.descriptor = packetl2c_get_shoplist_result_descriptor_;
  11411. metadata.reflection = packetl2c_get_shoplist_result_reflection_;
  11412. return metadata;
  11413. }
  11414. // ===================================================================
  11415. #ifndef _MSC_VER
  11416. const int packetc2l_turret_levelup::kPacketIdFieldNumber;
  11417. const int packetc2l_turret_levelup::kUseluckyFieldNumber;
  11418. #endif // !_MSC_VER
  11419. packetc2l_turret_levelup::packetc2l_turret_levelup()
  11420. : ::google::protobuf::Message() {
  11421. SharedCtor();
  11422. }
  11423. void packetc2l_turret_levelup::InitAsDefaultInstance() {
  11424. }
  11425. packetc2l_turret_levelup::packetc2l_turret_levelup(const packetc2l_turret_levelup& from)
  11426. : ::google::protobuf::Message() {
  11427. SharedCtor();
  11428. MergeFrom(from);
  11429. }
  11430. void packetc2l_turret_levelup::SharedCtor() {
  11431. _cached_size_ = 0;
  11432. packet_id_ = 10111;
  11433. uselucky_ = false;
  11434. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  11435. }
  11436. packetc2l_turret_levelup::~packetc2l_turret_levelup() {
  11437. SharedDtor();
  11438. }
  11439. void packetc2l_turret_levelup::SharedDtor() {
  11440. if (this != default_instance_) {
  11441. }
  11442. }
  11443. void packetc2l_turret_levelup::SetCachedSize(int size) const {
  11444. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  11445. _cached_size_ = size;
  11446. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  11447. }
  11448. const ::google::protobuf::Descriptor* packetc2l_turret_levelup::descriptor() {
  11449. protobuf_AssignDescriptorsOnce();
  11450. return packetc2l_turret_levelup_descriptor_;
  11451. }
  11452. const packetc2l_turret_levelup& packetc2l_turret_levelup::default_instance() {
  11453. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  11454. return *default_instance_;
  11455. }
  11456. packetc2l_turret_levelup* packetc2l_turret_levelup::default_instance_ = NULL;
  11457. packetc2l_turret_levelup* packetc2l_turret_levelup::New() const {
  11458. return new packetc2l_turret_levelup;
  11459. }
  11460. void packetc2l_turret_levelup::Clear() {
  11461. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  11462. packet_id_ = 10111;
  11463. uselucky_ = false;
  11464. }
  11465. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  11466. mutable_unknown_fields()->Clear();
  11467. }
  11468. bool packetc2l_turret_levelup::MergePartialFromCodedStream(
  11469. ::google::protobuf::io::CodedInputStream* input) {
  11470. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  11471. ::google::protobuf::uint32 tag;
  11472. while ((tag = input->ReadTag()) != 0) {
  11473. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  11474. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_turret_levelup];
  11475. case 1: {
  11476. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  11477. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  11478. int value;
  11479. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  11480. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  11481. input, &value)));
  11482. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  11483. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  11484. } else {
  11485. mutable_unknown_fields()->AddVarint(1, value);
  11486. }
  11487. } else {
  11488. goto handle_uninterpreted;
  11489. }
  11490. if (input->ExpectTag(16)) goto parse_uselucky;
  11491. break;
  11492. }
  11493. // optional bool uselucky = 2 [default = false];
  11494. case 2: {
  11495. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  11496. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  11497. parse_uselucky:
  11498. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  11499. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  11500. input, &uselucky_)));
  11501. set_has_uselucky();
  11502. } else {
  11503. goto handle_uninterpreted;
  11504. }
  11505. if (input->ExpectAtEnd()) return true;
  11506. break;
  11507. }
  11508. default: {
  11509. handle_uninterpreted:
  11510. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  11511. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  11512. return true;
  11513. }
  11514. DO_(::google::protobuf::internal::WireFormat::SkipField(
  11515. input, tag, mutable_unknown_fields()));
  11516. break;
  11517. }
  11518. }
  11519. }
  11520. return true;
  11521. #undef DO_
  11522. }
  11523. void packetc2l_turret_levelup::SerializeWithCachedSizes(
  11524. ::google::protobuf::io::CodedOutputStream* output) const {
  11525. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_turret_levelup];
  11526. if (has_packet_id()) {
  11527. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  11528. 1, this->packet_id(), output);
  11529. }
  11530. // optional bool uselucky = 2 [default = false];
  11531. if (has_uselucky()) {
  11532. ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->uselucky(), output);
  11533. }
  11534. if (!unknown_fields().empty()) {
  11535. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  11536. unknown_fields(), output);
  11537. }
  11538. }
  11539. ::google::protobuf::uint8* packetc2l_turret_levelup::SerializeWithCachedSizesToArray(
  11540. ::google::protobuf::uint8* target) const {
  11541. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_turret_levelup];
  11542. if (has_packet_id()) {
  11543. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  11544. 1, this->packet_id(), target);
  11545. }
  11546. // optional bool uselucky = 2 [default = false];
  11547. if (has_uselucky()) {
  11548. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->uselucky(), target);
  11549. }
  11550. if (!unknown_fields().empty()) {
  11551. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  11552. unknown_fields(), target);
  11553. }
  11554. return target;
  11555. }
  11556. int packetc2l_turret_levelup::ByteSize() const {
  11557. int total_size = 0;
  11558. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  11559. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_turret_levelup];
  11560. if (has_packet_id()) {
  11561. total_size += 1 +
  11562. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  11563. }
  11564. // optional bool uselucky = 2 [default = false];
  11565. if (has_uselucky()) {
  11566. total_size += 1 + 1;
  11567. }
  11568. }
  11569. if (!unknown_fields().empty()) {
  11570. total_size +=
  11571. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  11572. unknown_fields());
  11573. }
  11574. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  11575. _cached_size_ = total_size;
  11576. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  11577. return total_size;
  11578. }
  11579. void packetc2l_turret_levelup::MergeFrom(const ::google::protobuf::Message& from) {
  11580. GOOGLE_CHECK_NE(&from, this);
  11581. const packetc2l_turret_levelup* source =
  11582. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_turret_levelup*>(
  11583. &from);
  11584. if (source == NULL) {
  11585. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  11586. } else {
  11587. MergeFrom(*source);
  11588. }
  11589. }
  11590. void packetc2l_turret_levelup::MergeFrom(const packetc2l_turret_levelup& from) {
  11591. GOOGLE_CHECK_NE(&from, this);
  11592. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  11593. if (from.has_packet_id()) {
  11594. set_packet_id(from.packet_id());
  11595. }
  11596. if (from.has_uselucky()) {
  11597. set_uselucky(from.uselucky());
  11598. }
  11599. }
  11600. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  11601. }
  11602. void packetc2l_turret_levelup::CopyFrom(const ::google::protobuf::Message& from) {
  11603. if (&from == this) return;
  11604. Clear();
  11605. MergeFrom(from);
  11606. }
  11607. void packetc2l_turret_levelup::CopyFrom(const packetc2l_turret_levelup& from) {
  11608. if (&from == this) return;
  11609. Clear();
  11610. MergeFrom(from);
  11611. }
  11612. bool packetc2l_turret_levelup::IsInitialized() const {
  11613. return true;
  11614. }
  11615. void packetc2l_turret_levelup::Swap(packetc2l_turret_levelup* other) {
  11616. if (other != this) {
  11617. std::swap(packet_id_, other->packet_id_);
  11618. std::swap(uselucky_, other->uselucky_);
  11619. std::swap(_has_bits_[0], other->_has_bits_[0]);
  11620. _unknown_fields_.Swap(&other->_unknown_fields_);
  11621. std::swap(_cached_size_, other->_cached_size_);
  11622. }
  11623. }
  11624. ::google::protobuf::Metadata packetc2l_turret_levelup::GetMetadata() const {
  11625. protobuf_AssignDescriptorsOnce();
  11626. ::google::protobuf::Metadata metadata;
  11627. metadata.descriptor = packetc2l_turret_levelup_descriptor_;
  11628. metadata.reflection = packetc2l_turret_levelup_reflection_;
  11629. return metadata;
  11630. }
  11631. // ===================================================================
  11632. #ifndef _MSC_VER
  11633. const int packetl2c_turret_levelup_result::kPacketIdFieldNumber;
  11634. const int packetl2c_turret_levelup_result::kResultFieldNumber;
  11635. const int packetl2c_turret_levelup_result::kUsediamondFieldNumber;
  11636. const int packetl2c_turret_levelup_result::kUseluckyFieldNumber;
  11637. const int packetl2c_turret_levelup_result::kCurLvFieldNumber;
  11638. const int packetl2c_turret_levelup_result::kCurLuckyFieldNumber;
  11639. #endif // !_MSC_VER
  11640. packetl2c_turret_levelup_result::packetl2c_turret_levelup_result()
  11641. : ::google::protobuf::Message() {
  11642. SharedCtor();
  11643. }
  11644. void packetl2c_turret_levelup_result::InitAsDefaultInstance() {
  11645. }
  11646. packetl2c_turret_levelup_result::packetl2c_turret_levelup_result(const packetl2c_turret_levelup_result& from)
  11647. : ::google::protobuf::Message() {
  11648. SharedCtor();
  11649. MergeFrom(from);
  11650. }
  11651. void packetl2c_turret_levelup_result::SharedCtor() {
  11652. _cached_size_ = 0;
  11653. packet_id_ = 15103;
  11654. result_ = 2;
  11655. usediamond_ = false;
  11656. uselucky_ = false;
  11657. cur_lv_ = 0;
  11658. cur_lucky_ = 0;
  11659. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  11660. }
  11661. packetl2c_turret_levelup_result::~packetl2c_turret_levelup_result() {
  11662. SharedDtor();
  11663. }
  11664. void packetl2c_turret_levelup_result::SharedDtor() {
  11665. if (this != default_instance_) {
  11666. }
  11667. }
  11668. void packetl2c_turret_levelup_result::SetCachedSize(int size) const {
  11669. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  11670. _cached_size_ = size;
  11671. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  11672. }
  11673. const ::google::protobuf::Descriptor* packetl2c_turret_levelup_result::descriptor() {
  11674. protobuf_AssignDescriptorsOnce();
  11675. return packetl2c_turret_levelup_result_descriptor_;
  11676. }
  11677. const packetl2c_turret_levelup_result& packetl2c_turret_levelup_result::default_instance() {
  11678. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  11679. return *default_instance_;
  11680. }
  11681. packetl2c_turret_levelup_result* packetl2c_turret_levelup_result::default_instance_ = NULL;
  11682. packetl2c_turret_levelup_result* packetl2c_turret_levelup_result::New() const {
  11683. return new packetl2c_turret_levelup_result;
  11684. }
  11685. void packetl2c_turret_levelup_result::Clear() {
  11686. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  11687. packet_id_ = 15103;
  11688. result_ = 2;
  11689. usediamond_ = false;
  11690. uselucky_ = false;
  11691. cur_lv_ = 0;
  11692. cur_lucky_ = 0;
  11693. }
  11694. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  11695. mutable_unknown_fields()->Clear();
  11696. }
  11697. bool packetl2c_turret_levelup_result::MergePartialFromCodedStream(
  11698. ::google::protobuf::io::CodedInputStream* input) {
  11699. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  11700. ::google::protobuf::uint32 tag;
  11701. while ((tag = input->ReadTag()) != 0) {
  11702. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  11703. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_turret_levelup_result];
  11704. case 1: {
  11705. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  11706. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  11707. int value;
  11708. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  11709. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  11710. input, &value)));
  11711. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  11712. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  11713. } else {
  11714. mutable_unknown_fields()->AddVarint(1, value);
  11715. }
  11716. } else {
  11717. goto handle_uninterpreted;
  11718. }
  11719. if (input->ExpectTag(16)) goto parse_result;
  11720. break;
  11721. }
  11722. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  11723. case 2: {
  11724. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  11725. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  11726. parse_result:
  11727. int value;
  11728. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  11729. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  11730. input, &value)));
  11731. if (::msg_type_def::e_msg_result_def_IsValid(value)) {
  11732. set_result(static_cast< ::msg_type_def::e_msg_result_def >(value));
  11733. } else {
  11734. mutable_unknown_fields()->AddVarint(2, value);
  11735. }
  11736. } else {
  11737. goto handle_uninterpreted;
  11738. }
  11739. if (input->ExpectTag(24)) goto parse_usediamond;
  11740. break;
  11741. }
  11742. // optional bool usediamond = 3;
  11743. case 3: {
  11744. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  11745. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  11746. parse_usediamond:
  11747. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  11748. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  11749. input, &usediamond_)));
  11750. set_has_usediamond();
  11751. } else {
  11752. goto handle_uninterpreted;
  11753. }
  11754. if (input->ExpectTag(32)) goto parse_uselucky;
  11755. break;
  11756. }
  11757. // optional bool uselucky = 4;
  11758. case 4: {
  11759. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  11760. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  11761. parse_uselucky:
  11762. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  11763. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  11764. input, &uselucky_)));
  11765. set_has_uselucky();
  11766. } else {
  11767. goto handle_uninterpreted;
  11768. }
  11769. if (input->ExpectTag(40)) goto parse_cur_lv;
  11770. break;
  11771. }
  11772. // optional int32 cur_lv = 5 [default = 0];
  11773. case 5: {
  11774. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  11775. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  11776. parse_cur_lv:
  11777. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  11778. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  11779. input, &cur_lv_)));
  11780. set_has_cur_lv();
  11781. } else {
  11782. goto handle_uninterpreted;
  11783. }
  11784. if (input->ExpectTag(48)) goto parse_cur_lucky;
  11785. break;
  11786. }
  11787. // optional int32 cur_lucky = 6 [default = 0];
  11788. case 6: {
  11789. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  11790. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  11791. parse_cur_lucky:
  11792. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  11793. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  11794. input, &cur_lucky_)));
  11795. set_has_cur_lucky();
  11796. } else {
  11797. goto handle_uninterpreted;
  11798. }
  11799. if (input->ExpectAtEnd()) return true;
  11800. break;
  11801. }
  11802. default: {
  11803. handle_uninterpreted:
  11804. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  11805. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  11806. return true;
  11807. }
  11808. DO_(::google::protobuf::internal::WireFormat::SkipField(
  11809. input, tag, mutable_unknown_fields()));
  11810. break;
  11811. }
  11812. }
  11813. }
  11814. return true;
  11815. #undef DO_
  11816. }
  11817. void packetl2c_turret_levelup_result::SerializeWithCachedSizes(
  11818. ::google::protobuf::io::CodedOutputStream* output) const {
  11819. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_turret_levelup_result];
  11820. if (has_packet_id()) {
  11821. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  11822. 1, this->packet_id(), output);
  11823. }
  11824. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  11825. if (has_result()) {
  11826. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  11827. 2, this->result(), output);
  11828. }
  11829. // optional bool usediamond = 3;
  11830. if (has_usediamond()) {
  11831. ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->usediamond(), output);
  11832. }
  11833. // optional bool uselucky = 4;
  11834. if (has_uselucky()) {
  11835. ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->uselucky(), output);
  11836. }
  11837. // optional int32 cur_lv = 5 [default = 0];
  11838. if (has_cur_lv()) {
  11839. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->cur_lv(), output);
  11840. }
  11841. // optional int32 cur_lucky = 6 [default = 0];
  11842. if (has_cur_lucky()) {
  11843. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->cur_lucky(), output);
  11844. }
  11845. if (!unknown_fields().empty()) {
  11846. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  11847. unknown_fields(), output);
  11848. }
  11849. }
  11850. ::google::protobuf::uint8* packetl2c_turret_levelup_result::SerializeWithCachedSizesToArray(
  11851. ::google::protobuf::uint8* target) const {
  11852. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_turret_levelup_result];
  11853. if (has_packet_id()) {
  11854. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  11855. 1, this->packet_id(), target);
  11856. }
  11857. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  11858. if (has_result()) {
  11859. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  11860. 2, this->result(), target);
  11861. }
  11862. // optional bool usediamond = 3;
  11863. if (has_usediamond()) {
  11864. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->usediamond(), target);
  11865. }
  11866. // optional bool uselucky = 4;
  11867. if (has_uselucky()) {
  11868. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->uselucky(), target);
  11869. }
  11870. // optional int32 cur_lv = 5 [default = 0];
  11871. if (has_cur_lv()) {
  11872. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->cur_lv(), target);
  11873. }
  11874. // optional int32 cur_lucky = 6 [default = 0];
  11875. if (has_cur_lucky()) {
  11876. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->cur_lucky(), target);
  11877. }
  11878. if (!unknown_fields().empty()) {
  11879. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  11880. unknown_fields(), target);
  11881. }
  11882. return target;
  11883. }
  11884. int packetl2c_turret_levelup_result::ByteSize() const {
  11885. int total_size = 0;
  11886. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  11887. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_turret_levelup_result];
  11888. if (has_packet_id()) {
  11889. total_size += 1 +
  11890. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  11891. }
  11892. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  11893. if (has_result()) {
  11894. total_size += 1 +
  11895. ::google::protobuf::internal::WireFormatLite::EnumSize(this->result());
  11896. }
  11897. // optional bool usediamond = 3;
  11898. if (has_usediamond()) {
  11899. total_size += 1 + 1;
  11900. }
  11901. // optional bool uselucky = 4;
  11902. if (has_uselucky()) {
  11903. total_size += 1 + 1;
  11904. }
  11905. // optional int32 cur_lv = 5 [default = 0];
  11906. if (has_cur_lv()) {
  11907. total_size += 1 +
  11908. ::google::protobuf::internal::WireFormatLite::Int32Size(
  11909. this->cur_lv());
  11910. }
  11911. // optional int32 cur_lucky = 6 [default = 0];
  11912. if (has_cur_lucky()) {
  11913. total_size += 1 +
  11914. ::google::protobuf::internal::WireFormatLite::Int32Size(
  11915. this->cur_lucky());
  11916. }
  11917. }
  11918. if (!unknown_fields().empty()) {
  11919. total_size +=
  11920. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  11921. unknown_fields());
  11922. }
  11923. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  11924. _cached_size_ = total_size;
  11925. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  11926. return total_size;
  11927. }
  11928. void packetl2c_turret_levelup_result::MergeFrom(const ::google::protobuf::Message& from) {
  11929. GOOGLE_CHECK_NE(&from, this);
  11930. const packetl2c_turret_levelup_result* source =
  11931. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_turret_levelup_result*>(
  11932. &from);
  11933. if (source == NULL) {
  11934. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  11935. } else {
  11936. MergeFrom(*source);
  11937. }
  11938. }
  11939. void packetl2c_turret_levelup_result::MergeFrom(const packetl2c_turret_levelup_result& from) {
  11940. GOOGLE_CHECK_NE(&from, this);
  11941. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  11942. if (from.has_packet_id()) {
  11943. set_packet_id(from.packet_id());
  11944. }
  11945. if (from.has_result()) {
  11946. set_result(from.result());
  11947. }
  11948. if (from.has_usediamond()) {
  11949. set_usediamond(from.usediamond());
  11950. }
  11951. if (from.has_uselucky()) {
  11952. set_uselucky(from.uselucky());
  11953. }
  11954. if (from.has_cur_lv()) {
  11955. set_cur_lv(from.cur_lv());
  11956. }
  11957. if (from.has_cur_lucky()) {
  11958. set_cur_lucky(from.cur_lucky());
  11959. }
  11960. }
  11961. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  11962. }
  11963. void packetl2c_turret_levelup_result::CopyFrom(const ::google::protobuf::Message& from) {
  11964. if (&from == this) return;
  11965. Clear();
  11966. MergeFrom(from);
  11967. }
  11968. void packetl2c_turret_levelup_result::CopyFrom(const packetl2c_turret_levelup_result& from) {
  11969. if (&from == this) return;
  11970. Clear();
  11971. MergeFrom(from);
  11972. }
  11973. bool packetl2c_turret_levelup_result::IsInitialized() const {
  11974. return true;
  11975. }
  11976. void packetl2c_turret_levelup_result::Swap(packetl2c_turret_levelup_result* other) {
  11977. if (other != this) {
  11978. std::swap(packet_id_, other->packet_id_);
  11979. std::swap(result_, other->result_);
  11980. std::swap(usediamond_, other->usediamond_);
  11981. std::swap(uselucky_, other->uselucky_);
  11982. std::swap(cur_lv_, other->cur_lv_);
  11983. std::swap(cur_lucky_, other->cur_lucky_);
  11984. std::swap(_has_bits_[0], other->_has_bits_[0]);
  11985. _unknown_fields_.Swap(&other->_unknown_fields_);
  11986. std::swap(_cached_size_, other->_cached_size_);
  11987. }
  11988. }
  11989. ::google::protobuf::Metadata packetl2c_turret_levelup_result::GetMetadata() const {
  11990. protobuf_AssignDescriptorsOnce();
  11991. ::google::protobuf::Metadata metadata;
  11992. metadata.descriptor = packetl2c_turret_levelup_result_descriptor_;
  11993. metadata.reflection = packetl2c_turret_levelup_result_reflection_;
  11994. return metadata;
  11995. }
  11996. // ===================================================================
  11997. #ifndef _MSC_VER
  11998. const int packetl2c_player_auto_levelup::kPacketIdFieldNumber;
  11999. const int packetl2c_player_auto_levelup::kUplevelFieldNumber;
  12000. const int packetl2c_player_auto_levelup::kAwardGoldFieldNumber;
  12001. const int packetl2c_player_auto_levelup::kAwardTicketFieldNumber;
  12002. const int packetl2c_player_auto_levelup::kUnlockRateFieldNumber;
  12003. const int packetl2c_player_auto_levelup::kAwardItemFieldNumber;
  12004. #endif // !_MSC_VER
  12005. packetl2c_player_auto_levelup::packetl2c_player_auto_levelup()
  12006. : ::google::protobuf::Message() {
  12007. SharedCtor();
  12008. }
  12009. void packetl2c_player_auto_levelup::InitAsDefaultInstance() {
  12010. }
  12011. packetl2c_player_auto_levelup::packetl2c_player_auto_levelup(const packetl2c_player_auto_levelup& from)
  12012. : ::google::protobuf::Message() {
  12013. SharedCtor();
  12014. MergeFrom(from);
  12015. }
  12016. void packetl2c_player_auto_levelup::SharedCtor() {
  12017. _cached_size_ = 0;
  12018. packet_id_ = 15110;
  12019. uplevel_ = 0;
  12020. award_gold_ = 0;
  12021. award_ticket_ = 0;
  12022. unlock_rate_ = 0;
  12023. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  12024. }
  12025. packetl2c_player_auto_levelup::~packetl2c_player_auto_levelup() {
  12026. SharedDtor();
  12027. }
  12028. void packetl2c_player_auto_levelup::SharedDtor() {
  12029. if (this != default_instance_) {
  12030. }
  12031. }
  12032. void packetl2c_player_auto_levelup::SetCachedSize(int size) const {
  12033. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  12034. _cached_size_ = size;
  12035. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  12036. }
  12037. const ::google::protobuf::Descriptor* packetl2c_player_auto_levelup::descriptor() {
  12038. protobuf_AssignDescriptorsOnce();
  12039. return packetl2c_player_auto_levelup_descriptor_;
  12040. }
  12041. const packetl2c_player_auto_levelup& packetl2c_player_auto_levelup::default_instance() {
  12042. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  12043. return *default_instance_;
  12044. }
  12045. packetl2c_player_auto_levelup* packetl2c_player_auto_levelup::default_instance_ = NULL;
  12046. packetl2c_player_auto_levelup* packetl2c_player_auto_levelup::New() const {
  12047. return new packetl2c_player_auto_levelup;
  12048. }
  12049. void packetl2c_player_auto_levelup::Clear() {
  12050. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  12051. packet_id_ = 15110;
  12052. uplevel_ = 0;
  12053. award_gold_ = 0;
  12054. award_ticket_ = 0;
  12055. unlock_rate_ = 0;
  12056. }
  12057. award_item_.Clear();
  12058. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  12059. mutable_unknown_fields()->Clear();
  12060. }
  12061. bool packetl2c_player_auto_levelup::MergePartialFromCodedStream(
  12062. ::google::protobuf::io::CodedInputStream* input) {
  12063. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  12064. ::google::protobuf::uint32 tag;
  12065. while ((tag = input->ReadTag()) != 0) {
  12066. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  12067. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_player_auto_levelup];
  12068. case 1: {
  12069. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  12070. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  12071. int value;
  12072. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  12073. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  12074. input, &value)));
  12075. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  12076. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  12077. } else {
  12078. mutable_unknown_fields()->AddVarint(1, value);
  12079. }
  12080. } else {
  12081. goto handle_uninterpreted;
  12082. }
  12083. if (input->ExpectTag(16)) goto parse_uplevel;
  12084. break;
  12085. }
  12086. // optional int32 uplevel = 2;
  12087. case 2: {
  12088. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  12089. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  12090. parse_uplevel:
  12091. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  12092. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  12093. input, &uplevel_)));
  12094. set_has_uplevel();
  12095. } else {
  12096. goto handle_uninterpreted;
  12097. }
  12098. if (input->ExpectTag(24)) goto parse_award_gold;
  12099. break;
  12100. }
  12101. // optional int32 award_gold = 3;
  12102. case 3: {
  12103. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  12104. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  12105. parse_award_gold:
  12106. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  12107. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  12108. input, &award_gold_)));
  12109. set_has_award_gold();
  12110. } else {
  12111. goto handle_uninterpreted;
  12112. }
  12113. if (input->ExpectTag(32)) goto parse_award_ticket;
  12114. break;
  12115. }
  12116. // optional int32 award_ticket = 4;
  12117. case 4: {
  12118. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  12119. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  12120. parse_award_ticket:
  12121. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  12122. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  12123. input, &award_ticket_)));
  12124. set_has_award_ticket();
  12125. } else {
  12126. goto handle_uninterpreted;
  12127. }
  12128. if (input->ExpectTag(40)) goto parse_unlock_rate;
  12129. break;
  12130. }
  12131. // optional int32 unlock_rate = 5 [default = 0];
  12132. case 5: {
  12133. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  12134. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  12135. parse_unlock_rate:
  12136. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  12137. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  12138. input, &unlock_rate_)));
  12139. set_has_unlock_rate();
  12140. } else {
  12141. goto handle_uninterpreted;
  12142. }
  12143. if (input->ExpectTag(50)) goto parse_award_item;
  12144. break;
  12145. }
  12146. // repeated .fish_protocols.msg_item award_item = 6;
  12147. case 6: {
  12148. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  12149. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  12150. parse_award_item:
  12151. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  12152. input, add_award_item()));
  12153. } else {
  12154. goto handle_uninterpreted;
  12155. }
  12156. if (input->ExpectTag(50)) goto parse_award_item;
  12157. if (input->ExpectAtEnd()) return true;
  12158. break;
  12159. }
  12160. default: {
  12161. handle_uninterpreted:
  12162. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  12163. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  12164. return true;
  12165. }
  12166. DO_(::google::protobuf::internal::WireFormat::SkipField(
  12167. input, tag, mutable_unknown_fields()));
  12168. break;
  12169. }
  12170. }
  12171. }
  12172. return true;
  12173. #undef DO_
  12174. }
  12175. void packetl2c_player_auto_levelup::SerializeWithCachedSizes(
  12176. ::google::protobuf::io::CodedOutputStream* output) const {
  12177. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_player_auto_levelup];
  12178. if (has_packet_id()) {
  12179. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  12180. 1, this->packet_id(), output);
  12181. }
  12182. // optional int32 uplevel = 2;
  12183. if (has_uplevel()) {
  12184. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->uplevel(), output);
  12185. }
  12186. // optional int32 award_gold = 3;
  12187. if (has_award_gold()) {
  12188. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->award_gold(), output);
  12189. }
  12190. // optional int32 award_ticket = 4;
  12191. if (has_award_ticket()) {
  12192. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->award_ticket(), output);
  12193. }
  12194. // optional int32 unlock_rate = 5 [default = 0];
  12195. if (has_unlock_rate()) {
  12196. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->unlock_rate(), output);
  12197. }
  12198. // repeated .fish_protocols.msg_item award_item = 6;
  12199. for (int i = 0; i < this->award_item_size(); i++) {
  12200. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  12201. 6, this->award_item(i), output);
  12202. }
  12203. if (!unknown_fields().empty()) {
  12204. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  12205. unknown_fields(), output);
  12206. }
  12207. }
  12208. ::google::protobuf::uint8* packetl2c_player_auto_levelup::SerializeWithCachedSizesToArray(
  12209. ::google::protobuf::uint8* target) const {
  12210. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_player_auto_levelup];
  12211. if (has_packet_id()) {
  12212. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  12213. 1, this->packet_id(), target);
  12214. }
  12215. // optional int32 uplevel = 2;
  12216. if (has_uplevel()) {
  12217. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->uplevel(), target);
  12218. }
  12219. // optional int32 award_gold = 3;
  12220. if (has_award_gold()) {
  12221. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->award_gold(), target);
  12222. }
  12223. // optional int32 award_ticket = 4;
  12224. if (has_award_ticket()) {
  12225. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->award_ticket(), target);
  12226. }
  12227. // optional int32 unlock_rate = 5 [default = 0];
  12228. if (has_unlock_rate()) {
  12229. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->unlock_rate(), target);
  12230. }
  12231. // repeated .fish_protocols.msg_item award_item = 6;
  12232. for (int i = 0; i < this->award_item_size(); i++) {
  12233. target = ::google::protobuf::internal::WireFormatLite::
  12234. WriteMessageNoVirtualToArray(
  12235. 6, this->award_item(i), target);
  12236. }
  12237. if (!unknown_fields().empty()) {
  12238. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  12239. unknown_fields(), target);
  12240. }
  12241. return target;
  12242. }
  12243. int packetl2c_player_auto_levelup::ByteSize() const {
  12244. int total_size = 0;
  12245. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  12246. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_player_auto_levelup];
  12247. if (has_packet_id()) {
  12248. total_size += 1 +
  12249. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  12250. }
  12251. // optional int32 uplevel = 2;
  12252. if (has_uplevel()) {
  12253. total_size += 1 +
  12254. ::google::protobuf::internal::WireFormatLite::Int32Size(
  12255. this->uplevel());
  12256. }
  12257. // optional int32 award_gold = 3;
  12258. if (has_award_gold()) {
  12259. total_size += 1 +
  12260. ::google::protobuf::internal::WireFormatLite::Int32Size(
  12261. this->award_gold());
  12262. }
  12263. // optional int32 award_ticket = 4;
  12264. if (has_award_ticket()) {
  12265. total_size += 1 +
  12266. ::google::protobuf::internal::WireFormatLite::Int32Size(
  12267. this->award_ticket());
  12268. }
  12269. // optional int32 unlock_rate = 5 [default = 0];
  12270. if (has_unlock_rate()) {
  12271. total_size += 1 +
  12272. ::google::protobuf::internal::WireFormatLite::Int32Size(
  12273. this->unlock_rate());
  12274. }
  12275. }
  12276. // repeated .fish_protocols.msg_item award_item = 6;
  12277. total_size += 1 * this->award_item_size();
  12278. for (int i = 0; i < this->award_item_size(); i++) {
  12279. total_size +=
  12280. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  12281. this->award_item(i));
  12282. }
  12283. if (!unknown_fields().empty()) {
  12284. total_size +=
  12285. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  12286. unknown_fields());
  12287. }
  12288. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  12289. _cached_size_ = total_size;
  12290. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  12291. return total_size;
  12292. }
  12293. void packetl2c_player_auto_levelup::MergeFrom(const ::google::protobuf::Message& from) {
  12294. GOOGLE_CHECK_NE(&from, this);
  12295. const packetl2c_player_auto_levelup* source =
  12296. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_player_auto_levelup*>(
  12297. &from);
  12298. if (source == NULL) {
  12299. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  12300. } else {
  12301. MergeFrom(*source);
  12302. }
  12303. }
  12304. void packetl2c_player_auto_levelup::MergeFrom(const packetl2c_player_auto_levelup& from) {
  12305. GOOGLE_CHECK_NE(&from, this);
  12306. award_item_.MergeFrom(from.award_item_);
  12307. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  12308. if (from.has_packet_id()) {
  12309. set_packet_id(from.packet_id());
  12310. }
  12311. if (from.has_uplevel()) {
  12312. set_uplevel(from.uplevel());
  12313. }
  12314. if (from.has_award_gold()) {
  12315. set_award_gold(from.award_gold());
  12316. }
  12317. if (from.has_award_ticket()) {
  12318. set_award_ticket(from.award_ticket());
  12319. }
  12320. if (from.has_unlock_rate()) {
  12321. set_unlock_rate(from.unlock_rate());
  12322. }
  12323. }
  12324. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  12325. }
  12326. void packetl2c_player_auto_levelup::CopyFrom(const ::google::protobuf::Message& from) {
  12327. if (&from == this) return;
  12328. Clear();
  12329. MergeFrom(from);
  12330. }
  12331. void packetl2c_player_auto_levelup::CopyFrom(const packetl2c_player_auto_levelup& from) {
  12332. if (&from == this) return;
  12333. Clear();
  12334. MergeFrom(from);
  12335. }
  12336. bool packetl2c_player_auto_levelup::IsInitialized() const {
  12337. return true;
  12338. }
  12339. void packetl2c_player_auto_levelup::Swap(packetl2c_player_auto_levelup* other) {
  12340. if (other != this) {
  12341. std::swap(packet_id_, other->packet_id_);
  12342. std::swap(uplevel_, other->uplevel_);
  12343. std::swap(award_gold_, other->award_gold_);
  12344. std::swap(award_ticket_, other->award_ticket_);
  12345. std::swap(unlock_rate_, other->unlock_rate_);
  12346. award_item_.Swap(&other->award_item_);
  12347. std::swap(_has_bits_[0], other->_has_bits_[0]);
  12348. _unknown_fields_.Swap(&other->_unknown_fields_);
  12349. std::swap(_cached_size_, other->_cached_size_);
  12350. }
  12351. }
  12352. ::google::protobuf::Metadata packetl2c_player_auto_levelup::GetMetadata() const {
  12353. protobuf_AssignDescriptorsOnce();
  12354. ::google::protobuf::Metadata metadata;
  12355. metadata.descriptor = packetl2c_player_auto_levelup_descriptor_;
  12356. metadata.reflection = packetl2c_player_auto_levelup_reflection_;
  12357. return metadata;
  12358. }
  12359. // ===================================================================
  12360. #ifndef _MSC_VER
  12361. const int packetl2c_give_item_result::kPacketIdFieldNumber;
  12362. const int packetl2c_give_item_result::kItemidFieldNumber;
  12363. const int packetl2c_give_item_result::kItemcountFieldNumber;
  12364. #endif // !_MSC_VER
  12365. packetl2c_give_item_result::packetl2c_give_item_result()
  12366. : ::google::protobuf::Message() {
  12367. SharedCtor();
  12368. }
  12369. void packetl2c_give_item_result::InitAsDefaultInstance() {
  12370. }
  12371. packetl2c_give_item_result::packetl2c_give_item_result(const packetl2c_give_item_result& from)
  12372. : ::google::protobuf::Message() {
  12373. SharedCtor();
  12374. MergeFrom(from);
  12375. }
  12376. void packetl2c_give_item_result::SharedCtor() {
  12377. _cached_size_ = 0;
  12378. packet_id_ = 15109;
  12379. itemid_ = 0;
  12380. itemcount_ = 1;
  12381. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  12382. }
  12383. packetl2c_give_item_result::~packetl2c_give_item_result() {
  12384. SharedDtor();
  12385. }
  12386. void packetl2c_give_item_result::SharedDtor() {
  12387. if (this != default_instance_) {
  12388. }
  12389. }
  12390. void packetl2c_give_item_result::SetCachedSize(int size) const {
  12391. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  12392. _cached_size_ = size;
  12393. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  12394. }
  12395. const ::google::protobuf::Descriptor* packetl2c_give_item_result::descriptor() {
  12396. protobuf_AssignDescriptorsOnce();
  12397. return packetl2c_give_item_result_descriptor_;
  12398. }
  12399. const packetl2c_give_item_result& packetl2c_give_item_result::default_instance() {
  12400. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  12401. return *default_instance_;
  12402. }
  12403. packetl2c_give_item_result* packetl2c_give_item_result::default_instance_ = NULL;
  12404. packetl2c_give_item_result* packetl2c_give_item_result::New() const {
  12405. return new packetl2c_give_item_result;
  12406. }
  12407. void packetl2c_give_item_result::Clear() {
  12408. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  12409. packet_id_ = 15109;
  12410. itemid_ = 0;
  12411. itemcount_ = 1;
  12412. }
  12413. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  12414. mutable_unknown_fields()->Clear();
  12415. }
  12416. bool packetl2c_give_item_result::MergePartialFromCodedStream(
  12417. ::google::protobuf::io::CodedInputStream* input) {
  12418. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  12419. ::google::protobuf::uint32 tag;
  12420. while ((tag = input->ReadTag()) != 0) {
  12421. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  12422. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_give_item_result];
  12423. case 1: {
  12424. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  12425. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  12426. int value;
  12427. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  12428. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  12429. input, &value)));
  12430. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  12431. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  12432. } else {
  12433. mutable_unknown_fields()->AddVarint(1, value);
  12434. }
  12435. } else {
  12436. goto handle_uninterpreted;
  12437. }
  12438. if (input->ExpectTag(16)) goto parse_itemid;
  12439. break;
  12440. }
  12441. // optional int32 itemid = 2;
  12442. case 2: {
  12443. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  12444. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  12445. parse_itemid:
  12446. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  12447. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  12448. input, &itemid_)));
  12449. set_has_itemid();
  12450. } else {
  12451. goto handle_uninterpreted;
  12452. }
  12453. if (input->ExpectTag(24)) goto parse_itemcount;
  12454. break;
  12455. }
  12456. // optional int32 itemcount = 3 [default = 1];
  12457. case 3: {
  12458. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  12459. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  12460. parse_itemcount:
  12461. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  12462. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  12463. input, &itemcount_)));
  12464. set_has_itemcount();
  12465. } else {
  12466. goto handle_uninterpreted;
  12467. }
  12468. if (input->ExpectAtEnd()) return true;
  12469. break;
  12470. }
  12471. default: {
  12472. handle_uninterpreted:
  12473. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  12474. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  12475. return true;
  12476. }
  12477. DO_(::google::protobuf::internal::WireFormat::SkipField(
  12478. input, tag, mutable_unknown_fields()));
  12479. break;
  12480. }
  12481. }
  12482. }
  12483. return true;
  12484. #undef DO_
  12485. }
  12486. void packetl2c_give_item_result::SerializeWithCachedSizes(
  12487. ::google::protobuf::io::CodedOutputStream* output) const {
  12488. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_give_item_result];
  12489. if (has_packet_id()) {
  12490. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  12491. 1, this->packet_id(), output);
  12492. }
  12493. // optional int32 itemid = 2;
  12494. if (has_itemid()) {
  12495. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->itemid(), output);
  12496. }
  12497. // optional int32 itemcount = 3 [default = 1];
  12498. if (has_itemcount()) {
  12499. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->itemcount(), output);
  12500. }
  12501. if (!unknown_fields().empty()) {
  12502. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  12503. unknown_fields(), output);
  12504. }
  12505. }
  12506. ::google::protobuf::uint8* packetl2c_give_item_result::SerializeWithCachedSizesToArray(
  12507. ::google::protobuf::uint8* target) const {
  12508. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_give_item_result];
  12509. if (has_packet_id()) {
  12510. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  12511. 1, this->packet_id(), target);
  12512. }
  12513. // optional int32 itemid = 2;
  12514. if (has_itemid()) {
  12515. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->itemid(), target);
  12516. }
  12517. // optional int32 itemcount = 3 [default = 1];
  12518. if (has_itemcount()) {
  12519. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->itemcount(), target);
  12520. }
  12521. if (!unknown_fields().empty()) {
  12522. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  12523. unknown_fields(), target);
  12524. }
  12525. return target;
  12526. }
  12527. int packetl2c_give_item_result::ByteSize() const {
  12528. int total_size = 0;
  12529. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  12530. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_give_item_result];
  12531. if (has_packet_id()) {
  12532. total_size += 1 +
  12533. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  12534. }
  12535. // optional int32 itemid = 2;
  12536. if (has_itemid()) {
  12537. total_size += 1 +
  12538. ::google::protobuf::internal::WireFormatLite::Int32Size(
  12539. this->itemid());
  12540. }
  12541. // optional int32 itemcount = 3 [default = 1];
  12542. if (has_itemcount()) {
  12543. total_size += 1 +
  12544. ::google::protobuf::internal::WireFormatLite::Int32Size(
  12545. this->itemcount());
  12546. }
  12547. }
  12548. if (!unknown_fields().empty()) {
  12549. total_size +=
  12550. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  12551. unknown_fields());
  12552. }
  12553. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  12554. _cached_size_ = total_size;
  12555. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  12556. return total_size;
  12557. }
  12558. void packetl2c_give_item_result::MergeFrom(const ::google::protobuf::Message& from) {
  12559. GOOGLE_CHECK_NE(&from, this);
  12560. const packetl2c_give_item_result* source =
  12561. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_give_item_result*>(
  12562. &from);
  12563. if (source == NULL) {
  12564. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  12565. } else {
  12566. MergeFrom(*source);
  12567. }
  12568. }
  12569. void packetl2c_give_item_result::MergeFrom(const packetl2c_give_item_result& from) {
  12570. GOOGLE_CHECK_NE(&from, this);
  12571. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  12572. if (from.has_packet_id()) {
  12573. set_packet_id(from.packet_id());
  12574. }
  12575. if (from.has_itemid()) {
  12576. set_itemid(from.itemid());
  12577. }
  12578. if (from.has_itemcount()) {
  12579. set_itemcount(from.itemcount());
  12580. }
  12581. }
  12582. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  12583. }
  12584. void packetl2c_give_item_result::CopyFrom(const ::google::protobuf::Message& from) {
  12585. if (&from == this) return;
  12586. Clear();
  12587. MergeFrom(from);
  12588. }
  12589. void packetl2c_give_item_result::CopyFrom(const packetl2c_give_item_result& from) {
  12590. if (&from == this) return;
  12591. Clear();
  12592. MergeFrom(from);
  12593. }
  12594. bool packetl2c_give_item_result::IsInitialized() const {
  12595. return true;
  12596. }
  12597. void packetl2c_give_item_result::Swap(packetl2c_give_item_result* other) {
  12598. if (other != this) {
  12599. std::swap(packet_id_, other->packet_id_);
  12600. std::swap(itemid_, other->itemid_);
  12601. std::swap(itemcount_, other->itemcount_);
  12602. std::swap(_has_bits_[0], other->_has_bits_[0]);
  12603. _unknown_fields_.Swap(&other->_unknown_fields_);
  12604. std::swap(_cached_size_, other->_cached_size_);
  12605. }
  12606. }
  12607. ::google::protobuf::Metadata packetl2c_give_item_result::GetMetadata() const {
  12608. protobuf_AssignDescriptorsOnce();
  12609. ::google::protobuf::Metadata metadata;
  12610. metadata.descriptor = packetl2c_give_item_result_descriptor_;
  12611. metadata.reflection = packetl2c_give_item_result_reflection_;
  12612. return metadata;
  12613. }
  12614. // ===================================================================
  12615. #ifndef _MSC_VER
  12616. const int packetc2l_buy_func_item::kPacketIdFieldNumber;
  12617. const int packetc2l_buy_func_item::kItemIdFieldNumber;
  12618. const int packetc2l_buy_func_item::kItemCountFieldNumber;
  12619. #endif // !_MSC_VER
  12620. packetc2l_buy_func_item::packetc2l_buy_func_item()
  12621. : ::google::protobuf::Message() {
  12622. SharedCtor();
  12623. }
  12624. void packetc2l_buy_func_item::InitAsDefaultInstance() {
  12625. }
  12626. packetc2l_buy_func_item::packetc2l_buy_func_item(const packetc2l_buy_func_item& from)
  12627. : ::google::protobuf::Message() {
  12628. SharedCtor();
  12629. MergeFrom(from);
  12630. }
  12631. void packetc2l_buy_func_item::SharedCtor() {
  12632. _cached_size_ = 0;
  12633. packet_id_ = 10124;
  12634. item_id_ = 0;
  12635. item_count_ = 1;
  12636. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  12637. }
  12638. packetc2l_buy_func_item::~packetc2l_buy_func_item() {
  12639. SharedDtor();
  12640. }
  12641. void packetc2l_buy_func_item::SharedDtor() {
  12642. if (this != default_instance_) {
  12643. }
  12644. }
  12645. void packetc2l_buy_func_item::SetCachedSize(int size) const {
  12646. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  12647. _cached_size_ = size;
  12648. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  12649. }
  12650. const ::google::protobuf::Descriptor* packetc2l_buy_func_item::descriptor() {
  12651. protobuf_AssignDescriptorsOnce();
  12652. return packetc2l_buy_func_item_descriptor_;
  12653. }
  12654. const packetc2l_buy_func_item& packetc2l_buy_func_item::default_instance() {
  12655. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  12656. return *default_instance_;
  12657. }
  12658. packetc2l_buy_func_item* packetc2l_buy_func_item::default_instance_ = NULL;
  12659. packetc2l_buy_func_item* packetc2l_buy_func_item::New() const {
  12660. return new packetc2l_buy_func_item;
  12661. }
  12662. void packetc2l_buy_func_item::Clear() {
  12663. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  12664. packet_id_ = 10124;
  12665. item_id_ = 0;
  12666. item_count_ = 1;
  12667. }
  12668. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  12669. mutable_unknown_fields()->Clear();
  12670. }
  12671. bool packetc2l_buy_func_item::MergePartialFromCodedStream(
  12672. ::google::protobuf::io::CodedInputStream* input) {
  12673. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  12674. ::google::protobuf::uint32 tag;
  12675. while ((tag = input->ReadTag()) != 0) {
  12676. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  12677. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_buy_func_item];
  12678. case 1: {
  12679. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  12680. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  12681. int value;
  12682. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  12683. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  12684. input, &value)));
  12685. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  12686. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  12687. } else {
  12688. mutable_unknown_fields()->AddVarint(1, value);
  12689. }
  12690. } else {
  12691. goto handle_uninterpreted;
  12692. }
  12693. if (input->ExpectTag(16)) goto parse_item_id;
  12694. break;
  12695. }
  12696. // optional int32 item_id = 2;
  12697. case 2: {
  12698. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  12699. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  12700. parse_item_id:
  12701. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  12702. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  12703. input, &item_id_)));
  12704. set_has_item_id();
  12705. } else {
  12706. goto handle_uninterpreted;
  12707. }
  12708. if (input->ExpectTag(24)) goto parse_item_count;
  12709. break;
  12710. }
  12711. // optional int32 item_count = 3 [default = 1];
  12712. case 3: {
  12713. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  12714. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  12715. parse_item_count:
  12716. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  12717. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  12718. input, &item_count_)));
  12719. set_has_item_count();
  12720. } else {
  12721. goto handle_uninterpreted;
  12722. }
  12723. if (input->ExpectAtEnd()) return true;
  12724. break;
  12725. }
  12726. default: {
  12727. handle_uninterpreted:
  12728. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  12729. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  12730. return true;
  12731. }
  12732. DO_(::google::protobuf::internal::WireFormat::SkipField(
  12733. input, tag, mutable_unknown_fields()));
  12734. break;
  12735. }
  12736. }
  12737. }
  12738. return true;
  12739. #undef DO_
  12740. }
  12741. void packetc2l_buy_func_item::SerializeWithCachedSizes(
  12742. ::google::protobuf::io::CodedOutputStream* output) const {
  12743. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_buy_func_item];
  12744. if (has_packet_id()) {
  12745. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  12746. 1, this->packet_id(), output);
  12747. }
  12748. // optional int32 item_id = 2;
  12749. if (has_item_id()) {
  12750. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->item_id(), output);
  12751. }
  12752. // optional int32 item_count = 3 [default = 1];
  12753. if (has_item_count()) {
  12754. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->item_count(), output);
  12755. }
  12756. if (!unknown_fields().empty()) {
  12757. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  12758. unknown_fields(), output);
  12759. }
  12760. }
  12761. ::google::protobuf::uint8* packetc2l_buy_func_item::SerializeWithCachedSizesToArray(
  12762. ::google::protobuf::uint8* target) const {
  12763. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_buy_func_item];
  12764. if (has_packet_id()) {
  12765. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  12766. 1, this->packet_id(), target);
  12767. }
  12768. // optional int32 item_id = 2;
  12769. if (has_item_id()) {
  12770. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->item_id(), target);
  12771. }
  12772. // optional int32 item_count = 3 [default = 1];
  12773. if (has_item_count()) {
  12774. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->item_count(), target);
  12775. }
  12776. if (!unknown_fields().empty()) {
  12777. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  12778. unknown_fields(), target);
  12779. }
  12780. return target;
  12781. }
  12782. int packetc2l_buy_func_item::ByteSize() const {
  12783. int total_size = 0;
  12784. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  12785. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_buy_func_item];
  12786. if (has_packet_id()) {
  12787. total_size += 1 +
  12788. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  12789. }
  12790. // optional int32 item_id = 2;
  12791. if (has_item_id()) {
  12792. total_size += 1 +
  12793. ::google::protobuf::internal::WireFormatLite::Int32Size(
  12794. this->item_id());
  12795. }
  12796. // optional int32 item_count = 3 [default = 1];
  12797. if (has_item_count()) {
  12798. total_size += 1 +
  12799. ::google::protobuf::internal::WireFormatLite::Int32Size(
  12800. this->item_count());
  12801. }
  12802. }
  12803. if (!unknown_fields().empty()) {
  12804. total_size +=
  12805. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  12806. unknown_fields());
  12807. }
  12808. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  12809. _cached_size_ = total_size;
  12810. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  12811. return total_size;
  12812. }
  12813. void packetc2l_buy_func_item::MergeFrom(const ::google::protobuf::Message& from) {
  12814. GOOGLE_CHECK_NE(&from, this);
  12815. const packetc2l_buy_func_item* source =
  12816. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_buy_func_item*>(
  12817. &from);
  12818. if (source == NULL) {
  12819. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  12820. } else {
  12821. MergeFrom(*source);
  12822. }
  12823. }
  12824. void packetc2l_buy_func_item::MergeFrom(const packetc2l_buy_func_item& from) {
  12825. GOOGLE_CHECK_NE(&from, this);
  12826. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  12827. if (from.has_packet_id()) {
  12828. set_packet_id(from.packet_id());
  12829. }
  12830. if (from.has_item_id()) {
  12831. set_item_id(from.item_id());
  12832. }
  12833. if (from.has_item_count()) {
  12834. set_item_count(from.item_count());
  12835. }
  12836. }
  12837. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  12838. }
  12839. void packetc2l_buy_func_item::CopyFrom(const ::google::protobuf::Message& from) {
  12840. if (&from == this) return;
  12841. Clear();
  12842. MergeFrom(from);
  12843. }
  12844. void packetc2l_buy_func_item::CopyFrom(const packetc2l_buy_func_item& from) {
  12845. if (&from == this) return;
  12846. Clear();
  12847. MergeFrom(from);
  12848. }
  12849. bool packetc2l_buy_func_item::IsInitialized() const {
  12850. return true;
  12851. }
  12852. void packetc2l_buy_func_item::Swap(packetc2l_buy_func_item* other) {
  12853. if (other != this) {
  12854. std::swap(packet_id_, other->packet_id_);
  12855. std::swap(item_id_, other->item_id_);
  12856. std::swap(item_count_, other->item_count_);
  12857. std::swap(_has_bits_[0], other->_has_bits_[0]);
  12858. _unknown_fields_.Swap(&other->_unknown_fields_);
  12859. std::swap(_cached_size_, other->_cached_size_);
  12860. }
  12861. }
  12862. ::google::protobuf::Metadata packetc2l_buy_func_item::GetMetadata() const {
  12863. protobuf_AssignDescriptorsOnce();
  12864. ::google::protobuf::Metadata metadata;
  12865. metadata.descriptor = packetc2l_buy_func_item_descriptor_;
  12866. metadata.reflection = packetc2l_buy_func_item_reflection_;
  12867. return metadata;
  12868. }
  12869. // ===================================================================
  12870. #ifndef _MSC_VER
  12871. const int packetl2c_buy_func_item_result::kPacketIdFieldNumber;
  12872. const int packetl2c_buy_func_item_result::kItemIdFieldNumber;
  12873. const int packetl2c_buy_func_item_result::kResultFieldNumber;
  12874. const int packetl2c_buy_func_item_result::kItemCountFieldNumber;
  12875. #endif // !_MSC_VER
  12876. packetl2c_buy_func_item_result::packetl2c_buy_func_item_result()
  12877. : ::google::protobuf::Message() {
  12878. SharedCtor();
  12879. }
  12880. void packetl2c_buy_func_item_result::InitAsDefaultInstance() {
  12881. }
  12882. packetl2c_buy_func_item_result::packetl2c_buy_func_item_result(const packetl2c_buy_func_item_result& from)
  12883. : ::google::protobuf::Message() {
  12884. SharedCtor();
  12885. MergeFrom(from);
  12886. }
  12887. void packetl2c_buy_func_item_result::SharedCtor() {
  12888. _cached_size_ = 0;
  12889. packet_id_ = 16107;
  12890. item_id_ = 0;
  12891. result_ = 2;
  12892. item_count_ = 1;
  12893. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  12894. }
  12895. packetl2c_buy_func_item_result::~packetl2c_buy_func_item_result() {
  12896. SharedDtor();
  12897. }
  12898. void packetl2c_buy_func_item_result::SharedDtor() {
  12899. if (this != default_instance_) {
  12900. }
  12901. }
  12902. void packetl2c_buy_func_item_result::SetCachedSize(int size) const {
  12903. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  12904. _cached_size_ = size;
  12905. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  12906. }
  12907. const ::google::protobuf::Descriptor* packetl2c_buy_func_item_result::descriptor() {
  12908. protobuf_AssignDescriptorsOnce();
  12909. return packetl2c_buy_func_item_result_descriptor_;
  12910. }
  12911. const packetl2c_buy_func_item_result& packetl2c_buy_func_item_result::default_instance() {
  12912. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  12913. return *default_instance_;
  12914. }
  12915. packetl2c_buy_func_item_result* packetl2c_buy_func_item_result::default_instance_ = NULL;
  12916. packetl2c_buy_func_item_result* packetl2c_buy_func_item_result::New() const {
  12917. return new packetl2c_buy_func_item_result;
  12918. }
  12919. void packetl2c_buy_func_item_result::Clear() {
  12920. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  12921. packet_id_ = 16107;
  12922. item_id_ = 0;
  12923. result_ = 2;
  12924. item_count_ = 1;
  12925. }
  12926. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  12927. mutable_unknown_fields()->Clear();
  12928. }
  12929. bool packetl2c_buy_func_item_result::MergePartialFromCodedStream(
  12930. ::google::protobuf::io::CodedInputStream* input) {
  12931. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  12932. ::google::protobuf::uint32 tag;
  12933. while ((tag = input->ReadTag()) != 0) {
  12934. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  12935. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_buy_func_item_result];
  12936. case 1: {
  12937. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  12938. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  12939. int value;
  12940. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  12941. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  12942. input, &value)));
  12943. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  12944. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  12945. } else {
  12946. mutable_unknown_fields()->AddVarint(1, value);
  12947. }
  12948. } else {
  12949. goto handle_uninterpreted;
  12950. }
  12951. if (input->ExpectTag(16)) goto parse_item_id;
  12952. break;
  12953. }
  12954. // optional int32 item_id = 2;
  12955. case 2: {
  12956. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  12957. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  12958. parse_item_id:
  12959. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  12960. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  12961. input, &item_id_)));
  12962. set_has_item_id();
  12963. } else {
  12964. goto handle_uninterpreted;
  12965. }
  12966. if (input->ExpectTag(24)) goto parse_result;
  12967. break;
  12968. }
  12969. // optional .msg_type_def.e_msg_result_def result = 3 [default = e_rmt_fail];
  12970. case 3: {
  12971. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  12972. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  12973. parse_result:
  12974. int value;
  12975. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  12976. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  12977. input, &value)));
  12978. if (::msg_type_def::e_msg_result_def_IsValid(value)) {
  12979. set_result(static_cast< ::msg_type_def::e_msg_result_def >(value));
  12980. } else {
  12981. mutable_unknown_fields()->AddVarint(3, value);
  12982. }
  12983. } else {
  12984. goto handle_uninterpreted;
  12985. }
  12986. if (input->ExpectTag(32)) goto parse_item_count;
  12987. break;
  12988. }
  12989. // optional int32 item_count = 4 [default = 1];
  12990. case 4: {
  12991. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  12992. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  12993. parse_item_count:
  12994. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  12995. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  12996. input, &item_count_)));
  12997. set_has_item_count();
  12998. } else {
  12999. goto handle_uninterpreted;
  13000. }
  13001. if (input->ExpectAtEnd()) return true;
  13002. break;
  13003. }
  13004. default: {
  13005. handle_uninterpreted:
  13006. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  13007. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  13008. return true;
  13009. }
  13010. DO_(::google::protobuf::internal::WireFormat::SkipField(
  13011. input, tag, mutable_unknown_fields()));
  13012. break;
  13013. }
  13014. }
  13015. }
  13016. return true;
  13017. #undef DO_
  13018. }
  13019. void packetl2c_buy_func_item_result::SerializeWithCachedSizes(
  13020. ::google::protobuf::io::CodedOutputStream* output) const {
  13021. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_buy_func_item_result];
  13022. if (has_packet_id()) {
  13023. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  13024. 1, this->packet_id(), output);
  13025. }
  13026. // optional int32 item_id = 2;
  13027. if (has_item_id()) {
  13028. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->item_id(), output);
  13029. }
  13030. // optional .msg_type_def.e_msg_result_def result = 3 [default = e_rmt_fail];
  13031. if (has_result()) {
  13032. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  13033. 3, this->result(), output);
  13034. }
  13035. // optional int32 item_count = 4 [default = 1];
  13036. if (has_item_count()) {
  13037. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->item_count(), output);
  13038. }
  13039. if (!unknown_fields().empty()) {
  13040. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  13041. unknown_fields(), output);
  13042. }
  13043. }
  13044. ::google::protobuf::uint8* packetl2c_buy_func_item_result::SerializeWithCachedSizesToArray(
  13045. ::google::protobuf::uint8* target) const {
  13046. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_buy_func_item_result];
  13047. if (has_packet_id()) {
  13048. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  13049. 1, this->packet_id(), target);
  13050. }
  13051. // optional int32 item_id = 2;
  13052. if (has_item_id()) {
  13053. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->item_id(), target);
  13054. }
  13055. // optional .msg_type_def.e_msg_result_def result = 3 [default = e_rmt_fail];
  13056. if (has_result()) {
  13057. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  13058. 3, this->result(), target);
  13059. }
  13060. // optional int32 item_count = 4 [default = 1];
  13061. if (has_item_count()) {
  13062. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->item_count(), target);
  13063. }
  13064. if (!unknown_fields().empty()) {
  13065. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  13066. unknown_fields(), target);
  13067. }
  13068. return target;
  13069. }
  13070. int packetl2c_buy_func_item_result::ByteSize() const {
  13071. int total_size = 0;
  13072. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  13073. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_buy_func_item_result];
  13074. if (has_packet_id()) {
  13075. total_size += 1 +
  13076. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  13077. }
  13078. // optional int32 item_id = 2;
  13079. if (has_item_id()) {
  13080. total_size += 1 +
  13081. ::google::protobuf::internal::WireFormatLite::Int32Size(
  13082. this->item_id());
  13083. }
  13084. // optional .msg_type_def.e_msg_result_def result = 3 [default = e_rmt_fail];
  13085. if (has_result()) {
  13086. total_size += 1 +
  13087. ::google::protobuf::internal::WireFormatLite::EnumSize(this->result());
  13088. }
  13089. // optional int32 item_count = 4 [default = 1];
  13090. if (has_item_count()) {
  13091. total_size += 1 +
  13092. ::google::protobuf::internal::WireFormatLite::Int32Size(
  13093. this->item_count());
  13094. }
  13095. }
  13096. if (!unknown_fields().empty()) {
  13097. total_size +=
  13098. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  13099. unknown_fields());
  13100. }
  13101. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  13102. _cached_size_ = total_size;
  13103. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  13104. return total_size;
  13105. }
  13106. void packetl2c_buy_func_item_result::MergeFrom(const ::google::protobuf::Message& from) {
  13107. GOOGLE_CHECK_NE(&from, this);
  13108. const packetl2c_buy_func_item_result* source =
  13109. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_buy_func_item_result*>(
  13110. &from);
  13111. if (source == NULL) {
  13112. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  13113. } else {
  13114. MergeFrom(*source);
  13115. }
  13116. }
  13117. void packetl2c_buy_func_item_result::MergeFrom(const packetl2c_buy_func_item_result& from) {
  13118. GOOGLE_CHECK_NE(&from, this);
  13119. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  13120. if (from.has_packet_id()) {
  13121. set_packet_id(from.packet_id());
  13122. }
  13123. if (from.has_item_id()) {
  13124. set_item_id(from.item_id());
  13125. }
  13126. if (from.has_result()) {
  13127. set_result(from.result());
  13128. }
  13129. if (from.has_item_count()) {
  13130. set_item_count(from.item_count());
  13131. }
  13132. }
  13133. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  13134. }
  13135. void packetl2c_buy_func_item_result::CopyFrom(const ::google::protobuf::Message& from) {
  13136. if (&from == this) return;
  13137. Clear();
  13138. MergeFrom(from);
  13139. }
  13140. void packetl2c_buy_func_item_result::CopyFrom(const packetl2c_buy_func_item_result& from) {
  13141. if (&from == this) return;
  13142. Clear();
  13143. MergeFrom(from);
  13144. }
  13145. bool packetl2c_buy_func_item_result::IsInitialized() const {
  13146. return true;
  13147. }
  13148. void packetl2c_buy_func_item_result::Swap(packetl2c_buy_func_item_result* other) {
  13149. if (other != this) {
  13150. std::swap(packet_id_, other->packet_id_);
  13151. std::swap(item_id_, other->item_id_);
  13152. std::swap(result_, other->result_);
  13153. std::swap(item_count_, other->item_count_);
  13154. std::swap(_has_bits_[0], other->_has_bits_[0]);
  13155. _unknown_fields_.Swap(&other->_unknown_fields_);
  13156. std::swap(_cached_size_, other->_cached_size_);
  13157. }
  13158. }
  13159. ::google::protobuf::Metadata packetl2c_buy_func_item_result::GetMetadata() const {
  13160. protobuf_AssignDescriptorsOnce();
  13161. ::google::protobuf::Metadata metadata;
  13162. metadata.descriptor = packetl2c_buy_func_item_result_descriptor_;
  13163. metadata.reflection = packetl2c_buy_func_item_result_reflection_;
  13164. return metadata;
  13165. }
  13166. // ===================================================================
  13167. #ifndef _MSC_VER
  13168. const int packetc2l_torpedo_exchange::kPacketIdFieldNumber;
  13169. const int packetc2l_torpedo_exchange::kTypeFieldNumber;
  13170. const int packetc2l_torpedo_exchange::kTorpedoIdFieldNumber;
  13171. const int packetc2l_torpedo_exchange::kTorpedoCountFieldNumber;
  13172. #endif // !_MSC_VER
  13173. packetc2l_torpedo_exchange::packetc2l_torpedo_exchange()
  13174. : ::google::protobuf::Message() {
  13175. SharedCtor();
  13176. }
  13177. void packetc2l_torpedo_exchange::InitAsDefaultInstance() {
  13178. }
  13179. packetc2l_torpedo_exchange::packetc2l_torpedo_exchange(const packetc2l_torpedo_exchange& from)
  13180. : ::google::protobuf::Message() {
  13181. SharedCtor();
  13182. MergeFrom(from);
  13183. }
  13184. void packetc2l_torpedo_exchange::SharedCtor() {
  13185. _cached_size_ = 0;
  13186. packet_id_ = 10127;
  13187. type_ = 0;
  13188. torpedo_id_ = 0;
  13189. torpedo_count_ = 0;
  13190. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  13191. }
  13192. packetc2l_torpedo_exchange::~packetc2l_torpedo_exchange() {
  13193. SharedDtor();
  13194. }
  13195. void packetc2l_torpedo_exchange::SharedDtor() {
  13196. if (this != default_instance_) {
  13197. }
  13198. }
  13199. void packetc2l_torpedo_exchange::SetCachedSize(int size) const {
  13200. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  13201. _cached_size_ = size;
  13202. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  13203. }
  13204. const ::google::protobuf::Descriptor* packetc2l_torpedo_exchange::descriptor() {
  13205. protobuf_AssignDescriptorsOnce();
  13206. return packetc2l_torpedo_exchange_descriptor_;
  13207. }
  13208. const packetc2l_torpedo_exchange& packetc2l_torpedo_exchange::default_instance() {
  13209. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  13210. return *default_instance_;
  13211. }
  13212. packetc2l_torpedo_exchange* packetc2l_torpedo_exchange::default_instance_ = NULL;
  13213. packetc2l_torpedo_exchange* packetc2l_torpedo_exchange::New() const {
  13214. return new packetc2l_torpedo_exchange;
  13215. }
  13216. void packetc2l_torpedo_exchange::Clear() {
  13217. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  13218. packet_id_ = 10127;
  13219. type_ = 0;
  13220. torpedo_id_ = 0;
  13221. torpedo_count_ = 0;
  13222. }
  13223. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  13224. mutable_unknown_fields()->Clear();
  13225. }
  13226. bool packetc2l_torpedo_exchange::MergePartialFromCodedStream(
  13227. ::google::protobuf::io::CodedInputStream* input) {
  13228. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  13229. ::google::protobuf::uint32 tag;
  13230. while ((tag = input->ReadTag()) != 0) {
  13231. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  13232. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_torpedo_exchange];
  13233. case 1: {
  13234. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  13235. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  13236. int value;
  13237. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  13238. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  13239. input, &value)));
  13240. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  13241. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  13242. } else {
  13243. mutable_unknown_fields()->AddVarint(1, value);
  13244. }
  13245. } else {
  13246. goto handle_uninterpreted;
  13247. }
  13248. if (input->ExpectTag(16)) goto parse_type;
  13249. break;
  13250. }
  13251. // optional int32 type = 2;
  13252. case 2: {
  13253. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  13254. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  13255. parse_type:
  13256. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  13257. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  13258. input, &type_)));
  13259. set_has_type();
  13260. } else {
  13261. goto handle_uninterpreted;
  13262. }
  13263. if (input->ExpectTag(24)) goto parse_torpedo_id;
  13264. break;
  13265. }
  13266. // optional int32 torpedo_id = 3;
  13267. case 3: {
  13268. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  13269. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  13270. parse_torpedo_id:
  13271. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  13272. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  13273. input, &torpedo_id_)));
  13274. set_has_torpedo_id();
  13275. } else {
  13276. goto handle_uninterpreted;
  13277. }
  13278. if (input->ExpectTag(32)) goto parse_torpedo_count;
  13279. break;
  13280. }
  13281. // optional int32 torpedo_count = 4;
  13282. case 4: {
  13283. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  13284. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  13285. parse_torpedo_count:
  13286. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  13287. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  13288. input, &torpedo_count_)));
  13289. set_has_torpedo_count();
  13290. } else {
  13291. goto handle_uninterpreted;
  13292. }
  13293. if (input->ExpectAtEnd()) return true;
  13294. break;
  13295. }
  13296. default: {
  13297. handle_uninterpreted:
  13298. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  13299. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  13300. return true;
  13301. }
  13302. DO_(::google::protobuf::internal::WireFormat::SkipField(
  13303. input, tag, mutable_unknown_fields()));
  13304. break;
  13305. }
  13306. }
  13307. }
  13308. return true;
  13309. #undef DO_
  13310. }
  13311. void packetc2l_torpedo_exchange::SerializeWithCachedSizes(
  13312. ::google::protobuf::io::CodedOutputStream* output) const {
  13313. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_torpedo_exchange];
  13314. if (has_packet_id()) {
  13315. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  13316. 1, this->packet_id(), output);
  13317. }
  13318. // optional int32 type = 2;
  13319. if (has_type()) {
  13320. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->type(), output);
  13321. }
  13322. // optional int32 torpedo_id = 3;
  13323. if (has_torpedo_id()) {
  13324. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->torpedo_id(), output);
  13325. }
  13326. // optional int32 torpedo_count = 4;
  13327. if (has_torpedo_count()) {
  13328. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->torpedo_count(), output);
  13329. }
  13330. if (!unknown_fields().empty()) {
  13331. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  13332. unknown_fields(), output);
  13333. }
  13334. }
  13335. ::google::protobuf::uint8* packetc2l_torpedo_exchange::SerializeWithCachedSizesToArray(
  13336. ::google::protobuf::uint8* target) const {
  13337. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_torpedo_exchange];
  13338. if (has_packet_id()) {
  13339. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  13340. 1, this->packet_id(), target);
  13341. }
  13342. // optional int32 type = 2;
  13343. if (has_type()) {
  13344. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->type(), target);
  13345. }
  13346. // optional int32 torpedo_id = 3;
  13347. if (has_torpedo_id()) {
  13348. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->torpedo_id(), target);
  13349. }
  13350. // optional int32 torpedo_count = 4;
  13351. if (has_torpedo_count()) {
  13352. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->torpedo_count(), target);
  13353. }
  13354. if (!unknown_fields().empty()) {
  13355. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  13356. unknown_fields(), target);
  13357. }
  13358. return target;
  13359. }
  13360. int packetc2l_torpedo_exchange::ByteSize() const {
  13361. int total_size = 0;
  13362. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  13363. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_torpedo_exchange];
  13364. if (has_packet_id()) {
  13365. total_size += 1 +
  13366. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  13367. }
  13368. // optional int32 type = 2;
  13369. if (has_type()) {
  13370. total_size += 1 +
  13371. ::google::protobuf::internal::WireFormatLite::Int32Size(
  13372. this->type());
  13373. }
  13374. // optional int32 torpedo_id = 3;
  13375. if (has_torpedo_id()) {
  13376. total_size += 1 +
  13377. ::google::protobuf::internal::WireFormatLite::Int32Size(
  13378. this->torpedo_id());
  13379. }
  13380. // optional int32 torpedo_count = 4;
  13381. if (has_torpedo_count()) {
  13382. total_size += 1 +
  13383. ::google::protobuf::internal::WireFormatLite::Int32Size(
  13384. this->torpedo_count());
  13385. }
  13386. }
  13387. if (!unknown_fields().empty()) {
  13388. total_size +=
  13389. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  13390. unknown_fields());
  13391. }
  13392. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  13393. _cached_size_ = total_size;
  13394. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  13395. return total_size;
  13396. }
  13397. void packetc2l_torpedo_exchange::MergeFrom(const ::google::protobuf::Message& from) {
  13398. GOOGLE_CHECK_NE(&from, this);
  13399. const packetc2l_torpedo_exchange* source =
  13400. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_torpedo_exchange*>(
  13401. &from);
  13402. if (source == NULL) {
  13403. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  13404. } else {
  13405. MergeFrom(*source);
  13406. }
  13407. }
  13408. void packetc2l_torpedo_exchange::MergeFrom(const packetc2l_torpedo_exchange& from) {
  13409. GOOGLE_CHECK_NE(&from, this);
  13410. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  13411. if (from.has_packet_id()) {
  13412. set_packet_id(from.packet_id());
  13413. }
  13414. if (from.has_type()) {
  13415. set_type(from.type());
  13416. }
  13417. if (from.has_torpedo_id()) {
  13418. set_torpedo_id(from.torpedo_id());
  13419. }
  13420. if (from.has_torpedo_count()) {
  13421. set_torpedo_count(from.torpedo_count());
  13422. }
  13423. }
  13424. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  13425. }
  13426. void packetc2l_torpedo_exchange::CopyFrom(const ::google::protobuf::Message& from) {
  13427. if (&from == this) return;
  13428. Clear();
  13429. MergeFrom(from);
  13430. }
  13431. void packetc2l_torpedo_exchange::CopyFrom(const packetc2l_torpedo_exchange& from) {
  13432. if (&from == this) return;
  13433. Clear();
  13434. MergeFrom(from);
  13435. }
  13436. bool packetc2l_torpedo_exchange::IsInitialized() const {
  13437. return true;
  13438. }
  13439. void packetc2l_torpedo_exchange::Swap(packetc2l_torpedo_exchange* other) {
  13440. if (other != this) {
  13441. std::swap(packet_id_, other->packet_id_);
  13442. std::swap(type_, other->type_);
  13443. std::swap(torpedo_id_, other->torpedo_id_);
  13444. std::swap(torpedo_count_, other->torpedo_count_);
  13445. std::swap(_has_bits_[0], other->_has_bits_[0]);
  13446. _unknown_fields_.Swap(&other->_unknown_fields_);
  13447. std::swap(_cached_size_, other->_cached_size_);
  13448. }
  13449. }
  13450. ::google::protobuf::Metadata packetc2l_torpedo_exchange::GetMetadata() const {
  13451. protobuf_AssignDescriptorsOnce();
  13452. ::google::protobuf::Metadata metadata;
  13453. metadata.descriptor = packetc2l_torpedo_exchange_descriptor_;
  13454. metadata.reflection = packetc2l_torpedo_exchange_reflection_;
  13455. return metadata;
  13456. }
  13457. // ===================================================================
  13458. #ifndef _MSC_VER
  13459. const int packetl2c_torpedo_exchange_result::kPacketIdFieldNumber;
  13460. const int packetl2c_torpedo_exchange_result::kResultFieldNumber;
  13461. const int packetl2c_torpedo_exchange_result::kTypeFieldNumber;
  13462. const int packetl2c_torpedo_exchange_result::kTorpedoIdFieldNumber;
  13463. const int packetl2c_torpedo_exchange_result::kTorpedoCountFieldNumber;
  13464. #endif // !_MSC_VER
  13465. packetl2c_torpedo_exchange_result::packetl2c_torpedo_exchange_result()
  13466. : ::google::protobuf::Message() {
  13467. SharedCtor();
  13468. }
  13469. void packetl2c_torpedo_exchange_result::InitAsDefaultInstance() {
  13470. }
  13471. packetl2c_torpedo_exchange_result::packetl2c_torpedo_exchange_result(const packetl2c_torpedo_exchange_result& from)
  13472. : ::google::protobuf::Message() {
  13473. SharedCtor();
  13474. MergeFrom(from);
  13475. }
  13476. void packetl2c_torpedo_exchange_result::SharedCtor() {
  13477. _cached_size_ = 0;
  13478. packet_id_ = 15111;
  13479. result_ = 2;
  13480. type_ = 0;
  13481. torpedo_id_ = 0;
  13482. torpedo_count_ = 0;
  13483. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  13484. }
  13485. packetl2c_torpedo_exchange_result::~packetl2c_torpedo_exchange_result() {
  13486. SharedDtor();
  13487. }
  13488. void packetl2c_torpedo_exchange_result::SharedDtor() {
  13489. if (this != default_instance_) {
  13490. }
  13491. }
  13492. void packetl2c_torpedo_exchange_result::SetCachedSize(int size) const {
  13493. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  13494. _cached_size_ = size;
  13495. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  13496. }
  13497. const ::google::protobuf::Descriptor* packetl2c_torpedo_exchange_result::descriptor() {
  13498. protobuf_AssignDescriptorsOnce();
  13499. return packetl2c_torpedo_exchange_result_descriptor_;
  13500. }
  13501. const packetl2c_torpedo_exchange_result& packetl2c_torpedo_exchange_result::default_instance() {
  13502. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  13503. return *default_instance_;
  13504. }
  13505. packetl2c_torpedo_exchange_result* packetl2c_torpedo_exchange_result::default_instance_ = NULL;
  13506. packetl2c_torpedo_exchange_result* packetl2c_torpedo_exchange_result::New() const {
  13507. return new packetl2c_torpedo_exchange_result;
  13508. }
  13509. void packetl2c_torpedo_exchange_result::Clear() {
  13510. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  13511. packet_id_ = 15111;
  13512. result_ = 2;
  13513. type_ = 0;
  13514. torpedo_id_ = 0;
  13515. torpedo_count_ = 0;
  13516. }
  13517. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  13518. mutable_unknown_fields()->Clear();
  13519. }
  13520. bool packetl2c_torpedo_exchange_result::MergePartialFromCodedStream(
  13521. ::google::protobuf::io::CodedInputStream* input) {
  13522. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  13523. ::google::protobuf::uint32 tag;
  13524. while ((tag = input->ReadTag()) != 0) {
  13525. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  13526. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_torpedo_exchange_result];
  13527. case 1: {
  13528. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  13529. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  13530. int value;
  13531. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  13532. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  13533. input, &value)));
  13534. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  13535. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  13536. } else {
  13537. mutable_unknown_fields()->AddVarint(1, value);
  13538. }
  13539. } else {
  13540. goto handle_uninterpreted;
  13541. }
  13542. if (input->ExpectTag(16)) goto parse_result;
  13543. break;
  13544. }
  13545. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  13546. case 2: {
  13547. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  13548. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  13549. parse_result:
  13550. int value;
  13551. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  13552. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  13553. input, &value)));
  13554. if (::msg_type_def::e_msg_result_def_IsValid(value)) {
  13555. set_result(static_cast< ::msg_type_def::e_msg_result_def >(value));
  13556. } else {
  13557. mutable_unknown_fields()->AddVarint(2, value);
  13558. }
  13559. } else {
  13560. goto handle_uninterpreted;
  13561. }
  13562. if (input->ExpectTag(24)) goto parse_type;
  13563. break;
  13564. }
  13565. // optional int32 type = 3;
  13566. case 3: {
  13567. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  13568. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  13569. parse_type:
  13570. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  13571. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  13572. input, &type_)));
  13573. set_has_type();
  13574. } else {
  13575. goto handle_uninterpreted;
  13576. }
  13577. if (input->ExpectTag(32)) goto parse_torpedo_id;
  13578. break;
  13579. }
  13580. // optional int32 torpedo_id = 4;
  13581. case 4: {
  13582. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  13583. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  13584. parse_torpedo_id:
  13585. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  13586. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  13587. input, &torpedo_id_)));
  13588. set_has_torpedo_id();
  13589. } else {
  13590. goto handle_uninterpreted;
  13591. }
  13592. if (input->ExpectTag(40)) goto parse_torpedo_count;
  13593. break;
  13594. }
  13595. // optional int32 torpedo_count = 5;
  13596. case 5: {
  13597. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  13598. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  13599. parse_torpedo_count:
  13600. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  13601. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  13602. input, &torpedo_count_)));
  13603. set_has_torpedo_count();
  13604. } else {
  13605. goto handle_uninterpreted;
  13606. }
  13607. if (input->ExpectAtEnd()) return true;
  13608. break;
  13609. }
  13610. default: {
  13611. handle_uninterpreted:
  13612. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  13613. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  13614. return true;
  13615. }
  13616. DO_(::google::protobuf::internal::WireFormat::SkipField(
  13617. input, tag, mutable_unknown_fields()));
  13618. break;
  13619. }
  13620. }
  13621. }
  13622. return true;
  13623. #undef DO_
  13624. }
  13625. void packetl2c_torpedo_exchange_result::SerializeWithCachedSizes(
  13626. ::google::protobuf::io::CodedOutputStream* output) const {
  13627. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_torpedo_exchange_result];
  13628. if (has_packet_id()) {
  13629. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  13630. 1, this->packet_id(), output);
  13631. }
  13632. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  13633. if (has_result()) {
  13634. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  13635. 2, this->result(), output);
  13636. }
  13637. // optional int32 type = 3;
  13638. if (has_type()) {
  13639. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->type(), output);
  13640. }
  13641. // optional int32 torpedo_id = 4;
  13642. if (has_torpedo_id()) {
  13643. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->torpedo_id(), output);
  13644. }
  13645. // optional int32 torpedo_count = 5;
  13646. if (has_torpedo_count()) {
  13647. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->torpedo_count(), output);
  13648. }
  13649. if (!unknown_fields().empty()) {
  13650. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  13651. unknown_fields(), output);
  13652. }
  13653. }
  13654. ::google::protobuf::uint8* packetl2c_torpedo_exchange_result::SerializeWithCachedSizesToArray(
  13655. ::google::protobuf::uint8* target) const {
  13656. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_torpedo_exchange_result];
  13657. if (has_packet_id()) {
  13658. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  13659. 1, this->packet_id(), target);
  13660. }
  13661. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  13662. if (has_result()) {
  13663. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  13664. 2, this->result(), target);
  13665. }
  13666. // optional int32 type = 3;
  13667. if (has_type()) {
  13668. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->type(), target);
  13669. }
  13670. // optional int32 torpedo_id = 4;
  13671. if (has_torpedo_id()) {
  13672. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->torpedo_id(), target);
  13673. }
  13674. // optional int32 torpedo_count = 5;
  13675. if (has_torpedo_count()) {
  13676. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->torpedo_count(), target);
  13677. }
  13678. if (!unknown_fields().empty()) {
  13679. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  13680. unknown_fields(), target);
  13681. }
  13682. return target;
  13683. }
  13684. int packetl2c_torpedo_exchange_result::ByteSize() const {
  13685. int total_size = 0;
  13686. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  13687. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_torpedo_exchange_result];
  13688. if (has_packet_id()) {
  13689. total_size += 1 +
  13690. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  13691. }
  13692. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  13693. if (has_result()) {
  13694. total_size += 1 +
  13695. ::google::protobuf::internal::WireFormatLite::EnumSize(this->result());
  13696. }
  13697. // optional int32 type = 3;
  13698. if (has_type()) {
  13699. total_size += 1 +
  13700. ::google::protobuf::internal::WireFormatLite::Int32Size(
  13701. this->type());
  13702. }
  13703. // optional int32 torpedo_id = 4;
  13704. if (has_torpedo_id()) {
  13705. total_size += 1 +
  13706. ::google::protobuf::internal::WireFormatLite::Int32Size(
  13707. this->torpedo_id());
  13708. }
  13709. // optional int32 torpedo_count = 5;
  13710. if (has_torpedo_count()) {
  13711. total_size += 1 +
  13712. ::google::protobuf::internal::WireFormatLite::Int32Size(
  13713. this->torpedo_count());
  13714. }
  13715. }
  13716. if (!unknown_fields().empty()) {
  13717. total_size +=
  13718. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  13719. unknown_fields());
  13720. }
  13721. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  13722. _cached_size_ = total_size;
  13723. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  13724. return total_size;
  13725. }
  13726. void packetl2c_torpedo_exchange_result::MergeFrom(const ::google::protobuf::Message& from) {
  13727. GOOGLE_CHECK_NE(&from, this);
  13728. const packetl2c_torpedo_exchange_result* source =
  13729. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_torpedo_exchange_result*>(
  13730. &from);
  13731. if (source == NULL) {
  13732. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  13733. } else {
  13734. MergeFrom(*source);
  13735. }
  13736. }
  13737. void packetl2c_torpedo_exchange_result::MergeFrom(const packetl2c_torpedo_exchange_result& from) {
  13738. GOOGLE_CHECK_NE(&from, this);
  13739. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  13740. if (from.has_packet_id()) {
  13741. set_packet_id(from.packet_id());
  13742. }
  13743. if (from.has_result()) {
  13744. set_result(from.result());
  13745. }
  13746. if (from.has_type()) {
  13747. set_type(from.type());
  13748. }
  13749. if (from.has_torpedo_id()) {
  13750. set_torpedo_id(from.torpedo_id());
  13751. }
  13752. if (from.has_torpedo_count()) {
  13753. set_torpedo_count(from.torpedo_count());
  13754. }
  13755. }
  13756. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  13757. }
  13758. void packetl2c_torpedo_exchange_result::CopyFrom(const ::google::protobuf::Message& from) {
  13759. if (&from == this) return;
  13760. Clear();
  13761. MergeFrom(from);
  13762. }
  13763. void packetl2c_torpedo_exchange_result::CopyFrom(const packetl2c_torpedo_exchange_result& from) {
  13764. if (&from == this) return;
  13765. Clear();
  13766. MergeFrom(from);
  13767. }
  13768. bool packetl2c_torpedo_exchange_result::IsInitialized() const {
  13769. return true;
  13770. }
  13771. void packetl2c_torpedo_exchange_result::Swap(packetl2c_torpedo_exchange_result* other) {
  13772. if (other != this) {
  13773. std::swap(packet_id_, other->packet_id_);
  13774. std::swap(result_, other->result_);
  13775. std::swap(type_, other->type_);
  13776. std::swap(torpedo_id_, other->torpedo_id_);
  13777. std::swap(torpedo_count_, other->torpedo_count_);
  13778. std::swap(_has_bits_[0], other->_has_bits_[0]);
  13779. _unknown_fields_.Swap(&other->_unknown_fields_);
  13780. std::swap(_cached_size_, other->_cached_size_);
  13781. }
  13782. }
  13783. ::google::protobuf::Metadata packetl2c_torpedo_exchange_result::GetMetadata() const {
  13784. protobuf_AssignDescriptorsOnce();
  13785. ::google::protobuf::Metadata metadata;
  13786. metadata.descriptor = packetl2c_torpedo_exchange_result_descriptor_;
  13787. metadata.reflection = packetl2c_torpedo_exchange_result_reflection_;
  13788. return metadata;
  13789. }
  13790. // ===================================================================
  13791. #ifndef _MSC_VER
  13792. const int packetc2l_torpedo_compose::kPacketIdFieldNumber;
  13793. const int packetc2l_torpedo_compose::kTypeFieldNumber;
  13794. const int packetc2l_torpedo_compose::kComposeIdFieldNumber;
  13795. const int packetc2l_torpedo_compose::kComposeCountFieldNumber;
  13796. #endif // !_MSC_VER
  13797. packetc2l_torpedo_compose::packetc2l_torpedo_compose()
  13798. : ::google::protobuf::Message() {
  13799. SharedCtor();
  13800. }
  13801. void packetc2l_torpedo_compose::InitAsDefaultInstance() {
  13802. }
  13803. packetc2l_torpedo_compose::packetc2l_torpedo_compose(const packetc2l_torpedo_compose& from)
  13804. : ::google::protobuf::Message() {
  13805. SharedCtor();
  13806. MergeFrom(from);
  13807. }
  13808. void packetc2l_torpedo_compose::SharedCtor() {
  13809. _cached_size_ = 0;
  13810. packet_id_ = 10163;
  13811. type_ = 0;
  13812. compose_id_ = 0;
  13813. compose_count_ = 0;
  13814. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  13815. }
  13816. packetc2l_torpedo_compose::~packetc2l_torpedo_compose() {
  13817. SharedDtor();
  13818. }
  13819. void packetc2l_torpedo_compose::SharedDtor() {
  13820. if (this != default_instance_) {
  13821. }
  13822. }
  13823. void packetc2l_torpedo_compose::SetCachedSize(int size) const {
  13824. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  13825. _cached_size_ = size;
  13826. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  13827. }
  13828. const ::google::protobuf::Descriptor* packetc2l_torpedo_compose::descriptor() {
  13829. protobuf_AssignDescriptorsOnce();
  13830. return packetc2l_torpedo_compose_descriptor_;
  13831. }
  13832. const packetc2l_torpedo_compose& packetc2l_torpedo_compose::default_instance() {
  13833. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  13834. return *default_instance_;
  13835. }
  13836. packetc2l_torpedo_compose* packetc2l_torpedo_compose::default_instance_ = NULL;
  13837. packetc2l_torpedo_compose* packetc2l_torpedo_compose::New() const {
  13838. return new packetc2l_torpedo_compose;
  13839. }
  13840. void packetc2l_torpedo_compose::Clear() {
  13841. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  13842. packet_id_ = 10163;
  13843. type_ = 0;
  13844. compose_id_ = 0;
  13845. compose_count_ = 0;
  13846. }
  13847. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  13848. mutable_unknown_fields()->Clear();
  13849. }
  13850. bool packetc2l_torpedo_compose::MergePartialFromCodedStream(
  13851. ::google::protobuf::io::CodedInputStream* input) {
  13852. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  13853. ::google::protobuf::uint32 tag;
  13854. while ((tag = input->ReadTag()) != 0) {
  13855. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  13856. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_torpedo_compose];
  13857. case 1: {
  13858. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  13859. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  13860. int value;
  13861. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  13862. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  13863. input, &value)));
  13864. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  13865. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  13866. } else {
  13867. mutable_unknown_fields()->AddVarint(1, value);
  13868. }
  13869. } else {
  13870. goto handle_uninterpreted;
  13871. }
  13872. if (input->ExpectTag(16)) goto parse_type;
  13873. break;
  13874. }
  13875. // optional int32 type = 2;
  13876. case 2: {
  13877. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  13878. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  13879. parse_type:
  13880. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  13881. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  13882. input, &type_)));
  13883. set_has_type();
  13884. } else {
  13885. goto handle_uninterpreted;
  13886. }
  13887. if (input->ExpectTag(24)) goto parse_compose_id;
  13888. break;
  13889. }
  13890. // optional int32 compose_id = 3;
  13891. case 3: {
  13892. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  13893. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  13894. parse_compose_id:
  13895. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  13896. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  13897. input, &compose_id_)));
  13898. set_has_compose_id();
  13899. } else {
  13900. goto handle_uninterpreted;
  13901. }
  13902. if (input->ExpectTag(32)) goto parse_compose_count;
  13903. break;
  13904. }
  13905. // optional int32 compose_count = 4;
  13906. case 4: {
  13907. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  13908. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  13909. parse_compose_count:
  13910. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  13911. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  13912. input, &compose_count_)));
  13913. set_has_compose_count();
  13914. } else {
  13915. goto handle_uninterpreted;
  13916. }
  13917. if (input->ExpectAtEnd()) return true;
  13918. break;
  13919. }
  13920. default: {
  13921. handle_uninterpreted:
  13922. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  13923. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  13924. return true;
  13925. }
  13926. DO_(::google::protobuf::internal::WireFormat::SkipField(
  13927. input, tag, mutable_unknown_fields()));
  13928. break;
  13929. }
  13930. }
  13931. }
  13932. return true;
  13933. #undef DO_
  13934. }
  13935. void packetc2l_torpedo_compose::SerializeWithCachedSizes(
  13936. ::google::protobuf::io::CodedOutputStream* output) const {
  13937. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_torpedo_compose];
  13938. if (has_packet_id()) {
  13939. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  13940. 1, this->packet_id(), output);
  13941. }
  13942. // optional int32 type = 2;
  13943. if (has_type()) {
  13944. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->type(), output);
  13945. }
  13946. // optional int32 compose_id = 3;
  13947. if (has_compose_id()) {
  13948. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->compose_id(), output);
  13949. }
  13950. // optional int32 compose_count = 4;
  13951. if (has_compose_count()) {
  13952. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->compose_count(), output);
  13953. }
  13954. if (!unknown_fields().empty()) {
  13955. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  13956. unknown_fields(), output);
  13957. }
  13958. }
  13959. ::google::protobuf::uint8* packetc2l_torpedo_compose::SerializeWithCachedSizesToArray(
  13960. ::google::protobuf::uint8* target) const {
  13961. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_torpedo_compose];
  13962. if (has_packet_id()) {
  13963. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  13964. 1, this->packet_id(), target);
  13965. }
  13966. // optional int32 type = 2;
  13967. if (has_type()) {
  13968. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->type(), target);
  13969. }
  13970. // optional int32 compose_id = 3;
  13971. if (has_compose_id()) {
  13972. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->compose_id(), target);
  13973. }
  13974. // optional int32 compose_count = 4;
  13975. if (has_compose_count()) {
  13976. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->compose_count(), target);
  13977. }
  13978. if (!unknown_fields().empty()) {
  13979. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  13980. unknown_fields(), target);
  13981. }
  13982. return target;
  13983. }
  13984. int packetc2l_torpedo_compose::ByteSize() const {
  13985. int total_size = 0;
  13986. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  13987. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_torpedo_compose];
  13988. if (has_packet_id()) {
  13989. total_size += 1 +
  13990. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  13991. }
  13992. // optional int32 type = 2;
  13993. if (has_type()) {
  13994. total_size += 1 +
  13995. ::google::protobuf::internal::WireFormatLite::Int32Size(
  13996. this->type());
  13997. }
  13998. // optional int32 compose_id = 3;
  13999. if (has_compose_id()) {
  14000. total_size += 1 +
  14001. ::google::protobuf::internal::WireFormatLite::Int32Size(
  14002. this->compose_id());
  14003. }
  14004. // optional int32 compose_count = 4;
  14005. if (has_compose_count()) {
  14006. total_size += 1 +
  14007. ::google::protobuf::internal::WireFormatLite::Int32Size(
  14008. this->compose_count());
  14009. }
  14010. }
  14011. if (!unknown_fields().empty()) {
  14012. total_size +=
  14013. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  14014. unknown_fields());
  14015. }
  14016. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  14017. _cached_size_ = total_size;
  14018. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  14019. return total_size;
  14020. }
  14021. void packetc2l_torpedo_compose::MergeFrom(const ::google::protobuf::Message& from) {
  14022. GOOGLE_CHECK_NE(&from, this);
  14023. const packetc2l_torpedo_compose* source =
  14024. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_torpedo_compose*>(
  14025. &from);
  14026. if (source == NULL) {
  14027. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  14028. } else {
  14029. MergeFrom(*source);
  14030. }
  14031. }
  14032. void packetc2l_torpedo_compose::MergeFrom(const packetc2l_torpedo_compose& from) {
  14033. GOOGLE_CHECK_NE(&from, this);
  14034. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  14035. if (from.has_packet_id()) {
  14036. set_packet_id(from.packet_id());
  14037. }
  14038. if (from.has_type()) {
  14039. set_type(from.type());
  14040. }
  14041. if (from.has_compose_id()) {
  14042. set_compose_id(from.compose_id());
  14043. }
  14044. if (from.has_compose_count()) {
  14045. set_compose_count(from.compose_count());
  14046. }
  14047. }
  14048. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  14049. }
  14050. void packetc2l_torpedo_compose::CopyFrom(const ::google::protobuf::Message& from) {
  14051. if (&from == this) return;
  14052. Clear();
  14053. MergeFrom(from);
  14054. }
  14055. void packetc2l_torpedo_compose::CopyFrom(const packetc2l_torpedo_compose& from) {
  14056. if (&from == this) return;
  14057. Clear();
  14058. MergeFrom(from);
  14059. }
  14060. bool packetc2l_torpedo_compose::IsInitialized() const {
  14061. return true;
  14062. }
  14063. void packetc2l_torpedo_compose::Swap(packetc2l_torpedo_compose* other) {
  14064. if (other != this) {
  14065. std::swap(packet_id_, other->packet_id_);
  14066. std::swap(type_, other->type_);
  14067. std::swap(compose_id_, other->compose_id_);
  14068. std::swap(compose_count_, other->compose_count_);
  14069. std::swap(_has_bits_[0], other->_has_bits_[0]);
  14070. _unknown_fields_.Swap(&other->_unknown_fields_);
  14071. std::swap(_cached_size_, other->_cached_size_);
  14072. }
  14073. }
  14074. ::google::protobuf::Metadata packetc2l_torpedo_compose::GetMetadata() const {
  14075. protobuf_AssignDescriptorsOnce();
  14076. ::google::protobuf::Metadata metadata;
  14077. metadata.descriptor = packetc2l_torpedo_compose_descriptor_;
  14078. metadata.reflection = packetc2l_torpedo_compose_reflection_;
  14079. return metadata;
  14080. }
  14081. // ===================================================================
  14082. #ifndef _MSC_VER
  14083. const int packetl2c_torpedo_compose_result::kPacketIdFieldNumber;
  14084. const int packetl2c_torpedo_compose_result::kResultFieldNumber;
  14085. const int packetl2c_torpedo_compose_result::kComposeIdFieldNumber;
  14086. const int packetl2c_torpedo_compose_result::kComposeCountFieldNumber;
  14087. #endif // !_MSC_VER
  14088. packetl2c_torpedo_compose_result::packetl2c_torpedo_compose_result()
  14089. : ::google::protobuf::Message() {
  14090. SharedCtor();
  14091. }
  14092. void packetl2c_torpedo_compose_result::InitAsDefaultInstance() {
  14093. }
  14094. packetl2c_torpedo_compose_result::packetl2c_torpedo_compose_result(const packetl2c_torpedo_compose_result& from)
  14095. : ::google::protobuf::Message() {
  14096. SharedCtor();
  14097. MergeFrom(from);
  14098. }
  14099. void packetl2c_torpedo_compose_result::SharedCtor() {
  14100. _cached_size_ = 0;
  14101. packet_id_ = 16155;
  14102. result_ = 2;
  14103. compose_id_ = 0;
  14104. compose_count_ = 0;
  14105. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  14106. }
  14107. packetl2c_torpedo_compose_result::~packetl2c_torpedo_compose_result() {
  14108. SharedDtor();
  14109. }
  14110. void packetl2c_torpedo_compose_result::SharedDtor() {
  14111. if (this != default_instance_) {
  14112. }
  14113. }
  14114. void packetl2c_torpedo_compose_result::SetCachedSize(int size) const {
  14115. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  14116. _cached_size_ = size;
  14117. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  14118. }
  14119. const ::google::protobuf::Descriptor* packetl2c_torpedo_compose_result::descriptor() {
  14120. protobuf_AssignDescriptorsOnce();
  14121. return packetl2c_torpedo_compose_result_descriptor_;
  14122. }
  14123. const packetl2c_torpedo_compose_result& packetl2c_torpedo_compose_result::default_instance() {
  14124. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  14125. return *default_instance_;
  14126. }
  14127. packetl2c_torpedo_compose_result* packetl2c_torpedo_compose_result::default_instance_ = NULL;
  14128. packetl2c_torpedo_compose_result* packetl2c_torpedo_compose_result::New() const {
  14129. return new packetl2c_torpedo_compose_result;
  14130. }
  14131. void packetl2c_torpedo_compose_result::Clear() {
  14132. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  14133. packet_id_ = 16155;
  14134. result_ = 2;
  14135. compose_id_ = 0;
  14136. compose_count_ = 0;
  14137. }
  14138. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  14139. mutable_unknown_fields()->Clear();
  14140. }
  14141. bool packetl2c_torpedo_compose_result::MergePartialFromCodedStream(
  14142. ::google::protobuf::io::CodedInputStream* input) {
  14143. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  14144. ::google::protobuf::uint32 tag;
  14145. while ((tag = input->ReadTag()) != 0) {
  14146. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  14147. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_torpedo_compose_result];
  14148. case 1: {
  14149. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  14150. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  14151. int value;
  14152. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  14153. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  14154. input, &value)));
  14155. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  14156. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  14157. } else {
  14158. mutable_unknown_fields()->AddVarint(1, value);
  14159. }
  14160. } else {
  14161. goto handle_uninterpreted;
  14162. }
  14163. if (input->ExpectTag(16)) goto parse_result;
  14164. break;
  14165. }
  14166. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  14167. case 2: {
  14168. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  14169. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  14170. parse_result:
  14171. int value;
  14172. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  14173. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  14174. input, &value)));
  14175. if (::msg_type_def::e_msg_result_def_IsValid(value)) {
  14176. set_result(static_cast< ::msg_type_def::e_msg_result_def >(value));
  14177. } else {
  14178. mutable_unknown_fields()->AddVarint(2, value);
  14179. }
  14180. } else {
  14181. goto handle_uninterpreted;
  14182. }
  14183. if (input->ExpectTag(24)) goto parse_compose_id;
  14184. break;
  14185. }
  14186. // optional int32 compose_id = 3;
  14187. case 3: {
  14188. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  14189. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  14190. parse_compose_id:
  14191. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  14192. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  14193. input, &compose_id_)));
  14194. set_has_compose_id();
  14195. } else {
  14196. goto handle_uninterpreted;
  14197. }
  14198. if (input->ExpectTag(32)) goto parse_compose_count;
  14199. break;
  14200. }
  14201. // optional int32 compose_count = 4;
  14202. case 4: {
  14203. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  14204. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  14205. parse_compose_count:
  14206. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  14207. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  14208. input, &compose_count_)));
  14209. set_has_compose_count();
  14210. } else {
  14211. goto handle_uninterpreted;
  14212. }
  14213. if (input->ExpectAtEnd()) return true;
  14214. break;
  14215. }
  14216. default: {
  14217. handle_uninterpreted:
  14218. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  14219. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  14220. return true;
  14221. }
  14222. DO_(::google::protobuf::internal::WireFormat::SkipField(
  14223. input, tag, mutable_unknown_fields()));
  14224. break;
  14225. }
  14226. }
  14227. }
  14228. return true;
  14229. #undef DO_
  14230. }
  14231. void packetl2c_torpedo_compose_result::SerializeWithCachedSizes(
  14232. ::google::protobuf::io::CodedOutputStream* output) const {
  14233. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_torpedo_compose_result];
  14234. if (has_packet_id()) {
  14235. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  14236. 1, this->packet_id(), output);
  14237. }
  14238. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  14239. if (has_result()) {
  14240. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  14241. 2, this->result(), output);
  14242. }
  14243. // optional int32 compose_id = 3;
  14244. if (has_compose_id()) {
  14245. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->compose_id(), output);
  14246. }
  14247. // optional int32 compose_count = 4;
  14248. if (has_compose_count()) {
  14249. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->compose_count(), output);
  14250. }
  14251. if (!unknown_fields().empty()) {
  14252. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  14253. unknown_fields(), output);
  14254. }
  14255. }
  14256. ::google::protobuf::uint8* packetl2c_torpedo_compose_result::SerializeWithCachedSizesToArray(
  14257. ::google::protobuf::uint8* target) const {
  14258. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_torpedo_compose_result];
  14259. if (has_packet_id()) {
  14260. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  14261. 1, this->packet_id(), target);
  14262. }
  14263. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  14264. if (has_result()) {
  14265. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  14266. 2, this->result(), target);
  14267. }
  14268. // optional int32 compose_id = 3;
  14269. if (has_compose_id()) {
  14270. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->compose_id(), target);
  14271. }
  14272. // optional int32 compose_count = 4;
  14273. if (has_compose_count()) {
  14274. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->compose_count(), target);
  14275. }
  14276. if (!unknown_fields().empty()) {
  14277. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  14278. unknown_fields(), target);
  14279. }
  14280. return target;
  14281. }
  14282. int packetl2c_torpedo_compose_result::ByteSize() const {
  14283. int total_size = 0;
  14284. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  14285. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_torpedo_compose_result];
  14286. if (has_packet_id()) {
  14287. total_size += 1 +
  14288. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  14289. }
  14290. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  14291. if (has_result()) {
  14292. total_size += 1 +
  14293. ::google::protobuf::internal::WireFormatLite::EnumSize(this->result());
  14294. }
  14295. // optional int32 compose_id = 3;
  14296. if (has_compose_id()) {
  14297. total_size += 1 +
  14298. ::google::protobuf::internal::WireFormatLite::Int32Size(
  14299. this->compose_id());
  14300. }
  14301. // optional int32 compose_count = 4;
  14302. if (has_compose_count()) {
  14303. total_size += 1 +
  14304. ::google::protobuf::internal::WireFormatLite::Int32Size(
  14305. this->compose_count());
  14306. }
  14307. }
  14308. if (!unknown_fields().empty()) {
  14309. total_size +=
  14310. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  14311. unknown_fields());
  14312. }
  14313. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  14314. _cached_size_ = total_size;
  14315. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  14316. return total_size;
  14317. }
  14318. void packetl2c_torpedo_compose_result::MergeFrom(const ::google::protobuf::Message& from) {
  14319. GOOGLE_CHECK_NE(&from, this);
  14320. const packetl2c_torpedo_compose_result* source =
  14321. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_torpedo_compose_result*>(
  14322. &from);
  14323. if (source == NULL) {
  14324. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  14325. } else {
  14326. MergeFrom(*source);
  14327. }
  14328. }
  14329. void packetl2c_torpedo_compose_result::MergeFrom(const packetl2c_torpedo_compose_result& from) {
  14330. GOOGLE_CHECK_NE(&from, this);
  14331. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  14332. if (from.has_packet_id()) {
  14333. set_packet_id(from.packet_id());
  14334. }
  14335. if (from.has_result()) {
  14336. set_result(from.result());
  14337. }
  14338. if (from.has_compose_id()) {
  14339. set_compose_id(from.compose_id());
  14340. }
  14341. if (from.has_compose_count()) {
  14342. set_compose_count(from.compose_count());
  14343. }
  14344. }
  14345. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  14346. }
  14347. void packetl2c_torpedo_compose_result::CopyFrom(const ::google::protobuf::Message& from) {
  14348. if (&from == this) return;
  14349. Clear();
  14350. MergeFrom(from);
  14351. }
  14352. void packetl2c_torpedo_compose_result::CopyFrom(const packetl2c_torpedo_compose_result& from) {
  14353. if (&from == this) return;
  14354. Clear();
  14355. MergeFrom(from);
  14356. }
  14357. bool packetl2c_torpedo_compose_result::IsInitialized() const {
  14358. return true;
  14359. }
  14360. void packetl2c_torpedo_compose_result::Swap(packetl2c_torpedo_compose_result* other) {
  14361. if (other != this) {
  14362. std::swap(packet_id_, other->packet_id_);
  14363. std::swap(result_, other->result_);
  14364. std::swap(compose_id_, other->compose_id_);
  14365. std::swap(compose_count_, other->compose_count_);
  14366. std::swap(_has_bits_[0], other->_has_bits_[0]);
  14367. _unknown_fields_.Swap(&other->_unknown_fields_);
  14368. std::swap(_cached_size_, other->_cached_size_);
  14369. }
  14370. }
  14371. ::google::protobuf::Metadata packetl2c_torpedo_compose_result::GetMetadata() const {
  14372. protobuf_AssignDescriptorsOnce();
  14373. ::google::protobuf::Metadata metadata;
  14374. metadata.descriptor = packetl2c_torpedo_compose_result_descriptor_;
  14375. metadata.reflection = packetl2c_torpedo_compose_result_reflection_;
  14376. return metadata;
  14377. }
  14378. // ===================================================================
  14379. #ifndef _MSC_VER
  14380. const int msg_airdropitem::kUuidFieldNumber;
  14381. const int msg_airdropitem::kPlayeridFieldNumber;
  14382. const int msg_airdropitem::kItemidFieldNumber;
  14383. const int msg_airdropitem::kItemcountFieldNumber;
  14384. const int msg_airdropitem::kNicknameFieldNumber;
  14385. const int msg_airdropitem::kHeadurlFieldNumber;
  14386. const int msg_airdropitem::kPwdFieldNumber;
  14387. const int msg_airdropitem::kLeftsecondFieldNumber;
  14388. const int msg_airdropitem::kReceiveIdFieldNumber;
  14389. #endif // !_MSC_VER
  14390. msg_airdropitem::msg_airdropitem()
  14391. : ::google::protobuf::Message() {
  14392. SharedCtor();
  14393. }
  14394. void msg_airdropitem::InitAsDefaultInstance() {
  14395. }
  14396. msg_airdropitem::msg_airdropitem(const msg_airdropitem& from)
  14397. : ::google::protobuf::Message() {
  14398. SharedCtor();
  14399. MergeFrom(from);
  14400. }
  14401. void msg_airdropitem::SharedCtor() {
  14402. _cached_size_ = 0;
  14403. uuid_ = 0;
  14404. playerid_ = 0;
  14405. itemid_ = 0;
  14406. itemcount_ = 0;
  14407. nickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  14408. headurl_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  14409. pwd_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  14410. leftsecond_ = 0;
  14411. receiveid_ = 0;
  14412. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  14413. }
  14414. msg_airdropitem::~msg_airdropitem() {
  14415. SharedDtor();
  14416. }
  14417. void msg_airdropitem::SharedDtor() {
  14418. if (nickname_ != &::google::protobuf::internal::kEmptyString) {
  14419. delete nickname_;
  14420. }
  14421. if (headurl_ != &::google::protobuf::internal::kEmptyString) {
  14422. delete headurl_;
  14423. }
  14424. if (pwd_ != &::google::protobuf::internal::kEmptyString) {
  14425. delete pwd_;
  14426. }
  14427. if (this != default_instance_) {
  14428. }
  14429. }
  14430. void msg_airdropitem::SetCachedSize(int size) const {
  14431. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  14432. _cached_size_ = size;
  14433. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  14434. }
  14435. const ::google::protobuf::Descriptor* msg_airdropitem::descriptor() {
  14436. protobuf_AssignDescriptorsOnce();
  14437. return msg_airdropitem_descriptor_;
  14438. }
  14439. const msg_airdropitem& msg_airdropitem::default_instance() {
  14440. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  14441. return *default_instance_;
  14442. }
  14443. msg_airdropitem* msg_airdropitem::default_instance_ = NULL;
  14444. msg_airdropitem* msg_airdropitem::New() const {
  14445. return new msg_airdropitem;
  14446. }
  14447. void msg_airdropitem::Clear() {
  14448. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  14449. uuid_ = 0;
  14450. playerid_ = 0;
  14451. itemid_ = 0;
  14452. itemcount_ = 0;
  14453. if (has_nickname()) {
  14454. if (nickname_ != &::google::protobuf::internal::kEmptyString) {
  14455. nickname_->clear();
  14456. }
  14457. }
  14458. if (has_headurl()) {
  14459. if (headurl_ != &::google::protobuf::internal::kEmptyString) {
  14460. headurl_->clear();
  14461. }
  14462. }
  14463. if (has_pwd()) {
  14464. if (pwd_ != &::google::protobuf::internal::kEmptyString) {
  14465. pwd_->clear();
  14466. }
  14467. }
  14468. leftsecond_ = 0;
  14469. }
  14470. if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
  14471. receiveid_ = 0;
  14472. }
  14473. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  14474. mutable_unknown_fields()->Clear();
  14475. }
  14476. bool msg_airdropitem::MergePartialFromCodedStream(
  14477. ::google::protobuf::io::CodedInputStream* input) {
  14478. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  14479. ::google::protobuf::uint32 tag;
  14480. while ((tag = input->ReadTag()) != 0) {
  14481. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  14482. // optional int32 uuid = 1;
  14483. case 1: {
  14484. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  14485. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  14486. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  14487. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  14488. input, &uuid_)));
  14489. set_has_uuid();
  14490. } else {
  14491. goto handle_uninterpreted;
  14492. }
  14493. if (input->ExpectTag(16)) goto parse_playerid;
  14494. break;
  14495. }
  14496. // optional int32 playerid = 2;
  14497. case 2: {
  14498. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  14499. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  14500. parse_playerid:
  14501. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  14502. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  14503. input, &playerid_)));
  14504. set_has_playerid();
  14505. } else {
  14506. goto handle_uninterpreted;
  14507. }
  14508. if (input->ExpectTag(24)) goto parse_itemid;
  14509. break;
  14510. }
  14511. // optional int32 itemid = 3;
  14512. case 3: {
  14513. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  14514. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  14515. parse_itemid:
  14516. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  14517. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  14518. input, &itemid_)));
  14519. set_has_itemid();
  14520. } else {
  14521. goto handle_uninterpreted;
  14522. }
  14523. if (input->ExpectTag(32)) goto parse_itemcount;
  14524. break;
  14525. }
  14526. // optional int32 itemcount = 4;
  14527. case 4: {
  14528. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  14529. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  14530. parse_itemcount:
  14531. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  14532. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  14533. input, &itemcount_)));
  14534. set_has_itemcount();
  14535. } else {
  14536. goto handle_uninterpreted;
  14537. }
  14538. if (input->ExpectTag(42)) goto parse_nickname;
  14539. break;
  14540. }
  14541. // optional string nickname = 5;
  14542. case 5: {
  14543. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  14544. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  14545. parse_nickname:
  14546. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  14547. input, this->mutable_nickname()));
  14548. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  14549. this->nickname().data(), this->nickname().length(),
  14550. ::google::protobuf::internal::WireFormat::PARSE);
  14551. } else {
  14552. goto handle_uninterpreted;
  14553. }
  14554. if (input->ExpectTag(50)) goto parse_headurl;
  14555. break;
  14556. }
  14557. // optional string headurl = 6;
  14558. case 6: {
  14559. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  14560. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  14561. parse_headurl:
  14562. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  14563. input, this->mutable_headurl()));
  14564. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  14565. this->headurl().data(), this->headurl().length(),
  14566. ::google::protobuf::internal::WireFormat::PARSE);
  14567. } else {
  14568. goto handle_uninterpreted;
  14569. }
  14570. if (input->ExpectTag(58)) goto parse_pwd;
  14571. break;
  14572. }
  14573. // optional string pwd = 7;
  14574. case 7: {
  14575. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  14576. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  14577. parse_pwd:
  14578. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  14579. input, this->mutable_pwd()));
  14580. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  14581. this->pwd().data(), this->pwd().length(),
  14582. ::google::protobuf::internal::WireFormat::PARSE);
  14583. } else {
  14584. goto handle_uninterpreted;
  14585. }
  14586. if (input->ExpectTag(64)) goto parse_leftsecond;
  14587. break;
  14588. }
  14589. // optional int32 leftsecond = 8;
  14590. case 8: {
  14591. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  14592. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  14593. parse_leftsecond:
  14594. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  14595. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  14596. input, &leftsecond_)));
  14597. set_has_leftsecond();
  14598. } else {
  14599. goto handle_uninterpreted;
  14600. }
  14601. if (input->ExpectTag(72)) goto parse_receiveId;
  14602. break;
  14603. }
  14604. // optional int32 receiveId = 9;
  14605. case 9: {
  14606. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  14607. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  14608. parse_receiveId:
  14609. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  14610. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  14611. input, &receiveid_)));
  14612. set_has_receiveid();
  14613. } else {
  14614. goto handle_uninterpreted;
  14615. }
  14616. if (input->ExpectAtEnd()) return true;
  14617. break;
  14618. }
  14619. default: {
  14620. handle_uninterpreted:
  14621. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  14622. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  14623. return true;
  14624. }
  14625. DO_(::google::protobuf::internal::WireFormat::SkipField(
  14626. input, tag, mutable_unknown_fields()));
  14627. break;
  14628. }
  14629. }
  14630. }
  14631. return true;
  14632. #undef DO_
  14633. }
  14634. void msg_airdropitem::SerializeWithCachedSizes(
  14635. ::google::protobuf::io::CodedOutputStream* output) const {
  14636. // optional int32 uuid = 1;
  14637. if (has_uuid()) {
  14638. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->uuid(), output);
  14639. }
  14640. // optional int32 playerid = 2;
  14641. if (has_playerid()) {
  14642. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->playerid(), output);
  14643. }
  14644. // optional int32 itemid = 3;
  14645. if (has_itemid()) {
  14646. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->itemid(), output);
  14647. }
  14648. // optional int32 itemcount = 4;
  14649. if (has_itemcount()) {
  14650. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->itemcount(), output);
  14651. }
  14652. // optional string nickname = 5;
  14653. if (has_nickname()) {
  14654. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  14655. this->nickname().data(), this->nickname().length(),
  14656. ::google::protobuf::internal::WireFormat::SERIALIZE);
  14657. ::google::protobuf::internal::WireFormatLite::WriteString(
  14658. 5, this->nickname(), output);
  14659. }
  14660. // optional string headurl = 6;
  14661. if (has_headurl()) {
  14662. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  14663. this->headurl().data(), this->headurl().length(),
  14664. ::google::protobuf::internal::WireFormat::SERIALIZE);
  14665. ::google::protobuf::internal::WireFormatLite::WriteString(
  14666. 6, this->headurl(), output);
  14667. }
  14668. // optional string pwd = 7;
  14669. if (has_pwd()) {
  14670. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  14671. this->pwd().data(), this->pwd().length(),
  14672. ::google::protobuf::internal::WireFormat::SERIALIZE);
  14673. ::google::protobuf::internal::WireFormatLite::WriteString(
  14674. 7, this->pwd(), output);
  14675. }
  14676. // optional int32 leftsecond = 8;
  14677. if (has_leftsecond()) {
  14678. ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->leftsecond(), output);
  14679. }
  14680. // optional int32 receiveId = 9;
  14681. if (has_receiveid()) {
  14682. ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->receiveid(), output);
  14683. }
  14684. if (!unknown_fields().empty()) {
  14685. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  14686. unknown_fields(), output);
  14687. }
  14688. }
  14689. ::google::protobuf::uint8* msg_airdropitem::SerializeWithCachedSizesToArray(
  14690. ::google::protobuf::uint8* target) const {
  14691. // optional int32 uuid = 1;
  14692. if (has_uuid()) {
  14693. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->uuid(), target);
  14694. }
  14695. // optional int32 playerid = 2;
  14696. if (has_playerid()) {
  14697. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->playerid(), target);
  14698. }
  14699. // optional int32 itemid = 3;
  14700. if (has_itemid()) {
  14701. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->itemid(), target);
  14702. }
  14703. // optional int32 itemcount = 4;
  14704. if (has_itemcount()) {
  14705. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->itemcount(), target);
  14706. }
  14707. // optional string nickname = 5;
  14708. if (has_nickname()) {
  14709. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  14710. this->nickname().data(), this->nickname().length(),
  14711. ::google::protobuf::internal::WireFormat::SERIALIZE);
  14712. target =
  14713. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  14714. 5, this->nickname(), target);
  14715. }
  14716. // optional string headurl = 6;
  14717. if (has_headurl()) {
  14718. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  14719. this->headurl().data(), this->headurl().length(),
  14720. ::google::protobuf::internal::WireFormat::SERIALIZE);
  14721. target =
  14722. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  14723. 6, this->headurl(), target);
  14724. }
  14725. // optional string pwd = 7;
  14726. if (has_pwd()) {
  14727. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  14728. this->pwd().data(), this->pwd().length(),
  14729. ::google::protobuf::internal::WireFormat::SERIALIZE);
  14730. target =
  14731. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  14732. 7, this->pwd(), target);
  14733. }
  14734. // optional int32 leftsecond = 8;
  14735. if (has_leftsecond()) {
  14736. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->leftsecond(), target);
  14737. }
  14738. // optional int32 receiveId = 9;
  14739. if (has_receiveid()) {
  14740. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->receiveid(), target);
  14741. }
  14742. if (!unknown_fields().empty()) {
  14743. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  14744. unknown_fields(), target);
  14745. }
  14746. return target;
  14747. }
  14748. int msg_airdropitem::ByteSize() const {
  14749. int total_size = 0;
  14750. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  14751. // optional int32 uuid = 1;
  14752. if (has_uuid()) {
  14753. total_size += 1 +
  14754. ::google::protobuf::internal::WireFormatLite::Int32Size(
  14755. this->uuid());
  14756. }
  14757. // optional int32 playerid = 2;
  14758. if (has_playerid()) {
  14759. total_size += 1 +
  14760. ::google::protobuf::internal::WireFormatLite::Int32Size(
  14761. this->playerid());
  14762. }
  14763. // optional int32 itemid = 3;
  14764. if (has_itemid()) {
  14765. total_size += 1 +
  14766. ::google::protobuf::internal::WireFormatLite::Int32Size(
  14767. this->itemid());
  14768. }
  14769. // optional int32 itemcount = 4;
  14770. if (has_itemcount()) {
  14771. total_size += 1 +
  14772. ::google::protobuf::internal::WireFormatLite::Int32Size(
  14773. this->itemcount());
  14774. }
  14775. // optional string nickname = 5;
  14776. if (has_nickname()) {
  14777. total_size += 1 +
  14778. ::google::protobuf::internal::WireFormatLite::StringSize(
  14779. this->nickname());
  14780. }
  14781. // optional string headurl = 6;
  14782. if (has_headurl()) {
  14783. total_size += 1 +
  14784. ::google::protobuf::internal::WireFormatLite::StringSize(
  14785. this->headurl());
  14786. }
  14787. // optional string pwd = 7;
  14788. if (has_pwd()) {
  14789. total_size += 1 +
  14790. ::google::protobuf::internal::WireFormatLite::StringSize(
  14791. this->pwd());
  14792. }
  14793. // optional int32 leftsecond = 8;
  14794. if (has_leftsecond()) {
  14795. total_size += 1 +
  14796. ::google::protobuf::internal::WireFormatLite::Int32Size(
  14797. this->leftsecond());
  14798. }
  14799. }
  14800. if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
  14801. // optional int32 receiveId = 9;
  14802. if (has_receiveid()) {
  14803. total_size += 1 +
  14804. ::google::protobuf::internal::WireFormatLite::Int32Size(
  14805. this->receiveid());
  14806. }
  14807. }
  14808. if (!unknown_fields().empty()) {
  14809. total_size +=
  14810. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  14811. unknown_fields());
  14812. }
  14813. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  14814. _cached_size_ = total_size;
  14815. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  14816. return total_size;
  14817. }
  14818. void msg_airdropitem::MergeFrom(const ::google::protobuf::Message& from) {
  14819. GOOGLE_CHECK_NE(&from, this);
  14820. const msg_airdropitem* source =
  14821. ::google::protobuf::internal::dynamic_cast_if_available<const msg_airdropitem*>(
  14822. &from);
  14823. if (source == NULL) {
  14824. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  14825. } else {
  14826. MergeFrom(*source);
  14827. }
  14828. }
  14829. void msg_airdropitem::MergeFrom(const msg_airdropitem& from) {
  14830. GOOGLE_CHECK_NE(&from, this);
  14831. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  14832. if (from.has_uuid()) {
  14833. set_uuid(from.uuid());
  14834. }
  14835. if (from.has_playerid()) {
  14836. set_playerid(from.playerid());
  14837. }
  14838. if (from.has_itemid()) {
  14839. set_itemid(from.itemid());
  14840. }
  14841. if (from.has_itemcount()) {
  14842. set_itemcount(from.itemcount());
  14843. }
  14844. if (from.has_nickname()) {
  14845. set_nickname(from.nickname());
  14846. }
  14847. if (from.has_headurl()) {
  14848. set_headurl(from.headurl());
  14849. }
  14850. if (from.has_pwd()) {
  14851. set_pwd(from.pwd());
  14852. }
  14853. if (from.has_leftsecond()) {
  14854. set_leftsecond(from.leftsecond());
  14855. }
  14856. }
  14857. if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
  14858. if (from.has_receiveid()) {
  14859. set_receiveid(from.receiveid());
  14860. }
  14861. }
  14862. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  14863. }
  14864. void msg_airdropitem::CopyFrom(const ::google::protobuf::Message& from) {
  14865. if (&from == this) return;
  14866. Clear();
  14867. MergeFrom(from);
  14868. }
  14869. void msg_airdropitem::CopyFrom(const msg_airdropitem& from) {
  14870. if (&from == this) return;
  14871. Clear();
  14872. MergeFrom(from);
  14873. }
  14874. bool msg_airdropitem::IsInitialized() const {
  14875. return true;
  14876. }
  14877. void msg_airdropitem::Swap(msg_airdropitem* other) {
  14878. if (other != this) {
  14879. std::swap(uuid_, other->uuid_);
  14880. std::swap(playerid_, other->playerid_);
  14881. std::swap(itemid_, other->itemid_);
  14882. std::swap(itemcount_, other->itemcount_);
  14883. std::swap(nickname_, other->nickname_);
  14884. std::swap(headurl_, other->headurl_);
  14885. std::swap(pwd_, other->pwd_);
  14886. std::swap(leftsecond_, other->leftsecond_);
  14887. std::swap(receiveid_, other->receiveid_);
  14888. std::swap(_has_bits_[0], other->_has_bits_[0]);
  14889. _unknown_fields_.Swap(&other->_unknown_fields_);
  14890. std::swap(_cached_size_, other->_cached_size_);
  14891. }
  14892. }
  14893. ::google::protobuf::Metadata msg_airdropitem::GetMetadata() const {
  14894. protobuf_AssignDescriptorsOnce();
  14895. ::google::protobuf::Metadata metadata;
  14896. metadata.descriptor = msg_airdropitem_descriptor_;
  14897. metadata.reflection = msg_airdropitem_reflection_;
  14898. return metadata;
  14899. }
  14900. // ===================================================================
  14901. #ifndef _MSC_VER
  14902. const int packetl2c_get_airdrop_list_result::kPacketIdFieldNumber;
  14903. const int packetl2c_get_airdrop_list_result::kResultFieldNumber;
  14904. const int packetl2c_get_airdrop_list_result::kBplayerairdropFieldNumber;
  14905. const int packetl2c_get_airdrop_list_result::kItemsFieldNumber;
  14906. const int packetl2c_get_airdrop_list_result::kErrorcountFieldNumber;
  14907. #endif // !_MSC_VER
  14908. packetl2c_get_airdrop_list_result::packetl2c_get_airdrop_list_result()
  14909. : ::google::protobuf::Message() {
  14910. SharedCtor();
  14911. }
  14912. void packetl2c_get_airdrop_list_result::InitAsDefaultInstance() {
  14913. }
  14914. packetl2c_get_airdrop_list_result::packetl2c_get_airdrop_list_result(const packetl2c_get_airdrop_list_result& from)
  14915. : ::google::protobuf::Message() {
  14916. SharedCtor();
  14917. MergeFrom(from);
  14918. }
  14919. void packetl2c_get_airdrop_list_result::SharedCtor() {
  14920. _cached_size_ = 0;
  14921. packet_id_ = 16157;
  14922. result_ = 2;
  14923. bplayerairdrop_ = false;
  14924. errorcount_ = 0;
  14925. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  14926. }
  14927. packetl2c_get_airdrop_list_result::~packetl2c_get_airdrop_list_result() {
  14928. SharedDtor();
  14929. }
  14930. void packetl2c_get_airdrop_list_result::SharedDtor() {
  14931. if (this != default_instance_) {
  14932. }
  14933. }
  14934. void packetl2c_get_airdrop_list_result::SetCachedSize(int size) const {
  14935. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  14936. _cached_size_ = size;
  14937. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  14938. }
  14939. const ::google::protobuf::Descriptor* packetl2c_get_airdrop_list_result::descriptor() {
  14940. protobuf_AssignDescriptorsOnce();
  14941. return packetl2c_get_airdrop_list_result_descriptor_;
  14942. }
  14943. const packetl2c_get_airdrop_list_result& packetl2c_get_airdrop_list_result::default_instance() {
  14944. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  14945. return *default_instance_;
  14946. }
  14947. packetl2c_get_airdrop_list_result* packetl2c_get_airdrop_list_result::default_instance_ = NULL;
  14948. packetl2c_get_airdrop_list_result* packetl2c_get_airdrop_list_result::New() const {
  14949. return new packetl2c_get_airdrop_list_result;
  14950. }
  14951. void packetl2c_get_airdrop_list_result::Clear() {
  14952. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  14953. packet_id_ = 16157;
  14954. result_ = 2;
  14955. bplayerairdrop_ = false;
  14956. errorcount_ = 0;
  14957. }
  14958. items_.Clear();
  14959. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  14960. mutable_unknown_fields()->Clear();
  14961. }
  14962. bool packetl2c_get_airdrop_list_result::MergePartialFromCodedStream(
  14963. ::google::protobuf::io::CodedInputStream* input) {
  14964. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  14965. ::google::protobuf::uint32 tag;
  14966. while ((tag = input->ReadTag()) != 0) {
  14967. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  14968. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_airdrop_list_result];
  14969. case 1: {
  14970. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  14971. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  14972. int value;
  14973. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  14974. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  14975. input, &value)));
  14976. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  14977. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  14978. } else {
  14979. mutable_unknown_fields()->AddVarint(1, value);
  14980. }
  14981. } else {
  14982. goto handle_uninterpreted;
  14983. }
  14984. if (input->ExpectTag(16)) goto parse_result;
  14985. break;
  14986. }
  14987. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  14988. case 2: {
  14989. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  14990. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  14991. parse_result:
  14992. int value;
  14993. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  14994. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  14995. input, &value)));
  14996. if (::msg_type_def::e_msg_result_def_IsValid(value)) {
  14997. set_result(static_cast< ::msg_type_def::e_msg_result_def >(value));
  14998. } else {
  14999. mutable_unknown_fields()->AddVarint(2, value);
  15000. }
  15001. } else {
  15002. goto handle_uninterpreted;
  15003. }
  15004. if (input->ExpectTag(24)) goto parse_bplayerairdrop;
  15005. break;
  15006. }
  15007. // optional bool bplayerairdrop = 3;
  15008. case 3: {
  15009. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  15010. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  15011. parse_bplayerairdrop:
  15012. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  15013. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  15014. input, &bplayerairdrop_)));
  15015. set_has_bplayerairdrop();
  15016. } else {
  15017. goto handle_uninterpreted;
  15018. }
  15019. if (input->ExpectTag(34)) goto parse_items;
  15020. break;
  15021. }
  15022. // repeated .fish_protocols.msg_airdropitem items = 4;
  15023. case 4: {
  15024. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  15025. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  15026. parse_items:
  15027. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  15028. input, add_items()));
  15029. } else {
  15030. goto handle_uninterpreted;
  15031. }
  15032. if (input->ExpectTag(34)) goto parse_items;
  15033. if (input->ExpectTag(40)) goto parse_errorcount;
  15034. break;
  15035. }
  15036. // optional int32 errorcount = 5;
  15037. case 5: {
  15038. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  15039. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  15040. parse_errorcount:
  15041. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  15042. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  15043. input, &errorcount_)));
  15044. set_has_errorcount();
  15045. } else {
  15046. goto handle_uninterpreted;
  15047. }
  15048. if (input->ExpectAtEnd()) return true;
  15049. break;
  15050. }
  15051. default: {
  15052. handle_uninterpreted:
  15053. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  15054. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  15055. return true;
  15056. }
  15057. DO_(::google::protobuf::internal::WireFormat::SkipField(
  15058. input, tag, mutable_unknown_fields()));
  15059. break;
  15060. }
  15061. }
  15062. }
  15063. return true;
  15064. #undef DO_
  15065. }
  15066. void packetl2c_get_airdrop_list_result::SerializeWithCachedSizes(
  15067. ::google::protobuf::io::CodedOutputStream* output) const {
  15068. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_airdrop_list_result];
  15069. if (has_packet_id()) {
  15070. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  15071. 1, this->packet_id(), output);
  15072. }
  15073. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  15074. if (has_result()) {
  15075. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  15076. 2, this->result(), output);
  15077. }
  15078. // optional bool bplayerairdrop = 3;
  15079. if (has_bplayerairdrop()) {
  15080. ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->bplayerairdrop(), output);
  15081. }
  15082. // repeated .fish_protocols.msg_airdropitem items = 4;
  15083. for (int i = 0; i < this->items_size(); i++) {
  15084. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  15085. 4, this->items(i), output);
  15086. }
  15087. // optional int32 errorcount = 5;
  15088. if (has_errorcount()) {
  15089. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->errorcount(), output);
  15090. }
  15091. if (!unknown_fields().empty()) {
  15092. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  15093. unknown_fields(), output);
  15094. }
  15095. }
  15096. ::google::protobuf::uint8* packetl2c_get_airdrop_list_result::SerializeWithCachedSizesToArray(
  15097. ::google::protobuf::uint8* target) const {
  15098. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_airdrop_list_result];
  15099. if (has_packet_id()) {
  15100. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  15101. 1, this->packet_id(), target);
  15102. }
  15103. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  15104. if (has_result()) {
  15105. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  15106. 2, this->result(), target);
  15107. }
  15108. // optional bool bplayerairdrop = 3;
  15109. if (has_bplayerairdrop()) {
  15110. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->bplayerairdrop(), target);
  15111. }
  15112. // repeated .fish_protocols.msg_airdropitem items = 4;
  15113. for (int i = 0; i < this->items_size(); i++) {
  15114. target = ::google::protobuf::internal::WireFormatLite::
  15115. WriteMessageNoVirtualToArray(
  15116. 4, this->items(i), target);
  15117. }
  15118. // optional int32 errorcount = 5;
  15119. if (has_errorcount()) {
  15120. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->errorcount(), target);
  15121. }
  15122. if (!unknown_fields().empty()) {
  15123. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  15124. unknown_fields(), target);
  15125. }
  15126. return target;
  15127. }
  15128. int packetl2c_get_airdrop_list_result::ByteSize() const {
  15129. int total_size = 0;
  15130. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  15131. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_airdrop_list_result];
  15132. if (has_packet_id()) {
  15133. total_size += 1 +
  15134. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  15135. }
  15136. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  15137. if (has_result()) {
  15138. total_size += 1 +
  15139. ::google::protobuf::internal::WireFormatLite::EnumSize(this->result());
  15140. }
  15141. // optional bool bplayerairdrop = 3;
  15142. if (has_bplayerairdrop()) {
  15143. total_size += 1 + 1;
  15144. }
  15145. // optional int32 errorcount = 5;
  15146. if (has_errorcount()) {
  15147. total_size += 1 +
  15148. ::google::protobuf::internal::WireFormatLite::Int32Size(
  15149. this->errorcount());
  15150. }
  15151. }
  15152. // repeated .fish_protocols.msg_airdropitem items = 4;
  15153. total_size += 1 * this->items_size();
  15154. for (int i = 0; i < this->items_size(); i++) {
  15155. total_size +=
  15156. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  15157. this->items(i));
  15158. }
  15159. if (!unknown_fields().empty()) {
  15160. total_size +=
  15161. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  15162. unknown_fields());
  15163. }
  15164. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  15165. _cached_size_ = total_size;
  15166. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  15167. return total_size;
  15168. }
  15169. void packetl2c_get_airdrop_list_result::MergeFrom(const ::google::protobuf::Message& from) {
  15170. GOOGLE_CHECK_NE(&from, this);
  15171. const packetl2c_get_airdrop_list_result* source =
  15172. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_get_airdrop_list_result*>(
  15173. &from);
  15174. if (source == NULL) {
  15175. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  15176. } else {
  15177. MergeFrom(*source);
  15178. }
  15179. }
  15180. void packetl2c_get_airdrop_list_result::MergeFrom(const packetl2c_get_airdrop_list_result& from) {
  15181. GOOGLE_CHECK_NE(&from, this);
  15182. items_.MergeFrom(from.items_);
  15183. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  15184. if (from.has_packet_id()) {
  15185. set_packet_id(from.packet_id());
  15186. }
  15187. if (from.has_result()) {
  15188. set_result(from.result());
  15189. }
  15190. if (from.has_bplayerairdrop()) {
  15191. set_bplayerairdrop(from.bplayerairdrop());
  15192. }
  15193. if (from.has_errorcount()) {
  15194. set_errorcount(from.errorcount());
  15195. }
  15196. }
  15197. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  15198. }
  15199. void packetl2c_get_airdrop_list_result::CopyFrom(const ::google::protobuf::Message& from) {
  15200. if (&from == this) return;
  15201. Clear();
  15202. MergeFrom(from);
  15203. }
  15204. void packetl2c_get_airdrop_list_result::CopyFrom(const packetl2c_get_airdrop_list_result& from) {
  15205. if (&from == this) return;
  15206. Clear();
  15207. MergeFrom(from);
  15208. }
  15209. bool packetl2c_get_airdrop_list_result::IsInitialized() const {
  15210. return true;
  15211. }
  15212. void packetl2c_get_airdrop_list_result::Swap(packetl2c_get_airdrop_list_result* other) {
  15213. if (other != this) {
  15214. std::swap(packet_id_, other->packet_id_);
  15215. std::swap(result_, other->result_);
  15216. std::swap(bplayerairdrop_, other->bplayerairdrop_);
  15217. items_.Swap(&other->items_);
  15218. std::swap(errorcount_, other->errorcount_);
  15219. std::swap(_has_bits_[0], other->_has_bits_[0]);
  15220. _unknown_fields_.Swap(&other->_unknown_fields_);
  15221. std::swap(_cached_size_, other->_cached_size_);
  15222. }
  15223. }
  15224. ::google::protobuf::Metadata packetl2c_get_airdrop_list_result::GetMetadata() const {
  15225. protobuf_AssignDescriptorsOnce();
  15226. ::google::protobuf::Metadata metadata;
  15227. metadata.descriptor = packetl2c_get_airdrop_list_result_descriptor_;
  15228. metadata.reflection = packetl2c_get_airdrop_list_result_reflection_;
  15229. return metadata;
  15230. }
  15231. // ===================================================================
  15232. #ifndef _MSC_VER
  15233. const int packetc2l_goldfish_lottery::kPacketIdFieldNumber;
  15234. const int packetc2l_goldfish_lottery::kIdFieldNumber;
  15235. #endif // !_MSC_VER
  15236. packetc2l_goldfish_lottery::packetc2l_goldfish_lottery()
  15237. : ::google::protobuf::Message() {
  15238. SharedCtor();
  15239. }
  15240. void packetc2l_goldfish_lottery::InitAsDefaultInstance() {
  15241. }
  15242. packetc2l_goldfish_lottery::packetc2l_goldfish_lottery(const packetc2l_goldfish_lottery& from)
  15243. : ::google::protobuf::Message() {
  15244. SharedCtor();
  15245. MergeFrom(from);
  15246. }
  15247. void packetc2l_goldfish_lottery::SharedCtor() {
  15248. _cached_size_ = 0;
  15249. packet_id_ = 10169;
  15250. id_ = 0;
  15251. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  15252. }
  15253. packetc2l_goldfish_lottery::~packetc2l_goldfish_lottery() {
  15254. SharedDtor();
  15255. }
  15256. void packetc2l_goldfish_lottery::SharedDtor() {
  15257. if (this != default_instance_) {
  15258. }
  15259. }
  15260. void packetc2l_goldfish_lottery::SetCachedSize(int size) const {
  15261. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  15262. _cached_size_ = size;
  15263. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  15264. }
  15265. const ::google::protobuf::Descriptor* packetc2l_goldfish_lottery::descriptor() {
  15266. protobuf_AssignDescriptorsOnce();
  15267. return packetc2l_goldfish_lottery_descriptor_;
  15268. }
  15269. const packetc2l_goldfish_lottery& packetc2l_goldfish_lottery::default_instance() {
  15270. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  15271. return *default_instance_;
  15272. }
  15273. packetc2l_goldfish_lottery* packetc2l_goldfish_lottery::default_instance_ = NULL;
  15274. packetc2l_goldfish_lottery* packetc2l_goldfish_lottery::New() const {
  15275. return new packetc2l_goldfish_lottery;
  15276. }
  15277. void packetc2l_goldfish_lottery::Clear() {
  15278. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  15279. packet_id_ = 10169;
  15280. id_ = 0;
  15281. }
  15282. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  15283. mutable_unknown_fields()->Clear();
  15284. }
  15285. bool packetc2l_goldfish_lottery::MergePartialFromCodedStream(
  15286. ::google::protobuf::io::CodedInputStream* input) {
  15287. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  15288. ::google::protobuf::uint32 tag;
  15289. while ((tag = input->ReadTag()) != 0) {
  15290. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  15291. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_goldfish_lottery];
  15292. case 1: {
  15293. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  15294. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  15295. int value;
  15296. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  15297. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  15298. input, &value)));
  15299. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  15300. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  15301. } else {
  15302. mutable_unknown_fields()->AddVarint(1, value);
  15303. }
  15304. } else {
  15305. goto handle_uninterpreted;
  15306. }
  15307. if (input->ExpectTag(16)) goto parse_id;
  15308. break;
  15309. }
  15310. // optional int32 id = 2;
  15311. case 2: {
  15312. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  15313. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  15314. parse_id:
  15315. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  15316. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  15317. input, &id_)));
  15318. set_has_id();
  15319. } else {
  15320. goto handle_uninterpreted;
  15321. }
  15322. if (input->ExpectAtEnd()) return true;
  15323. break;
  15324. }
  15325. default: {
  15326. handle_uninterpreted:
  15327. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  15328. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  15329. return true;
  15330. }
  15331. DO_(::google::protobuf::internal::WireFormat::SkipField(
  15332. input, tag, mutable_unknown_fields()));
  15333. break;
  15334. }
  15335. }
  15336. }
  15337. return true;
  15338. #undef DO_
  15339. }
  15340. void packetc2l_goldfish_lottery::SerializeWithCachedSizes(
  15341. ::google::protobuf::io::CodedOutputStream* output) const {
  15342. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_goldfish_lottery];
  15343. if (has_packet_id()) {
  15344. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  15345. 1, this->packet_id(), output);
  15346. }
  15347. // optional int32 id = 2;
  15348. if (has_id()) {
  15349. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->id(), output);
  15350. }
  15351. if (!unknown_fields().empty()) {
  15352. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  15353. unknown_fields(), output);
  15354. }
  15355. }
  15356. ::google::protobuf::uint8* packetc2l_goldfish_lottery::SerializeWithCachedSizesToArray(
  15357. ::google::protobuf::uint8* target) const {
  15358. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_goldfish_lottery];
  15359. if (has_packet_id()) {
  15360. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  15361. 1, this->packet_id(), target);
  15362. }
  15363. // optional int32 id = 2;
  15364. if (has_id()) {
  15365. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->id(), target);
  15366. }
  15367. if (!unknown_fields().empty()) {
  15368. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  15369. unknown_fields(), target);
  15370. }
  15371. return target;
  15372. }
  15373. int packetc2l_goldfish_lottery::ByteSize() const {
  15374. int total_size = 0;
  15375. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  15376. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_goldfish_lottery];
  15377. if (has_packet_id()) {
  15378. total_size += 1 +
  15379. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  15380. }
  15381. // optional int32 id = 2;
  15382. if (has_id()) {
  15383. total_size += 1 +
  15384. ::google::protobuf::internal::WireFormatLite::Int32Size(
  15385. this->id());
  15386. }
  15387. }
  15388. if (!unknown_fields().empty()) {
  15389. total_size +=
  15390. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  15391. unknown_fields());
  15392. }
  15393. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  15394. _cached_size_ = total_size;
  15395. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  15396. return total_size;
  15397. }
  15398. void packetc2l_goldfish_lottery::MergeFrom(const ::google::protobuf::Message& from) {
  15399. GOOGLE_CHECK_NE(&from, this);
  15400. const packetc2l_goldfish_lottery* source =
  15401. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_goldfish_lottery*>(
  15402. &from);
  15403. if (source == NULL) {
  15404. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  15405. } else {
  15406. MergeFrom(*source);
  15407. }
  15408. }
  15409. void packetc2l_goldfish_lottery::MergeFrom(const packetc2l_goldfish_lottery& from) {
  15410. GOOGLE_CHECK_NE(&from, this);
  15411. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  15412. if (from.has_packet_id()) {
  15413. set_packet_id(from.packet_id());
  15414. }
  15415. if (from.has_id()) {
  15416. set_id(from.id());
  15417. }
  15418. }
  15419. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  15420. }
  15421. void packetc2l_goldfish_lottery::CopyFrom(const ::google::protobuf::Message& from) {
  15422. if (&from == this) return;
  15423. Clear();
  15424. MergeFrom(from);
  15425. }
  15426. void packetc2l_goldfish_lottery::CopyFrom(const packetc2l_goldfish_lottery& from) {
  15427. if (&from == this) return;
  15428. Clear();
  15429. MergeFrom(from);
  15430. }
  15431. bool packetc2l_goldfish_lottery::IsInitialized() const {
  15432. return true;
  15433. }
  15434. void packetc2l_goldfish_lottery::Swap(packetc2l_goldfish_lottery* other) {
  15435. if (other != this) {
  15436. std::swap(packet_id_, other->packet_id_);
  15437. std::swap(id_, other->id_);
  15438. std::swap(_has_bits_[0], other->_has_bits_[0]);
  15439. _unknown_fields_.Swap(&other->_unknown_fields_);
  15440. std::swap(_cached_size_, other->_cached_size_);
  15441. }
  15442. }
  15443. ::google::protobuf::Metadata packetc2l_goldfish_lottery::GetMetadata() const {
  15444. protobuf_AssignDescriptorsOnce();
  15445. ::google::protobuf::Metadata metadata;
  15446. metadata.descriptor = packetc2l_goldfish_lottery_descriptor_;
  15447. metadata.reflection = packetc2l_goldfish_lottery_reflection_;
  15448. return metadata;
  15449. }
  15450. // ===================================================================
  15451. #ifndef _MSC_VER
  15452. const int packetl2c_goldfish_lottery_result::kPacketIdFieldNumber;
  15453. const int packetl2c_goldfish_lottery_result::kResultFieldNumber;
  15454. const int packetl2c_goldfish_lottery_result::kPlayeridFieldNumber;
  15455. const int packetl2c_goldfish_lottery_result::kIdFieldNumber;
  15456. const int packetl2c_goldfish_lottery_result::kRewardIDFieldNumber;
  15457. #endif // !_MSC_VER
  15458. packetl2c_goldfish_lottery_result::packetl2c_goldfish_lottery_result()
  15459. : ::google::protobuf::Message() {
  15460. SharedCtor();
  15461. }
  15462. void packetl2c_goldfish_lottery_result::InitAsDefaultInstance() {
  15463. }
  15464. packetl2c_goldfish_lottery_result::packetl2c_goldfish_lottery_result(const packetl2c_goldfish_lottery_result& from)
  15465. : ::google::protobuf::Message() {
  15466. SharedCtor();
  15467. MergeFrom(from);
  15468. }
  15469. void packetl2c_goldfish_lottery_result::SharedCtor() {
  15470. _cached_size_ = 0;
  15471. packet_id_ = 16161;
  15472. result_ = 2;
  15473. playerid_ = 0;
  15474. id_ = 0;
  15475. rewardid_ = 0;
  15476. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  15477. }
  15478. packetl2c_goldfish_lottery_result::~packetl2c_goldfish_lottery_result() {
  15479. SharedDtor();
  15480. }
  15481. void packetl2c_goldfish_lottery_result::SharedDtor() {
  15482. if (this != default_instance_) {
  15483. }
  15484. }
  15485. void packetl2c_goldfish_lottery_result::SetCachedSize(int size) const {
  15486. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  15487. _cached_size_ = size;
  15488. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  15489. }
  15490. const ::google::protobuf::Descriptor* packetl2c_goldfish_lottery_result::descriptor() {
  15491. protobuf_AssignDescriptorsOnce();
  15492. return packetl2c_goldfish_lottery_result_descriptor_;
  15493. }
  15494. const packetl2c_goldfish_lottery_result& packetl2c_goldfish_lottery_result::default_instance() {
  15495. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  15496. return *default_instance_;
  15497. }
  15498. packetl2c_goldfish_lottery_result* packetl2c_goldfish_lottery_result::default_instance_ = NULL;
  15499. packetl2c_goldfish_lottery_result* packetl2c_goldfish_lottery_result::New() const {
  15500. return new packetl2c_goldfish_lottery_result;
  15501. }
  15502. void packetl2c_goldfish_lottery_result::Clear() {
  15503. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  15504. packet_id_ = 16161;
  15505. result_ = 2;
  15506. playerid_ = 0;
  15507. id_ = 0;
  15508. rewardid_ = 0;
  15509. }
  15510. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  15511. mutable_unknown_fields()->Clear();
  15512. }
  15513. bool packetl2c_goldfish_lottery_result::MergePartialFromCodedStream(
  15514. ::google::protobuf::io::CodedInputStream* input) {
  15515. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  15516. ::google::protobuf::uint32 tag;
  15517. while ((tag = input->ReadTag()) != 0) {
  15518. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  15519. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_goldfish_lottery_result];
  15520. case 1: {
  15521. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  15522. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  15523. int value;
  15524. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  15525. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  15526. input, &value)));
  15527. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  15528. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  15529. } else {
  15530. mutable_unknown_fields()->AddVarint(1, value);
  15531. }
  15532. } else {
  15533. goto handle_uninterpreted;
  15534. }
  15535. if (input->ExpectTag(16)) goto parse_result;
  15536. break;
  15537. }
  15538. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  15539. case 2: {
  15540. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  15541. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  15542. parse_result:
  15543. int value;
  15544. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  15545. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  15546. input, &value)));
  15547. if (::msg_type_def::e_msg_result_def_IsValid(value)) {
  15548. set_result(static_cast< ::msg_type_def::e_msg_result_def >(value));
  15549. } else {
  15550. mutable_unknown_fields()->AddVarint(2, value);
  15551. }
  15552. } else {
  15553. goto handle_uninterpreted;
  15554. }
  15555. if (input->ExpectTag(24)) goto parse_playerid;
  15556. break;
  15557. }
  15558. // optional int32 playerid = 3;
  15559. case 3: {
  15560. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  15561. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  15562. parse_playerid:
  15563. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  15564. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  15565. input, &playerid_)));
  15566. set_has_playerid();
  15567. } else {
  15568. goto handle_uninterpreted;
  15569. }
  15570. if (input->ExpectTag(32)) goto parse_id;
  15571. break;
  15572. }
  15573. // optional int32 id = 4;
  15574. case 4: {
  15575. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  15576. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  15577. parse_id:
  15578. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  15579. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  15580. input, &id_)));
  15581. set_has_id();
  15582. } else {
  15583. goto handle_uninterpreted;
  15584. }
  15585. if (input->ExpectTag(40)) goto parse_rewardID;
  15586. break;
  15587. }
  15588. // optional int32 rewardID = 5;
  15589. case 5: {
  15590. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  15591. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  15592. parse_rewardID:
  15593. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  15594. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  15595. input, &rewardid_)));
  15596. set_has_rewardid();
  15597. } else {
  15598. goto handle_uninterpreted;
  15599. }
  15600. if (input->ExpectAtEnd()) return true;
  15601. break;
  15602. }
  15603. default: {
  15604. handle_uninterpreted:
  15605. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  15606. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  15607. return true;
  15608. }
  15609. DO_(::google::protobuf::internal::WireFormat::SkipField(
  15610. input, tag, mutable_unknown_fields()));
  15611. break;
  15612. }
  15613. }
  15614. }
  15615. return true;
  15616. #undef DO_
  15617. }
  15618. void packetl2c_goldfish_lottery_result::SerializeWithCachedSizes(
  15619. ::google::protobuf::io::CodedOutputStream* output) const {
  15620. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_goldfish_lottery_result];
  15621. if (has_packet_id()) {
  15622. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  15623. 1, this->packet_id(), output);
  15624. }
  15625. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  15626. if (has_result()) {
  15627. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  15628. 2, this->result(), output);
  15629. }
  15630. // optional int32 playerid = 3;
  15631. if (has_playerid()) {
  15632. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->playerid(), output);
  15633. }
  15634. // optional int32 id = 4;
  15635. if (has_id()) {
  15636. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->id(), output);
  15637. }
  15638. // optional int32 rewardID = 5;
  15639. if (has_rewardid()) {
  15640. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->rewardid(), output);
  15641. }
  15642. if (!unknown_fields().empty()) {
  15643. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  15644. unknown_fields(), output);
  15645. }
  15646. }
  15647. ::google::protobuf::uint8* packetl2c_goldfish_lottery_result::SerializeWithCachedSizesToArray(
  15648. ::google::protobuf::uint8* target) const {
  15649. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_goldfish_lottery_result];
  15650. if (has_packet_id()) {
  15651. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  15652. 1, this->packet_id(), target);
  15653. }
  15654. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  15655. if (has_result()) {
  15656. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  15657. 2, this->result(), target);
  15658. }
  15659. // optional int32 playerid = 3;
  15660. if (has_playerid()) {
  15661. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->playerid(), target);
  15662. }
  15663. // optional int32 id = 4;
  15664. if (has_id()) {
  15665. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->id(), target);
  15666. }
  15667. // optional int32 rewardID = 5;
  15668. if (has_rewardid()) {
  15669. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->rewardid(), target);
  15670. }
  15671. if (!unknown_fields().empty()) {
  15672. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  15673. unknown_fields(), target);
  15674. }
  15675. return target;
  15676. }
  15677. int packetl2c_goldfish_lottery_result::ByteSize() const {
  15678. int total_size = 0;
  15679. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  15680. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_goldfish_lottery_result];
  15681. if (has_packet_id()) {
  15682. total_size += 1 +
  15683. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  15684. }
  15685. // optional .msg_type_def.e_msg_result_def result = 2 [default = e_rmt_fail];
  15686. if (has_result()) {
  15687. total_size += 1 +
  15688. ::google::protobuf::internal::WireFormatLite::EnumSize(this->result());
  15689. }
  15690. // optional int32 playerid = 3;
  15691. if (has_playerid()) {
  15692. total_size += 1 +
  15693. ::google::protobuf::internal::WireFormatLite::Int32Size(
  15694. this->playerid());
  15695. }
  15696. // optional int32 id = 4;
  15697. if (has_id()) {
  15698. total_size += 1 +
  15699. ::google::protobuf::internal::WireFormatLite::Int32Size(
  15700. this->id());
  15701. }
  15702. // optional int32 rewardID = 5;
  15703. if (has_rewardid()) {
  15704. total_size += 1 +
  15705. ::google::protobuf::internal::WireFormatLite::Int32Size(
  15706. this->rewardid());
  15707. }
  15708. }
  15709. if (!unknown_fields().empty()) {
  15710. total_size +=
  15711. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  15712. unknown_fields());
  15713. }
  15714. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  15715. _cached_size_ = total_size;
  15716. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  15717. return total_size;
  15718. }
  15719. void packetl2c_goldfish_lottery_result::MergeFrom(const ::google::protobuf::Message& from) {
  15720. GOOGLE_CHECK_NE(&from, this);
  15721. const packetl2c_goldfish_lottery_result* source =
  15722. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_goldfish_lottery_result*>(
  15723. &from);
  15724. if (source == NULL) {
  15725. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  15726. } else {
  15727. MergeFrom(*source);
  15728. }
  15729. }
  15730. void packetl2c_goldfish_lottery_result::MergeFrom(const packetl2c_goldfish_lottery_result& from) {
  15731. GOOGLE_CHECK_NE(&from, this);
  15732. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  15733. if (from.has_packet_id()) {
  15734. set_packet_id(from.packet_id());
  15735. }
  15736. if (from.has_result()) {
  15737. set_result(from.result());
  15738. }
  15739. if (from.has_playerid()) {
  15740. set_playerid(from.playerid());
  15741. }
  15742. if (from.has_id()) {
  15743. set_id(from.id());
  15744. }
  15745. if (from.has_rewardid()) {
  15746. set_rewardid(from.rewardid());
  15747. }
  15748. }
  15749. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  15750. }
  15751. void packetl2c_goldfish_lottery_result::CopyFrom(const ::google::protobuf::Message& from) {
  15752. if (&from == this) return;
  15753. Clear();
  15754. MergeFrom(from);
  15755. }
  15756. void packetl2c_goldfish_lottery_result::CopyFrom(const packetl2c_goldfish_lottery_result& from) {
  15757. if (&from == this) return;
  15758. Clear();
  15759. MergeFrom(from);
  15760. }
  15761. bool packetl2c_goldfish_lottery_result::IsInitialized() const {
  15762. return true;
  15763. }
  15764. void packetl2c_goldfish_lottery_result::Swap(packetl2c_goldfish_lottery_result* other) {
  15765. if (other != this) {
  15766. std::swap(packet_id_, other->packet_id_);
  15767. std::swap(result_, other->result_);
  15768. std::swap(playerid_, other->playerid_);
  15769. std::swap(id_, other->id_);
  15770. std::swap(rewardid_, other->rewardid_);
  15771. std::swap(_has_bits_[0], other->_has_bits_[0]);
  15772. _unknown_fields_.Swap(&other->_unknown_fields_);
  15773. std::swap(_cached_size_, other->_cached_size_);
  15774. }
  15775. }
  15776. ::google::protobuf::Metadata packetl2c_goldfish_lottery_result::GetMetadata() const {
  15777. protobuf_AssignDescriptorsOnce();
  15778. ::google::protobuf::Metadata metadata;
  15779. metadata.descriptor = packetl2c_goldfish_lottery_result_descriptor_;
  15780. metadata.reflection = packetl2c_goldfish_lottery_result_reflection_;
  15781. return metadata;
  15782. }
  15783. // ===================================================================
  15784. #ifndef _MSC_VER
  15785. const int packetl2c_bc_table_finish_turntablefish_balance::kPacketIdFieldNumber;
  15786. const int packetl2c_bc_table_finish_turntablefish_balance::kPlayerIdFieldNumber;
  15787. const int packetl2c_bc_table_finish_turntablefish_balance::kAddGoldFieldNumber;
  15788. #endif // !_MSC_VER
  15789. packetl2c_bc_table_finish_turntablefish_balance::packetl2c_bc_table_finish_turntablefish_balance()
  15790. : ::google::protobuf::Message() {
  15791. SharedCtor();
  15792. }
  15793. void packetl2c_bc_table_finish_turntablefish_balance::InitAsDefaultInstance() {
  15794. }
  15795. packetl2c_bc_table_finish_turntablefish_balance::packetl2c_bc_table_finish_turntablefish_balance(const packetl2c_bc_table_finish_turntablefish_balance& from)
  15796. : ::google::protobuf::Message() {
  15797. SharedCtor();
  15798. MergeFrom(from);
  15799. }
  15800. void packetl2c_bc_table_finish_turntablefish_balance::SharedCtor() {
  15801. _cached_size_ = 0;
  15802. packet_id_ = 16149;
  15803. playerid_ = 0;
  15804. addgold_ = 0;
  15805. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  15806. }
  15807. packetl2c_bc_table_finish_turntablefish_balance::~packetl2c_bc_table_finish_turntablefish_balance() {
  15808. SharedDtor();
  15809. }
  15810. void packetl2c_bc_table_finish_turntablefish_balance::SharedDtor() {
  15811. if (this != default_instance_) {
  15812. }
  15813. }
  15814. void packetl2c_bc_table_finish_turntablefish_balance::SetCachedSize(int size) const {
  15815. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  15816. _cached_size_ = size;
  15817. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  15818. }
  15819. const ::google::protobuf::Descriptor* packetl2c_bc_table_finish_turntablefish_balance::descriptor() {
  15820. protobuf_AssignDescriptorsOnce();
  15821. return packetl2c_bc_table_finish_turntablefish_balance_descriptor_;
  15822. }
  15823. const packetl2c_bc_table_finish_turntablefish_balance& packetl2c_bc_table_finish_turntablefish_balance::default_instance() {
  15824. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  15825. return *default_instance_;
  15826. }
  15827. packetl2c_bc_table_finish_turntablefish_balance* packetl2c_bc_table_finish_turntablefish_balance::default_instance_ = NULL;
  15828. packetl2c_bc_table_finish_turntablefish_balance* packetl2c_bc_table_finish_turntablefish_balance::New() const {
  15829. return new packetl2c_bc_table_finish_turntablefish_balance;
  15830. }
  15831. void packetl2c_bc_table_finish_turntablefish_balance::Clear() {
  15832. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  15833. packet_id_ = 16149;
  15834. playerid_ = 0;
  15835. addgold_ = 0;
  15836. }
  15837. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  15838. mutable_unknown_fields()->Clear();
  15839. }
  15840. bool packetl2c_bc_table_finish_turntablefish_balance::MergePartialFromCodedStream(
  15841. ::google::protobuf::io::CodedInputStream* input) {
  15842. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  15843. ::google::protobuf::uint32 tag;
  15844. while ((tag = input->ReadTag()) != 0) {
  15845. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  15846. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_bc_table_finish_turntablefish_balance];
  15847. case 1: {
  15848. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  15849. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  15850. int value;
  15851. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  15852. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  15853. input, &value)));
  15854. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  15855. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  15856. } else {
  15857. mutable_unknown_fields()->AddVarint(1, value);
  15858. }
  15859. } else {
  15860. goto handle_uninterpreted;
  15861. }
  15862. if (input->ExpectTag(16)) goto parse_playerId;
  15863. break;
  15864. }
  15865. // optional int32 playerId = 2;
  15866. case 2: {
  15867. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  15868. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  15869. parse_playerId:
  15870. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  15871. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  15872. input, &playerid_)));
  15873. set_has_playerid();
  15874. } else {
  15875. goto handle_uninterpreted;
  15876. }
  15877. if (input->ExpectTag(24)) goto parse_addGold;
  15878. break;
  15879. }
  15880. // optional int32 addGold = 3;
  15881. case 3: {
  15882. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  15883. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  15884. parse_addGold:
  15885. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  15886. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  15887. input, &addgold_)));
  15888. set_has_addgold();
  15889. } else {
  15890. goto handle_uninterpreted;
  15891. }
  15892. if (input->ExpectAtEnd()) return true;
  15893. break;
  15894. }
  15895. default: {
  15896. handle_uninterpreted:
  15897. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  15898. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  15899. return true;
  15900. }
  15901. DO_(::google::protobuf::internal::WireFormat::SkipField(
  15902. input, tag, mutable_unknown_fields()));
  15903. break;
  15904. }
  15905. }
  15906. }
  15907. return true;
  15908. #undef DO_
  15909. }
  15910. void packetl2c_bc_table_finish_turntablefish_balance::SerializeWithCachedSizes(
  15911. ::google::protobuf::io::CodedOutputStream* output) const {
  15912. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_bc_table_finish_turntablefish_balance];
  15913. if (has_packet_id()) {
  15914. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  15915. 1, this->packet_id(), output);
  15916. }
  15917. // optional int32 playerId = 2;
  15918. if (has_playerid()) {
  15919. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->playerid(), output);
  15920. }
  15921. // optional int32 addGold = 3;
  15922. if (has_addgold()) {
  15923. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->addgold(), output);
  15924. }
  15925. if (!unknown_fields().empty()) {
  15926. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  15927. unknown_fields(), output);
  15928. }
  15929. }
  15930. ::google::protobuf::uint8* packetl2c_bc_table_finish_turntablefish_balance::SerializeWithCachedSizesToArray(
  15931. ::google::protobuf::uint8* target) const {
  15932. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_bc_table_finish_turntablefish_balance];
  15933. if (has_packet_id()) {
  15934. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  15935. 1, this->packet_id(), target);
  15936. }
  15937. // optional int32 playerId = 2;
  15938. if (has_playerid()) {
  15939. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->playerid(), target);
  15940. }
  15941. // optional int32 addGold = 3;
  15942. if (has_addgold()) {
  15943. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->addgold(), target);
  15944. }
  15945. if (!unknown_fields().empty()) {
  15946. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  15947. unknown_fields(), target);
  15948. }
  15949. return target;
  15950. }
  15951. int packetl2c_bc_table_finish_turntablefish_balance::ByteSize() const {
  15952. int total_size = 0;
  15953. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  15954. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_bc_table_finish_turntablefish_balance];
  15955. if (has_packet_id()) {
  15956. total_size += 1 +
  15957. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  15958. }
  15959. // optional int32 playerId = 2;
  15960. if (has_playerid()) {
  15961. total_size += 1 +
  15962. ::google::protobuf::internal::WireFormatLite::Int32Size(
  15963. this->playerid());
  15964. }
  15965. // optional int32 addGold = 3;
  15966. if (has_addgold()) {
  15967. total_size += 1 +
  15968. ::google::protobuf::internal::WireFormatLite::Int32Size(
  15969. this->addgold());
  15970. }
  15971. }
  15972. if (!unknown_fields().empty()) {
  15973. total_size +=
  15974. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  15975. unknown_fields());
  15976. }
  15977. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  15978. _cached_size_ = total_size;
  15979. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  15980. return total_size;
  15981. }
  15982. void packetl2c_bc_table_finish_turntablefish_balance::MergeFrom(const ::google::protobuf::Message& from) {
  15983. GOOGLE_CHECK_NE(&from, this);
  15984. const packetl2c_bc_table_finish_turntablefish_balance* source =
  15985. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_bc_table_finish_turntablefish_balance*>(
  15986. &from);
  15987. if (source == NULL) {
  15988. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  15989. } else {
  15990. MergeFrom(*source);
  15991. }
  15992. }
  15993. void packetl2c_bc_table_finish_turntablefish_balance::MergeFrom(const packetl2c_bc_table_finish_turntablefish_balance& from) {
  15994. GOOGLE_CHECK_NE(&from, this);
  15995. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  15996. if (from.has_packet_id()) {
  15997. set_packet_id(from.packet_id());
  15998. }
  15999. if (from.has_playerid()) {
  16000. set_playerid(from.playerid());
  16001. }
  16002. if (from.has_addgold()) {
  16003. set_addgold(from.addgold());
  16004. }
  16005. }
  16006. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  16007. }
  16008. void packetl2c_bc_table_finish_turntablefish_balance::CopyFrom(const ::google::protobuf::Message& from) {
  16009. if (&from == this) return;
  16010. Clear();
  16011. MergeFrom(from);
  16012. }
  16013. void packetl2c_bc_table_finish_turntablefish_balance::CopyFrom(const packetl2c_bc_table_finish_turntablefish_balance& from) {
  16014. if (&from == this) return;
  16015. Clear();
  16016. MergeFrom(from);
  16017. }
  16018. bool packetl2c_bc_table_finish_turntablefish_balance::IsInitialized() const {
  16019. return true;
  16020. }
  16021. void packetl2c_bc_table_finish_turntablefish_balance::Swap(packetl2c_bc_table_finish_turntablefish_balance* other) {
  16022. if (other != this) {
  16023. std::swap(packet_id_, other->packet_id_);
  16024. std::swap(playerid_, other->playerid_);
  16025. std::swap(addgold_, other->addgold_);
  16026. std::swap(_has_bits_[0], other->_has_bits_[0]);
  16027. _unknown_fields_.Swap(&other->_unknown_fields_);
  16028. std::swap(_cached_size_, other->_cached_size_);
  16029. }
  16030. }
  16031. ::google::protobuf::Metadata packetl2c_bc_table_finish_turntablefish_balance::GetMetadata() const {
  16032. protobuf_AssignDescriptorsOnce();
  16033. ::google::protobuf::Metadata metadata;
  16034. metadata.descriptor = packetl2c_bc_table_finish_turntablefish_balance_descriptor_;
  16035. metadata.reflection = packetl2c_bc_table_finish_turntablefish_balance_reflection_;
  16036. return metadata;
  16037. }
  16038. // ===================================================================
  16039. #ifndef _MSC_VER
  16040. const int packetc2l_exchange_dimensity::kPacketIdFieldNumber;
  16041. const int packetc2l_exchange_dimensity::kExchangeIdFieldNumber;
  16042. #endif // !_MSC_VER
  16043. packetc2l_exchange_dimensity::packetc2l_exchange_dimensity()
  16044. : ::google::protobuf::Message() {
  16045. SharedCtor();
  16046. }
  16047. void packetc2l_exchange_dimensity::InitAsDefaultInstance() {
  16048. }
  16049. packetc2l_exchange_dimensity::packetc2l_exchange_dimensity(const packetc2l_exchange_dimensity& from)
  16050. : ::google::protobuf::Message() {
  16051. SharedCtor();
  16052. MergeFrom(from);
  16053. }
  16054. void packetc2l_exchange_dimensity::SharedCtor() {
  16055. _cached_size_ = 0;
  16056. packet_id_ = 10170;
  16057. exchangeid_ = 0;
  16058. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  16059. }
  16060. packetc2l_exchange_dimensity::~packetc2l_exchange_dimensity() {
  16061. SharedDtor();
  16062. }
  16063. void packetc2l_exchange_dimensity::SharedDtor() {
  16064. if (this != default_instance_) {
  16065. }
  16066. }
  16067. void packetc2l_exchange_dimensity::SetCachedSize(int size) const {
  16068. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  16069. _cached_size_ = size;
  16070. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  16071. }
  16072. const ::google::protobuf::Descriptor* packetc2l_exchange_dimensity::descriptor() {
  16073. protobuf_AssignDescriptorsOnce();
  16074. return packetc2l_exchange_dimensity_descriptor_;
  16075. }
  16076. const packetc2l_exchange_dimensity& packetc2l_exchange_dimensity::default_instance() {
  16077. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  16078. return *default_instance_;
  16079. }
  16080. packetc2l_exchange_dimensity* packetc2l_exchange_dimensity::default_instance_ = NULL;
  16081. packetc2l_exchange_dimensity* packetc2l_exchange_dimensity::New() const {
  16082. return new packetc2l_exchange_dimensity;
  16083. }
  16084. void packetc2l_exchange_dimensity::Clear() {
  16085. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  16086. packet_id_ = 10170;
  16087. exchangeid_ = 0;
  16088. }
  16089. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  16090. mutable_unknown_fields()->Clear();
  16091. }
  16092. bool packetc2l_exchange_dimensity::MergePartialFromCodedStream(
  16093. ::google::protobuf::io::CodedInputStream* input) {
  16094. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  16095. ::google::protobuf::uint32 tag;
  16096. while ((tag = input->ReadTag()) != 0) {
  16097. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  16098. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_exchange_dimensity];
  16099. case 1: {
  16100. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  16101. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  16102. int value;
  16103. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  16104. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  16105. input, &value)));
  16106. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  16107. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  16108. } else {
  16109. mutable_unknown_fields()->AddVarint(1, value);
  16110. }
  16111. } else {
  16112. goto handle_uninterpreted;
  16113. }
  16114. if (input->ExpectTag(16)) goto parse_exchangeId;
  16115. break;
  16116. }
  16117. // optional int32 exchangeId = 2;
  16118. case 2: {
  16119. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  16120. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  16121. parse_exchangeId:
  16122. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  16123. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  16124. input, &exchangeid_)));
  16125. set_has_exchangeid();
  16126. } else {
  16127. goto handle_uninterpreted;
  16128. }
  16129. if (input->ExpectAtEnd()) return true;
  16130. break;
  16131. }
  16132. default: {
  16133. handle_uninterpreted:
  16134. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  16135. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  16136. return true;
  16137. }
  16138. DO_(::google::protobuf::internal::WireFormat::SkipField(
  16139. input, tag, mutable_unknown_fields()));
  16140. break;
  16141. }
  16142. }
  16143. }
  16144. return true;
  16145. #undef DO_
  16146. }
  16147. void packetc2l_exchange_dimensity::SerializeWithCachedSizes(
  16148. ::google::protobuf::io::CodedOutputStream* output) const {
  16149. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_exchange_dimensity];
  16150. if (has_packet_id()) {
  16151. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  16152. 1, this->packet_id(), output);
  16153. }
  16154. // optional int32 exchangeId = 2;
  16155. if (has_exchangeid()) {
  16156. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->exchangeid(), output);
  16157. }
  16158. if (!unknown_fields().empty()) {
  16159. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  16160. unknown_fields(), output);
  16161. }
  16162. }
  16163. ::google::protobuf::uint8* packetc2l_exchange_dimensity::SerializeWithCachedSizesToArray(
  16164. ::google::protobuf::uint8* target) const {
  16165. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_exchange_dimensity];
  16166. if (has_packet_id()) {
  16167. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  16168. 1, this->packet_id(), target);
  16169. }
  16170. // optional int32 exchangeId = 2;
  16171. if (has_exchangeid()) {
  16172. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->exchangeid(), target);
  16173. }
  16174. if (!unknown_fields().empty()) {
  16175. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  16176. unknown_fields(), target);
  16177. }
  16178. return target;
  16179. }
  16180. int packetc2l_exchange_dimensity::ByteSize() const {
  16181. int total_size = 0;
  16182. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  16183. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_exchange_dimensity];
  16184. if (has_packet_id()) {
  16185. total_size += 1 +
  16186. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  16187. }
  16188. // optional int32 exchangeId = 2;
  16189. if (has_exchangeid()) {
  16190. total_size += 1 +
  16191. ::google::protobuf::internal::WireFormatLite::Int32Size(
  16192. this->exchangeid());
  16193. }
  16194. }
  16195. if (!unknown_fields().empty()) {
  16196. total_size +=
  16197. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  16198. unknown_fields());
  16199. }
  16200. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  16201. _cached_size_ = total_size;
  16202. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  16203. return total_size;
  16204. }
  16205. void packetc2l_exchange_dimensity::MergeFrom(const ::google::protobuf::Message& from) {
  16206. GOOGLE_CHECK_NE(&from, this);
  16207. const packetc2l_exchange_dimensity* source =
  16208. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_exchange_dimensity*>(
  16209. &from);
  16210. if (source == NULL) {
  16211. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  16212. } else {
  16213. MergeFrom(*source);
  16214. }
  16215. }
  16216. void packetc2l_exchange_dimensity::MergeFrom(const packetc2l_exchange_dimensity& from) {
  16217. GOOGLE_CHECK_NE(&from, this);
  16218. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  16219. if (from.has_packet_id()) {
  16220. set_packet_id(from.packet_id());
  16221. }
  16222. if (from.has_exchangeid()) {
  16223. set_exchangeid(from.exchangeid());
  16224. }
  16225. }
  16226. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  16227. }
  16228. void packetc2l_exchange_dimensity::CopyFrom(const ::google::protobuf::Message& from) {
  16229. if (&from == this) return;
  16230. Clear();
  16231. MergeFrom(from);
  16232. }
  16233. void packetc2l_exchange_dimensity::CopyFrom(const packetc2l_exchange_dimensity& from) {
  16234. if (&from == this) return;
  16235. Clear();
  16236. MergeFrom(from);
  16237. }
  16238. bool packetc2l_exchange_dimensity::IsInitialized() const {
  16239. return true;
  16240. }
  16241. void packetc2l_exchange_dimensity::Swap(packetc2l_exchange_dimensity* other) {
  16242. if (other != this) {
  16243. std::swap(packet_id_, other->packet_id_);
  16244. std::swap(exchangeid_, other->exchangeid_);
  16245. std::swap(_has_bits_[0], other->_has_bits_[0]);
  16246. _unknown_fields_.Swap(&other->_unknown_fields_);
  16247. std::swap(_cached_size_, other->_cached_size_);
  16248. }
  16249. }
  16250. ::google::protobuf::Metadata packetc2l_exchange_dimensity::GetMetadata() const {
  16251. protobuf_AssignDescriptorsOnce();
  16252. ::google::protobuf::Metadata metadata;
  16253. metadata.descriptor = packetc2l_exchange_dimensity_descriptor_;
  16254. metadata.reflection = packetc2l_exchange_dimensity_reflection_;
  16255. return metadata;
  16256. }
  16257. // ===================================================================
  16258. #ifndef _MSC_VER
  16259. const int packetl2c_exchange_dimensity_result::kPacketIdFieldNumber;
  16260. const int packetl2c_exchange_dimensity_result::kExchangeIdFieldNumber;
  16261. const int packetl2c_exchange_dimensity_result::kResultFieldNumber;
  16262. #endif // !_MSC_VER
  16263. packetl2c_exchange_dimensity_result::packetl2c_exchange_dimensity_result()
  16264. : ::google::protobuf::Message() {
  16265. SharedCtor();
  16266. }
  16267. void packetl2c_exchange_dimensity_result::InitAsDefaultInstance() {
  16268. }
  16269. packetl2c_exchange_dimensity_result::packetl2c_exchange_dimensity_result(const packetl2c_exchange_dimensity_result& from)
  16270. : ::google::protobuf::Message() {
  16271. SharedCtor();
  16272. MergeFrom(from);
  16273. }
  16274. void packetl2c_exchange_dimensity_result::SharedCtor() {
  16275. _cached_size_ = 0;
  16276. packet_id_ = 16163;
  16277. exchangeid_ = 0;
  16278. result_ = 0;
  16279. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  16280. }
  16281. packetl2c_exchange_dimensity_result::~packetl2c_exchange_dimensity_result() {
  16282. SharedDtor();
  16283. }
  16284. void packetl2c_exchange_dimensity_result::SharedDtor() {
  16285. if (this != default_instance_) {
  16286. }
  16287. }
  16288. void packetl2c_exchange_dimensity_result::SetCachedSize(int size) const {
  16289. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  16290. _cached_size_ = size;
  16291. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  16292. }
  16293. const ::google::protobuf::Descriptor* packetl2c_exchange_dimensity_result::descriptor() {
  16294. protobuf_AssignDescriptorsOnce();
  16295. return packetl2c_exchange_dimensity_result_descriptor_;
  16296. }
  16297. const packetl2c_exchange_dimensity_result& packetl2c_exchange_dimensity_result::default_instance() {
  16298. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  16299. return *default_instance_;
  16300. }
  16301. packetl2c_exchange_dimensity_result* packetl2c_exchange_dimensity_result::default_instance_ = NULL;
  16302. packetl2c_exchange_dimensity_result* packetl2c_exchange_dimensity_result::New() const {
  16303. return new packetl2c_exchange_dimensity_result;
  16304. }
  16305. void packetl2c_exchange_dimensity_result::Clear() {
  16306. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  16307. packet_id_ = 16163;
  16308. exchangeid_ = 0;
  16309. result_ = 0;
  16310. }
  16311. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  16312. mutable_unknown_fields()->Clear();
  16313. }
  16314. bool packetl2c_exchange_dimensity_result::MergePartialFromCodedStream(
  16315. ::google::protobuf::io::CodedInputStream* input) {
  16316. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  16317. ::google::protobuf::uint32 tag;
  16318. while ((tag = input->ReadTag()) != 0) {
  16319. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  16320. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_exchange_dimensity_result];
  16321. case 1: {
  16322. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  16323. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  16324. int value;
  16325. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  16326. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  16327. input, &value)));
  16328. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  16329. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  16330. } else {
  16331. mutable_unknown_fields()->AddVarint(1, value);
  16332. }
  16333. } else {
  16334. goto handle_uninterpreted;
  16335. }
  16336. if (input->ExpectTag(16)) goto parse_exchangeId;
  16337. break;
  16338. }
  16339. // optional int32 exchangeId = 2;
  16340. case 2: {
  16341. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  16342. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  16343. parse_exchangeId:
  16344. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  16345. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  16346. input, &exchangeid_)));
  16347. set_has_exchangeid();
  16348. } else {
  16349. goto handle_uninterpreted;
  16350. }
  16351. if (input->ExpectTag(24)) goto parse_result;
  16352. break;
  16353. }
  16354. // optional int32 result = 3;
  16355. case 3: {
  16356. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  16357. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  16358. parse_result:
  16359. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  16360. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  16361. input, &result_)));
  16362. set_has_result();
  16363. } else {
  16364. goto handle_uninterpreted;
  16365. }
  16366. if (input->ExpectAtEnd()) return true;
  16367. break;
  16368. }
  16369. default: {
  16370. handle_uninterpreted:
  16371. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  16372. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  16373. return true;
  16374. }
  16375. DO_(::google::protobuf::internal::WireFormat::SkipField(
  16376. input, tag, mutable_unknown_fields()));
  16377. break;
  16378. }
  16379. }
  16380. }
  16381. return true;
  16382. #undef DO_
  16383. }
  16384. void packetl2c_exchange_dimensity_result::SerializeWithCachedSizes(
  16385. ::google::protobuf::io::CodedOutputStream* output) const {
  16386. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_exchange_dimensity_result];
  16387. if (has_packet_id()) {
  16388. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  16389. 1, this->packet_id(), output);
  16390. }
  16391. // optional int32 exchangeId = 2;
  16392. if (has_exchangeid()) {
  16393. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->exchangeid(), output);
  16394. }
  16395. // optional int32 result = 3;
  16396. if (has_result()) {
  16397. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->result(), output);
  16398. }
  16399. if (!unknown_fields().empty()) {
  16400. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  16401. unknown_fields(), output);
  16402. }
  16403. }
  16404. ::google::protobuf::uint8* packetl2c_exchange_dimensity_result::SerializeWithCachedSizesToArray(
  16405. ::google::protobuf::uint8* target) const {
  16406. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_exchange_dimensity_result];
  16407. if (has_packet_id()) {
  16408. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  16409. 1, this->packet_id(), target);
  16410. }
  16411. // optional int32 exchangeId = 2;
  16412. if (has_exchangeid()) {
  16413. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->exchangeid(), target);
  16414. }
  16415. // optional int32 result = 3;
  16416. if (has_result()) {
  16417. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->result(), target);
  16418. }
  16419. if (!unknown_fields().empty()) {
  16420. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  16421. unknown_fields(), target);
  16422. }
  16423. return target;
  16424. }
  16425. int packetl2c_exchange_dimensity_result::ByteSize() const {
  16426. int total_size = 0;
  16427. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  16428. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_exchange_dimensity_result];
  16429. if (has_packet_id()) {
  16430. total_size += 1 +
  16431. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  16432. }
  16433. // optional int32 exchangeId = 2;
  16434. if (has_exchangeid()) {
  16435. total_size += 1 +
  16436. ::google::protobuf::internal::WireFormatLite::Int32Size(
  16437. this->exchangeid());
  16438. }
  16439. // optional int32 result = 3;
  16440. if (has_result()) {
  16441. total_size += 1 +
  16442. ::google::protobuf::internal::WireFormatLite::Int32Size(
  16443. this->result());
  16444. }
  16445. }
  16446. if (!unknown_fields().empty()) {
  16447. total_size +=
  16448. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  16449. unknown_fields());
  16450. }
  16451. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  16452. _cached_size_ = total_size;
  16453. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  16454. return total_size;
  16455. }
  16456. void packetl2c_exchange_dimensity_result::MergeFrom(const ::google::protobuf::Message& from) {
  16457. GOOGLE_CHECK_NE(&from, this);
  16458. const packetl2c_exchange_dimensity_result* source =
  16459. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_exchange_dimensity_result*>(
  16460. &from);
  16461. if (source == NULL) {
  16462. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  16463. } else {
  16464. MergeFrom(*source);
  16465. }
  16466. }
  16467. void packetl2c_exchange_dimensity_result::MergeFrom(const packetl2c_exchange_dimensity_result& from) {
  16468. GOOGLE_CHECK_NE(&from, this);
  16469. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  16470. if (from.has_packet_id()) {
  16471. set_packet_id(from.packet_id());
  16472. }
  16473. if (from.has_exchangeid()) {
  16474. set_exchangeid(from.exchangeid());
  16475. }
  16476. if (from.has_result()) {
  16477. set_result(from.result());
  16478. }
  16479. }
  16480. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  16481. }
  16482. void packetl2c_exchange_dimensity_result::CopyFrom(const ::google::protobuf::Message& from) {
  16483. if (&from == this) return;
  16484. Clear();
  16485. MergeFrom(from);
  16486. }
  16487. void packetl2c_exchange_dimensity_result::CopyFrom(const packetl2c_exchange_dimensity_result& from) {
  16488. if (&from == this) return;
  16489. Clear();
  16490. MergeFrom(from);
  16491. }
  16492. bool packetl2c_exchange_dimensity_result::IsInitialized() const {
  16493. return true;
  16494. }
  16495. void packetl2c_exchange_dimensity_result::Swap(packetl2c_exchange_dimensity_result* other) {
  16496. if (other != this) {
  16497. std::swap(packet_id_, other->packet_id_);
  16498. std::swap(exchangeid_, other->exchangeid_);
  16499. std::swap(result_, other->result_);
  16500. std::swap(_has_bits_[0], other->_has_bits_[0]);
  16501. _unknown_fields_.Swap(&other->_unknown_fields_);
  16502. std::swap(_cached_size_, other->_cached_size_);
  16503. }
  16504. }
  16505. ::google::protobuf::Metadata packetl2c_exchange_dimensity_result::GetMetadata() const {
  16506. protobuf_AssignDescriptorsOnce();
  16507. ::google::protobuf::Metadata metadata;
  16508. metadata.descriptor = packetl2c_exchange_dimensity_result_descriptor_;
  16509. metadata.reflection = packetl2c_exchange_dimensity_result_reflection_;
  16510. return metadata;
  16511. }
  16512. // ===================================================================
  16513. #ifndef _MSC_VER
  16514. const int packetc2l_lucky_lottery::kPacketIdFieldNumber;
  16515. const int packetc2l_lucky_lottery::kAllFieldNumber;
  16516. #endif // !_MSC_VER
  16517. packetc2l_lucky_lottery::packetc2l_lucky_lottery()
  16518. : ::google::protobuf::Message() {
  16519. SharedCtor();
  16520. }
  16521. void packetc2l_lucky_lottery::InitAsDefaultInstance() {
  16522. }
  16523. packetc2l_lucky_lottery::packetc2l_lucky_lottery(const packetc2l_lucky_lottery& from)
  16524. : ::google::protobuf::Message() {
  16525. SharedCtor();
  16526. MergeFrom(from);
  16527. }
  16528. void packetc2l_lucky_lottery::SharedCtor() {
  16529. _cached_size_ = 0;
  16530. packet_id_ = 10207;
  16531. all_ = false;
  16532. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  16533. }
  16534. packetc2l_lucky_lottery::~packetc2l_lucky_lottery() {
  16535. SharedDtor();
  16536. }
  16537. void packetc2l_lucky_lottery::SharedDtor() {
  16538. if (this != default_instance_) {
  16539. }
  16540. }
  16541. void packetc2l_lucky_lottery::SetCachedSize(int size) const {
  16542. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  16543. _cached_size_ = size;
  16544. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  16545. }
  16546. const ::google::protobuf::Descriptor* packetc2l_lucky_lottery::descriptor() {
  16547. protobuf_AssignDescriptorsOnce();
  16548. return packetc2l_lucky_lottery_descriptor_;
  16549. }
  16550. const packetc2l_lucky_lottery& packetc2l_lucky_lottery::default_instance() {
  16551. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  16552. return *default_instance_;
  16553. }
  16554. packetc2l_lucky_lottery* packetc2l_lucky_lottery::default_instance_ = NULL;
  16555. packetc2l_lucky_lottery* packetc2l_lucky_lottery::New() const {
  16556. return new packetc2l_lucky_lottery;
  16557. }
  16558. void packetc2l_lucky_lottery::Clear() {
  16559. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  16560. packet_id_ = 10207;
  16561. all_ = false;
  16562. }
  16563. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  16564. mutable_unknown_fields()->Clear();
  16565. }
  16566. bool packetc2l_lucky_lottery::MergePartialFromCodedStream(
  16567. ::google::protobuf::io::CodedInputStream* input) {
  16568. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  16569. ::google::protobuf::uint32 tag;
  16570. while ((tag = input->ReadTag()) != 0) {
  16571. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  16572. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_lucky_lottery];
  16573. case 1: {
  16574. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  16575. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  16576. int value;
  16577. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  16578. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  16579. input, &value)));
  16580. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  16581. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  16582. } else {
  16583. mutable_unknown_fields()->AddVarint(1, value);
  16584. }
  16585. } else {
  16586. goto handle_uninterpreted;
  16587. }
  16588. if (input->ExpectTag(16)) goto parse_all;
  16589. break;
  16590. }
  16591. // optional bool all = 2;
  16592. case 2: {
  16593. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  16594. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  16595. parse_all:
  16596. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  16597. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  16598. input, &all_)));
  16599. set_has_all();
  16600. } else {
  16601. goto handle_uninterpreted;
  16602. }
  16603. if (input->ExpectAtEnd()) return true;
  16604. break;
  16605. }
  16606. default: {
  16607. handle_uninterpreted:
  16608. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  16609. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  16610. return true;
  16611. }
  16612. DO_(::google::protobuf::internal::WireFormat::SkipField(
  16613. input, tag, mutable_unknown_fields()));
  16614. break;
  16615. }
  16616. }
  16617. }
  16618. return true;
  16619. #undef DO_
  16620. }
  16621. void packetc2l_lucky_lottery::SerializeWithCachedSizes(
  16622. ::google::protobuf::io::CodedOutputStream* output) const {
  16623. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_lucky_lottery];
  16624. if (has_packet_id()) {
  16625. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  16626. 1, this->packet_id(), output);
  16627. }
  16628. // optional bool all = 2;
  16629. if (has_all()) {
  16630. ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->all(), output);
  16631. }
  16632. if (!unknown_fields().empty()) {
  16633. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  16634. unknown_fields(), output);
  16635. }
  16636. }
  16637. ::google::protobuf::uint8* packetc2l_lucky_lottery::SerializeWithCachedSizesToArray(
  16638. ::google::protobuf::uint8* target) const {
  16639. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_lucky_lottery];
  16640. if (has_packet_id()) {
  16641. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  16642. 1, this->packet_id(), target);
  16643. }
  16644. // optional bool all = 2;
  16645. if (has_all()) {
  16646. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->all(), target);
  16647. }
  16648. if (!unknown_fields().empty()) {
  16649. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  16650. unknown_fields(), target);
  16651. }
  16652. return target;
  16653. }
  16654. int packetc2l_lucky_lottery::ByteSize() const {
  16655. int total_size = 0;
  16656. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  16657. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_lucky_lottery];
  16658. if (has_packet_id()) {
  16659. total_size += 1 +
  16660. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  16661. }
  16662. // optional bool all = 2;
  16663. if (has_all()) {
  16664. total_size += 1 + 1;
  16665. }
  16666. }
  16667. if (!unknown_fields().empty()) {
  16668. total_size +=
  16669. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  16670. unknown_fields());
  16671. }
  16672. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  16673. _cached_size_ = total_size;
  16674. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  16675. return total_size;
  16676. }
  16677. void packetc2l_lucky_lottery::MergeFrom(const ::google::protobuf::Message& from) {
  16678. GOOGLE_CHECK_NE(&from, this);
  16679. const packetc2l_lucky_lottery* source =
  16680. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_lucky_lottery*>(
  16681. &from);
  16682. if (source == NULL) {
  16683. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  16684. } else {
  16685. MergeFrom(*source);
  16686. }
  16687. }
  16688. void packetc2l_lucky_lottery::MergeFrom(const packetc2l_lucky_lottery& from) {
  16689. GOOGLE_CHECK_NE(&from, this);
  16690. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  16691. if (from.has_packet_id()) {
  16692. set_packet_id(from.packet_id());
  16693. }
  16694. if (from.has_all()) {
  16695. set_all(from.all());
  16696. }
  16697. }
  16698. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  16699. }
  16700. void packetc2l_lucky_lottery::CopyFrom(const ::google::protobuf::Message& from) {
  16701. if (&from == this) return;
  16702. Clear();
  16703. MergeFrom(from);
  16704. }
  16705. void packetc2l_lucky_lottery::CopyFrom(const packetc2l_lucky_lottery& from) {
  16706. if (&from == this) return;
  16707. Clear();
  16708. MergeFrom(from);
  16709. }
  16710. bool packetc2l_lucky_lottery::IsInitialized() const {
  16711. return true;
  16712. }
  16713. void packetc2l_lucky_lottery::Swap(packetc2l_lucky_lottery* other) {
  16714. if (other != this) {
  16715. std::swap(packet_id_, other->packet_id_);
  16716. std::swap(all_, other->all_);
  16717. std::swap(_has_bits_[0], other->_has_bits_[0]);
  16718. _unknown_fields_.Swap(&other->_unknown_fields_);
  16719. std::swap(_cached_size_, other->_cached_size_);
  16720. }
  16721. }
  16722. ::google::protobuf::Metadata packetc2l_lucky_lottery::GetMetadata() const {
  16723. protobuf_AssignDescriptorsOnce();
  16724. ::google::protobuf::Metadata metadata;
  16725. metadata.descriptor = packetc2l_lucky_lottery_descriptor_;
  16726. metadata.reflection = packetc2l_lucky_lottery_reflection_;
  16727. return metadata;
  16728. }
  16729. // ===================================================================
  16730. #ifndef _MSC_VER
  16731. const int packetl2c_lucky_lottery_result::kPacketIdFieldNumber;
  16732. const int packetl2c_lucky_lottery_result::kAllFieldNumber;
  16733. const int packetl2c_lucky_lottery_result::kResultFieldNumber;
  16734. const int packetl2c_lucky_lottery_result::kRewardIndexFieldNumber;
  16735. #endif // !_MSC_VER
  16736. packetl2c_lucky_lottery_result::packetl2c_lucky_lottery_result()
  16737. : ::google::protobuf::Message() {
  16738. SharedCtor();
  16739. }
  16740. void packetl2c_lucky_lottery_result::InitAsDefaultInstance() {
  16741. }
  16742. packetl2c_lucky_lottery_result::packetl2c_lucky_lottery_result(const packetl2c_lucky_lottery_result& from)
  16743. : ::google::protobuf::Message() {
  16744. SharedCtor();
  16745. MergeFrom(from);
  16746. }
  16747. void packetl2c_lucky_lottery_result::SharedCtor() {
  16748. _cached_size_ = 0;
  16749. packet_id_ = 16206;
  16750. all_ = false;
  16751. result_ = 0;
  16752. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  16753. }
  16754. packetl2c_lucky_lottery_result::~packetl2c_lucky_lottery_result() {
  16755. SharedDtor();
  16756. }
  16757. void packetl2c_lucky_lottery_result::SharedDtor() {
  16758. if (this != default_instance_) {
  16759. }
  16760. }
  16761. void packetl2c_lucky_lottery_result::SetCachedSize(int size) const {
  16762. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  16763. _cached_size_ = size;
  16764. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  16765. }
  16766. const ::google::protobuf::Descriptor* packetl2c_lucky_lottery_result::descriptor() {
  16767. protobuf_AssignDescriptorsOnce();
  16768. return packetl2c_lucky_lottery_result_descriptor_;
  16769. }
  16770. const packetl2c_lucky_lottery_result& packetl2c_lucky_lottery_result::default_instance() {
  16771. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  16772. return *default_instance_;
  16773. }
  16774. packetl2c_lucky_lottery_result* packetl2c_lucky_lottery_result::default_instance_ = NULL;
  16775. packetl2c_lucky_lottery_result* packetl2c_lucky_lottery_result::New() const {
  16776. return new packetl2c_lucky_lottery_result;
  16777. }
  16778. void packetl2c_lucky_lottery_result::Clear() {
  16779. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  16780. packet_id_ = 16206;
  16781. all_ = false;
  16782. result_ = 0;
  16783. }
  16784. rewardindex_.Clear();
  16785. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  16786. mutable_unknown_fields()->Clear();
  16787. }
  16788. bool packetl2c_lucky_lottery_result::MergePartialFromCodedStream(
  16789. ::google::protobuf::io::CodedInputStream* input) {
  16790. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  16791. ::google::protobuf::uint32 tag;
  16792. while ((tag = input->ReadTag()) != 0) {
  16793. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  16794. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_lucky_lottery_result];
  16795. case 1: {
  16796. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  16797. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  16798. int value;
  16799. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  16800. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  16801. input, &value)));
  16802. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  16803. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  16804. } else {
  16805. mutable_unknown_fields()->AddVarint(1, value);
  16806. }
  16807. } else {
  16808. goto handle_uninterpreted;
  16809. }
  16810. if (input->ExpectTag(16)) goto parse_all;
  16811. break;
  16812. }
  16813. // optional bool all = 2;
  16814. case 2: {
  16815. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  16816. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  16817. parse_all:
  16818. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  16819. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  16820. input, &all_)));
  16821. set_has_all();
  16822. } else {
  16823. goto handle_uninterpreted;
  16824. }
  16825. if (input->ExpectTag(24)) goto parse_result;
  16826. break;
  16827. }
  16828. // optional int32 result = 3;
  16829. case 3: {
  16830. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  16831. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  16832. parse_result:
  16833. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  16834. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  16835. input, &result_)));
  16836. set_has_result();
  16837. } else {
  16838. goto handle_uninterpreted;
  16839. }
  16840. if (input->ExpectTag(32)) goto parse_rewardIndex;
  16841. break;
  16842. }
  16843. // repeated int32 rewardIndex = 4;
  16844. case 4: {
  16845. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  16846. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  16847. parse_rewardIndex:
  16848. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
  16849. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  16850. 1, 32, input, this->mutable_rewardindex())));
  16851. } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
  16852. == ::google::protobuf::internal::WireFormatLite::
  16853. WIRETYPE_LENGTH_DELIMITED) {
  16854. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
  16855. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  16856. input, this->mutable_rewardindex())));
  16857. } else {
  16858. goto handle_uninterpreted;
  16859. }
  16860. if (input->ExpectTag(32)) goto parse_rewardIndex;
  16861. if (input->ExpectAtEnd()) return true;
  16862. break;
  16863. }
  16864. default: {
  16865. handle_uninterpreted:
  16866. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  16867. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  16868. return true;
  16869. }
  16870. DO_(::google::protobuf::internal::WireFormat::SkipField(
  16871. input, tag, mutable_unknown_fields()));
  16872. break;
  16873. }
  16874. }
  16875. }
  16876. return true;
  16877. #undef DO_
  16878. }
  16879. void packetl2c_lucky_lottery_result::SerializeWithCachedSizes(
  16880. ::google::protobuf::io::CodedOutputStream* output) const {
  16881. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_lucky_lottery_result];
  16882. if (has_packet_id()) {
  16883. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  16884. 1, this->packet_id(), output);
  16885. }
  16886. // optional bool all = 2;
  16887. if (has_all()) {
  16888. ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->all(), output);
  16889. }
  16890. // optional int32 result = 3;
  16891. if (has_result()) {
  16892. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->result(), output);
  16893. }
  16894. // repeated int32 rewardIndex = 4;
  16895. for (int i = 0; i < this->rewardindex_size(); i++) {
  16896. ::google::protobuf::internal::WireFormatLite::WriteInt32(
  16897. 4, this->rewardindex(i), output);
  16898. }
  16899. if (!unknown_fields().empty()) {
  16900. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  16901. unknown_fields(), output);
  16902. }
  16903. }
  16904. ::google::protobuf::uint8* packetl2c_lucky_lottery_result::SerializeWithCachedSizesToArray(
  16905. ::google::protobuf::uint8* target) const {
  16906. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_lucky_lottery_result];
  16907. if (has_packet_id()) {
  16908. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  16909. 1, this->packet_id(), target);
  16910. }
  16911. // optional bool all = 2;
  16912. if (has_all()) {
  16913. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->all(), target);
  16914. }
  16915. // optional int32 result = 3;
  16916. if (has_result()) {
  16917. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->result(), target);
  16918. }
  16919. // repeated int32 rewardIndex = 4;
  16920. for (int i = 0; i < this->rewardindex_size(); i++) {
  16921. target = ::google::protobuf::internal::WireFormatLite::
  16922. WriteInt32ToArray(4, this->rewardindex(i), target);
  16923. }
  16924. if (!unknown_fields().empty()) {
  16925. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  16926. unknown_fields(), target);
  16927. }
  16928. return target;
  16929. }
  16930. int packetl2c_lucky_lottery_result::ByteSize() const {
  16931. int total_size = 0;
  16932. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  16933. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_lucky_lottery_result];
  16934. if (has_packet_id()) {
  16935. total_size += 1 +
  16936. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  16937. }
  16938. // optional bool all = 2;
  16939. if (has_all()) {
  16940. total_size += 1 + 1;
  16941. }
  16942. // optional int32 result = 3;
  16943. if (has_result()) {
  16944. total_size += 1 +
  16945. ::google::protobuf::internal::WireFormatLite::Int32Size(
  16946. this->result());
  16947. }
  16948. }
  16949. // repeated int32 rewardIndex = 4;
  16950. {
  16951. int data_size = 0;
  16952. for (int i = 0; i < this->rewardindex_size(); i++) {
  16953. data_size += ::google::protobuf::internal::WireFormatLite::
  16954. Int32Size(this->rewardindex(i));
  16955. }
  16956. total_size += 1 * this->rewardindex_size() + data_size;
  16957. }
  16958. if (!unknown_fields().empty()) {
  16959. total_size +=
  16960. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  16961. unknown_fields());
  16962. }
  16963. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  16964. _cached_size_ = total_size;
  16965. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  16966. return total_size;
  16967. }
  16968. void packetl2c_lucky_lottery_result::MergeFrom(const ::google::protobuf::Message& from) {
  16969. GOOGLE_CHECK_NE(&from, this);
  16970. const packetl2c_lucky_lottery_result* source =
  16971. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_lucky_lottery_result*>(
  16972. &from);
  16973. if (source == NULL) {
  16974. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  16975. } else {
  16976. MergeFrom(*source);
  16977. }
  16978. }
  16979. void packetl2c_lucky_lottery_result::MergeFrom(const packetl2c_lucky_lottery_result& from) {
  16980. GOOGLE_CHECK_NE(&from, this);
  16981. rewardindex_.MergeFrom(from.rewardindex_);
  16982. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  16983. if (from.has_packet_id()) {
  16984. set_packet_id(from.packet_id());
  16985. }
  16986. if (from.has_all()) {
  16987. set_all(from.all());
  16988. }
  16989. if (from.has_result()) {
  16990. set_result(from.result());
  16991. }
  16992. }
  16993. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  16994. }
  16995. void packetl2c_lucky_lottery_result::CopyFrom(const ::google::protobuf::Message& from) {
  16996. if (&from == this) return;
  16997. Clear();
  16998. MergeFrom(from);
  16999. }
  17000. void packetl2c_lucky_lottery_result::CopyFrom(const packetl2c_lucky_lottery_result& from) {
  17001. if (&from == this) return;
  17002. Clear();
  17003. MergeFrom(from);
  17004. }
  17005. bool packetl2c_lucky_lottery_result::IsInitialized() const {
  17006. return true;
  17007. }
  17008. void packetl2c_lucky_lottery_result::Swap(packetl2c_lucky_lottery_result* other) {
  17009. if (other != this) {
  17010. std::swap(packet_id_, other->packet_id_);
  17011. std::swap(all_, other->all_);
  17012. std::swap(result_, other->result_);
  17013. rewardindex_.Swap(&other->rewardindex_);
  17014. std::swap(_has_bits_[0], other->_has_bits_[0]);
  17015. _unknown_fields_.Swap(&other->_unknown_fields_);
  17016. std::swap(_cached_size_, other->_cached_size_);
  17017. }
  17018. }
  17019. ::google::protobuf::Metadata packetl2c_lucky_lottery_result::GetMetadata() const {
  17020. protobuf_AssignDescriptorsOnce();
  17021. ::google::protobuf::Metadata metadata;
  17022. metadata.descriptor = packetl2c_lucky_lottery_result_descriptor_;
  17023. metadata.reflection = packetl2c_lucky_lottery_result_reflection_;
  17024. return metadata;
  17025. }
  17026. // ===================================================================
  17027. #ifndef _MSC_VER
  17028. const int recordInfo::kTypeFieldNumber;
  17029. const int recordInfo::kParamFieldNumber;
  17030. const int recordInfo::kCountFieldNumber;
  17031. #endif // !_MSC_VER
  17032. recordInfo::recordInfo()
  17033. : ::google::protobuf::Message() {
  17034. SharedCtor();
  17035. }
  17036. void recordInfo::InitAsDefaultInstance() {
  17037. }
  17038. recordInfo::recordInfo(const recordInfo& from)
  17039. : ::google::protobuf::Message() {
  17040. SharedCtor();
  17041. MergeFrom(from);
  17042. }
  17043. void recordInfo::SharedCtor() {
  17044. _cached_size_ = 0;
  17045. type_ = 0;
  17046. param_ = 0;
  17047. count_ = 0;
  17048. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  17049. }
  17050. recordInfo::~recordInfo() {
  17051. SharedDtor();
  17052. }
  17053. void recordInfo::SharedDtor() {
  17054. if (this != default_instance_) {
  17055. }
  17056. }
  17057. void recordInfo::SetCachedSize(int size) const {
  17058. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  17059. _cached_size_ = size;
  17060. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  17061. }
  17062. const ::google::protobuf::Descriptor* recordInfo::descriptor() {
  17063. protobuf_AssignDescriptorsOnce();
  17064. return recordInfo_descriptor_;
  17065. }
  17066. const recordInfo& recordInfo::default_instance() {
  17067. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  17068. return *default_instance_;
  17069. }
  17070. recordInfo* recordInfo::default_instance_ = NULL;
  17071. recordInfo* recordInfo::New() const {
  17072. return new recordInfo;
  17073. }
  17074. void recordInfo::Clear() {
  17075. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  17076. type_ = 0;
  17077. param_ = 0;
  17078. count_ = 0;
  17079. }
  17080. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  17081. mutable_unknown_fields()->Clear();
  17082. }
  17083. bool recordInfo::MergePartialFromCodedStream(
  17084. ::google::protobuf::io::CodedInputStream* input) {
  17085. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  17086. ::google::protobuf::uint32 tag;
  17087. while ((tag = input->ReadTag()) != 0) {
  17088. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  17089. // optional int32 type = 1;
  17090. case 1: {
  17091. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  17092. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  17093. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  17094. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  17095. input, &type_)));
  17096. set_has_type();
  17097. } else {
  17098. goto handle_uninterpreted;
  17099. }
  17100. if (input->ExpectTag(16)) goto parse_param;
  17101. break;
  17102. }
  17103. // optional int32 param = 2;
  17104. case 2: {
  17105. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  17106. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  17107. parse_param:
  17108. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  17109. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  17110. input, &param_)));
  17111. set_has_param();
  17112. } else {
  17113. goto handle_uninterpreted;
  17114. }
  17115. if (input->ExpectTag(24)) goto parse_count;
  17116. break;
  17117. }
  17118. // optional int32 count = 3;
  17119. case 3: {
  17120. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  17121. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  17122. parse_count:
  17123. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  17124. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  17125. input, &count_)));
  17126. set_has_count();
  17127. } else {
  17128. goto handle_uninterpreted;
  17129. }
  17130. if (input->ExpectAtEnd()) return true;
  17131. break;
  17132. }
  17133. default: {
  17134. handle_uninterpreted:
  17135. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  17136. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  17137. return true;
  17138. }
  17139. DO_(::google::protobuf::internal::WireFormat::SkipField(
  17140. input, tag, mutable_unknown_fields()));
  17141. break;
  17142. }
  17143. }
  17144. }
  17145. return true;
  17146. #undef DO_
  17147. }
  17148. void recordInfo::SerializeWithCachedSizes(
  17149. ::google::protobuf::io::CodedOutputStream* output) const {
  17150. // optional int32 type = 1;
  17151. if (has_type()) {
  17152. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->type(), output);
  17153. }
  17154. // optional int32 param = 2;
  17155. if (has_param()) {
  17156. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->param(), output);
  17157. }
  17158. // optional int32 count = 3;
  17159. if (has_count()) {
  17160. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->count(), output);
  17161. }
  17162. if (!unknown_fields().empty()) {
  17163. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  17164. unknown_fields(), output);
  17165. }
  17166. }
  17167. ::google::protobuf::uint8* recordInfo::SerializeWithCachedSizesToArray(
  17168. ::google::protobuf::uint8* target) const {
  17169. // optional int32 type = 1;
  17170. if (has_type()) {
  17171. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->type(), target);
  17172. }
  17173. // optional int32 param = 2;
  17174. if (has_param()) {
  17175. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->param(), target);
  17176. }
  17177. // optional int32 count = 3;
  17178. if (has_count()) {
  17179. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->count(), target);
  17180. }
  17181. if (!unknown_fields().empty()) {
  17182. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  17183. unknown_fields(), target);
  17184. }
  17185. return target;
  17186. }
  17187. int recordInfo::ByteSize() const {
  17188. int total_size = 0;
  17189. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  17190. // optional int32 type = 1;
  17191. if (has_type()) {
  17192. total_size += 1 +
  17193. ::google::protobuf::internal::WireFormatLite::Int32Size(
  17194. this->type());
  17195. }
  17196. // optional int32 param = 2;
  17197. if (has_param()) {
  17198. total_size += 1 +
  17199. ::google::protobuf::internal::WireFormatLite::Int32Size(
  17200. this->param());
  17201. }
  17202. // optional int32 count = 3;
  17203. if (has_count()) {
  17204. total_size += 1 +
  17205. ::google::protobuf::internal::WireFormatLite::Int32Size(
  17206. this->count());
  17207. }
  17208. }
  17209. if (!unknown_fields().empty()) {
  17210. total_size +=
  17211. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  17212. unknown_fields());
  17213. }
  17214. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  17215. _cached_size_ = total_size;
  17216. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  17217. return total_size;
  17218. }
  17219. void recordInfo::MergeFrom(const ::google::protobuf::Message& from) {
  17220. GOOGLE_CHECK_NE(&from, this);
  17221. const recordInfo* source =
  17222. ::google::protobuf::internal::dynamic_cast_if_available<const recordInfo*>(
  17223. &from);
  17224. if (source == NULL) {
  17225. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  17226. } else {
  17227. MergeFrom(*source);
  17228. }
  17229. }
  17230. void recordInfo::MergeFrom(const recordInfo& from) {
  17231. GOOGLE_CHECK_NE(&from, this);
  17232. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  17233. if (from.has_type()) {
  17234. set_type(from.type());
  17235. }
  17236. if (from.has_param()) {
  17237. set_param(from.param());
  17238. }
  17239. if (from.has_count()) {
  17240. set_count(from.count());
  17241. }
  17242. }
  17243. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  17244. }
  17245. void recordInfo::CopyFrom(const ::google::protobuf::Message& from) {
  17246. if (&from == this) return;
  17247. Clear();
  17248. MergeFrom(from);
  17249. }
  17250. void recordInfo::CopyFrom(const recordInfo& from) {
  17251. if (&from == this) return;
  17252. Clear();
  17253. MergeFrom(from);
  17254. }
  17255. bool recordInfo::IsInitialized() const {
  17256. return true;
  17257. }
  17258. void recordInfo::Swap(recordInfo* other) {
  17259. if (other != this) {
  17260. std::swap(type_, other->type_);
  17261. std::swap(param_, other->param_);
  17262. std::swap(count_, other->count_);
  17263. std::swap(_has_bits_[0], other->_has_bits_[0]);
  17264. _unknown_fields_.Swap(&other->_unknown_fields_);
  17265. std::swap(_cached_size_, other->_cached_size_);
  17266. }
  17267. }
  17268. ::google::protobuf::Metadata recordInfo::GetMetadata() const {
  17269. protobuf_AssignDescriptorsOnce();
  17270. ::google::protobuf::Metadata metadata;
  17271. metadata.descriptor = recordInfo_descriptor_;
  17272. metadata.reflection = recordInfo_reflection_;
  17273. return metadata;
  17274. }
  17275. // ===================================================================
  17276. #ifndef _MSC_VER
  17277. const int packetc2l_syn_record_info::kPacketIdFieldNumber;
  17278. const int packetc2l_syn_record_info::kRecordListFieldNumber;
  17279. #endif // !_MSC_VER
  17280. packetc2l_syn_record_info::packetc2l_syn_record_info()
  17281. : ::google::protobuf::Message() {
  17282. SharedCtor();
  17283. }
  17284. void packetc2l_syn_record_info::InitAsDefaultInstance() {
  17285. }
  17286. packetc2l_syn_record_info::packetc2l_syn_record_info(const packetc2l_syn_record_info& from)
  17287. : ::google::protobuf::Message() {
  17288. SharedCtor();
  17289. MergeFrom(from);
  17290. }
  17291. void packetc2l_syn_record_info::SharedCtor() {
  17292. _cached_size_ = 0;
  17293. packet_id_ = 10208;
  17294. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  17295. }
  17296. packetc2l_syn_record_info::~packetc2l_syn_record_info() {
  17297. SharedDtor();
  17298. }
  17299. void packetc2l_syn_record_info::SharedDtor() {
  17300. if (this != default_instance_) {
  17301. }
  17302. }
  17303. void packetc2l_syn_record_info::SetCachedSize(int size) const {
  17304. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  17305. _cached_size_ = size;
  17306. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  17307. }
  17308. const ::google::protobuf::Descriptor* packetc2l_syn_record_info::descriptor() {
  17309. protobuf_AssignDescriptorsOnce();
  17310. return packetc2l_syn_record_info_descriptor_;
  17311. }
  17312. const packetc2l_syn_record_info& packetc2l_syn_record_info::default_instance() {
  17313. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  17314. return *default_instance_;
  17315. }
  17316. packetc2l_syn_record_info* packetc2l_syn_record_info::default_instance_ = NULL;
  17317. packetc2l_syn_record_info* packetc2l_syn_record_info::New() const {
  17318. return new packetc2l_syn_record_info;
  17319. }
  17320. void packetc2l_syn_record_info::Clear() {
  17321. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  17322. packet_id_ = 10208;
  17323. }
  17324. recordlist_.Clear();
  17325. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  17326. mutable_unknown_fields()->Clear();
  17327. }
  17328. bool packetc2l_syn_record_info::MergePartialFromCodedStream(
  17329. ::google::protobuf::io::CodedInputStream* input) {
  17330. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  17331. ::google::protobuf::uint32 tag;
  17332. while ((tag = input->ReadTag()) != 0) {
  17333. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  17334. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_syn_record_info];
  17335. case 1: {
  17336. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  17337. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  17338. int value;
  17339. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  17340. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  17341. input, &value)));
  17342. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  17343. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  17344. } else {
  17345. mutable_unknown_fields()->AddVarint(1, value);
  17346. }
  17347. } else {
  17348. goto handle_uninterpreted;
  17349. }
  17350. if (input->ExpectTag(18)) goto parse_recordList;
  17351. break;
  17352. }
  17353. // repeated .fish_protocols.recordInfo recordList = 2;
  17354. case 2: {
  17355. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  17356. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  17357. parse_recordList:
  17358. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  17359. input, add_recordlist()));
  17360. } else {
  17361. goto handle_uninterpreted;
  17362. }
  17363. if (input->ExpectTag(18)) goto parse_recordList;
  17364. if (input->ExpectAtEnd()) return true;
  17365. break;
  17366. }
  17367. default: {
  17368. handle_uninterpreted:
  17369. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  17370. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  17371. return true;
  17372. }
  17373. DO_(::google::protobuf::internal::WireFormat::SkipField(
  17374. input, tag, mutable_unknown_fields()));
  17375. break;
  17376. }
  17377. }
  17378. }
  17379. return true;
  17380. #undef DO_
  17381. }
  17382. void packetc2l_syn_record_info::SerializeWithCachedSizes(
  17383. ::google::protobuf::io::CodedOutputStream* output) const {
  17384. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_syn_record_info];
  17385. if (has_packet_id()) {
  17386. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  17387. 1, this->packet_id(), output);
  17388. }
  17389. // repeated .fish_protocols.recordInfo recordList = 2;
  17390. for (int i = 0; i < this->recordlist_size(); i++) {
  17391. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  17392. 2, this->recordlist(i), output);
  17393. }
  17394. if (!unknown_fields().empty()) {
  17395. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  17396. unknown_fields(), output);
  17397. }
  17398. }
  17399. ::google::protobuf::uint8* packetc2l_syn_record_info::SerializeWithCachedSizesToArray(
  17400. ::google::protobuf::uint8* target) const {
  17401. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_syn_record_info];
  17402. if (has_packet_id()) {
  17403. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  17404. 1, this->packet_id(), target);
  17405. }
  17406. // repeated .fish_protocols.recordInfo recordList = 2;
  17407. for (int i = 0; i < this->recordlist_size(); i++) {
  17408. target = ::google::protobuf::internal::WireFormatLite::
  17409. WriteMessageNoVirtualToArray(
  17410. 2, this->recordlist(i), target);
  17411. }
  17412. if (!unknown_fields().empty()) {
  17413. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  17414. unknown_fields(), target);
  17415. }
  17416. return target;
  17417. }
  17418. int packetc2l_syn_record_info::ByteSize() const {
  17419. int total_size = 0;
  17420. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  17421. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_syn_record_info];
  17422. if (has_packet_id()) {
  17423. total_size += 1 +
  17424. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  17425. }
  17426. }
  17427. // repeated .fish_protocols.recordInfo recordList = 2;
  17428. total_size += 1 * this->recordlist_size();
  17429. for (int i = 0; i < this->recordlist_size(); i++) {
  17430. total_size +=
  17431. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  17432. this->recordlist(i));
  17433. }
  17434. if (!unknown_fields().empty()) {
  17435. total_size +=
  17436. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  17437. unknown_fields());
  17438. }
  17439. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  17440. _cached_size_ = total_size;
  17441. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  17442. return total_size;
  17443. }
  17444. void packetc2l_syn_record_info::MergeFrom(const ::google::protobuf::Message& from) {
  17445. GOOGLE_CHECK_NE(&from, this);
  17446. const packetc2l_syn_record_info* source =
  17447. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_syn_record_info*>(
  17448. &from);
  17449. if (source == NULL) {
  17450. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  17451. } else {
  17452. MergeFrom(*source);
  17453. }
  17454. }
  17455. void packetc2l_syn_record_info::MergeFrom(const packetc2l_syn_record_info& from) {
  17456. GOOGLE_CHECK_NE(&from, this);
  17457. recordlist_.MergeFrom(from.recordlist_);
  17458. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  17459. if (from.has_packet_id()) {
  17460. set_packet_id(from.packet_id());
  17461. }
  17462. }
  17463. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  17464. }
  17465. void packetc2l_syn_record_info::CopyFrom(const ::google::protobuf::Message& from) {
  17466. if (&from == this) return;
  17467. Clear();
  17468. MergeFrom(from);
  17469. }
  17470. void packetc2l_syn_record_info::CopyFrom(const packetc2l_syn_record_info& from) {
  17471. if (&from == this) return;
  17472. Clear();
  17473. MergeFrom(from);
  17474. }
  17475. bool packetc2l_syn_record_info::IsInitialized() const {
  17476. return true;
  17477. }
  17478. void packetc2l_syn_record_info::Swap(packetc2l_syn_record_info* other) {
  17479. if (other != this) {
  17480. std::swap(packet_id_, other->packet_id_);
  17481. recordlist_.Swap(&other->recordlist_);
  17482. std::swap(_has_bits_[0], other->_has_bits_[0]);
  17483. _unknown_fields_.Swap(&other->_unknown_fields_);
  17484. std::swap(_cached_size_, other->_cached_size_);
  17485. }
  17486. }
  17487. ::google::protobuf::Metadata packetc2l_syn_record_info::GetMetadata() const {
  17488. protobuf_AssignDescriptorsOnce();
  17489. ::google::protobuf::Metadata metadata;
  17490. metadata.descriptor = packetc2l_syn_record_info_descriptor_;
  17491. metadata.reflection = packetc2l_syn_record_info_reflection_;
  17492. return metadata;
  17493. }
  17494. // ===================================================================
  17495. #ifndef _MSC_VER
  17496. const int packetc2l_auto_fire::kPacketIdFieldNumber;
  17497. const int packetc2l_auto_fire::kTypeFieldNumber;
  17498. #endif // !_MSC_VER
  17499. packetc2l_auto_fire::packetc2l_auto_fire()
  17500. : ::google::protobuf::Message() {
  17501. SharedCtor();
  17502. }
  17503. void packetc2l_auto_fire::InitAsDefaultInstance() {
  17504. }
  17505. packetc2l_auto_fire::packetc2l_auto_fire(const packetc2l_auto_fire& from)
  17506. : ::google::protobuf::Message() {
  17507. SharedCtor();
  17508. MergeFrom(from);
  17509. }
  17510. void packetc2l_auto_fire::SharedCtor() {
  17511. _cached_size_ = 0;
  17512. packet_id_ = 10209;
  17513. type_ = 0;
  17514. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  17515. }
  17516. packetc2l_auto_fire::~packetc2l_auto_fire() {
  17517. SharedDtor();
  17518. }
  17519. void packetc2l_auto_fire::SharedDtor() {
  17520. if (this != default_instance_) {
  17521. }
  17522. }
  17523. void packetc2l_auto_fire::SetCachedSize(int size) const {
  17524. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  17525. _cached_size_ = size;
  17526. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  17527. }
  17528. const ::google::protobuf::Descriptor* packetc2l_auto_fire::descriptor() {
  17529. protobuf_AssignDescriptorsOnce();
  17530. return packetc2l_auto_fire_descriptor_;
  17531. }
  17532. const packetc2l_auto_fire& packetc2l_auto_fire::default_instance() {
  17533. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  17534. return *default_instance_;
  17535. }
  17536. packetc2l_auto_fire* packetc2l_auto_fire::default_instance_ = NULL;
  17537. packetc2l_auto_fire* packetc2l_auto_fire::New() const {
  17538. return new packetc2l_auto_fire;
  17539. }
  17540. void packetc2l_auto_fire::Clear() {
  17541. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  17542. packet_id_ = 10209;
  17543. type_ = 0;
  17544. }
  17545. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  17546. mutable_unknown_fields()->Clear();
  17547. }
  17548. bool packetc2l_auto_fire::MergePartialFromCodedStream(
  17549. ::google::protobuf::io::CodedInputStream* input) {
  17550. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  17551. ::google::protobuf::uint32 tag;
  17552. while ((tag = input->ReadTag()) != 0) {
  17553. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  17554. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_auto_fire];
  17555. case 1: {
  17556. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  17557. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  17558. int value;
  17559. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  17560. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  17561. input, &value)));
  17562. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  17563. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  17564. } else {
  17565. mutable_unknown_fields()->AddVarint(1, value);
  17566. }
  17567. } else {
  17568. goto handle_uninterpreted;
  17569. }
  17570. if (input->ExpectTag(16)) goto parse_type;
  17571. break;
  17572. }
  17573. // optional int32 type = 2;
  17574. case 2: {
  17575. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  17576. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  17577. parse_type:
  17578. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  17579. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  17580. input, &type_)));
  17581. set_has_type();
  17582. } else {
  17583. goto handle_uninterpreted;
  17584. }
  17585. if (input->ExpectAtEnd()) return true;
  17586. break;
  17587. }
  17588. default: {
  17589. handle_uninterpreted:
  17590. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  17591. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  17592. return true;
  17593. }
  17594. DO_(::google::protobuf::internal::WireFormat::SkipField(
  17595. input, tag, mutable_unknown_fields()));
  17596. break;
  17597. }
  17598. }
  17599. }
  17600. return true;
  17601. #undef DO_
  17602. }
  17603. void packetc2l_auto_fire::SerializeWithCachedSizes(
  17604. ::google::protobuf::io::CodedOutputStream* output) const {
  17605. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_auto_fire];
  17606. if (has_packet_id()) {
  17607. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  17608. 1, this->packet_id(), output);
  17609. }
  17610. // optional int32 type = 2;
  17611. if (has_type()) {
  17612. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->type(), output);
  17613. }
  17614. if (!unknown_fields().empty()) {
  17615. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  17616. unknown_fields(), output);
  17617. }
  17618. }
  17619. ::google::protobuf::uint8* packetc2l_auto_fire::SerializeWithCachedSizesToArray(
  17620. ::google::protobuf::uint8* target) const {
  17621. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_auto_fire];
  17622. if (has_packet_id()) {
  17623. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  17624. 1, this->packet_id(), target);
  17625. }
  17626. // optional int32 type = 2;
  17627. if (has_type()) {
  17628. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->type(), target);
  17629. }
  17630. if (!unknown_fields().empty()) {
  17631. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  17632. unknown_fields(), target);
  17633. }
  17634. return target;
  17635. }
  17636. int packetc2l_auto_fire::ByteSize() const {
  17637. int total_size = 0;
  17638. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  17639. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_auto_fire];
  17640. if (has_packet_id()) {
  17641. total_size += 1 +
  17642. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  17643. }
  17644. // optional int32 type = 2;
  17645. if (has_type()) {
  17646. total_size += 1 +
  17647. ::google::protobuf::internal::WireFormatLite::Int32Size(
  17648. this->type());
  17649. }
  17650. }
  17651. if (!unknown_fields().empty()) {
  17652. total_size +=
  17653. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  17654. unknown_fields());
  17655. }
  17656. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  17657. _cached_size_ = total_size;
  17658. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  17659. return total_size;
  17660. }
  17661. void packetc2l_auto_fire::MergeFrom(const ::google::protobuf::Message& from) {
  17662. GOOGLE_CHECK_NE(&from, this);
  17663. const packetc2l_auto_fire* source =
  17664. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_auto_fire*>(
  17665. &from);
  17666. if (source == NULL) {
  17667. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  17668. } else {
  17669. MergeFrom(*source);
  17670. }
  17671. }
  17672. void packetc2l_auto_fire::MergeFrom(const packetc2l_auto_fire& from) {
  17673. GOOGLE_CHECK_NE(&from, this);
  17674. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  17675. if (from.has_packet_id()) {
  17676. set_packet_id(from.packet_id());
  17677. }
  17678. if (from.has_type()) {
  17679. set_type(from.type());
  17680. }
  17681. }
  17682. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  17683. }
  17684. void packetc2l_auto_fire::CopyFrom(const ::google::protobuf::Message& from) {
  17685. if (&from == this) return;
  17686. Clear();
  17687. MergeFrom(from);
  17688. }
  17689. void packetc2l_auto_fire::CopyFrom(const packetc2l_auto_fire& from) {
  17690. if (&from == this) return;
  17691. Clear();
  17692. MergeFrom(from);
  17693. }
  17694. bool packetc2l_auto_fire::IsInitialized() const {
  17695. return true;
  17696. }
  17697. void packetc2l_auto_fire::Swap(packetc2l_auto_fire* other) {
  17698. if (other != this) {
  17699. std::swap(packet_id_, other->packet_id_);
  17700. std::swap(type_, other->type_);
  17701. std::swap(_has_bits_[0], other->_has_bits_[0]);
  17702. _unknown_fields_.Swap(&other->_unknown_fields_);
  17703. std::swap(_cached_size_, other->_cached_size_);
  17704. }
  17705. }
  17706. ::google::protobuf::Metadata packetc2l_auto_fire::GetMetadata() const {
  17707. protobuf_AssignDescriptorsOnce();
  17708. ::google::protobuf::Metadata metadata;
  17709. metadata.descriptor = packetc2l_auto_fire_descriptor_;
  17710. metadata.reflection = packetc2l_auto_fire_reflection_;
  17711. return metadata;
  17712. }
  17713. // ===================================================================
  17714. #ifndef _MSC_VER
  17715. const int packetc2l_change_headid::kPacketIdFieldNumber;
  17716. const int packetc2l_change_headid::kHeadIdFieldNumber;
  17717. const int packetc2l_change_headid::kFrameidFieldNumber;
  17718. #endif // !_MSC_VER
  17719. packetc2l_change_headid::packetc2l_change_headid()
  17720. : ::google::protobuf::Message() {
  17721. SharedCtor();
  17722. }
  17723. void packetc2l_change_headid::InitAsDefaultInstance() {
  17724. }
  17725. packetc2l_change_headid::packetc2l_change_headid(const packetc2l_change_headid& from)
  17726. : ::google::protobuf::Message() {
  17727. SharedCtor();
  17728. MergeFrom(from);
  17729. }
  17730. void packetc2l_change_headid::SharedCtor() {
  17731. _cached_size_ = 0;
  17732. packet_id_ = 10225;
  17733. headid_ = 0;
  17734. frameid_ = 0;
  17735. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  17736. }
  17737. packetc2l_change_headid::~packetc2l_change_headid() {
  17738. SharedDtor();
  17739. }
  17740. void packetc2l_change_headid::SharedDtor() {
  17741. if (this != default_instance_) {
  17742. }
  17743. }
  17744. void packetc2l_change_headid::SetCachedSize(int size) const {
  17745. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  17746. _cached_size_ = size;
  17747. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  17748. }
  17749. const ::google::protobuf::Descriptor* packetc2l_change_headid::descriptor() {
  17750. protobuf_AssignDescriptorsOnce();
  17751. return packetc2l_change_headid_descriptor_;
  17752. }
  17753. const packetc2l_change_headid& packetc2l_change_headid::default_instance() {
  17754. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  17755. return *default_instance_;
  17756. }
  17757. packetc2l_change_headid* packetc2l_change_headid::default_instance_ = NULL;
  17758. packetc2l_change_headid* packetc2l_change_headid::New() const {
  17759. return new packetc2l_change_headid;
  17760. }
  17761. void packetc2l_change_headid::Clear() {
  17762. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  17763. packet_id_ = 10225;
  17764. headid_ = 0;
  17765. frameid_ = 0;
  17766. }
  17767. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  17768. mutable_unknown_fields()->Clear();
  17769. }
  17770. bool packetc2l_change_headid::MergePartialFromCodedStream(
  17771. ::google::protobuf::io::CodedInputStream* input) {
  17772. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  17773. ::google::protobuf::uint32 tag;
  17774. while ((tag = input->ReadTag()) != 0) {
  17775. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  17776. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_change_headid];
  17777. case 1: {
  17778. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  17779. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  17780. int value;
  17781. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  17782. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  17783. input, &value)));
  17784. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  17785. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  17786. } else {
  17787. mutable_unknown_fields()->AddVarint(1, value);
  17788. }
  17789. } else {
  17790. goto handle_uninterpreted;
  17791. }
  17792. if (input->ExpectTag(16)) goto parse_headId;
  17793. break;
  17794. }
  17795. // optional int32 headId = 2;
  17796. case 2: {
  17797. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  17798. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  17799. parse_headId:
  17800. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  17801. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  17802. input, &headid_)));
  17803. set_has_headid();
  17804. } else {
  17805. goto handle_uninterpreted;
  17806. }
  17807. if (input->ExpectTag(24)) goto parse_frameid;
  17808. break;
  17809. }
  17810. // optional int32 frameid = 3;
  17811. case 3: {
  17812. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  17813. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  17814. parse_frameid:
  17815. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  17816. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  17817. input, &frameid_)));
  17818. set_has_frameid();
  17819. } else {
  17820. goto handle_uninterpreted;
  17821. }
  17822. if (input->ExpectAtEnd()) return true;
  17823. break;
  17824. }
  17825. default: {
  17826. handle_uninterpreted:
  17827. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  17828. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  17829. return true;
  17830. }
  17831. DO_(::google::protobuf::internal::WireFormat::SkipField(
  17832. input, tag, mutable_unknown_fields()));
  17833. break;
  17834. }
  17835. }
  17836. }
  17837. return true;
  17838. #undef DO_
  17839. }
  17840. void packetc2l_change_headid::SerializeWithCachedSizes(
  17841. ::google::protobuf::io::CodedOutputStream* output) const {
  17842. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_change_headid];
  17843. if (has_packet_id()) {
  17844. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  17845. 1, this->packet_id(), output);
  17846. }
  17847. // optional int32 headId = 2;
  17848. if (has_headid()) {
  17849. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->headid(), output);
  17850. }
  17851. // optional int32 frameid = 3;
  17852. if (has_frameid()) {
  17853. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->frameid(), output);
  17854. }
  17855. if (!unknown_fields().empty()) {
  17856. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  17857. unknown_fields(), output);
  17858. }
  17859. }
  17860. ::google::protobuf::uint8* packetc2l_change_headid::SerializeWithCachedSizesToArray(
  17861. ::google::protobuf::uint8* target) const {
  17862. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_change_headid];
  17863. if (has_packet_id()) {
  17864. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  17865. 1, this->packet_id(), target);
  17866. }
  17867. // optional int32 headId = 2;
  17868. if (has_headid()) {
  17869. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->headid(), target);
  17870. }
  17871. // optional int32 frameid = 3;
  17872. if (has_frameid()) {
  17873. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->frameid(), target);
  17874. }
  17875. if (!unknown_fields().empty()) {
  17876. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  17877. unknown_fields(), target);
  17878. }
  17879. return target;
  17880. }
  17881. int packetc2l_change_headid::ByteSize() const {
  17882. int total_size = 0;
  17883. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  17884. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_change_headid];
  17885. if (has_packet_id()) {
  17886. total_size += 1 +
  17887. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  17888. }
  17889. // optional int32 headId = 2;
  17890. if (has_headid()) {
  17891. total_size += 1 +
  17892. ::google::protobuf::internal::WireFormatLite::Int32Size(
  17893. this->headid());
  17894. }
  17895. // optional int32 frameid = 3;
  17896. if (has_frameid()) {
  17897. total_size += 1 +
  17898. ::google::protobuf::internal::WireFormatLite::Int32Size(
  17899. this->frameid());
  17900. }
  17901. }
  17902. if (!unknown_fields().empty()) {
  17903. total_size +=
  17904. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  17905. unknown_fields());
  17906. }
  17907. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  17908. _cached_size_ = total_size;
  17909. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  17910. return total_size;
  17911. }
  17912. void packetc2l_change_headid::MergeFrom(const ::google::protobuf::Message& from) {
  17913. GOOGLE_CHECK_NE(&from, this);
  17914. const packetc2l_change_headid* source =
  17915. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_change_headid*>(
  17916. &from);
  17917. if (source == NULL) {
  17918. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  17919. } else {
  17920. MergeFrom(*source);
  17921. }
  17922. }
  17923. void packetc2l_change_headid::MergeFrom(const packetc2l_change_headid& from) {
  17924. GOOGLE_CHECK_NE(&from, this);
  17925. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  17926. if (from.has_packet_id()) {
  17927. set_packet_id(from.packet_id());
  17928. }
  17929. if (from.has_headid()) {
  17930. set_headid(from.headid());
  17931. }
  17932. if (from.has_frameid()) {
  17933. set_frameid(from.frameid());
  17934. }
  17935. }
  17936. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  17937. }
  17938. void packetc2l_change_headid::CopyFrom(const ::google::protobuf::Message& from) {
  17939. if (&from == this) return;
  17940. Clear();
  17941. MergeFrom(from);
  17942. }
  17943. void packetc2l_change_headid::CopyFrom(const packetc2l_change_headid& from) {
  17944. if (&from == this) return;
  17945. Clear();
  17946. MergeFrom(from);
  17947. }
  17948. bool packetc2l_change_headid::IsInitialized() const {
  17949. return true;
  17950. }
  17951. void packetc2l_change_headid::Swap(packetc2l_change_headid* other) {
  17952. if (other != this) {
  17953. std::swap(packet_id_, other->packet_id_);
  17954. std::swap(headid_, other->headid_);
  17955. std::swap(frameid_, other->frameid_);
  17956. std::swap(_has_bits_[0], other->_has_bits_[0]);
  17957. _unknown_fields_.Swap(&other->_unknown_fields_);
  17958. std::swap(_cached_size_, other->_cached_size_);
  17959. }
  17960. }
  17961. ::google::protobuf::Metadata packetc2l_change_headid::GetMetadata() const {
  17962. protobuf_AssignDescriptorsOnce();
  17963. ::google::protobuf::Metadata metadata;
  17964. metadata.descriptor = packetc2l_change_headid_descriptor_;
  17965. metadata.reflection = packetc2l_change_headid_reflection_;
  17966. return metadata;
  17967. }
  17968. // ===================================================================
  17969. #ifndef _MSC_VER
  17970. const int packetl2c_change_headid_result::kPacketIdFieldNumber;
  17971. const int packetl2c_change_headid_result::kPlayerIdFieldNumber;
  17972. const int packetl2c_change_headid_result::kHeadIdFieldNumber;
  17973. const int packetl2c_change_headid_result::kFrameidFieldNumber;
  17974. const int packetl2c_change_headid_result::kResultFieldNumber;
  17975. #endif // !_MSC_VER
  17976. packetl2c_change_headid_result::packetl2c_change_headid_result()
  17977. : ::google::protobuf::Message() {
  17978. SharedCtor();
  17979. }
  17980. void packetl2c_change_headid_result::InitAsDefaultInstance() {
  17981. }
  17982. packetl2c_change_headid_result::packetl2c_change_headid_result(const packetl2c_change_headid_result& from)
  17983. : ::google::protobuf::Message() {
  17984. SharedCtor();
  17985. MergeFrom(from);
  17986. }
  17987. void packetl2c_change_headid_result::SharedCtor() {
  17988. _cached_size_ = 0;
  17989. packet_id_ = 16231;
  17990. playerid_ = 0;
  17991. headid_ = 0;
  17992. frameid_ = 0;
  17993. result_ = 0;
  17994. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  17995. }
  17996. packetl2c_change_headid_result::~packetl2c_change_headid_result() {
  17997. SharedDtor();
  17998. }
  17999. void packetl2c_change_headid_result::SharedDtor() {
  18000. if (this != default_instance_) {
  18001. }
  18002. }
  18003. void packetl2c_change_headid_result::SetCachedSize(int size) const {
  18004. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  18005. _cached_size_ = size;
  18006. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  18007. }
  18008. const ::google::protobuf::Descriptor* packetl2c_change_headid_result::descriptor() {
  18009. protobuf_AssignDescriptorsOnce();
  18010. return packetl2c_change_headid_result_descriptor_;
  18011. }
  18012. const packetl2c_change_headid_result& packetl2c_change_headid_result::default_instance() {
  18013. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  18014. return *default_instance_;
  18015. }
  18016. packetl2c_change_headid_result* packetl2c_change_headid_result::default_instance_ = NULL;
  18017. packetl2c_change_headid_result* packetl2c_change_headid_result::New() const {
  18018. return new packetl2c_change_headid_result;
  18019. }
  18020. void packetl2c_change_headid_result::Clear() {
  18021. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  18022. packet_id_ = 16231;
  18023. playerid_ = 0;
  18024. headid_ = 0;
  18025. frameid_ = 0;
  18026. result_ = 0;
  18027. }
  18028. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  18029. mutable_unknown_fields()->Clear();
  18030. }
  18031. bool packetl2c_change_headid_result::MergePartialFromCodedStream(
  18032. ::google::protobuf::io::CodedInputStream* input) {
  18033. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  18034. ::google::protobuf::uint32 tag;
  18035. while ((tag = input->ReadTag()) != 0) {
  18036. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  18037. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_change_headid_result];
  18038. case 1: {
  18039. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  18040. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  18041. int value;
  18042. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  18043. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  18044. input, &value)));
  18045. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  18046. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  18047. } else {
  18048. mutable_unknown_fields()->AddVarint(1, value);
  18049. }
  18050. } else {
  18051. goto handle_uninterpreted;
  18052. }
  18053. if (input->ExpectTag(16)) goto parse_playerId;
  18054. break;
  18055. }
  18056. // optional int32 playerId = 2;
  18057. case 2: {
  18058. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  18059. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  18060. parse_playerId:
  18061. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  18062. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  18063. input, &playerid_)));
  18064. set_has_playerid();
  18065. } else {
  18066. goto handle_uninterpreted;
  18067. }
  18068. if (input->ExpectTag(24)) goto parse_headId;
  18069. break;
  18070. }
  18071. // optional int32 headId = 3;
  18072. case 3: {
  18073. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  18074. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  18075. parse_headId:
  18076. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  18077. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  18078. input, &headid_)));
  18079. set_has_headid();
  18080. } else {
  18081. goto handle_uninterpreted;
  18082. }
  18083. if (input->ExpectTag(32)) goto parse_frameid;
  18084. break;
  18085. }
  18086. // optional int32 frameid = 4;
  18087. case 4: {
  18088. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  18089. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  18090. parse_frameid:
  18091. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  18092. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  18093. input, &frameid_)));
  18094. set_has_frameid();
  18095. } else {
  18096. goto handle_uninterpreted;
  18097. }
  18098. if (input->ExpectTag(40)) goto parse_result;
  18099. break;
  18100. }
  18101. // optional int32 result = 5;
  18102. case 5: {
  18103. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  18104. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  18105. parse_result:
  18106. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  18107. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  18108. input, &result_)));
  18109. set_has_result();
  18110. } else {
  18111. goto handle_uninterpreted;
  18112. }
  18113. if (input->ExpectAtEnd()) return true;
  18114. break;
  18115. }
  18116. default: {
  18117. handle_uninterpreted:
  18118. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  18119. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  18120. return true;
  18121. }
  18122. DO_(::google::protobuf::internal::WireFormat::SkipField(
  18123. input, tag, mutable_unknown_fields()));
  18124. break;
  18125. }
  18126. }
  18127. }
  18128. return true;
  18129. #undef DO_
  18130. }
  18131. void packetl2c_change_headid_result::SerializeWithCachedSizes(
  18132. ::google::protobuf::io::CodedOutputStream* output) const {
  18133. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_change_headid_result];
  18134. if (has_packet_id()) {
  18135. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  18136. 1, this->packet_id(), output);
  18137. }
  18138. // optional int32 playerId = 2;
  18139. if (has_playerid()) {
  18140. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->playerid(), output);
  18141. }
  18142. // optional int32 headId = 3;
  18143. if (has_headid()) {
  18144. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->headid(), output);
  18145. }
  18146. // optional int32 frameid = 4;
  18147. if (has_frameid()) {
  18148. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->frameid(), output);
  18149. }
  18150. // optional int32 result = 5;
  18151. if (has_result()) {
  18152. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->result(), output);
  18153. }
  18154. if (!unknown_fields().empty()) {
  18155. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  18156. unknown_fields(), output);
  18157. }
  18158. }
  18159. ::google::protobuf::uint8* packetl2c_change_headid_result::SerializeWithCachedSizesToArray(
  18160. ::google::protobuf::uint8* target) const {
  18161. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_change_headid_result];
  18162. if (has_packet_id()) {
  18163. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  18164. 1, this->packet_id(), target);
  18165. }
  18166. // optional int32 playerId = 2;
  18167. if (has_playerid()) {
  18168. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->playerid(), target);
  18169. }
  18170. // optional int32 headId = 3;
  18171. if (has_headid()) {
  18172. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->headid(), target);
  18173. }
  18174. // optional int32 frameid = 4;
  18175. if (has_frameid()) {
  18176. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->frameid(), target);
  18177. }
  18178. // optional int32 result = 5;
  18179. if (has_result()) {
  18180. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->result(), target);
  18181. }
  18182. if (!unknown_fields().empty()) {
  18183. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  18184. unknown_fields(), target);
  18185. }
  18186. return target;
  18187. }
  18188. int packetl2c_change_headid_result::ByteSize() const {
  18189. int total_size = 0;
  18190. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  18191. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_change_headid_result];
  18192. if (has_packet_id()) {
  18193. total_size += 1 +
  18194. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  18195. }
  18196. // optional int32 playerId = 2;
  18197. if (has_playerid()) {
  18198. total_size += 1 +
  18199. ::google::protobuf::internal::WireFormatLite::Int32Size(
  18200. this->playerid());
  18201. }
  18202. // optional int32 headId = 3;
  18203. if (has_headid()) {
  18204. total_size += 1 +
  18205. ::google::protobuf::internal::WireFormatLite::Int32Size(
  18206. this->headid());
  18207. }
  18208. // optional int32 frameid = 4;
  18209. if (has_frameid()) {
  18210. total_size += 1 +
  18211. ::google::protobuf::internal::WireFormatLite::Int32Size(
  18212. this->frameid());
  18213. }
  18214. // optional int32 result = 5;
  18215. if (has_result()) {
  18216. total_size += 1 +
  18217. ::google::protobuf::internal::WireFormatLite::Int32Size(
  18218. this->result());
  18219. }
  18220. }
  18221. if (!unknown_fields().empty()) {
  18222. total_size +=
  18223. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  18224. unknown_fields());
  18225. }
  18226. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  18227. _cached_size_ = total_size;
  18228. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  18229. return total_size;
  18230. }
  18231. void packetl2c_change_headid_result::MergeFrom(const ::google::protobuf::Message& from) {
  18232. GOOGLE_CHECK_NE(&from, this);
  18233. const packetl2c_change_headid_result* source =
  18234. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_change_headid_result*>(
  18235. &from);
  18236. if (source == NULL) {
  18237. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  18238. } else {
  18239. MergeFrom(*source);
  18240. }
  18241. }
  18242. void packetl2c_change_headid_result::MergeFrom(const packetl2c_change_headid_result& from) {
  18243. GOOGLE_CHECK_NE(&from, this);
  18244. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  18245. if (from.has_packet_id()) {
  18246. set_packet_id(from.packet_id());
  18247. }
  18248. if (from.has_playerid()) {
  18249. set_playerid(from.playerid());
  18250. }
  18251. if (from.has_headid()) {
  18252. set_headid(from.headid());
  18253. }
  18254. if (from.has_frameid()) {
  18255. set_frameid(from.frameid());
  18256. }
  18257. if (from.has_result()) {
  18258. set_result(from.result());
  18259. }
  18260. }
  18261. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  18262. }
  18263. void packetl2c_change_headid_result::CopyFrom(const ::google::protobuf::Message& from) {
  18264. if (&from == this) return;
  18265. Clear();
  18266. MergeFrom(from);
  18267. }
  18268. void packetl2c_change_headid_result::CopyFrom(const packetl2c_change_headid_result& from) {
  18269. if (&from == this) return;
  18270. Clear();
  18271. MergeFrom(from);
  18272. }
  18273. bool packetl2c_change_headid_result::IsInitialized() const {
  18274. return true;
  18275. }
  18276. void packetl2c_change_headid_result::Swap(packetl2c_change_headid_result* other) {
  18277. if (other != this) {
  18278. std::swap(packet_id_, other->packet_id_);
  18279. std::swap(playerid_, other->playerid_);
  18280. std::swap(headid_, other->headid_);
  18281. std::swap(frameid_, other->frameid_);
  18282. std::swap(result_, other->result_);
  18283. std::swap(_has_bits_[0], other->_has_bits_[0]);
  18284. _unknown_fields_.Swap(&other->_unknown_fields_);
  18285. std::swap(_cached_size_, other->_cached_size_);
  18286. }
  18287. }
  18288. ::google::protobuf::Metadata packetl2c_change_headid_result::GetMetadata() const {
  18289. protobuf_AssignDescriptorsOnce();
  18290. ::google::protobuf::Metadata metadata;
  18291. metadata.descriptor = packetl2c_change_headid_result_descriptor_;
  18292. metadata.reflection = packetl2c_change_headid_result_reflection_;
  18293. return metadata;
  18294. }
  18295. // ===================================================================
  18296. #ifndef _MSC_VER
  18297. const int packetc2l_rand_turret_addition::kPacketIdFieldNumber;
  18298. const int packetc2l_rand_turret_addition::kTypeFieldNumber;
  18299. const int packetc2l_rand_turret_addition::kIdFieldNumber;
  18300. #endif // !_MSC_VER
  18301. packetc2l_rand_turret_addition::packetc2l_rand_turret_addition()
  18302. : ::google::protobuf::Message() {
  18303. SharedCtor();
  18304. }
  18305. void packetc2l_rand_turret_addition::InitAsDefaultInstance() {
  18306. }
  18307. packetc2l_rand_turret_addition::packetc2l_rand_turret_addition(const packetc2l_rand_turret_addition& from)
  18308. : ::google::protobuf::Message() {
  18309. SharedCtor();
  18310. MergeFrom(from);
  18311. }
  18312. void packetc2l_rand_turret_addition::SharedCtor() {
  18313. _cached_size_ = 0;
  18314. packet_id_ = 10226;
  18315. type_ = 0;
  18316. id_ = 0;
  18317. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  18318. }
  18319. packetc2l_rand_turret_addition::~packetc2l_rand_turret_addition() {
  18320. SharedDtor();
  18321. }
  18322. void packetc2l_rand_turret_addition::SharedDtor() {
  18323. if (this != default_instance_) {
  18324. }
  18325. }
  18326. void packetc2l_rand_turret_addition::SetCachedSize(int size) const {
  18327. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  18328. _cached_size_ = size;
  18329. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  18330. }
  18331. const ::google::protobuf::Descriptor* packetc2l_rand_turret_addition::descriptor() {
  18332. protobuf_AssignDescriptorsOnce();
  18333. return packetc2l_rand_turret_addition_descriptor_;
  18334. }
  18335. const packetc2l_rand_turret_addition& packetc2l_rand_turret_addition::default_instance() {
  18336. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  18337. return *default_instance_;
  18338. }
  18339. packetc2l_rand_turret_addition* packetc2l_rand_turret_addition::default_instance_ = NULL;
  18340. packetc2l_rand_turret_addition* packetc2l_rand_turret_addition::New() const {
  18341. return new packetc2l_rand_turret_addition;
  18342. }
  18343. void packetc2l_rand_turret_addition::Clear() {
  18344. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  18345. packet_id_ = 10226;
  18346. type_ = 0;
  18347. id_ = 0;
  18348. }
  18349. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  18350. mutable_unknown_fields()->Clear();
  18351. }
  18352. bool packetc2l_rand_turret_addition::MergePartialFromCodedStream(
  18353. ::google::protobuf::io::CodedInputStream* input) {
  18354. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  18355. ::google::protobuf::uint32 tag;
  18356. while ((tag = input->ReadTag()) != 0) {
  18357. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  18358. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_rand_turret_addition];
  18359. case 1: {
  18360. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  18361. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  18362. int value;
  18363. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  18364. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  18365. input, &value)));
  18366. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  18367. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  18368. } else {
  18369. mutable_unknown_fields()->AddVarint(1, value);
  18370. }
  18371. } else {
  18372. goto handle_uninterpreted;
  18373. }
  18374. if (input->ExpectTag(16)) goto parse_type;
  18375. break;
  18376. }
  18377. // optional int32 type = 2;
  18378. case 2: {
  18379. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  18380. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  18381. parse_type:
  18382. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  18383. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  18384. input, &type_)));
  18385. set_has_type();
  18386. } else {
  18387. goto handle_uninterpreted;
  18388. }
  18389. if (input->ExpectTag(24)) goto parse_id;
  18390. break;
  18391. }
  18392. // optional int32 id = 3;
  18393. case 3: {
  18394. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  18395. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  18396. parse_id:
  18397. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  18398. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  18399. input, &id_)));
  18400. set_has_id();
  18401. } else {
  18402. goto handle_uninterpreted;
  18403. }
  18404. if (input->ExpectAtEnd()) return true;
  18405. break;
  18406. }
  18407. default: {
  18408. handle_uninterpreted:
  18409. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  18410. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  18411. return true;
  18412. }
  18413. DO_(::google::protobuf::internal::WireFormat::SkipField(
  18414. input, tag, mutable_unknown_fields()));
  18415. break;
  18416. }
  18417. }
  18418. }
  18419. return true;
  18420. #undef DO_
  18421. }
  18422. void packetc2l_rand_turret_addition::SerializeWithCachedSizes(
  18423. ::google::protobuf::io::CodedOutputStream* output) const {
  18424. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_rand_turret_addition];
  18425. if (has_packet_id()) {
  18426. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  18427. 1, this->packet_id(), output);
  18428. }
  18429. // optional int32 type = 2;
  18430. if (has_type()) {
  18431. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->type(), output);
  18432. }
  18433. // optional int32 id = 3;
  18434. if (has_id()) {
  18435. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->id(), output);
  18436. }
  18437. if (!unknown_fields().empty()) {
  18438. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  18439. unknown_fields(), output);
  18440. }
  18441. }
  18442. ::google::protobuf::uint8* packetc2l_rand_turret_addition::SerializeWithCachedSizesToArray(
  18443. ::google::protobuf::uint8* target) const {
  18444. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_rand_turret_addition];
  18445. if (has_packet_id()) {
  18446. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  18447. 1, this->packet_id(), target);
  18448. }
  18449. // optional int32 type = 2;
  18450. if (has_type()) {
  18451. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->type(), target);
  18452. }
  18453. // optional int32 id = 3;
  18454. if (has_id()) {
  18455. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->id(), target);
  18456. }
  18457. if (!unknown_fields().empty()) {
  18458. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  18459. unknown_fields(), target);
  18460. }
  18461. return target;
  18462. }
  18463. int packetc2l_rand_turret_addition::ByteSize() const {
  18464. int total_size = 0;
  18465. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  18466. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_rand_turret_addition];
  18467. if (has_packet_id()) {
  18468. total_size += 1 +
  18469. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  18470. }
  18471. // optional int32 type = 2;
  18472. if (has_type()) {
  18473. total_size += 1 +
  18474. ::google::protobuf::internal::WireFormatLite::Int32Size(
  18475. this->type());
  18476. }
  18477. // optional int32 id = 3;
  18478. if (has_id()) {
  18479. total_size += 1 +
  18480. ::google::protobuf::internal::WireFormatLite::Int32Size(
  18481. this->id());
  18482. }
  18483. }
  18484. if (!unknown_fields().empty()) {
  18485. total_size +=
  18486. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  18487. unknown_fields());
  18488. }
  18489. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  18490. _cached_size_ = total_size;
  18491. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  18492. return total_size;
  18493. }
  18494. void packetc2l_rand_turret_addition::MergeFrom(const ::google::protobuf::Message& from) {
  18495. GOOGLE_CHECK_NE(&from, this);
  18496. const packetc2l_rand_turret_addition* source =
  18497. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_rand_turret_addition*>(
  18498. &from);
  18499. if (source == NULL) {
  18500. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  18501. } else {
  18502. MergeFrom(*source);
  18503. }
  18504. }
  18505. void packetc2l_rand_turret_addition::MergeFrom(const packetc2l_rand_turret_addition& from) {
  18506. GOOGLE_CHECK_NE(&from, this);
  18507. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  18508. if (from.has_packet_id()) {
  18509. set_packet_id(from.packet_id());
  18510. }
  18511. if (from.has_type()) {
  18512. set_type(from.type());
  18513. }
  18514. if (from.has_id()) {
  18515. set_id(from.id());
  18516. }
  18517. }
  18518. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  18519. }
  18520. void packetc2l_rand_turret_addition::CopyFrom(const ::google::protobuf::Message& from) {
  18521. if (&from == this) return;
  18522. Clear();
  18523. MergeFrom(from);
  18524. }
  18525. void packetc2l_rand_turret_addition::CopyFrom(const packetc2l_rand_turret_addition& from) {
  18526. if (&from == this) return;
  18527. Clear();
  18528. MergeFrom(from);
  18529. }
  18530. bool packetc2l_rand_turret_addition::IsInitialized() const {
  18531. return true;
  18532. }
  18533. void packetc2l_rand_turret_addition::Swap(packetc2l_rand_turret_addition* other) {
  18534. if (other != this) {
  18535. std::swap(packet_id_, other->packet_id_);
  18536. std::swap(type_, other->type_);
  18537. std::swap(id_, other->id_);
  18538. std::swap(_has_bits_[0], other->_has_bits_[0]);
  18539. _unknown_fields_.Swap(&other->_unknown_fields_);
  18540. std::swap(_cached_size_, other->_cached_size_);
  18541. }
  18542. }
  18543. ::google::protobuf::Metadata packetc2l_rand_turret_addition::GetMetadata() const {
  18544. protobuf_AssignDescriptorsOnce();
  18545. ::google::protobuf::Metadata metadata;
  18546. metadata.descriptor = packetc2l_rand_turret_addition_descriptor_;
  18547. metadata.reflection = packetc2l_rand_turret_addition_reflection_;
  18548. return metadata;
  18549. }
  18550. // ===================================================================
  18551. #ifndef _MSC_VER
  18552. const int packetl2c_rand_turret_addition_result::kPacketIdFieldNumber;
  18553. const int packetl2c_rand_turret_addition_result::kTypeFieldNumber;
  18554. const int packetl2c_rand_turret_addition_result::kIdFieldNumber;
  18555. const int packetl2c_rand_turret_addition_result::kResultFieldNumber;
  18556. const int packetl2c_rand_turret_addition_result::kLeftTimesFieldNumber;
  18557. const int packetl2c_rand_turret_addition_result::kAddIdFieldNumber;
  18558. const int packetl2c_rand_turret_addition_result::kCostItemFieldNumber;
  18559. const int packetl2c_rand_turret_addition_result::kCostCountFieldNumber;
  18560. #endif // !_MSC_VER
  18561. packetl2c_rand_turret_addition_result::packetl2c_rand_turret_addition_result()
  18562. : ::google::protobuf::Message() {
  18563. SharedCtor();
  18564. }
  18565. void packetl2c_rand_turret_addition_result::InitAsDefaultInstance() {
  18566. }
  18567. packetl2c_rand_turret_addition_result::packetl2c_rand_turret_addition_result(const packetl2c_rand_turret_addition_result& from)
  18568. : ::google::protobuf::Message() {
  18569. SharedCtor();
  18570. MergeFrom(from);
  18571. }
  18572. void packetl2c_rand_turret_addition_result::SharedCtor() {
  18573. _cached_size_ = 0;
  18574. packet_id_ = 16232;
  18575. type_ = 0;
  18576. id_ = 0;
  18577. result_ = 0;
  18578. lefttimes_ = 0;
  18579. addid_ = 0;
  18580. costitem_ = 0;
  18581. costcount_ = 0;
  18582. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  18583. }
  18584. packetl2c_rand_turret_addition_result::~packetl2c_rand_turret_addition_result() {
  18585. SharedDtor();
  18586. }
  18587. void packetl2c_rand_turret_addition_result::SharedDtor() {
  18588. if (this != default_instance_) {
  18589. }
  18590. }
  18591. void packetl2c_rand_turret_addition_result::SetCachedSize(int size) const {
  18592. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  18593. _cached_size_ = size;
  18594. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  18595. }
  18596. const ::google::protobuf::Descriptor* packetl2c_rand_turret_addition_result::descriptor() {
  18597. protobuf_AssignDescriptorsOnce();
  18598. return packetl2c_rand_turret_addition_result_descriptor_;
  18599. }
  18600. const packetl2c_rand_turret_addition_result& packetl2c_rand_turret_addition_result::default_instance() {
  18601. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  18602. return *default_instance_;
  18603. }
  18604. packetl2c_rand_turret_addition_result* packetl2c_rand_turret_addition_result::default_instance_ = NULL;
  18605. packetl2c_rand_turret_addition_result* packetl2c_rand_turret_addition_result::New() const {
  18606. return new packetl2c_rand_turret_addition_result;
  18607. }
  18608. void packetl2c_rand_turret_addition_result::Clear() {
  18609. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  18610. packet_id_ = 16232;
  18611. type_ = 0;
  18612. id_ = 0;
  18613. result_ = 0;
  18614. lefttimes_ = 0;
  18615. addid_ = 0;
  18616. costitem_ = 0;
  18617. costcount_ = 0;
  18618. }
  18619. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  18620. mutable_unknown_fields()->Clear();
  18621. }
  18622. bool packetl2c_rand_turret_addition_result::MergePartialFromCodedStream(
  18623. ::google::protobuf::io::CodedInputStream* input) {
  18624. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  18625. ::google::protobuf::uint32 tag;
  18626. while ((tag = input->ReadTag()) != 0) {
  18627. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  18628. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_rand_turret_addition_result];
  18629. case 1: {
  18630. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  18631. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  18632. int value;
  18633. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  18634. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  18635. input, &value)));
  18636. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  18637. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  18638. } else {
  18639. mutable_unknown_fields()->AddVarint(1, value);
  18640. }
  18641. } else {
  18642. goto handle_uninterpreted;
  18643. }
  18644. if (input->ExpectTag(16)) goto parse_type;
  18645. break;
  18646. }
  18647. // optional int32 type = 2;
  18648. case 2: {
  18649. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  18650. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  18651. parse_type:
  18652. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  18653. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  18654. input, &type_)));
  18655. set_has_type();
  18656. } else {
  18657. goto handle_uninterpreted;
  18658. }
  18659. if (input->ExpectTag(24)) goto parse_id;
  18660. break;
  18661. }
  18662. // optional int32 id = 3;
  18663. case 3: {
  18664. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  18665. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  18666. parse_id:
  18667. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  18668. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  18669. input, &id_)));
  18670. set_has_id();
  18671. } else {
  18672. goto handle_uninterpreted;
  18673. }
  18674. if (input->ExpectTag(32)) goto parse_result;
  18675. break;
  18676. }
  18677. // optional int32 result = 4;
  18678. case 4: {
  18679. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  18680. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  18681. parse_result:
  18682. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  18683. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  18684. input, &result_)));
  18685. set_has_result();
  18686. } else {
  18687. goto handle_uninterpreted;
  18688. }
  18689. if (input->ExpectTag(40)) goto parse_leftTimes;
  18690. break;
  18691. }
  18692. // optional int32 leftTimes = 5;
  18693. case 5: {
  18694. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  18695. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  18696. parse_leftTimes:
  18697. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  18698. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  18699. input, &lefttimes_)));
  18700. set_has_lefttimes();
  18701. } else {
  18702. goto handle_uninterpreted;
  18703. }
  18704. if (input->ExpectTag(48)) goto parse_addId;
  18705. break;
  18706. }
  18707. // optional int32 addId = 6;
  18708. case 6: {
  18709. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  18710. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  18711. parse_addId:
  18712. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  18713. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  18714. input, &addid_)));
  18715. set_has_addid();
  18716. } else {
  18717. goto handle_uninterpreted;
  18718. }
  18719. if (input->ExpectTag(56)) goto parse_costItem;
  18720. break;
  18721. }
  18722. // optional int32 costItem = 7;
  18723. case 7: {
  18724. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  18725. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  18726. parse_costItem:
  18727. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  18728. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  18729. input, &costitem_)));
  18730. set_has_costitem();
  18731. } else {
  18732. goto handle_uninterpreted;
  18733. }
  18734. if (input->ExpectTag(64)) goto parse_costCount;
  18735. break;
  18736. }
  18737. // optional int32 costCount = 8;
  18738. case 8: {
  18739. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  18740. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  18741. parse_costCount:
  18742. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  18743. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  18744. input, &costcount_)));
  18745. set_has_costcount();
  18746. } else {
  18747. goto handle_uninterpreted;
  18748. }
  18749. if (input->ExpectAtEnd()) return true;
  18750. break;
  18751. }
  18752. default: {
  18753. handle_uninterpreted:
  18754. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  18755. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  18756. return true;
  18757. }
  18758. DO_(::google::protobuf::internal::WireFormat::SkipField(
  18759. input, tag, mutable_unknown_fields()));
  18760. break;
  18761. }
  18762. }
  18763. }
  18764. return true;
  18765. #undef DO_
  18766. }
  18767. void packetl2c_rand_turret_addition_result::SerializeWithCachedSizes(
  18768. ::google::protobuf::io::CodedOutputStream* output) const {
  18769. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_rand_turret_addition_result];
  18770. if (has_packet_id()) {
  18771. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  18772. 1, this->packet_id(), output);
  18773. }
  18774. // optional int32 type = 2;
  18775. if (has_type()) {
  18776. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->type(), output);
  18777. }
  18778. // optional int32 id = 3;
  18779. if (has_id()) {
  18780. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->id(), output);
  18781. }
  18782. // optional int32 result = 4;
  18783. if (has_result()) {
  18784. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->result(), output);
  18785. }
  18786. // optional int32 leftTimes = 5;
  18787. if (has_lefttimes()) {
  18788. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->lefttimes(), output);
  18789. }
  18790. // optional int32 addId = 6;
  18791. if (has_addid()) {
  18792. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->addid(), output);
  18793. }
  18794. // optional int32 costItem = 7;
  18795. if (has_costitem()) {
  18796. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->costitem(), output);
  18797. }
  18798. // optional int32 costCount = 8;
  18799. if (has_costcount()) {
  18800. ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->costcount(), output);
  18801. }
  18802. if (!unknown_fields().empty()) {
  18803. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  18804. unknown_fields(), output);
  18805. }
  18806. }
  18807. ::google::protobuf::uint8* packetl2c_rand_turret_addition_result::SerializeWithCachedSizesToArray(
  18808. ::google::protobuf::uint8* target) const {
  18809. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_rand_turret_addition_result];
  18810. if (has_packet_id()) {
  18811. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  18812. 1, this->packet_id(), target);
  18813. }
  18814. // optional int32 type = 2;
  18815. if (has_type()) {
  18816. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->type(), target);
  18817. }
  18818. // optional int32 id = 3;
  18819. if (has_id()) {
  18820. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->id(), target);
  18821. }
  18822. // optional int32 result = 4;
  18823. if (has_result()) {
  18824. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->result(), target);
  18825. }
  18826. // optional int32 leftTimes = 5;
  18827. if (has_lefttimes()) {
  18828. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->lefttimes(), target);
  18829. }
  18830. // optional int32 addId = 6;
  18831. if (has_addid()) {
  18832. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->addid(), target);
  18833. }
  18834. // optional int32 costItem = 7;
  18835. if (has_costitem()) {
  18836. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->costitem(), target);
  18837. }
  18838. // optional int32 costCount = 8;
  18839. if (has_costcount()) {
  18840. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->costcount(), target);
  18841. }
  18842. if (!unknown_fields().empty()) {
  18843. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  18844. unknown_fields(), target);
  18845. }
  18846. return target;
  18847. }
  18848. int packetl2c_rand_turret_addition_result::ByteSize() const {
  18849. int total_size = 0;
  18850. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  18851. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_rand_turret_addition_result];
  18852. if (has_packet_id()) {
  18853. total_size += 1 +
  18854. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  18855. }
  18856. // optional int32 type = 2;
  18857. if (has_type()) {
  18858. total_size += 1 +
  18859. ::google::protobuf::internal::WireFormatLite::Int32Size(
  18860. this->type());
  18861. }
  18862. // optional int32 id = 3;
  18863. if (has_id()) {
  18864. total_size += 1 +
  18865. ::google::protobuf::internal::WireFormatLite::Int32Size(
  18866. this->id());
  18867. }
  18868. // optional int32 result = 4;
  18869. if (has_result()) {
  18870. total_size += 1 +
  18871. ::google::protobuf::internal::WireFormatLite::Int32Size(
  18872. this->result());
  18873. }
  18874. // optional int32 leftTimes = 5;
  18875. if (has_lefttimes()) {
  18876. total_size += 1 +
  18877. ::google::protobuf::internal::WireFormatLite::Int32Size(
  18878. this->lefttimes());
  18879. }
  18880. // optional int32 addId = 6;
  18881. if (has_addid()) {
  18882. total_size += 1 +
  18883. ::google::protobuf::internal::WireFormatLite::Int32Size(
  18884. this->addid());
  18885. }
  18886. // optional int32 costItem = 7;
  18887. if (has_costitem()) {
  18888. total_size += 1 +
  18889. ::google::protobuf::internal::WireFormatLite::Int32Size(
  18890. this->costitem());
  18891. }
  18892. // optional int32 costCount = 8;
  18893. if (has_costcount()) {
  18894. total_size += 1 +
  18895. ::google::protobuf::internal::WireFormatLite::Int32Size(
  18896. this->costcount());
  18897. }
  18898. }
  18899. if (!unknown_fields().empty()) {
  18900. total_size +=
  18901. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  18902. unknown_fields());
  18903. }
  18904. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  18905. _cached_size_ = total_size;
  18906. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  18907. return total_size;
  18908. }
  18909. void packetl2c_rand_turret_addition_result::MergeFrom(const ::google::protobuf::Message& from) {
  18910. GOOGLE_CHECK_NE(&from, this);
  18911. const packetl2c_rand_turret_addition_result* source =
  18912. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_rand_turret_addition_result*>(
  18913. &from);
  18914. if (source == NULL) {
  18915. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  18916. } else {
  18917. MergeFrom(*source);
  18918. }
  18919. }
  18920. void packetl2c_rand_turret_addition_result::MergeFrom(const packetl2c_rand_turret_addition_result& from) {
  18921. GOOGLE_CHECK_NE(&from, this);
  18922. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  18923. if (from.has_packet_id()) {
  18924. set_packet_id(from.packet_id());
  18925. }
  18926. if (from.has_type()) {
  18927. set_type(from.type());
  18928. }
  18929. if (from.has_id()) {
  18930. set_id(from.id());
  18931. }
  18932. if (from.has_result()) {
  18933. set_result(from.result());
  18934. }
  18935. if (from.has_lefttimes()) {
  18936. set_lefttimes(from.lefttimes());
  18937. }
  18938. if (from.has_addid()) {
  18939. set_addid(from.addid());
  18940. }
  18941. if (from.has_costitem()) {
  18942. set_costitem(from.costitem());
  18943. }
  18944. if (from.has_costcount()) {
  18945. set_costcount(from.costcount());
  18946. }
  18947. }
  18948. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  18949. }
  18950. void packetl2c_rand_turret_addition_result::CopyFrom(const ::google::protobuf::Message& from) {
  18951. if (&from == this) return;
  18952. Clear();
  18953. MergeFrom(from);
  18954. }
  18955. void packetl2c_rand_turret_addition_result::CopyFrom(const packetl2c_rand_turret_addition_result& from) {
  18956. if (&from == this) return;
  18957. Clear();
  18958. MergeFrom(from);
  18959. }
  18960. bool packetl2c_rand_turret_addition_result::IsInitialized() const {
  18961. return true;
  18962. }
  18963. void packetl2c_rand_turret_addition_result::Swap(packetl2c_rand_turret_addition_result* other) {
  18964. if (other != this) {
  18965. std::swap(packet_id_, other->packet_id_);
  18966. std::swap(type_, other->type_);
  18967. std::swap(id_, other->id_);
  18968. std::swap(result_, other->result_);
  18969. std::swap(lefttimes_, other->lefttimes_);
  18970. std::swap(addid_, other->addid_);
  18971. std::swap(costitem_, other->costitem_);
  18972. std::swap(costcount_, other->costcount_);
  18973. std::swap(_has_bits_[0], other->_has_bits_[0]);
  18974. _unknown_fields_.Swap(&other->_unknown_fields_);
  18975. std::swap(_cached_size_, other->_cached_size_);
  18976. }
  18977. }
  18978. ::google::protobuf::Metadata packetl2c_rand_turret_addition_result::GetMetadata() const {
  18979. protobuf_AssignDescriptorsOnce();
  18980. ::google::protobuf::Metadata metadata;
  18981. metadata.descriptor = packetl2c_rand_turret_addition_result_descriptor_;
  18982. metadata.reflection = packetl2c_rand_turret_addition_result_reflection_;
  18983. return metadata;
  18984. }
  18985. // ===================================================================
  18986. #ifndef _MSC_VER
  18987. const int packetc2l_turret_addition_confirm::kPacketIdFieldNumber;
  18988. const int packetc2l_turret_addition_confirm::kTypeFieldNumber;
  18989. const int packetc2l_turret_addition_confirm::kIdFieldNumber;
  18990. #endif // !_MSC_VER
  18991. packetc2l_turret_addition_confirm::packetc2l_turret_addition_confirm()
  18992. : ::google::protobuf::Message() {
  18993. SharedCtor();
  18994. }
  18995. void packetc2l_turret_addition_confirm::InitAsDefaultInstance() {
  18996. }
  18997. packetc2l_turret_addition_confirm::packetc2l_turret_addition_confirm(const packetc2l_turret_addition_confirm& from)
  18998. : ::google::protobuf::Message() {
  18999. SharedCtor();
  19000. MergeFrom(from);
  19001. }
  19002. void packetc2l_turret_addition_confirm::SharedCtor() {
  19003. _cached_size_ = 0;
  19004. packet_id_ = 10227;
  19005. type_ = 0;
  19006. id_ = 0;
  19007. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  19008. }
  19009. packetc2l_turret_addition_confirm::~packetc2l_turret_addition_confirm() {
  19010. SharedDtor();
  19011. }
  19012. void packetc2l_turret_addition_confirm::SharedDtor() {
  19013. if (this != default_instance_) {
  19014. }
  19015. }
  19016. void packetc2l_turret_addition_confirm::SetCachedSize(int size) const {
  19017. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  19018. _cached_size_ = size;
  19019. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  19020. }
  19021. const ::google::protobuf::Descriptor* packetc2l_turret_addition_confirm::descriptor() {
  19022. protobuf_AssignDescriptorsOnce();
  19023. return packetc2l_turret_addition_confirm_descriptor_;
  19024. }
  19025. const packetc2l_turret_addition_confirm& packetc2l_turret_addition_confirm::default_instance() {
  19026. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  19027. return *default_instance_;
  19028. }
  19029. packetc2l_turret_addition_confirm* packetc2l_turret_addition_confirm::default_instance_ = NULL;
  19030. packetc2l_turret_addition_confirm* packetc2l_turret_addition_confirm::New() const {
  19031. return new packetc2l_turret_addition_confirm;
  19032. }
  19033. void packetc2l_turret_addition_confirm::Clear() {
  19034. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  19035. packet_id_ = 10227;
  19036. type_ = 0;
  19037. id_ = 0;
  19038. }
  19039. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  19040. mutable_unknown_fields()->Clear();
  19041. }
  19042. bool packetc2l_turret_addition_confirm::MergePartialFromCodedStream(
  19043. ::google::protobuf::io::CodedInputStream* input) {
  19044. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  19045. ::google::protobuf::uint32 tag;
  19046. while ((tag = input->ReadTag()) != 0) {
  19047. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  19048. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_turret_addition_confirm];
  19049. case 1: {
  19050. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  19051. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  19052. int value;
  19053. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  19054. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  19055. input, &value)));
  19056. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  19057. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  19058. } else {
  19059. mutable_unknown_fields()->AddVarint(1, value);
  19060. }
  19061. } else {
  19062. goto handle_uninterpreted;
  19063. }
  19064. if (input->ExpectTag(16)) goto parse_type;
  19065. break;
  19066. }
  19067. // optional int32 type = 2;
  19068. case 2: {
  19069. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  19070. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  19071. parse_type:
  19072. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  19073. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  19074. input, &type_)));
  19075. set_has_type();
  19076. } else {
  19077. goto handle_uninterpreted;
  19078. }
  19079. if (input->ExpectTag(24)) goto parse_id;
  19080. break;
  19081. }
  19082. // optional int32 id = 3;
  19083. case 3: {
  19084. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  19085. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  19086. parse_id:
  19087. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  19088. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  19089. input, &id_)));
  19090. set_has_id();
  19091. } else {
  19092. goto handle_uninterpreted;
  19093. }
  19094. if (input->ExpectAtEnd()) return true;
  19095. break;
  19096. }
  19097. default: {
  19098. handle_uninterpreted:
  19099. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  19100. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  19101. return true;
  19102. }
  19103. DO_(::google::protobuf::internal::WireFormat::SkipField(
  19104. input, tag, mutable_unknown_fields()));
  19105. break;
  19106. }
  19107. }
  19108. }
  19109. return true;
  19110. #undef DO_
  19111. }
  19112. void packetc2l_turret_addition_confirm::SerializeWithCachedSizes(
  19113. ::google::protobuf::io::CodedOutputStream* output) const {
  19114. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_turret_addition_confirm];
  19115. if (has_packet_id()) {
  19116. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  19117. 1, this->packet_id(), output);
  19118. }
  19119. // optional int32 type = 2;
  19120. if (has_type()) {
  19121. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->type(), output);
  19122. }
  19123. // optional int32 id = 3;
  19124. if (has_id()) {
  19125. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->id(), output);
  19126. }
  19127. if (!unknown_fields().empty()) {
  19128. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  19129. unknown_fields(), output);
  19130. }
  19131. }
  19132. ::google::protobuf::uint8* packetc2l_turret_addition_confirm::SerializeWithCachedSizesToArray(
  19133. ::google::protobuf::uint8* target) const {
  19134. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_turret_addition_confirm];
  19135. if (has_packet_id()) {
  19136. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  19137. 1, this->packet_id(), target);
  19138. }
  19139. // optional int32 type = 2;
  19140. if (has_type()) {
  19141. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->type(), target);
  19142. }
  19143. // optional int32 id = 3;
  19144. if (has_id()) {
  19145. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->id(), target);
  19146. }
  19147. if (!unknown_fields().empty()) {
  19148. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  19149. unknown_fields(), target);
  19150. }
  19151. return target;
  19152. }
  19153. int packetc2l_turret_addition_confirm::ByteSize() const {
  19154. int total_size = 0;
  19155. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  19156. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_turret_addition_confirm];
  19157. if (has_packet_id()) {
  19158. total_size += 1 +
  19159. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  19160. }
  19161. // optional int32 type = 2;
  19162. if (has_type()) {
  19163. total_size += 1 +
  19164. ::google::protobuf::internal::WireFormatLite::Int32Size(
  19165. this->type());
  19166. }
  19167. // optional int32 id = 3;
  19168. if (has_id()) {
  19169. total_size += 1 +
  19170. ::google::protobuf::internal::WireFormatLite::Int32Size(
  19171. this->id());
  19172. }
  19173. }
  19174. if (!unknown_fields().empty()) {
  19175. total_size +=
  19176. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  19177. unknown_fields());
  19178. }
  19179. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  19180. _cached_size_ = total_size;
  19181. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  19182. return total_size;
  19183. }
  19184. void packetc2l_turret_addition_confirm::MergeFrom(const ::google::protobuf::Message& from) {
  19185. GOOGLE_CHECK_NE(&from, this);
  19186. const packetc2l_turret_addition_confirm* source =
  19187. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_turret_addition_confirm*>(
  19188. &from);
  19189. if (source == NULL) {
  19190. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  19191. } else {
  19192. MergeFrom(*source);
  19193. }
  19194. }
  19195. void packetc2l_turret_addition_confirm::MergeFrom(const packetc2l_turret_addition_confirm& from) {
  19196. GOOGLE_CHECK_NE(&from, this);
  19197. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  19198. if (from.has_packet_id()) {
  19199. set_packet_id(from.packet_id());
  19200. }
  19201. if (from.has_type()) {
  19202. set_type(from.type());
  19203. }
  19204. if (from.has_id()) {
  19205. set_id(from.id());
  19206. }
  19207. }
  19208. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  19209. }
  19210. void packetc2l_turret_addition_confirm::CopyFrom(const ::google::protobuf::Message& from) {
  19211. if (&from == this) return;
  19212. Clear();
  19213. MergeFrom(from);
  19214. }
  19215. void packetc2l_turret_addition_confirm::CopyFrom(const packetc2l_turret_addition_confirm& from) {
  19216. if (&from == this) return;
  19217. Clear();
  19218. MergeFrom(from);
  19219. }
  19220. bool packetc2l_turret_addition_confirm::IsInitialized() const {
  19221. return true;
  19222. }
  19223. void packetc2l_turret_addition_confirm::Swap(packetc2l_turret_addition_confirm* other) {
  19224. if (other != this) {
  19225. std::swap(packet_id_, other->packet_id_);
  19226. std::swap(type_, other->type_);
  19227. std::swap(id_, other->id_);
  19228. std::swap(_has_bits_[0], other->_has_bits_[0]);
  19229. _unknown_fields_.Swap(&other->_unknown_fields_);
  19230. std::swap(_cached_size_, other->_cached_size_);
  19231. }
  19232. }
  19233. ::google::protobuf::Metadata packetc2l_turret_addition_confirm::GetMetadata() const {
  19234. protobuf_AssignDescriptorsOnce();
  19235. ::google::protobuf::Metadata metadata;
  19236. metadata.descriptor = packetc2l_turret_addition_confirm_descriptor_;
  19237. metadata.reflection = packetc2l_turret_addition_confirm_reflection_;
  19238. return metadata;
  19239. }
  19240. // ===================================================================
  19241. #ifndef _MSC_VER
  19242. const int packetl2c_turret_addition_confirm_result::kPacketIdFieldNumber;
  19243. const int packetl2c_turret_addition_confirm_result::kTypeFieldNumber;
  19244. const int packetl2c_turret_addition_confirm_result::kIdFieldNumber;
  19245. const int packetl2c_turret_addition_confirm_result::kResultFieldNumber;
  19246. const int packetl2c_turret_addition_confirm_result::kWingdataFieldNumber;
  19247. const int packetl2c_turret_addition_confirm_result::kTurretdataFieldNumber;
  19248. #endif // !_MSC_VER
  19249. packetl2c_turret_addition_confirm_result::packetl2c_turret_addition_confirm_result()
  19250. : ::google::protobuf::Message() {
  19251. SharedCtor();
  19252. }
  19253. void packetl2c_turret_addition_confirm_result::InitAsDefaultInstance() {
  19254. wingdata_ = const_cast< ::fish_protocols::wing_unit*>(&::fish_protocols::wing_unit::default_instance());
  19255. turretdata_ = const_cast< ::fish_protocols::turret_unit*>(&::fish_protocols::turret_unit::default_instance());
  19256. }
  19257. packetl2c_turret_addition_confirm_result::packetl2c_turret_addition_confirm_result(const packetl2c_turret_addition_confirm_result& from)
  19258. : ::google::protobuf::Message() {
  19259. SharedCtor();
  19260. MergeFrom(from);
  19261. }
  19262. void packetl2c_turret_addition_confirm_result::SharedCtor() {
  19263. _cached_size_ = 0;
  19264. packet_id_ = 16233;
  19265. type_ = 0;
  19266. id_ = 0;
  19267. result_ = 0;
  19268. wingdata_ = NULL;
  19269. turretdata_ = NULL;
  19270. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  19271. }
  19272. packetl2c_turret_addition_confirm_result::~packetl2c_turret_addition_confirm_result() {
  19273. SharedDtor();
  19274. }
  19275. void packetl2c_turret_addition_confirm_result::SharedDtor() {
  19276. if (this != default_instance_) {
  19277. delete wingdata_;
  19278. delete turretdata_;
  19279. }
  19280. }
  19281. void packetl2c_turret_addition_confirm_result::SetCachedSize(int size) const {
  19282. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  19283. _cached_size_ = size;
  19284. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  19285. }
  19286. const ::google::protobuf::Descriptor* packetl2c_turret_addition_confirm_result::descriptor() {
  19287. protobuf_AssignDescriptorsOnce();
  19288. return packetl2c_turret_addition_confirm_result_descriptor_;
  19289. }
  19290. const packetl2c_turret_addition_confirm_result& packetl2c_turret_addition_confirm_result::default_instance() {
  19291. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  19292. return *default_instance_;
  19293. }
  19294. packetl2c_turret_addition_confirm_result* packetl2c_turret_addition_confirm_result::default_instance_ = NULL;
  19295. packetl2c_turret_addition_confirm_result* packetl2c_turret_addition_confirm_result::New() const {
  19296. return new packetl2c_turret_addition_confirm_result;
  19297. }
  19298. void packetl2c_turret_addition_confirm_result::Clear() {
  19299. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  19300. packet_id_ = 16233;
  19301. type_ = 0;
  19302. id_ = 0;
  19303. result_ = 0;
  19304. if (has_wingdata()) {
  19305. if (wingdata_ != NULL) wingdata_->::fish_protocols::wing_unit::Clear();
  19306. }
  19307. if (has_turretdata()) {
  19308. if (turretdata_ != NULL) turretdata_->::fish_protocols::turret_unit::Clear();
  19309. }
  19310. }
  19311. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  19312. mutable_unknown_fields()->Clear();
  19313. }
  19314. bool packetl2c_turret_addition_confirm_result::MergePartialFromCodedStream(
  19315. ::google::protobuf::io::CodedInputStream* input) {
  19316. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  19317. ::google::protobuf::uint32 tag;
  19318. while ((tag = input->ReadTag()) != 0) {
  19319. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  19320. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_turret_addition_confirm_result];
  19321. case 1: {
  19322. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  19323. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  19324. int value;
  19325. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  19326. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  19327. input, &value)));
  19328. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  19329. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  19330. } else {
  19331. mutable_unknown_fields()->AddVarint(1, value);
  19332. }
  19333. } else {
  19334. goto handle_uninterpreted;
  19335. }
  19336. if (input->ExpectTag(16)) goto parse_type;
  19337. break;
  19338. }
  19339. // optional int32 type = 2;
  19340. case 2: {
  19341. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  19342. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  19343. parse_type:
  19344. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  19345. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  19346. input, &type_)));
  19347. set_has_type();
  19348. } else {
  19349. goto handle_uninterpreted;
  19350. }
  19351. if (input->ExpectTag(24)) goto parse_id;
  19352. break;
  19353. }
  19354. // optional int32 id = 3;
  19355. case 3: {
  19356. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  19357. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  19358. parse_id:
  19359. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  19360. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  19361. input, &id_)));
  19362. set_has_id();
  19363. } else {
  19364. goto handle_uninterpreted;
  19365. }
  19366. if (input->ExpectTag(32)) goto parse_result;
  19367. break;
  19368. }
  19369. // optional int32 result = 4;
  19370. case 4: {
  19371. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  19372. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  19373. parse_result:
  19374. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  19375. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  19376. input, &result_)));
  19377. set_has_result();
  19378. } else {
  19379. goto handle_uninterpreted;
  19380. }
  19381. if (input->ExpectTag(42)) goto parse_wingdata;
  19382. break;
  19383. }
  19384. // optional .fish_protocols.wing_unit wingdata = 5;
  19385. case 5: {
  19386. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  19387. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  19388. parse_wingdata:
  19389. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  19390. input, mutable_wingdata()));
  19391. } else {
  19392. goto handle_uninterpreted;
  19393. }
  19394. if (input->ExpectTag(50)) goto parse_turretdata;
  19395. break;
  19396. }
  19397. // optional .fish_protocols.turret_unit turretdata = 6;
  19398. case 6: {
  19399. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  19400. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  19401. parse_turretdata:
  19402. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  19403. input, mutable_turretdata()));
  19404. } else {
  19405. goto handle_uninterpreted;
  19406. }
  19407. if (input->ExpectAtEnd()) return true;
  19408. break;
  19409. }
  19410. default: {
  19411. handle_uninterpreted:
  19412. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  19413. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  19414. return true;
  19415. }
  19416. DO_(::google::protobuf::internal::WireFormat::SkipField(
  19417. input, tag, mutable_unknown_fields()));
  19418. break;
  19419. }
  19420. }
  19421. }
  19422. return true;
  19423. #undef DO_
  19424. }
  19425. void packetl2c_turret_addition_confirm_result::SerializeWithCachedSizes(
  19426. ::google::protobuf::io::CodedOutputStream* output) const {
  19427. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_turret_addition_confirm_result];
  19428. if (has_packet_id()) {
  19429. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  19430. 1, this->packet_id(), output);
  19431. }
  19432. // optional int32 type = 2;
  19433. if (has_type()) {
  19434. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->type(), output);
  19435. }
  19436. // optional int32 id = 3;
  19437. if (has_id()) {
  19438. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->id(), output);
  19439. }
  19440. // optional int32 result = 4;
  19441. if (has_result()) {
  19442. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->result(), output);
  19443. }
  19444. // optional .fish_protocols.wing_unit wingdata = 5;
  19445. if (has_wingdata()) {
  19446. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  19447. 5, this->wingdata(), output);
  19448. }
  19449. // optional .fish_protocols.turret_unit turretdata = 6;
  19450. if (has_turretdata()) {
  19451. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  19452. 6, this->turretdata(), output);
  19453. }
  19454. if (!unknown_fields().empty()) {
  19455. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  19456. unknown_fields(), output);
  19457. }
  19458. }
  19459. ::google::protobuf::uint8* packetl2c_turret_addition_confirm_result::SerializeWithCachedSizesToArray(
  19460. ::google::protobuf::uint8* target) const {
  19461. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_turret_addition_confirm_result];
  19462. if (has_packet_id()) {
  19463. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  19464. 1, this->packet_id(), target);
  19465. }
  19466. // optional int32 type = 2;
  19467. if (has_type()) {
  19468. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->type(), target);
  19469. }
  19470. // optional int32 id = 3;
  19471. if (has_id()) {
  19472. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->id(), target);
  19473. }
  19474. // optional int32 result = 4;
  19475. if (has_result()) {
  19476. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->result(), target);
  19477. }
  19478. // optional .fish_protocols.wing_unit wingdata = 5;
  19479. if (has_wingdata()) {
  19480. target = ::google::protobuf::internal::WireFormatLite::
  19481. WriteMessageNoVirtualToArray(
  19482. 5, this->wingdata(), target);
  19483. }
  19484. // optional .fish_protocols.turret_unit turretdata = 6;
  19485. if (has_turretdata()) {
  19486. target = ::google::protobuf::internal::WireFormatLite::
  19487. WriteMessageNoVirtualToArray(
  19488. 6, this->turretdata(), target);
  19489. }
  19490. if (!unknown_fields().empty()) {
  19491. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  19492. unknown_fields(), target);
  19493. }
  19494. return target;
  19495. }
  19496. int packetl2c_turret_addition_confirm_result::ByteSize() const {
  19497. int total_size = 0;
  19498. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  19499. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_turret_addition_confirm_result];
  19500. if (has_packet_id()) {
  19501. total_size += 1 +
  19502. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  19503. }
  19504. // optional int32 type = 2;
  19505. if (has_type()) {
  19506. total_size += 1 +
  19507. ::google::protobuf::internal::WireFormatLite::Int32Size(
  19508. this->type());
  19509. }
  19510. // optional int32 id = 3;
  19511. if (has_id()) {
  19512. total_size += 1 +
  19513. ::google::protobuf::internal::WireFormatLite::Int32Size(
  19514. this->id());
  19515. }
  19516. // optional int32 result = 4;
  19517. if (has_result()) {
  19518. total_size += 1 +
  19519. ::google::protobuf::internal::WireFormatLite::Int32Size(
  19520. this->result());
  19521. }
  19522. // optional .fish_protocols.wing_unit wingdata = 5;
  19523. if (has_wingdata()) {
  19524. total_size += 1 +
  19525. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  19526. this->wingdata());
  19527. }
  19528. // optional .fish_protocols.turret_unit turretdata = 6;
  19529. if (has_turretdata()) {
  19530. total_size += 1 +
  19531. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  19532. this->turretdata());
  19533. }
  19534. }
  19535. if (!unknown_fields().empty()) {
  19536. total_size +=
  19537. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  19538. unknown_fields());
  19539. }
  19540. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  19541. _cached_size_ = total_size;
  19542. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  19543. return total_size;
  19544. }
  19545. void packetl2c_turret_addition_confirm_result::MergeFrom(const ::google::protobuf::Message& from) {
  19546. GOOGLE_CHECK_NE(&from, this);
  19547. const packetl2c_turret_addition_confirm_result* source =
  19548. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_turret_addition_confirm_result*>(
  19549. &from);
  19550. if (source == NULL) {
  19551. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  19552. } else {
  19553. MergeFrom(*source);
  19554. }
  19555. }
  19556. void packetl2c_turret_addition_confirm_result::MergeFrom(const packetl2c_turret_addition_confirm_result& from) {
  19557. GOOGLE_CHECK_NE(&from, this);
  19558. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  19559. if (from.has_packet_id()) {
  19560. set_packet_id(from.packet_id());
  19561. }
  19562. if (from.has_type()) {
  19563. set_type(from.type());
  19564. }
  19565. if (from.has_id()) {
  19566. set_id(from.id());
  19567. }
  19568. if (from.has_result()) {
  19569. set_result(from.result());
  19570. }
  19571. if (from.has_wingdata()) {
  19572. mutable_wingdata()->::fish_protocols::wing_unit::MergeFrom(from.wingdata());
  19573. }
  19574. if (from.has_turretdata()) {
  19575. mutable_turretdata()->::fish_protocols::turret_unit::MergeFrom(from.turretdata());
  19576. }
  19577. }
  19578. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  19579. }
  19580. void packetl2c_turret_addition_confirm_result::CopyFrom(const ::google::protobuf::Message& from) {
  19581. if (&from == this) return;
  19582. Clear();
  19583. MergeFrom(from);
  19584. }
  19585. void packetl2c_turret_addition_confirm_result::CopyFrom(const packetl2c_turret_addition_confirm_result& from) {
  19586. if (&from == this) return;
  19587. Clear();
  19588. MergeFrom(from);
  19589. }
  19590. bool packetl2c_turret_addition_confirm_result::IsInitialized() const {
  19591. return true;
  19592. }
  19593. void packetl2c_turret_addition_confirm_result::Swap(packetl2c_turret_addition_confirm_result* other) {
  19594. if (other != this) {
  19595. std::swap(packet_id_, other->packet_id_);
  19596. std::swap(type_, other->type_);
  19597. std::swap(id_, other->id_);
  19598. std::swap(result_, other->result_);
  19599. std::swap(wingdata_, other->wingdata_);
  19600. std::swap(turretdata_, other->turretdata_);
  19601. std::swap(_has_bits_[0], other->_has_bits_[0]);
  19602. _unknown_fields_.Swap(&other->_unknown_fields_);
  19603. std::swap(_cached_size_, other->_cached_size_);
  19604. }
  19605. }
  19606. ::google::protobuf::Metadata packetl2c_turret_addition_confirm_result::GetMetadata() const {
  19607. protobuf_AssignDescriptorsOnce();
  19608. ::google::protobuf::Metadata metadata;
  19609. metadata.descriptor = packetl2c_turret_addition_confirm_result_descriptor_;
  19610. metadata.reflection = packetl2c_turret_addition_confirm_result_reflection_;
  19611. return metadata;
  19612. }
  19613. // ===================================================================
  19614. #ifndef _MSC_VER
  19615. const int packetc2l_turret_addition_reset::kPacketIdFieldNumber;
  19616. const int packetc2l_turret_addition_reset::kTypeFieldNumber;
  19617. const int packetc2l_turret_addition_reset::kIdFieldNumber;
  19618. #endif // !_MSC_VER
  19619. packetc2l_turret_addition_reset::packetc2l_turret_addition_reset()
  19620. : ::google::protobuf::Message() {
  19621. SharedCtor();
  19622. }
  19623. void packetc2l_turret_addition_reset::InitAsDefaultInstance() {
  19624. }
  19625. packetc2l_turret_addition_reset::packetc2l_turret_addition_reset(const packetc2l_turret_addition_reset& from)
  19626. : ::google::protobuf::Message() {
  19627. SharedCtor();
  19628. MergeFrom(from);
  19629. }
  19630. void packetc2l_turret_addition_reset::SharedCtor() {
  19631. _cached_size_ = 0;
  19632. packet_id_ = 10228;
  19633. type_ = 0;
  19634. id_ = 0;
  19635. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  19636. }
  19637. packetc2l_turret_addition_reset::~packetc2l_turret_addition_reset() {
  19638. SharedDtor();
  19639. }
  19640. void packetc2l_turret_addition_reset::SharedDtor() {
  19641. if (this != default_instance_) {
  19642. }
  19643. }
  19644. void packetc2l_turret_addition_reset::SetCachedSize(int size) const {
  19645. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  19646. _cached_size_ = size;
  19647. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  19648. }
  19649. const ::google::protobuf::Descriptor* packetc2l_turret_addition_reset::descriptor() {
  19650. protobuf_AssignDescriptorsOnce();
  19651. return packetc2l_turret_addition_reset_descriptor_;
  19652. }
  19653. const packetc2l_turret_addition_reset& packetc2l_turret_addition_reset::default_instance() {
  19654. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  19655. return *default_instance_;
  19656. }
  19657. packetc2l_turret_addition_reset* packetc2l_turret_addition_reset::default_instance_ = NULL;
  19658. packetc2l_turret_addition_reset* packetc2l_turret_addition_reset::New() const {
  19659. return new packetc2l_turret_addition_reset;
  19660. }
  19661. void packetc2l_turret_addition_reset::Clear() {
  19662. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  19663. packet_id_ = 10228;
  19664. type_ = 0;
  19665. id_ = 0;
  19666. }
  19667. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  19668. mutable_unknown_fields()->Clear();
  19669. }
  19670. bool packetc2l_turret_addition_reset::MergePartialFromCodedStream(
  19671. ::google::protobuf::io::CodedInputStream* input) {
  19672. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  19673. ::google::protobuf::uint32 tag;
  19674. while ((tag = input->ReadTag()) != 0) {
  19675. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  19676. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_turret_addition_reset];
  19677. case 1: {
  19678. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  19679. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  19680. int value;
  19681. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  19682. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  19683. input, &value)));
  19684. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  19685. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  19686. } else {
  19687. mutable_unknown_fields()->AddVarint(1, value);
  19688. }
  19689. } else {
  19690. goto handle_uninterpreted;
  19691. }
  19692. if (input->ExpectTag(16)) goto parse_type;
  19693. break;
  19694. }
  19695. // optional int32 type = 2;
  19696. case 2: {
  19697. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  19698. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  19699. parse_type:
  19700. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  19701. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  19702. input, &type_)));
  19703. set_has_type();
  19704. } else {
  19705. goto handle_uninterpreted;
  19706. }
  19707. if (input->ExpectTag(24)) goto parse_id;
  19708. break;
  19709. }
  19710. // optional int32 id = 3;
  19711. case 3: {
  19712. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  19713. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  19714. parse_id:
  19715. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  19716. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  19717. input, &id_)));
  19718. set_has_id();
  19719. } else {
  19720. goto handle_uninterpreted;
  19721. }
  19722. if (input->ExpectAtEnd()) return true;
  19723. break;
  19724. }
  19725. default: {
  19726. handle_uninterpreted:
  19727. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  19728. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  19729. return true;
  19730. }
  19731. DO_(::google::protobuf::internal::WireFormat::SkipField(
  19732. input, tag, mutable_unknown_fields()));
  19733. break;
  19734. }
  19735. }
  19736. }
  19737. return true;
  19738. #undef DO_
  19739. }
  19740. void packetc2l_turret_addition_reset::SerializeWithCachedSizes(
  19741. ::google::protobuf::io::CodedOutputStream* output) const {
  19742. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_turret_addition_reset];
  19743. if (has_packet_id()) {
  19744. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  19745. 1, this->packet_id(), output);
  19746. }
  19747. // optional int32 type = 2;
  19748. if (has_type()) {
  19749. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->type(), output);
  19750. }
  19751. // optional int32 id = 3;
  19752. if (has_id()) {
  19753. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->id(), output);
  19754. }
  19755. if (!unknown_fields().empty()) {
  19756. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  19757. unknown_fields(), output);
  19758. }
  19759. }
  19760. ::google::protobuf::uint8* packetc2l_turret_addition_reset::SerializeWithCachedSizesToArray(
  19761. ::google::protobuf::uint8* target) const {
  19762. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_turret_addition_reset];
  19763. if (has_packet_id()) {
  19764. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  19765. 1, this->packet_id(), target);
  19766. }
  19767. // optional int32 type = 2;
  19768. if (has_type()) {
  19769. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->type(), target);
  19770. }
  19771. // optional int32 id = 3;
  19772. if (has_id()) {
  19773. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->id(), target);
  19774. }
  19775. if (!unknown_fields().empty()) {
  19776. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  19777. unknown_fields(), target);
  19778. }
  19779. return target;
  19780. }
  19781. int packetc2l_turret_addition_reset::ByteSize() const {
  19782. int total_size = 0;
  19783. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  19784. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_turret_addition_reset];
  19785. if (has_packet_id()) {
  19786. total_size += 1 +
  19787. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  19788. }
  19789. // optional int32 type = 2;
  19790. if (has_type()) {
  19791. total_size += 1 +
  19792. ::google::protobuf::internal::WireFormatLite::Int32Size(
  19793. this->type());
  19794. }
  19795. // optional int32 id = 3;
  19796. if (has_id()) {
  19797. total_size += 1 +
  19798. ::google::protobuf::internal::WireFormatLite::Int32Size(
  19799. this->id());
  19800. }
  19801. }
  19802. if (!unknown_fields().empty()) {
  19803. total_size +=
  19804. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  19805. unknown_fields());
  19806. }
  19807. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  19808. _cached_size_ = total_size;
  19809. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  19810. return total_size;
  19811. }
  19812. void packetc2l_turret_addition_reset::MergeFrom(const ::google::protobuf::Message& from) {
  19813. GOOGLE_CHECK_NE(&from, this);
  19814. const packetc2l_turret_addition_reset* source =
  19815. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_turret_addition_reset*>(
  19816. &from);
  19817. if (source == NULL) {
  19818. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  19819. } else {
  19820. MergeFrom(*source);
  19821. }
  19822. }
  19823. void packetc2l_turret_addition_reset::MergeFrom(const packetc2l_turret_addition_reset& from) {
  19824. GOOGLE_CHECK_NE(&from, this);
  19825. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  19826. if (from.has_packet_id()) {
  19827. set_packet_id(from.packet_id());
  19828. }
  19829. if (from.has_type()) {
  19830. set_type(from.type());
  19831. }
  19832. if (from.has_id()) {
  19833. set_id(from.id());
  19834. }
  19835. }
  19836. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  19837. }
  19838. void packetc2l_turret_addition_reset::CopyFrom(const ::google::protobuf::Message& from) {
  19839. if (&from == this) return;
  19840. Clear();
  19841. MergeFrom(from);
  19842. }
  19843. void packetc2l_turret_addition_reset::CopyFrom(const packetc2l_turret_addition_reset& from) {
  19844. if (&from == this) return;
  19845. Clear();
  19846. MergeFrom(from);
  19847. }
  19848. bool packetc2l_turret_addition_reset::IsInitialized() const {
  19849. return true;
  19850. }
  19851. void packetc2l_turret_addition_reset::Swap(packetc2l_turret_addition_reset* other) {
  19852. if (other != this) {
  19853. std::swap(packet_id_, other->packet_id_);
  19854. std::swap(type_, other->type_);
  19855. std::swap(id_, other->id_);
  19856. std::swap(_has_bits_[0], other->_has_bits_[0]);
  19857. _unknown_fields_.Swap(&other->_unknown_fields_);
  19858. std::swap(_cached_size_, other->_cached_size_);
  19859. }
  19860. }
  19861. ::google::protobuf::Metadata packetc2l_turret_addition_reset::GetMetadata() const {
  19862. protobuf_AssignDescriptorsOnce();
  19863. ::google::protobuf::Metadata metadata;
  19864. metadata.descriptor = packetc2l_turret_addition_reset_descriptor_;
  19865. metadata.reflection = packetc2l_turret_addition_reset_reflection_;
  19866. return metadata;
  19867. }
  19868. // ===================================================================
  19869. #ifndef _MSC_VER
  19870. const int packetl2c_turret_addition_reset_result::kPacketIdFieldNumber;
  19871. const int packetl2c_turret_addition_reset_result::kTypeFieldNumber;
  19872. const int packetl2c_turret_addition_reset_result::kIdFieldNumber;
  19873. const int packetl2c_turret_addition_reset_result::kResultFieldNumber;
  19874. const int packetl2c_turret_addition_reset_result::kReturnCountFieldNumber;
  19875. #endif // !_MSC_VER
  19876. packetl2c_turret_addition_reset_result::packetl2c_turret_addition_reset_result()
  19877. : ::google::protobuf::Message() {
  19878. SharedCtor();
  19879. }
  19880. void packetl2c_turret_addition_reset_result::InitAsDefaultInstance() {
  19881. }
  19882. packetl2c_turret_addition_reset_result::packetl2c_turret_addition_reset_result(const packetl2c_turret_addition_reset_result& from)
  19883. : ::google::protobuf::Message() {
  19884. SharedCtor();
  19885. MergeFrom(from);
  19886. }
  19887. void packetl2c_turret_addition_reset_result::SharedCtor() {
  19888. _cached_size_ = 0;
  19889. packet_id_ = 16234;
  19890. type_ = 0;
  19891. id_ = 0;
  19892. result_ = 0;
  19893. returncount_ = 0;
  19894. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  19895. }
  19896. packetl2c_turret_addition_reset_result::~packetl2c_turret_addition_reset_result() {
  19897. SharedDtor();
  19898. }
  19899. void packetl2c_turret_addition_reset_result::SharedDtor() {
  19900. if (this != default_instance_) {
  19901. }
  19902. }
  19903. void packetl2c_turret_addition_reset_result::SetCachedSize(int size) const {
  19904. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  19905. _cached_size_ = size;
  19906. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  19907. }
  19908. const ::google::protobuf::Descriptor* packetl2c_turret_addition_reset_result::descriptor() {
  19909. protobuf_AssignDescriptorsOnce();
  19910. return packetl2c_turret_addition_reset_result_descriptor_;
  19911. }
  19912. const packetl2c_turret_addition_reset_result& packetl2c_turret_addition_reset_result::default_instance() {
  19913. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fprotocol_2eproto();
  19914. return *default_instance_;
  19915. }
  19916. packetl2c_turret_addition_reset_result* packetl2c_turret_addition_reset_result::default_instance_ = NULL;
  19917. packetl2c_turret_addition_reset_result* packetl2c_turret_addition_reset_result::New() const {
  19918. return new packetl2c_turret_addition_reset_result;
  19919. }
  19920. void packetl2c_turret_addition_reset_result::Clear() {
  19921. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  19922. packet_id_ = 16234;
  19923. type_ = 0;
  19924. id_ = 0;
  19925. result_ = 0;
  19926. returncount_ = 0;
  19927. }
  19928. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  19929. mutable_unknown_fields()->Clear();
  19930. }
  19931. bool packetl2c_turret_addition_reset_result::MergePartialFromCodedStream(
  19932. ::google::protobuf::io::CodedInputStream* input) {
  19933. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  19934. ::google::protobuf::uint32 tag;
  19935. while ((tag = input->ReadTag()) != 0) {
  19936. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  19937. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_turret_addition_reset_result];
  19938. case 1: {
  19939. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  19940. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  19941. int value;
  19942. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  19943. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  19944. input, &value)));
  19945. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  19946. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  19947. } else {
  19948. mutable_unknown_fields()->AddVarint(1, value);
  19949. }
  19950. } else {
  19951. goto handle_uninterpreted;
  19952. }
  19953. if (input->ExpectTag(16)) goto parse_type;
  19954. break;
  19955. }
  19956. // optional int32 type = 2;
  19957. case 2: {
  19958. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  19959. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  19960. parse_type:
  19961. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  19962. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  19963. input, &type_)));
  19964. set_has_type();
  19965. } else {
  19966. goto handle_uninterpreted;
  19967. }
  19968. if (input->ExpectTag(24)) goto parse_id;
  19969. break;
  19970. }
  19971. // optional int32 id = 3;
  19972. case 3: {
  19973. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  19974. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  19975. parse_id:
  19976. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  19977. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  19978. input, &id_)));
  19979. set_has_id();
  19980. } else {
  19981. goto handle_uninterpreted;
  19982. }
  19983. if (input->ExpectTag(32)) goto parse_result;
  19984. break;
  19985. }
  19986. // optional int32 result = 4;
  19987. case 4: {
  19988. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  19989. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  19990. parse_result:
  19991. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  19992. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  19993. input, &result_)));
  19994. set_has_result();
  19995. } else {
  19996. goto handle_uninterpreted;
  19997. }
  19998. if (input->ExpectTag(40)) goto parse_returnCount;
  19999. break;
  20000. }
  20001. // optional int32 returnCount = 5;
  20002. case 5: {
  20003. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  20004. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  20005. parse_returnCount:
  20006. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  20007. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  20008. input, &returncount_)));
  20009. set_has_returncount();
  20010. } else {
  20011. goto handle_uninterpreted;
  20012. }
  20013. if (input->ExpectAtEnd()) return true;
  20014. break;
  20015. }
  20016. default: {
  20017. handle_uninterpreted:
  20018. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  20019. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  20020. return true;
  20021. }
  20022. DO_(::google::protobuf::internal::WireFormat::SkipField(
  20023. input, tag, mutable_unknown_fields()));
  20024. break;
  20025. }
  20026. }
  20027. }
  20028. return true;
  20029. #undef DO_
  20030. }
  20031. void packetl2c_turret_addition_reset_result::SerializeWithCachedSizes(
  20032. ::google::protobuf::io::CodedOutputStream* output) const {
  20033. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_turret_addition_reset_result];
  20034. if (has_packet_id()) {
  20035. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  20036. 1, this->packet_id(), output);
  20037. }
  20038. // optional int32 type = 2;
  20039. if (has_type()) {
  20040. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->type(), output);
  20041. }
  20042. // optional int32 id = 3;
  20043. if (has_id()) {
  20044. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->id(), output);
  20045. }
  20046. // optional int32 result = 4;
  20047. if (has_result()) {
  20048. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->result(), output);
  20049. }
  20050. // optional int32 returnCount = 5;
  20051. if (has_returncount()) {
  20052. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->returncount(), output);
  20053. }
  20054. if (!unknown_fields().empty()) {
  20055. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  20056. unknown_fields(), output);
  20057. }
  20058. }
  20059. ::google::protobuf::uint8* packetl2c_turret_addition_reset_result::SerializeWithCachedSizesToArray(
  20060. ::google::protobuf::uint8* target) const {
  20061. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_turret_addition_reset_result];
  20062. if (has_packet_id()) {
  20063. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  20064. 1, this->packet_id(), target);
  20065. }
  20066. // optional int32 type = 2;
  20067. if (has_type()) {
  20068. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->type(), target);
  20069. }
  20070. // optional int32 id = 3;
  20071. if (has_id()) {
  20072. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->id(), target);
  20073. }
  20074. // optional int32 result = 4;
  20075. if (has_result()) {
  20076. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->result(), target);
  20077. }
  20078. // optional int32 returnCount = 5;
  20079. if (has_returncount()) {
  20080. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->returncount(), target);
  20081. }
  20082. if (!unknown_fields().empty()) {
  20083. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  20084. unknown_fields(), target);
  20085. }
  20086. return target;
  20087. }
  20088. int packetl2c_turret_addition_reset_result::ByteSize() const {
  20089. int total_size = 0;
  20090. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  20091. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_turret_addition_reset_result];
  20092. if (has_packet_id()) {
  20093. total_size += 1 +
  20094. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  20095. }
  20096. // optional int32 type = 2;
  20097. if (has_type()) {
  20098. total_size += 1 +
  20099. ::google::protobuf::internal::WireFormatLite::Int32Size(
  20100. this->type());
  20101. }
  20102. // optional int32 id = 3;
  20103. if (has_id()) {
  20104. total_size += 1 +
  20105. ::google::protobuf::internal::WireFormatLite::Int32Size(
  20106. this->id());
  20107. }
  20108. // optional int32 result = 4;
  20109. if (has_result()) {
  20110. total_size += 1 +
  20111. ::google::protobuf::internal::WireFormatLite::Int32Size(
  20112. this->result());
  20113. }
  20114. // optional int32 returnCount = 5;
  20115. if (has_returncount()) {
  20116. total_size += 1 +
  20117. ::google::protobuf::internal::WireFormatLite::Int32Size(
  20118. this->returncount());
  20119. }
  20120. }
  20121. if (!unknown_fields().empty()) {
  20122. total_size +=
  20123. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  20124. unknown_fields());
  20125. }
  20126. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  20127. _cached_size_ = total_size;
  20128. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  20129. return total_size;
  20130. }
  20131. void packetl2c_turret_addition_reset_result::MergeFrom(const ::google::protobuf::Message& from) {
  20132. GOOGLE_CHECK_NE(&from, this);
  20133. const packetl2c_turret_addition_reset_result* source =
  20134. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_turret_addition_reset_result*>(
  20135. &from);
  20136. if (source == NULL) {
  20137. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  20138. } else {
  20139. MergeFrom(*source);
  20140. }
  20141. }
  20142. void packetl2c_turret_addition_reset_result::MergeFrom(const packetl2c_turret_addition_reset_result& from) {
  20143. GOOGLE_CHECK_NE(&from, this);
  20144. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  20145. if (from.has_packet_id()) {
  20146. set_packet_id(from.packet_id());
  20147. }
  20148. if (from.has_type()) {
  20149. set_type(from.type());
  20150. }
  20151. if (from.has_id()) {
  20152. set_id(from.id());
  20153. }
  20154. if (from.has_result()) {
  20155. set_result(from.result());
  20156. }
  20157. if (from.has_returncount()) {
  20158. set_returncount(from.returncount());
  20159. }
  20160. }
  20161. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  20162. }
  20163. void packetl2c_turret_addition_reset_result::CopyFrom(const ::google::protobuf::Message& from) {
  20164. if (&from == this) return;
  20165. Clear();
  20166. MergeFrom(from);
  20167. }
  20168. void packetl2c_turret_addition_reset_result::CopyFrom(const packetl2c_turret_addition_reset_result& from) {
  20169. if (&from == this) return;
  20170. Clear();
  20171. MergeFrom(from);
  20172. }
  20173. bool packetl2c_turret_addition_reset_result::IsInitialized() const {
  20174. return true;
  20175. }
  20176. void packetl2c_turret_addition_reset_result::Swap(packetl2c_turret_addition_reset_result* other) {
  20177. if (other != this) {
  20178. std::swap(packet_id_, other->packet_id_);
  20179. std::swap(type_, other->type_);
  20180. std::swap(id_, other->id_);
  20181. std::swap(result_, other->result_);
  20182. std::swap(returncount_, other->returncount_);
  20183. std::swap(_has_bits_[0], other->_has_bits_[0]);
  20184. _unknown_fields_.Swap(&other->_unknown_fields_);
  20185. std::swap(_cached_size_, other->_cached_size_);
  20186. }
  20187. }
  20188. ::google::protobuf::Metadata packetl2c_turret_addition_reset_result::GetMetadata() const {
  20189. protobuf_AssignDescriptorsOnce();
  20190. ::google::protobuf::Metadata metadata;
  20191. metadata.descriptor = packetl2c_turret_addition_reset_result_descriptor_;
  20192. metadata.reflection = packetl2c_turret_addition_reset_result_reflection_;
  20193. return metadata;
  20194. }
  20195. // @@protoc_insertion_point(namespace_scope)
  20196. } // namespace fish_protocols
  20197. // @@protoc_insertion_point(global_scope)