fish_activity.pb.cc 259 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: fish_activity.proto
  3. #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
  4. #include "fish_activity.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_torpedo_rank_descriptor_ = NULL;
  18. const ::google::protobuf::internal::GeneratedMessageReflection*
  19. packetc2l_get_torpedo_rank_reflection_ = NULL;
  20. const ::google::protobuf::Descriptor* TorpedoRankInfo_descriptor_ = NULL;
  21. const ::google::protobuf::internal::GeneratedMessageReflection*
  22. TorpedoRankInfo_reflection_ = NULL;
  23. const ::google::protobuf::Descriptor* TorpedoRankChangeInfo_descriptor_ = NULL;
  24. const ::google::protobuf::internal::GeneratedMessageReflection*
  25. TorpedoRankChangeInfo_reflection_ = NULL;
  26. const ::google::protobuf::Descriptor* packetl2c_get_torpedo_rank_result_descriptor_ = NULL;
  27. const ::google::protobuf::internal::GeneratedMessageReflection*
  28. packetl2c_get_torpedo_rank_result_reflection_ = NULL;
  29. const ::google::protobuf::Descriptor* packetc2l_get_torpedo_rank_change_list_descriptor_ = NULL;
  30. const ::google::protobuf::internal::GeneratedMessageReflection*
  31. packetc2l_get_torpedo_rank_change_list_reflection_ = NULL;
  32. const ::google::protobuf::Descriptor* packetl2c_get_torpedo_rank_change_list_result_descriptor_ = NULL;
  33. const ::google::protobuf::internal::GeneratedMessageReflection*
  34. packetl2c_get_torpedo_rank_change_list_result_reflection_ = NULL;
  35. const ::google::protobuf::Descriptor* packetc2l_receive_torpedo_guaranteed_award_descriptor_ = NULL;
  36. const ::google::protobuf::internal::GeneratedMessageReflection*
  37. packetc2l_receive_torpedo_guaranteed_award_reflection_ = NULL;
  38. const ::google::protobuf::Descriptor* packetl2c_receive_torpedo_guaranteed_award_result_descriptor_ = NULL;
  39. const ::google::protobuf::internal::GeneratedMessageReflection*
  40. packetl2c_receive_torpedo_guaranteed_award_result_reflection_ = NULL;
  41. const ::google::protobuf::Descriptor* SummerDayLotteryInfo_descriptor_ = NULL;
  42. const ::google::protobuf::internal::GeneratedMessageReflection*
  43. SummerDayLotteryInfo_reflection_ = NULL;
  44. const ::google::protobuf::Descriptor* packetc2l_start_Sd_Lottery_descriptor_ = NULL;
  45. const ::google::protobuf::internal::GeneratedMessageReflection*
  46. packetc2l_start_Sd_Lottery_reflection_ = NULL;
  47. const ::google::protobuf::Descriptor* packetl2c_start_Sd_Lottery_result_descriptor_ = NULL;
  48. const ::google::protobuf::internal::GeneratedMessageReflection*
  49. packetl2c_start_Sd_Lottery_result_reflection_ = NULL;
  50. const ::google::protobuf::Descriptor* packetl2c_activity_item_change_descriptor_ = NULL;
  51. const ::google::protobuf::internal::GeneratedMessageReflection*
  52. packetl2c_activity_item_change_reflection_ = NULL;
  53. const ::google::protobuf::Descriptor* packetc2l_Sd_item_exchange_descriptor_ = NULL;
  54. const ::google::protobuf::internal::GeneratedMessageReflection*
  55. packetc2l_Sd_item_exchange_reflection_ = NULL;
  56. const ::google::protobuf::Descriptor* packetl2c_Sd_item_exchange_result_descriptor_ = NULL;
  57. const ::google::protobuf::internal::GeneratedMessageReflection*
  58. packetl2c_Sd_item_exchange_result_reflection_ = NULL;
  59. const ::google::protobuf::Descriptor* packetc2l_Nd_get_activity_info_descriptor_ = NULL;
  60. const ::google::protobuf::internal::GeneratedMessageReflection*
  61. packetc2l_Nd_get_activity_info_reflection_ = NULL;
  62. const ::google::protobuf::Descriptor* packetl2c_Nd_get_activity_info_result_descriptor_ = NULL;
  63. const ::google::protobuf::internal::GeneratedMessageReflection*
  64. packetl2c_Nd_get_activity_info_result_reflection_ = NULL;
  65. const ::google::protobuf::Descriptor* packetc2l_Nd_start_Lottery_descriptor_ = NULL;
  66. const ::google::protobuf::internal::GeneratedMessageReflection*
  67. packetc2l_Nd_start_Lottery_reflection_ = NULL;
  68. const ::google::protobuf::Descriptor* packetl2c_Nd_start_Lottery_result_descriptor_ = NULL;
  69. const ::google::protobuf::internal::GeneratedMessageReflection*
  70. packetl2c_Nd_start_Lottery_result_reflection_ = NULL;
  71. const ::google::protobuf::Descriptor* packetc2l_Nd_item_exchange_descriptor_ = NULL;
  72. const ::google::protobuf::internal::GeneratedMessageReflection*
  73. packetc2l_Nd_item_exchange_reflection_ = NULL;
  74. const ::google::protobuf::Descriptor* packetl2c_Nd_item_exchange_result_descriptor_ = NULL;
  75. const ::google::protobuf::internal::GeneratedMessageReflection*
  76. packetl2c_Nd_item_exchange_result_reflection_ = NULL;
  77. const ::google::protobuf::Descriptor* packetl2c_get_grand_prix_info_result_descriptor_ = NULL;
  78. const ::google::protobuf::internal::GeneratedMessageReflection*
  79. packetl2c_get_grand_prix_info_result_reflection_ = NULL;
  80. } // namespace
  81. void protobuf_AssignDesc_fish_5factivity_2eproto() {
  82. protobuf_AddDesc_fish_5factivity_2eproto();
  83. const ::google::protobuf::FileDescriptor* file =
  84. ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
  85. "fish_activity.proto");
  86. GOOGLE_CHECK(file != NULL);
  87. packetc2l_get_torpedo_rank_descriptor_ = file->message_type(0);
  88. static const int packetc2l_get_torpedo_rank_offsets_[2] = {
  89. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_torpedo_rank, packet_id_),
  90. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_torpedo_rank, ranktype_),
  91. };
  92. packetc2l_get_torpedo_rank_reflection_ =
  93. new ::google::protobuf::internal::GeneratedMessageReflection(
  94. packetc2l_get_torpedo_rank_descriptor_,
  95. packetc2l_get_torpedo_rank::default_instance_,
  96. packetc2l_get_torpedo_rank_offsets_,
  97. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_torpedo_rank, _has_bits_[0]),
  98. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_torpedo_rank, _unknown_fields_),
  99. -1,
  100. ::google::protobuf::DescriptorPool::generated_pool(),
  101. ::google::protobuf::MessageFactory::generated_factory(),
  102. sizeof(packetc2l_get_torpedo_rank));
  103. TorpedoRankInfo_descriptor_ = file->message_type(1);
  104. static const int TorpedoRankInfo_offsets_[7] = {
  105. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TorpedoRankInfo, playerid_),
  106. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TorpedoRankInfo, nickname_),
  107. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TorpedoRankInfo, gold_),
  108. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TorpedoRankInfo, headid_),
  109. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TorpedoRankInfo, frameid_),
  110. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TorpedoRankInfo, viplevel_),
  111. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TorpedoRankInfo, gender_),
  112. };
  113. TorpedoRankInfo_reflection_ =
  114. new ::google::protobuf::internal::GeneratedMessageReflection(
  115. TorpedoRankInfo_descriptor_,
  116. TorpedoRankInfo::default_instance_,
  117. TorpedoRankInfo_offsets_,
  118. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TorpedoRankInfo, _has_bits_[0]),
  119. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TorpedoRankInfo, _unknown_fields_),
  120. -1,
  121. ::google::protobuf::DescriptorPool::generated_pool(),
  122. ::google::protobuf::MessageFactory::generated_factory(),
  123. sizeof(TorpedoRankInfo));
  124. TorpedoRankChangeInfo_descriptor_ = file->message_type(2);
  125. static const int TorpedoRankChangeInfo_offsets_[5] = {
  126. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TorpedoRankChangeInfo, playerid_),
  127. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TorpedoRankChangeInfo, nickname_),
  128. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TorpedoRankChangeInfo, torpedoid_),
  129. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TorpedoRankChangeInfo, changegold_),
  130. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TorpedoRankChangeInfo, changepoint_),
  131. };
  132. TorpedoRankChangeInfo_reflection_ =
  133. new ::google::protobuf::internal::GeneratedMessageReflection(
  134. TorpedoRankChangeInfo_descriptor_,
  135. TorpedoRankChangeInfo::default_instance_,
  136. TorpedoRankChangeInfo_offsets_,
  137. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TorpedoRankChangeInfo, _has_bits_[0]),
  138. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TorpedoRankChangeInfo, _unknown_fields_),
  139. -1,
  140. ::google::protobuf::DescriptorPool::generated_pool(),
  141. ::google::protobuf::MessageFactory::generated_factory(),
  142. sizeof(TorpedoRankChangeInfo));
  143. packetl2c_get_torpedo_rank_result_descriptor_ = file->message_type(3);
  144. static const int packetl2c_get_torpedo_rank_result_offsets_[6] = {
  145. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_torpedo_rank_result, packet_id_),
  146. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_torpedo_rank_result, ranklist_),
  147. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_torpedo_rank_result, ranktype_),
  148. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_torpedo_rank_result, selfrankgold_),
  149. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_torpedo_rank_result, selfmaxgold_),
  150. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_torpedo_rank_result, guaranteedstat_),
  151. };
  152. packetl2c_get_torpedo_rank_result_reflection_ =
  153. new ::google::protobuf::internal::GeneratedMessageReflection(
  154. packetl2c_get_torpedo_rank_result_descriptor_,
  155. packetl2c_get_torpedo_rank_result::default_instance_,
  156. packetl2c_get_torpedo_rank_result_offsets_,
  157. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_torpedo_rank_result, _has_bits_[0]),
  158. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_torpedo_rank_result, _unknown_fields_),
  159. -1,
  160. ::google::protobuf::DescriptorPool::generated_pool(),
  161. ::google::protobuf::MessageFactory::generated_factory(),
  162. sizeof(packetl2c_get_torpedo_rank_result));
  163. packetc2l_get_torpedo_rank_change_list_descriptor_ = file->message_type(4);
  164. static const int packetc2l_get_torpedo_rank_change_list_offsets_[2] = {
  165. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_torpedo_rank_change_list, packet_id_),
  166. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_torpedo_rank_change_list, ranktype_),
  167. };
  168. packetc2l_get_torpedo_rank_change_list_reflection_ =
  169. new ::google::protobuf::internal::GeneratedMessageReflection(
  170. packetc2l_get_torpedo_rank_change_list_descriptor_,
  171. packetc2l_get_torpedo_rank_change_list::default_instance_,
  172. packetc2l_get_torpedo_rank_change_list_offsets_,
  173. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_torpedo_rank_change_list, _has_bits_[0]),
  174. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_torpedo_rank_change_list, _unknown_fields_),
  175. -1,
  176. ::google::protobuf::DescriptorPool::generated_pool(),
  177. ::google::protobuf::MessageFactory::generated_factory(),
  178. sizeof(packetc2l_get_torpedo_rank_change_list));
  179. packetl2c_get_torpedo_rank_change_list_result_descriptor_ = file->message_type(5);
  180. static const int packetl2c_get_torpedo_rank_change_list_result_offsets_[3] = {
  181. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_torpedo_rank_change_list_result, packet_id_),
  182. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_torpedo_rank_change_list_result, ranktype_),
  183. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_torpedo_rank_change_list_result, changelist_),
  184. };
  185. packetl2c_get_torpedo_rank_change_list_result_reflection_ =
  186. new ::google::protobuf::internal::GeneratedMessageReflection(
  187. packetl2c_get_torpedo_rank_change_list_result_descriptor_,
  188. packetl2c_get_torpedo_rank_change_list_result::default_instance_,
  189. packetl2c_get_torpedo_rank_change_list_result_offsets_,
  190. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_torpedo_rank_change_list_result, _has_bits_[0]),
  191. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_torpedo_rank_change_list_result, _unknown_fields_),
  192. -1,
  193. ::google::protobuf::DescriptorPool::generated_pool(),
  194. ::google::protobuf::MessageFactory::generated_factory(),
  195. sizeof(packetl2c_get_torpedo_rank_change_list_result));
  196. packetc2l_receive_torpedo_guaranteed_award_descriptor_ = file->message_type(6);
  197. static const int packetc2l_receive_torpedo_guaranteed_award_offsets_[2] = {
  198. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_receive_torpedo_guaranteed_award, packet_id_),
  199. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_receive_torpedo_guaranteed_award, ranktype_),
  200. };
  201. packetc2l_receive_torpedo_guaranteed_award_reflection_ =
  202. new ::google::protobuf::internal::GeneratedMessageReflection(
  203. packetc2l_receive_torpedo_guaranteed_award_descriptor_,
  204. packetc2l_receive_torpedo_guaranteed_award::default_instance_,
  205. packetc2l_receive_torpedo_guaranteed_award_offsets_,
  206. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_receive_torpedo_guaranteed_award, _has_bits_[0]),
  207. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_receive_torpedo_guaranteed_award, _unknown_fields_),
  208. -1,
  209. ::google::protobuf::DescriptorPool::generated_pool(),
  210. ::google::protobuf::MessageFactory::generated_factory(),
  211. sizeof(packetc2l_receive_torpedo_guaranteed_award));
  212. packetl2c_receive_torpedo_guaranteed_award_result_descriptor_ = file->message_type(7);
  213. static const int packetl2c_receive_torpedo_guaranteed_award_result_offsets_[3] = {
  214. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_receive_torpedo_guaranteed_award_result, packet_id_),
  215. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_receive_torpedo_guaranteed_award_result, result_),
  216. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_receive_torpedo_guaranteed_award_result, ranktype_),
  217. };
  218. packetl2c_receive_torpedo_guaranteed_award_result_reflection_ =
  219. new ::google::protobuf::internal::GeneratedMessageReflection(
  220. packetl2c_receive_torpedo_guaranteed_award_result_descriptor_,
  221. packetl2c_receive_torpedo_guaranteed_award_result::default_instance_,
  222. packetl2c_receive_torpedo_guaranteed_award_result_offsets_,
  223. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_receive_torpedo_guaranteed_award_result, _has_bits_[0]),
  224. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_receive_torpedo_guaranteed_award_result, _unknown_fields_),
  225. -1,
  226. ::google::protobuf::DescriptorPool::generated_pool(),
  227. ::google::protobuf::MessageFactory::generated_factory(),
  228. sizeof(packetl2c_receive_torpedo_guaranteed_award_result));
  229. SummerDayLotteryInfo_descriptor_ = file->message_type(8);
  230. static const int SummerDayLotteryInfo_offsets_[2] = {
  231. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SummerDayLotteryInfo, itemid_),
  232. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SummerDayLotteryInfo, itemcount_),
  233. };
  234. SummerDayLotteryInfo_reflection_ =
  235. new ::google::protobuf::internal::GeneratedMessageReflection(
  236. SummerDayLotteryInfo_descriptor_,
  237. SummerDayLotteryInfo::default_instance_,
  238. SummerDayLotteryInfo_offsets_,
  239. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SummerDayLotteryInfo, _has_bits_[0]),
  240. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SummerDayLotteryInfo, _unknown_fields_),
  241. -1,
  242. ::google::protobuf::DescriptorPool::generated_pool(),
  243. ::google::protobuf::MessageFactory::generated_factory(),
  244. sizeof(SummerDayLotteryInfo));
  245. packetc2l_start_Sd_Lottery_descriptor_ = file->message_type(9);
  246. static const int packetc2l_start_Sd_Lottery_offsets_[3] = {
  247. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_start_Sd_Lottery, packet_id_),
  248. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_start_Sd_Lottery, type_),
  249. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_start_Sd_Lottery, time_),
  250. };
  251. packetc2l_start_Sd_Lottery_reflection_ =
  252. new ::google::protobuf::internal::GeneratedMessageReflection(
  253. packetc2l_start_Sd_Lottery_descriptor_,
  254. packetc2l_start_Sd_Lottery::default_instance_,
  255. packetc2l_start_Sd_Lottery_offsets_,
  256. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_start_Sd_Lottery, _has_bits_[0]),
  257. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_start_Sd_Lottery, _unknown_fields_),
  258. -1,
  259. ::google::protobuf::DescriptorPool::generated_pool(),
  260. ::google::protobuf::MessageFactory::generated_factory(),
  261. sizeof(packetc2l_start_Sd_Lottery));
  262. packetl2c_start_Sd_Lottery_result_descriptor_ = file->message_type(10);
  263. static const int packetl2c_start_Sd_Lottery_result_offsets_[5] = {
  264. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_start_Sd_Lottery_result, packet_id_),
  265. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_start_Sd_Lottery_result, result_),
  266. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_start_Sd_Lottery_result, type_),
  267. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_start_Sd_Lottery_result, time_),
  268. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_start_Sd_Lottery_result, rewardid_),
  269. };
  270. packetl2c_start_Sd_Lottery_result_reflection_ =
  271. new ::google::protobuf::internal::GeneratedMessageReflection(
  272. packetl2c_start_Sd_Lottery_result_descriptor_,
  273. packetl2c_start_Sd_Lottery_result::default_instance_,
  274. packetl2c_start_Sd_Lottery_result_offsets_,
  275. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_start_Sd_Lottery_result, _has_bits_[0]),
  276. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_start_Sd_Lottery_result, _unknown_fields_),
  277. -1,
  278. ::google::protobuf::DescriptorPool::generated_pool(),
  279. ::google::protobuf::MessageFactory::generated_factory(),
  280. sizeof(packetl2c_start_Sd_Lottery_result));
  281. packetl2c_activity_item_change_descriptor_ = file->message_type(11);
  282. static const int packetl2c_activity_item_change_offsets_[3] = {
  283. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_activity_item_change, packet_id_),
  284. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_activity_item_change, itemid_),
  285. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_activity_item_change, itemcount_),
  286. };
  287. packetl2c_activity_item_change_reflection_ =
  288. new ::google::protobuf::internal::GeneratedMessageReflection(
  289. packetl2c_activity_item_change_descriptor_,
  290. packetl2c_activity_item_change::default_instance_,
  291. packetl2c_activity_item_change_offsets_,
  292. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_activity_item_change, _has_bits_[0]),
  293. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_activity_item_change, _unknown_fields_),
  294. -1,
  295. ::google::protobuf::DescriptorPool::generated_pool(),
  296. ::google::protobuf::MessageFactory::generated_factory(),
  297. sizeof(packetl2c_activity_item_change));
  298. packetc2l_Sd_item_exchange_descriptor_ = file->message_type(12);
  299. static const int packetc2l_Sd_item_exchange_offsets_[2] = {
  300. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_Sd_item_exchange, packet_id_),
  301. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_Sd_item_exchange, exchangeid_),
  302. };
  303. packetc2l_Sd_item_exchange_reflection_ =
  304. new ::google::protobuf::internal::GeneratedMessageReflection(
  305. packetc2l_Sd_item_exchange_descriptor_,
  306. packetc2l_Sd_item_exchange::default_instance_,
  307. packetc2l_Sd_item_exchange_offsets_,
  308. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_Sd_item_exchange, _has_bits_[0]),
  309. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_Sd_item_exchange, _unknown_fields_),
  310. -1,
  311. ::google::protobuf::DescriptorPool::generated_pool(),
  312. ::google::protobuf::MessageFactory::generated_factory(),
  313. sizeof(packetc2l_Sd_item_exchange));
  314. packetl2c_Sd_item_exchange_result_descriptor_ = file->message_type(13);
  315. static const int packetl2c_Sd_item_exchange_result_offsets_[3] = {
  316. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_Sd_item_exchange_result, packet_id_),
  317. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_Sd_item_exchange_result, result_),
  318. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_Sd_item_exchange_result, exchangeid_),
  319. };
  320. packetl2c_Sd_item_exchange_result_reflection_ =
  321. new ::google::protobuf::internal::GeneratedMessageReflection(
  322. packetl2c_Sd_item_exchange_result_descriptor_,
  323. packetl2c_Sd_item_exchange_result::default_instance_,
  324. packetl2c_Sd_item_exchange_result_offsets_,
  325. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_Sd_item_exchange_result, _has_bits_[0]),
  326. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_Sd_item_exchange_result, _unknown_fields_),
  327. -1,
  328. ::google::protobuf::DescriptorPool::generated_pool(),
  329. ::google::protobuf::MessageFactory::generated_factory(),
  330. sizeof(packetl2c_Sd_item_exchange_result));
  331. packetc2l_Nd_get_activity_info_descriptor_ = file->message_type(14);
  332. static const int packetc2l_Nd_get_activity_info_offsets_[1] = {
  333. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_Nd_get_activity_info, packet_id_),
  334. };
  335. packetc2l_Nd_get_activity_info_reflection_ =
  336. new ::google::protobuf::internal::GeneratedMessageReflection(
  337. packetc2l_Nd_get_activity_info_descriptor_,
  338. packetc2l_Nd_get_activity_info::default_instance_,
  339. packetc2l_Nd_get_activity_info_offsets_,
  340. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_Nd_get_activity_info, _has_bits_[0]),
  341. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_Nd_get_activity_info, _unknown_fields_),
  342. -1,
  343. ::google::protobuf::DescriptorPool::generated_pool(),
  344. ::google::protobuf::MessageFactory::generated_factory(),
  345. sizeof(packetc2l_Nd_get_activity_info));
  346. packetl2c_Nd_get_activity_info_result_descriptor_ = file->message_type(15);
  347. static const int packetl2c_Nd_get_activity_info_result_offsets_[5] = {
  348. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_Nd_get_activity_info_result, packet_id_),
  349. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_Nd_get_activity_info_result, lotterycount_),
  350. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_Nd_get_activity_info_result, exchangecountlist_),
  351. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_Nd_get_activity_info_result, outlay_),
  352. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_Nd_get_activity_info_result, recharge_),
  353. };
  354. packetl2c_Nd_get_activity_info_result_reflection_ =
  355. new ::google::protobuf::internal::GeneratedMessageReflection(
  356. packetl2c_Nd_get_activity_info_result_descriptor_,
  357. packetl2c_Nd_get_activity_info_result::default_instance_,
  358. packetl2c_Nd_get_activity_info_result_offsets_,
  359. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_Nd_get_activity_info_result, _has_bits_[0]),
  360. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_Nd_get_activity_info_result, _unknown_fields_),
  361. -1,
  362. ::google::protobuf::DescriptorPool::generated_pool(),
  363. ::google::protobuf::MessageFactory::generated_factory(),
  364. sizeof(packetl2c_Nd_get_activity_info_result));
  365. packetc2l_Nd_start_Lottery_descriptor_ = file->message_type(16);
  366. static const int packetc2l_Nd_start_Lottery_offsets_[2] = {
  367. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_Nd_start_Lottery, packet_id_),
  368. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_Nd_start_Lottery, time_),
  369. };
  370. packetc2l_Nd_start_Lottery_reflection_ =
  371. new ::google::protobuf::internal::GeneratedMessageReflection(
  372. packetc2l_Nd_start_Lottery_descriptor_,
  373. packetc2l_Nd_start_Lottery::default_instance_,
  374. packetc2l_Nd_start_Lottery_offsets_,
  375. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_Nd_start_Lottery, _has_bits_[0]),
  376. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_Nd_start_Lottery, _unknown_fields_),
  377. -1,
  378. ::google::protobuf::DescriptorPool::generated_pool(),
  379. ::google::protobuf::MessageFactory::generated_factory(),
  380. sizeof(packetc2l_Nd_start_Lottery));
  381. packetl2c_Nd_start_Lottery_result_descriptor_ = file->message_type(17);
  382. static const int packetl2c_Nd_start_Lottery_result_offsets_[4] = {
  383. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_Nd_start_Lottery_result, packet_id_),
  384. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_Nd_start_Lottery_result, result_),
  385. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_Nd_start_Lottery_result, time_),
  386. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_Nd_start_Lottery_result, rewardid_),
  387. };
  388. packetl2c_Nd_start_Lottery_result_reflection_ =
  389. new ::google::protobuf::internal::GeneratedMessageReflection(
  390. packetl2c_Nd_start_Lottery_result_descriptor_,
  391. packetl2c_Nd_start_Lottery_result::default_instance_,
  392. packetl2c_Nd_start_Lottery_result_offsets_,
  393. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_Nd_start_Lottery_result, _has_bits_[0]),
  394. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_Nd_start_Lottery_result, _unknown_fields_),
  395. -1,
  396. ::google::protobuf::DescriptorPool::generated_pool(),
  397. ::google::protobuf::MessageFactory::generated_factory(),
  398. sizeof(packetl2c_Nd_start_Lottery_result));
  399. packetc2l_Nd_item_exchange_descriptor_ = file->message_type(18);
  400. static const int packetc2l_Nd_item_exchange_offsets_[3] = {
  401. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_Nd_item_exchange, packet_id_),
  402. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_Nd_item_exchange, type_),
  403. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_Nd_item_exchange, exchangeid_),
  404. };
  405. packetc2l_Nd_item_exchange_reflection_ =
  406. new ::google::protobuf::internal::GeneratedMessageReflection(
  407. packetc2l_Nd_item_exchange_descriptor_,
  408. packetc2l_Nd_item_exchange::default_instance_,
  409. packetc2l_Nd_item_exchange_offsets_,
  410. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_Nd_item_exchange, _has_bits_[0]),
  411. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_Nd_item_exchange, _unknown_fields_),
  412. -1,
  413. ::google::protobuf::DescriptorPool::generated_pool(),
  414. ::google::protobuf::MessageFactory::generated_factory(),
  415. sizeof(packetc2l_Nd_item_exchange));
  416. packetl2c_Nd_item_exchange_result_descriptor_ = file->message_type(19);
  417. static const int packetl2c_Nd_item_exchange_result_offsets_[3] = {
  418. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_Nd_item_exchange_result, packet_id_),
  419. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_Nd_item_exchange_result, result_),
  420. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_Nd_item_exchange_result, exchangeids_),
  421. };
  422. packetl2c_Nd_item_exchange_result_reflection_ =
  423. new ::google::protobuf::internal::GeneratedMessageReflection(
  424. packetl2c_Nd_item_exchange_result_descriptor_,
  425. packetl2c_Nd_item_exchange_result::default_instance_,
  426. packetl2c_Nd_item_exchange_result_offsets_,
  427. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_Nd_item_exchange_result, _has_bits_[0]),
  428. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_Nd_item_exchange_result, _unknown_fields_),
  429. -1,
  430. ::google::protobuf::DescriptorPool::generated_pool(),
  431. ::google::protobuf::MessageFactory::generated_factory(),
  432. sizeof(packetl2c_Nd_item_exchange_result));
  433. packetl2c_get_grand_prix_info_result_descriptor_ = file->message_type(20);
  434. static const int packetl2c_get_grand_prix_info_result_offsets_[5] = {
  435. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_grand_prix_info_result, packet_id_),
  436. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_grand_prix_info_result, activitystate_),
  437. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_grand_prix_info_result, result_),
  438. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_grand_prix_info_result, starttime_),
  439. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_grand_prix_info_result, endtime_),
  440. };
  441. packetl2c_get_grand_prix_info_result_reflection_ =
  442. new ::google::protobuf::internal::GeneratedMessageReflection(
  443. packetl2c_get_grand_prix_info_result_descriptor_,
  444. packetl2c_get_grand_prix_info_result::default_instance_,
  445. packetl2c_get_grand_prix_info_result_offsets_,
  446. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_grand_prix_info_result, _has_bits_[0]),
  447. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_grand_prix_info_result, _unknown_fields_),
  448. -1,
  449. ::google::protobuf::DescriptorPool::generated_pool(),
  450. ::google::protobuf::MessageFactory::generated_factory(),
  451. sizeof(packetl2c_get_grand_prix_info_result));
  452. }
  453. namespace {
  454. GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
  455. inline void protobuf_AssignDescriptorsOnce() {
  456. ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
  457. &protobuf_AssignDesc_fish_5factivity_2eproto);
  458. }
  459. void protobuf_RegisterTypes(const ::std::string&) {
  460. protobuf_AssignDescriptorsOnce();
  461. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  462. packetc2l_get_torpedo_rank_descriptor_, &packetc2l_get_torpedo_rank::default_instance());
  463. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  464. TorpedoRankInfo_descriptor_, &TorpedoRankInfo::default_instance());
  465. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  466. TorpedoRankChangeInfo_descriptor_, &TorpedoRankChangeInfo::default_instance());
  467. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  468. packetl2c_get_torpedo_rank_result_descriptor_, &packetl2c_get_torpedo_rank_result::default_instance());
  469. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  470. packetc2l_get_torpedo_rank_change_list_descriptor_, &packetc2l_get_torpedo_rank_change_list::default_instance());
  471. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  472. packetl2c_get_torpedo_rank_change_list_result_descriptor_, &packetl2c_get_torpedo_rank_change_list_result::default_instance());
  473. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  474. packetc2l_receive_torpedo_guaranteed_award_descriptor_, &packetc2l_receive_torpedo_guaranteed_award::default_instance());
  475. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  476. packetl2c_receive_torpedo_guaranteed_award_result_descriptor_, &packetl2c_receive_torpedo_guaranteed_award_result::default_instance());
  477. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  478. SummerDayLotteryInfo_descriptor_, &SummerDayLotteryInfo::default_instance());
  479. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  480. packetc2l_start_Sd_Lottery_descriptor_, &packetc2l_start_Sd_Lottery::default_instance());
  481. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  482. packetl2c_start_Sd_Lottery_result_descriptor_, &packetl2c_start_Sd_Lottery_result::default_instance());
  483. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  484. packetl2c_activity_item_change_descriptor_, &packetl2c_activity_item_change::default_instance());
  485. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  486. packetc2l_Sd_item_exchange_descriptor_, &packetc2l_Sd_item_exchange::default_instance());
  487. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  488. packetl2c_Sd_item_exchange_result_descriptor_, &packetl2c_Sd_item_exchange_result::default_instance());
  489. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  490. packetc2l_Nd_get_activity_info_descriptor_, &packetc2l_Nd_get_activity_info::default_instance());
  491. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  492. packetl2c_Nd_get_activity_info_result_descriptor_, &packetl2c_Nd_get_activity_info_result::default_instance());
  493. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  494. packetc2l_Nd_start_Lottery_descriptor_, &packetc2l_Nd_start_Lottery::default_instance());
  495. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  496. packetl2c_Nd_start_Lottery_result_descriptor_, &packetl2c_Nd_start_Lottery_result::default_instance());
  497. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  498. packetc2l_Nd_item_exchange_descriptor_, &packetc2l_Nd_item_exchange::default_instance());
  499. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  500. packetl2c_Nd_item_exchange_result_descriptor_, &packetl2c_Nd_item_exchange_result::default_instance());
  501. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  502. packetl2c_get_grand_prix_info_result_descriptor_, &packetl2c_get_grand_prix_info_result::default_instance());
  503. }
  504. } // namespace
  505. void protobuf_ShutdownFile_fish_5factivity_2eproto() {
  506. delete packetc2l_get_torpedo_rank::default_instance_;
  507. delete packetc2l_get_torpedo_rank_reflection_;
  508. delete TorpedoRankInfo::default_instance_;
  509. delete TorpedoRankInfo_reflection_;
  510. delete TorpedoRankChangeInfo::default_instance_;
  511. delete TorpedoRankChangeInfo_reflection_;
  512. delete packetl2c_get_torpedo_rank_result::default_instance_;
  513. delete packetl2c_get_torpedo_rank_result_reflection_;
  514. delete packetc2l_get_torpedo_rank_change_list::default_instance_;
  515. delete packetc2l_get_torpedo_rank_change_list_reflection_;
  516. delete packetl2c_get_torpedo_rank_change_list_result::default_instance_;
  517. delete packetl2c_get_torpedo_rank_change_list_result_reflection_;
  518. delete packetc2l_receive_torpedo_guaranteed_award::default_instance_;
  519. delete packetc2l_receive_torpedo_guaranteed_award_reflection_;
  520. delete packetl2c_receive_torpedo_guaranteed_award_result::default_instance_;
  521. delete packetl2c_receive_torpedo_guaranteed_award_result_reflection_;
  522. delete SummerDayLotteryInfo::default_instance_;
  523. delete SummerDayLotteryInfo_reflection_;
  524. delete packetc2l_start_Sd_Lottery::default_instance_;
  525. delete packetc2l_start_Sd_Lottery_reflection_;
  526. delete packetl2c_start_Sd_Lottery_result::default_instance_;
  527. delete packetl2c_start_Sd_Lottery_result_reflection_;
  528. delete packetl2c_activity_item_change::default_instance_;
  529. delete packetl2c_activity_item_change_reflection_;
  530. delete packetc2l_Sd_item_exchange::default_instance_;
  531. delete packetc2l_Sd_item_exchange_reflection_;
  532. delete packetl2c_Sd_item_exchange_result::default_instance_;
  533. delete packetl2c_Sd_item_exchange_result_reflection_;
  534. delete packetc2l_Nd_get_activity_info::default_instance_;
  535. delete packetc2l_Nd_get_activity_info_reflection_;
  536. delete packetl2c_Nd_get_activity_info_result::default_instance_;
  537. delete packetl2c_Nd_get_activity_info_result_reflection_;
  538. delete packetc2l_Nd_start_Lottery::default_instance_;
  539. delete packetc2l_Nd_start_Lottery_reflection_;
  540. delete packetl2c_Nd_start_Lottery_result::default_instance_;
  541. delete packetl2c_Nd_start_Lottery_result_reflection_;
  542. delete packetc2l_Nd_item_exchange::default_instance_;
  543. delete packetc2l_Nd_item_exchange_reflection_;
  544. delete packetl2c_Nd_item_exchange_result::default_instance_;
  545. delete packetl2c_Nd_item_exchange_result_reflection_;
  546. delete packetl2c_get_grand_prix_info_result::default_instance_;
  547. delete packetl2c_get_grand_prix_info_result_reflection_;
  548. }
  549. void protobuf_AddDesc_fish_5factivity_2eproto() {
  550. static bool already_here = false;
  551. if (already_here) return;
  552. already_here = true;
  553. GOOGLE_PROTOBUF_VERIFY_VERSION;
  554. ::fish_protocols::protobuf_AddDesc_fish_5fdef_2eproto();
  555. ::fish_protocols::protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
  556. ::msg_type_def::protobuf_AddDesc_msg_5ftype_5fdef_2eproto();
  557. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  558. "\n\023fish_activity.proto\022\016fish_protocols\032\016f"
  559. "ish_def.proto\032\023fish_type_def.proto\032\022msg_"
  560. "type_def.proto\"\200\001\n\032packetc2l_get_torpedo"
  561. "_rank\022P\n\tpacket_id\030\001 \001(\0162!.fish_protocol"
  562. "s.e_server_msg_type:\032e_mst_c2l_get_torpe"
  563. "do_rank\022\020\n\010rankType\030\002 \001(\005\"\206\001\n\017TorpedoRan"
  564. "kInfo\022\020\n\010playerId\030\001 \001(\005\022\020\n\010nickName\030\002 \001("
  565. "\t\022\014\n\004gold\030\003 \001(\005\022\016\n\006headid\030\004 \001(\005\022\017\n\007frame"
  566. "id\030\005 \001(\005\022\020\n\010vipLevel\030\006 \001(\005\022\016\n\006gender\030\007 \001"
  567. "(\005\"w\n\025TorpedoRankChangeInfo\022\020\n\010playerId\030"
  568. "\001 \001(\005\022\020\n\010nickName\030\002 \001(\t\022\021\n\ttorpedoId\030\003 \001"
  569. "(\005\022\022\n\nchangeGold\030\004 \001(\003\022\023\n\013changePoint\030\005 "
  570. "\001(\003\"\204\002\n!packetl2c_get_torpedo_rank_resul"
  571. "t\022W\n\tpacket_id\030\001 \001(\0162!.fish_protocols.e_"
  572. "server_msg_type:!e_mst_l2c_get_torpedo_r"
  573. "ank_result\0221\n\010rankList\030\002 \003(\0132\037.fish_prot"
  574. "ocols.TorpedoRankInfo\022\020\n\010rankType\030\003 \001(\005\022"
  575. "\024\n\014selfRankGold\030\004 \001(\003\022\023\n\013selfMaxGold\030\005 \001"
  576. "(\005\022\026\n\016guaranteedStat\030\006 \001(\005\"\230\001\n&packetc2l"
  577. "_get_torpedo_rank_change_list\022\\\n\tpacket_"
  578. "id\030\001 \001(\0162!.fish_protocols.e_server_msg_t"
  579. "ype:&e_mst_c2l_get_torpedo_rank_change_l"
  580. "ist\022\020\n\010rankType\030\002 \001(\005\"\341\001\n-packetl2c_get_"
  581. "torpedo_rank_change_list_result\022c\n\tpacke"
  582. "t_id\030\001 \001(\0162!.fish_protocols.e_server_msg"
  583. "_type:-e_mst_l2c_get_torpedo_rank_change"
  584. "_list_result\022\020\n\010rankType\030\002 \001(\005\0229\n\nchange"
  585. "List\030\003 \003(\0132%.fish_protocols.TorpedoRankC"
  586. "hangeInfo\"\240\001\n*packetc2l_receive_torpedo_"
  587. "guaranteed_award\022`\n\tpacket_id\030\001 \001(\0162!.fi"
  588. "sh_protocols.e_server_msg_type:*e_mst_c2"
  589. "l_receive_torpedo_guaranteed_award\022\020\n\010ra"
  590. "nkType\030\002 \001(\005\"\276\001\n1packetl2c_receive_torpe"
  591. "do_guaranteed_award_result\022g\n\tpacket_id\030"
  592. "\001 \001(\0162!.fish_protocols.e_server_msg_type"
  593. ":1e_mst_l2c_receive_torpedo_guaranteed_a"
  594. "ward_result\022\016\n\006result\030\002 \001(\005\022\020\n\010rankType\030"
  595. "\003 \001(\005\"9\n\024SummerDayLotteryInfo\022\016\n\006itemId\030"
  596. "\001 \001(\005\022\021\n\titemCount\030\002 \001(\005\"\212\001\n\032packetc2l_s"
  597. "tart_Sd_Lottery\022P\n\tpacket_id\030\001 \001(\0162!.fis"
  598. "h_protocols.e_server_msg_type:\032e_mst_c2l"
  599. "_start_Sd_Lottery\022\014\n\004type\030\002 \001(\005\022\014\n\004time\030"
  600. "\003 \001(\005\"\272\001\n!packetl2c_start_Sd_Lottery_res"
  601. "ult\022W\n\tpacket_id\030\001 \001(\0162!.fish_protocols."
  602. "e_server_msg_type:!e_mst_l2c_start_Sd_Lo"
  603. "ttery_result\022\016\n\006result\030\002 \001(\005\022\014\n\004type\030\003 \001"
  604. "(\005\022\014\n\004time\030\004 \001(\005\022\020\n\010rewardId\030\005 \003(\005\"\231\001\n\036p"
  605. "acketl2c_activity_item_change\022T\n\tpacket_"
  606. "id\030\001 \001(\0162!.fish_protocols.e_server_msg_t"
  607. "ype:\036e_mst_l2c_activity_item_change\022\016\n\006i"
  608. "temid\030\002 \001(\005\022\021\n\titemcount\030\003 \001(\005\"\206\001\n\032packe"
  609. "tc2l_Sd_item_exchange\022T\n\tpacket_id\030\001 \001(\016"
  610. "2!.fish_protocols.e_server_msg_type:\036e_m"
  611. "st_c2l_summer_item_exchange\022\022\n\nexchangeI"
  612. "d\030\002 \001(\005\"\244\001\n!packetl2c_Sd_item_exchange_r"
  613. "esult\022[\n\tpacket_id\030\001 \001(\0162!.fish_protocol"
  614. "s.e_server_msg_type:%e_mst_l2c_summer_it"
  615. "em_exchange_result\022\016\n\006result\030\002 \001(\005\022\022\n\nex"
  616. "changeId\030\003 \001(\005\"v\n\036packetc2l_Nd_get_activ"
  617. "ity_info\022T\n\tpacket_id\030\001 \001(\0162!.fish_proto"
  618. "cols.e_server_msg_type:\036e_mst_c2l_Nd_get"
  619. "_activity_info\"\327\001\n%packetl2c_Nd_get_acti"
  620. "vity_info_result\022[\n\tpacket_id\030\001 \001(\0162!.fi"
  621. "sh_protocols.e_server_msg_type:%e_mst_l2"
  622. "c_Nd_get_activity_info_result\022\024\n\014lottery"
  623. "Count\030\002 \001(\005\022\031\n\021exchangeCountList\030\003 \003(\005\022\016"
  624. "\n\006outlay\030\004 \001(\005\022\020\n\010recharge\030\005 \001(\005\"|\n\032pack"
  625. "etc2l_Nd_start_Lottery\022P\n\tpacket_id\030\001 \001("
  626. "\0162!.fish_protocols.e_server_msg_type:\032e_"
  627. "mst_c2l_Nd_start_Lottery\022\014\n\004time\030\002 \001(\005\"\254"
  628. "\001\n!packetl2c_Nd_start_Lottery_result\022W\n\t"
  629. "packet_id\030\001 \001(\0162!.fish_protocols.e_serve"
  630. "r_msg_type:!e_mst_l2c_Nd_start_Lottery_r"
  631. "esult\022\016\n\006result\030\002 \001(\005\022\014\n\004time\030\003 \001(\005\022\020\n\010r"
  632. "ewardId\030\004 \003(\005\"\220\001\n\032packetc2l_Nd_item_exch"
  633. "ange\022P\n\tpacket_id\030\001 \001(\0162!.fish_protocols"
  634. ".e_server_msg_type:\032e_mst_c2l_Nd_item_ex"
  635. "change\022\014\n\004type\030\002 \001(\005\022\022\n\nexchangeId\030\003 \001(\005"
  636. "\"\241\001\n!packetl2c_Nd_item_exchange_result\022W"
  637. "\n\tpacket_id\030\001 \001(\0162!.fish_protocols.e_ser"
  638. "ver_msg_type:!e_mst_l2c_Nd_item_exchange"
  639. "_result\022\016\n\006result\030\002 \001(\005\022\023\n\013exchangeIds\030\003"
  640. " \003(\005\"\315\001\n$packetl2c_get_grand_prix_info_r"
  641. "esult\022Z\n\tpacket_id\030\001 \001(\0162!.fish_protocol"
  642. "s.e_server_msg_type:$e_mst_l2c_get_grand"
  643. "_prix_info_result\022\025\n\ractivityState\030\002 \001(\005"
  644. "\022\016\n\006result\030\003 \001(\005\022\021\n\tstartTime\030\004 \001(\005\022\017\n\007e"
  645. "ndTime\030\005 \001(\005", 3492);
  646. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  647. "fish_activity.proto", &protobuf_RegisterTypes);
  648. packetc2l_get_torpedo_rank::default_instance_ = new packetc2l_get_torpedo_rank();
  649. TorpedoRankInfo::default_instance_ = new TorpedoRankInfo();
  650. TorpedoRankChangeInfo::default_instance_ = new TorpedoRankChangeInfo();
  651. packetl2c_get_torpedo_rank_result::default_instance_ = new packetl2c_get_torpedo_rank_result();
  652. packetc2l_get_torpedo_rank_change_list::default_instance_ = new packetc2l_get_torpedo_rank_change_list();
  653. packetl2c_get_torpedo_rank_change_list_result::default_instance_ = new packetl2c_get_torpedo_rank_change_list_result();
  654. packetc2l_receive_torpedo_guaranteed_award::default_instance_ = new packetc2l_receive_torpedo_guaranteed_award();
  655. packetl2c_receive_torpedo_guaranteed_award_result::default_instance_ = new packetl2c_receive_torpedo_guaranteed_award_result();
  656. SummerDayLotteryInfo::default_instance_ = new SummerDayLotteryInfo();
  657. packetc2l_start_Sd_Lottery::default_instance_ = new packetc2l_start_Sd_Lottery();
  658. packetl2c_start_Sd_Lottery_result::default_instance_ = new packetl2c_start_Sd_Lottery_result();
  659. packetl2c_activity_item_change::default_instance_ = new packetl2c_activity_item_change();
  660. packetc2l_Sd_item_exchange::default_instance_ = new packetc2l_Sd_item_exchange();
  661. packetl2c_Sd_item_exchange_result::default_instance_ = new packetl2c_Sd_item_exchange_result();
  662. packetc2l_Nd_get_activity_info::default_instance_ = new packetc2l_Nd_get_activity_info();
  663. packetl2c_Nd_get_activity_info_result::default_instance_ = new packetl2c_Nd_get_activity_info_result();
  664. packetc2l_Nd_start_Lottery::default_instance_ = new packetc2l_Nd_start_Lottery();
  665. packetl2c_Nd_start_Lottery_result::default_instance_ = new packetl2c_Nd_start_Lottery_result();
  666. packetc2l_Nd_item_exchange::default_instance_ = new packetc2l_Nd_item_exchange();
  667. packetl2c_Nd_item_exchange_result::default_instance_ = new packetl2c_Nd_item_exchange_result();
  668. packetl2c_get_grand_prix_info_result::default_instance_ = new packetl2c_get_grand_prix_info_result();
  669. packetc2l_get_torpedo_rank::default_instance_->InitAsDefaultInstance();
  670. TorpedoRankInfo::default_instance_->InitAsDefaultInstance();
  671. TorpedoRankChangeInfo::default_instance_->InitAsDefaultInstance();
  672. packetl2c_get_torpedo_rank_result::default_instance_->InitAsDefaultInstance();
  673. packetc2l_get_torpedo_rank_change_list::default_instance_->InitAsDefaultInstance();
  674. packetl2c_get_torpedo_rank_change_list_result::default_instance_->InitAsDefaultInstance();
  675. packetc2l_receive_torpedo_guaranteed_award::default_instance_->InitAsDefaultInstance();
  676. packetl2c_receive_torpedo_guaranteed_award_result::default_instance_->InitAsDefaultInstance();
  677. SummerDayLotteryInfo::default_instance_->InitAsDefaultInstance();
  678. packetc2l_start_Sd_Lottery::default_instance_->InitAsDefaultInstance();
  679. packetl2c_start_Sd_Lottery_result::default_instance_->InitAsDefaultInstance();
  680. packetl2c_activity_item_change::default_instance_->InitAsDefaultInstance();
  681. packetc2l_Sd_item_exchange::default_instance_->InitAsDefaultInstance();
  682. packetl2c_Sd_item_exchange_result::default_instance_->InitAsDefaultInstance();
  683. packetc2l_Nd_get_activity_info::default_instance_->InitAsDefaultInstance();
  684. packetl2c_Nd_get_activity_info_result::default_instance_->InitAsDefaultInstance();
  685. packetc2l_Nd_start_Lottery::default_instance_->InitAsDefaultInstance();
  686. packetl2c_Nd_start_Lottery_result::default_instance_->InitAsDefaultInstance();
  687. packetc2l_Nd_item_exchange::default_instance_->InitAsDefaultInstance();
  688. packetl2c_Nd_item_exchange_result::default_instance_->InitAsDefaultInstance();
  689. packetl2c_get_grand_prix_info_result::default_instance_->InitAsDefaultInstance();
  690. ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_fish_5factivity_2eproto);
  691. }
  692. // Force AddDescriptors() to be called at static initialization time.
  693. struct StaticDescriptorInitializer_fish_5factivity_2eproto {
  694. StaticDescriptorInitializer_fish_5factivity_2eproto() {
  695. protobuf_AddDesc_fish_5factivity_2eproto();
  696. }
  697. } static_descriptor_initializer_fish_5factivity_2eproto_;
  698. // ===================================================================
  699. #ifndef _MSC_VER
  700. const int packetc2l_get_torpedo_rank::kPacketIdFieldNumber;
  701. const int packetc2l_get_torpedo_rank::kRankTypeFieldNumber;
  702. #endif // !_MSC_VER
  703. packetc2l_get_torpedo_rank::packetc2l_get_torpedo_rank()
  704. : ::google::protobuf::Message() {
  705. SharedCtor();
  706. }
  707. void packetc2l_get_torpedo_rank::InitAsDefaultInstance() {
  708. }
  709. packetc2l_get_torpedo_rank::packetc2l_get_torpedo_rank(const packetc2l_get_torpedo_rank& from)
  710. : ::google::protobuf::Message() {
  711. SharedCtor();
  712. MergeFrom(from);
  713. }
  714. void packetc2l_get_torpedo_rank::SharedCtor() {
  715. _cached_size_ = 0;
  716. packet_id_ = 10145;
  717. ranktype_ = 0;
  718. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  719. }
  720. packetc2l_get_torpedo_rank::~packetc2l_get_torpedo_rank() {
  721. SharedDtor();
  722. }
  723. void packetc2l_get_torpedo_rank::SharedDtor() {
  724. if (this != default_instance_) {
  725. }
  726. }
  727. void packetc2l_get_torpedo_rank::SetCachedSize(int size) const {
  728. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  729. _cached_size_ = size;
  730. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  731. }
  732. const ::google::protobuf::Descriptor* packetc2l_get_torpedo_rank::descriptor() {
  733. protobuf_AssignDescriptorsOnce();
  734. return packetc2l_get_torpedo_rank_descriptor_;
  735. }
  736. const packetc2l_get_torpedo_rank& packetc2l_get_torpedo_rank::default_instance() {
  737. if (default_instance_ == NULL) protobuf_AddDesc_fish_5factivity_2eproto();
  738. return *default_instance_;
  739. }
  740. packetc2l_get_torpedo_rank* packetc2l_get_torpedo_rank::default_instance_ = NULL;
  741. packetc2l_get_torpedo_rank* packetc2l_get_torpedo_rank::New() const {
  742. return new packetc2l_get_torpedo_rank;
  743. }
  744. void packetc2l_get_torpedo_rank::Clear() {
  745. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  746. packet_id_ = 10145;
  747. ranktype_ = 0;
  748. }
  749. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  750. mutable_unknown_fields()->Clear();
  751. }
  752. bool packetc2l_get_torpedo_rank::MergePartialFromCodedStream(
  753. ::google::protobuf::io::CodedInputStream* input) {
  754. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  755. ::google::protobuf::uint32 tag;
  756. while ((tag = input->ReadTag()) != 0) {
  757. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  758. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_torpedo_rank];
  759. case 1: {
  760. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  761. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  762. int value;
  763. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  764. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  765. input, &value)));
  766. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  767. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  768. } else {
  769. mutable_unknown_fields()->AddVarint(1, value);
  770. }
  771. } else {
  772. goto handle_uninterpreted;
  773. }
  774. if (input->ExpectTag(16)) goto parse_rankType;
  775. break;
  776. }
  777. // optional int32 rankType = 2;
  778. case 2: {
  779. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  780. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  781. parse_rankType:
  782. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  783. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  784. input, &ranktype_)));
  785. set_has_ranktype();
  786. } else {
  787. goto handle_uninterpreted;
  788. }
  789. if (input->ExpectAtEnd()) return true;
  790. break;
  791. }
  792. default: {
  793. handle_uninterpreted:
  794. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  795. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  796. return true;
  797. }
  798. DO_(::google::protobuf::internal::WireFormat::SkipField(
  799. input, tag, mutable_unknown_fields()));
  800. break;
  801. }
  802. }
  803. }
  804. return true;
  805. #undef DO_
  806. }
  807. void packetc2l_get_torpedo_rank::SerializeWithCachedSizes(
  808. ::google::protobuf::io::CodedOutputStream* output) const {
  809. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_torpedo_rank];
  810. if (has_packet_id()) {
  811. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  812. 1, this->packet_id(), output);
  813. }
  814. // optional int32 rankType = 2;
  815. if (has_ranktype()) {
  816. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->ranktype(), output);
  817. }
  818. if (!unknown_fields().empty()) {
  819. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  820. unknown_fields(), output);
  821. }
  822. }
  823. ::google::protobuf::uint8* packetc2l_get_torpedo_rank::SerializeWithCachedSizesToArray(
  824. ::google::protobuf::uint8* target) const {
  825. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_torpedo_rank];
  826. if (has_packet_id()) {
  827. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  828. 1, this->packet_id(), target);
  829. }
  830. // optional int32 rankType = 2;
  831. if (has_ranktype()) {
  832. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->ranktype(), target);
  833. }
  834. if (!unknown_fields().empty()) {
  835. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  836. unknown_fields(), target);
  837. }
  838. return target;
  839. }
  840. int packetc2l_get_torpedo_rank::ByteSize() const {
  841. int total_size = 0;
  842. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  843. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_torpedo_rank];
  844. if (has_packet_id()) {
  845. total_size += 1 +
  846. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  847. }
  848. // optional int32 rankType = 2;
  849. if (has_ranktype()) {
  850. total_size += 1 +
  851. ::google::protobuf::internal::WireFormatLite::Int32Size(
  852. this->ranktype());
  853. }
  854. }
  855. if (!unknown_fields().empty()) {
  856. total_size +=
  857. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  858. unknown_fields());
  859. }
  860. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  861. _cached_size_ = total_size;
  862. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  863. return total_size;
  864. }
  865. void packetc2l_get_torpedo_rank::MergeFrom(const ::google::protobuf::Message& from) {
  866. GOOGLE_CHECK_NE(&from, this);
  867. const packetc2l_get_torpedo_rank* source =
  868. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_get_torpedo_rank*>(
  869. &from);
  870. if (source == NULL) {
  871. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  872. } else {
  873. MergeFrom(*source);
  874. }
  875. }
  876. void packetc2l_get_torpedo_rank::MergeFrom(const packetc2l_get_torpedo_rank& from) {
  877. GOOGLE_CHECK_NE(&from, this);
  878. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  879. if (from.has_packet_id()) {
  880. set_packet_id(from.packet_id());
  881. }
  882. if (from.has_ranktype()) {
  883. set_ranktype(from.ranktype());
  884. }
  885. }
  886. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  887. }
  888. void packetc2l_get_torpedo_rank::CopyFrom(const ::google::protobuf::Message& from) {
  889. if (&from == this) return;
  890. Clear();
  891. MergeFrom(from);
  892. }
  893. void packetc2l_get_torpedo_rank::CopyFrom(const packetc2l_get_torpedo_rank& from) {
  894. if (&from == this) return;
  895. Clear();
  896. MergeFrom(from);
  897. }
  898. bool packetc2l_get_torpedo_rank::IsInitialized() const {
  899. return true;
  900. }
  901. void packetc2l_get_torpedo_rank::Swap(packetc2l_get_torpedo_rank* other) {
  902. if (other != this) {
  903. std::swap(packet_id_, other->packet_id_);
  904. std::swap(ranktype_, other->ranktype_);
  905. std::swap(_has_bits_[0], other->_has_bits_[0]);
  906. _unknown_fields_.Swap(&other->_unknown_fields_);
  907. std::swap(_cached_size_, other->_cached_size_);
  908. }
  909. }
  910. ::google::protobuf::Metadata packetc2l_get_torpedo_rank::GetMetadata() const {
  911. protobuf_AssignDescriptorsOnce();
  912. ::google::protobuf::Metadata metadata;
  913. metadata.descriptor = packetc2l_get_torpedo_rank_descriptor_;
  914. metadata.reflection = packetc2l_get_torpedo_rank_reflection_;
  915. return metadata;
  916. }
  917. // ===================================================================
  918. #ifndef _MSC_VER
  919. const int TorpedoRankInfo::kPlayerIdFieldNumber;
  920. const int TorpedoRankInfo::kNickNameFieldNumber;
  921. const int TorpedoRankInfo::kGoldFieldNumber;
  922. const int TorpedoRankInfo::kHeadidFieldNumber;
  923. const int TorpedoRankInfo::kFrameidFieldNumber;
  924. const int TorpedoRankInfo::kVipLevelFieldNumber;
  925. const int TorpedoRankInfo::kGenderFieldNumber;
  926. #endif // !_MSC_VER
  927. TorpedoRankInfo::TorpedoRankInfo()
  928. : ::google::protobuf::Message() {
  929. SharedCtor();
  930. }
  931. void TorpedoRankInfo::InitAsDefaultInstance() {
  932. }
  933. TorpedoRankInfo::TorpedoRankInfo(const TorpedoRankInfo& from)
  934. : ::google::protobuf::Message() {
  935. SharedCtor();
  936. MergeFrom(from);
  937. }
  938. void TorpedoRankInfo::SharedCtor() {
  939. _cached_size_ = 0;
  940. playerid_ = 0;
  941. nickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  942. gold_ = 0;
  943. headid_ = 0;
  944. frameid_ = 0;
  945. viplevel_ = 0;
  946. gender_ = 0;
  947. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  948. }
  949. TorpedoRankInfo::~TorpedoRankInfo() {
  950. SharedDtor();
  951. }
  952. void TorpedoRankInfo::SharedDtor() {
  953. if (nickname_ != &::google::protobuf::internal::kEmptyString) {
  954. delete nickname_;
  955. }
  956. if (this != default_instance_) {
  957. }
  958. }
  959. void TorpedoRankInfo::SetCachedSize(int size) const {
  960. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  961. _cached_size_ = size;
  962. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  963. }
  964. const ::google::protobuf::Descriptor* TorpedoRankInfo::descriptor() {
  965. protobuf_AssignDescriptorsOnce();
  966. return TorpedoRankInfo_descriptor_;
  967. }
  968. const TorpedoRankInfo& TorpedoRankInfo::default_instance() {
  969. if (default_instance_ == NULL) protobuf_AddDesc_fish_5factivity_2eproto();
  970. return *default_instance_;
  971. }
  972. TorpedoRankInfo* TorpedoRankInfo::default_instance_ = NULL;
  973. TorpedoRankInfo* TorpedoRankInfo::New() const {
  974. return new TorpedoRankInfo;
  975. }
  976. void TorpedoRankInfo::Clear() {
  977. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  978. playerid_ = 0;
  979. if (has_nickname()) {
  980. if (nickname_ != &::google::protobuf::internal::kEmptyString) {
  981. nickname_->clear();
  982. }
  983. }
  984. gold_ = 0;
  985. headid_ = 0;
  986. frameid_ = 0;
  987. viplevel_ = 0;
  988. gender_ = 0;
  989. }
  990. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  991. mutable_unknown_fields()->Clear();
  992. }
  993. bool TorpedoRankInfo::MergePartialFromCodedStream(
  994. ::google::protobuf::io::CodedInputStream* input) {
  995. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  996. ::google::protobuf::uint32 tag;
  997. while ((tag = input->ReadTag()) != 0) {
  998. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  999. // optional int32 playerId = 1;
  1000. case 1: {
  1001. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1002. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1003. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1004. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1005. input, &playerid_)));
  1006. set_has_playerid();
  1007. } else {
  1008. goto handle_uninterpreted;
  1009. }
  1010. if (input->ExpectTag(18)) goto parse_nickName;
  1011. break;
  1012. }
  1013. // optional string nickName = 2;
  1014. case 2: {
  1015. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1016. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1017. parse_nickName:
  1018. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1019. input, this->mutable_nickname()));
  1020. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1021. this->nickname().data(), this->nickname().length(),
  1022. ::google::protobuf::internal::WireFormat::PARSE);
  1023. } else {
  1024. goto handle_uninterpreted;
  1025. }
  1026. if (input->ExpectTag(24)) goto parse_gold;
  1027. break;
  1028. }
  1029. // optional int32 gold = 3;
  1030. case 3: {
  1031. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1032. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1033. parse_gold:
  1034. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1035. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1036. input, &gold_)));
  1037. set_has_gold();
  1038. } else {
  1039. goto handle_uninterpreted;
  1040. }
  1041. if (input->ExpectTag(32)) goto parse_headid;
  1042. break;
  1043. }
  1044. // optional int32 headid = 4;
  1045. case 4: {
  1046. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1047. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1048. parse_headid:
  1049. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1050. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1051. input, &headid_)));
  1052. set_has_headid();
  1053. } else {
  1054. goto handle_uninterpreted;
  1055. }
  1056. if (input->ExpectTag(40)) goto parse_frameid;
  1057. break;
  1058. }
  1059. // optional int32 frameid = 5;
  1060. case 5: {
  1061. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1062. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1063. parse_frameid:
  1064. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1065. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1066. input, &frameid_)));
  1067. set_has_frameid();
  1068. } else {
  1069. goto handle_uninterpreted;
  1070. }
  1071. if (input->ExpectTag(48)) goto parse_vipLevel;
  1072. break;
  1073. }
  1074. // optional int32 vipLevel = 6;
  1075. case 6: {
  1076. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1077. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1078. parse_vipLevel:
  1079. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1080. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1081. input, &viplevel_)));
  1082. set_has_viplevel();
  1083. } else {
  1084. goto handle_uninterpreted;
  1085. }
  1086. if (input->ExpectTag(56)) goto parse_gender;
  1087. break;
  1088. }
  1089. // optional int32 gender = 7;
  1090. case 7: {
  1091. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1092. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1093. parse_gender:
  1094. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1095. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1096. input, &gender_)));
  1097. set_has_gender();
  1098. } else {
  1099. goto handle_uninterpreted;
  1100. }
  1101. if (input->ExpectAtEnd()) return true;
  1102. break;
  1103. }
  1104. default: {
  1105. handle_uninterpreted:
  1106. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1107. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1108. return true;
  1109. }
  1110. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1111. input, tag, mutable_unknown_fields()));
  1112. break;
  1113. }
  1114. }
  1115. }
  1116. return true;
  1117. #undef DO_
  1118. }
  1119. void TorpedoRankInfo::SerializeWithCachedSizes(
  1120. ::google::protobuf::io::CodedOutputStream* output) const {
  1121. // optional int32 playerId = 1;
  1122. if (has_playerid()) {
  1123. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->playerid(), output);
  1124. }
  1125. // optional string nickName = 2;
  1126. if (has_nickname()) {
  1127. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1128. this->nickname().data(), this->nickname().length(),
  1129. ::google::protobuf::internal::WireFormat::SERIALIZE);
  1130. ::google::protobuf::internal::WireFormatLite::WriteString(
  1131. 2, this->nickname(), output);
  1132. }
  1133. // optional int32 gold = 3;
  1134. if (has_gold()) {
  1135. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->gold(), output);
  1136. }
  1137. // optional int32 headid = 4;
  1138. if (has_headid()) {
  1139. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->headid(), output);
  1140. }
  1141. // optional int32 frameid = 5;
  1142. if (has_frameid()) {
  1143. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->frameid(), output);
  1144. }
  1145. // optional int32 vipLevel = 6;
  1146. if (has_viplevel()) {
  1147. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->viplevel(), output);
  1148. }
  1149. // optional int32 gender = 7;
  1150. if (has_gender()) {
  1151. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->gender(), output);
  1152. }
  1153. if (!unknown_fields().empty()) {
  1154. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1155. unknown_fields(), output);
  1156. }
  1157. }
  1158. ::google::protobuf::uint8* TorpedoRankInfo::SerializeWithCachedSizesToArray(
  1159. ::google::protobuf::uint8* target) const {
  1160. // optional int32 playerId = 1;
  1161. if (has_playerid()) {
  1162. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->playerid(), target);
  1163. }
  1164. // optional string nickName = 2;
  1165. if (has_nickname()) {
  1166. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1167. this->nickname().data(), this->nickname().length(),
  1168. ::google::protobuf::internal::WireFormat::SERIALIZE);
  1169. target =
  1170. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1171. 2, this->nickname(), target);
  1172. }
  1173. // optional int32 gold = 3;
  1174. if (has_gold()) {
  1175. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->gold(), target);
  1176. }
  1177. // optional int32 headid = 4;
  1178. if (has_headid()) {
  1179. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->headid(), target);
  1180. }
  1181. // optional int32 frameid = 5;
  1182. if (has_frameid()) {
  1183. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->frameid(), target);
  1184. }
  1185. // optional int32 vipLevel = 6;
  1186. if (has_viplevel()) {
  1187. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->viplevel(), target);
  1188. }
  1189. // optional int32 gender = 7;
  1190. if (has_gender()) {
  1191. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->gender(), target);
  1192. }
  1193. if (!unknown_fields().empty()) {
  1194. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1195. unknown_fields(), target);
  1196. }
  1197. return target;
  1198. }
  1199. int TorpedoRankInfo::ByteSize() const {
  1200. int total_size = 0;
  1201. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1202. // optional int32 playerId = 1;
  1203. if (has_playerid()) {
  1204. total_size += 1 +
  1205. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1206. this->playerid());
  1207. }
  1208. // optional string nickName = 2;
  1209. if (has_nickname()) {
  1210. total_size += 1 +
  1211. ::google::protobuf::internal::WireFormatLite::StringSize(
  1212. this->nickname());
  1213. }
  1214. // optional int32 gold = 3;
  1215. if (has_gold()) {
  1216. total_size += 1 +
  1217. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1218. this->gold());
  1219. }
  1220. // optional int32 headid = 4;
  1221. if (has_headid()) {
  1222. total_size += 1 +
  1223. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1224. this->headid());
  1225. }
  1226. // optional int32 frameid = 5;
  1227. if (has_frameid()) {
  1228. total_size += 1 +
  1229. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1230. this->frameid());
  1231. }
  1232. // optional int32 vipLevel = 6;
  1233. if (has_viplevel()) {
  1234. total_size += 1 +
  1235. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1236. this->viplevel());
  1237. }
  1238. // optional int32 gender = 7;
  1239. if (has_gender()) {
  1240. total_size += 1 +
  1241. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1242. this->gender());
  1243. }
  1244. }
  1245. if (!unknown_fields().empty()) {
  1246. total_size +=
  1247. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1248. unknown_fields());
  1249. }
  1250. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1251. _cached_size_ = total_size;
  1252. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1253. return total_size;
  1254. }
  1255. void TorpedoRankInfo::MergeFrom(const ::google::protobuf::Message& from) {
  1256. GOOGLE_CHECK_NE(&from, this);
  1257. const TorpedoRankInfo* source =
  1258. ::google::protobuf::internal::dynamic_cast_if_available<const TorpedoRankInfo*>(
  1259. &from);
  1260. if (source == NULL) {
  1261. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1262. } else {
  1263. MergeFrom(*source);
  1264. }
  1265. }
  1266. void TorpedoRankInfo::MergeFrom(const TorpedoRankInfo& from) {
  1267. GOOGLE_CHECK_NE(&from, this);
  1268. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1269. if (from.has_playerid()) {
  1270. set_playerid(from.playerid());
  1271. }
  1272. if (from.has_nickname()) {
  1273. set_nickname(from.nickname());
  1274. }
  1275. if (from.has_gold()) {
  1276. set_gold(from.gold());
  1277. }
  1278. if (from.has_headid()) {
  1279. set_headid(from.headid());
  1280. }
  1281. if (from.has_frameid()) {
  1282. set_frameid(from.frameid());
  1283. }
  1284. if (from.has_viplevel()) {
  1285. set_viplevel(from.viplevel());
  1286. }
  1287. if (from.has_gender()) {
  1288. set_gender(from.gender());
  1289. }
  1290. }
  1291. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1292. }
  1293. void TorpedoRankInfo::CopyFrom(const ::google::protobuf::Message& from) {
  1294. if (&from == this) return;
  1295. Clear();
  1296. MergeFrom(from);
  1297. }
  1298. void TorpedoRankInfo::CopyFrom(const TorpedoRankInfo& from) {
  1299. if (&from == this) return;
  1300. Clear();
  1301. MergeFrom(from);
  1302. }
  1303. bool TorpedoRankInfo::IsInitialized() const {
  1304. return true;
  1305. }
  1306. void TorpedoRankInfo::Swap(TorpedoRankInfo* other) {
  1307. if (other != this) {
  1308. std::swap(playerid_, other->playerid_);
  1309. std::swap(nickname_, other->nickname_);
  1310. std::swap(gold_, other->gold_);
  1311. std::swap(headid_, other->headid_);
  1312. std::swap(frameid_, other->frameid_);
  1313. std::swap(viplevel_, other->viplevel_);
  1314. std::swap(gender_, other->gender_);
  1315. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1316. _unknown_fields_.Swap(&other->_unknown_fields_);
  1317. std::swap(_cached_size_, other->_cached_size_);
  1318. }
  1319. }
  1320. ::google::protobuf::Metadata TorpedoRankInfo::GetMetadata() const {
  1321. protobuf_AssignDescriptorsOnce();
  1322. ::google::protobuf::Metadata metadata;
  1323. metadata.descriptor = TorpedoRankInfo_descriptor_;
  1324. metadata.reflection = TorpedoRankInfo_reflection_;
  1325. return metadata;
  1326. }
  1327. // ===================================================================
  1328. #ifndef _MSC_VER
  1329. const int TorpedoRankChangeInfo::kPlayerIdFieldNumber;
  1330. const int TorpedoRankChangeInfo::kNickNameFieldNumber;
  1331. const int TorpedoRankChangeInfo::kTorpedoIdFieldNumber;
  1332. const int TorpedoRankChangeInfo::kChangeGoldFieldNumber;
  1333. const int TorpedoRankChangeInfo::kChangePointFieldNumber;
  1334. #endif // !_MSC_VER
  1335. TorpedoRankChangeInfo::TorpedoRankChangeInfo()
  1336. : ::google::protobuf::Message() {
  1337. SharedCtor();
  1338. }
  1339. void TorpedoRankChangeInfo::InitAsDefaultInstance() {
  1340. }
  1341. TorpedoRankChangeInfo::TorpedoRankChangeInfo(const TorpedoRankChangeInfo& from)
  1342. : ::google::protobuf::Message() {
  1343. SharedCtor();
  1344. MergeFrom(from);
  1345. }
  1346. void TorpedoRankChangeInfo::SharedCtor() {
  1347. _cached_size_ = 0;
  1348. playerid_ = 0;
  1349. nickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  1350. torpedoid_ = 0;
  1351. changegold_ = GOOGLE_LONGLONG(0);
  1352. changepoint_ = GOOGLE_LONGLONG(0);
  1353. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1354. }
  1355. TorpedoRankChangeInfo::~TorpedoRankChangeInfo() {
  1356. SharedDtor();
  1357. }
  1358. void TorpedoRankChangeInfo::SharedDtor() {
  1359. if (nickname_ != &::google::protobuf::internal::kEmptyString) {
  1360. delete nickname_;
  1361. }
  1362. if (this != default_instance_) {
  1363. }
  1364. }
  1365. void TorpedoRankChangeInfo::SetCachedSize(int size) const {
  1366. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1367. _cached_size_ = size;
  1368. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1369. }
  1370. const ::google::protobuf::Descriptor* TorpedoRankChangeInfo::descriptor() {
  1371. protobuf_AssignDescriptorsOnce();
  1372. return TorpedoRankChangeInfo_descriptor_;
  1373. }
  1374. const TorpedoRankChangeInfo& TorpedoRankChangeInfo::default_instance() {
  1375. if (default_instance_ == NULL) protobuf_AddDesc_fish_5factivity_2eproto();
  1376. return *default_instance_;
  1377. }
  1378. TorpedoRankChangeInfo* TorpedoRankChangeInfo::default_instance_ = NULL;
  1379. TorpedoRankChangeInfo* TorpedoRankChangeInfo::New() const {
  1380. return new TorpedoRankChangeInfo;
  1381. }
  1382. void TorpedoRankChangeInfo::Clear() {
  1383. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1384. playerid_ = 0;
  1385. if (has_nickname()) {
  1386. if (nickname_ != &::google::protobuf::internal::kEmptyString) {
  1387. nickname_->clear();
  1388. }
  1389. }
  1390. torpedoid_ = 0;
  1391. changegold_ = GOOGLE_LONGLONG(0);
  1392. changepoint_ = GOOGLE_LONGLONG(0);
  1393. }
  1394. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1395. mutable_unknown_fields()->Clear();
  1396. }
  1397. bool TorpedoRankChangeInfo::MergePartialFromCodedStream(
  1398. ::google::protobuf::io::CodedInputStream* input) {
  1399. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  1400. ::google::protobuf::uint32 tag;
  1401. while ((tag = input->ReadTag()) != 0) {
  1402. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1403. // optional int32 playerId = 1;
  1404. case 1: {
  1405. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1406. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1407. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1408. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1409. input, &playerid_)));
  1410. set_has_playerid();
  1411. } else {
  1412. goto handle_uninterpreted;
  1413. }
  1414. if (input->ExpectTag(18)) goto parse_nickName;
  1415. break;
  1416. }
  1417. // optional string nickName = 2;
  1418. case 2: {
  1419. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1420. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1421. parse_nickName:
  1422. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1423. input, this->mutable_nickname()));
  1424. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1425. this->nickname().data(), this->nickname().length(),
  1426. ::google::protobuf::internal::WireFormat::PARSE);
  1427. } else {
  1428. goto handle_uninterpreted;
  1429. }
  1430. if (input->ExpectTag(24)) goto parse_torpedoId;
  1431. break;
  1432. }
  1433. // optional int32 torpedoId = 3;
  1434. case 3: {
  1435. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1436. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1437. parse_torpedoId:
  1438. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1439. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1440. input, &torpedoid_)));
  1441. set_has_torpedoid();
  1442. } else {
  1443. goto handle_uninterpreted;
  1444. }
  1445. if (input->ExpectTag(32)) goto parse_changeGold;
  1446. break;
  1447. }
  1448. // optional int64 changeGold = 4;
  1449. case 4: {
  1450. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1451. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1452. parse_changeGold:
  1453. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1454. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  1455. input, &changegold_)));
  1456. set_has_changegold();
  1457. } else {
  1458. goto handle_uninterpreted;
  1459. }
  1460. if (input->ExpectTag(40)) goto parse_changePoint;
  1461. break;
  1462. }
  1463. // optional int64 changePoint = 5;
  1464. case 5: {
  1465. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1466. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1467. parse_changePoint:
  1468. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1469. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  1470. input, &changepoint_)));
  1471. set_has_changepoint();
  1472. } else {
  1473. goto handle_uninterpreted;
  1474. }
  1475. if (input->ExpectAtEnd()) return true;
  1476. break;
  1477. }
  1478. default: {
  1479. handle_uninterpreted:
  1480. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1481. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1482. return true;
  1483. }
  1484. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1485. input, tag, mutable_unknown_fields()));
  1486. break;
  1487. }
  1488. }
  1489. }
  1490. return true;
  1491. #undef DO_
  1492. }
  1493. void TorpedoRankChangeInfo::SerializeWithCachedSizes(
  1494. ::google::protobuf::io::CodedOutputStream* output) const {
  1495. // optional int32 playerId = 1;
  1496. if (has_playerid()) {
  1497. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->playerid(), output);
  1498. }
  1499. // optional string nickName = 2;
  1500. if (has_nickname()) {
  1501. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1502. this->nickname().data(), this->nickname().length(),
  1503. ::google::protobuf::internal::WireFormat::SERIALIZE);
  1504. ::google::protobuf::internal::WireFormatLite::WriteString(
  1505. 2, this->nickname(), output);
  1506. }
  1507. // optional int32 torpedoId = 3;
  1508. if (has_torpedoid()) {
  1509. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->torpedoid(), output);
  1510. }
  1511. // optional int64 changeGold = 4;
  1512. if (has_changegold()) {
  1513. ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->changegold(), output);
  1514. }
  1515. // optional int64 changePoint = 5;
  1516. if (has_changepoint()) {
  1517. ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->changepoint(), output);
  1518. }
  1519. if (!unknown_fields().empty()) {
  1520. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1521. unknown_fields(), output);
  1522. }
  1523. }
  1524. ::google::protobuf::uint8* TorpedoRankChangeInfo::SerializeWithCachedSizesToArray(
  1525. ::google::protobuf::uint8* target) const {
  1526. // optional int32 playerId = 1;
  1527. if (has_playerid()) {
  1528. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->playerid(), target);
  1529. }
  1530. // optional string nickName = 2;
  1531. if (has_nickname()) {
  1532. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1533. this->nickname().data(), this->nickname().length(),
  1534. ::google::protobuf::internal::WireFormat::SERIALIZE);
  1535. target =
  1536. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1537. 2, this->nickname(), target);
  1538. }
  1539. // optional int32 torpedoId = 3;
  1540. if (has_torpedoid()) {
  1541. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->torpedoid(), target);
  1542. }
  1543. // optional int64 changeGold = 4;
  1544. if (has_changegold()) {
  1545. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->changegold(), target);
  1546. }
  1547. // optional int64 changePoint = 5;
  1548. if (has_changepoint()) {
  1549. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->changepoint(), target);
  1550. }
  1551. if (!unknown_fields().empty()) {
  1552. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1553. unknown_fields(), target);
  1554. }
  1555. return target;
  1556. }
  1557. int TorpedoRankChangeInfo::ByteSize() const {
  1558. int total_size = 0;
  1559. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1560. // optional int32 playerId = 1;
  1561. if (has_playerid()) {
  1562. total_size += 1 +
  1563. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1564. this->playerid());
  1565. }
  1566. // optional string nickName = 2;
  1567. if (has_nickname()) {
  1568. total_size += 1 +
  1569. ::google::protobuf::internal::WireFormatLite::StringSize(
  1570. this->nickname());
  1571. }
  1572. // optional int32 torpedoId = 3;
  1573. if (has_torpedoid()) {
  1574. total_size += 1 +
  1575. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1576. this->torpedoid());
  1577. }
  1578. // optional int64 changeGold = 4;
  1579. if (has_changegold()) {
  1580. total_size += 1 +
  1581. ::google::protobuf::internal::WireFormatLite::Int64Size(
  1582. this->changegold());
  1583. }
  1584. // optional int64 changePoint = 5;
  1585. if (has_changepoint()) {
  1586. total_size += 1 +
  1587. ::google::protobuf::internal::WireFormatLite::Int64Size(
  1588. this->changepoint());
  1589. }
  1590. }
  1591. if (!unknown_fields().empty()) {
  1592. total_size +=
  1593. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1594. unknown_fields());
  1595. }
  1596. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1597. _cached_size_ = total_size;
  1598. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1599. return total_size;
  1600. }
  1601. void TorpedoRankChangeInfo::MergeFrom(const ::google::protobuf::Message& from) {
  1602. GOOGLE_CHECK_NE(&from, this);
  1603. const TorpedoRankChangeInfo* source =
  1604. ::google::protobuf::internal::dynamic_cast_if_available<const TorpedoRankChangeInfo*>(
  1605. &from);
  1606. if (source == NULL) {
  1607. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1608. } else {
  1609. MergeFrom(*source);
  1610. }
  1611. }
  1612. void TorpedoRankChangeInfo::MergeFrom(const TorpedoRankChangeInfo& from) {
  1613. GOOGLE_CHECK_NE(&from, this);
  1614. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1615. if (from.has_playerid()) {
  1616. set_playerid(from.playerid());
  1617. }
  1618. if (from.has_nickname()) {
  1619. set_nickname(from.nickname());
  1620. }
  1621. if (from.has_torpedoid()) {
  1622. set_torpedoid(from.torpedoid());
  1623. }
  1624. if (from.has_changegold()) {
  1625. set_changegold(from.changegold());
  1626. }
  1627. if (from.has_changepoint()) {
  1628. set_changepoint(from.changepoint());
  1629. }
  1630. }
  1631. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1632. }
  1633. void TorpedoRankChangeInfo::CopyFrom(const ::google::protobuf::Message& from) {
  1634. if (&from == this) return;
  1635. Clear();
  1636. MergeFrom(from);
  1637. }
  1638. void TorpedoRankChangeInfo::CopyFrom(const TorpedoRankChangeInfo& from) {
  1639. if (&from == this) return;
  1640. Clear();
  1641. MergeFrom(from);
  1642. }
  1643. bool TorpedoRankChangeInfo::IsInitialized() const {
  1644. return true;
  1645. }
  1646. void TorpedoRankChangeInfo::Swap(TorpedoRankChangeInfo* other) {
  1647. if (other != this) {
  1648. std::swap(playerid_, other->playerid_);
  1649. std::swap(nickname_, other->nickname_);
  1650. std::swap(torpedoid_, other->torpedoid_);
  1651. std::swap(changegold_, other->changegold_);
  1652. std::swap(changepoint_, other->changepoint_);
  1653. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1654. _unknown_fields_.Swap(&other->_unknown_fields_);
  1655. std::swap(_cached_size_, other->_cached_size_);
  1656. }
  1657. }
  1658. ::google::protobuf::Metadata TorpedoRankChangeInfo::GetMetadata() const {
  1659. protobuf_AssignDescriptorsOnce();
  1660. ::google::protobuf::Metadata metadata;
  1661. metadata.descriptor = TorpedoRankChangeInfo_descriptor_;
  1662. metadata.reflection = TorpedoRankChangeInfo_reflection_;
  1663. return metadata;
  1664. }
  1665. // ===================================================================
  1666. #ifndef _MSC_VER
  1667. const int packetl2c_get_torpedo_rank_result::kPacketIdFieldNumber;
  1668. const int packetl2c_get_torpedo_rank_result::kRankListFieldNumber;
  1669. const int packetl2c_get_torpedo_rank_result::kRankTypeFieldNumber;
  1670. const int packetl2c_get_torpedo_rank_result::kSelfRankGoldFieldNumber;
  1671. const int packetl2c_get_torpedo_rank_result::kSelfMaxGoldFieldNumber;
  1672. const int packetl2c_get_torpedo_rank_result::kGuaranteedStatFieldNumber;
  1673. #endif // !_MSC_VER
  1674. packetl2c_get_torpedo_rank_result::packetl2c_get_torpedo_rank_result()
  1675. : ::google::protobuf::Message() {
  1676. SharedCtor();
  1677. }
  1678. void packetl2c_get_torpedo_rank_result::InitAsDefaultInstance() {
  1679. }
  1680. packetl2c_get_torpedo_rank_result::packetl2c_get_torpedo_rank_result(const packetl2c_get_torpedo_rank_result& from)
  1681. : ::google::protobuf::Message() {
  1682. SharedCtor();
  1683. MergeFrom(from);
  1684. }
  1685. void packetl2c_get_torpedo_rank_result::SharedCtor() {
  1686. _cached_size_ = 0;
  1687. packet_id_ = 16134;
  1688. ranktype_ = 0;
  1689. selfrankgold_ = GOOGLE_LONGLONG(0);
  1690. selfmaxgold_ = 0;
  1691. guaranteedstat_ = 0;
  1692. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1693. }
  1694. packetl2c_get_torpedo_rank_result::~packetl2c_get_torpedo_rank_result() {
  1695. SharedDtor();
  1696. }
  1697. void packetl2c_get_torpedo_rank_result::SharedDtor() {
  1698. if (this != default_instance_) {
  1699. }
  1700. }
  1701. void packetl2c_get_torpedo_rank_result::SetCachedSize(int size) const {
  1702. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1703. _cached_size_ = size;
  1704. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1705. }
  1706. const ::google::protobuf::Descriptor* packetl2c_get_torpedo_rank_result::descriptor() {
  1707. protobuf_AssignDescriptorsOnce();
  1708. return packetl2c_get_torpedo_rank_result_descriptor_;
  1709. }
  1710. const packetl2c_get_torpedo_rank_result& packetl2c_get_torpedo_rank_result::default_instance() {
  1711. if (default_instance_ == NULL) protobuf_AddDesc_fish_5factivity_2eproto();
  1712. return *default_instance_;
  1713. }
  1714. packetl2c_get_torpedo_rank_result* packetl2c_get_torpedo_rank_result::default_instance_ = NULL;
  1715. packetl2c_get_torpedo_rank_result* packetl2c_get_torpedo_rank_result::New() const {
  1716. return new packetl2c_get_torpedo_rank_result;
  1717. }
  1718. void packetl2c_get_torpedo_rank_result::Clear() {
  1719. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1720. packet_id_ = 16134;
  1721. ranktype_ = 0;
  1722. selfrankgold_ = GOOGLE_LONGLONG(0);
  1723. selfmaxgold_ = 0;
  1724. guaranteedstat_ = 0;
  1725. }
  1726. ranklist_.Clear();
  1727. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1728. mutable_unknown_fields()->Clear();
  1729. }
  1730. bool packetl2c_get_torpedo_rank_result::MergePartialFromCodedStream(
  1731. ::google::protobuf::io::CodedInputStream* input) {
  1732. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  1733. ::google::protobuf::uint32 tag;
  1734. while ((tag = input->ReadTag()) != 0) {
  1735. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1736. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_torpedo_rank_result];
  1737. case 1: {
  1738. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1739. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1740. int value;
  1741. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1742. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1743. input, &value)));
  1744. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  1745. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  1746. } else {
  1747. mutable_unknown_fields()->AddVarint(1, value);
  1748. }
  1749. } else {
  1750. goto handle_uninterpreted;
  1751. }
  1752. if (input->ExpectTag(18)) goto parse_rankList;
  1753. break;
  1754. }
  1755. // repeated .fish_protocols.TorpedoRankInfo rankList = 2;
  1756. case 2: {
  1757. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1758. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1759. parse_rankList:
  1760. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1761. input, add_ranklist()));
  1762. } else {
  1763. goto handle_uninterpreted;
  1764. }
  1765. if (input->ExpectTag(18)) goto parse_rankList;
  1766. if (input->ExpectTag(24)) goto parse_rankType;
  1767. break;
  1768. }
  1769. // optional int32 rankType = 3;
  1770. case 3: {
  1771. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1772. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1773. parse_rankType:
  1774. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1775. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1776. input, &ranktype_)));
  1777. set_has_ranktype();
  1778. } else {
  1779. goto handle_uninterpreted;
  1780. }
  1781. if (input->ExpectTag(32)) goto parse_selfRankGold;
  1782. break;
  1783. }
  1784. // optional int64 selfRankGold = 4;
  1785. case 4: {
  1786. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1787. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1788. parse_selfRankGold:
  1789. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1790. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  1791. input, &selfrankgold_)));
  1792. set_has_selfrankgold();
  1793. } else {
  1794. goto handle_uninterpreted;
  1795. }
  1796. if (input->ExpectTag(40)) goto parse_selfMaxGold;
  1797. break;
  1798. }
  1799. // optional int32 selfMaxGold = 5;
  1800. case 5: {
  1801. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1802. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1803. parse_selfMaxGold:
  1804. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1805. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1806. input, &selfmaxgold_)));
  1807. set_has_selfmaxgold();
  1808. } else {
  1809. goto handle_uninterpreted;
  1810. }
  1811. if (input->ExpectTag(48)) goto parse_guaranteedStat;
  1812. break;
  1813. }
  1814. // optional int32 guaranteedStat = 6;
  1815. case 6: {
  1816. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1817. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1818. parse_guaranteedStat:
  1819. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1820. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1821. input, &guaranteedstat_)));
  1822. set_has_guaranteedstat();
  1823. } else {
  1824. goto handle_uninterpreted;
  1825. }
  1826. if (input->ExpectAtEnd()) return true;
  1827. break;
  1828. }
  1829. default: {
  1830. handle_uninterpreted:
  1831. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1832. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1833. return true;
  1834. }
  1835. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1836. input, tag, mutable_unknown_fields()));
  1837. break;
  1838. }
  1839. }
  1840. }
  1841. return true;
  1842. #undef DO_
  1843. }
  1844. void packetl2c_get_torpedo_rank_result::SerializeWithCachedSizes(
  1845. ::google::protobuf::io::CodedOutputStream* output) const {
  1846. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_torpedo_rank_result];
  1847. if (has_packet_id()) {
  1848. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1849. 1, this->packet_id(), output);
  1850. }
  1851. // repeated .fish_protocols.TorpedoRankInfo rankList = 2;
  1852. for (int i = 0; i < this->ranklist_size(); i++) {
  1853. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1854. 2, this->ranklist(i), output);
  1855. }
  1856. // optional int32 rankType = 3;
  1857. if (has_ranktype()) {
  1858. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->ranktype(), output);
  1859. }
  1860. // optional int64 selfRankGold = 4;
  1861. if (has_selfrankgold()) {
  1862. ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->selfrankgold(), output);
  1863. }
  1864. // optional int32 selfMaxGold = 5;
  1865. if (has_selfmaxgold()) {
  1866. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->selfmaxgold(), output);
  1867. }
  1868. // optional int32 guaranteedStat = 6;
  1869. if (has_guaranteedstat()) {
  1870. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->guaranteedstat(), output);
  1871. }
  1872. if (!unknown_fields().empty()) {
  1873. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1874. unknown_fields(), output);
  1875. }
  1876. }
  1877. ::google::protobuf::uint8* packetl2c_get_torpedo_rank_result::SerializeWithCachedSizesToArray(
  1878. ::google::protobuf::uint8* target) const {
  1879. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_torpedo_rank_result];
  1880. if (has_packet_id()) {
  1881. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1882. 1, this->packet_id(), target);
  1883. }
  1884. // repeated .fish_protocols.TorpedoRankInfo rankList = 2;
  1885. for (int i = 0; i < this->ranklist_size(); i++) {
  1886. target = ::google::protobuf::internal::WireFormatLite::
  1887. WriteMessageNoVirtualToArray(
  1888. 2, this->ranklist(i), target);
  1889. }
  1890. // optional int32 rankType = 3;
  1891. if (has_ranktype()) {
  1892. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->ranktype(), target);
  1893. }
  1894. // optional int64 selfRankGold = 4;
  1895. if (has_selfrankgold()) {
  1896. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->selfrankgold(), target);
  1897. }
  1898. // optional int32 selfMaxGold = 5;
  1899. if (has_selfmaxgold()) {
  1900. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->selfmaxgold(), target);
  1901. }
  1902. // optional int32 guaranteedStat = 6;
  1903. if (has_guaranteedstat()) {
  1904. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->guaranteedstat(), target);
  1905. }
  1906. if (!unknown_fields().empty()) {
  1907. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1908. unknown_fields(), target);
  1909. }
  1910. return target;
  1911. }
  1912. int packetl2c_get_torpedo_rank_result::ByteSize() const {
  1913. int total_size = 0;
  1914. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1915. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_torpedo_rank_result];
  1916. if (has_packet_id()) {
  1917. total_size += 1 +
  1918. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  1919. }
  1920. // optional int32 rankType = 3;
  1921. if (has_ranktype()) {
  1922. total_size += 1 +
  1923. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1924. this->ranktype());
  1925. }
  1926. // optional int64 selfRankGold = 4;
  1927. if (has_selfrankgold()) {
  1928. total_size += 1 +
  1929. ::google::protobuf::internal::WireFormatLite::Int64Size(
  1930. this->selfrankgold());
  1931. }
  1932. // optional int32 selfMaxGold = 5;
  1933. if (has_selfmaxgold()) {
  1934. total_size += 1 +
  1935. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1936. this->selfmaxgold());
  1937. }
  1938. // optional int32 guaranteedStat = 6;
  1939. if (has_guaranteedstat()) {
  1940. total_size += 1 +
  1941. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1942. this->guaranteedstat());
  1943. }
  1944. }
  1945. // repeated .fish_protocols.TorpedoRankInfo rankList = 2;
  1946. total_size += 1 * this->ranklist_size();
  1947. for (int i = 0; i < this->ranklist_size(); i++) {
  1948. total_size +=
  1949. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1950. this->ranklist(i));
  1951. }
  1952. if (!unknown_fields().empty()) {
  1953. total_size +=
  1954. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1955. unknown_fields());
  1956. }
  1957. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1958. _cached_size_ = total_size;
  1959. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1960. return total_size;
  1961. }
  1962. void packetl2c_get_torpedo_rank_result::MergeFrom(const ::google::protobuf::Message& from) {
  1963. GOOGLE_CHECK_NE(&from, this);
  1964. const packetl2c_get_torpedo_rank_result* source =
  1965. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_get_torpedo_rank_result*>(
  1966. &from);
  1967. if (source == NULL) {
  1968. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1969. } else {
  1970. MergeFrom(*source);
  1971. }
  1972. }
  1973. void packetl2c_get_torpedo_rank_result::MergeFrom(const packetl2c_get_torpedo_rank_result& from) {
  1974. GOOGLE_CHECK_NE(&from, this);
  1975. ranklist_.MergeFrom(from.ranklist_);
  1976. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1977. if (from.has_packet_id()) {
  1978. set_packet_id(from.packet_id());
  1979. }
  1980. if (from.has_ranktype()) {
  1981. set_ranktype(from.ranktype());
  1982. }
  1983. if (from.has_selfrankgold()) {
  1984. set_selfrankgold(from.selfrankgold());
  1985. }
  1986. if (from.has_selfmaxgold()) {
  1987. set_selfmaxgold(from.selfmaxgold());
  1988. }
  1989. if (from.has_guaranteedstat()) {
  1990. set_guaranteedstat(from.guaranteedstat());
  1991. }
  1992. }
  1993. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1994. }
  1995. void packetl2c_get_torpedo_rank_result::CopyFrom(const ::google::protobuf::Message& from) {
  1996. if (&from == this) return;
  1997. Clear();
  1998. MergeFrom(from);
  1999. }
  2000. void packetl2c_get_torpedo_rank_result::CopyFrom(const packetl2c_get_torpedo_rank_result& from) {
  2001. if (&from == this) return;
  2002. Clear();
  2003. MergeFrom(from);
  2004. }
  2005. bool packetl2c_get_torpedo_rank_result::IsInitialized() const {
  2006. return true;
  2007. }
  2008. void packetl2c_get_torpedo_rank_result::Swap(packetl2c_get_torpedo_rank_result* other) {
  2009. if (other != this) {
  2010. std::swap(packet_id_, other->packet_id_);
  2011. ranklist_.Swap(&other->ranklist_);
  2012. std::swap(ranktype_, other->ranktype_);
  2013. std::swap(selfrankgold_, other->selfrankgold_);
  2014. std::swap(selfmaxgold_, other->selfmaxgold_);
  2015. std::swap(guaranteedstat_, other->guaranteedstat_);
  2016. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2017. _unknown_fields_.Swap(&other->_unknown_fields_);
  2018. std::swap(_cached_size_, other->_cached_size_);
  2019. }
  2020. }
  2021. ::google::protobuf::Metadata packetl2c_get_torpedo_rank_result::GetMetadata() const {
  2022. protobuf_AssignDescriptorsOnce();
  2023. ::google::protobuf::Metadata metadata;
  2024. metadata.descriptor = packetl2c_get_torpedo_rank_result_descriptor_;
  2025. metadata.reflection = packetl2c_get_torpedo_rank_result_reflection_;
  2026. return metadata;
  2027. }
  2028. // ===================================================================
  2029. #ifndef _MSC_VER
  2030. const int packetc2l_get_torpedo_rank_change_list::kPacketIdFieldNumber;
  2031. const int packetc2l_get_torpedo_rank_change_list::kRankTypeFieldNumber;
  2032. #endif // !_MSC_VER
  2033. packetc2l_get_torpedo_rank_change_list::packetc2l_get_torpedo_rank_change_list()
  2034. : ::google::protobuf::Message() {
  2035. SharedCtor();
  2036. }
  2037. void packetc2l_get_torpedo_rank_change_list::InitAsDefaultInstance() {
  2038. }
  2039. packetc2l_get_torpedo_rank_change_list::packetc2l_get_torpedo_rank_change_list(const packetc2l_get_torpedo_rank_change_list& from)
  2040. : ::google::protobuf::Message() {
  2041. SharedCtor();
  2042. MergeFrom(from);
  2043. }
  2044. void packetc2l_get_torpedo_rank_change_list::SharedCtor() {
  2045. _cached_size_ = 0;
  2046. packet_id_ = 10146;
  2047. ranktype_ = 0;
  2048. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2049. }
  2050. packetc2l_get_torpedo_rank_change_list::~packetc2l_get_torpedo_rank_change_list() {
  2051. SharedDtor();
  2052. }
  2053. void packetc2l_get_torpedo_rank_change_list::SharedDtor() {
  2054. if (this != default_instance_) {
  2055. }
  2056. }
  2057. void packetc2l_get_torpedo_rank_change_list::SetCachedSize(int size) const {
  2058. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2059. _cached_size_ = size;
  2060. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2061. }
  2062. const ::google::protobuf::Descriptor* packetc2l_get_torpedo_rank_change_list::descriptor() {
  2063. protobuf_AssignDescriptorsOnce();
  2064. return packetc2l_get_torpedo_rank_change_list_descriptor_;
  2065. }
  2066. const packetc2l_get_torpedo_rank_change_list& packetc2l_get_torpedo_rank_change_list::default_instance() {
  2067. if (default_instance_ == NULL) protobuf_AddDesc_fish_5factivity_2eproto();
  2068. return *default_instance_;
  2069. }
  2070. packetc2l_get_torpedo_rank_change_list* packetc2l_get_torpedo_rank_change_list::default_instance_ = NULL;
  2071. packetc2l_get_torpedo_rank_change_list* packetc2l_get_torpedo_rank_change_list::New() const {
  2072. return new packetc2l_get_torpedo_rank_change_list;
  2073. }
  2074. void packetc2l_get_torpedo_rank_change_list::Clear() {
  2075. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2076. packet_id_ = 10146;
  2077. ranktype_ = 0;
  2078. }
  2079. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2080. mutable_unknown_fields()->Clear();
  2081. }
  2082. bool packetc2l_get_torpedo_rank_change_list::MergePartialFromCodedStream(
  2083. ::google::protobuf::io::CodedInputStream* input) {
  2084. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  2085. ::google::protobuf::uint32 tag;
  2086. while ((tag = input->ReadTag()) != 0) {
  2087. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2088. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_torpedo_rank_change_list];
  2089. case 1: {
  2090. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2091. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2092. int value;
  2093. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2094. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2095. input, &value)));
  2096. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  2097. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  2098. } else {
  2099. mutable_unknown_fields()->AddVarint(1, value);
  2100. }
  2101. } else {
  2102. goto handle_uninterpreted;
  2103. }
  2104. if (input->ExpectTag(16)) goto parse_rankType;
  2105. break;
  2106. }
  2107. // optional int32 rankType = 2;
  2108. case 2: {
  2109. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2110. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2111. parse_rankType:
  2112. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2113. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2114. input, &ranktype_)));
  2115. set_has_ranktype();
  2116. } else {
  2117. goto handle_uninterpreted;
  2118. }
  2119. if (input->ExpectAtEnd()) return true;
  2120. break;
  2121. }
  2122. default: {
  2123. handle_uninterpreted:
  2124. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2125. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2126. return true;
  2127. }
  2128. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2129. input, tag, mutable_unknown_fields()));
  2130. break;
  2131. }
  2132. }
  2133. }
  2134. return true;
  2135. #undef DO_
  2136. }
  2137. void packetc2l_get_torpedo_rank_change_list::SerializeWithCachedSizes(
  2138. ::google::protobuf::io::CodedOutputStream* output) const {
  2139. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_torpedo_rank_change_list];
  2140. if (has_packet_id()) {
  2141. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2142. 1, this->packet_id(), output);
  2143. }
  2144. // optional int32 rankType = 2;
  2145. if (has_ranktype()) {
  2146. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->ranktype(), output);
  2147. }
  2148. if (!unknown_fields().empty()) {
  2149. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2150. unknown_fields(), output);
  2151. }
  2152. }
  2153. ::google::protobuf::uint8* packetc2l_get_torpedo_rank_change_list::SerializeWithCachedSizesToArray(
  2154. ::google::protobuf::uint8* target) const {
  2155. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_torpedo_rank_change_list];
  2156. if (has_packet_id()) {
  2157. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2158. 1, this->packet_id(), target);
  2159. }
  2160. // optional int32 rankType = 2;
  2161. if (has_ranktype()) {
  2162. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->ranktype(), target);
  2163. }
  2164. if (!unknown_fields().empty()) {
  2165. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2166. unknown_fields(), target);
  2167. }
  2168. return target;
  2169. }
  2170. int packetc2l_get_torpedo_rank_change_list::ByteSize() const {
  2171. int total_size = 0;
  2172. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2173. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_torpedo_rank_change_list];
  2174. if (has_packet_id()) {
  2175. total_size += 1 +
  2176. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  2177. }
  2178. // optional int32 rankType = 2;
  2179. if (has_ranktype()) {
  2180. total_size += 1 +
  2181. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2182. this->ranktype());
  2183. }
  2184. }
  2185. if (!unknown_fields().empty()) {
  2186. total_size +=
  2187. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2188. unknown_fields());
  2189. }
  2190. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2191. _cached_size_ = total_size;
  2192. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2193. return total_size;
  2194. }
  2195. void packetc2l_get_torpedo_rank_change_list::MergeFrom(const ::google::protobuf::Message& from) {
  2196. GOOGLE_CHECK_NE(&from, this);
  2197. const packetc2l_get_torpedo_rank_change_list* source =
  2198. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_get_torpedo_rank_change_list*>(
  2199. &from);
  2200. if (source == NULL) {
  2201. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2202. } else {
  2203. MergeFrom(*source);
  2204. }
  2205. }
  2206. void packetc2l_get_torpedo_rank_change_list::MergeFrom(const packetc2l_get_torpedo_rank_change_list& from) {
  2207. GOOGLE_CHECK_NE(&from, this);
  2208. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2209. if (from.has_packet_id()) {
  2210. set_packet_id(from.packet_id());
  2211. }
  2212. if (from.has_ranktype()) {
  2213. set_ranktype(from.ranktype());
  2214. }
  2215. }
  2216. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  2217. }
  2218. void packetc2l_get_torpedo_rank_change_list::CopyFrom(const ::google::protobuf::Message& from) {
  2219. if (&from == this) return;
  2220. Clear();
  2221. MergeFrom(from);
  2222. }
  2223. void packetc2l_get_torpedo_rank_change_list::CopyFrom(const packetc2l_get_torpedo_rank_change_list& from) {
  2224. if (&from == this) return;
  2225. Clear();
  2226. MergeFrom(from);
  2227. }
  2228. bool packetc2l_get_torpedo_rank_change_list::IsInitialized() const {
  2229. return true;
  2230. }
  2231. void packetc2l_get_torpedo_rank_change_list::Swap(packetc2l_get_torpedo_rank_change_list* other) {
  2232. if (other != this) {
  2233. std::swap(packet_id_, other->packet_id_);
  2234. std::swap(ranktype_, other->ranktype_);
  2235. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2236. _unknown_fields_.Swap(&other->_unknown_fields_);
  2237. std::swap(_cached_size_, other->_cached_size_);
  2238. }
  2239. }
  2240. ::google::protobuf::Metadata packetc2l_get_torpedo_rank_change_list::GetMetadata() const {
  2241. protobuf_AssignDescriptorsOnce();
  2242. ::google::protobuf::Metadata metadata;
  2243. metadata.descriptor = packetc2l_get_torpedo_rank_change_list_descriptor_;
  2244. metadata.reflection = packetc2l_get_torpedo_rank_change_list_reflection_;
  2245. return metadata;
  2246. }
  2247. // ===================================================================
  2248. #ifndef _MSC_VER
  2249. const int packetl2c_get_torpedo_rank_change_list_result::kPacketIdFieldNumber;
  2250. const int packetl2c_get_torpedo_rank_change_list_result::kRankTypeFieldNumber;
  2251. const int packetl2c_get_torpedo_rank_change_list_result::kChangeListFieldNumber;
  2252. #endif // !_MSC_VER
  2253. packetl2c_get_torpedo_rank_change_list_result::packetl2c_get_torpedo_rank_change_list_result()
  2254. : ::google::protobuf::Message() {
  2255. SharedCtor();
  2256. }
  2257. void packetl2c_get_torpedo_rank_change_list_result::InitAsDefaultInstance() {
  2258. }
  2259. packetl2c_get_torpedo_rank_change_list_result::packetl2c_get_torpedo_rank_change_list_result(const packetl2c_get_torpedo_rank_change_list_result& from)
  2260. : ::google::protobuf::Message() {
  2261. SharedCtor();
  2262. MergeFrom(from);
  2263. }
  2264. void packetl2c_get_torpedo_rank_change_list_result::SharedCtor() {
  2265. _cached_size_ = 0;
  2266. packet_id_ = 16135;
  2267. ranktype_ = 0;
  2268. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2269. }
  2270. packetl2c_get_torpedo_rank_change_list_result::~packetl2c_get_torpedo_rank_change_list_result() {
  2271. SharedDtor();
  2272. }
  2273. void packetl2c_get_torpedo_rank_change_list_result::SharedDtor() {
  2274. if (this != default_instance_) {
  2275. }
  2276. }
  2277. void packetl2c_get_torpedo_rank_change_list_result::SetCachedSize(int size) const {
  2278. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2279. _cached_size_ = size;
  2280. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2281. }
  2282. const ::google::protobuf::Descriptor* packetl2c_get_torpedo_rank_change_list_result::descriptor() {
  2283. protobuf_AssignDescriptorsOnce();
  2284. return packetl2c_get_torpedo_rank_change_list_result_descriptor_;
  2285. }
  2286. const packetl2c_get_torpedo_rank_change_list_result& packetl2c_get_torpedo_rank_change_list_result::default_instance() {
  2287. if (default_instance_ == NULL) protobuf_AddDesc_fish_5factivity_2eproto();
  2288. return *default_instance_;
  2289. }
  2290. packetl2c_get_torpedo_rank_change_list_result* packetl2c_get_torpedo_rank_change_list_result::default_instance_ = NULL;
  2291. packetl2c_get_torpedo_rank_change_list_result* packetl2c_get_torpedo_rank_change_list_result::New() const {
  2292. return new packetl2c_get_torpedo_rank_change_list_result;
  2293. }
  2294. void packetl2c_get_torpedo_rank_change_list_result::Clear() {
  2295. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2296. packet_id_ = 16135;
  2297. ranktype_ = 0;
  2298. }
  2299. changelist_.Clear();
  2300. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2301. mutable_unknown_fields()->Clear();
  2302. }
  2303. bool packetl2c_get_torpedo_rank_change_list_result::MergePartialFromCodedStream(
  2304. ::google::protobuf::io::CodedInputStream* input) {
  2305. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  2306. ::google::protobuf::uint32 tag;
  2307. while ((tag = input->ReadTag()) != 0) {
  2308. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2309. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_torpedo_rank_change_list_result];
  2310. case 1: {
  2311. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2312. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2313. int value;
  2314. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2315. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2316. input, &value)));
  2317. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  2318. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  2319. } else {
  2320. mutable_unknown_fields()->AddVarint(1, value);
  2321. }
  2322. } else {
  2323. goto handle_uninterpreted;
  2324. }
  2325. if (input->ExpectTag(16)) goto parse_rankType;
  2326. break;
  2327. }
  2328. // optional int32 rankType = 2;
  2329. case 2: {
  2330. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2331. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2332. parse_rankType:
  2333. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2334. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2335. input, &ranktype_)));
  2336. set_has_ranktype();
  2337. } else {
  2338. goto handle_uninterpreted;
  2339. }
  2340. if (input->ExpectTag(26)) goto parse_changeList;
  2341. break;
  2342. }
  2343. // repeated .fish_protocols.TorpedoRankChangeInfo changeList = 3;
  2344. case 3: {
  2345. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2346. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  2347. parse_changeList:
  2348. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2349. input, add_changelist()));
  2350. } else {
  2351. goto handle_uninterpreted;
  2352. }
  2353. if (input->ExpectTag(26)) goto parse_changeList;
  2354. if (input->ExpectAtEnd()) return true;
  2355. break;
  2356. }
  2357. default: {
  2358. handle_uninterpreted:
  2359. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2360. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2361. return true;
  2362. }
  2363. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2364. input, tag, mutable_unknown_fields()));
  2365. break;
  2366. }
  2367. }
  2368. }
  2369. return true;
  2370. #undef DO_
  2371. }
  2372. void packetl2c_get_torpedo_rank_change_list_result::SerializeWithCachedSizes(
  2373. ::google::protobuf::io::CodedOutputStream* output) const {
  2374. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_torpedo_rank_change_list_result];
  2375. if (has_packet_id()) {
  2376. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2377. 1, this->packet_id(), output);
  2378. }
  2379. // optional int32 rankType = 2;
  2380. if (has_ranktype()) {
  2381. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->ranktype(), output);
  2382. }
  2383. // repeated .fish_protocols.TorpedoRankChangeInfo changeList = 3;
  2384. for (int i = 0; i < this->changelist_size(); i++) {
  2385. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2386. 3, this->changelist(i), output);
  2387. }
  2388. if (!unknown_fields().empty()) {
  2389. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2390. unknown_fields(), output);
  2391. }
  2392. }
  2393. ::google::protobuf::uint8* packetl2c_get_torpedo_rank_change_list_result::SerializeWithCachedSizesToArray(
  2394. ::google::protobuf::uint8* target) const {
  2395. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_torpedo_rank_change_list_result];
  2396. if (has_packet_id()) {
  2397. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2398. 1, this->packet_id(), target);
  2399. }
  2400. // optional int32 rankType = 2;
  2401. if (has_ranktype()) {
  2402. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->ranktype(), target);
  2403. }
  2404. // repeated .fish_protocols.TorpedoRankChangeInfo changeList = 3;
  2405. for (int i = 0; i < this->changelist_size(); i++) {
  2406. target = ::google::protobuf::internal::WireFormatLite::
  2407. WriteMessageNoVirtualToArray(
  2408. 3, this->changelist(i), target);
  2409. }
  2410. if (!unknown_fields().empty()) {
  2411. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2412. unknown_fields(), target);
  2413. }
  2414. return target;
  2415. }
  2416. int packetl2c_get_torpedo_rank_change_list_result::ByteSize() const {
  2417. int total_size = 0;
  2418. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2419. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_torpedo_rank_change_list_result];
  2420. if (has_packet_id()) {
  2421. total_size += 1 +
  2422. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  2423. }
  2424. // optional int32 rankType = 2;
  2425. if (has_ranktype()) {
  2426. total_size += 1 +
  2427. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2428. this->ranktype());
  2429. }
  2430. }
  2431. // repeated .fish_protocols.TorpedoRankChangeInfo changeList = 3;
  2432. total_size += 1 * this->changelist_size();
  2433. for (int i = 0; i < this->changelist_size(); i++) {
  2434. total_size +=
  2435. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  2436. this->changelist(i));
  2437. }
  2438. if (!unknown_fields().empty()) {
  2439. total_size +=
  2440. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2441. unknown_fields());
  2442. }
  2443. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2444. _cached_size_ = total_size;
  2445. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2446. return total_size;
  2447. }
  2448. void packetl2c_get_torpedo_rank_change_list_result::MergeFrom(const ::google::protobuf::Message& from) {
  2449. GOOGLE_CHECK_NE(&from, this);
  2450. const packetl2c_get_torpedo_rank_change_list_result* source =
  2451. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_get_torpedo_rank_change_list_result*>(
  2452. &from);
  2453. if (source == NULL) {
  2454. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2455. } else {
  2456. MergeFrom(*source);
  2457. }
  2458. }
  2459. void packetl2c_get_torpedo_rank_change_list_result::MergeFrom(const packetl2c_get_torpedo_rank_change_list_result& from) {
  2460. GOOGLE_CHECK_NE(&from, this);
  2461. changelist_.MergeFrom(from.changelist_);
  2462. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2463. if (from.has_packet_id()) {
  2464. set_packet_id(from.packet_id());
  2465. }
  2466. if (from.has_ranktype()) {
  2467. set_ranktype(from.ranktype());
  2468. }
  2469. }
  2470. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  2471. }
  2472. void packetl2c_get_torpedo_rank_change_list_result::CopyFrom(const ::google::protobuf::Message& from) {
  2473. if (&from == this) return;
  2474. Clear();
  2475. MergeFrom(from);
  2476. }
  2477. void packetl2c_get_torpedo_rank_change_list_result::CopyFrom(const packetl2c_get_torpedo_rank_change_list_result& from) {
  2478. if (&from == this) return;
  2479. Clear();
  2480. MergeFrom(from);
  2481. }
  2482. bool packetl2c_get_torpedo_rank_change_list_result::IsInitialized() const {
  2483. return true;
  2484. }
  2485. void packetl2c_get_torpedo_rank_change_list_result::Swap(packetl2c_get_torpedo_rank_change_list_result* other) {
  2486. if (other != this) {
  2487. std::swap(packet_id_, other->packet_id_);
  2488. std::swap(ranktype_, other->ranktype_);
  2489. changelist_.Swap(&other->changelist_);
  2490. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2491. _unknown_fields_.Swap(&other->_unknown_fields_);
  2492. std::swap(_cached_size_, other->_cached_size_);
  2493. }
  2494. }
  2495. ::google::protobuf::Metadata packetl2c_get_torpedo_rank_change_list_result::GetMetadata() const {
  2496. protobuf_AssignDescriptorsOnce();
  2497. ::google::protobuf::Metadata metadata;
  2498. metadata.descriptor = packetl2c_get_torpedo_rank_change_list_result_descriptor_;
  2499. metadata.reflection = packetl2c_get_torpedo_rank_change_list_result_reflection_;
  2500. return metadata;
  2501. }
  2502. // ===================================================================
  2503. #ifndef _MSC_VER
  2504. const int packetc2l_receive_torpedo_guaranteed_award::kPacketIdFieldNumber;
  2505. const int packetc2l_receive_torpedo_guaranteed_award::kRankTypeFieldNumber;
  2506. #endif // !_MSC_VER
  2507. packetc2l_receive_torpedo_guaranteed_award::packetc2l_receive_torpedo_guaranteed_award()
  2508. : ::google::protobuf::Message() {
  2509. SharedCtor();
  2510. }
  2511. void packetc2l_receive_torpedo_guaranteed_award::InitAsDefaultInstance() {
  2512. }
  2513. packetc2l_receive_torpedo_guaranteed_award::packetc2l_receive_torpedo_guaranteed_award(const packetc2l_receive_torpedo_guaranteed_award& from)
  2514. : ::google::protobuf::Message() {
  2515. SharedCtor();
  2516. MergeFrom(from);
  2517. }
  2518. void packetc2l_receive_torpedo_guaranteed_award::SharedCtor() {
  2519. _cached_size_ = 0;
  2520. packet_id_ = 10204;
  2521. ranktype_ = 0;
  2522. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2523. }
  2524. packetc2l_receive_torpedo_guaranteed_award::~packetc2l_receive_torpedo_guaranteed_award() {
  2525. SharedDtor();
  2526. }
  2527. void packetc2l_receive_torpedo_guaranteed_award::SharedDtor() {
  2528. if (this != default_instance_) {
  2529. }
  2530. }
  2531. void packetc2l_receive_torpedo_guaranteed_award::SetCachedSize(int size) const {
  2532. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2533. _cached_size_ = size;
  2534. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2535. }
  2536. const ::google::protobuf::Descriptor* packetc2l_receive_torpedo_guaranteed_award::descriptor() {
  2537. protobuf_AssignDescriptorsOnce();
  2538. return packetc2l_receive_torpedo_guaranteed_award_descriptor_;
  2539. }
  2540. const packetc2l_receive_torpedo_guaranteed_award& packetc2l_receive_torpedo_guaranteed_award::default_instance() {
  2541. if (default_instance_ == NULL) protobuf_AddDesc_fish_5factivity_2eproto();
  2542. return *default_instance_;
  2543. }
  2544. packetc2l_receive_torpedo_guaranteed_award* packetc2l_receive_torpedo_guaranteed_award::default_instance_ = NULL;
  2545. packetc2l_receive_torpedo_guaranteed_award* packetc2l_receive_torpedo_guaranteed_award::New() const {
  2546. return new packetc2l_receive_torpedo_guaranteed_award;
  2547. }
  2548. void packetc2l_receive_torpedo_guaranteed_award::Clear() {
  2549. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2550. packet_id_ = 10204;
  2551. ranktype_ = 0;
  2552. }
  2553. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2554. mutable_unknown_fields()->Clear();
  2555. }
  2556. bool packetc2l_receive_torpedo_guaranteed_award::MergePartialFromCodedStream(
  2557. ::google::protobuf::io::CodedInputStream* input) {
  2558. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  2559. ::google::protobuf::uint32 tag;
  2560. while ((tag = input->ReadTag()) != 0) {
  2561. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2562. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_receive_torpedo_guaranteed_award];
  2563. case 1: {
  2564. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2565. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2566. int value;
  2567. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2568. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2569. input, &value)));
  2570. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  2571. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  2572. } else {
  2573. mutable_unknown_fields()->AddVarint(1, value);
  2574. }
  2575. } else {
  2576. goto handle_uninterpreted;
  2577. }
  2578. if (input->ExpectTag(16)) goto parse_rankType;
  2579. break;
  2580. }
  2581. // optional int32 rankType = 2;
  2582. case 2: {
  2583. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2584. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2585. parse_rankType:
  2586. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2587. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2588. input, &ranktype_)));
  2589. set_has_ranktype();
  2590. } else {
  2591. goto handle_uninterpreted;
  2592. }
  2593. if (input->ExpectAtEnd()) return true;
  2594. break;
  2595. }
  2596. default: {
  2597. handle_uninterpreted:
  2598. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2599. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2600. return true;
  2601. }
  2602. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2603. input, tag, mutable_unknown_fields()));
  2604. break;
  2605. }
  2606. }
  2607. }
  2608. return true;
  2609. #undef DO_
  2610. }
  2611. void packetc2l_receive_torpedo_guaranteed_award::SerializeWithCachedSizes(
  2612. ::google::protobuf::io::CodedOutputStream* output) const {
  2613. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_receive_torpedo_guaranteed_award];
  2614. if (has_packet_id()) {
  2615. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2616. 1, this->packet_id(), output);
  2617. }
  2618. // optional int32 rankType = 2;
  2619. if (has_ranktype()) {
  2620. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->ranktype(), output);
  2621. }
  2622. if (!unknown_fields().empty()) {
  2623. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2624. unknown_fields(), output);
  2625. }
  2626. }
  2627. ::google::protobuf::uint8* packetc2l_receive_torpedo_guaranteed_award::SerializeWithCachedSizesToArray(
  2628. ::google::protobuf::uint8* target) const {
  2629. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_receive_torpedo_guaranteed_award];
  2630. if (has_packet_id()) {
  2631. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2632. 1, this->packet_id(), target);
  2633. }
  2634. // optional int32 rankType = 2;
  2635. if (has_ranktype()) {
  2636. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->ranktype(), target);
  2637. }
  2638. if (!unknown_fields().empty()) {
  2639. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2640. unknown_fields(), target);
  2641. }
  2642. return target;
  2643. }
  2644. int packetc2l_receive_torpedo_guaranteed_award::ByteSize() const {
  2645. int total_size = 0;
  2646. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2647. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_receive_torpedo_guaranteed_award];
  2648. if (has_packet_id()) {
  2649. total_size += 1 +
  2650. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  2651. }
  2652. // optional int32 rankType = 2;
  2653. if (has_ranktype()) {
  2654. total_size += 1 +
  2655. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2656. this->ranktype());
  2657. }
  2658. }
  2659. if (!unknown_fields().empty()) {
  2660. total_size +=
  2661. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2662. unknown_fields());
  2663. }
  2664. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2665. _cached_size_ = total_size;
  2666. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2667. return total_size;
  2668. }
  2669. void packetc2l_receive_torpedo_guaranteed_award::MergeFrom(const ::google::protobuf::Message& from) {
  2670. GOOGLE_CHECK_NE(&from, this);
  2671. const packetc2l_receive_torpedo_guaranteed_award* source =
  2672. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_receive_torpedo_guaranteed_award*>(
  2673. &from);
  2674. if (source == NULL) {
  2675. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2676. } else {
  2677. MergeFrom(*source);
  2678. }
  2679. }
  2680. void packetc2l_receive_torpedo_guaranteed_award::MergeFrom(const packetc2l_receive_torpedo_guaranteed_award& from) {
  2681. GOOGLE_CHECK_NE(&from, this);
  2682. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2683. if (from.has_packet_id()) {
  2684. set_packet_id(from.packet_id());
  2685. }
  2686. if (from.has_ranktype()) {
  2687. set_ranktype(from.ranktype());
  2688. }
  2689. }
  2690. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  2691. }
  2692. void packetc2l_receive_torpedo_guaranteed_award::CopyFrom(const ::google::protobuf::Message& from) {
  2693. if (&from == this) return;
  2694. Clear();
  2695. MergeFrom(from);
  2696. }
  2697. void packetc2l_receive_torpedo_guaranteed_award::CopyFrom(const packetc2l_receive_torpedo_guaranteed_award& from) {
  2698. if (&from == this) return;
  2699. Clear();
  2700. MergeFrom(from);
  2701. }
  2702. bool packetc2l_receive_torpedo_guaranteed_award::IsInitialized() const {
  2703. return true;
  2704. }
  2705. void packetc2l_receive_torpedo_guaranteed_award::Swap(packetc2l_receive_torpedo_guaranteed_award* other) {
  2706. if (other != this) {
  2707. std::swap(packet_id_, other->packet_id_);
  2708. std::swap(ranktype_, other->ranktype_);
  2709. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2710. _unknown_fields_.Swap(&other->_unknown_fields_);
  2711. std::swap(_cached_size_, other->_cached_size_);
  2712. }
  2713. }
  2714. ::google::protobuf::Metadata packetc2l_receive_torpedo_guaranteed_award::GetMetadata() const {
  2715. protobuf_AssignDescriptorsOnce();
  2716. ::google::protobuf::Metadata metadata;
  2717. metadata.descriptor = packetc2l_receive_torpedo_guaranteed_award_descriptor_;
  2718. metadata.reflection = packetc2l_receive_torpedo_guaranteed_award_reflection_;
  2719. return metadata;
  2720. }
  2721. // ===================================================================
  2722. #ifndef _MSC_VER
  2723. const int packetl2c_receive_torpedo_guaranteed_award_result::kPacketIdFieldNumber;
  2724. const int packetl2c_receive_torpedo_guaranteed_award_result::kResultFieldNumber;
  2725. const int packetl2c_receive_torpedo_guaranteed_award_result::kRankTypeFieldNumber;
  2726. #endif // !_MSC_VER
  2727. packetl2c_receive_torpedo_guaranteed_award_result::packetl2c_receive_torpedo_guaranteed_award_result()
  2728. : ::google::protobuf::Message() {
  2729. SharedCtor();
  2730. }
  2731. void packetl2c_receive_torpedo_guaranteed_award_result::InitAsDefaultInstance() {
  2732. }
  2733. packetl2c_receive_torpedo_guaranteed_award_result::packetl2c_receive_torpedo_guaranteed_award_result(const packetl2c_receive_torpedo_guaranteed_award_result& from)
  2734. : ::google::protobuf::Message() {
  2735. SharedCtor();
  2736. MergeFrom(from);
  2737. }
  2738. void packetl2c_receive_torpedo_guaranteed_award_result::SharedCtor() {
  2739. _cached_size_ = 0;
  2740. packet_id_ = 16203;
  2741. result_ = 0;
  2742. ranktype_ = 0;
  2743. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2744. }
  2745. packetl2c_receive_torpedo_guaranteed_award_result::~packetl2c_receive_torpedo_guaranteed_award_result() {
  2746. SharedDtor();
  2747. }
  2748. void packetl2c_receive_torpedo_guaranteed_award_result::SharedDtor() {
  2749. if (this != default_instance_) {
  2750. }
  2751. }
  2752. void packetl2c_receive_torpedo_guaranteed_award_result::SetCachedSize(int size) const {
  2753. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2754. _cached_size_ = size;
  2755. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2756. }
  2757. const ::google::protobuf::Descriptor* packetl2c_receive_torpedo_guaranteed_award_result::descriptor() {
  2758. protobuf_AssignDescriptorsOnce();
  2759. return packetl2c_receive_torpedo_guaranteed_award_result_descriptor_;
  2760. }
  2761. const packetl2c_receive_torpedo_guaranteed_award_result& packetl2c_receive_torpedo_guaranteed_award_result::default_instance() {
  2762. if (default_instance_ == NULL) protobuf_AddDesc_fish_5factivity_2eproto();
  2763. return *default_instance_;
  2764. }
  2765. packetl2c_receive_torpedo_guaranteed_award_result* packetl2c_receive_torpedo_guaranteed_award_result::default_instance_ = NULL;
  2766. packetl2c_receive_torpedo_guaranteed_award_result* packetl2c_receive_torpedo_guaranteed_award_result::New() const {
  2767. return new packetl2c_receive_torpedo_guaranteed_award_result;
  2768. }
  2769. void packetl2c_receive_torpedo_guaranteed_award_result::Clear() {
  2770. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2771. packet_id_ = 16203;
  2772. result_ = 0;
  2773. ranktype_ = 0;
  2774. }
  2775. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2776. mutable_unknown_fields()->Clear();
  2777. }
  2778. bool packetl2c_receive_torpedo_guaranteed_award_result::MergePartialFromCodedStream(
  2779. ::google::protobuf::io::CodedInputStream* input) {
  2780. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  2781. ::google::protobuf::uint32 tag;
  2782. while ((tag = input->ReadTag()) != 0) {
  2783. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2784. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_receive_torpedo_guaranteed_award_result];
  2785. case 1: {
  2786. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2787. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2788. int value;
  2789. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2790. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2791. input, &value)));
  2792. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  2793. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  2794. } else {
  2795. mutable_unknown_fields()->AddVarint(1, value);
  2796. }
  2797. } else {
  2798. goto handle_uninterpreted;
  2799. }
  2800. if (input->ExpectTag(16)) goto parse_result;
  2801. break;
  2802. }
  2803. // optional int32 result = 2;
  2804. case 2: {
  2805. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2806. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2807. parse_result:
  2808. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2809. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2810. input, &result_)));
  2811. set_has_result();
  2812. } else {
  2813. goto handle_uninterpreted;
  2814. }
  2815. if (input->ExpectTag(24)) goto parse_rankType;
  2816. break;
  2817. }
  2818. // optional int32 rankType = 3;
  2819. case 3: {
  2820. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2821. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2822. parse_rankType:
  2823. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2824. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2825. input, &ranktype_)));
  2826. set_has_ranktype();
  2827. } else {
  2828. goto handle_uninterpreted;
  2829. }
  2830. if (input->ExpectAtEnd()) return true;
  2831. break;
  2832. }
  2833. default: {
  2834. handle_uninterpreted:
  2835. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2836. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2837. return true;
  2838. }
  2839. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2840. input, tag, mutable_unknown_fields()));
  2841. break;
  2842. }
  2843. }
  2844. }
  2845. return true;
  2846. #undef DO_
  2847. }
  2848. void packetl2c_receive_torpedo_guaranteed_award_result::SerializeWithCachedSizes(
  2849. ::google::protobuf::io::CodedOutputStream* output) const {
  2850. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_receive_torpedo_guaranteed_award_result];
  2851. if (has_packet_id()) {
  2852. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2853. 1, this->packet_id(), output);
  2854. }
  2855. // optional int32 result = 2;
  2856. if (has_result()) {
  2857. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->result(), output);
  2858. }
  2859. // optional int32 rankType = 3;
  2860. if (has_ranktype()) {
  2861. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->ranktype(), output);
  2862. }
  2863. if (!unknown_fields().empty()) {
  2864. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2865. unknown_fields(), output);
  2866. }
  2867. }
  2868. ::google::protobuf::uint8* packetl2c_receive_torpedo_guaranteed_award_result::SerializeWithCachedSizesToArray(
  2869. ::google::protobuf::uint8* target) const {
  2870. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_receive_torpedo_guaranteed_award_result];
  2871. if (has_packet_id()) {
  2872. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2873. 1, this->packet_id(), target);
  2874. }
  2875. // optional int32 result = 2;
  2876. if (has_result()) {
  2877. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->result(), target);
  2878. }
  2879. // optional int32 rankType = 3;
  2880. if (has_ranktype()) {
  2881. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->ranktype(), target);
  2882. }
  2883. if (!unknown_fields().empty()) {
  2884. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2885. unknown_fields(), target);
  2886. }
  2887. return target;
  2888. }
  2889. int packetl2c_receive_torpedo_guaranteed_award_result::ByteSize() const {
  2890. int total_size = 0;
  2891. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2892. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_receive_torpedo_guaranteed_award_result];
  2893. if (has_packet_id()) {
  2894. total_size += 1 +
  2895. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  2896. }
  2897. // optional int32 result = 2;
  2898. if (has_result()) {
  2899. total_size += 1 +
  2900. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2901. this->result());
  2902. }
  2903. // optional int32 rankType = 3;
  2904. if (has_ranktype()) {
  2905. total_size += 1 +
  2906. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2907. this->ranktype());
  2908. }
  2909. }
  2910. if (!unknown_fields().empty()) {
  2911. total_size +=
  2912. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2913. unknown_fields());
  2914. }
  2915. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2916. _cached_size_ = total_size;
  2917. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2918. return total_size;
  2919. }
  2920. void packetl2c_receive_torpedo_guaranteed_award_result::MergeFrom(const ::google::protobuf::Message& from) {
  2921. GOOGLE_CHECK_NE(&from, this);
  2922. const packetl2c_receive_torpedo_guaranteed_award_result* source =
  2923. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_receive_torpedo_guaranteed_award_result*>(
  2924. &from);
  2925. if (source == NULL) {
  2926. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2927. } else {
  2928. MergeFrom(*source);
  2929. }
  2930. }
  2931. void packetl2c_receive_torpedo_guaranteed_award_result::MergeFrom(const packetl2c_receive_torpedo_guaranteed_award_result& from) {
  2932. GOOGLE_CHECK_NE(&from, this);
  2933. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2934. if (from.has_packet_id()) {
  2935. set_packet_id(from.packet_id());
  2936. }
  2937. if (from.has_result()) {
  2938. set_result(from.result());
  2939. }
  2940. if (from.has_ranktype()) {
  2941. set_ranktype(from.ranktype());
  2942. }
  2943. }
  2944. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  2945. }
  2946. void packetl2c_receive_torpedo_guaranteed_award_result::CopyFrom(const ::google::protobuf::Message& from) {
  2947. if (&from == this) return;
  2948. Clear();
  2949. MergeFrom(from);
  2950. }
  2951. void packetl2c_receive_torpedo_guaranteed_award_result::CopyFrom(const packetl2c_receive_torpedo_guaranteed_award_result& from) {
  2952. if (&from == this) return;
  2953. Clear();
  2954. MergeFrom(from);
  2955. }
  2956. bool packetl2c_receive_torpedo_guaranteed_award_result::IsInitialized() const {
  2957. return true;
  2958. }
  2959. void packetl2c_receive_torpedo_guaranteed_award_result::Swap(packetl2c_receive_torpedo_guaranteed_award_result* other) {
  2960. if (other != this) {
  2961. std::swap(packet_id_, other->packet_id_);
  2962. std::swap(result_, other->result_);
  2963. std::swap(ranktype_, other->ranktype_);
  2964. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2965. _unknown_fields_.Swap(&other->_unknown_fields_);
  2966. std::swap(_cached_size_, other->_cached_size_);
  2967. }
  2968. }
  2969. ::google::protobuf::Metadata packetl2c_receive_torpedo_guaranteed_award_result::GetMetadata() const {
  2970. protobuf_AssignDescriptorsOnce();
  2971. ::google::protobuf::Metadata metadata;
  2972. metadata.descriptor = packetl2c_receive_torpedo_guaranteed_award_result_descriptor_;
  2973. metadata.reflection = packetl2c_receive_torpedo_guaranteed_award_result_reflection_;
  2974. return metadata;
  2975. }
  2976. // ===================================================================
  2977. #ifndef _MSC_VER
  2978. const int SummerDayLotteryInfo::kItemIdFieldNumber;
  2979. const int SummerDayLotteryInfo::kItemCountFieldNumber;
  2980. #endif // !_MSC_VER
  2981. SummerDayLotteryInfo::SummerDayLotteryInfo()
  2982. : ::google::protobuf::Message() {
  2983. SharedCtor();
  2984. }
  2985. void SummerDayLotteryInfo::InitAsDefaultInstance() {
  2986. }
  2987. SummerDayLotteryInfo::SummerDayLotteryInfo(const SummerDayLotteryInfo& from)
  2988. : ::google::protobuf::Message() {
  2989. SharedCtor();
  2990. MergeFrom(from);
  2991. }
  2992. void SummerDayLotteryInfo::SharedCtor() {
  2993. _cached_size_ = 0;
  2994. itemid_ = 0;
  2995. itemcount_ = 0;
  2996. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2997. }
  2998. SummerDayLotteryInfo::~SummerDayLotteryInfo() {
  2999. SharedDtor();
  3000. }
  3001. void SummerDayLotteryInfo::SharedDtor() {
  3002. if (this != default_instance_) {
  3003. }
  3004. }
  3005. void SummerDayLotteryInfo::SetCachedSize(int size) const {
  3006. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3007. _cached_size_ = size;
  3008. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3009. }
  3010. const ::google::protobuf::Descriptor* SummerDayLotteryInfo::descriptor() {
  3011. protobuf_AssignDescriptorsOnce();
  3012. return SummerDayLotteryInfo_descriptor_;
  3013. }
  3014. const SummerDayLotteryInfo& SummerDayLotteryInfo::default_instance() {
  3015. if (default_instance_ == NULL) protobuf_AddDesc_fish_5factivity_2eproto();
  3016. return *default_instance_;
  3017. }
  3018. SummerDayLotteryInfo* SummerDayLotteryInfo::default_instance_ = NULL;
  3019. SummerDayLotteryInfo* SummerDayLotteryInfo::New() const {
  3020. return new SummerDayLotteryInfo;
  3021. }
  3022. void SummerDayLotteryInfo::Clear() {
  3023. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3024. itemid_ = 0;
  3025. itemcount_ = 0;
  3026. }
  3027. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3028. mutable_unknown_fields()->Clear();
  3029. }
  3030. bool SummerDayLotteryInfo::MergePartialFromCodedStream(
  3031. ::google::protobuf::io::CodedInputStream* input) {
  3032. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  3033. ::google::protobuf::uint32 tag;
  3034. while ((tag = input->ReadTag()) != 0) {
  3035. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3036. // optional int32 itemId = 1;
  3037. case 1: {
  3038. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3039. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3040. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3041. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3042. input, &itemid_)));
  3043. set_has_itemid();
  3044. } else {
  3045. goto handle_uninterpreted;
  3046. }
  3047. if (input->ExpectTag(16)) goto parse_itemCount;
  3048. break;
  3049. }
  3050. // optional int32 itemCount = 2;
  3051. case 2: {
  3052. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3053. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3054. parse_itemCount:
  3055. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3056. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3057. input, &itemcount_)));
  3058. set_has_itemcount();
  3059. } else {
  3060. goto handle_uninterpreted;
  3061. }
  3062. if (input->ExpectAtEnd()) return true;
  3063. break;
  3064. }
  3065. default: {
  3066. handle_uninterpreted:
  3067. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3068. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  3069. return true;
  3070. }
  3071. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3072. input, tag, mutable_unknown_fields()));
  3073. break;
  3074. }
  3075. }
  3076. }
  3077. return true;
  3078. #undef DO_
  3079. }
  3080. void SummerDayLotteryInfo::SerializeWithCachedSizes(
  3081. ::google::protobuf::io::CodedOutputStream* output) const {
  3082. // optional int32 itemId = 1;
  3083. if (has_itemid()) {
  3084. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->itemid(), output);
  3085. }
  3086. // optional int32 itemCount = 2;
  3087. if (has_itemcount()) {
  3088. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->itemcount(), output);
  3089. }
  3090. if (!unknown_fields().empty()) {
  3091. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3092. unknown_fields(), output);
  3093. }
  3094. }
  3095. ::google::protobuf::uint8* SummerDayLotteryInfo::SerializeWithCachedSizesToArray(
  3096. ::google::protobuf::uint8* target) const {
  3097. // optional int32 itemId = 1;
  3098. if (has_itemid()) {
  3099. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->itemid(), target);
  3100. }
  3101. // optional int32 itemCount = 2;
  3102. if (has_itemcount()) {
  3103. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->itemcount(), target);
  3104. }
  3105. if (!unknown_fields().empty()) {
  3106. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3107. unknown_fields(), target);
  3108. }
  3109. return target;
  3110. }
  3111. int SummerDayLotteryInfo::ByteSize() const {
  3112. int total_size = 0;
  3113. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3114. // optional int32 itemId = 1;
  3115. if (has_itemid()) {
  3116. total_size += 1 +
  3117. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3118. this->itemid());
  3119. }
  3120. // optional int32 itemCount = 2;
  3121. if (has_itemcount()) {
  3122. total_size += 1 +
  3123. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3124. this->itemcount());
  3125. }
  3126. }
  3127. if (!unknown_fields().empty()) {
  3128. total_size +=
  3129. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3130. unknown_fields());
  3131. }
  3132. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3133. _cached_size_ = total_size;
  3134. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3135. return total_size;
  3136. }
  3137. void SummerDayLotteryInfo::MergeFrom(const ::google::protobuf::Message& from) {
  3138. GOOGLE_CHECK_NE(&from, this);
  3139. const SummerDayLotteryInfo* source =
  3140. ::google::protobuf::internal::dynamic_cast_if_available<const SummerDayLotteryInfo*>(
  3141. &from);
  3142. if (source == NULL) {
  3143. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3144. } else {
  3145. MergeFrom(*source);
  3146. }
  3147. }
  3148. void SummerDayLotteryInfo::MergeFrom(const SummerDayLotteryInfo& from) {
  3149. GOOGLE_CHECK_NE(&from, this);
  3150. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3151. if (from.has_itemid()) {
  3152. set_itemid(from.itemid());
  3153. }
  3154. if (from.has_itemcount()) {
  3155. set_itemcount(from.itemcount());
  3156. }
  3157. }
  3158. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  3159. }
  3160. void SummerDayLotteryInfo::CopyFrom(const ::google::protobuf::Message& from) {
  3161. if (&from == this) return;
  3162. Clear();
  3163. MergeFrom(from);
  3164. }
  3165. void SummerDayLotteryInfo::CopyFrom(const SummerDayLotteryInfo& from) {
  3166. if (&from == this) return;
  3167. Clear();
  3168. MergeFrom(from);
  3169. }
  3170. bool SummerDayLotteryInfo::IsInitialized() const {
  3171. return true;
  3172. }
  3173. void SummerDayLotteryInfo::Swap(SummerDayLotteryInfo* other) {
  3174. if (other != this) {
  3175. std::swap(itemid_, other->itemid_);
  3176. std::swap(itemcount_, other->itemcount_);
  3177. std::swap(_has_bits_[0], other->_has_bits_[0]);
  3178. _unknown_fields_.Swap(&other->_unknown_fields_);
  3179. std::swap(_cached_size_, other->_cached_size_);
  3180. }
  3181. }
  3182. ::google::protobuf::Metadata SummerDayLotteryInfo::GetMetadata() const {
  3183. protobuf_AssignDescriptorsOnce();
  3184. ::google::protobuf::Metadata metadata;
  3185. metadata.descriptor = SummerDayLotteryInfo_descriptor_;
  3186. metadata.reflection = SummerDayLotteryInfo_reflection_;
  3187. return metadata;
  3188. }
  3189. // ===================================================================
  3190. #ifndef _MSC_VER
  3191. const int packetc2l_start_Sd_Lottery::kPacketIdFieldNumber;
  3192. const int packetc2l_start_Sd_Lottery::kTypeFieldNumber;
  3193. const int packetc2l_start_Sd_Lottery::kTimeFieldNumber;
  3194. #endif // !_MSC_VER
  3195. packetc2l_start_Sd_Lottery::packetc2l_start_Sd_Lottery()
  3196. : ::google::protobuf::Message() {
  3197. SharedCtor();
  3198. }
  3199. void packetc2l_start_Sd_Lottery::InitAsDefaultInstance() {
  3200. }
  3201. packetc2l_start_Sd_Lottery::packetc2l_start_Sd_Lottery(const packetc2l_start_Sd_Lottery& from)
  3202. : ::google::protobuf::Message() {
  3203. SharedCtor();
  3204. MergeFrom(from);
  3205. }
  3206. void packetc2l_start_Sd_Lottery::SharedCtor() {
  3207. _cached_size_ = 0;
  3208. packet_id_ = 10177;
  3209. type_ = 0;
  3210. time_ = 0;
  3211. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3212. }
  3213. packetc2l_start_Sd_Lottery::~packetc2l_start_Sd_Lottery() {
  3214. SharedDtor();
  3215. }
  3216. void packetc2l_start_Sd_Lottery::SharedDtor() {
  3217. if (this != default_instance_) {
  3218. }
  3219. }
  3220. void packetc2l_start_Sd_Lottery::SetCachedSize(int size) const {
  3221. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3222. _cached_size_ = size;
  3223. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3224. }
  3225. const ::google::protobuf::Descriptor* packetc2l_start_Sd_Lottery::descriptor() {
  3226. protobuf_AssignDescriptorsOnce();
  3227. return packetc2l_start_Sd_Lottery_descriptor_;
  3228. }
  3229. const packetc2l_start_Sd_Lottery& packetc2l_start_Sd_Lottery::default_instance() {
  3230. if (default_instance_ == NULL) protobuf_AddDesc_fish_5factivity_2eproto();
  3231. return *default_instance_;
  3232. }
  3233. packetc2l_start_Sd_Lottery* packetc2l_start_Sd_Lottery::default_instance_ = NULL;
  3234. packetc2l_start_Sd_Lottery* packetc2l_start_Sd_Lottery::New() const {
  3235. return new packetc2l_start_Sd_Lottery;
  3236. }
  3237. void packetc2l_start_Sd_Lottery::Clear() {
  3238. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3239. packet_id_ = 10177;
  3240. type_ = 0;
  3241. time_ = 0;
  3242. }
  3243. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3244. mutable_unknown_fields()->Clear();
  3245. }
  3246. bool packetc2l_start_Sd_Lottery::MergePartialFromCodedStream(
  3247. ::google::protobuf::io::CodedInputStream* input) {
  3248. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  3249. ::google::protobuf::uint32 tag;
  3250. while ((tag = input->ReadTag()) != 0) {
  3251. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3252. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_start_Sd_Lottery];
  3253. case 1: {
  3254. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3255. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3256. int value;
  3257. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3258. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3259. input, &value)));
  3260. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  3261. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  3262. } else {
  3263. mutable_unknown_fields()->AddVarint(1, value);
  3264. }
  3265. } else {
  3266. goto handle_uninterpreted;
  3267. }
  3268. if (input->ExpectTag(16)) goto parse_type;
  3269. break;
  3270. }
  3271. // optional int32 type = 2;
  3272. case 2: {
  3273. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3274. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3275. parse_type:
  3276. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3277. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3278. input, &type_)));
  3279. set_has_type();
  3280. } else {
  3281. goto handle_uninterpreted;
  3282. }
  3283. if (input->ExpectTag(24)) goto parse_time;
  3284. break;
  3285. }
  3286. // optional int32 time = 3;
  3287. case 3: {
  3288. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3289. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3290. parse_time:
  3291. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3292. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3293. input, &time_)));
  3294. set_has_time();
  3295. } else {
  3296. goto handle_uninterpreted;
  3297. }
  3298. if (input->ExpectAtEnd()) return true;
  3299. break;
  3300. }
  3301. default: {
  3302. handle_uninterpreted:
  3303. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3304. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  3305. return true;
  3306. }
  3307. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3308. input, tag, mutable_unknown_fields()));
  3309. break;
  3310. }
  3311. }
  3312. }
  3313. return true;
  3314. #undef DO_
  3315. }
  3316. void packetc2l_start_Sd_Lottery::SerializeWithCachedSizes(
  3317. ::google::protobuf::io::CodedOutputStream* output) const {
  3318. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_start_Sd_Lottery];
  3319. if (has_packet_id()) {
  3320. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3321. 1, this->packet_id(), output);
  3322. }
  3323. // optional int32 type = 2;
  3324. if (has_type()) {
  3325. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->type(), output);
  3326. }
  3327. // optional int32 time = 3;
  3328. if (has_time()) {
  3329. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->time(), output);
  3330. }
  3331. if (!unknown_fields().empty()) {
  3332. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3333. unknown_fields(), output);
  3334. }
  3335. }
  3336. ::google::protobuf::uint8* packetc2l_start_Sd_Lottery::SerializeWithCachedSizesToArray(
  3337. ::google::protobuf::uint8* target) const {
  3338. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_start_Sd_Lottery];
  3339. if (has_packet_id()) {
  3340. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3341. 1, this->packet_id(), target);
  3342. }
  3343. // optional int32 type = 2;
  3344. if (has_type()) {
  3345. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->type(), target);
  3346. }
  3347. // optional int32 time = 3;
  3348. if (has_time()) {
  3349. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->time(), target);
  3350. }
  3351. if (!unknown_fields().empty()) {
  3352. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3353. unknown_fields(), target);
  3354. }
  3355. return target;
  3356. }
  3357. int packetc2l_start_Sd_Lottery::ByteSize() const {
  3358. int total_size = 0;
  3359. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3360. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_start_Sd_Lottery];
  3361. if (has_packet_id()) {
  3362. total_size += 1 +
  3363. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  3364. }
  3365. // optional int32 type = 2;
  3366. if (has_type()) {
  3367. total_size += 1 +
  3368. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3369. this->type());
  3370. }
  3371. // optional int32 time = 3;
  3372. if (has_time()) {
  3373. total_size += 1 +
  3374. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3375. this->time());
  3376. }
  3377. }
  3378. if (!unknown_fields().empty()) {
  3379. total_size +=
  3380. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3381. unknown_fields());
  3382. }
  3383. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3384. _cached_size_ = total_size;
  3385. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3386. return total_size;
  3387. }
  3388. void packetc2l_start_Sd_Lottery::MergeFrom(const ::google::protobuf::Message& from) {
  3389. GOOGLE_CHECK_NE(&from, this);
  3390. const packetc2l_start_Sd_Lottery* source =
  3391. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_start_Sd_Lottery*>(
  3392. &from);
  3393. if (source == NULL) {
  3394. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3395. } else {
  3396. MergeFrom(*source);
  3397. }
  3398. }
  3399. void packetc2l_start_Sd_Lottery::MergeFrom(const packetc2l_start_Sd_Lottery& from) {
  3400. GOOGLE_CHECK_NE(&from, this);
  3401. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3402. if (from.has_packet_id()) {
  3403. set_packet_id(from.packet_id());
  3404. }
  3405. if (from.has_type()) {
  3406. set_type(from.type());
  3407. }
  3408. if (from.has_time()) {
  3409. set_time(from.time());
  3410. }
  3411. }
  3412. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  3413. }
  3414. void packetc2l_start_Sd_Lottery::CopyFrom(const ::google::protobuf::Message& from) {
  3415. if (&from == this) return;
  3416. Clear();
  3417. MergeFrom(from);
  3418. }
  3419. void packetc2l_start_Sd_Lottery::CopyFrom(const packetc2l_start_Sd_Lottery& from) {
  3420. if (&from == this) return;
  3421. Clear();
  3422. MergeFrom(from);
  3423. }
  3424. bool packetc2l_start_Sd_Lottery::IsInitialized() const {
  3425. return true;
  3426. }
  3427. void packetc2l_start_Sd_Lottery::Swap(packetc2l_start_Sd_Lottery* other) {
  3428. if (other != this) {
  3429. std::swap(packet_id_, other->packet_id_);
  3430. std::swap(type_, other->type_);
  3431. std::swap(time_, other->time_);
  3432. std::swap(_has_bits_[0], other->_has_bits_[0]);
  3433. _unknown_fields_.Swap(&other->_unknown_fields_);
  3434. std::swap(_cached_size_, other->_cached_size_);
  3435. }
  3436. }
  3437. ::google::protobuf::Metadata packetc2l_start_Sd_Lottery::GetMetadata() const {
  3438. protobuf_AssignDescriptorsOnce();
  3439. ::google::protobuf::Metadata metadata;
  3440. metadata.descriptor = packetc2l_start_Sd_Lottery_descriptor_;
  3441. metadata.reflection = packetc2l_start_Sd_Lottery_reflection_;
  3442. return metadata;
  3443. }
  3444. // ===================================================================
  3445. #ifndef _MSC_VER
  3446. const int packetl2c_start_Sd_Lottery_result::kPacketIdFieldNumber;
  3447. const int packetl2c_start_Sd_Lottery_result::kResultFieldNumber;
  3448. const int packetl2c_start_Sd_Lottery_result::kTypeFieldNumber;
  3449. const int packetl2c_start_Sd_Lottery_result::kTimeFieldNumber;
  3450. const int packetl2c_start_Sd_Lottery_result::kRewardIdFieldNumber;
  3451. #endif // !_MSC_VER
  3452. packetl2c_start_Sd_Lottery_result::packetl2c_start_Sd_Lottery_result()
  3453. : ::google::protobuf::Message() {
  3454. SharedCtor();
  3455. }
  3456. void packetl2c_start_Sd_Lottery_result::InitAsDefaultInstance() {
  3457. }
  3458. packetl2c_start_Sd_Lottery_result::packetl2c_start_Sd_Lottery_result(const packetl2c_start_Sd_Lottery_result& from)
  3459. : ::google::protobuf::Message() {
  3460. SharedCtor();
  3461. MergeFrom(from);
  3462. }
  3463. void packetl2c_start_Sd_Lottery_result::SharedCtor() {
  3464. _cached_size_ = 0;
  3465. packet_id_ = 16170;
  3466. result_ = 0;
  3467. type_ = 0;
  3468. time_ = 0;
  3469. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3470. }
  3471. packetl2c_start_Sd_Lottery_result::~packetl2c_start_Sd_Lottery_result() {
  3472. SharedDtor();
  3473. }
  3474. void packetl2c_start_Sd_Lottery_result::SharedDtor() {
  3475. if (this != default_instance_) {
  3476. }
  3477. }
  3478. void packetl2c_start_Sd_Lottery_result::SetCachedSize(int size) const {
  3479. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3480. _cached_size_ = size;
  3481. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3482. }
  3483. const ::google::protobuf::Descriptor* packetl2c_start_Sd_Lottery_result::descriptor() {
  3484. protobuf_AssignDescriptorsOnce();
  3485. return packetl2c_start_Sd_Lottery_result_descriptor_;
  3486. }
  3487. const packetl2c_start_Sd_Lottery_result& packetl2c_start_Sd_Lottery_result::default_instance() {
  3488. if (default_instance_ == NULL) protobuf_AddDesc_fish_5factivity_2eproto();
  3489. return *default_instance_;
  3490. }
  3491. packetl2c_start_Sd_Lottery_result* packetl2c_start_Sd_Lottery_result::default_instance_ = NULL;
  3492. packetl2c_start_Sd_Lottery_result* packetl2c_start_Sd_Lottery_result::New() const {
  3493. return new packetl2c_start_Sd_Lottery_result;
  3494. }
  3495. void packetl2c_start_Sd_Lottery_result::Clear() {
  3496. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3497. packet_id_ = 16170;
  3498. result_ = 0;
  3499. type_ = 0;
  3500. time_ = 0;
  3501. }
  3502. rewardid_.Clear();
  3503. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3504. mutable_unknown_fields()->Clear();
  3505. }
  3506. bool packetl2c_start_Sd_Lottery_result::MergePartialFromCodedStream(
  3507. ::google::protobuf::io::CodedInputStream* input) {
  3508. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  3509. ::google::protobuf::uint32 tag;
  3510. while ((tag = input->ReadTag()) != 0) {
  3511. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3512. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_start_Sd_Lottery_result];
  3513. case 1: {
  3514. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3515. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3516. int value;
  3517. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3518. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3519. input, &value)));
  3520. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  3521. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  3522. } else {
  3523. mutable_unknown_fields()->AddVarint(1, value);
  3524. }
  3525. } else {
  3526. goto handle_uninterpreted;
  3527. }
  3528. if (input->ExpectTag(16)) goto parse_result;
  3529. break;
  3530. }
  3531. // optional int32 result = 2;
  3532. case 2: {
  3533. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3534. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3535. parse_result:
  3536. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3537. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3538. input, &result_)));
  3539. set_has_result();
  3540. } else {
  3541. goto handle_uninterpreted;
  3542. }
  3543. if (input->ExpectTag(24)) goto parse_type;
  3544. break;
  3545. }
  3546. // optional int32 type = 3;
  3547. case 3: {
  3548. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3549. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3550. parse_type:
  3551. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3552. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3553. input, &type_)));
  3554. set_has_type();
  3555. } else {
  3556. goto handle_uninterpreted;
  3557. }
  3558. if (input->ExpectTag(32)) goto parse_time;
  3559. break;
  3560. }
  3561. // optional int32 time = 4;
  3562. case 4: {
  3563. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3564. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3565. parse_time:
  3566. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3567. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3568. input, &time_)));
  3569. set_has_time();
  3570. } else {
  3571. goto handle_uninterpreted;
  3572. }
  3573. if (input->ExpectTag(40)) goto parse_rewardId;
  3574. break;
  3575. }
  3576. // repeated int32 rewardId = 5;
  3577. case 5: {
  3578. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3579. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3580. parse_rewardId:
  3581. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
  3582. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3583. 1, 40, input, this->mutable_rewardid())));
  3584. } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
  3585. == ::google::protobuf::internal::WireFormatLite::
  3586. WIRETYPE_LENGTH_DELIMITED) {
  3587. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
  3588. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3589. input, this->mutable_rewardid())));
  3590. } else {
  3591. goto handle_uninterpreted;
  3592. }
  3593. if (input->ExpectTag(40)) goto parse_rewardId;
  3594. if (input->ExpectAtEnd()) return true;
  3595. break;
  3596. }
  3597. default: {
  3598. handle_uninterpreted:
  3599. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3600. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  3601. return true;
  3602. }
  3603. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3604. input, tag, mutable_unknown_fields()));
  3605. break;
  3606. }
  3607. }
  3608. }
  3609. return true;
  3610. #undef DO_
  3611. }
  3612. void packetl2c_start_Sd_Lottery_result::SerializeWithCachedSizes(
  3613. ::google::protobuf::io::CodedOutputStream* output) const {
  3614. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_start_Sd_Lottery_result];
  3615. if (has_packet_id()) {
  3616. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3617. 1, this->packet_id(), output);
  3618. }
  3619. // optional int32 result = 2;
  3620. if (has_result()) {
  3621. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->result(), output);
  3622. }
  3623. // optional int32 type = 3;
  3624. if (has_type()) {
  3625. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->type(), output);
  3626. }
  3627. // optional int32 time = 4;
  3628. if (has_time()) {
  3629. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->time(), output);
  3630. }
  3631. // repeated int32 rewardId = 5;
  3632. for (int i = 0; i < this->rewardid_size(); i++) {
  3633. ::google::protobuf::internal::WireFormatLite::WriteInt32(
  3634. 5, this->rewardid(i), output);
  3635. }
  3636. if (!unknown_fields().empty()) {
  3637. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3638. unknown_fields(), output);
  3639. }
  3640. }
  3641. ::google::protobuf::uint8* packetl2c_start_Sd_Lottery_result::SerializeWithCachedSizesToArray(
  3642. ::google::protobuf::uint8* target) const {
  3643. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_start_Sd_Lottery_result];
  3644. if (has_packet_id()) {
  3645. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3646. 1, this->packet_id(), target);
  3647. }
  3648. // optional int32 result = 2;
  3649. if (has_result()) {
  3650. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->result(), target);
  3651. }
  3652. // optional int32 type = 3;
  3653. if (has_type()) {
  3654. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->type(), target);
  3655. }
  3656. // optional int32 time = 4;
  3657. if (has_time()) {
  3658. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->time(), target);
  3659. }
  3660. // repeated int32 rewardId = 5;
  3661. for (int i = 0; i < this->rewardid_size(); i++) {
  3662. target = ::google::protobuf::internal::WireFormatLite::
  3663. WriteInt32ToArray(5, this->rewardid(i), target);
  3664. }
  3665. if (!unknown_fields().empty()) {
  3666. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3667. unknown_fields(), target);
  3668. }
  3669. return target;
  3670. }
  3671. int packetl2c_start_Sd_Lottery_result::ByteSize() const {
  3672. int total_size = 0;
  3673. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3674. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_start_Sd_Lottery_result];
  3675. if (has_packet_id()) {
  3676. total_size += 1 +
  3677. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  3678. }
  3679. // optional int32 result = 2;
  3680. if (has_result()) {
  3681. total_size += 1 +
  3682. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3683. this->result());
  3684. }
  3685. // optional int32 type = 3;
  3686. if (has_type()) {
  3687. total_size += 1 +
  3688. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3689. this->type());
  3690. }
  3691. // optional int32 time = 4;
  3692. if (has_time()) {
  3693. total_size += 1 +
  3694. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3695. this->time());
  3696. }
  3697. }
  3698. // repeated int32 rewardId = 5;
  3699. {
  3700. int data_size = 0;
  3701. for (int i = 0; i < this->rewardid_size(); i++) {
  3702. data_size += ::google::protobuf::internal::WireFormatLite::
  3703. Int32Size(this->rewardid(i));
  3704. }
  3705. total_size += 1 * this->rewardid_size() + data_size;
  3706. }
  3707. if (!unknown_fields().empty()) {
  3708. total_size +=
  3709. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3710. unknown_fields());
  3711. }
  3712. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3713. _cached_size_ = total_size;
  3714. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3715. return total_size;
  3716. }
  3717. void packetl2c_start_Sd_Lottery_result::MergeFrom(const ::google::protobuf::Message& from) {
  3718. GOOGLE_CHECK_NE(&from, this);
  3719. const packetl2c_start_Sd_Lottery_result* source =
  3720. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_start_Sd_Lottery_result*>(
  3721. &from);
  3722. if (source == NULL) {
  3723. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3724. } else {
  3725. MergeFrom(*source);
  3726. }
  3727. }
  3728. void packetl2c_start_Sd_Lottery_result::MergeFrom(const packetl2c_start_Sd_Lottery_result& from) {
  3729. GOOGLE_CHECK_NE(&from, this);
  3730. rewardid_.MergeFrom(from.rewardid_);
  3731. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3732. if (from.has_packet_id()) {
  3733. set_packet_id(from.packet_id());
  3734. }
  3735. if (from.has_result()) {
  3736. set_result(from.result());
  3737. }
  3738. if (from.has_type()) {
  3739. set_type(from.type());
  3740. }
  3741. if (from.has_time()) {
  3742. set_time(from.time());
  3743. }
  3744. }
  3745. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  3746. }
  3747. void packetl2c_start_Sd_Lottery_result::CopyFrom(const ::google::protobuf::Message& from) {
  3748. if (&from == this) return;
  3749. Clear();
  3750. MergeFrom(from);
  3751. }
  3752. void packetl2c_start_Sd_Lottery_result::CopyFrom(const packetl2c_start_Sd_Lottery_result& from) {
  3753. if (&from == this) return;
  3754. Clear();
  3755. MergeFrom(from);
  3756. }
  3757. bool packetl2c_start_Sd_Lottery_result::IsInitialized() const {
  3758. return true;
  3759. }
  3760. void packetl2c_start_Sd_Lottery_result::Swap(packetl2c_start_Sd_Lottery_result* other) {
  3761. if (other != this) {
  3762. std::swap(packet_id_, other->packet_id_);
  3763. std::swap(result_, other->result_);
  3764. std::swap(type_, other->type_);
  3765. std::swap(time_, other->time_);
  3766. rewardid_.Swap(&other->rewardid_);
  3767. std::swap(_has_bits_[0], other->_has_bits_[0]);
  3768. _unknown_fields_.Swap(&other->_unknown_fields_);
  3769. std::swap(_cached_size_, other->_cached_size_);
  3770. }
  3771. }
  3772. ::google::protobuf::Metadata packetl2c_start_Sd_Lottery_result::GetMetadata() const {
  3773. protobuf_AssignDescriptorsOnce();
  3774. ::google::protobuf::Metadata metadata;
  3775. metadata.descriptor = packetl2c_start_Sd_Lottery_result_descriptor_;
  3776. metadata.reflection = packetl2c_start_Sd_Lottery_result_reflection_;
  3777. return metadata;
  3778. }
  3779. // ===================================================================
  3780. #ifndef _MSC_VER
  3781. const int packetl2c_activity_item_change::kPacketIdFieldNumber;
  3782. const int packetl2c_activity_item_change::kItemidFieldNumber;
  3783. const int packetl2c_activity_item_change::kItemcountFieldNumber;
  3784. #endif // !_MSC_VER
  3785. packetl2c_activity_item_change::packetl2c_activity_item_change()
  3786. : ::google::protobuf::Message() {
  3787. SharedCtor();
  3788. }
  3789. void packetl2c_activity_item_change::InitAsDefaultInstance() {
  3790. }
  3791. packetl2c_activity_item_change::packetl2c_activity_item_change(const packetl2c_activity_item_change& from)
  3792. : ::google::protobuf::Message() {
  3793. SharedCtor();
  3794. MergeFrom(from);
  3795. }
  3796. void packetl2c_activity_item_change::SharedCtor() {
  3797. _cached_size_ = 0;
  3798. packet_id_ = 16172;
  3799. itemid_ = 0;
  3800. itemcount_ = 0;
  3801. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3802. }
  3803. packetl2c_activity_item_change::~packetl2c_activity_item_change() {
  3804. SharedDtor();
  3805. }
  3806. void packetl2c_activity_item_change::SharedDtor() {
  3807. if (this != default_instance_) {
  3808. }
  3809. }
  3810. void packetl2c_activity_item_change::SetCachedSize(int size) const {
  3811. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3812. _cached_size_ = size;
  3813. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3814. }
  3815. const ::google::protobuf::Descriptor* packetl2c_activity_item_change::descriptor() {
  3816. protobuf_AssignDescriptorsOnce();
  3817. return packetl2c_activity_item_change_descriptor_;
  3818. }
  3819. const packetl2c_activity_item_change& packetl2c_activity_item_change::default_instance() {
  3820. if (default_instance_ == NULL) protobuf_AddDesc_fish_5factivity_2eproto();
  3821. return *default_instance_;
  3822. }
  3823. packetl2c_activity_item_change* packetl2c_activity_item_change::default_instance_ = NULL;
  3824. packetl2c_activity_item_change* packetl2c_activity_item_change::New() const {
  3825. return new packetl2c_activity_item_change;
  3826. }
  3827. void packetl2c_activity_item_change::Clear() {
  3828. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3829. packet_id_ = 16172;
  3830. itemid_ = 0;
  3831. itemcount_ = 0;
  3832. }
  3833. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3834. mutable_unknown_fields()->Clear();
  3835. }
  3836. bool packetl2c_activity_item_change::MergePartialFromCodedStream(
  3837. ::google::protobuf::io::CodedInputStream* input) {
  3838. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  3839. ::google::protobuf::uint32 tag;
  3840. while ((tag = input->ReadTag()) != 0) {
  3841. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3842. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_activity_item_change];
  3843. case 1: {
  3844. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3845. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3846. int value;
  3847. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3848. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3849. input, &value)));
  3850. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  3851. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  3852. } else {
  3853. mutable_unknown_fields()->AddVarint(1, value);
  3854. }
  3855. } else {
  3856. goto handle_uninterpreted;
  3857. }
  3858. if (input->ExpectTag(16)) goto parse_itemid;
  3859. break;
  3860. }
  3861. // optional int32 itemid = 2;
  3862. case 2: {
  3863. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3864. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3865. parse_itemid:
  3866. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3867. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3868. input, &itemid_)));
  3869. set_has_itemid();
  3870. } else {
  3871. goto handle_uninterpreted;
  3872. }
  3873. if (input->ExpectTag(24)) goto parse_itemcount;
  3874. break;
  3875. }
  3876. // optional int32 itemcount = 3;
  3877. case 3: {
  3878. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3879. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3880. parse_itemcount:
  3881. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3882. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3883. input, &itemcount_)));
  3884. set_has_itemcount();
  3885. } else {
  3886. goto handle_uninterpreted;
  3887. }
  3888. if (input->ExpectAtEnd()) return true;
  3889. break;
  3890. }
  3891. default: {
  3892. handle_uninterpreted:
  3893. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3894. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  3895. return true;
  3896. }
  3897. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3898. input, tag, mutable_unknown_fields()));
  3899. break;
  3900. }
  3901. }
  3902. }
  3903. return true;
  3904. #undef DO_
  3905. }
  3906. void packetl2c_activity_item_change::SerializeWithCachedSizes(
  3907. ::google::protobuf::io::CodedOutputStream* output) const {
  3908. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_activity_item_change];
  3909. if (has_packet_id()) {
  3910. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3911. 1, this->packet_id(), output);
  3912. }
  3913. // optional int32 itemid = 2;
  3914. if (has_itemid()) {
  3915. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->itemid(), output);
  3916. }
  3917. // optional int32 itemcount = 3;
  3918. if (has_itemcount()) {
  3919. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->itemcount(), output);
  3920. }
  3921. if (!unknown_fields().empty()) {
  3922. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3923. unknown_fields(), output);
  3924. }
  3925. }
  3926. ::google::protobuf::uint8* packetl2c_activity_item_change::SerializeWithCachedSizesToArray(
  3927. ::google::protobuf::uint8* target) const {
  3928. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_activity_item_change];
  3929. if (has_packet_id()) {
  3930. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3931. 1, this->packet_id(), target);
  3932. }
  3933. // optional int32 itemid = 2;
  3934. if (has_itemid()) {
  3935. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->itemid(), target);
  3936. }
  3937. // optional int32 itemcount = 3;
  3938. if (has_itemcount()) {
  3939. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->itemcount(), target);
  3940. }
  3941. if (!unknown_fields().empty()) {
  3942. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3943. unknown_fields(), target);
  3944. }
  3945. return target;
  3946. }
  3947. int packetl2c_activity_item_change::ByteSize() const {
  3948. int total_size = 0;
  3949. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3950. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_activity_item_change];
  3951. if (has_packet_id()) {
  3952. total_size += 1 +
  3953. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  3954. }
  3955. // optional int32 itemid = 2;
  3956. if (has_itemid()) {
  3957. total_size += 1 +
  3958. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3959. this->itemid());
  3960. }
  3961. // optional int32 itemcount = 3;
  3962. if (has_itemcount()) {
  3963. total_size += 1 +
  3964. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3965. this->itemcount());
  3966. }
  3967. }
  3968. if (!unknown_fields().empty()) {
  3969. total_size +=
  3970. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3971. unknown_fields());
  3972. }
  3973. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3974. _cached_size_ = total_size;
  3975. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3976. return total_size;
  3977. }
  3978. void packetl2c_activity_item_change::MergeFrom(const ::google::protobuf::Message& from) {
  3979. GOOGLE_CHECK_NE(&from, this);
  3980. const packetl2c_activity_item_change* source =
  3981. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_activity_item_change*>(
  3982. &from);
  3983. if (source == NULL) {
  3984. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3985. } else {
  3986. MergeFrom(*source);
  3987. }
  3988. }
  3989. void packetl2c_activity_item_change::MergeFrom(const packetl2c_activity_item_change& from) {
  3990. GOOGLE_CHECK_NE(&from, this);
  3991. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3992. if (from.has_packet_id()) {
  3993. set_packet_id(from.packet_id());
  3994. }
  3995. if (from.has_itemid()) {
  3996. set_itemid(from.itemid());
  3997. }
  3998. if (from.has_itemcount()) {
  3999. set_itemcount(from.itemcount());
  4000. }
  4001. }
  4002. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  4003. }
  4004. void packetl2c_activity_item_change::CopyFrom(const ::google::protobuf::Message& from) {
  4005. if (&from == this) return;
  4006. Clear();
  4007. MergeFrom(from);
  4008. }
  4009. void packetl2c_activity_item_change::CopyFrom(const packetl2c_activity_item_change& from) {
  4010. if (&from == this) return;
  4011. Clear();
  4012. MergeFrom(from);
  4013. }
  4014. bool packetl2c_activity_item_change::IsInitialized() const {
  4015. return true;
  4016. }
  4017. void packetl2c_activity_item_change::Swap(packetl2c_activity_item_change* other) {
  4018. if (other != this) {
  4019. std::swap(packet_id_, other->packet_id_);
  4020. std::swap(itemid_, other->itemid_);
  4021. std::swap(itemcount_, other->itemcount_);
  4022. std::swap(_has_bits_[0], other->_has_bits_[0]);
  4023. _unknown_fields_.Swap(&other->_unknown_fields_);
  4024. std::swap(_cached_size_, other->_cached_size_);
  4025. }
  4026. }
  4027. ::google::protobuf::Metadata packetl2c_activity_item_change::GetMetadata() const {
  4028. protobuf_AssignDescriptorsOnce();
  4029. ::google::protobuf::Metadata metadata;
  4030. metadata.descriptor = packetl2c_activity_item_change_descriptor_;
  4031. metadata.reflection = packetl2c_activity_item_change_reflection_;
  4032. return metadata;
  4033. }
  4034. // ===================================================================
  4035. #ifndef _MSC_VER
  4036. const int packetc2l_Sd_item_exchange::kPacketIdFieldNumber;
  4037. const int packetc2l_Sd_item_exchange::kExchangeIdFieldNumber;
  4038. #endif // !_MSC_VER
  4039. packetc2l_Sd_item_exchange::packetc2l_Sd_item_exchange()
  4040. : ::google::protobuf::Message() {
  4041. SharedCtor();
  4042. }
  4043. void packetc2l_Sd_item_exchange::InitAsDefaultInstance() {
  4044. }
  4045. packetc2l_Sd_item_exchange::packetc2l_Sd_item_exchange(const packetc2l_Sd_item_exchange& from)
  4046. : ::google::protobuf::Message() {
  4047. SharedCtor();
  4048. MergeFrom(from);
  4049. }
  4050. void packetc2l_Sd_item_exchange::SharedCtor() {
  4051. _cached_size_ = 0;
  4052. packet_id_ = 10178;
  4053. exchangeid_ = 0;
  4054. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4055. }
  4056. packetc2l_Sd_item_exchange::~packetc2l_Sd_item_exchange() {
  4057. SharedDtor();
  4058. }
  4059. void packetc2l_Sd_item_exchange::SharedDtor() {
  4060. if (this != default_instance_) {
  4061. }
  4062. }
  4063. void packetc2l_Sd_item_exchange::SetCachedSize(int size) const {
  4064. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4065. _cached_size_ = size;
  4066. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4067. }
  4068. const ::google::protobuf::Descriptor* packetc2l_Sd_item_exchange::descriptor() {
  4069. protobuf_AssignDescriptorsOnce();
  4070. return packetc2l_Sd_item_exchange_descriptor_;
  4071. }
  4072. const packetc2l_Sd_item_exchange& packetc2l_Sd_item_exchange::default_instance() {
  4073. if (default_instance_ == NULL) protobuf_AddDesc_fish_5factivity_2eproto();
  4074. return *default_instance_;
  4075. }
  4076. packetc2l_Sd_item_exchange* packetc2l_Sd_item_exchange::default_instance_ = NULL;
  4077. packetc2l_Sd_item_exchange* packetc2l_Sd_item_exchange::New() const {
  4078. return new packetc2l_Sd_item_exchange;
  4079. }
  4080. void packetc2l_Sd_item_exchange::Clear() {
  4081. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4082. packet_id_ = 10178;
  4083. exchangeid_ = 0;
  4084. }
  4085. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4086. mutable_unknown_fields()->Clear();
  4087. }
  4088. bool packetc2l_Sd_item_exchange::MergePartialFromCodedStream(
  4089. ::google::protobuf::io::CodedInputStream* input) {
  4090. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  4091. ::google::protobuf::uint32 tag;
  4092. while ((tag = input->ReadTag()) != 0) {
  4093. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  4094. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_summer_item_exchange];
  4095. case 1: {
  4096. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4097. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4098. int value;
  4099. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4100. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  4101. input, &value)));
  4102. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  4103. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  4104. } else {
  4105. mutable_unknown_fields()->AddVarint(1, value);
  4106. }
  4107. } else {
  4108. goto handle_uninterpreted;
  4109. }
  4110. if (input->ExpectTag(16)) goto parse_exchangeId;
  4111. break;
  4112. }
  4113. // optional int32 exchangeId = 2;
  4114. case 2: {
  4115. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4116. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4117. parse_exchangeId:
  4118. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4119. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4120. input, &exchangeid_)));
  4121. set_has_exchangeid();
  4122. } else {
  4123. goto handle_uninterpreted;
  4124. }
  4125. if (input->ExpectAtEnd()) return true;
  4126. break;
  4127. }
  4128. default: {
  4129. handle_uninterpreted:
  4130. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4131. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  4132. return true;
  4133. }
  4134. DO_(::google::protobuf::internal::WireFormat::SkipField(
  4135. input, tag, mutable_unknown_fields()));
  4136. break;
  4137. }
  4138. }
  4139. }
  4140. return true;
  4141. #undef DO_
  4142. }
  4143. void packetc2l_Sd_item_exchange::SerializeWithCachedSizes(
  4144. ::google::protobuf::io::CodedOutputStream* output) const {
  4145. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_summer_item_exchange];
  4146. if (has_packet_id()) {
  4147. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4148. 1, this->packet_id(), output);
  4149. }
  4150. // optional int32 exchangeId = 2;
  4151. if (has_exchangeid()) {
  4152. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->exchangeid(), output);
  4153. }
  4154. if (!unknown_fields().empty()) {
  4155. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  4156. unknown_fields(), output);
  4157. }
  4158. }
  4159. ::google::protobuf::uint8* packetc2l_Sd_item_exchange::SerializeWithCachedSizesToArray(
  4160. ::google::protobuf::uint8* target) const {
  4161. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_summer_item_exchange];
  4162. if (has_packet_id()) {
  4163. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4164. 1, this->packet_id(), target);
  4165. }
  4166. // optional int32 exchangeId = 2;
  4167. if (has_exchangeid()) {
  4168. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->exchangeid(), target);
  4169. }
  4170. if (!unknown_fields().empty()) {
  4171. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  4172. unknown_fields(), target);
  4173. }
  4174. return target;
  4175. }
  4176. int packetc2l_Sd_item_exchange::ByteSize() const {
  4177. int total_size = 0;
  4178. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4179. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_summer_item_exchange];
  4180. if (has_packet_id()) {
  4181. total_size += 1 +
  4182. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  4183. }
  4184. // optional int32 exchangeId = 2;
  4185. if (has_exchangeid()) {
  4186. total_size += 1 +
  4187. ::google::protobuf::internal::WireFormatLite::Int32Size(
  4188. this->exchangeid());
  4189. }
  4190. }
  4191. if (!unknown_fields().empty()) {
  4192. total_size +=
  4193. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  4194. unknown_fields());
  4195. }
  4196. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4197. _cached_size_ = total_size;
  4198. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4199. return total_size;
  4200. }
  4201. void packetc2l_Sd_item_exchange::MergeFrom(const ::google::protobuf::Message& from) {
  4202. GOOGLE_CHECK_NE(&from, this);
  4203. const packetc2l_Sd_item_exchange* source =
  4204. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_Sd_item_exchange*>(
  4205. &from);
  4206. if (source == NULL) {
  4207. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  4208. } else {
  4209. MergeFrom(*source);
  4210. }
  4211. }
  4212. void packetc2l_Sd_item_exchange::MergeFrom(const packetc2l_Sd_item_exchange& from) {
  4213. GOOGLE_CHECK_NE(&from, this);
  4214. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4215. if (from.has_packet_id()) {
  4216. set_packet_id(from.packet_id());
  4217. }
  4218. if (from.has_exchangeid()) {
  4219. set_exchangeid(from.exchangeid());
  4220. }
  4221. }
  4222. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  4223. }
  4224. void packetc2l_Sd_item_exchange::CopyFrom(const ::google::protobuf::Message& from) {
  4225. if (&from == this) return;
  4226. Clear();
  4227. MergeFrom(from);
  4228. }
  4229. void packetc2l_Sd_item_exchange::CopyFrom(const packetc2l_Sd_item_exchange& from) {
  4230. if (&from == this) return;
  4231. Clear();
  4232. MergeFrom(from);
  4233. }
  4234. bool packetc2l_Sd_item_exchange::IsInitialized() const {
  4235. return true;
  4236. }
  4237. void packetc2l_Sd_item_exchange::Swap(packetc2l_Sd_item_exchange* other) {
  4238. if (other != this) {
  4239. std::swap(packet_id_, other->packet_id_);
  4240. std::swap(exchangeid_, other->exchangeid_);
  4241. std::swap(_has_bits_[0], other->_has_bits_[0]);
  4242. _unknown_fields_.Swap(&other->_unknown_fields_);
  4243. std::swap(_cached_size_, other->_cached_size_);
  4244. }
  4245. }
  4246. ::google::protobuf::Metadata packetc2l_Sd_item_exchange::GetMetadata() const {
  4247. protobuf_AssignDescriptorsOnce();
  4248. ::google::protobuf::Metadata metadata;
  4249. metadata.descriptor = packetc2l_Sd_item_exchange_descriptor_;
  4250. metadata.reflection = packetc2l_Sd_item_exchange_reflection_;
  4251. return metadata;
  4252. }
  4253. // ===================================================================
  4254. #ifndef _MSC_VER
  4255. const int packetl2c_Sd_item_exchange_result::kPacketIdFieldNumber;
  4256. const int packetl2c_Sd_item_exchange_result::kResultFieldNumber;
  4257. const int packetl2c_Sd_item_exchange_result::kExchangeIdFieldNumber;
  4258. #endif // !_MSC_VER
  4259. packetl2c_Sd_item_exchange_result::packetl2c_Sd_item_exchange_result()
  4260. : ::google::protobuf::Message() {
  4261. SharedCtor();
  4262. }
  4263. void packetl2c_Sd_item_exchange_result::InitAsDefaultInstance() {
  4264. }
  4265. packetl2c_Sd_item_exchange_result::packetl2c_Sd_item_exchange_result(const packetl2c_Sd_item_exchange_result& from)
  4266. : ::google::protobuf::Message() {
  4267. SharedCtor();
  4268. MergeFrom(from);
  4269. }
  4270. void packetl2c_Sd_item_exchange_result::SharedCtor() {
  4271. _cached_size_ = 0;
  4272. packet_id_ = 16171;
  4273. result_ = 0;
  4274. exchangeid_ = 0;
  4275. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4276. }
  4277. packetl2c_Sd_item_exchange_result::~packetl2c_Sd_item_exchange_result() {
  4278. SharedDtor();
  4279. }
  4280. void packetl2c_Sd_item_exchange_result::SharedDtor() {
  4281. if (this != default_instance_) {
  4282. }
  4283. }
  4284. void packetl2c_Sd_item_exchange_result::SetCachedSize(int size) const {
  4285. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4286. _cached_size_ = size;
  4287. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4288. }
  4289. const ::google::protobuf::Descriptor* packetl2c_Sd_item_exchange_result::descriptor() {
  4290. protobuf_AssignDescriptorsOnce();
  4291. return packetl2c_Sd_item_exchange_result_descriptor_;
  4292. }
  4293. const packetl2c_Sd_item_exchange_result& packetl2c_Sd_item_exchange_result::default_instance() {
  4294. if (default_instance_ == NULL) protobuf_AddDesc_fish_5factivity_2eproto();
  4295. return *default_instance_;
  4296. }
  4297. packetl2c_Sd_item_exchange_result* packetl2c_Sd_item_exchange_result::default_instance_ = NULL;
  4298. packetl2c_Sd_item_exchange_result* packetl2c_Sd_item_exchange_result::New() const {
  4299. return new packetl2c_Sd_item_exchange_result;
  4300. }
  4301. void packetl2c_Sd_item_exchange_result::Clear() {
  4302. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4303. packet_id_ = 16171;
  4304. result_ = 0;
  4305. exchangeid_ = 0;
  4306. }
  4307. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4308. mutable_unknown_fields()->Clear();
  4309. }
  4310. bool packetl2c_Sd_item_exchange_result::MergePartialFromCodedStream(
  4311. ::google::protobuf::io::CodedInputStream* input) {
  4312. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  4313. ::google::protobuf::uint32 tag;
  4314. while ((tag = input->ReadTag()) != 0) {
  4315. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  4316. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_summer_item_exchange_result];
  4317. case 1: {
  4318. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4319. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4320. int value;
  4321. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4322. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  4323. input, &value)));
  4324. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  4325. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  4326. } else {
  4327. mutable_unknown_fields()->AddVarint(1, value);
  4328. }
  4329. } else {
  4330. goto handle_uninterpreted;
  4331. }
  4332. if (input->ExpectTag(16)) goto parse_result;
  4333. break;
  4334. }
  4335. // optional int32 result = 2;
  4336. case 2: {
  4337. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4338. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4339. parse_result:
  4340. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4341. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4342. input, &result_)));
  4343. set_has_result();
  4344. } else {
  4345. goto handle_uninterpreted;
  4346. }
  4347. if (input->ExpectTag(24)) goto parse_exchangeId;
  4348. break;
  4349. }
  4350. // optional int32 exchangeId = 3;
  4351. case 3: {
  4352. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4353. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4354. parse_exchangeId:
  4355. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4356. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4357. input, &exchangeid_)));
  4358. set_has_exchangeid();
  4359. } else {
  4360. goto handle_uninterpreted;
  4361. }
  4362. if (input->ExpectAtEnd()) return true;
  4363. break;
  4364. }
  4365. default: {
  4366. handle_uninterpreted:
  4367. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4368. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  4369. return true;
  4370. }
  4371. DO_(::google::protobuf::internal::WireFormat::SkipField(
  4372. input, tag, mutable_unknown_fields()));
  4373. break;
  4374. }
  4375. }
  4376. }
  4377. return true;
  4378. #undef DO_
  4379. }
  4380. void packetl2c_Sd_item_exchange_result::SerializeWithCachedSizes(
  4381. ::google::protobuf::io::CodedOutputStream* output) const {
  4382. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_summer_item_exchange_result];
  4383. if (has_packet_id()) {
  4384. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4385. 1, this->packet_id(), output);
  4386. }
  4387. // optional int32 result = 2;
  4388. if (has_result()) {
  4389. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->result(), output);
  4390. }
  4391. // optional int32 exchangeId = 3;
  4392. if (has_exchangeid()) {
  4393. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->exchangeid(), output);
  4394. }
  4395. if (!unknown_fields().empty()) {
  4396. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  4397. unknown_fields(), output);
  4398. }
  4399. }
  4400. ::google::protobuf::uint8* packetl2c_Sd_item_exchange_result::SerializeWithCachedSizesToArray(
  4401. ::google::protobuf::uint8* target) const {
  4402. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_summer_item_exchange_result];
  4403. if (has_packet_id()) {
  4404. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4405. 1, this->packet_id(), target);
  4406. }
  4407. // optional int32 result = 2;
  4408. if (has_result()) {
  4409. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->result(), target);
  4410. }
  4411. // optional int32 exchangeId = 3;
  4412. if (has_exchangeid()) {
  4413. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->exchangeid(), target);
  4414. }
  4415. if (!unknown_fields().empty()) {
  4416. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  4417. unknown_fields(), target);
  4418. }
  4419. return target;
  4420. }
  4421. int packetl2c_Sd_item_exchange_result::ByteSize() const {
  4422. int total_size = 0;
  4423. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4424. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_summer_item_exchange_result];
  4425. if (has_packet_id()) {
  4426. total_size += 1 +
  4427. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  4428. }
  4429. // optional int32 result = 2;
  4430. if (has_result()) {
  4431. total_size += 1 +
  4432. ::google::protobuf::internal::WireFormatLite::Int32Size(
  4433. this->result());
  4434. }
  4435. // optional int32 exchangeId = 3;
  4436. if (has_exchangeid()) {
  4437. total_size += 1 +
  4438. ::google::protobuf::internal::WireFormatLite::Int32Size(
  4439. this->exchangeid());
  4440. }
  4441. }
  4442. if (!unknown_fields().empty()) {
  4443. total_size +=
  4444. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  4445. unknown_fields());
  4446. }
  4447. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4448. _cached_size_ = total_size;
  4449. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4450. return total_size;
  4451. }
  4452. void packetl2c_Sd_item_exchange_result::MergeFrom(const ::google::protobuf::Message& from) {
  4453. GOOGLE_CHECK_NE(&from, this);
  4454. const packetl2c_Sd_item_exchange_result* source =
  4455. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_Sd_item_exchange_result*>(
  4456. &from);
  4457. if (source == NULL) {
  4458. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  4459. } else {
  4460. MergeFrom(*source);
  4461. }
  4462. }
  4463. void packetl2c_Sd_item_exchange_result::MergeFrom(const packetl2c_Sd_item_exchange_result& from) {
  4464. GOOGLE_CHECK_NE(&from, this);
  4465. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4466. if (from.has_packet_id()) {
  4467. set_packet_id(from.packet_id());
  4468. }
  4469. if (from.has_result()) {
  4470. set_result(from.result());
  4471. }
  4472. if (from.has_exchangeid()) {
  4473. set_exchangeid(from.exchangeid());
  4474. }
  4475. }
  4476. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  4477. }
  4478. void packetl2c_Sd_item_exchange_result::CopyFrom(const ::google::protobuf::Message& from) {
  4479. if (&from == this) return;
  4480. Clear();
  4481. MergeFrom(from);
  4482. }
  4483. void packetl2c_Sd_item_exchange_result::CopyFrom(const packetl2c_Sd_item_exchange_result& from) {
  4484. if (&from == this) return;
  4485. Clear();
  4486. MergeFrom(from);
  4487. }
  4488. bool packetl2c_Sd_item_exchange_result::IsInitialized() const {
  4489. return true;
  4490. }
  4491. void packetl2c_Sd_item_exchange_result::Swap(packetl2c_Sd_item_exchange_result* other) {
  4492. if (other != this) {
  4493. std::swap(packet_id_, other->packet_id_);
  4494. std::swap(result_, other->result_);
  4495. std::swap(exchangeid_, other->exchangeid_);
  4496. std::swap(_has_bits_[0], other->_has_bits_[0]);
  4497. _unknown_fields_.Swap(&other->_unknown_fields_);
  4498. std::swap(_cached_size_, other->_cached_size_);
  4499. }
  4500. }
  4501. ::google::protobuf::Metadata packetl2c_Sd_item_exchange_result::GetMetadata() const {
  4502. protobuf_AssignDescriptorsOnce();
  4503. ::google::protobuf::Metadata metadata;
  4504. metadata.descriptor = packetl2c_Sd_item_exchange_result_descriptor_;
  4505. metadata.reflection = packetl2c_Sd_item_exchange_result_reflection_;
  4506. return metadata;
  4507. }
  4508. // ===================================================================
  4509. #ifndef _MSC_VER
  4510. const int packetc2l_Nd_get_activity_info::kPacketIdFieldNumber;
  4511. #endif // !_MSC_VER
  4512. packetc2l_Nd_get_activity_info::packetc2l_Nd_get_activity_info()
  4513. : ::google::protobuf::Message() {
  4514. SharedCtor();
  4515. }
  4516. void packetc2l_Nd_get_activity_info::InitAsDefaultInstance() {
  4517. }
  4518. packetc2l_Nd_get_activity_info::packetc2l_Nd_get_activity_info(const packetc2l_Nd_get_activity_info& from)
  4519. : ::google::protobuf::Message() {
  4520. SharedCtor();
  4521. MergeFrom(from);
  4522. }
  4523. void packetc2l_Nd_get_activity_info::SharedCtor() {
  4524. _cached_size_ = 0;
  4525. packet_id_ = 10190;
  4526. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4527. }
  4528. packetc2l_Nd_get_activity_info::~packetc2l_Nd_get_activity_info() {
  4529. SharedDtor();
  4530. }
  4531. void packetc2l_Nd_get_activity_info::SharedDtor() {
  4532. if (this != default_instance_) {
  4533. }
  4534. }
  4535. void packetc2l_Nd_get_activity_info::SetCachedSize(int size) const {
  4536. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4537. _cached_size_ = size;
  4538. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4539. }
  4540. const ::google::protobuf::Descriptor* packetc2l_Nd_get_activity_info::descriptor() {
  4541. protobuf_AssignDescriptorsOnce();
  4542. return packetc2l_Nd_get_activity_info_descriptor_;
  4543. }
  4544. const packetc2l_Nd_get_activity_info& packetc2l_Nd_get_activity_info::default_instance() {
  4545. if (default_instance_ == NULL) protobuf_AddDesc_fish_5factivity_2eproto();
  4546. return *default_instance_;
  4547. }
  4548. packetc2l_Nd_get_activity_info* packetc2l_Nd_get_activity_info::default_instance_ = NULL;
  4549. packetc2l_Nd_get_activity_info* packetc2l_Nd_get_activity_info::New() const {
  4550. return new packetc2l_Nd_get_activity_info;
  4551. }
  4552. void packetc2l_Nd_get_activity_info::Clear() {
  4553. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4554. packet_id_ = 10190;
  4555. }
  4556. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4557. mutable_unknown_fields()->Clear();
  4558. }
  4559. bool packetc2l_Nd_get_activity_info::MergePartialFromCodedStream(
  4560. ::google::protobuf::io::CodedInputStream* input) {
  4561. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  4562. ::google::protobuf::uint32 tag;
  4563. while ((tag = input->ReadTag()) != 0) {
  4564. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  4565. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_Nd_get_activity_info];
  4566. case 1: {
  4567. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4568. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4569. int value;
  4570. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4571. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  4572. input, &value)));
  4573. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  4574. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  4575. } else {
  4576. mutable_unknown_fields()->AddVarint(1, value);
  4577. }
  4578. } else {
  4579. goto handle_uninterpreted;
  4580. }
  4581. if (input->ExpectAtEnd()) return true;
  4582. break;
  4583. }
  4584. default: {
  4585. handle_uninterpreted:
  4586. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4587. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  4588. return true;
  4589. }
  4590. DO_(::google::protobuf::internal::WireFormat::SkipField(
  4591. input, tag, mutable_unknown_fields()));
  4592. break;
  4593. }
  4594. }
  4595. }
  4596. return true;
  4597. #undef DO_
  4598. }
  4599. void packetc2l_Nd_get_activity_info::SerializeWithCachedSizes(
  4600. ::google::protobuf::io::CodedOutputStream* output) const {
  4601. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_Nd_get_activity_info];
  4602. if (has_packet_id()) {
  4603. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4604. 1, this->packet_id(), output);
  4605. }
  4606. if (!unknown_fields().empty()) {
  4607. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  4608. unknown_fields(), output);
  4609. }
  4610. }
  4611. ::google::protobuf::uint8* packetc2l_Nd_get_activity_info::SerializeWithCachedSizesToArray(
  4612. ::google::protobuf::uint8* target) const {
  4613. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_Nd_get_activity_info];
  4614. if (has_packet_id()) {
  4615. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4616. 1, this->packet_id(), target);
  4617. }
  4618. if (!unknown_fields().empty()) {
  4619. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  4620. unknown_fields(), target);
  4621. }
  4622. return target;
  4623. }
  4624. int packetc2l_Nd_get_activity_info::ByteSize() const {
  4625. int total_size = 0;
  4626. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4627. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_Nd_get_activity_info];
  4628. if (has_packet_id()) {
  4629. total_size += 1 +
  4630. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  4631. }
  4632. }
  4633. if (!unknown_fields().empty()) {
  4634. total_size +=
  4635. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  4636. unknown_fields());
  4637. }
  4638. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4639. _cached_size_ = total_size;
  4640. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4641. return total_size;
  4642. }
  4643. void packetc2l_Nd_get_activity_info::MergeFrom(const ::google::protobuf::Message& from) {
  4644. GOOGLE_CHECK_NE(&from, this);
  4645. const packetc2l_Nd_get_activity_info* source =
  4646. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_Nd_get_activity_info*>(
  4647. &from);
  4648. if (source == NULL) {
  4649. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  4650. } else {
  4651. MergeFrom(*source);
  4652. }
  4653. }
  4654. void packetc2l_Nd_get_activity_info::MergeFrom(const packetc2l_Nd_get_activity_info& from) {
  4655. GOOGLE_CHECK_NE(&from, this);
  4656. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4657. if (from.has_packet_id()) {
  4658. set_packet_id(from.packet_id());
  4659. }
  4660. }
  4661. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  4662. }
  4663. void packetc2l_Nd_get_activity_info::CopyFrom(const ::google::protobuf::Message& from) {
  4664. if (&from == this) return;
  4665. Clear();
  4666. MergeFrom(from);
  4667. }
  4668. void packetc2l_Nd_get_activity_info::CopyFrom(const packetc2l_Nd_get_activity_info& from) {
  4669. if (&from == this) return;
  4670. Clear();
  4671. MergeFrom(from);
  4672. }
  4673. bool packetc2l_Nd_get_activity_info::IsInitialized() const {
  4674. return true;
  4675. }
  4676. void packetc2l_Nd_get_activity_info::Swap(packetc2l_Nd_get_activity_info* other) {
  4677. if (other != this) {
  4678. std::swap(packet_id_, other->packet_id_);
  4679. std::swap(_has_bits_[0], other->_has_bits_[0]);
  4680. _unknown_fields_.Swap(&other->_unknown_fields_);
  4681. std::swap(_cached_size_, other->_cached_size_);
  4682. }
  4683. }
  4684. ::google::protobuf::Metadata packetc2l_Nd_get_activity_info::GetMetadata() const {
  4685. protobuf_AssignDescriptorsOnce();
  4686. ::google::protobuf::Metadata metadata;
  4687. metadata.descriptor = packetc2l_Nd_get_activity_info_descriptor_;
  4688. metadata.reflection = packetc2l_Nd_get_activity_info_reflection_;
  4689. return metadata;
  4690. }
  4691. // ===================================================================
  4692. #ifndef _MSC_VER
  4693. const int packetl2c_Nd_get_activity_info_result::kPacketIdFieldNumber;
  4694. const int packetl2c_Nd_get_activity_info_result::kLotteryCountFieldNumber;
  4695. const int packetl2c_Nd_get_activity_info_result::kExchangeCountListFieldNumber;
  4696. const int packetl2c_Nd_get_activity_info_result::kOutlayFieldNumber;
  4697. const int packetl2c_Nd_get_activity_info_result::kRechargeFieldNumber;
  4698. #endif // !_MSC_VER
  4699. packetl2c_Nd_get_activity_info_result::packetl2c_Nd_get_activity_info_result()
  4700. : ::google::protobuf::Message() {
  4701. SharedCtor();
  4702. }
  4703. void packetl2c_Nd_get_activity_info_result::InitAsDefaultInstance() {
  4704. }
  4705. packetl2c_Nd_get_activity_info_result::packetl2c_Nd_get_activity_info_result(const packetl2c_Nd_get_activity_info_result& from)
  4706. : ::google::protobuf::Message() {
  4707. SharedCtor();
  4708. MergeFrom(from);
  4709. }
  4710. void packetl2c_Nd_get_activity_info_result::SharedCtor() {
  4711. _cached_size_ = 0;
  4712. packet_id_ = 16184;
  4713. lotterycount_ = 0;
  4714. outlay_ = 0;
  4715. recharge_ = 0;
  4716. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4717. }
  4718. packetl2c_Nd_get_activity_info_result::~packetl2c_Nd_get_activity_info_result() {
  4719. SharedDtor();
  4720. }
  4721. void packetl2c_Nd_get_activity_info_result::SharedDtor() {
  4722. if (this != default_instance_) {
  4723. }
  4724. }
  4725. void packetl2c_Nd_get_activity_info_result::SetCachedSize(int size) const {
  4726. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4727. _cached_size_ = size;
  4728. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4729. }
  4730. const ::google::protobuf::Descriptor* packetl2c_Nd_get_activity_info_result::descriptor() {
  4731. protobuf_AssignDescriptorsOnce();
  4732. return packetl2c_Nd_get_activity_info_result_descriptor_;
  4733. }
  4734. const packetl2c_Nd_get_activity_info_result& packetl2c_Nd_get_activity_info_result::default_instance() {
  4735. if (default_instance_ == NULL) protobuf_AddDesc_fish_5factivity_2eproto();
  4736. return *default_instance_;
  4737. }
  4738. packetl2c_Nd_get_activity_info_result* packetl2c_Nd_get_activity_info_result::default_instance_ = NULL;
  4739. packetl2c_Nd_get_activity_info_result* packetl2c_Nd_get_activity_info_result::New() const {
  4740. return new packetl2c_Nd_get_activity_info_result;
  4741. }
  4742. void packetl2c_Nd_get_activity_info_result::Clear() {
  4743. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4744. packet_id_ = 16184;
  4745. lotterycount_ = 0;
  4746. outlay_ = 0;
  4747. recharge_ = 0;
  4748. }
  4749. exchangecountlist_.Clear();
  4750. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4751. mutable_unknown_fields()->Clear();
  4752. }
  4753. bool packetl2c_Nd_get_activity_info_result::MergePartialFromCodedStream(
  4754. ::google::protobuf::io::CodedInputStream* input) {
  4755. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  4756. ::google::protobuf::uint32 tag;
  4757. while ((tag = input->ReadTag()) != 0) {
  4758. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  4759. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_Nd_get_activity_info_result];
  4760. case 1: {
  4761. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4762. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4763. int value;
  4764. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4765. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  4766. input, &value)));
  4767. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  4768. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  4769. } else {
  4770. mutable_unknown_fields()->AddVarint(1, value);
  4771. }
  4772. } else {
  4773. goto handle_uninterpreted;
  4774. }
  4775. if (input->ExpectTag(16)) goto parse_lotteryCount;
  4776. break;
  4777. }
  4778. // optional int32 lotteryCount = 2;
  4779. case 2: {
  4780. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4781. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4782. parse_lotteryCount:
  4783. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4784. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4785. input, &lotterycount_)));
  4786. set_has_lotterycount();
  4787. } else {
  4788. goto handle_uninterpreted;
  4789. }
  4790. if (input->ExpectTag(24)) goto parse_exchangeCountList;
  4791. break;
  4792. }
  4793. // repeated int32 exchangeCountList = 3;
  4794. case 3: {
  4795. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4796. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4797. parse_exchangeCountList:
  4798. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
  4799. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4800. 1, 24, input, this->mutable_exchangecountlist())));
  4801. } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
  4802. == ::google::protobuf::internal::WireFormatLite::
  4803. WIRETYPE_LENGTH_DELIMITED) {
  4804. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
  4805. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4806. input, this->mutable_exchangecountlist())));
  4807. } else {
  4808. goto handle_uninterpreted;
  4809. }
  4810. if (input->ExpectTag(24)) goto parse_exchangeCountList;
  4811. if (input->ExpectTag(32)) goto parse_outlay;
  4812. break;
  4813. }
  4814. // optional int32 outlay = 4;
  4815. case 4: {
  4816. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4817. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4818. parse_outlay:
  4819. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4820. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4821. input, &outlay_)));
  4822. set_has_outlay();
  4823. } else {
  4824. goto handle_uninterpreted;
  4825. }
  4826. if (input->ExpectTag(40)) goto parse_recharge;
  4827. break;
  4828. }
  4829. // optional int32 recharge = 5;
  4830. case 5: {
  4831. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4832. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4833. parse_recharge:
  4834. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4835. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4836. input, &recharge_)));
  4837. set_has_recharge();
  4838. } else {
  4839. goto handle_uninterpreted;
  4840. }
  4841. if (input->ExpectAtEnd()) return true;
  4842. break;
  4843. }
  4844. default: {
  4845. handle_uninterpreted:
  4846. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4847. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  4848. return true;
  4849. }
  4850. DO_(::google::protobuf::internal::WireFormat::SkipField(
  4851. input, tag, mutable_unknown_fields()));
  4852. break;
  4853. }
  4854. }
  4855. }
  4856. return true;
  4857. #undef DO_
  4858. }
  4859. void packetl2c_Nd_get_activity_info_result::SerializeWithCachedSizes(
  4860. ::google::protobuf::io::CodedOutputStream* output) const {
  4861. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_Nd_get_activity_info_result];
  4862. if (has_packet_id()) {
  4863. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4864. 1, this->packet_id(), output);
  4865. }
  4866. // optional int32 lotteryCount = 2;
  4867. if (has_lotterycount()) {
  4868. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->lotterycount(), output);
  4869. }
  4870. // repeated int32 exchangeCountList = 3;
  4871. for (int i = 0; i < this->exchangecountlist_size(); i++) {
  4872. ::google::protobuf::internal::WireFormatLite::WriteInt32(
  4873. 3, this->exchangecountlist(i), output);
  4874. }
  4875. // optional int32 outlay = 4;
  4876. if (has_outlay()) {
  4877. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->outlay(), output);
  4878. }
  4879. // optional int32 recharge = 5;
  4880. if (has_recharge()) {
  4881. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->recharge(), output);
  4882. }
  4883. if (!unknown_fields().empty()) {
  4884. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  4885. unknown_fields(), output);
  4886. }
  4887. }
  4888. ::google::protobuf::uint8* packetl2c_Nd_get_activity_info_result::SerializeWithCachedSizesToArray(
  4889. ::google::protobuf::uint8* target) const {
  4890. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_Nd_get_activity_info_result];
  4891. if (has_packet_id()) {
  4892. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4893. 1, this->packet_id(), target);
  4894. }
  4895. // optional int32 lotteryCount = 2;
  4896. if (has_lotterycount()) {
  4897. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->lotterycount(), target);
  4898. }
  4899. // repeated int32 exchangeCountList = 3;
  4900. for (int i = 0; i < this->exchangecountlist_size(); i++) {
  4901. target = ::google::protobuf::internal::WireFormatLite::
  4902. WriteInt32ToArray(3, this->exchangecountlist(i), target);
  4903. }
  4904. // optional int32 outlay = 4;
  4905. if (has_outlay()) {
  4906. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->outlay(), target);
  4907. }
  4908. // optional int32 recharge = 5;
  4909. if (has_recharge()) {
  4910. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->recharge(), target);
  4911. }
  4912. if (!unknown_fields().empty()) {
  4913. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  4914. unknown_fields(), target);
  4915. }
  4916. return target;
  4917. }
  4918. int packetl2c_Nd_get_activity_info_result::ByteSize() const {
  4919. int total_size = 0;
  4920. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4921. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_Nd_get_activity_info_result];
  4922. if (has_packet_id()) {
  4923. total_size += 1 +
  4924. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  4925. }
  4926. // optional int32 lotteryCount = 2;
  4927. if (has_lotterycount()) {
  4928. total_size += 1 +
  4929. ::google::protobuf::internal::WireFormatLite::Int32Size(
  4930. this->lotterycount());
  4931. }
  4932. // optional int32 outlay = 4;
  4933. if (has_outlay()) {
  4934. total_size += 1 +
  4935. ::google::protobuf::internal::WireFormatLite::Int32Size(
  4936. this->outlay());
  4937. }
  4938. // optional int32 recharge = 5;
  4939. if (has_recharge()) {
  4940. total_size += 1 +
  4941. ::google::protobuf::internal::WireFormatLite::Int32Size(
  4942. this->recharge());
  4943. }
  4944. }
  4945. // repeated int32 exchangeCountList = 3;
  4946. {
  4947. int data_size = 0;
  4948. for (int i = 0; i < this->exchangecountlist_size(); i++) {
  4949. data_size += ::google::protobuf::internal::WireFormatLite::
  4950. Int32Size(this->exchangecountlist(i));
  4951. }
  4952. total_size += 1 * this->exchangecountlist_size() + data_size;
  4953. }
  4954. if (!unknown_fields().empty()) {
  4955. total_size +=
  4956. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  4957. unknown_fields());
  4958. }
  4959. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4960. _cached_size_ = total_size;
  4961. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4962. return total_size;
  4963. }
  4964. void packetl2c_Nd_get_activity_info_result::MergeFrom(const ::google::protobuf::Message& from) {
  4965. GOOGLE_CHECK_NE(&from, this);
  4966. const packetl2c_Nd_get_activity_info_result* source =
  4967. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_Nd_get_activity_info_result*>(
  4968. &from);
  4969. if (source == NULL) {
  4970. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  4971. } else {
  4972. MergeFrom(*source);
  4973. }
  4974. }
  4975. void packetl2c_Nd_get_activity_info_result::MergeFrom(const packetl2c_Nd_get_activity_info_result& from) {
  4976. GOOGLE_CHECK_NE(&from, this);
  4977. exchangecountlist_.MergeFrom(from.exchangecountlist_);
  4978. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4979. if (from.has_packet_id()) {
  4980. set_packet_id(from.packet_id());
  4981. }
  4982. if (from.has_lotterycount()) {
  4983. set_lotterycount(from.lotterycount());
  4984. }
  4985. if (from.has_outlay()) {
  4986. set_outlay(from.outlay());
  4987. }
  4988. if (from.has_recharge()) {
  4989. set_recharge(from.recharge());
  4990. }
  4991. }
  4992. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  4993. }
  4994. void packetl2c_Nd_get_activity_info_result::CopyFrom(const ::google::protobuf::Message& from) {
  4995. if (&from == this) return;
  4996. Clear();
  4997. MergeFrom(from);
  4998. }
  4999. void packetl2c_Nd_get_activity_info_result::CopyFrom(const packetl2c_Nd_get_activity_info_result& from) {
  5000. if (&from == this) return;
  5001. Clear();
  5002. MergeFrom(from);
  5003. }
  5004. bool packetl2c_Nd_get_activity_info_result::IsInitialized() const {
  5005. return true;
  5006. }
  5007. void packetl2c_Nd_get_activity_info_result::Swap(packetl2c_Nd_get_activity_info_result* other) {
  5008. if (other != this) {
  5009. std::swap(packet_id_, other->packet_id_);
  5010. std::swap(lotterycount_, other->lotterycount_);
  5011. exchangecountlist_.Swap(&other->exchangecountlist_);
  5012. std::swap(outlay_, other->outlay_);
  5013. std::swap(recharge_, other->recharge_);
  5014. std::swap(_has_bits_[0], other->_has_bits_[0]);
  5015. _unknown_fields_.Swap(&other->_unknown_fields_);
  5016. std::swap(_cached_size_, other->_cached_size_);
  5017. }
  5018. }
  5019. ::google::protobuf::Metadata packetl2c_Nd_get_activity_info_result::GetMetadata() const {
  5020. protobuf_AssignDescriptorsOnce();
  5021. ::google::protobuf::Metadata metadata;
  5022. metadata.descriptor = packetl2c_Nd_get_activity_info_result_descriptor_;
  5023. metadata.reflection = packetl2c_Nd_get_activity_info_result_reflection_;
  5024. return metadata;
  5025. }
  5026. // ===================================================================
  5027. #ifndef _MSC_VER
  5028. const int packetc2l_Nd_start_Lottery::kPacketIdFieldNumber;
  5029. const int packetc2l_Nd_start_Lottery::kTimeFieldNumber;
  5030. #endif // !_MSC_VER
  5031. packetc2l_Nd_start_Lottery::packetc2l_Nd_start_Lottery()
  5032. : ::google::protobuf::Message() {
  5033. SharedCtor();
  5034. }
  5035. void packetc2l_Nd_start_Lottery::InitAsDefaultInstance() {
  5036. }
  5037. packetc2l_Nd_start_Lottery::packetc2l_Nd_start_Lottery(const packetc2l_Nd_start_Lottery& from)
  5038. : ::google::protobuf::Message() {
  5039. SharedCtor();
  5040. MergeFrom(from);
  5041. }
  5042. void packetc2l_Nd_start_Lottery::SharedCtor() {
  5043. _cached_size_ = 0;
  5044. packet_id_ = 10188;
  5045. time_ = 0;
  5046. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  5047. }
  5048. packetc2l_Nd_start_Lottery::~packetc2l_Nd_start_Lottery() {
  5049. SharedDtor();
  5050. }
  5051. void packetc2l_Nd_start_Lottery::SharedDtor() {
  5052. if (this != default_instance_) {
  5053. }
  5054. }
  5055. void packetc2l_Nd_start_Lottery::SetCachedSize(int size) const {
  5056. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  5057. _cached_size_ = size;
  5058. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  5059. }
  5060. const ::google::protobuf::Descriptor* packetc2l_Nd_start_Lottery::descriptor() {
  5061. protobuf_AssignDescriptorsOnce();
  5062. return packetc2l_Nd_start_Lottery_descriptor_;
  5063. }
  5064. const packetc2l_Nd_start_Lottery& packetc2l_Nd_start_Lottery::default_instance() {
  5065. if (default_instance_ == NULL) protobuf_AddDesc_fish_5factivity_2eproto();
  5066. return *default_instance_;
  5067. }
  5068. packetc2l_Nd_start_Lottery* packetc2l_Nd_start_Lottery::default_instance_ = NULL;
  5069. packetc2l_Nd_start_Lottery* packetc2l_Nd_start_Lottery::New() const {
  5070. return new packetc2l_Nd_start_Lottery;
  5071. }
  5072. void packetc2l_Nd_start_Lottery::Clear() {
  5073. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  5074. packet_id_ = 10188;
  5075. time_ = 0;
  5076. }
  5077. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  5078. mutable_unknown_fields()->Clear();
  5079. }
  5080. bool packetc2l_Nd_start_Lottery::MergePartialFromCodedStream(
  5081. ::google::protobuf::io::CodedInputStream* input) {
  5082. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  5083. ::google::protobuf::uint32 tag;
  5084. while ((tag = input->ReadTag()) != 0) {
  5085. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  5086. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_Nd_start_Lottery];
  5087. case 1: {
  5088. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5089. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5090. int value;
  5091. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5092. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  5093. input, &value)));
  5094. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  5095. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  5096. } else {
  5097. mutable_unknown_fields()->AddVarint(1, value);
  5098. }
  5099. } else {
  5100. goto handle_uninterpreted;
  5101. }
  5102. if (input->ExpectTag(16)) goto parse_time;
  5103. break;
  5104. }
  5105. // optional int32 time = 2;
  5106. case 2: {
  5107. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5108. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5109. parse_time:
  5110. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5111. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5112. input, &time_)));
  5113. set_has_time();
  5114. } else {
  5115. goto handle_uninterpreted;
  5116. }
  5117. if (input->ExpectAtEnd()) return true;
  5118. break;
  5119. }
  5120. default: {
  5121. handle_uninterpreted:
  5122. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5123. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  5124. return true;
  5125. }
  5126. DO_(::google::protobuf::internal::WireFormat::SkipField(
  5127. input, tag, mutable_unknown_fields()));
  5128. break;
  5129. }
  5130. }
  5131. }
  5132. return true;
  5133. #undef DO_
  5134. }
  5135. void packetc2l_Nd_start_Lottery::SerializeWithCachedSizes(
  5136. ::google::protobuf::io::CodedOutputStream* output) const {
  5137. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_Nd_start_Lottery];
  5138. if (has_packet_id()) {
  5139. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  5140. 1, this->packet_id(), output);
  5141. }
  5142. // optional int32 time = 2;
  5143. if (has_time()) {
  5144. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->time(), output);
  5145. }
  5146. if (!unknown_fields().empty()) {
  5147. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  5148. unknown_fields(), output);
  5149. }
  5150. }
  5151. ::google::protobuf::uint8* packetc2l_Nd_start_Lottery::SerializeWithCachedSizesToArray(
  5152. ::google::protobuf::uint8* target) const {
  5153. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_Nd_start_Lottery];
  5154. if (has_packet_id()) {
  5155. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  5156. 1, this->packet_id(), target);
  5157. }
  5158. // optional int32 time = 2;
  5159. if (has_time()) {
  5160. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->time(), target);
  5161. }
  5162. if (!unknown_fields().empty()) {
  5163. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  5164. unknown_fields(), target);
  5165. }
  5166. return target;
  5167. }
  5168. int packetc2l_Nd_start_Lottery::ByteSize() const {
  5169. int total_size = 0;
  5170. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  5171. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_Nd_start_Lottery];
  5172. if (has_packet_id()) {
  5173. total_size += 1 +
  5174. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  5175. }
  5176. // optional int32 time = 2;
  5177. if (has_time()) {
  5178. total_size += 1 +
  5179. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5180. this->time());
  5181. }
  5182. }
  5183. if (!unknown_fields().empty()) {
  5184. total_size +=
  5185. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  5186. unknown_fields());
  5187. }
  5188. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  5189. _cached_size_ = total_size;
  5190. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  5191. return total_size;
  5192. }
  5193. void packetc2l_Nd_start_Lottery::MergeFrom(const ::google::protobuf::Message& from) {
  5194. GOOGLE_CHECK_NE(&from, this);
  5195. const packetc2l_Nd_start_Lottery* source =
  5196. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_Nd_start_Lottery*>(
  5197. &from);
  5198. if (source == NULL) {
  5199. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  5200. } else {
  5201. MergeFrom(*source);
  5202. }
  5203. }
  5204. void packetc2l_Nd_start_Lottery::MergeFrom(const packetc2l_Nd_start_Lottery& from) {
  5205. GOOGLE_CHECK_NE(&from, this);
  5206. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  5207. if (from.has_packet_id()) {
  5208. set_packet_id(from.packet_id());
  5209. }
  5210. if (from.has_time()) {
  5211. set_time(from.time());
  5212. }
  5213. }
  5214. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  5215. }
  5216. void packetc2l_Nd_start_Lottery::CopyFrom(const ::google::protobuf::Message& from) {
  5217. if (&from == this) return;
  5218. Clear();
  5219. MergeFrom(from);
  5220. }
  5221. void packetc2l_Nd_start_Lottery::CopyFrom(const packetc2l_Nd_start_Lottery& from) {
  5222. if (&from == this) return;
  5223. Clear();
  5224. MergeFrom(from);
  5225. }
  5226. bool packetc2l_Nd_start_Lottery::IsInitialized() const {
  5227. return true;
  5228. }
  5229. void packetc2l_Nd_start_Lottery::Swap(packetc2l_Nd_start_Lottery* other) {
  5230. if (other != this) {
  5231. std::swap(packet_id_, other->packet_id_);
  5232. std::swap(time_, other->time_);
  5233. std::swap(_has_bits_[0], other->_has_bits_[0]);
  5234. _unknown_fields_.Swap(&other->_unknown_fields_);
  5235. std::swap(_cached_size_, other->_cached_size_);
  5236. }
  5237. }
  5238. ::google::protobuf::Metadata packetc2l_Nd_start_Lottery::GetMetadata() const {
  5239. protobuf_AssignDescriptorsOnce();
  5240. ::google::protobuf::Metadata metadata;
  5241. metadata.descriptor = packetc2l_Nd_start_Lottery_descriptor_;
  5242. metadata.reflection = packetc2l_Nd_start_Lottery_reflection_;
  5243. return metadata;
  5244. }
  5245. // ===================================================================
  5246. #ifndef _MSC_VER
  5247. const int packetl2c_Nd_start_Lottery_result::kPacketIdFieldNumber;
  5248. const int packetl2c_Nd_start_Lottery_result::kResultFieldNumber;
  5249. const int packetl2c_Nd_start_Lottery_result::kTimeFieldNumber;
  5250. const int packetl2c_Nd_start_Lottery_result::kRewardIdFieldNumber;
  5251. #endif // !_MSC_VER
  5252. packetl2c_Nd_start_Lottery_result::packetl2c_Nd_start_Lottery_result()
  5253. : ::google::protobuf::Message() {
  5254. SharedCtor();
  5255. }
  5256. void packetl2c_Nd_start_Lottery_result::InitAsDefaultInstance() {
  5257. }
  5258. packetl2c_Nd_start_Lottery_result::packetl2c_Nd_start_Lottery_result(const packetl2c_Nd_start_Lottery_result& from)
  5259. : ::google::protobuf::Message() {
  5260. SharedCtor();
  5261. MergeFrom(from);
  5262. }
  5263. void packetl2c_Nd_start_Lottery_result::SharedCtor() {
  5264. _cached_size_ = 0;
  5265. packet_id_ = 16182;
  5266. result_ = 0;
  5267. time_ = 0;
  5268. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  5269. }
  5270. packetl2c_Nd_start_Lottery_result::~packetl2c_Nd_start_Lottery_result() {
  5271. SharedDtor();
  5272. }
  5273. void packetl2c_Nd_start_Lottery_result::SharedDtor() {
  5274. if (this != default_instance_) {
  5275. }
  5276. }
  5277. void packetl2c_Nd_start_Lottery_result::SetCachedSize(int size) const {
  5278. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  5279. _cached_size_ = size;
  5280. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  5281. }
  5282. const ::google::protobuf::Descriptor* packetl2c_Nd_start_Lottery_result::descriptor() {
  5283. protobuf_AssignDescriptorsOnce();
  5284. return packetl2c_Nd_start_Lottery_result_descriptor_;
  5285. }
  5286. const packetl2c_Nd_start_Lottery_result& packetl2c_Nd_start_Lottery_result::default_instance() {
  5287. if (default_instance_ == NULL) protobuf_AddDesc_fish_5factivity_2eproto();
  5288. return *default_instance_;
  5289. }
  5290. packetl2c_Nd_start_Lottery_result* packetl2c_Nd_start_Lottery_result::default_instance_ = NULL;
  5291. packetl2c_Nd_start_Lottery_result* packetl2c_Nd_start_Lottery_result::New() const {
  5292. return new packetl2c_Nd_start_Lottery_result;
  5293. }
  5294. void packetl2c_Nd_start_Lottery_result::Clear() {
  5295. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  5296. packet_id_ = 16182;
  5297. result_ = 0;
  5298. time_ = 0;
  5299. }
  5300. rewardid_.Clear();
  5301. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  5302. mutable_unknown_fields()->Clear();
  5303. }
  5304. bool packetl2c_Nd_start_Lottery_result::MergePartialFromCodedStream(
  5305. ::google::protobuf::io::CodedInputStream* input) {
  5306. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  5307. ::google::protobuf::uint32 tag;
  5308. while ((tag = input->ReadTag()) != 0) {
  5309. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  5310. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_Nd_start_Lottery_result];
  5311. case 1: {
  5312. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5313. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5314. int value;
  5315. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5316. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  5317. input, &value)));
  5318. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  5319. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  5320. } else {
  5321. mutable_unknown_fields()->AddVarint(1, value);
  5322. }
  5323. } else {
  5324. goto handle_uninterpreted;
  5325. }
  5326. if (input->ExpectTag(16)) goto parse_result;
  5327. break;
  5328. }
  5329. // optional int32 result = 2;
  5330. case 2: {
  5331. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5332. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5333. parse_result:
  5334. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5335. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5336. input, &result_)));
  5337. set_has_result();
  5338. } else {
  5339. goto handle_uninterpreted;
  5340. }
  5341. if (input->ExpectTag(24)) goto parse_time;
  5342. break;
  5343. }
  5344. // optional int32 time = 3;
  5345. case 3: {
  5346. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5347. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5348. parse_time:
  5349. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5350. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5351. input, &time_)));
  5352. set_has_time();
  5353. } else {
  5354. goto handle_uninterpreted;
  5355. }
  5356. if (input->ExpectTag(32)) goto parse_rewardId;
  5357. break;
  5358. }
  5359. // repeated int32 rewardId = 4;
  5360. case 4: {
  5361. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5362. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5363. parse_rewardId:
  5364. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
  5365. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5366. 1, 32, input, this->mutable_rewardid())));
  5367. } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
  5368. == ::google::protobuf::internal::WireFormatLite::
  5369. WIRETYPE_LENGTH_DELIMITED) {
  5370. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
  5371. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5372. input, this->mutable_rewardid())));
  5373. } else {
  5374. goto handle_uninterpreted;
  5375. }
  5376. if (input->ExpectTag(32)) goto parse_rewardId;
  5377. if (input->ExpectAtEnd()) return true;
  5378. break;
  5379. }
  5380. default: {
  5381. handle_uninterpreted:
  5382. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5383. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  5384. return true;
  5385. }
  5386. DO_(::google::protobuf::internal::WireFormat::SkipField(
  5387. input, tag, mutable_unknown_fields()));
  5388. break;
  5389. }
  5390. }
  5391. }
  5392. return true;
  5393. #undef DO_
  5394. }
  5395. void packetl2c_Nd_start_Lottery_result::SerializeWithCachedSizes(
  5396. ::google::protobuf::io::CodedOutputStream* output) const {
  5397. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_Nd_start_Lottery_result];
  5398. if (has_packet_id()) {
  5399. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  5400. 1, this->packet_id(), output);
  5401. }
  5402. // optional int32 result = 2;
  5403. if (has_result()) {
  5404. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->result(), output);
  5405. }
  5406. // optional int32 time = 3;
  5407. if (has_time()) {
  5408. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->time(), output);
  5409. }
  5410. // repeated int32 rewardId = 4;
  5411. for (int i = 0; i < this->rewardid_size(); i++) {
  5412. ::google::protobuf::internal::WireFormatLite::WriteInt32(
  5413. 4, this->rewardid(i), output);
  5414. }
  5415. if (!unknown_fields().empty()) {
  5416. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  5417. unknown_fields(), output);
  5418. }
  5419. }
  5420. ::google::protobuf::uint8* packetl2c_Nd_start_Lottery_result::SerializeWithCachedSizesToArray(
  5421. ::google::protobuf::uint8* target) const {
  5422. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_Nd_start_Lottery_result];
  5423. if (has_packet_id()) {
  5424. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  5425. 1, this->packet_id(), target);
  5426. }
  5427. // optional int32 result = 2;
  5428. if (has_result()) {
  5429. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->result(), target);
  5430. }
  5431. // optional int32 time = 3;
  5432. if (has_time()) {
  5433. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->time(), target);
  5434. }
  5435. // repeated int32 rewardId = 4;
  5436. for (int i = 0; i < this->rewardid_size(); i++) {
  5437. target = ::google::protobuf::internal::WireFormatLite::
  5438. WriteInt32ToArray(4, this->rewardid(i), target);
  5439. }
  5440. if (!unknown_fields().empty()) {
  5441. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  5442. unknown_fields(), target);
  5443. }
  5444. return target;
  5445. }
  5446. int packetl2c_Nd_start_Lottery_result::ByteSize() const {
  5447. int total_size = 0;
  5448. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  5449. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_Nd_start_Lottery_result];
  5450. if (has_packet_id()) {
  5451. total_size += 1 +
  5452. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  5453. }
  5454. // optional int32 result = 2;
  5455. if (has_result()) {
  5456. total_size += 1 +
  5457. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5458. this->result());
  5459. }
  5460. // optional int32 time = 3;
  5461. if (has_time()) {
  5462. total_size += 1 +
  5463. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5464. this->time());
  5465. }
  5466. }
  5467. // repeated int32 rewardId = 4;
  5468. {
  5469. int data_size = 0;
  5470. for (int i = 0; i < this->rewardid_size(); i++) {
  5471. data_size += ::google::protobuf::internal::WireFormatLite::
  5472. Int32Size(this->rewardid(i));
  5473. }
  5474. total_size += 1 * this->rewardid_size() + data_size;
  5475. }
  5476. if (!unknown_fields().empty()) {
  5477. total_size +=
  5478. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  5479. unknown_fields());
  5480. }
  5481. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  5482. _cached_size_ = total_size;
  5483. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  5484. return total_size;
  5485. }
  5486. void packetl2c_Nd_start_Lottery_result::MergeFrom(const ::google::protobuf::Message& from) {
  5487. GOOGLE_CHECK_NE(&from, this);
  5488. const packetl2c_Nd_start_Lottery_result* source =
  5489. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_Nd_start_Lottery_result*>(
  5490. &from);
  5491. if (source == NULL) {
  5492. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  5493. } else {
  5494. MergeFrom(*source);
  5495. }
  5496. }
  5497. void packetl2c_Nd_start_Lottery_result::MergeFrom(const packetl2c_Nd_start_Lottery_result& from) {
  5498. GOOGLE_CHECK_NE(&from, this);
  5499. rewardid_.MergeFrom(from.rewardid_);
  5500. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  5501. if (from.has_packet_id()) {
  5502. set_packet_id(from.packet_id());
  5503. }
  5504. if (from.has_result()) {
  5505. set_result(from.result());
  5506. }
  5507. if (from.has_time()) {
  5508. set_time(from.time());
  5509. }
  5510. }
  5511. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  5512. }
  5513. void packetl2c_Nd_start_Lottery_result::CopyFrom(const ::google::protobuf::Message& from) {
  5514. if (&from == this) return;
  5515. Clear();
  5516. MergeFrom(from);
  5517. }
  5518. void packetl2c_Nd_start_Lottery_result::CopyFrom(const packetl2c_Nd_start_Lottery_result& from) {
  5519. if (&from == this) return;
  5520. Clear();
  5521. MergeFrom(from);
  5522. }
  5523. bool packetl2c_Nd_start_Lottery_result::IsInitialized() const {
  5524. return true;
  5525. }
  5526. void packetl2c_Nd_start_Lottery_result::Swap(packetl2c_Nd_start_Lottery_result* other) {
  5527. if (other != this) {
  5528. std::swap(packet_id_, other->packet_id_);
  5529. std::swap(result_, other->result_);
  5530. std::swap(time_, other->time_);
  5531. rewardid_.Swap(&other->rewardid_);
  5532. std::swap(_has_bits_[0], other->_has_bits_[0]);
  5533. _unknown_fields_.Swap(&other->_unknown_fields_);
  5534. std::swap(_cached_size_, other->_cached_size_);
  5535. }
  5536. }
  5537. ::google::protobuf::Metadata packetl2c_Nd_start_Lottery_result::GetMetadata() const {
  5538. protobuf_AssignDescriptorsOnce();
  5539. ::google::protobuf::Metadata metadata;
  5540. metadata.descriptor = packetl2c_Nd_start_Lottery_result_descriptor_;
  5541. metadata.reflection = packetl2c_Nd_start_Lottery_result_reflection_;
  5542. return metadata;
  5543. }
  5544. // ===================================================================
  5545. #ifndef _MSC_VER
  5546. const int packetc2l_Nd_item_exchange::kPacketIdFieldNumber;
  5547. const int packetc2l_Nd_item_exchange::kTypeFieldNumber;
  5548. const int packetc2l_Nd_item_exchange::kExchangeIdFieldNumber;
  5549. #endif // !_MSC_VER
  5550. packetc2l_Nd_item_exchange::packetc2l_Nd_item_exchange()
  5551. : ::google::protobuf::Message() {
  5552. SharedCtor();
  5553. }
  5554. void packetc2l_Nd_item_exchange::InitAsDefaultInstance() {
  5555. }
  5556. packetc2l_Nd_item_exchange::packetc2l_Nd_item_exchange(const packetc2l_Nd_item_exchange& from)
  5557. : ::google::protobuf::Message() {
  5558. SharedCtor();
  5559. MergeFrom(from);
  5560. }
  5561. void packetc2l_Nd_item_exchange::SharedCtor() {
  5562. _cached_size_ = 0;
  5563. packet_id_ = 10189;
  5564. type_ = 0;
  5565. exchangeid_ = 0;
  5566. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  5567. }
  5568. packetc2l_Nd_item_exchange::~packetc2l_Nd_item_exchange() {
  5569. SharedDtor();
  5570. }
  5571. void packetc2l_Nd_item_exchange::SharedDtor() {
  5572. if (this != default_instance_) {
  5573. }
  5574. }
  5575. void packetc2l_Nd_item_exchange::SetCachedSize(int size) const {
  5576. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  5577. _cached_size_ = size;
  5578. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  5579. }
  5580. const ::google::protobuf::Descriptor* packetc2l_Nd_item_exchange::descriptor() {
  5581. protobuf_AssignDescriptorsOnce();
  5582. return packetc2l_Nd_item_exchange_descriptor_;
  5583. }
  5584. const packetc2l_Nd_item_exchange& packetc2l_Nd_item_exchange::default_instance() {
  5585. if (default_instance_ == NULL) protobuf_AddDesc_fish_5factivity_2eproto();
  5586. return *default_instance_;
  5587. }
  5588. packetc2l_Nd_item_exchange* packetc2l_Nd_item_exchange::default_instance_ = NULL;
  5589. packetc2l_Nd_item_exchange* packetc2l_Nd_item_exchange::New() const {
  5590. return new packetc2l_Nd_item_exchange;
  5591. }
  5592. void packetc2l_Nd_item_exchange::Clear() {
  5593. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  5594. packet_id_ = 10189;
  5595. type_ = 0;
  5596. exchangeid_ = 0;
  5597. }
  5598. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  5599. mutable_unknown_fields()->Clear();
  5600. }
  5601. bool packetc2l_Nd_item_exchange::MergePartialFromCodedStream(
  5602. ::google::protobuf::io::CodedInputStream* input) {
  5603. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  5604. ::google::protobuf::uint32 tag;
  5605. while ((tag = input->ReadTag()) != 0) {
  5606. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  5607. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_Nd_item_exchange];
  5608. case 1: {
  5609. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5610. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5611. int value;
  5612. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5613. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  5614. input, &value)));
  5615. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  5616. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  5617. } else {
  5618. mutable_unknown_fields()->AddVarint(1, value);
  5619. }
  5620. } else {
  5621. goto handle_uninterpreted;
  5622. }
  5623. if (input->ExpectTag(16)) goto parse_type;
  5624. break;
  5625. }
  5626. // optional int32 type = 2;
  5627. case 2: {
  5628. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5629. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5630. parse_type:
  5631. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5632. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5633. input, &type_)));
  5634. set_has_type();
  5635. } else {
  5636. goto handle_uninterpreted;
  5637. }
  5638. if (input->ExpectTag(24)) goto parse_exchangeId;
  5639. break;
  5640. }
  5641. // optional int32 exchangeId = 3;
  5642. case 3: {
  5643. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5644. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5645. parse_exchangeId:
  5646. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5647. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5648. input, &exchangeid_)));
  5649. set_has_exchangeid();
  5650. } else {
  5651. goto handle_uninterpreted;
  5652. }
  5653. if (input->ExpectAtEnd()) return true;
  5654. break;
  5655. }
  5656. default: {
  5657. handle_uninterpreted:
  5658. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5659. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  5660. return true;
  5661. }
  5662. DO_(::google::protobuf::internal::WireFormat::SkipField(
  5663. input, tag, mutable_unknown_fields()));
  5664. break;
  5665. }
  5666. }
  5667. }
  5668. return true;
  5669. #undef DO_
  5670. }
  5671. void packetc2l_Nd_item_exchange::SerializeWithCachedSizes(
  5672. ::google::protobuf::io::CodedOutputStream* output) const {
  5673. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_Nd_item_exchange];
  5674. if (has_packet_id()) {
  5675. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  5676. 1, this->packet_id(), output);
  5677. }
  5678. // optional int32 type = 2;
  5679. if (has_type()) {
  5680. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->type(), output);
  5681. }
  5682. // optional int32 exchangeId = 3;
  5683. if (has_exchangeid()) {
  5684. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->exchangeid(), output);
  5685. }
  5686. if (!unknown_fields().empty()) {
  5687. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  5688. unknown_fields(), output);
  5689. }
  5690. }
  5691. ::google::protobuf::uint8* packetc2l_Nd_item_exchange::SerializeWithCachedSizesToArray(
  5692. ::google::protobuf::uint8* target) const {
  5693. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_Nd_item_exchange];
  5694. if (has_packet_id()) {
  5695. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  5696. 1, this->packet_id(), target);
  5697. }
  5698. // optional int32 type = 2;
  5699. if (has_type()) {
  5700. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->type(), target);
  5701. }
  5702. // optional int32 exchangeId = 3;
  5703. if (has_exchangeid()) {
  5704. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->exchangeid(), target);
  5705. }
  5706. if (!unknown_fields().empty()) {
  5707. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  5708. unknown_fields(), target);
  5709. }
  5710. return target;
  5711. }
  5712. int packetc2l_Nd_item_exchange::ByteSize() const {
  5713. int total_size = 0;
  5714. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  5715. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_Nd_item_exchange];
  5716. if (has_packet_id()) {
  5717. total_size += 1 +
  5718. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  5719. }
  5720. // optional int32 type = 2;
  5721. if (has_type()) {
  5722. total_size += 1 +
  5723. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5724. this->type());
  5725. }
  5726. // optional int32 exchangeId = 3;
  5727. if (has_exchangeid()) {
  5728. total_size += 1 +
  5729. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5730. this->exchangeid());
  5731. }
  5732. }
  5733. if (!unknown_fields().empty()) {
  5734. total_size +=
  5735. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  5736. unknown_fields());
  5737. }
  5738. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  5739. _cached_size_ = total_size;
  5740. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  5741. return total_size;
  5742. }
  5743. void packetc2l_Nd_item_exchange::MergeFrom(const ::google::protobuf::Message& from) {
  5744. GOOGLE_CHECK_NE(&from, this);
  5745. const packetc2l_Nd_item_exchange* source =
  5746. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_Nd_item_exchange*>(
  5747. &from);
  5748. if (source == NULL) {
  5749. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  5750. } else {
  5751. MergeFrom(*source);
  5752. }
  5753. }
  5754. void packetc2l_Nd_item_exchange::MergeFrom(const packetc2l_Nd_item_exchange& from) {
  5755. GOOGLE_CHECK_NE(&from, this);
  5756. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  5757. if (from.has_packet_id()) {
  5758. set_packet_id(from.packet_id());
  5759. }
  5760. if (from.has_type()) {
  5761. set_type(from.type());
  5762. }
  5763. if (from.has_exchangeid()) {
  5764. set_exchangeid(from.exchangeid());
  5765. }
  5766. }
  5767. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  5768. }
  5769. void packetc2l_Nd_item_exchange::CopyFrom(const ::google::protobuf::Message& from) {
  5770. if (&from == this) return;
  5771. Clear();
  5772. MergeFrom(from);
  5773. }
  5774. void packetc2l_Nd_item_exchange::CopyFrom(const packetc2l_Nd_item_exchange& from) {
  5775. if (&from == this) return;
  5776. Clear();
  5777. MergeFrom(from);
  5778. }
  5779. bool packetc2l_Nd_item_exchange::IsInitialized() const {
  5780. return true;
  5781. }
  5782. void packetc2l_Nd_item_exchange::Swap(packetc2l_Nd_item_exchange* other) {
  5783. if (other != this) {
  5784. std::swap(packet_id_, other->packet_id_);
  5785. std::swap(type_, other->type_);
  5786. std::swap(exchangeid_, other->exchangeid_);
  5787. std::swap(_has_bits_[0], other->_has_bits_[0]);
  5788. _unknown_fields_.Swap(&other->_unknown_fields_);
  5789. std::swap(_cached_size_, other->_cached_size_);
  5790. }
  5791. }
  5792. ::google::protobuf::Metadata packetc2l_Nd_item_exchange::GetMetadata() const {
  5793. protobuf_AssignDescriptorsOnce();
  5794. ::google::protobuf::Metadata metadata;
  5795. metadata.descriptor = packetc2l_Nd_item_exchange_descriptor_;
  5796. metadata.reflection = packetc2l_Nd_item_exchange_reflection_;
  5797. return metadata;
  5798. }
  5799. // ===================================================================
  5800. #ifndef _MSC_VER
  5801. const int packetl2c_Nd_item_exchange_result::kPacketIdFieldNumber;
  5802. const int packetl2c_Nd_item_exchange_result::kResultFieldNumber;
  5803. const int packetl2c_Nd_item_exchange_result::kExchangeIdsFieldNumber;
  5804. #endif // !_MSC_VER
  5805. packetl2c_Nd_item_exchange_result::packetl2c_Nd_item_exchange_result()
  5806. : ::google::protobuf::Message() {
  5807. SharedCtor();
  5808. }
  5809. void packetl2c_Nd_item_exchange_result::InitAsDefaultInstance() {
  5810. }
  5811. packetl2c_Nd_item_exchange_result::packetl2c_Nd_item_exchange_result(const packetl2c_Nd_item_exchange_result& from)
  5812. : ::google::protobuf::Message() {
  5813. SharedCtor();
  5814. MergeFrom(from);
  5815. }
  5816. void packetl2c_Nd_item_exchange_result::SharedCtor() {
  5817. _cached_size_ = 0;
  5818. packet_id_ = 16183;
  5819. result_ = 0;
  5820. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  5821. }
  5822. packetl2c_Nd_item_exchange_result::~packetl2c_Nd_item_exchange_result() {
  5823. SharedDtor();
  5824. }
  5825. void packetl2c_Nd_item_exchange_result::SharedDtor() {
  5826. if (this != default_instance_) {
  5827. }
  5828. }
  5829. void packetl2c_Nd_item_exchange_result::SetCachedSize(int size) const {
  5830. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  5831. _cached_size_ = size;
  5832. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  5833. }
  5834. const ::google::protobuf::Descriptor* packetl2c_Nd_item_exchange_result::descriptor() {
  5835. protobuf_AssignDescriptorsOnce();
  5836. return packetl2c_Nd_item_exchange_result_descriptor_;
  5837. }
  5838. const packetl2c_Nd_item_exchange_result& packetl2c_Nd_item_exchange_result::default_instance() {
  5839. if (default_instance_ == NULL) protobuf_AddDesc_fish_5factivity_2eproto();
  5840. return *default_instance_;
  5841. }
  5842. packetl2c_Nd_item_exchange_result* packetl2c_Nd_item_exchange_result::default_instance_ = NULL;
  5843. packetl2c_Nd_item_exchange_result* packetl2c_Nd_item_exchange_result::New() const {
  5844. return new packetl2c_Nd_item_exchange_result;
  5845. }
  5846. void packetl2c_Nd_item_exchange_result::Clear() {
  5847. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  5848. packet_id_ = 16183;
  5849. result_ = 0;
  5850. }
  5851. exchangeids_.Clear();
  5852. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  5853. mutable_unknown_fields()->Clear();
  5854. }
  5855. bool packetl2c_Nd_item_exchange_result::MergePartialFromCodedStream(
  5856. ::google::protobuf::io::CodedInputStream* input) {
  5857. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  5858. ::google::protobuf::uint32 tag;
  5859. while ((tag = input->ReadTag()) != 0) {
  5860. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  5861. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_Nd_item_exchange_result];
  5862. case 1: {
  5863. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5864. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5865. int value;
  5866. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5867. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  5868. input, &value)));
  5869. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  5870. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  5871. } else {
  5872. mutable_unknown_fields()->AddVarint(1, value);
  5873. }
  5874. } else {
  5875. goto handle_uninterpreted;
  5876. }
  5877. if (input->ExpectTag(16)) goto parse_result;
  5878. break;
  5879. }
  5880. // optional int32 result = 2;
  5881. case 2: {
  5882. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5883. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5884. parse_result:
  5885. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5886. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5887. input, &result_)));
  5888. set_has_result();
  5889. } else {
  5890. goto handle_uninterpreted;
  5891. }
  5892. if (input->ExpectTag(24)) goto parse_exchangeIds;
  5893. break;
  5894. }
  5895. // repeated int32 exchangeIds = 3;
  5896. case 3: {
  5897. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5898. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5899. parse_exchangeIds:
  5900. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
  5901. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5902. 1, 24, input, this->mutable_exchangeids())));
  5903. } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
  5904. == ::google::protobuf::internal::WireFormatLite::
  5905. WIRETYPE_LENGTH_DELIMITED) {
  5906. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
  5907. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5908. input, this->mutable_exchangeids())));
  5909. } else {
  5910. goto handle_uninterpreted;
  5911. }
  5912. if (input->ExpectTag(24)) goto parse_exchangeIds;
  5913. if (input->ExpectAtEnd()) return true;
  5914. break;
  5915. }
  5916. default: {
  5917. handle_uninterpreted:
  5918. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5919. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  5920. return true;
  5921. }
  5922. DO_(::google::protobuf::internal::WireFormat::SkipField(
  5923. input, tag, mutable_unknown_fields()));
  5924. break;
  5925. }
  5926. }
  5927. }
  5928. return true;
  5929. #undef DO_
  5930. }
  5931. void packetl2c_Nd_item_exchange_result::SerializeWithCachedSizes(
  5932. ::google::protobuf::io::CodedOutputStream* output) const {
  5933. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_Nd_item_exchange_result];
  5934. if (has_packet_id()) {
  5935. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  5936. 1, this->packet_id(), output);
  5937. }
  5938. // optional int32 result = 2;
  5939. if (has_result()) {
  5940. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->result(), output);
  5941. }
  5942. // repeated int32 exchangeIds = 3;
  5943. for (int i = 0; i < this->exchangeids_size(); i++) {
  5944. ::google::protobuf::internal::WireFormatLite::WriteInt32(
  5945. 3, this->exchangeids(i), output);
  5946. }
  5947. if (!unknown_fields().empty()) {
  5948. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  5949. unknown_fields(), output);
  5950. }
  5951. }
  5952. ::google::protobuf::uint8* packetl2c_Nd_item_exchange_result::SerializeWithCachedSizesToArray(
  5953. ::google::protobuf::uint8* target) const {
  5954. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_Nd_item_exchange_result];
  5955. if (has_packet_id()) {
  5956. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  5957. 1, this->packet_id(), target);
  5958. }
  5959. // optional int32 result = 2;
  5960. if (has_result()) {
  5961. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->result(), target);
  5962. }
  5963. // repeated int32 exchangeIds = 3;
  5964. for (int i = 0; i < this->exchangeids_size(); i++) {
  5965. target = ::google::protobuf::internal::WireFormatLite::
  5966. WriteInt32ToArray(3, this->exchangeids(i), target);
  5967. }
  5968. if (!unknown_fields().empty()) {
  5969. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  5970. unknown_fields(), target);
  5971. }
  5972. return target;
  5973. }
  5974. int packetl2c_Nd_item_exchange_result::ByteSize() const {
  5975. int total_size = 0;
  5976. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  5977. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_Nd_item_exchange_result];
  5978. if (has_packet_id()) {
  5979. total_size += 1 +
  5980. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  5981. }
  5982. // optional int32 result = 2;
  5983. if (has_result()) {
  5984. total_size += 1 +
  5985. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5986. this->result());
  5987. }
  5988. }
  5989. // repeated int32 exchangeIds = 3;
  5990. {
  5991. int data_size = 0;
  5992. for (int i = 0; i < this->exchangeids_size(); i++) {
  5993. data_size += ::google::protobuf::internal::WireFormatLite::
  5994. Int32Size(this->exchangeids(i));
  5995. }
  5996. total_size += 1 * this->exchangeids_size() + data_size;
  5997. }
  5998. if (!unknown_fields().empty()) {
  5999. total_size +=
  6000. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  6001. unknown_fields());
  6002. }
  6003. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  6004. _cached_size_ = total_size;
  6005. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  6006. return total_size;
  6007. }
  6008. void packetl2c_Nd_item_exchange_result::MergeFrom(const ::google::protobuf::Message& from) {
  6009. GOOGLE_CHECK_NE(&from, this);
  6010. const packetl2c_Nd_item_exchange_result* source =
  6011. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_Nd_item_exchange_result*>(
  6012. &from);
  6013. if (source == NULL) {
  6014. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  6015. } else {
  6016. MergeFrom(*source);
  6017. }
  6018. }
  6019. void packetl2c_Nd_item_exchange_result::MergeFrom(const packetl2c_Nd_item_exchange_result& from) {
  6020. GOOGLE_CHECK_NE(&from, this);
  6021. exchangeids_.MergeFrom(from.exchangeids_);
  6022. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  6023. if (from.has_packet_id()) {
  6024. set_packet_id(from.packet_id());
  6025. }
  6026. if (from.has_result()) {
  6027. set_result(from.result());
  6028. }
  6029. }
  6030. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  6031. }
  6032. void packetl2c_Nd_item_exchange_result::CopyFrom(const ::google::protobuf::Message& from) {
  6033. if (&from == this) return;
  6034. Clear();
  6035. MergeFrom(from);
  6036. }
  6037. void packetl2c_Nd_item_exchange_result::CopyFrom(const packetl2c_Nd_item_exchange_result& from) {
  6038. if (&from == this) return;
  6039. Clear();
  6040. MergeFrom(from);
  6041. }
  6042. bool packetl2c_Nd_item_exchange_result::IsInitialized() const {
  6043. return true;
  6044. }
  6045. void packetl2c_Nd_item_exchange_result::Swap(packetl2c_Nd_item_exchange_result* other) {
  6046. if (other != this) {
  6047. std::swap(packet_id_, other->packet_id_);
  6048. std::swap(result_, other->result_);
  6049. exchangeids_.Swap(&other->exchangeids_);
  6050. std::swap(_has_bits_[0], other->_has_bits_[0]);
  6051. _unknown_fields_.Swap(&other->_unknown_fields_);
  6052. std::swap(_cached_size_, other->_cached_size_);
  6053. }
  6054. }
  6055. ::google::protobuf::Metadata packetl2c_Nd_item_exchange_result::GetMetadata() const {
  6056. protobuf_AssignDescriptorsOnce();
  6057. ::google::protobuf::Metadata metadata;
  6058. metadata.descriptor = packetl2c_Nd_item_exchange_result_descriptor_;
  6059. metadata.reflection = packetl2c_Nd_item_exchange_result_reflection_;
  6060. return metadata;
  6061. }
  6062. // ===================================================================
  6063. #ifndef _MSC_VER
  6064. const int packetl2c_get_grand_prix_info_result::kPacketIdFieldNumber;
  6065. const int packetl2c_get_grand_prix_info_result::kActivityStateFieldNumber;
  6066. const int packetl2c_get_grand_prix_info_result::kResultFieldNumber;
  6067. const int packetl2c_get_grand_prix_info_result::kStartTimeFieldNumber;
  6068. const int packetl2c_get_grand_prix_info_result::kEndTimeFieldNumber;
  6069. #endif // !_MSC_VER
  6070. packetl2c_get_grand_prix_info_result::packetl2c_get_grand_prix_info_result()
  6071. : ::google::protobuf::Message() {
  6072. SharedCtor();
  6073. }
  6074. void packetl2c_get_grand_prix_info_result::InitAsDefaultInstance() {
  6075. }
  6076. packetl2c_get_grand_prix_info_result::packetl2c_get_grand_prix_info_result(const packetl2c_get_grand_prix_info_result& from)
  6077. : ::google::protobuf::Message() {
  6078. SharedCtor();
  6079. MergeFrom(from);
  6080. }
  6081. void packetl2c_get_grand_prix_info_result::SharedCtor() {
  6082. _cached_size_ = 0;
  6083. packet_id_ = 16146;
  6084. activitystate_ = 0;
  6085. result_ = 0;
  6086. starttime_ = 0;
  6087. endtime_ = 0;
  6088. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  6089. }
  6090. packetl2c_get_grand_prix_info_result::~packetl2c_get_grand_prix_info_result() {
  6091. SharedDtor();
  6092. }
  6093. void packetl2c_get_grand_prix_info_result::SharedDtor() {
  6094. if (this != default_instance_) {
  6095. }
  6096. }
  6097. void packetl2c_get_grand_prix_info_result::SetCachedSize(int size) const {
  6098. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  6099. _cached_size_ = size;
  6100. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  6101. }
  6102. const ::google::protobuf::Descriptor* packetl2c_get_grand_prix_info_result::descriptor() {
  6103. protobuf_AssignDescriptorsOnce();
  6104. return packetl2c_get_grand_prix_info_result_descriptor_;
  6105. }
  6106. const packetl2c_get_grand_prix_info_result& packetl2c_get_grand_prix_info_result::default_instance() {
  6107. if (default_instance_ == NULL) protobuf_AddDesc_fish_5factivity_2eproto();
  6108. return *default_instance_;
  6109. }
  6110. packetl2c_get_grand_prix_info_result* packetl2c_get_grand_prix_info_result::default_instance_ = NULL;
  6111. packetl2c_get_grand_prix_info_result* packetl2c_get_grand_prix_info_result::New() const {
  6112. return new packetl2c_get_grand_prix_info_result;
  6113. }
  6114. void packetl2c_get_grand_prix_info_result::Clear() {
  6115. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  6116. packet_id_ = 16146;
  6117. activitystate_ = 0;
  6118. result_ = 0;
  6119. starttime_ = 0;
  6120. endtime_ = 0;
  6121. }
  6122. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  6123. mutable_unknown_fields()->Clear();
  6124. }
  6125. bool packetl2c_get_grand_prix_info_result::MergePartialFromCodedStream(
  6126. ::google::protobuf::io::CodedInputStream* input) {
  6127. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  6128. ::google::protobuf::uint32 tag;
  6129. while ((tag = input->ReadTag()) != 0) {
  6130. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  6131. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_grand_prix_info_result];
  6132. case 1: {
  6133. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6134. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  6135. int value;
  6136. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  6137. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  6138. input, &value)));
  6139. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  6140. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  6141. } else {
  6142. mutable_unknown_fields()->AddVarint(1, value);
  6143. }
  6144. } else {
  6145. goto handle_uninterpreted;
  6146. }
  6147. if (input->ExpectTag(16)) goto parse_activityState;
  6148. break;
  6149. }
  6150. // optional int32 activityState = 2;
  6151. case 2: {
  6152. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6153. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  6154. parse_activityState:
  6155. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  6156. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  6157. input, &activitystate_)));
  6158. set_has_activitystate();
  6159. } else {
  6160. goto handle_uninterpreted;
  6161. }
  6162. if (input->ExpectTag(24)) goto parse_result;
  6163. break;
  6164. }
  6165. // optional int32 result = 3;
  6166. case 3: {
  6167. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6168. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  6169. parse_result:
  6170. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  6171. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  6172. input, &result_)));
  6173. set_has_result();
  6174. } else {
  6175. goto handle_uninterpreted;
  6176. }
  6177. if (input->ExpectTag(32)) goto parse_startTime;
  6178. break;
  6179. }
  6180. // optional int32 startTime = 4;
  6181. case 4: {
  6182. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6183. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  6184. parse_startTime:
  6185. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  6186. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  6187. input, &starttime_)));
  6188. set_has_starttime();
  6189. } else {
  6190. goto handle_uninterpreted;
  6191. }
  6192. if (input->ExpectTag(40)) goto parse_endTime;
  6193. break;
  6194. }
  6195. // optional int32 endTime = 5;
  6196. case 5: {
  6197. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6198. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  6199. parse_endTime:
  6200. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  6201. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  6202. input, &endtime_)));
  6203. set_has_endtime();
  6204. } else {
  6205. goto handle_uninterpreted;
  6206. }
  6207. if (input->ExpectAtEnd()) return true;
  6208. break;
  6209. }
  6210. default: {
  6211. handle_uninterpreted:
  6212. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6213. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  6214. return true;
  6215. }
  6216. DO_(::google::protobuf::internal::WireFormat::SkipField(
  6217. input, tag, mutable_unknown_fields()));
  6218. break;
  6219. }
  6220. }
  6221. }
  6222. return true;
  6223. #undef DO_
  6224. }
  6225. void packetl2c_get_grand_prix_info_result::SerializeWithCachedSizes(
  6226. ::google::protobuf::io::CodedOutputStream* output) const {
  6227. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_grand_prix_info_result];
  6228. if (has_packet_id()) {
  6229. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  6230. 1, this->packet_id(), output);
  6231. }
  6232. // optional int32 activityState = 2;
  6233. if (has_activitystate()) {
  6234. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->activitystate(), output);
  6235. }
  6236. // optional int32 result = 3;
  6237. if (has_result()) {
  6238. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->result(), output);
  6239. }
  6240. // optional int32 startTime = 4;
  6241. if (has_starttime()) {
  6242. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->starttime(), output);
  6243. }
  6244. // optional int32 endTime = 5;
  6245. if (has_endtime()) {
  6246. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->endtime(), output);
  6247. }
  6248. if (!unknown_fields().empty()) {
  6249. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  6250. unknown_fields(), output);
  6251. }
  6252. }
  6253. ::google::protobuf::uint8* packetl2c_get_grand_prix_info_result::SerializeWithCachedSizesToArray(
  6254. ::google::protobuf::uint8* target) const {
  6255. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_grand_prix_info_result];
  6256. if (has_packet_id()) {
  6257. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  6258. 1, this->packet_id(), target);
  6259. }
  6260. // optional int32 activityState = 2;
  6261. if (has_activitystate()) {
  6262. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->activitystate(), target);
  6263. }
  6264. // optional int32 result = 3;
  6265. if (has_result()) {
  6266. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->result(), target);
  6267. }
  6268. // optional int32 startTime = 4;
  6269. if (has_starttime()) {
  6270. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->starttime(), target);
  6271. }
  6272. // optional int32 endTime = 5;
  6273. if (has_endtime()) {
  6274. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->endtime(), target);
  6275. }
  6276. if (!unknown_fields().empty()) {
  6277. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  6278. unknown_fields(), target);
  6279. }
  6280. return target;
  6281. }
  6282. int packetl2c_get_grand_prix_info_result::ByteSize() const {
  6283. int total_size = 0;
  6284. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  6285. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_grand_prix_info_result];
  6286. if (has_packet_id()) {
  6287. total_size += 1 +
  6288. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  6289. }
  6290. // optional int32 activityState = 2;
  6291. if (has_activitystate()) {
  6292. total_size += 1 +
  6293. ::google::protobuf::internal::WireFormatLite::Int32Size(
  6294. this->activitystate());
  6295. }
  6296. // optional int32 result = 3;
  6297. if (has_result()) {
  6298. total_size += 1 +
  6299. ::google::protobuf::internal::WireFormatLite::Int32Size(
  6300. this->result());
  6301. }
  6302. // optional int32 startTime = 4;
  6303. if (has_starttime()) {
  6304. total_size += 1 +
  6305. ::google::protobuf::internal::WireFormatLite::Int32Size(
  6306. this->starttime());
  6307. }
  6308. // optional int32 endTime = 5;
  6309. if (has_endtime()) {
  6310. total_size += 1 +
  6311. ::google::protobuf::internal::WireFormatLite::Int32Size(
  6312. this->endtime());
  6313. }
  6314. }
  6315. if (!unknown_fields().empty()) {
  6316. total_size +=
  6317. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  6318. unknown_fields());
  6319. }
  6320. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  6321. _cached_size_ = total_size;
  6322. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  6323. return total_size;
  6324. }
  6325. void packetl2c_get_grand_prix_info_result::MergeFrom(const ::google::protobuf::Message& from) {
  6326. GOOGLE_CHECK_NE(&from, this);
  6327. const packetl2c_get_grand_prix_info_result* source =
  6328. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_get_grand_prix_info_result*>(
  6329. &from);
  6330. if (source == NULL) {
  6331. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  6332. } else {
  6333. MergeFrom(*source);
  6334. }
  6335. }
  6336. void packetl2c_get_grand_prix_info_result::MergeFrom(const packetl2c_get_grand_prix_info_result& from) {
  6337. GOOGLE_CHECK_NE(&from, this);
  6338. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  6339. if (from.has_packet_id()) {
  6340. set_packet_id(from.packet_id());
  6341. }
  6342. if (from.has_activitystate()) {
  6343. set_activitystate(from.activitystate());
  6344. }
  6345. if (from.has_result()) {
  6346. set_result(from.result());
  6347. }
  6348. if (from.has_starttime()) {
  6349. set_starttime(from.starttime());
  6350. }
  6351. if (from.has_endtime()) {
  6352. set_endtime(from.endtime());
  6353. }
  6354. }
  6355. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  6356. }
  6357. void packetl2c_get_grand_prix_info_result::CopyFrom(const ::google::protobuf::Message& from) {
  6358. if (&from == this) return;
  6359. Clear();
  6360. MergeFrom(from);
  6361. }
  6362. void packetl2c_get_grand_prix_info_result::CopyFrom(const packetl2c_get_grand_prix_info_result& from) {
  6363. if (&from == this) return;
  6364. Clear();
  6365. MergeFrom(from);
  6366. }
  6367. bool packetl2c_get_grand_prix_info_result::IsInitialized() const {
  6368. return true;
  6369. }
  6370. void packetl2c_get_grand_prix_info_result::Swap(packetl2c_get_grand_prix_info_result* other) {
  6371. if (other != this) {
  6372. std::swap(packet_id_, other->packet_id_);
  6373. std::swap(activitystate_, other->activitystate_);
  6374. std::swap(result_, other->result_);
  6375. std::swap(starttime_, other->starttime_);
  6376. std::swap(endtime_, other->endtime_);
  6377. std::swap(_has_bits_[0], other->_has_bits_[0]);
  6378. _unknown_fields_.Swap(&other->_unknown_fields_);
  6379. std::swap(_cached_size_, other->_cached_size_);
  6380. }
  6381. }
  6382. ::google::protobuf::Metadata packetl2c_get_grand_prix_info_result::GetMetadata() const {
  6383. protobuf_AssignDescriptorsOnce();
  6384. ::google::protobuf::Metadata metadata;
  6385. metadata.descriptor = packetl2c_get_grand_prix_info_result_descriptor_;
  6386. metadata.reflection = packetl2c_get_grand_prix_info_result_reflection_;
  6387. return metadata;
  6388. }
  6389. // @@protoc_insertion_point(namespace_scope)
  6390. } // namespace fish_protocols
  6391. // @@protoc_insertion_point(global_scope)