fish_monkey_palace.pb.cc 191 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: fish_monkey_palace.proto
  3. #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
  4. #include "fish_monkey_palace.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* killMonkeyHistory_descriptor_ = NULL;
  18. const ::google::protobuf::internal::GeneratedMessageReflection*
  19. killMonkeyHistory_reflection_ = NULL;
  20. const ::google::protobuf::Descriptor* MonkeyRankInfo_descriptor_ = NULL;
  21. const ::google::protobuf::internal::GeneratedMessageReflection*
  22. MonkeyRankInfo_reflection_ = NULL;
  23. const ::google::protobuf::Descriptor* packetc2l_get_monkey_rank_descriptor_ = NULL;
  24. const ::google::protobuf::internal::GeneratedMessageReflection*
  25. packetc2l_get_monkey_rank_reflection_ = NULL;
  26. const ::google::protobuf::Descriptor* packetl2c_get_monkey_rank_result_descriptor_ = NULL;
  27. const ::google::protobuf::internal::GeneratedMessageReflection*
  28. packetl2c_get_monkey_rank_result_reflection_ = NULL;
  29. const ::google::protobuf::Descriptor* packetc2l_get_monkey_info_descriptor_ = NULL;
  30. const ::google::protobuf::internal::GeneratedMessageReflection*
  31. packetc2l_get_monkey_info_reflection_ = NULL;
  32. const ::google::protobuf::Descriptor* packetl2c_get_monkey_info_result_descriptor_ = NULL;
  33. const ::google::protobuf::internal::GeneratedMessageReflection*
  34. packetl2c_get_monkey_info_result_reflection_ = NULL;
  35. const ::google::protobuf::Descriptor* packetl2c_bc_table_kill_monkey_descriptor_ = NULL;
  36. const ::google::protobuf::internal::GeneratedMessageReflection*
  37. packetl2c_bc_table_kill_monkey_reflection_ = NULL;
  38. const ::google::protobuf::Descriptor* packetl2c_bc_table_kill_monkey_fish_descriptor_ = NULL;
  39. const ::google::protobuf::internal::GeneratedMessageReflection*
  40. packetl2c_bc_table_kill_monkey_fish_reflection_ = NULL;
  41. const ::google::protobuf::Descriptor* packetc2l_get_kill_monkey_history_descriptor_ = NULL;
  42. const ::google::protobuf::internal::GeneratedMessageReflection*
  43. packetc2l_get_kill_monkey_history_reflection_ = NULL;
  44. const ::google::protobuf::Descriptor* packetl2c_get_kill_monkey_history_result_descriptor_ = NULL;
  45. const ::google::protobuf::internal::GeneratedMessageReflection*
  46. packetl2c_get_kill_monkey_history_result_reflection_ = NULL;
  47. const ::google::protobuf::Descriptor* packetc2l_call_monkey_descriptor_ = NULL;
  48. const ::google::protobuf::internal::GeneratedMessageReflection*
  49. packetc2l_call_monkey_reflection_ = NULL;
  50. const ::google::protobuf::Descriptor* packetl2c_call_monkey_result_descriptor_ = NULL;
  51. const ::google::protobuf::internal::GeneratedMessageReflection*
  52. packetl2c_call_monkey_result_reflection_ = NULL;
  53. const ::google::protobuf::Descriptor* packetc2l_monkey_exchange_descriptor_ = NULL;
  54. const ::google::protobuf::internal::GeneratedMessageReflection*
  55. packetc2l_monkey_exchange_reflection_ = NULL;
  56. const ::google::protobuf::Descriptor* packetl2c_monkey_exchange_result_descriptor_ = NULL;
  57. const ::google::protobuf::internal::GeneratedMessageReflection*
  58. packetl2c_monkey_exchange_result_reflection_ = NULL;
  59. } // namespace
  60. void protobuf_AssignDesc_fish_5fmonkey_5fpalace_2eproto() {
  61. protobuf_AddDesc_fish_5fmonkey_5fpalace_2eproto();
  62. const ::google::protobuf::FileDescriptor* file =
  63. ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
  64. "fish_monkey_palace.proto");
  65. GOOGLE_CHECK(file != NULL);
  66. killMonkeyHistory_descriptor_ = file->message_type(0);
  67. static const int killMonkeyHistory_offsets_[5] = {
  68. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(killMonkeyHistory, nickname_),
  69. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(killMonkeyHistory, fishname_),
  70. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(killMonkeyHistory, mult_),
  71. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(killMonkeyHistory, gold_),
  72. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(killMonkeyHistory, items_),
  73. };
  74. killMonkeyHistory_reflection_ =
  75. new ::google::protobuf::internal::GeneratedMessageReflection(
  76. killMonkeyHistory_descriptor_,
  77. killMonkeyHistory::default_instance_,
  78. killMonkeyHistory_offsets_,
  79. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(killMonkeyHistory, _has_bits_[0]),
  80. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(killMonkeyHistory, _unknown_fields_),
  81. -1,
  82. ::google::protobuf::DescriptorPool::generated_pool(),
  83. ::google::protobuf::MessageFactory::generated_factory(),
  84. sizeof(killMonkeyHistory));
  85. MonkeyRankInfo_descriptor_ = file->message_type(1);
  86. static const int MonkeyRankInfo_offsets_[7] = {
  87. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MonkeyRankInfo, playerid_),
  88. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MonkeyRankInfo, nickname_),
  89. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MonkeyRankInfo, headid_),
  90. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MonkeyRankInfo, frameid_),
  91. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MonkeyRankInfo, fishscore_),
  92. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MonkeyRankInfo, monkeyscore_),
  93. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MonkeyRankInfo, rank_),
  94. };
  95. MonkeyRankInfo_reflection_ =
  96. new ::google::protobuf::internal::GeneratedMessageReflection(
  97. MonkeyRankInfo_descriptor_,
  98. MonkeyRankInfo::default_instance_,
  99. MonkeyRankInfo_offsets_,
  100. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MonkeyRankInfo, _has_bits_[0]),
  101. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MonkeyRankInfo, _unknown_fields_),
  102. -1,
  103. ::google::protobuf::DescriptorPool::generated_pool(),
  104. ::google::protobuf::MessageFactory::generated_factory(),
  105. sizeof(MonkeyRankInfo));
  106. packetc2l_get_monkey_rank_descriptor_ = file->message_type(2);
  107. static const int packetc2l_get_monkey_rank_offsets_[1] = {
  108. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_monkey_rank, packet_id_),
  109. };
  110. packetc2l_get_monkey_rank_reflection_ =
  111. new ::google::protobuf::internal::GeneratedMessageReflection(
  112. packetc2l_get_monkey_rank_descriptor_,
  113. packetc2l_get_monkey_rank::default_instance_,
  114. packetc2l_get_monkey_rank_offsets_,
  115. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_monkey_rank, _has_bits_[0]),
  116. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_monkey_rank, _unknown_fields_),
  117. -1,
  118. ::google::protobuf::DescriptorPool::generated_pool(),
  119. ::google::protobuf::MessageFactory::generated_factory(),
  120. sizeof(packetc2l_get_monkey_rank));
  121. packetl2c_get_monkey_rank_result_descriptor_ = file->message_type(3);
  122. static const int packetl2c_get_monkey_rank_result_offsets_[5] = {
  123. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_monkey_rank_result, packet_id_),
  124. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_monkey_rank_result, mydailyrank_),
  125. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_monkey_rank_result, myweeklyrank_),
  126. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_monkey_rank_result, dayranklist_),
  127. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_monkey_rank_result, weekranklist_),
  128. };
  129. packetl2c_get_monkey_rank_result_reflection_ =
  130. new ::google::protobuf::internal::GeneratedMessageReflection(
  131. packetl2c_get_monkey_rank_result_descriptor_,
  132. packetl2c_get_monkey_rank_result::default_instance_,
  133. packetl2c_get_monkey_rank_result_offsets_,
  134. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_monkey_rank_result, _has_bits_[0]),
  135. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_monkey_rank_result, _unknown_fields_),
  136. -1,
  137. ::google::protobuf::DescriptorPool::generated_pool(),
  138. ::google::protobuf::MessageFactory::generated_factory(),
  139. sizeof(packetl2c_get_monkey_rank_result));
  140. packetc2l_get_monkey_info_descriptor_ = file->message_type(4);
  141. static const int packetc2l_get_monkey_info_offsets_[1] = {
  142. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_monkey_info, packet_id_),
  143. };
  144. packetc2l_get_monkey_info_reflection_ =
  145. new ::google::protobuf::internal::GeneratedMessageReflection(
  146. packetc2l_get_monkey_info_descriptor_,
  147. packetc2l_get_monkey_info::default_instance_,
  148. packetc2l_get_monkey_info_offsets_,
  149. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_monkey_info, _has_bits_[0]),
  150. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_monkey_info, _unknown_fields_),
  151. -1,
  152. ::google::protobuf::DescriptorPool::generated_pool(),
  153. ::google::protobuf::MessageFactory::generated_factory(),
  154. sizeof(packetc2l_get_monkey_info));
  155. packetl2c_get_monkey_info_result_descriptor_ = file->message_type(5);
  156. static const int packetl2c_get_monkey_info_result_offsets_[4] = {
  157. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_monkey_info_result, packet_id_),
  158. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_monkey_info_result, result_),
  159. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_monkey_info_result, bosscountdown_),
  160. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_monkey_info_result, jackpot_),
  161. };
  162. packetl2c_get_monkey_info_result_reflection_ =
  163. new ::google::protobuf::internal::GeneratedMessageReflection(
  164. packetl2c_get_monkey_info_result_descriptor_,
  165. packetl2c_get_monkey_info_result::default_instance_,
  166. packetl2c_get_monkey_info_result_offsets_,
  167. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_monkey_info_result, _has_bits_[0]),
  168. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_monkey_info_result, _unknown_fields_),
  169. -1,
  170. ::google::protobuf::DescriptorPool::generated_pool(),
  171. ::google::protobuf::MessageFactory::generated_factory(),
  172. sizeof(packetl2c_get_monkey_info_result));
  173. packetl2c_bc_table_kill_monkey_descriptor_ = file->message_type(6);
  174. static const int packetl2c_bc_table_kill_monkey_offsets_[12] = {
  175. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_kill_monkey, packet_id_),
  176. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_kill_monkey, playerid_),
  177. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_kill_monkey, fishrate_),
  178. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_kill_monkey, bulletrate_),
  179. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_kill_monkey, dropgold_),
  180. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_kill_monkey, rewardindex_),
  181. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_kill_monkey, gainjackpot_),
  182. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_kill_monkey, gainitems_),
  183. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_kill_monkey, grapharr_),
  184. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_kill_monkey, point_),
  185. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_kill_monkey, addpoint_),
  186. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_kill_monkey, jackpot_),
  187. };
  188. packetl2c_bc_table_kill_monkey_reflection_ =
  189. new ::google::protobuf::internal::GeneratedMessageReflection(
  190. packetl2c_bc_table_kill_monkey_descriptor_,
  191. packetl2c_bc_table_kill_monkey::default_instance_,
  192. packetl2c_bc_table_kill_monkey_offsets_,
  193. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_kill_monkey, _has_bits_[0]),
  194. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_kill_monkey, _unknown_fields_),
  195. -1,
  196. ::google::protobuf::DescriptorPool::generated_pool(),
  197. ::google::protobuf::MessageFactory::generated_factory(),
  198. sizeof(packetl2c_bc_table_kill_monkey));
  199. packetl2c_bc_table_kill_monkey_fish_descriptor_ = file->message_type(7);
  200. static const int packetl2c_bc_table_kill_monkey_fish_offsets_[9] = {
  201. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_kill_monkey_fish, packet_id_),
  202. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_kill_monkey_fish, playerid_),
  203. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_kill_monkey_fish, fishid_),
  204. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_kill_monkey_fish, slotarr_),
  205. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_kill_monkey_fish, dropgold_),
  206. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_kill_monkey_fish, gainjackpot_),
  207. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_kill_monkey_fish, point_),
  208. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_kill_monkey_fish, addpoint_),
  209. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_kill_monkey_fish, jackpot_),
  210. };
  211. packetl2c_bc_table_kill_monkey_fish_reflection_ =
  212. new ::google::protobuf::internal::GeneratedMessageReflection(
  213. packetl2c_bc_table_kill_monkey_fish_descriptor_,
  214. packetl2c_bc_table_kill_monkey_fish::default_instance_,
  215. packetl2c_bc_table_kill_monkey_fish_offsets_,
  216. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_kill_monkey_fish, _has_bits_[0]),
  217. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_bc_table_kill_monkey_fish, _unknown_fields_),
  218. -1,
  219. ::google::protobuf::DescriptorPool::generated_pool(),
  220. ::google::protobuf::MessageFactory::generated_factory(),
  221. sizeof(packetl2c_bc_table_kill_monkey_fish));
  222. packetc2l_get_kill_monkey_history_descriptor_ = file->message_type(8);
  223. static const int packetc2l_get_kill_monkey_history_offsets_[1] = {
  224. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_kill_monkey_history, packet_id_),
  225. };
  226. packetc2l_get_kill_monkey_history_reflection_ =
  227. new ::google::protobuf::internal::GeneratedMessageReflection(
  228. packetc2l_get_kill_monkey_history_descriptor_,
  229. packetc2l_get_kill_monkey_history::default_instance_,
  230. packetc2l_get_kill_monkey_history_offsets_,
  231. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_kill_monkey_history, _has_bits_[0]),
  232. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_kill_monkey_history, _unknown_fields_),
  233. -1,
  234. ::google::protobuf::DescriptorPool::generated_pool(),
  235. ::google::protobuf::MessageFactory::generated_factory(),
  236. sizeof(packetc2l_get_kill_monkey_history));
  237. packetl2c_get_kill_monkey_history_result_descriptor_ = file->message_type(9);
  238. static const int packetl2c_get_kill_monkey_history_result_offsets_[3] = {
  239. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_kill_monkey_history_result, packet_id_),
  240. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_kill_monkey_history_result, jackpot_),
  241. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_kill_monkey_history_result, historylist_),
  242. };
  243. packetl2c_get_kill_monkey_history_result_reflection_ =
  244. new ::google::protobuf::internal::GeneratedMessageReflection(
  245. packetl2c_get_kill_monkey_history_result_descriptor_,
  246. packetl2c_get_kill_monkey_history_result::default_instance_,
  247. packetl2c_get_kill_monkey_history_result_offsets_,
  248. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_kill_monkey_history_result, _has_bits_[0]),
  249. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_kill_monkey_history_result, _unknown_fields_),
  250. -1,
  251. ::google::protobuf::DescriptorPool::generated_pool(),
  252. ::google::protobuf::MessageFactory::generated_factory(),
  253. sizeof(packetl2c_get_kill_monkey_history_result));
  254. packetc2l_call_monkey_descriptor_ = file->message_type(10);
  255. static const int packetc2l_call_monkey_offsets_[1] = {
  256. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_call_monkey, packet_id_),
  257. };
  258. packetc2l_call_monkey_reflection_ =
  259. new ::google::protobuf::internal::GeneratedMessageReflection(
  260. packetc2l_call_monkey_descriptor_,
  261. packetc2l_call_monkey::default_instance_,
  262. packetc2l_call_monkey_offsets_,
  263. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_call_monkey, _has_bits_[0]),
  264. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_call_monkey, _unknown_fields_),
  265. -1,
  266. ::google::protobuf::DescriptorPool::generated_pool(),
  267. ::google::protobuf::MessageFactory::generated_factory(),
  268. sizeof(packetc2l_call_monkey));
  269. packetl2c_call_monkey_result_descriptor_ = file->message_type(11);
  270. static const int packetl2c_call_monkey_result_offsets_[2] = {
  271. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_call_monkey_result, packet_id_),
  272. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_call_monkey_result, result_),
  273. };
  274. packetl2c_call_monkey_result_reflection_ =
  275. new ::google::protobuf::internal::GeneratedMessageReflection(
  276. packetl2c_call_monkey_result_descriptor_,
  277. packetl2c_call_monkey_result::default_instance_,
  278. packetl2c_call_monkey_result_offsets_,
  279. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_call_monkey_result, _has_bits_[0]),
  280. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_call_monkey_result, _unknown_fields_),
  281. -1,
  282. ::google::protobuf::DescriptorPool::generated_pool(),
  283. ::google::protobuf::MessageFactory::generated_factory(),
  284. sizeof(packetl2c_call_monkey_result));
  285. packetc2l_monkey_exchange_descriptor_ = file->message_type(12);
  286. static const int packetc2l_monkey_exchange_offsets_[3] = {
  287. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_monkey_exchange, packet_id_),
  288. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_monkey_exchange, exchangeall_),
  289. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_monkey_exchange, exchangeindex_),
  290. };
  291. packetc2l_monkey_exchange_reflection_ =
  292. new ::google::protobuf::internal::GeneratedMessageReflection(
  293. packetc2l_monkey_exchange_descriptor_,
  294. packetc2l_monkey_exchange::default_instance_,
  295. packetc2l_monkey_exchange_offsets_,
  296. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_monkey_exchange, _has_bits_[0]),
  297. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_monkey_exchange, _unknown_fields_),
  298. -1,
  299. ::google::protobuf::DescriptorPool::generated_pool(),
  300. ::google::protobuf::MessageFactory::generated_factory(),
  301. sizeof(packetc2l_monkey_exchange));
  302. packetl2c_monkey_exchange_result_descriptor_ = file->message_type(13);
  303. static const int packetl2c_monkey_exchange_result_offsets_[5] = {
  304. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_monkey_exchange_result, packet_id_),
  305. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_monkey_exchange_result, result_),
  306. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_monkey_exchange_result, exchangeall_),
  307. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_monkey_exchange_result, exchangeindex_),
  308. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_monkey_exchange_result, items_),
  309. };
  310. packetl2c_monkey_exchange_result_reflection_ =
  311. new ::google::protobuf::internal::GeneratedMessageReflection(
  312. packetl2c_monkey_exchange_result_descriptor_,
  313. packetl2c_monkey_exchange_result::default_instance_,
  314. packetl2c_monkey_exchange_result_offsets_,
  315. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_monkey_exchange_result, _has_bits_[0]),
  316. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_monkey_exchange_result, _unknown_fields_),
  317. -1,
  318. ::google::protobuf::DescriptorPool::generated_pool(),
  319. ::google::protobuf::MessageFactory::generated_factory(),
  320. sizeof(packetl2c_monkey_exchange_result));
  321. }
  322. namespace {
  323. GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
  324. inline void protobuf_AssignDescriptorsOnce() {
  325. ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
  326. &protobuf_AssignDesc_fish_5fmonkey_5fpalace_2eproto);
  327. }
  328. void protobuf_RegisterTypes(const ::std::string&) {
  329. protobuf_AssignDescriptorsOnce();
  330. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  331. killMonkeyHistory_descriptor_, &killMonkeyHistory::default_instance());
  332. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  333. MonkeyRankInfo_descriptor_, &MonkeyRankInfo::default_instance());
  334. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  335. packetc2l_get_monkey_rank_descriptor_, &packetc2l_get_monkey_rank::default_instance());
  336. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  337. packetl2c_get_monkey_rank_result_descriptor_, &packetl2c_get_monkey_rank_result::default_instance());
  338. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  339. packetc2l_get_monkey_info_descriptor_, &packetc2l_get_monkey_info::default_instance());
  340. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  341. packetl2c_get_monkey_info_result_descriptor_, &packetl2c_get_monkey_info_result::default_instance());
  342. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  343. packetl2c_bc_table_kill_monkey_descriptor_, &packetl2c_bc_table_kill_monkey::default_instance());
  344. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  345. packetl2c_bc_table_kill_monkey_fish_descriptor_, &packetl2c_bc_table_kill_monkey_fish::default_instance());
  346. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  347. packetc2l_get_kill_monkey_history_descriptor_, &packetc2l_get_kill_monkey_history::default_instance());
  348. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  349. packetl2c_get_kill_monkey_history_result_descriptor_, &packetl2c_get_kill_monkey_history_result::default_instance());
  350. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  351. packetc2l_call_monkey_descriptor_, &packetc2l_call_monkey::default_instance());
  352. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  353. packetl2c_call_monkey_result_descriptor_, &packetl2c_call_monkey_result::default_instance());
  354. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  355. packetc2l_monkey_exchange_descriptor_, &packetc2l_monkey_exchange::default_instance());
  356. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  357. packetl2c_monkey_exchange_result_descriptor_, &packetl2c_monkey_exchange_result::default_instance());
  358. }
  359. } // namespace
  360. void protobuf_ShutdownFile_fish_5fmonkey_5fpalace_2eproto() {
  361. delete killMonkeyHistory::default_instance_;
  362. delete killMonkeyHistory_reflection_;
  363. delete MonkeyRankInfo::default_instance_;
  364. delete MonkeyRankInfo_reflection_;
  365. delete packetc2l_get_monkey_rank::default_instance_;
  366. delete packetc2l_get_monkey_rank_reflection_;
  367. delete packetl2c_get_monkey_rank_result::default_instance_;
  368. delete packetl2c_get_monkey_rank_result_reflection_;
  369. delete packetc2l_get_monkey_info::default_instance_;
  370. delete packetc2l_get_monkey_info_reflection_;
  371. delete packetl2c_get_monkey_info_result::default_instance_;
  372. delete packetl2c_get_monkey_info_result_reflection_;
  373. delete packetl2c_bc_table_kill_monkey::default_instance_;
  374. delete packetl2c_bc_table_kill_monkey_reflection_;
  375. delete packetl2c_bc_table_kill_monkey_fish::default_instance_;
  376. delete packetl2c_bc_table_kill_monkey_fish_reflection_;
  377. delete packetc2l_get_kill_monkey_history::default_instance_;
  378. delete packetc2l_get_kill_monkey_history_reflection_;
  379. delete packetl2c_get_kill_monkey_history_result::default_instance_;
  380. delete packetl2c_get_kill_monkey_history_result_reflection_;
  381. delete packetc2l_call_monkey::default_instance_;
  382. delete packetc2l_call_monkey_reflection_;
  383. delete packetl2c_call_monkey_result::default_instance_;
  384. delete packetl2c_call_monkey_result_reflection_;
  385. delete packetc2l_monkey_exchange::default_instance_;
  386. delete packetc2l_monkey_exchange_reflection_;
  387. delete packetl2c_monkey_exchange_result::default_instance_;
  388. delete packetl2c_monkey_exchange_result_reflection_;
  389. }
  390. void protobuf_AddDesc_fish_5fmonkey_5fpalace_2eproto() {
  391. static bool already_here = false;
  392. if (already_here) return;
  393. already_here = true;
  394. GOOGLE_PROTOBUF_VERIFY_VERSION;
  395. ::fish_protocols::protobuf_AddDesc_fish_5fdef_2eproto();
  396. ::msg_type_def::protobuf_AddDesc_msg_5ftype_5fdef_2eproto();
  397. ::fish_protocols::protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
  398. ::fish_protocols::protobuf_AddDesc_fish_5fprotocol_2eproto();
  399. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  400. "\n\030fish_monkey_palace.proto\022\016fish_protoco"
  401. "ls\032\016fish_def.proto\032\022msg_type_def.proto\032\023"
  402. "fish_type_def.proto\032\023fish_protocol.proto"
  403. "\"|\n\021killMonkeyHistory\022\020\n\010nickName\030\001 \001(\t\022"
  404. "\020\n\010fishName\030\002 \001(\t\022\014\n\004mult\030\003 \001(\005\022\014\n\004gold\030"
  405. "\004 \001(\003\022\'\n\005items\030\005 \003(\0132\030.fish_protocols.It"
  406. "emInfo\"\213\001\n\016MonkeyRankInfo\022\020\n\010playerId\030\001 "
  407. "\001(\005\022\020\n\010nickName\030\002 \001(\t\022\016\n\006headid\030\003 \001(\005\022\017\n"
  408. "\007frameid\030\004 \001(\005\022\021\n\tfishScore\030\005 \001(\005\022\023\n\013mon"
  409. "keyScore\030\006 \001(\005\022\014\n\004rank\030\007 \001(\005\"l\n\031packetc2"
  410. "l_get_monkey_rank\022O\n\tpacket_id\030\001 \001(\0162!.f"
  411. "ish_protocols.e_server_msg_type:\031e_mst_c"
  412. "2l_get_monkey_rank\"\320\002\n packetl2c_get_mon"
  413. "key_rank_result\022V\n\tpacket_id\030\001 \001(\0162!.fis"
  414. "h_protocols.e_server_msg_type: e_mst_l2c"
  415. "_get_monkey_rank_result\0223\n\013myDailyRank\030\002"
  416. " \001(\0132\036.fish_protocols.MonkeyRankInfo\0224\n\014"
  417. "myWeeklyRank\030\003 \001(\0132\036.fish_protocols.Monk"
  418. "eyRankInfo\0223\n\013dayRankList\030\004 \003(\0132\036.fish_p"
  419. "rotocols.MonkeyRankInfo\0224\n\014weekRankList\030"
  420. "\005 \003(\0132\036.fish_protocols.MonkeyRankInfo\"l\n"
  421. "\031packetc2l_get_monkey_info\022O\n\tpacket_id\030"
  422. "\001 \001(\0162!.fish_protocols.e_server_msg_type"
  423. ":\031e_mst_c2l_get_monkey_info\"\262\001\n packetl2"
  424. "c_get_monkey_info_result\022V\n\tpacket_id\030\001 "
  425. "\001(\0162!.fish_protocols.e_server_msg_type: "
  426. "e_mst_l2c_get_monkey_info_result\022\016\n\006resu"
  427. "lt\030\002 \001(\005\022\025\n\rbossCountDown\030\003 \001(\005\022\017\n\007jackp"
  428. "ot\030\004 \001(\003\"\333\002\n\036packetl2c_bc_table_kill_mon"
  429. "key\022T\n\tpacket_id\030\001 \001(\0162!.fish_protocols."
  430. "e_server_msg_type:\036e_mst_l2c_bc_table_ki"
  431. "ll_monkey\022\020\n\010playerId\030\002 \001(\005\022\020\n\010fishRate\030"
  432. "\003 \001(\005\022\022\n\nbulletRate\030\004 \001(\005\022\020\n\010dropGold\030\005 "
  433. "\001(\003\022\023\n\013rewardIndex\030\006 \001(\005\022\023\n\013gainjackpot\030"
  434. "\007 \001(\003\022+\n\tgainItems\030\010 \003(\0132\030.fish_protocol"
  435. "s.msg_item\022\020\n\010graphArr\030\t \003(\005\022\r\n\005point\030\n "
  436. "\001(\005\022\020\n\010addPoint\030\013 \001(\005\022\017\n\007jackpot\030\014 \001(\003\"\214"
  437. "\002\n#packetl2c_bc_table_kill_monkey_fish\022Y"
  438. "\n\tpacket_id\030\001 \001(\0162!.fish_protocols.e_ser"
  439. "ver_msg_type:#e_mst_l2c_bc_table_kill_mo"
  440. "nkey_fish\022\020\n\010playerId\030\002 \001(\005\022\016\n\006fishId\030\003 "
  441. "\001(\005\022\017\n\007slotArr\030\004 \003(\005\022\020\n\010dropGold\030\005 \001(\003\022\023"
  442. "\n\013gainjackpot\030\006 \001(\003\022\r\n\005point\030\007 \001(\005\022\020\n\010ad"
  443. "dPoint\030\010 \001(\005\022\017\n\007jackpot\030\t \001(\003\"|\n!packetc"
  444. "2l_get_kill_monkey_history\022W\n\tpacket_id\030"
  445. "\001 \001(\0162!.fish_protocols.e_server_msg_type"
  446. ":!e_mst_c2l_get_kill_monkey_history\"\323\001\n("
  447. "packetl2c_get_kill_monkey_history_result"
  448. "\022^\n\tpacket_id\030\001 \001(\0162!.fish_protocols.e_s"
  449. "erver_msg_type:(e_mst_l2c_get_kill_monke"
  450. "y_history_result\022\017\n\007jackpot\030\002 \001(\003\0226\n\013his"
  451. "toryList\030\003 \003(\0132!.fish_protocols.killMonk"
  452. "eyHistory\"d\n\025packetc2l_call_monkey\022K\n\tpa"
  453. "cket_id\030\001 \001(\0162!.fish_protocols.e_server_"
  454. "msg_type:\025e_mst_c2l_call_monkey\"\202\001\n\034pack"
  455. "etl2c_call_monkey_result\022R\n\tpacket_id\030\001 "
  456. "\001(\0162!.fish_protocols.e_server_msg_type:\034"
  457. "e_mst_l2c_call_monkey_result\022\016\n\006result\030\002"
  458. " \001(\005\"\230\001\n\031packetc2l_monkey_exchange\022O\n\tpa"
  459. "cket_id\030\001 \001(\0162!.fish_protocols.e_server_"
  460. "msg_type:\031e_mst_c2l_monkey_exchange\022\023\n\013e"
  461. "xchangeAll\030\002 \001(\010\022\025\n\rexchangeIndex\030\003 \001(\005\""
  462. "\337\001\n packetl2c_monkey_exchange_result\022V\n\t"
  463. "packet_id\030\001 \001(\0162!.fish_protocols.e_serve"
  464. "r_msg_type: e_mst_l2c_monkey_exchange_re"
  465. "sult\022\016\n\006result\030\002 \001(\005\022\023\n\013exchangeAll\030\003 \001("
  466. "\010\022\025\n\rexchangeIndex\030\004 \003(\005\022\'\n\005items\030\005 \003(\0132"
  467. "\030.fish_protocols.ItemInfo", 2705);
  468. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  469. "fish_monkey_palace.proto", &protobuf_RegisterTypes);
  470. killMonkeyHistory::default_instance_ = new killMonkeyHistory();
  471. MonkeyRankInfo::default_instance_ = new MonkeyRankInfo();
  472. packetc2l_get_monkey_rank::default_instance_ = new packetc2l_get_monkey_rank();
  473. packetl2c_get_monkey_rank_result::default_instance_ = new packetl2c_get_monkey_rank_result();
  474. packetc2l_get_monkey_info::default_instance_ = new packetc2l_get_monkey_info();
  475. packetl2c_get_monkey_info_result::default_instance_ = new packetl2c_get_monkey_info_result();
  476. packetl2c_bc_table_kill_monkey::default_instance_ = new packetl2c_bc_table_kill_monkey();
  477. packetl2c_bc_table_kill_monkey_fish::default_instance_ = new packetl2c_bc_table_kill_monkey_fish();
  478. packetc2l_get_kill_monkey_history::default_instance_ = new packetc2l_get_kill_monkey_history();
  479. packetl2c_get_kill_monkey_history_result::default_instance_ = new packetl2c_get_kill_monkey_history_result();
  480. packetc2l_call_monkey::default_instance_ = new packetc2l_call_monkey();
  481. packetl2c_call_monkey_result::default_instance_ = new packetl2c_call_monkey_result();
  482. packetc2l_monkey_exchange::default_instance_ = new packetc2l_monkey_exchange();
  483. packetl2c_monkey_exchange_result::default_instance_ = new packetl2c_monkey_exchange_result();
  484. killMonkeyHistory::default_instance_->InitAsDefaultInstance();
  485. MonkeyRankInfo::default_instance_->InitAsDefaultInstance();
  486. packetc2l_get_monkey_rank::default_instance_->InitAsDefaultInstance();
  487. packetl2c_get_monkey_rank_result::default_instance_->InitAsDefaultInstance();
  488. packetc2l_get_monkey_info::default_instance_->InitAsDefaultInstance();
  489. packetl2c_get_monkey_info_result::default_instance_->InitAsDefaultInstance();
  490. packetl2c_bc_table_kill_monkey::default_instance_->InitAsDefaultInstance();
  491. packetl2c_bc_table_kill_monkey_fish::default_instance_->InitAsDefaultInstance();
  492. packetc2l_get_kill_monkey_history::default_instance_->InitAsDefaultInstance();
  493. packetl2c_get_kill_monkey_history_result::default_instance_->InitAsDefaultInstance();
  494. packetc2l_call_monkey::default_instance_->InitAsDefaultInstance();
  495. packetl2c_call_monkey_result::default_instance_->InitAsDefaultInstance();
  496. packetc2l_monkey_exchange::default_instance_->InitAsDefaultInstance();
  497. packetl2c_monkey_exchange_result::default_instance_->InitAsDefaultInstance();
  498. ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_fish_5fmonkey_5fpalace_2eproto);
  499. }
  500. // Force AddDescriptors() to be called at static initialization time.
  501. struct StaticDescriptorInitializer_fish_5fmonkey_5fpalace_2eproto {
  502. StaticDescriptorInitializer_fish_5fmonkey_5fpalace_2eproto() {
  503. protobuf_AddDesc_fish_5fmonkey_5fpalace_2eproto();
  504. }
  505. } static_descriptor_initializer_fish_5fmonkey_5fpalace_2eproto_;
  506. // ===================================================================
  507. #ifndef _MSC_VER
  508. const int killMonkeyHistory::kNickNameFieldNumber;
  509. const int killMonkeyHistory::kFishNameFieldNumber;
  510. const int killMonkeyHistory::kMultFieldNumber;
  511. const int killMonkeyHistory::kGoldFieldNumber;
  512. const int killMonkeyHistory::kItemsFieldNumber;
  513. #endif // !_MSC_VER
  514. killMonkeyHistory::killMonkeyHistory()
  515. : ::google::protobuf::Message() {
  516. SharedCtor();
  517. }
  518. void killMonkeyHistory::InitAsDefaultInstance() {
  519. }
  520. killMonkeyHistory::killMonkeyHistory(const killMonkeyHistory& from)
  521. : ::google::protobuf::Message() {
  522. SharedCtor();
  523. MergeFrom(from);
  524. }
  525. void killMonkeyHistory::SharedCtor() {
  526. _cached_size_ = 0;
  527. nickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  528. fishname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  529. mult_ = 0;
  530. gold_ = GOOGLE_LONGLONG(0);
  531. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  532. }
  533. killMonkeyHistory::~killMonkeyHistory() {
  534. SharedDtor();
  535. }
  536. void killMonkeyHistory::SharedDtor() {
  537. if (nickname_ != &::google::protobuf::internal::kEmptyString) {
  538. delete nickname_;
  539. }
  540. if (fishname_ != &::google::protobuf::internal::kEmptyString) {
  541. delete fishname_;
  542. }
  543. if (this != default_instance_) {
  544. }
  545. }
  546. void killMonkeyHistory::SetCachedSize(int size) const {
  547. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  548. _cached_size_ = size;
  549. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  550. }
  551. const ::google::protobuf::Descriptor* killMonkeyHistory::descriptor() {
  552. protobuf_AssignDescriptorsOnce();
  553. return killMonkeyHistory_descriptor_;
  554. }
  555. const killMonkeyHistory& killMonkeyHistory::default_instance() {
  556. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fmonkey_5fpalace_2eproto();
  557. return *default_instance_;
  558. }
  559. killMonkeyHistory* killMonkeyHistory::default_instance_ = NULL;
  560. killMonkeyHistory* killMonkeyHistory::New() const {
  561. return new killMonkeyHistory;
  562. }
  563. void killMonkeyHistory::Clear() {
  564. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  565. if (has_nickname()) {
  566. if (nickname_ != &::google::protobuf::internal::kEmptyString) {
  567. nickname_->clear();
  568. }
  569. }
  570. if (has_fishname()) {
  571. if (fishname_ != &::google::protobuf::internal::kEmptyString) {
  572. fishname_->clear();
  573. }
  574. }
  575. mult_ = 0;
  576. gold_ = GOOGLE_LONGLONG(0);
  577. }
  578. items_.Clear();
  579. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  580. mutable_unknown_fields()->Clear();
  581. }
  582. bool killMonkeyHistory::MergePartialFromCodedStream(
  583. ::google::protobuf::io::CodedInputStream* input) {
  584. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  585. ::google::protobuf::uint32 tag;
  586. while ((tag = input->ReadTag()) != 0) {
  587. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  588. // optional string nickName = 1;
  589. case 1: {
  590. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  591. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  592. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  593. input, this->mutable_nickname()));
  594. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  595. this->nickname().data(), this->nickname().length(),
  596. ::google::protobuf::internal::WireFormat::PARSE);
  597. } else {
  598. goto handle_uninterpreted;
  599. }
  600. if (input->ExpectTag(18)) goto parse_fishName;
  601. break;
  602. }
  603. // optional string fishName = 2;
  604. case 2: {
  605. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  606. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  607. parse_fishName:
  608. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  609. input, this->mutable_fishname()));
  610. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  611. this->fishname().data(), this->fishname().length(),
  612. ::google::protobuf::internal::WireFormat::PARSE);
  613. } else {
  614. goto handle_uninterpreted;
  615. }
  616. if (input->ExpectTag(24)) goto parse_mult;
  617. break;
  618. }
  619. // optional int32 mult = 3;
  620. case 3: {
  621. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  622. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  623. parse_mult:
  624. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  625. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  626. input, &mult_)));
  627. set_has_mult();
  628. } else {
  629. goto handle_uninterpreted;
  630. }
  631. if (input->ExpectTag(32)) goto parse_gold;
  632. break;
  633. }
  634. // optional int64 gold = 4;
  635. case 4: {
  636. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  637. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  638. parse_gold:
  639. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  640. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  641. input, &gold_)));
  642. set_has_gold();
  643. } else {
  644. goto handle_uninterpreted;
  645. }
  646. if (input->ExpectTag(42)) goto parse_items;
  647. break;
  648. }
  649. // repeated .fish_protocols.ItemInfo items = 5;
  650. case 5: {
  651. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  652. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  653. parse_items:
  654. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  655. input, add_items()));
  656. } else {
  657. goto handle_uninterpreted;
  658. }
  659. if (input->ExpectTag(42)) goto parse_items;
  660. if (input->ExpectAtEnd()) return true;
  661. break;
  662. }
  663. default: {
  664. handle_uninterpreted:
  665. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  666. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  667. return true;
  668. }
  669. DO_(::google::protobuf::internal::WireFormat::SkipField(
  670. input, tag, mutable_unknown_fields()));
  671. break;
  672. }
  673. }
  674. }
  675. return true;
  676. #undef DO_
  677. }
  678. void killMonkeyHistory::SerializeWithCachedSizes(
  679. ::google::protobuf::io::CodedOutputStream* output) const {
  680. // optional string nickName = 1;
  681. if (has_nickname()) {
  682. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  683. this->nickname().data(), this->nickname().length(),
  684. ::google::protobuf::internal::WireFormat::SERIALIZE);
  685. ::google::protobuf::internal::WireFormatLite::WriteString(
  686. 1, this->nickname(), output);
  687. }
  688. // optional string fishName = 2;
  689. if (has_fishname()) {
  690. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  691. this->fishname().data(), this->fishname().length(),
  692. ::google::protobuf::internal::WireFormat::SERIALIZE);
  693. ::google::protobuf::internal::WireFormatLite::WriteString(
  694. 2, this->fishname(), output);
  695. }
  696. // optional int32 mult = 3;
  697. if (has_mult()) {
  698. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->mult(), output);
  699. }
  700. // optional int64 gold = 4;
  701. if (has_gold()) {
  702. ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->gold(), output);
  703. }
  704. // repeated .fish_protocols.ItemInfo items = 5;
  705. for (int i = 0; i < this->items_size(); i++) {
  706. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  707. 5, this->items(i), output);
  708. }
  709. if (!unknown_fields().empty()) {
  710. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  711. unknown_fields(), output);
  712. }
  713. }
  714. ::google::protobuf::uint8* killMonkeyHistory::SerializeWithCachedSizesToArray(
  715. ::google::protobuf::uint8* target) const {
  716. // optional string nickName = 1;
  717. if (has_nickname()) {
  718. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  719. this->nickname().data(), this->nickname().length(),
  720. ::google::protobuf::internal::WireFormat::SERIALIZE);
  721. target =
  722. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  723. 1, this->nickname(), target);
  724. }
  725. // optional string fishName = 2;
  726. if (has_fishname()) {
  727. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  728. this->fishname().data(), this->fishname().length(),
  729. ::google::protobuf::internal::WireFormat::SERIALIZE);
  730. target =
  731. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  732. 2, this->fishname(), target);
  733. }
  734. // optional int32 mult = 3;
  735. if (has_mult()) {
  736. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->mult(), target);
  737. }
  738. // optional int64 gold = 4;
  739. if (has_gold()) {
  740. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->gold(), target);
  741. }
  742. // repeated .fish_protocols.ItemInfo items = 5;
  743. for (int i = 0; i < this->items_size(); i++) {
  744. target = ::google::protobuf::internal::WireFormatLite::
  745. WriteMessageNoVirtualToArray(
  746. 5, this->items(i), target);
  747. }
  748. if (!unknown_fields().empty()) {
  749. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  750. unknown_fields(), target);
  751. }
  752. return target;
  753. }
  754. int killMonkeyHistory::ByteSize() const {
  755. int total_size = 0;
  756. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  757. // optional string nickName = 1;
  758. if (has_nickname()) {
  759. total_size += 1 +
  760. ::google::protobuf::internal::WireFormatLite::StringSize(
  761. this->nickname());
  762. }
  763. // optional string fishName = 2;
  764. if (has_fishname()) {
  765. total_size += 1 +
  766. ::google::protobuf::internal::WireFormatLite::StringSize(
  767. this->fishname());
  768. }
  769. // optional int32 mult = 3;
  770. if (has_mult()) {
  771. total_size += 1 +
  772. ::google::protobuf::internal::WireFormatLite::Int32Size(
  773. this->mult());
  774. }
  775. // optional int64 gold = 4;
  776. if (has_gold()) {
  777. total_size += 1 +
  778. ::google::protobuf::internal::WireFormatLite::Int64Size(
  779. this->gold());
  780. }
  781. }
  782. // repeated .fish_protocols.ItemInfo items = 5;
  783. total_size += 1 * this->items_size();
  784. for (int i = 0; i < this->items_size(); i++) {
  785. total_size +=
  786. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  787. this->items(i));
  788. }
  789. if (!unknown_fields().empty()) {
  790. total_size +=
  791. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  792. unknown_fields());
  793. }
  794. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  795. _cached_size_ = total_size;
  796. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  797. return total_size;
  798. }
  799. void killMonkeyHistory::MergeFrom(const ::google::protobuf::Message& from) {
  800. GOOGLE_CHECK_NE(&from, this);
  801. const killMonkeyHistory* source =
  802. ::google::protobuf::internal::dynamic_cast_if_available<const killMonkeyHistory*>(
  803. &from);
  804. if (source == NULL) {
  805. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  806. } else {
  807. MergeFrom(*source);
  808. }
  809. }
  810. void killMonkeyHistory::MergeFrom(const killMonkeyHistory& from) {
  811. GOOGLE_CHECK_NE(&from, this);
  812. items_.MergeFrom(from.items_);
  813. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  814. if (from.has_nickname()) {
  815. set_nickname(from.nickname());
  816. }
  817. if (from.has_fishname()) {
  818. set_fishname(from.fishname());
  819. }
  820. if (from.has_mult()) {
  821. set_mult(from.mult());
  822. }
  823. if (from.has_gold()) {
  824. set_gold(from.gold());
  825. }
  826. }
  827. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  828. }
  829. void killMonkeyHistory::CopyFrom(const ::google::protobuf::Message& from) {
  830. if (&from == this) return;
  831. Clear();
  832. MergeFrom(from);
  833. }
  834. void killMonkeyHistory::CopyFrom(const killMonkeyHistory& from) {
  835. if (&from == this) return;
  836. Clear();
  837. MergeFrom(from);
  838. }
  839. bool killMonkeyHistory::IsInitialized() const {
  840. return true;
  841. }
  842. void killMonkeyHistory::Swap(killMonkeyHistory* other) {
  843. if (other != this) {
  844. std::swap(nickname_, other->nickname_);
  845. std::swap(fishname_, other->fishname_);
  846. std::swap(mult_, other->mult_);
  847. std::swap(gold_, other->gold_);
  848. items_.Swap(&other->items_);
  849. std::swap(_has_bits_[0], other->_has_bits_[0]);
  850. _unknown_fields_.Swap(&other->_unknown_fields_);
  851. std::swap(_cached_size_, other->_cached_size_);
  852. }
  853. }
  854. ::google::protobuf::Metadata killMonkeyHistory::GetMetadata() const {
  855. protobuf_AssignDescriptorsOnce();
  856. ::google::protobuf::Metadata metadata;
  857. metadata.descriptor = killMonkeyHistory_descriptor_;
  858. metadata.reflection = killMonkeyHistory_reflection_;
  859. return metadata;
  860. }
  861. // ===================================================================
  862. #ifndef _MSC_VER
  863. const int MonkeyRankInfo::kPlayerIdFieldNumber;
  864. const int MonkeyRankInfo::kNickNameFieldNumber;
  865. const int MonkeyRankInfo::kHeadidFieldNumber;
  866. const int MonkeyRankInfo::kFrameidFieldNumber;
  867. const int MonkeyRankInfo::kFishScoreFieldNumber;
  868. const int MonkeyRankInfo::kMonkeyScoreFieldNumber;
  869. const int MonkeyRankInfo::kRankFieldNumber;
  870. #endif // !_MSC_VER
  871. MonkeyRankInfo::MonkeyRankInfo()
  872. : ::google::protobuf::Message() {
  873. SharedCtor();
  874. }
  875. void MonkeyRankInfo::InitAsDefaultInstance() {
  876. }
  877. MonkeyRankInfo::MonkeyRankInfo(const MonkeyRankInfo& from)
  878. : ::google::protobuf::Message() {
  879. SharedCtor();
  880. MergeFrom(from);
  881. }
  882. void MonkeyRankInfo::SharedCtor() {
  883. _cached_size_ = 0;
  884. playerid_ = 0;
  885. nickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  886. headid_ = 0;
  887. frameid_ = 0;
  888. fishscore_ = 0;
  889. monkeyscore_ = 0;
  890. rank_ = 0;
  891. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  892. }
  893. MonkeyRankInfo::~MonkeyRankInfo() {
  894. SharedDtor();
  895. }
  896. void MonkeyRankInfo::SharedDtor() {
  897. if (nickname_ != &::google::protobuf::internal::kEmptyString) {
  898. delete nickname_;
  899. }
  900. if (this != default_instance_) {
  901. }
  902. }
  903. void MonkeyRankInfo::SetCachedSize(int size) const {
  904. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  905. _cached_size_ = size;
  906. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  907. }
  908. const ::google::protobuf::Descriptor* MonkeyRankInfo::descriptor() {
  909. protobuf_AssignDescriptorsOnce();
  910. return MonkeyRankInfo_descriptor_;
  911. }
  912. const MonkeyRankInfo& MonkeyRankInfo::default_instance() {
  913. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fmonkey_5fpalace_2eproto();
  914. return *default_instance_;
  915. }
  916. MonkeyRankInfo* MonkeyRankInfo::default_instance_ = NULL;
  917. MonkeyRankInfo* MonkeyRankInfo::New() const {
  918. return new MonkeyRankInfo;
  919. }
  920. void MonkeyRankInfo::Clear() {
  921. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  922. playerid_ = 0;
  923. if (has_nickname()) {
  924. if (nickname_ != &::google::protobuf::internal::kEmptyString) {
  925. nickname_->clear();
  926. }
  927. }
  928. headid_ = 0;
  929. frameid_ = 0;
  930. fishscore_ = 0;
  931. monkeyscore_ = 0;
  932. rank_ = 0;
  933. }
  934. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  935. mutable_unknown_fields()->Clear();
  936. }
  937. bool MonkeyRankInfo::MergePartialFromCodedStream(
  938. ::google::protobuf::io::CodedInputStream* input) {
  939. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  940. ::google::protobuf::uint32 tag;
  941. while ((tag = input->ReadTag()) != 0) {
  942. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  943. // optional int32 playerId = 1;
  944. case 1: {
  945. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  946. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  947. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  948. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  949. input, &playerid_)));
  950. set_has_playerid();
  951. } else {
  952. goto handle_uninterpreted;
  953. }
  954. if (input->ExpectTag(18)) goto parse_nickName;
  955. break;
  956. }
  957. // optional string nickName = 2;
  958. case 2: {
  959. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  960. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  961. parse_nickName:
  962. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  963. input, this->mutable_nickname()));
  964. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  965. this->nickname().data(), this->nickname().length(),
  966. ::google::protobuf::internal::WireFormat::PARSE);
  967. } else {
  968. goto handle_uninterpreted;
  969. }
  970. if (input->ExpectTag(24)) goto parse_headid;
  971. break;
  972. }
  973. // optional int32 headid = 3;
  974. case 3: {
  975. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  976. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  977. parse_headid:
  978. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  979. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  980. input, &headid_)));
  981. set_has_headid();
  982. } else {
  983. goto handle_uninterpreted;
  984. }
  985. if (input->ExpectTag(32)) goto parse_frameid;
  986. break;
  987. }
  988. // optional int32 frameid = 4;
  989. case 4: {
  990. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  991. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  992. parse_frameid:
  993. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  994. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  995. input, &frameid_)));
  996. set_has_frameid();
  997. } else {
  998. goto handle_uninterpreted;
  999. }
  1000. if (input->ExpectTag(40)) goto parse_fishScore;
  1001. break;
  1002. }
  1003. // optional int32 fishScore = 5;
  1004. case 5: {
  1005. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1006. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1007. parse_fishScore:
  1008. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1009. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1010. input, &fishscore_)));
  1011. set_has_fishscore();
  1012. } else {
  1013. goto handle_uninterpreted;
  1014. }
  1015. if (input->ExpectTag(48)) goto parse_monkeyScore;
  1016. break;
  1017. }
  1018. // optional int32 monkeyScore = 6;
  1019. case 6: {
  1020. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1021. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1022. parse_monkeyScore:
  1023. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1024. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1025. input, &monkeyscore_)));
  1026. set_has_monkeyscore();
  1027. } else {
  1028. goto handle_uninterpreted;
  1029. }
  1030. if (input->ExpectTag(56)) goto parse_rank;
  1031. break;
  1032. }
  1033. // optional int32 rank = 7;
  1034. case 7: {
  1035. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1036. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1037. parse_rank:
  1038. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1039. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1040. input, &rank_)));
  1041. set_has_rank();
  1042. } else {
  1043. goto handle_uninterpreted;
  1044. }
  1045. if (input->ExpectAtEnd()) return true;
  1046. break;
  1047. }
  1048. default: {
  1049. handle_uninterpreted:
  1050. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1051. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1052. return true;
  1053. }
  1054. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1055. input, tag, mutable_unknown_fields()));
  1056. break;
  1057. }
  1058. }
  1059. }
  1060. return true;
  1061. #undef DO_
  1062. }
  1063. void MonkeyRankInfo::SerializeWithCachedSizes(
  1064. ::google::protobuf::io::CodedOutputStream* output) const {
  1065. // optional int32 playerId = 1;
  1066. if (has_playerid()) {
  1067. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->playerid(), output);
  1068. }
  1069. // optional string nickName = 2;
  1070. if (has_nickname()) {
  1071. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1072. this->nickname().data(), this->nickname().length(),
  1073. ::google::protobuf::internal::WireFormat::SERIALIZE);
  1074. ::google::protobuf::internal::WireFormatLite::WriteString(
  1075. 2, this->nickname(), output);
  1076. }
  1077. // optional int32 headid = 3;
  1078. if (has_headid()) {
  1079. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->headid(), output);
  1080. }
  1081. // optional int32 frameid = 4;
  1082. if (has_frameid()) {
  1083. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->frameid(), output);
  1084. }
  1085. // optional int32 fishScore = 5;
  1086. if (has_fishscore()) {
  1087. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->fishscore(), output);
  1088. }
  1089. // optional int32 monkeyScore = 6;
  1090. if (has_monkeyscore()) {
  1091. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->monkeyscore(), output);
  1092. }
  1093. // optional int32 rank = 7;
  1094. if (has_rank()) {
  1095. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->rank(), output);
  1096. }
  1097. if (!unknown_fields().empty()) {
  1098. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1099. unknown_fields(), output);
  1100. }
  1101. }
  1102. ::google::protobuf::uint8* MonkeyRankInfo::SerializeWithCachedSizesToArray(
  1103. ::google::protobuf::uint8* target) const {
  1104. // optional int32 playerId = 1;
  1105. if (has_playerid()) {
  1106. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->playerid(), target);
  1107. }
  1108. // optional string nickName = 2;
  1109. if (has_nickname()) {
  1110. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1111. this->nickname().data(), this->nickname().length(),
  1112. ::google::protobuf::internal::WireFormat::SERIALIZE);
  1113. target =
  1114. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1115. 2, this->nickname(), target);
  1116. }
  1117. // optional int32 headid = 3;
  1118. if (has_headid()) {
  1119. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->headid(), target);
  1120. }
  1121. // optional int32 frameid = 4;
  1122. if (has_frameid()) {
  1123. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->frameid(), target);
  1124. }
  1125. // optional int32 fishScore = 5;
  1126. if (has_fishscore()) {
  1127. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->fishscore(), target);
  1128. }
  1129. // optional int32 monkeyScore = 6;
  1130. if (has_monkeyscore()) {
  1131. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->monkeyscore(), target);
  1132. }
  1133. // optional int32 rank = 7;
  1134. if (has_rank()) {
  1135. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->rank(), target);
  1136. }
  1137. if (!unknown_fields().empty()) {
  1138. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1139. unknown_fields(), target);
  1140. }
  1141. return target;
  1142. }
  1143. int MonkeyRankInfo::ByteSize() const {
  1144. int total_size = 0;
  1145. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1146. // optional int32 playerId = 1;
  1147. if (has_playerid()) {
  1148. total_size += 1 +
  1149. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1150. this->playerid());
  1151. }
  1152. // optional string nickName = 2;
  1153. if (has_nickname()) {
  1154. total_size += 1 +
  1155. ::google::protobuf::internal::WireFormatLite::StringSize(
  1156. this->nickname());
  1157. }
  1158. // optional int32 headid = 3;
  1159. if (has_headid()) {
  1160. total_size += 1 +
  1161. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1162. this->headid());
  1163. }
  1164. // optional int32 frameid = 4;
  1165. if (has_frameid()) {
  1166. total_size += 1 +
  1167. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1168. this->frameid());
  1169. }
  1170. // optional int32 fishScore = 5;
  1171. if (has_fishscore()) {
  1172. total_size += 1 +
  1173. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1174. this->fishscore());
  1175. }
  1176. // optional int32 monkeyScore = 6;
  1177. if (has_monkeyscore()) {
  1178. total_size += 1 +
  1179. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1180. this->monkeyscore());
  1181. }
  1182. // optional int32 rank = 7;
  1183. if (has_rank()) {
  1184. total_size += 1 +
  1185. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1186. this->rank());
  1187. }
  1188. }
  1189. if (!unknown_fields().empty()) {
  1190. total_size +=
  1191. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1192. unknown_fields());
  1193. }
  1194. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1195. _cached_size_ = total_size;
  1196. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1197. return total_size;
  1198. }
  1199. void MonkeyRankInfo::MergeFrom(const ::google::protobuf::Message& from) {
  1200. GOOGLE_CHECK_NE(&from, this);
  1201. const MonkeyRankInfo* source =
  1202. ::google::protobuf::internal::dynamic_cast_if_available<const MonkeyRankInfo*>(
  1203. &from);
  1204. if (source == NULL) {
  1205. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1206. } else {
  1207. MergeFrom(*source);
  1208. }
  1209. }
  1210. void MonkeyRankInfo::MergeFrom(const MonkeyRankInfo& from) {
  1211. GOOGLE_CHECK_NE(&from, this);
  1212. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1213. if (from.has_playerid()) {
  1214. set_playerid(from.playerid());
  1215. }
  1216. if (from.has_nickname()) {
  1217. set_nickname(from.nickname());
  1218. }
  1219. if (from.has_headid()) {
  1220. set_headid(from.headid());
  1221. }
  1222. if (from.has_frameid()) {
  1223. set_frameid(from.frameid());
  1224. }
  1225. if (from.has_fishscore()) {
  1226. set_fishscore(from.fishscore());
  1227. }
  1228. if (from.has_monkeyscore()) {
  1229. set_monkeyscore(from.monkeyscore());
  1230. }
  1231. if (from.has_rank()) {
  1232. set_rank(from.rank());
  1233. }
  1234. }
  1235. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1236. }
  1237. void MonkeyRankInfo::CopyFrom(const ::google::protobuf::Message& from) {
  1238. if (&from == this) return;
  1239. Clear();
  1240. MergeFrom(from);
  1241. }
  1242. void MonkeyRankInfo::CopyFrom(const MonkeyRankInfo& from) {
  1243. if (&from == this) return;
  1244. Clear();
  1245. MergeFrom(from);
  1246. }
  1247. bool MonkeyRankInfo::IsInitialized() const {
  1248. return true;
  1249. }
  1250. void MonkeyRankInfo::Swap(MonkeyRankInfo* other) {
  1251. if (other != this) {
  1252. std::swap(playerid_, other->playerid_);
  1253. std::swap(nickname_, other->nickname_);
  1254. std::swap(headid_, other->headid_);
  1255. std::swap(frameid_, other->frameid_);
  1256. std::swap(fishscore_, other->fishscore_);
  1257. std::swap(monkeyscore_, other->monkeyscore_);
  1258. std::swap(rank_, other->rank_);
  1259. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1260. _unknown_fields_.Swap(&other->_unknown_fields_);
  1261. std::swap(_cached_size_, other->_cached_size_);
  1262. }
  1263. }
  1264. ::google::protobuf::Metadata MonkeyRankInfo::GetMetadata() const {
  1265. protobuf_AssignDescriptorsOnce();
  1266. ::google::protobuf::Metadata metadata;
  1267. metadata.descriptor = MonkeyRankInfo_descriptor_;
  1268. metadata.reflection = MonkeyRankInfo_reflection_;
  1269. return metadata;
  1270. }
  1271. // ===================================================================
  1272. #ifndef _MSC_VER
  1273. const int packetc2l_get_monkey_rank::kPacketIdFieldNumber;
  1274. #endif // !_MSC_VER
  1275. packetc2l_get_monkey_rank::packetc2l_get_monkey_rank()
  1276. : ::google::protobuf::Message() {
  1277. SharedCtor();
  1278. }
  1279. void packetc2l_get_monkey_rank::InitAsDefaultInstance() {
  1280. }
  1281. packetc2l_get_monkey_rank::packetc2l_get_monkey_rank(const packetc2l_get_monkey_rank& from)
  1282. : ::google::protobuf::Message() {
  1283. SharedCtor();
  1284. MergeFrom(from);
  1285. }
  1286. void packetc2l_get_monkey_rank::SharedCtor() {
  1287. _cached_size_ = 0;
  1288. packet_id_ = 10162;
  1289. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1290. }
  1291. packetc2l_get_monkey_rank::~packetc2l_get_monkey_rank() {
  1292. SharedDtor();
  1293. }
  1294. void packetc2l_get_monkey_rank::SharedDtor() {
  1295. if (this != default_instance_) {
  1296. }
  1297. }
  1298. void packetc2l_get_monkey_rank::SetCachedSize(int size) const {
  1299. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1300. _cached_size_ = size;
  1301. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1302. }
  1303. const ::google::protobuf::Descriptor* packetc2l_get_monkey_rank::descriptor() {
  1304. protobuf_AssignDescriptorsOnce();
  1305. return packetc2l_get_monkey_rank_descriptor_;
  1306. }
  1307. const packetc2l_get_monkey_rank& packetc2l_get_monkey_rank::default_instance() {
  1308. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fmonkey_5fpalace_2eproto();
  1309. return *default_instance_;
  1310. }
  1311. packetc2l_get_monkey_rank* packetc2l_get_monkey_rank::default_instance_ = NULL;
  1312. packetc2l_get_monkey_rank* packetc2l_get_monkey_rank::New() const {
  1313. return new packetc2l_get_monkey_rank;
  1314. }
  1315. void packetc2l_get_monkey_rank::Clear() {
  1316. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1317. packet_id_ = 10162;
  1318. }
  1319. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1320. mutable_unknown_fields()->Clear();
  1321. }
  1322. bool packetc2l_get_monkey_rank::MergePartialFromCodedStream(
  1323. ::google::protobuf::io::CodedInputStream* input) {
  1324. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  1325. ::google::protobuf::uint32 tag;
  1326. while ((tag = input->ReadTag()) != 0) {
  1327. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1328. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_monkey_rank];
  1329. case 1: {
  1330. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1331. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1332. int value;
  1333. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1334. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1335. input, &value)));
  1336. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  1337. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  1338. } else {
  1339. mutable_unknown_fields()->AddVarint(1, value);
  1340. }
  1341. } else {
  1342. goto handle_uninterpreted;
  1343. }
  1344. if (input->ExpectAtEnd()) return true;
  1345. break;
  1346. }
  1347. default: {
  1348. handle_uninterpreted:
  1349. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1350. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1351. return true;
  1352. }
  1353. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1354. input, tag, mutable_unknown_fields()));
  1355. break;
  1356. }
  1357. }
  1358. }
  1359. return true;
  1360. #undef DO_
  1361. }
  1362. void packetc2l_get_monkey_rank::SerializeWithCachedSizes(
  1363. ::google::protobuf::io::CodedOutputStream* output) const {
  1364. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_monkey_rank];
  1365. if (has_packet_id()) {
  1366. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1367. 1, this->packet_id(), output);
  1368. }
  1369. if (!unknown_fields().empty()) {
  1370. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1371. unknown_fields(), output);
  1372. }
  1373. }
  1374. ::google::protobuf::uint8* packetc2l_get_monkey_rank::SerializeWithCachedSizesToArray(
  1375. ::google::protobuf::uint8* target) const {
  1376. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_monkey_rank];
  1377. if (has_packet_id()) {
  1378. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1379. 1, this->packet_id(), target);
  1380. }
  1381. if (!unknown_fields().empty()) {
  1382. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1383. unknown_fields(), target);
  1384. }
  1385. return target;
  1386. }
  1387. int packetc2l_get_monkey_rank::ByteSize() const {
  1388. int total_size = 0;
  1389. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1390. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_monkey_rank];
  1391. if (has_packet_id()) {
  1392. total_size += 1 +
  1393. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  1394. }
  1395. }
  1396. if (!unknown_fields().empty()) {
  1397. total_size +=
  1398. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1399. unknown_fields());
  1400. }
  1401. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1402. _cached_size_ = total_size;
  1403. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1404. return total_size;
  1405. }
  1406. void packetc2l_get_monkey_rank::MergeFrom(const ::google::protobuf::Message& from) {
  1407. GOOGLE_CHECK_NE(&from, this);
  1408. const packetc2l_get_monkey_rank* source =
  1409. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_get_monkey_rank*>(
  1410. &from);
  1411. if (source == NULL) {
  1412. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1413. } else {
  1414. MergeFrom(*source);
  1415. }
  1416. }
  1417. void packetc2l_get_monkey_rank::MergeFrom(const packetc2l_get_monkey_rank& from) {
  1418. GOOGLE_CHECK_NE(&from, this);
  1419. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1420. if (from.has_packet_id()) {
  1421. set_packet_id(from.packet_id());
  1422. }
  1423. }
  1424. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1425. }
  1426. void packetc2l_get_monkey_rank::CopyFrom(const ::google::protobuf::Message& from) {
  1427. if (&from == this) return;
  1428. Clear();
  1429. MergeFrom(from);
  1430. }
  1431. void packetc2l_get_monkey_rank::CopyFrom(const packetc2l_get_monkey_rank& from) {
  1432. if (&from == this) return;
  1433. Clear();
  1434. MergeFrom(from);
  1435. }
  1436. bool packetc2l_get_monkey_rank::IsInitialized() const {
  1437. return true;
  1438. }
  1439. void packetc2l_get_monkey_rank::Swap(packetc2l_get_monkey_rank* other) {
  1440. if (other != this) {
  1441. std::swap(packet_id_, other->packet_id_);
  1442. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1443. _unknown_fields_.Swap(&other->_unknown_fields_);
  1444. std::swap(_cached_size_, other->_cached_size_);
  1445. }
  1446. }
  1447. ::google::protobuf::Metadata packetc2l_get_monkey_rank::GetMetadata() const {
  1448. protobuf_AssignDescriptorsOnce();
  1449. ::google::protobuf::Metadata metadata;
  1450. metadata.descriptor = packetc2l_get_monkey_rank_descriptor_;
  1451. metadata.reflection = packetc2l_get_monkey_rank_reflection_;
  1452. return metadata;
  1453. }
  1454. // ===================================================================
  1455. #ifndef _MSC_VER
  1456. const int packetl2c_get_monkey_rank_result::kPacketIdFieldNumber;
  1457. const int packetl2c_get_monkey_rank_result::kMyDailyRankFieldNumber;
  1458. const int packetl2c_get_monkey_rank_result::kMyWeeklyRankFieldNumber;
  1459. const int packetl2c_get_monkey_rank_result::kDayRankListFieldNumber;
  1460. const int packetl2c_get_monkey_rank_result::kWeekRankListFieldNumber;
  1461. #endif // !_MSC_VER
  1462. packetl2c_get_monkey_rank_result::packetl2c_get_monkey_rank_result()
  1463. : ::google::protobuf::Message() {
  1464. SharedCtor();
  1465. }
  1466. void packetl2c_get_monkey_rank_result::InitAsDefaultInstance() {
  1467. mydailyrank_ = const_cast< ::fish_protocols::MonkeyRankInfo*>(&::fish_protocols::MonkeyRankInfo::default_instance());
  1468. myweeklyrank_ = const_cast< ::fish_protocols::MonkeyRankInfo*>(&::fish_protocols::MonkeyRankInfo::default_instance());
  1469. }
  1470. packetl2c_get_monkey_rank_result::packetl2c_get_monkey_rank_result(const packetl2c_get_monkey_rank_result& from)
  1471. : ::google::protobuf::Message() {
  1472. SharedCtor();
  1473. MergeFrom(from);
  1474. }
  1475. void packetl2c_get_monkey_rank_result::SharedCtor() {
  1476. _cached_size_ = 0;
  1477. packet_id_ = 16153;
  1478. mydailyrank_ = NULL;
  1479. myweeklyrank_ = NULL;
  1480. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1481. }
  1482. packetl2c_get_monkey_rank_result::~packetl2c_get_monkey_rank_result() {
  1483. SharedDtor();
  1484. }
  1485. void packetl2c_get_monkey_rank_result::SharedDtor() {
  1486. if (this != default_instance_) {
  1487. delete mydailyrank_;
  1488. delete myweeklyrank_;
  1489. }
  1490. }
  1491. void packetl2c_get_monkey_rank_result::SetCachedSize(int size) const {
  1492. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1493. _cached_size_ = size;
  1494. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1495. }
  1496. const ::google::protobuf::Descriptor* packetl2c_get_monkey_rank_result::descriptor() {
  1497. protobuf_AssignDescriptorsOnce();
  1498. return packetl2c_get_monkey_rank_result_descriptor_;
  1499. }
  1500. const packetl2c_get_monkey_rank_result& packetl2c_get_monkey_rank_result::default_instance() {
  1501. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fmonkey_5fpalace_2eproto();
  1502. return *default_instance_;
  1503. }
  1504. packetl2c_get_monkey_rank_result* packetl2c_get_monkey_rank_result::default_instance_ = NULL;
  1505. packetl2c_get_monkey_rank_result* packetl2c_get_monkey_rank_result::New() const {
  1506. return new packetl2c_get_monkey_rank_result;
  1507. }
  1508. void packetl2c_get_monkey_rank_result::Clear() {
  1509. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1510. packet_id_ = 16153;
  1511. if (has_mydailyrank()) {
  1512. if (mydailyrank_ != NULL) mydailyrank_->::fish_protocols::MonkeyRankInfo::Clear();
  1513. }
  1514. if (has_myweeklyrank()) {
  1515. if (myweeklyrank_ != NULL) myweeklyrank_->::fish_protocols::MonkeyRankInfo::Clear();
  1516. }
  1517. }
  1518. dayranklist_.Clear();
  1519. weekranklist_.Clear();
  1520. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1521. mutable_unknown_fields()->Clear();
  1522. }
  1523. bool packetl2c_get_monkey_rank_result::MergePartialFromCodedStream(
  1524. ::google::protobuf::io::CodedInputStream* input) {
  1525. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  1526. ::google::protobuf::uint32 tag;
  1527. while ((tag = input->ReadTag()) != 0) {
  1528. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1529. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_monkey_rank_result];
  1530. case 1: {
  1531. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1532. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1533. int value;
  1534. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1535. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1536. input, &value)));
  1537. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  1538. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  1539. } else {
  1540. mutable_unknown_fields()->AddVarint(1, value);
  1541. }
  1542. } else {
  1543. goto handle_uninterpreted;
  1544. }
  1545. if (input->ExpectTag(18)) goto parse_myDailyRank;
  1546. break;
  1547. }
  1548. // optional .fish_protocols.MonkeyRankInfo myDailyRank = 2;
  1549. case 2: {
  1550. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1551. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1552. parse_myDailyRank:
  1553. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1554. input, mutable_mydailyrank()));
  1555. } else {
  1556. goto handle_uninterpreted;
  1557. }
  1558. if (input->ExpectTag(26)) goto parse_myWeeklyRank;
  1559. break;
  1560. }
  1561. // optional .fish_protocols.MonkeyRankInfo myWeeklyRank = 3;
  1562. case 3: {
  1563. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1564. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1565. parse_myWeeklyRank:
  1566. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1567. input, mutable_myweeklyrank()));
  1568. } else {
  1569. goto handle_uninterpreted;
  1570. }
  1571. if (input->ExpectTag(34)) goto parse_dayRankList;
  1572. break;
  1573. }
  1574. // repeated .fish_protocols.MonkeyRankInfo dayRankList = 4;
  1575. case 4: {
  1576. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1577. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1578. parse_dayRankList:
  1579. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1580. input, add_dayranklist()));
  1581. } else {
  1582. goto handle_uninterpreted;
  1583. }
  1584. if (input->ExpectTag(34)) goto parse_dayRankList;
  1585. if (input->ExpectTag(42)) goto parse_weekRankList;
  1586. break;
  1587. }
  1588. // repeated .fish_protocols.MonkeyRankInfo weekRankList = 5;
  1589. case 5: {
  1590. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1591. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1592. parse_weekRankList:
  1593. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1594. input, add_weekranklist()));
  1595. } else {
  1596. goto handle_uninterpreted;
  1597. }
  1598. if (input->ExpectTag(42)) goto parse_weekRankList;
  1599. if (input->ExpectAtEnd()) return true;
  1600. break;
  1601. }
  1602. default: {
  1603. handle_uninterpreted:
  1604. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1605. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1606. return true;
  1607. }
  1608. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1609. input, tag, mutable_unknown_fields()));
  1610. break;
  1611. }
  1612. }
  1613. }
  1614. return true;
  1615. #undef DO_
  1616. }
  1617. void packetl2c_get_monkey_rank_result::SerializeWithCachedSizes(
  1618. ::google::protobuf::io::CodedOutputStream* output) const {
  1619. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_monkey_rank_result];
  1620. if (has_packet_id()) {
  1621. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1622. 1, this->packet_id(), output);
  1623. }
  1624. // optional .fish_protocols.MonkeyRankInfo myDailyRank = 2;
  1625. if (has_mydailyrank()) {
  1626. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1627. 2, this->mydailyrank(), output);
  1628. }
  1629. // optional .fish_protocols.MonkeyRankInfo myWeeklyRank = 3;
  1630. if (has_myweeklyrank()) {
  1631. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1632. 3, this->myweeklyrank(), output);
  1633. }
  1634. // repeated .fish_protocols.MonkeyRankInfo dayRankList = 4;
  1635. for (int i = 0; i < this->dayranklist_size(); i++) {
  1636. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1637. 4, this->dayranklist(i), output);
  1638. }
  1639. // repeated .fish_protocols.MonkeyRankInfo weekRankList = 5;
  1640. for (int i = 0; i < this->weekranklist_size(); i++) {
  1641. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1642. 5, this->weekranklist(i), output);
  1643. }
  1644. if (!unknown_fields().empty()) {
  1645. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1646. unknown_fields(), output);
  1647. }
  1648. }
  1649. ::google::protobuf::uint8* packetl2c_get_monkey_rank_result::SerializeWithCachedSizesToArray(
  1650. ::google::protobuf::uint8* target) const {
  1651. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_monkey_rank_result];
  1652. if (has_packet_id()) {
  1653. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1654. 1, this->packet_id(), target);
  1655. }
  1656. // optional .fish_protocols.MonkeyRankInfo myDailyRank = 2;
  1657. if (has_mydailyrank()) {
  1658. target = ::google::protobuf::internal::WireFormatLite::
  1659. WriteMessageNoVirtualToArray(
  1660. 2, this->mydailyrank(), target);
  1661. }
  1662. // optional .fish_protocols.MonkeyRankInfo myWeeklyRank = 3;
  1663. if (has_myweeklyrank()) {
  1664. target = ::google::protobuf::internal::WireFormatLite::
  1665. WriteMessageNoVirtualToArray(
  1666. 3, this->myweeklyrank(), target);
  1667. }
  1668. // repeated .fish_protocols.MonkeyRankInfo dayRankList = 4;
  1669. for (int i = 0; i < this->dayranklist_size(); i++) {
  1670. target = ::google::protobuf::internal::WireFormatLite::
  1671. WriteMessageNoVirtualToArray(
  1672. 4, this->dayranklist(i), target);
  1673. }
  1674. // repeated .fish_protocols.MonkeyRankInfo weekRankList = 5;
  1675. for (int i = 0; i < this->weekranklist_size(); i++) {
  1676. target = ::google::protobuf::internal::WireFormatLite::
  1677. WriteMessageNoVirtualToArray(
  1678. 5, this->weekranklist(i), target);
  1679. }
  1680. if (!unknown_fields().empty()) {
  1681. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1682. unknown_fields(), target);
  1683. }
  1684. return target;
  1685. }
  1686. int packetl2c_get_monkey_rank_result::ByteSize() const {
  1687. int total_size = 0;
  1688. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1689. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_monkey_rank_result];
  1690. if (has_packet_id()) {
  1691. total_size += 1 +
  1692. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  1693. }
  1694. // optional .fish_protocols.MonkeyRankInfo myDailyRank = 2;
  1695. if (has_mydailyrank()) {
  1696. total_size += 1 +
  1697. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1698. this->mydailyrank());
  1699. }
  1700. // optional .fish_protocols.MonkeyRankInfo myWeeklyRank = 3;
  1701. if (has_myweeklyrank()) {
  1702. total_size += 1 +
  1703. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1704. this->myweeklyrank());
  1705. }
  1706. }
  1707. // repeated .fish_protocols.MonkeyRankInfo dayRankList = 4;
  1708. total_size += 1 * this->dayranklist_size();
  1709. for (int i = 0; i < this->dayranklist_size(); i++) {
  1710. total_size +=
  1711. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1712. this->dayranklist(i));
  1713. }
  1714. // repeated .fish_protocols.MonkeyRankInfo weekRankList = 5;
  1715. total_size += 1 * this->weekranklist_size();
  1716. for (int i = 0; i < this->weekranklist_size(); i++) {
  1717. total_size +=
  1718. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1719. this->weekranklist(i));
  1720. }
  1721. if (!unknown_fields().empty()) {
  1722. total_size +=
  1723. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1724. unknown_fields());
  1725. }
  1726. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1727. _cached_size_ = total_size;
  1728. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1729. return total_size;
  1730. }
  1731. void packetl2c_get_monkey_rank_result::MergeFrom(const ::google::protobuf::Message& from) {
  1732. GOOGLE_CHECK_NE(&from, this);
  1733. const packetl2c_get_monkey_rank_result* source =
  1734. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_get_monkey_rank_result*>(
  1735. &from);
  1736. if (source == NULL) {
  1737. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1738. } else {
  1739. MergeFrom(*source);
  1740. }
  1741. }
  1742. void packetl2c_get_monkey_rank_result::MergeFrom(const packetl2c_get_monkey_rank_result& from) {
  1743. GOOGLE_CHECK_NE(&from, this);
  1744. dayranklist_.MergeFrom(from.dayranklist_);
  1745. weekranklist_.MergeFrom(from.weekranklist_);
  1746. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1747. if (from.has_packet_id()) {
  1748. set_packet_id(from.packet_id());
  1749. }
  1750. if (from.has_mydailyrank()) {
  1751. mutable_mydailyrank()->::fish_protocols::MonkeyRankInfo::MergeFrom(from.mydailyrank());
  1752. }
  1753. if (from.has_myweeklyrank()) {
  1754. mutable_myweeklyrank()->::fish_protocols::MonkeyRankInfo::MergeFrom(from.myweeklyrank());
  1755. }
  1756. }
  1757. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1758. }
  1759. void packetl2c_get_monkey_rank_result::CopyFrom(const ::google::protobuf::Message& from) {
  1760. if (&from == this) return;
  1761. Clear();
  1762. MergeFrom(from);
  1763. }
  1764. void packetl2c_get_monkey_rank_result::CopyFrom(const packetl2c_get_monkey_rank_result& from) {
  1765. if (&from == this) return;
  1766. Clear();
  1767. MergeFrom(from);
  1768. }
  1769. bool packetl2c_get_monkey_rank_result::IsInitialized() const {
  1770. return true;
  1771. }
  1772. void packetl2c_get_monkey_rank_result::Swap(packetl2c_get_monkey_rank_result* other) {
  1773. if (other != this) {
  1774. std::swap(packet_id_, other->packet_id_);
  1775. std::swap(mydailyrank_, other->mydailyrank_);
  1776. std::swap(myweeklyrank_, other->myweeklyrank_);
  1777. dayranklist_.Swap(&other->dayranklist_);
  1778. weekranklist_.Swap(&other->weekranklist_);
  1779. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1780. _unknown_fields_.Swap(&other->_unknown_fields_);
  1781. std::swap(_cached_size_, other->_cached_size_);
  1782. }
  1783. }
  1784. ::google::protobuf::Metadata packetl2c_get_monkey_rank_result::GetMetadata() const {
  1785. protobuf_AssignDescriptorsOnce();
  1786. ::google::protobuf::Metadata metadata;
  1787. metadata.descriptor = packetl2c_get_monkey_rank_result_descriptor_;
  1788. metadata.reflection = packetl2c_get_monkey_rank_result_reflection_;
  1789. return metadata;
  1790. }
  1791. // ===================================================================
  1792. #ifndef _MSC_VER
  1793. const int packetc2l_get_monkey_info::kPacketIdFieldNumber;
  1794. #endif // !_MSC_VER
  1795. packetc2l_get_monkey_info::packetc2l_get_monkey_info()
  1796. : ::google::protobuf::Message() {
  1797. SharedCtor();
  1798. }
  1799. void packetc2l_get_monkey_info::InitAsDefaultInstance() {
  1800. }
  1801. packetc2l_get_monkey_info::packetc2l_get_monkey_info(const packetc2l_get_monkey_info& from)
  1802. : ::google::protobuf::Message() {
  1803. SharedCtor();
  1804. MergeFrom(from);
  1805. }
  1806. void packetc2l_get_monkey_info::SharedCtor() {
  1807. _cached_size_ = 0;
  1808. packet_id_ = 10221;
  1809. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1810. }
  1811. packetc2l_get_monkey_info::~packetc2l_get_monkey_info() {
  1812. SharedDtor();
  1813. }
  1814. void packetc2l_get_monkey_info::SharedDtor() {
  1815. if (this != default_instance_) {
  1816. }
  1817. }
  1818. void packetc2l_get_monkey_info::SetCachedSize(int size) const {
  1819. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1820. _cached_size_ = size;
  1821. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1822. }
  1823. const ::google::protobuf::Descriptor* packetc2l_get_monkey_info::descriptor() {
  1824. protobuf_AssignDescriptorsOnce();
  1825. return packetc2l_get_monkey_info_descriptor_;
  1826. }
  1827. const packetc2l_get_monkey_info& packetc2l_get_monkey_info::default_instance() {
  1828. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fmonkey_5fpalace_2eproto();
  1829. return *default_instance_;
  1830. }
  1831. packetc2l_get_monkey_info* packetc2l_get_monkey_info::default_instance_ = NULL;
  1832. packetc2l_get_monkey_info* packetc2l_get_monkey_info::New() const {
  1833. return new packetc2l_get_monkey_info;
  1834. }
  1835. void packetc2l_get_monkey_info::Clear() {
  1836. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1837. packet_id_ = 10221;
  1838. }
  1839. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1840. mutable_unknown_fields()->Clear();
  1841. }
  1842. bool packetc2l_get_monkey_info::MergePartialFromCodedStream(
  1843. ::google::protobuf::io::CodedInputStream* input) {
  1844. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  1845. ::google::protobuf::uint32 tag;
  1846. while ((tag = input->ReadTag()) != 0) {
  1847. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1848. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_monkey_info];
  1849. case 1: {
  1850. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1851. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1852. int value;
  1853. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1854. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1855. input, &value)));
  1856. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  1857. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  1858. } else {
  1859. mutable_unknown_fields()->AddVarint(1, value);
  1860. }
  1861. } else {
  1862. goto handle_uninterpreted;
  1863. }
  1864. if (input->ExpectAtEnd()) return true;
  1865. break;
  1866. }
  1867. default: {
  1868. handle_uninterpreted:
  1869. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1870. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1871. return true;
  1872. }
  1873. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1874. input, tag, mutable_unknown_fields()));
  1875. break;
  1876. }
  1877. }
  1878. }
  1879. return true;
  1880. #undef DO_
  1881. }
  1882. void packetc2l_get_monkey_info::SerializeWithCachedSizes(
  1883. ::google::protobuf::io::CodedOutputStream* output) const {
  1884. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_monkey_info];
  1885. if (has_packet_id()) {
  1886. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1887. 1, this->packet_id(), output);
  1888. }
  1889. if (!unknown_fields().empty()) {
  1890. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1891. unknown_fields(), output);
  1892. }
  1893. }
  1894. ::google::protobuf::uint8* packetc2l_get_monkey_info::SerializeWithCachedSizesToArray(
  1895. ::google::protobuf::uint8* target) const {
  1896. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_monkey_info];
  1897. if (has_packet_id()) {
  1898. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1899. 1, this->packet_id(), target);
  1900. }
  1901. if (!unknown_fields().empty()) {
  1902. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1903. unknown_fields(), target);
  1904. }
  1905. return target;
  1906. }
  1907. int packetc2l_get_monkey_info::ByteSize() const {
  1908. int total_size = 0;
  1909. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1910. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_monkey_info];
  1911. if (has_packet_id()) {
  1912. total_size += 1 +
  1913. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  1914. }
  1915. }
  1916. if (!unknown_fields().empty()) {
  1917. total_size +=
  1918. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1919. unknown_fields());
  1920. }
  1921. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1922. _cached_size_ = total_size;
  1923. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1924. return total_size;
  1925. }
  1926. void packetc2l_get_monkey_info::MergeFrom(const ::google::protobuf::Message& from) {
  1927. GOOGLE_CHECK_NE(&from, this);
  1928. const packetc2l_get_monkey_info* source =
  1929. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_get_monkey_info*>(
  1930. &from);
  1931. if (source == NULL) {
  1932. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1933. } else {
  1934. MergeFrom(*source);
  1935. }
  1936. }
  1937. void packetc2l_get_monkey_info::MergeFrom(const packetc2l_get_monkey_info& from) {
  1938. GOOGLE_CHECK_NE(&from, this);
  1939. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1940. if (from.has_packet_id()) {
  1941. set_packet_id(from.packet_id());
  1942. }
  1943. }
  1944. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1945. }
  1946. void packetc2l_get_monkey_info::CopyFrom(const ::google::protobuf::Message& from) {
  1947. if (&from == this) return;
  1948. Clear();
  1949. MergeFrom(from);
  1950. }
  1951. void packetc2l_get_monkey_info::CopyFrom(const packetc2l_get_monkey_info& from) {
  1952. if (&from == this) return;
  1953. Clear();
  1954. MergeFrom(from);
  1955. }
  1956. bool packetc2l_get_monkey_info::IsInitialized() const {
  1957. return true;
  1958. }
  1959. void packetc2l_get_monkey_info::Swap(packetc2l_get_monkey_info* other) {
  1960. if (other != this) {
  1961. std::swap(packet_id_, other->packet_id_);
  1962. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1963. _unknown_fields_.Swap(&other->_unknown_fields_);
  1964. std::swap(_cached_size_, other->_cached_size_);
  1965. }
  1966. }
  1967. ::google::protobuf::Metadata packetc2l_get_monkey_info::GetMetadata() const {
  1968. protobuf_AssignDescriptorsOnce();
  1969. ::google::protobuf::Metadata metadata;
  1970. metadata.descriptor = packetc2l_get_monkey_info_descriptor_;
  1971. metadata.reflection = packetc2l_get_monkey_info_reflection_;
  1972. return metadata;
  1973. }
  1974. // ===================================================================
  1975. #ifndef _MSC_VER
  1976. const int packetl2c_get_monkey_info_result::kPacketIdFieldNumber;
  1977. const int packetl2c_get_monkey_info_result::kResultFieldNumber;
  1978. const int packetl2c_get_monkey_info_result::kBossCountDownFieldNumber;
  1979. const int packetl2c_get_monkey_info_result::kJackpotFieldNumber;
  1980. #endif // !_MSC_VER
  1981. packetl2c_get_monkey_info_result::packetl2c_get_monkey_info_result()
  1982. : ::google::protobuf::Message() {
  1983. SharedCtor();
  1984. }
  1985. void packetl2c_get_monkey_info_result::InitAsDefaultInstance() {
  1986. }
  1987. packetl2c_get_monkey_info_result::packetl2c_get_monkey_info_result(const packetl2c_get_monkey_info_result& from)
  1988. : ::google::protobuf::Message() {
  1989. SharedCtor();
  1990. MergeFrom(from);
  1991. }
  1992. void packetl2c_get_monkey_info_result::SharedCtor() {
  1993. _cached_size_ = 0;
  1994. packet_id_ = 16227;
  1995. result_ = 0;
  1996. bosscountdown_ = 0;
  1997. jackpot_ = GOOGLE_LONGLONG(0);
  1998. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1999. }
  2000. packetl2c_get_monkey_info_result::~packetl2c_get_monkey_info_result() {
  2001. SharedDtor();
  2002. }
  2003. void packetl2c_get_monkey_info_result::SharedDtor() {
  2004. if (this != default_instance_) {
  2005. }
  2006. }
  2007. void packetl2c_get_monkey_info_result::SetCachedSize(int size) const {
  2008. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2009. _cached_size_ = size;
  2010. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2011. }
  2012. const ::google::protobuf::Descriptor* packetl2c_get_monkey_info_result::descriptor() {
  2013. protobuf_AssignDescriptorsOnce();
  2014. return packetl2c_get_monkey_info_result_descriptor_;
  2015. }
  2016. const packetl2c_get_monkey_info_result& packetl2c_get_monkey_info_result::default_instance() {
  2017. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fmonkey_5fpalace_2eproto();
  2018. return *default_instance_;
  2019. }
  2020. packetl2c_get_monkey_info_result* packetl2c_get_monkey_info_result::default_instance_ = NULL;
  2021. packetl2c_get_monkey_info_result* packetl2c_get_monkey_info_result::New() const {
  2022. return new packetl2c_get_monkey_info_result;
  2023. }
  2024. void packetl2c_get_monkey_info_result::Clear() {
  2025. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2026. packet_id_ = 16227;
  2027. result_ = 0;
  2028. bosscountdown_ = 0;
  2029. jackpot_ = GOOGLE_LONGLONG(0);
  2030. }
  2031. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2032. mutable_unknown_fields()->Clear();
  2033. }
  2034. bool packetl2c_get_monkey_info_result::MergePartialFromCodedStream(
  2035. ::google::protobuf::io::CodedInputStream* input) {
  2036. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  2037. ::google::protobuf::uint32 tag;
  2038. while ((tag = input->ReadTag()) != 0) {
  2039. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2040. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_monkey_info_result];
  2041. case 1: {
  2042. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2043. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2044. int value;
  2045. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2046. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2047. input, &value)));
  2048. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  2049. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  2050. } else {
  2051. mutable_unknown_fields()->AddVarint(1, value);
  2052. }
  2053. } else {
  2054. goto handle_uninterpreted;
  2055. }
  2056. if (input->ExpectTag(16)) goto parse_result;
  2057. break;
  2058. }
  2059. // optional int32 result = 2;
  2060. case 2: {
  2061. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2062. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2063. parse_result:
  2064. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2065. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2066. input, &result_)));
  2067. set_has_result();
  2068. } else {
  2069. goto handle_uninterpreted;
  2070. }
  2071. if (input->ExpectTag(24)) goto parse_bossCountDown;
  2072. break;
  2073. }
  2074. // optional int32 bossCountDown = 3;
  2075. case 3: {
  2076. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2077. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2078. parse_bossCountDown:
  2079. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2080. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2081. input, &bosscountdown_)));
  2082. set_has_bosscountdown();
  2083. } else {
  2084. goto handle_uninterpreted;
  2085. }
  2086. if (input->ExpectTag(32)) goto parse_jackpot;
  2087. break;
  2088. }
  2089. // optional int64 jackpot = 4;
  2090. case 4: {
  2091. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2092. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2093. parse_jackpot:
  2094. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2095. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  2096. input, &jackpot_)));
  2097. set_has_jackpot();
  2098. } else {
  2099. goto handle_uninterpreted;
  2100. }
  2101. if (input->ExpectAtEnd()) return true;
  2102. break;
  2103. }
  2104. default: {
  2105. handle_uninterpreted:
  2106. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2107. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2108. return true;
  2109. }
  2110. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2111. input, tag, mutable_unknown_fields()));
  2112. break;
  2113. }
  2114. }
  2115. }
  2116. return true;
  2117. #undef DO_
  2118. }
  2119. void packetl2c_get_monkey_info_result::SerializeWithCachedSizes(
  2120. ::google::protobuf::io::CodedOutputStream* output) const {
  2121. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_monkey_info_result];
  2122. if (has_packet_id()) {
  2123. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2124. 1, this->packet_id(), output);
  2125. }
  2126. // optional int32 result = 2;
  2127. if (has_result()) {
  2128. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->result(), output);
  2129. }
  2130. // optional int32 bossCountDown = 3;
  2131. if (has_bosscountdown()) {
  2132. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->bosscountdown(), output);
  2133. }
  2134. // optional int64 jackpot = 4;
  2135. if (has_jackpot()) {
  2136. ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->jackpot(), output);
  2137. }
  2138. if (!unknown_fields().empty()) {
  2139. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2140. unknown_fields(), output);
  2141. }
  2142. }
  2143. ::google::protobuf::uint8* packetl2c_get_monkey_info_result::SerializeWithCachedSizesToArray(
  2144. ::google::protobuf::uint8* target) const {
  2145. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_monkey_info_result];
  2146. if (has_packet_id()) {
  2147. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2148. 1, this->packet_id(), target);
  2149. }
  2150. // optional int32 result = 2;
  2151. if (has_result()) {
  2152. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->result(), target);
  2153. }
  2154. // optional int32 bossCountDown = 3;
  2155. if (has_bosscountdown()) {
  2156. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->bosscountdown(), target);
  2157. }
  2158. // optional int64 jackpot = 4;
  2159. if (has_jackpot()) {
  2160. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->jackpot(), target);
  2161. }
  2162. if (!unknown_fields().empty()) {
  2163. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2164. unknown_fields(), target);
  2165. }
  2166. return target;
  2167. }
  2168. int packetl2c_get_monkey_info_result::ByteSize() const {
  2169. int total_size = 0;
  2170. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2171. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_monkey_info_result];
  2172. if (has_packet_id()) {
  2173. total_size += 1 +
  2174. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  2175. }
  2176. // optional int32 result = 2;
  2177. if (has_result()) {
  2178. total_size += 1 +
  2179. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2180. this->result());
  2181. }
  2182. // optional int32 bossCountDown = 3;
  2183. if (has_bosscountdown()) {
  2184. total_size += 1 +
  2185. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2186. this->bosscountdown());
  2187. }
  2188. // optional int64 jackpot = 4;
  2189. if (has_jackpot()) {
  2190. total_size += 1 +
  2191. ::google::protobuf::internal::WireFormatLite::Int64Size(
  2192. this->jackpot());
  2193. }
  2194. }
  2195. if (!unknown_fields().empty()) {
  2196. total_size +=
  2197. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2198. unknown_fields());
  2199. }
  2200. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2201. _cached_size_ = total_size;
  2202. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2203. return total_size;
  2204. }
  2205. void packetl2c_get_monkey_info_result::MergeFrom(const ::google::protobuf::Message& from) {
  2206. GOOGLE_CHECK_NE(&from, this);
  2207. const packetl2c_get_monkey_info_result* source =
  2208. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_get_monkey_info_result*>(
  2209. &from);
  2210. if (source == NULL) {
  2211. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2212. } else {
  2213. MergeFrom(*source);
  2214. }
  2215. }
  2216. void packetl2c_get_monkey_info_result::MergeFrom(const packetl2c_get_monkey_info_result& from) {
  2217. GOOGLE_CHECK_NE(&from, this);
  2218. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2219. if (from.has_packet_id()) {
  2220. set_packet_id(from.packet_id());
  2221. }
  2222. if (from.has_result()) {
  2223. set_result(from.result());
  2224. }
  2225. if (from.has_bosscountdown()) {
  2226. set_bosscountdown(from.bosscountdown());
  2227. }
  2228. if (from.has_jackpot()) {
  2229. set_jackpot(from.jackpot());
  2230. }
  2231. }
  2232. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  2233. }
  2234. void packetl2c_get_monkey_info_result::CopyFrom(const ::google::protobuf::Message& from) {
  2235. if (&from == this) return;
  2236. Clear();
  2237. MergeFrom(from);
  2238. }
  2239. void packetl2c_get_monkey_info_result::CopyFrom(const packetl2c_get_monkey_info_result& from) {
  2240. if (&from == this) return;
  2241. Clear();
  2242. MergeFrom(from);
  2243. }
  2244. bool packetl2c_get_monkey_info_result::IsInitialized() const {
  2245. return true;
  2246. }
  2247. void packetl2c_get_monkey_info_result::Swap(packetl2c_get_monkey_info_result* other) {
  2248. if (other != this) {
  2249. std::swap(packet_id_, other->packet_id_);
  2250. std::swap(result_, other->result_);
  2251. std::swap(bosscountdown_, other->bosscountdown_);
  2252. std::swap(jackpot_, other->jackpot_);
  2253. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2254. _unknown_fields_.Swap(&other->_unknown_fields_);
  2255. std::swap(_cached_size_, other->_cached_size_);
  2256. }
  2257. }
  2258. ::google::protobuf::Metadata packetl2c_get_monkey_info_result::GetMetadata() const {
  2259. protobuf_AssignDescriptorsOnce();
  2260. ::google::protobuf::Metadata metadata;
  2261. metadata.descriptor = packetl2c_get_monkey_info_result_descriptor_;
  2262. metadata.reflection = packetl2c_get_monkey_info_result_reflection_;
  2263. return metadata;
  2264. }
  2265. // ===================================================================
  2266. #ifndef _MSC_VER
  2267. const int packetl2c_bc_table_kill_monkey::kPacketIdFieldNumber;
  2268. const int packetl2c_bc_table_kill_monkey::kPlayerIdFieldNumber;
  2269. const int packetl2c_bc_table_kill_monkey::kFishRateFieldNumber;
  2270. const int packetl2c_bc_table_kill_monkey::kBulletRateFieldNumber;
  2271. const int packetl2c_bc_table_kill_monkey::kDropGoldFieldNumber;
  2272. const int packetl2c_bc_table_kill_monkey::kRewardIndexFieldNumber;
  2273. const int packetl2c_bc_table_kill_monkey::kGainjackpotFieldNumber;
  2274. const int packetl2c_bc_table_kill_monkey::kGainItemsFieldNumber;
  2275. const int packetl2c_bc_table_kill_monkey::kGraphArrFieldNumber;
  2276. const int packetl2c_bc_table_kill_monkey::kPointFieldNumber;
  2277. const int packetl2c_bc_table_kill_monkey::kAddPointFieldNumber;
  2278. const int packetl2c_bc_table_kill_monkey::kJackpotFieldNumber;
  2279. #endif // !_MSC_VER
  2280. packetl2c_bc_table_kill_monkey::packetl2c_bc_table_kill_monkey()
  2281. : ::google::protobuf::Message() {
  2282. SharedCtor();
  2283. }
  2284. void packetl2c_bc_table_kill_monkey::InitAsDefaultInstance() {
  2285. }
  2286. packetl2c_bc_table_kill_monkey::packetl2c_bc_table_kill_monkey(const packetl2c_bc_table_kill_monkey& from)
  2287. : ::google::protobuf::Message() {
  2288. SharedCtor();
  2289. MergeFrom(from);
  2290. }
  2291. void packetl2c_bc_table_kill_monkey::SharedCtor() {
  2292. _cached_size_ = 0;
  2293. packet_id_ = 16154;
  2294. playerid_ = 0;
  2295. fishrate_ = 0;
  2296. bulletrate_ = 0;
  2297. dropgold_ = GOOGLE_LONGLONG(0);
  2298. rewardindex_ = 0;
  2299. gainjackpot_ = GOOGLE_LONGLONG(0);
  2300. point_ = 0;
  2301. addpoint_ = 0;
  2302. jackpot_ = GOOGLE_LONGLONG(0);
  2303. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2304. }
  2305. packetl2c_bc_table_kill_monkey::~packetl2c_bc_table_kill_monkey() {
  2306. SharedDtor();
  2307. }
  2308. void packetl2c_bc_table_kill_monkey::SharedDtor() {
  2309. if (this != default_instance_) {
  2310. }
  2311. }
  2312. void packetl2c_bc_table_kill_monkey::SetCachedSize(int size) const {
  2313. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2314. _cached_size_ = size;
  2315. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2316. }
  2317. const ::google::protobuf::Descriptor* packetl2c_bc_table_kill_monkey::descriptor() {
  2318. protobuf_AssignDescriptorsOnce();
  2319. return packetl2c_bc_table_kill_monkey_descriptor_;
  2320. }
  2321. const packetl2c_bc_table_kill_monkey& packetl2c_bc_table_kill_monkey::default_instance() {
  2322. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fmonkey_5fpalace_2eproto();
  2323. return *default_instance_;
  2324. }
  2325. packetl2c_bc_table_kill_monkey* packetl2c_bc_table_kill_monkey::default_instance_ = NULL;
  2326. packetl2c_bc_table_kill_monkey* packetl2c_bc_table_kill_monkey::New() const {
  2327. return new packetl2c_bc_table_kill_monkey;
  2328. }
  2329. void packetl2c_bc_table_kill_monkey::Clear() {
  2330. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2331. packet_id_ = 16154;
  2332. playerid_ = 0;
  2333. fishrate_ = 0;
  2334. bulletrate_ = 0;
  2335. dropgold_ = GOOGLE_LONGLONG(0);
  2336. rewardindex_ = 0;
  2337. gainjackpot_ = GOOGLE_LONGLONG(0);
  2338. }
  2339. if (_has_bits_[9 / 32] & (0xffu << (9 % 32))) {
  2340. point_ = 0;
  2341. addpoint_ = 0;
  2342. jackpot_ = GOOGLE_LONGLONG(0);
  2343. }
  2344. gainitems_.Clear();
  2345. grapharr_.Clear();
  2346. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2347. mutable_unknown_fields()->Clear();
  2348. }
  2349. bool packetl2c_bc_table_kill_monkey::MergePartialFromCodedStream(
  2350. ::google::protobuf::io::CodedInputStream* input) {
  2351. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  2352. ::google::protobuf::uint32 tag;
  2353. while ((tag = input->ReadTag()) != 0) {
  2354. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2355. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_bc_table_kill_monkey];
  2356. case 1: {
  2357. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2358. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2359. int value;
  2360. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2361. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2362. input, &value)));
  2363. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  2364. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  2365. } else {
  2366. mutable_unknown_fields()->AddVarint(1, value);
  2367. }
  2368. } else {
  2369. goto handle_uninterpreted;
  2370. }
  2371. if (input->ExpectTag(16)) goto parse_playerId;
  2372. break;
  2373. }
  2374. // optional int32 playerId = 2;
  2375. case 2: {
  2376. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2377. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2378. parse_playerId:
  2379. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2380. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2381. input, &playerid_)));
  2382. set_has_playerid();
  2383. } else {
  2384. goto handle_uninterpreted;
  2385. }
  2386. if (input->ExpectTag(24)) goto parse_fishRate;
  2387. break;
  2388. }
  2389. // optional int32 fishRate = 3;
  2390. case 3: {
  2391. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2392. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2393. parse_fishRate:
  2394. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2395. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2396. input, &fishrate_)));
  2397. set_has_fishrate();
  2398. } else {
  2399. goto handle_uninterpreted;
  2400. }
  2401. if (input->ExpectTag(32)) goto parse_bulletRate;
  2402. break;
  2403. }
  2404. // optional int32 bulletRate = 4;
  2405. case 4: {
  2406. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2407. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2408. parse_bulletRate:
  2409. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2410. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2411. input, &bulletrate_)));
  2412. set_has_bulletrate();
  2413. } else {
  2414. goto handle_uninterpreted;
  2415. }
  2416. if (input->ExpectTag(40)) goto parse_dropGold;
  2417. break;
  2418. }
  2419. // optional int64 dropGold = 5;
  2420. case 5: {
  2421. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2422. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2423. parse_dropGold:
  2424. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2425. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  2426. input, &dropgold_)));
  2427. set_has_dropgold();
  2428. } else {
  2429. goto handle_uninterpreted;
  2430. }
  2431. if (input->ExpectTag(48)) goto parse_rewardIndex;
  2432. break;
  2433. }
  2434. // optional int32 rewardIndex = 6;
  2435. case 6: {
  2436. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2437. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2438. parse_rewardIndex:
  2439. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2440. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2441. input, &rewardindex_)));
  2442. set_has_rewardindex();
  2443. } else {
  2444. goto handle_uninterpreted;
  2445. }
  2446. if (input->ExpectTag(56)) goto parse_gainjackpot;
  2447. break;
  2448. }
  2449. // optional int64 gainjackpot = 7;
  2450. case 7: {
  2451. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2452. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2453. parse_gainjackpot:
  2454. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2455. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  2456. input, &gainjackpot_)));
  2457. set_has_gainjackpot();
  2458. } else {
  2459. goto handle_uninterpreted;
  2460. }
  2461. if (input->ExpectTag(66)) goto parse_gainItems;
  2462. break;
  2463. }
  2464. // repeated .fish_protocols.msg_item gainItems = 8;
  2465. case 8: {
  2466. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2467. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  2468. parse_gainItems:
  2469. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2470. input, add_gainitems()));
  2471. } else {
  2472. goto handle_uninterpreted;
  2473. }
  2474. if (input->ExpectTag(66)) goto parse_gainItems;
  2475. if (input->ExpectTag(72)) goto parse_graphArr;
  2476. break;
  2477. }
  2478. // repeated int32 graphArr = 9;
  2479. case 9: {
  2480. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2481. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2482. parse_graphArr:
  2483. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
  2484. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2485. 1, 72, input, this->mutable_grapharr())));
  2486. } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
  2487. == ::google::protobuf::internal::WireFormatLite::
  2488. WIRETYPE_LENGTH_DELIMITED) {
  2489. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
  2490. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2491. input, this->mutable_grapharr())));
  2492. } else {
  2493. goto handle_uninterpreted;
  2494. }
  2495. if (input->ExpectTag(72)) goto parse_graphArr;
  2496. if (input->ExpectTag(80)) goto parse_point;
  2497. break;
  2498. }
  2499. // optional int32 point = 10;
  2500. case 10: {
  2501. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2502. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2503. parse_point:
  2504. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2505. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2506. input, &point_)));
  2507. set_has_point();
  2508. } else {
  2509. goto handle_uninterpreted;
  2510. }
  2511. if (input->ExpectTag(88)) goto parse_addPoint;
  2512. break;
  2513. }
  2514. // optional int32 addPoint = 11;
  2515. case 11: {
  2516. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2517. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2518. parse_addPoint:
  2519. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2520. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2521. input, &addpoint_)));
  2522. set_has_addpoint();
  2523. } else {
  2524. goto handle_uninterpreted;
  2525. }
  2526. if (input->ExpectTag(96)) goto parse_jackpot;
  2527. break;
  2528. }
  2529. // optional int64 jackpot = 12;
  2530. case 12: {
  2531. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2532. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2533. parse_jackpot:
  2534. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2535. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  2536. input, &jackpot_)));
  2537. set_has_jackpot();
  2538. } else {
  2539. goto handle_uninterpreted;
  2540. }
  2541. if (input->ExpectAtEnd()) return true;
  2542. break;
  2543. }
  2544. default: {
  2545. handle_uninterpreted:
  2546. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2547. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2548. return true;
  2549. }
  2550. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2551. input, tag, mutable_unknown_fields()));
  2552. break;
  2553. }
  2554. }
  2555. }
  2556. return true;
  2557. #undef DO_
  2558. }
  2559. void packetl2c_bc_table_kill_monkey::SerializeWithCachedSizes(
  2560. ::google::protobuf::io::CodedOutputStream* output) const {
  2561. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_bc_table_kill_monkey];
  2562. if (has_packet_id()) {
  2563. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2564. 1, this->packet_id(), output);
  2565. }
  2566. // optional int32 playerId = 2;
  2567. if (has_playerid()) {
  2568. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->playerid(), output);
  2569. }
  2570. // optional int32 fishRate = 3;
  2571. if (has_fishrate()) {
  2572. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->fishrate(), output);
  2573. }
  2574. // optional int32 bulletRate = 4;
  2575. if (has_bulletrate()) {
  2576. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->bulletrate(), output);
  2577. }
  2578. // optional int64 dropGold = 5;
  2579. if (has_dropgold()) {
  2580. ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->dropgold(), output);
  2581. }
  2582. // optional int32 rewardIndex = 6;
  2583. if (has_rewardindex()) {
  2584. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->rewardindex(), output);
  2585. }
  2586. // optional int64 gainjackpot = 7;
  2587. if (has_gainjackpot()) {
  2588. ::google::protobuf::internal::WireFormatLite::WriteInt64(7, this->gainjackpot(), output);
  2589. }
  2590. // repeated .fish_protocols.msg_item gainItems = 8;
  2591. for (int i = 0; i < this->gainitems_size(); i++) {
  2592. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2593. 8, this->gainitems(i), output);
  2594. }
  2595. // repeated int32 graphArr = 9;
  2596. for (int i = 0; i < this->grapharr_size(); i++) {
  2597. ::google::protobuf::internal::WireFormatLite::WriteInt32(
  2598. 9, this->grapharr(i), output);
  2599. }
  2600. // optional int32 point = 10;
  2601. if (has_point()) {
  2602. ::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->point(), output);
  2603. }
  2604. // optional int32 addPoint = 11;
  2605. if (has_addpoint()) {
  2606. ::google::protobuf::internal::WireFormatLite::WriteInt32(11, this->addpoint(), output);
  2607. }
  2608. // optional int64 jackpot = 12;
  2609. if (has_jackpot()) {
  2610. ::google::protobuf::internal::WireFormatLite::WriteInt64(12, this->jackpot(), output);
  2611. }
  2612. if (!unknown_fields().empty()) {
  2613. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2614. unknown_fields(), output);
  2615. }
  2616. }
  2617. ::google::protobuf::uint8* packetl2c_bc_table_kill_monkey::SerializeWithCachedSizesToArray(
  2618. ::google::protobuf::uint8* target) const {
  2619. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_bc_table_kill_monkey];
  2620. if (has_packet_id()) {
  2621. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2622. 1, this->packet_id(), target);
  2623. }
  2624. // optional int32 playerId = 2;
  2625. if (has_playerid()) {
  2626. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->playerid(), target);
  2627. }
  2628. // optional int32 fishRate = 3;
  2629. if (has_fishrate()) {
  2630. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->fishrate(), target);
  2631. }
  2632. // optional int32 bulletRate = 4;
  2633. if (has_bulletrate()) {
  2634. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->bulletrate(), target);
  2635. }
  2636. // optional int64 dropGold = 5;
  2637. if (has_dropgold()) {
  2638. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->dropgold(), target);
  2639. }
  2640. // optional int32 rewardIndex = 6;
  2641. if (has_rewardindex()) {
  2642. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->rewardindex(), target);
  2643. }
  2644. // optional int64 gainjackpot = 7;
  2645. if (has_gainjackpot()) {
  2646. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(7, this->gainjackpot(), target);
  2647. }
  2648. // repeated .fish_protocols.msg_item gainItems = 8;
  2649. for (int i = 0; i < this->gainitems_size(); i++) {
  2650. target = ::google::protobuf::internal::WireFormatLite::
  2651. WriteMessageNoVirtualToArray(
  2652. 8, this->gainitems(i), target);
  2653. }
  2654. // repeated int32 graphArr = 9;
  2655. for (int i = 0; i < this->grapharr_size(); i++) {
  2656. target = ::google::protobuf::internal::WireFormatLite::
  2657. WriteInt32ToArray(9, this->grapharr(i), target);
  2658. }
  2659. // optional int32 point = 10;
  2660. if (has_point()) {
  2661. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->point(), target);
  2662. }
  2663. // optional int32 addPoint = 11;
  2664. if (has_addpoint()) {
  2665. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(11, this->addpoint(), target);
  2666. }
  2667. // optional int64 jackpot = 12;
  2668. if (has_jackpot()) {
  2669. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(12, this->jackpot(), target);
  2670. }
  2671. if (!unknown_fields().empty()) {
  2672. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2673. unknown_fields(), target);
  2674. }
  2675. return target;
  2676. }
  2677. int packetl2c_bc_table_kill_monkey::ByteSize() const {
  2678. int total_size = 0;
  2679. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2680. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_bc_table_kill_monkey];
  2681. if (has_packet_id()) {
  2682. total_size += 1 +
  2683. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  2684. }
  2685. // optional int32 playerId = 2;
  2686. if (has_playerid()) {
  2687. total_size += 1 +
  2688. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2689. this->playerid());
  2690. }
  2691. // optional int32 fishRate = 3;
  2692. if (has_fishrate()) {
  2693. total_size += 1 +
  2694. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2695. this->fishrate());
  2696. }
  2697. // optional int32 bulletRate = 4;
  2698. if (has_bulletrate()) {
  2699. total_size += 1 +
  2700. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2701. this->bulletrate());
  2702. }
  2703. // optional int64 dropGold = 5;
  2704. if (has_dropgold()) {
  2705. total_size += 1 +
  2706. ::google::protobuf::internal::WireFormatLite::Int64Size(
  2707. this->dropgold());
  2708. }
  2709. // optional int32 rewardIndex = 6;
  2710. if (has_rewardindex()) {
  2711. total_size += 1 +
  2712. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2713. this->rewardindex());
  2714. }
  2715. // optional int64 gainjackpot = 7;
  2716. if (has_gainjackpot()) {
  2717. total_size += 1 +
  2718. ::google::protobuf::internal::WireFormatLite::Int64Size(
  2719. this->gainjackpot());
  2720. }
  2721. }
  2722. if (_has_bits_[9 / 32] & (0xffu << (9 % 32))) {
  2723. // optional int32 point = 10;
  2724. if (has_point()) {
  2725. total_size += 1 +
  2726. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2727. this->point());
  2728. }
  2729. // optional int32 addPoint = 11;
  2730. if (has_addpoint()) {
  2731. total_size += 1 +
  2732. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2733. this->addpoint());
  2734. }
  2735. // optional int64 jackpot = 12;
  2736. if (has_jackpot()) {
  2737. total_size += 1 +
  2738. ::google::protobuf::internal::WireFormatLite::Int64Size(
  2739. this->jackpot());
  2740. }
  2741. }
  2742. // repeated .fish_protocols.msg_item gainItems = 8;
  2743. total_size += 1 * this->gainitems_size();
  2744. for (int i = 0; i < this->gainitems_size(); i++) {
  2745. total_size +=
  2746. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  2747. this->gainitems(i));
  2748. }
  2749. // repeated int32 graphArr = 9;
  2750. {
  2751. int data_size = 0;
  2752. for (int i = 0; i < this->grapharr_size(); i++) {
  2753. data_size += ::google::protobuf::internal::WireFormatLite::
  2754. Int32Size(this->grapharr(i));
  2755. }
  2756. total_size += 1 * this->grapharr_size() + data_size;
  2757. }
  2758. if (!unknown_fields().empty()) {
  2759. total_size +=
  2760. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2761. unknown_fields());
  2762. }
  2763. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2764. _cached_size_ = total_size;
  2765. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2766. return total_size;
  2767. }
  2768. void packetl2c_bc_table_kill_monkey::MergeFrom(const ::google::protobuf::Message& from) {
  2769. GOOGLE_CHECK_NE(&from, this);
  2770. const packetl2c_bc_table_kill_monkey* source =
  2771. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_bc_table_kill_monkey*>(
  2772. &from);
  2773. if (source == NULL) {
  2774. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2775. } else {
  2776. MergeFrom(*source);
  2777. }
  2778. }
  2779. void packetl2c_bc_table_kill_monkey::MergeFrom(const packetl2c_bc_table_kill_monkey& from) {
  2780. GOOGLE_CHECK_NE(&from, this);
  2781. gainitems_.MergeFrom(from.gainitems_);
  2782. grapharr_.MergeFrom(from.grapharr_);
  2783. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2784. if (from.has_packet_id()) {
  2785. set_packet_id(from.packet_id());
  2786. }
  2787. if (from.has_playerid()) {
  2788. set_playerid(from.playerid());
  2789. }
  2790. if (from.has_fishrate()) {
  2791. set_fishrate(from.fishrate());
  2792. }
  2793. if (from.has_bulletrate()) {
  2794. set_bulletrate(from.bulletrate());
  2795. }
  2796. if (from.has_dropgold()) {
  2797. set_dropgold(from.dropgold());
  2798. }
  2799. if (from.has_rewardindex()) {
  2800. set_rewardindex(from.rewardindex());
  2801. }
  2802. if (from.has_gainjackpot()) {
  2803. set_gainjackpot(from.gainjackpot());
  2804. }
  2805. }
  2806. if (from._has_bits_[9 / 32] & (0xffu << (9 % 32))) {
  2807. if (from.has_point()) {
  2808. set_point(from.point());
  2809. }
  2810. if (from.has_addpoint()) {
  2811. set_addpoint(from.addpoint());
  2812. }
  2813. if (from.has_jackpot()) {
  2814. set_jackpot(from.jackpot());
  2815. }
  2816. }
  2817. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  2818. }
  2819. void packetl2c_bc_table_kill_monkey::CopyFrom(const ::google::protobuf::Message& from) {
  2820. if (&from == this) return;
  2821. Clear();
  2822. MergeFrom(from);
  2823. }
  2824. void packetl2c_bc_table_kill_monkey::CopyFrom(const packetl2c_bc_table_kill_monkey& from) {
  2825. if (&from == this) return;
  2826. Clear();
  2827. MergeFrom(from);
  2828. }
  2829. bool packetl2c_bc_table_kill_monkey::IsInitialized() const {
  2830. return true;
  2831. }
  2832. void packetl2c_bc_table_kill_monkey::Swap(packetl2c_bc_table_kill_monkey* other) {
  2833. if (other != this) {
  2834. std::swap(packet_id_, other->packet_id_);
  2835. std::swap(playerid_, other->playerid_);
  2836. std::swap(fishrate_, other->fishrate_);
  2837. std::swap(bulletrate_, other->bulletrate_);
  2838. std::swap(dropgold_, other->dropgold_);
  2839. std::swap(rewardindex_, other->rewardindex_);
  2840. std::swap(gainjackpot_, other->gainjackpot_);
  2841. gainitems_.Swap(&other->gainitems_);
  2842. grapharr_.Swap(&other->grapharr_);
  2843. std::swap(point_, other->point_);
  2844. std::swap(addpoint_, other->addpoint_);
  2845. std::swap(jackpot_, other->jackpot_);
  2846. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2847. _unknown_fields_.Swap(&other->_unknown_fields_);
  2848. std::swap(_cached_size_, other->_cached_size_);
  2849. }
  2850. }
  2851. ::google::protobuf::Metadata packetl2c_bc_table_kill_monkey::GetMetadata() const {
  2852. protobuf_AssignDescriptorsOnce();
  2853. ::google::protobuf::Metadata metadata;
  2854. metadata.descriptor = packetl2c_bc_table_kill_monkey_descriptor_;
  2855. metadata.reflection = packetl2c_bc_table_kill_monkey_reflection_;
  2856. return metadata;
  2857. }
  2858. // ===================================================================
  2859. #ifndef _MSC_VER
  2860. const int packetl2c_bc_table_kill_monkey_fish::kPacketIdFieldNumber;
  2861. const int packetl2c_bc_table_kill_monkey_fish::kPlayerIdFieldNumber;
  2862. const int packetl2c_bc_table_kill_monkey_fish::kFishIdFieldNumber;
  2863. const int packetl2c_bc_table_kill_monkey_fish::kSlotArrFieldNumber;
  2864. const int packetl2c_bc_table_kill_monkey_fish::kDropGoldFieldNumber;
  2865. const int packetl2c_bc_table_kill_monkey_fish::kGainjackpotFieldNumber;
  2866. const int packetl2c_bc_table_kill_monkey_fish::kPointFieldNumber;
  2867. const int packetl2c_bc_table_kill_monkey_fish::kAddPointFieldNumber;
  2868. const int packetl2c_bc_table_kill_monkey_fish::kJackpotFieldNumber;
  2869. #endif // !_MSC_VER
  2870. packetl2c_bc_table_kill_monkey_fish::packetl2c_bc_table_kill_monkey_fish()
  2871. : ::google::protobuf::Message() {
  2872. SharedCtor();
  2873. }
  2874. void packetl2c_bc_table_kill_monkey_fish::InitAsDefaultInstance() {
  2875. }
  2876. packetl2c_bc_table_kill_monkey_fish::packetl2c_bc_table_kill_monkey_fish(const packetl2c_bc_table_kill_monkey_fish& from)
  2877. : ::google::protobuf::Message() {
  2878. SharedCtor();
  2879. MergeFrom(from);
  2880. }
  2881. void packetl2c_bc_table_kill_monkey_fish::SharedCtor() {
  2882. _cached_size_ = 0;
  2883. packet_id_ = 16225;
  2884. playerid_ = 0;
  2885. fishid_ = 0;
  2886. dropgold_ = GOOGLE_LONGLONG(0);
  2887. gainjackpot_ = GOOGLE_LONGLONG(0);
  2888. point_ = 0;
  2889. addpoint_ = 0;
  2890. jackpot_ = GOOGLE_LONGLONG(0);
  2891. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2892. }
  2893. packetl2c_bc_table_kill_monkey_fish::~packetl2c_bc_table_kill_monkey_fish() {
  2894. SharedDtor();
  2895. }
  2896. void packetl2c_bc_table_kill_monkey_fish::SharedDtor() {
  2897. if (this != default_instance_) {
  2898. }
  2899. }
  2900. void packetl2c_bc_table_kill_monkey_fish::SetCachedSize(int size) const {
  2901. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2902. _cached_size_ = size;
  2903. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2904. }
  2905. const ::google::protobuf::Descriptor* packetl2c_bc_table_kill_monkey_fish::descriptor() {
  2906. protobuf_AssignDescriptorsOnce();
  2907. return packetl2c_bc_table_kill_monkey_fish_descriptor_;
  2908. }
  2909. const packetl2c_bc_table_kill_monkey_fish& packetl2c_bc_table_kill_monkey_fish::default_instance() {
  2910. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fmonkey_5fpalace_2eproto();
  2911. return *default_instance_;
  2912. }
  2913. packetl2c_bc_table_kill_monkey_fish* packetl2c_bc_table_kill_monkey_fish::default_instance_ = NULL;
  2914. packetl2c_bc_table_kill_monkey_fish* packetl2c_bc_table_kill_monkey_fish::New() const {
  2915. return new packetl2c_bc_table_kill_monkey_fish;
  2916. }
  2917. void packetl2c_bc_table_kill_monkey_fish::Clear() {
  2918. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2919. packet_id_ = 16225;
  2920. playerid_ = 0;
  2921. fishid_ = 0;
  2922. dropgold_ = GOOGLE_LONGLONG(0);
  2923. gainjackpot_ = GOOGLE_LONGLONG(0);
  2924. point_ = 0;
  2925. addpoint_ = 0;
  2926. }
  2927. if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
  2928. jackpot_ = GOOGLE_LONGLONG(0);
  2929. }
  2930. slotarr_.Clear();
  2931. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2932. mutable_unknown_fields()->Clear();
  2933. }
  2934. bool packetl2c_bc_table_kill_monkey_fish::MergePartialFromCodedStream(
  2935. ::google::protobuf::io::CodedInputStream* input) {
  2936. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  2937. ::google::protobuf::uint32 tag;
  2938. while ((tag = input->ReadTag()) != 0) {
  2939. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2940. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_bc_table_kill_monkey_fish];
  2941. case 1: {
  2942. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2943. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2944. int value;
  2945. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2946. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2947. input, &value)));
  2948. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  2949. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  2950. } else {
  2951. mutable_unknown_fields()->AddVarint(1, value);
  2952. }
  2953. } else {
  2954. goto handle_uninterpreted;
  2955. }
  2956. if (input->ExpectTag(16)) goto parse_playerId;
  2957. break;
  2958. }
  2959. // optional int32 playerId = 2;
  2960. case 2: {
  2961. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2962. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2963. parse_playerId:
  2964. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2965. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2966. input, &playerid_)));
  2967. set_has_playerid();
  2968. } else {
  2969. goto handle_uninterpreted;
  2970. }
  2971. if (input->ExpectTag(24)) goto parse_fishId;
  2972. break;
  2973. }
  2974. // optional int32 fishId = 3;
  2975. case 3: {
  2976. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2977. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2978. parse_fishId:
  2979. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2980. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2981. input, &fishid_)));
  2982. set_has_fishid();
  2983. } else {
  2984. goto handle_uninterpreted;
  2985. }
  2986. if (input->ExpectTag(32)) goto parse_slotArr;
  2987. break;
  2988. }
  2989. // repeated int32 slotArr = 4;
  2990. case 4: {
  2991. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2992. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2993. parse_slotArr:
  2994. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
  2995. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2996. 1, 32, input, this->mutable_slotarr())));
  2997. } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
  2998. == ::google::protobuf::internal::WireFormatLite::
  2999. WIRETYPE_LENGTH_DELIMITED) {
  3000. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
  3001. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3002. input, this->mutable_slotarr())));
  3003. } else {
  3004. goto handle_uninterpreted;
  3005. }
  3006. if (input->ExpectTag(32)) goto parse_slotArr;
  3007. if (input->ExpectTag(40)) goto parse_dropGold;
  3008. break;
  3009. }
  3010. // optional int64 dropGold = 5;
  3011. case 5: {
  3012. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3013. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3014. parse_dropGold:
  3015. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3016. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  3017. input, &dropgold_)));
  3018. set_has_dropgold();
  3019. } else {
  3020. goto handle_uninterpreted;
  3021. }
  3022. if (input->ExpectTag(48)) goto parse_gainjackpot;
  3023. break;
  3024. }
  3025. // optional int64 gainjackpot = 6;
  3026. case 6: {
  3027. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3028. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3029. parse_gainjackpot:
  3030. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3031. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  3032. input, &gainjackpot_)));
  3033. set_has_gainjackpot();
  3034. } else {
  3035. goto handle_uninterpreted;
  3036. }
  3037. if (input->ExpectTag(56)) goto parse_point;
  3038. break;
  3039. }
  3040. // optional int32 point = 7;
  3041. case 7: {
  3042. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3043. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3044. parse_point:
  3045. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3046. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3047. input, &point_)));
  3048. set_has_point();
  3049. } else {
  3050. goto handle_uninterpreted;
  3051. }
  3052. if (input->ExpectTag(64)) goto parse_addPoint;
  3053. break;
  3054. }
  3055. // optional int32 addPoint = 8;
  3056. case 8: {
  3057. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3058. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3059. parse_addPoint:
  3060. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3061. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3062. input, &addpoint_)));
  3063. set_has_addpoint();
  3064. } else {
  3065. goto handle_uninterpreted;
  3066. }
  3067. if (input->ExpectTag(72)) goto parse_jackpot;
  3068. break;
  3069. }
  3070. // optional int64 jackpot = 9;
  3071. case 9: {
  3072. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3073. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3074. parse_jackpot:
  3075. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3076. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  3077. input, &jackpot_)));
  3078. set_has_jackpot();
  3079. } else {
  3080. goto handle_uninterpreted;
  3081. }
  3082. if (input->ExpectAtEnd()) return true;
  3083. break;
  3084. }
  3085. default: {
  3086. handle_uninterpreted:
  3087. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3088. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  3089. return true;
  3090. }
  3091. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3092. input, tag, mutable_unknown_fields()));
  3093. break;
  3094. }
  3095. }
  3096. }
  3097. return true;
  3098. #undef DO_
  3099. }
  3100. void packetl2c_bc_table_kill_monkey_fish::SerializeWithCachedSizes(
  3101. ::google::protobuf::io::CodedOutputStream* output) const {
  3102. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_bc_table_kill_monkey_fish];
  3103. if (has_packet_id()) {
  3104. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3105. 1, this->packet_id(), output);
  3106. }
  3107. // optional int32 playerId = 2;
  3108. if (has_playerid()) {
  3109. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->playerid(), output);
  3110. }
  3111. // optional int32 fishId = 3;
  3112. if (has_fishid()) {
  3113. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->fishid(), output);
  3114. }
  3115. // repeated int32 slotArr = 4;
  3116. for (int i = 0; i < this->slotarr_size(); i++) {
  3117. ::google::protobuf::internal::WireFormatLite::WriteInt32(
  3118. 4, this->slotarr(i), output);
  3119. }
  3120. // optional int64 dropGold = 5;
  3121. if (has_dropgold()) {
  3122. ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->dropgold(), output);
  3123. }
  3124. // optional int64 gainjackpot = 6;
  3125. if (has_gainjackpot()) {
  3126. ::google::protobuf::internal::WireFormatLite::WriteInt64(6, this->gainjackpot(), output);
  3127. }
  3128. // optional int32 point = 7;
  3129. if (has_point()) {
  3130. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->point(), output);
  3131. }
  3132. // optional int32 addPoint = 8;
  3133. if (has_addpoint()) {
  3134. ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->addpoint(), output);
  3135. }
  3136. // optional int64 jackpot = 9;
  3137. if (has_jackpot()) {
  3138. ::google::protobuf::internal::WireFormatLite::WriteInt64(9, this->jackpot(), output);
  3139. }
  3140. if (!unknown_fields().empty()) {
  3141. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3142. unknown_fields(), output);
  3143. }
  3144. }
  3145. ::google::protobuf::uint8* packetl2c_bc_table_kill_monkey_fish::SerializeWithCachedSizesToArray(
  3146. ::google::protobuf::uint8* target) const {
  3147. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_bc_table_kill_monkey_fish];
  3148. if (has_packet_id()) {
  3149. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3150. 1, this->packet_id(), target);
  3151. }
  3152. // optional int32 playerId = 2;
  3153. if (has_playerid()) {
  3154. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->playerid(), target);
  3155. }
  3156. // optional int32 fishId = 3;
  3157. if (has_fishid()) {
  3158. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->fishid(), target);
  3159. }
  3160. // repeated int32 slotArr = 4;
  3161. for (int i = 0; i < this->slotarr_size(); i++) {
  3162. target = ::google::protobuf::internal::WireFormatLite::
  3163. WriteInt32ToArray(4, this->slotarr(i), target);
  3164. }
  3165. // optional int64 dropGold = 5;
  3166. if (has_dropgold()) {
  3167. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->dropgold(), target);
  3168. }
  3169. // optional int64 gainjackpot = 6;
  3170. if (has_gainjackpot()) {
  3171. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(6, this->gainjackpot(), target);
  3172. }
  3173. // optional int32 point = 7;
  3174. if (has_point()) {
  3175. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->point(), target);
  3176. }
  3177. // optional int32 addPoint = 8;
  3178. if (has_addpoint()) {
  3179. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->addpoint(), target);
  3180. }
  3181. // optional int64 jackpot = 9;
  3182. if (has_jackpot()) {
  3183. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(9, this->jackpot(), target);
  3184. }
  3185. if (!unknown_fields().empty()) {
  3186. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3187. unknown_fields(), target);
  3188. }
  3189. return target;
  3190. }
  3191. int packetl2c_bc_table_kill_monkey_fish::ByteSize() const {
  3192. int total_size = 0;
  3193. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3194. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_bc_table_kill_monkey_fish];
  3195. if (has_packet_id()) {
  3196. total_size += 1 +
  3197. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  3198. }
  3199. // optional int32 playerId = 2;
  3200. if (has_playerid()) {
  3201. total_size += 1 +
  3202. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3203. this->playerid());
  3204. }
  3205. // optional int32 fishId = 3;
  3206. if (has_fishid()) {
  3207. total_size += 1 +
  3208. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3209. this->fishid());
  3210. }
  3211. // optional int64 dropGold = 5;
  3212. if (has_dropgold()) {
  3213. total_size += 1 +
  3214. ::google::protobuf::internal::WireFormatLite::Int64Size(
  3215. this->dropgold());
  3216. }
  3217. // optional int64 gainjackpot = 6;
  3218. if (has_gainjackpot()) {
  3219. total_size += 1 +
  3220. ::google::protobuf::internal::WireFormatLite::Int64Size(
  3221. this->gainjackpot());
  3222. }
  3223. // optional int32 point = 7;
  3224. if (has_point()) {
  3225. total_size += 1 +
  3226. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3227. this->point());
  3228. }
  3229. // optional int32 addPoint = 8;
  3230. if (has_addpoint()) {
  3231. total_size += 1 +
  3232. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3233. this->addpoint());
  3234. }
  3235. }
  3236. if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
  3237. // optional int64 jackpot = 9;
  3238. if (has_jackpot()) {
  3239. total_size += 1 +
  3240. ::google::protobuf::internal::WireFormatLite::Int64Size(
  3241. this->jackpot());
  3242. }
  3243. }
  3244. // repeated int32 slotArr = 4;
  3245. {
  3246. int data_size = 0;
  3247. for (int i = 0; i < this->slotarr_size(); i++) {
  3248. data_size += ::google::protobuf::internal::WireFormatLite::
  3249. Int32Size(this->slotarr(i));
  3250. }
  3251. total_size += 1 * this->slotarr_size() + data_size;
  3252. }
  3253. if (!unknown_fields().empty()) {
  3254. total_size +=
  3255. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3256. unknown_fields());
  3257. }
  3258. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3259. _cached_size_ = total_size;
  3260. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3261. return total_size;
  3262. }
  3263. void packetl2c_bc_table_kill_monkey_fish::MergeFrom(const ::google::protobuf::Message& from) {
  3264. GOOGLE_CHECK_NE(&from, this);
  3265. const packetl2c_bc_table_kill_monkey_fish* source =
  3266. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_bc_table_kill_monkey_fish*>(
  3267. &from);
  3268. if (source == NULL) {
  3269. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3270. } else {
  3271. MergeFrom(*source);
  3272. }
  3273. }
  3274. void packetl2c_bc_table_kill_monkey_fish::MergeFrom(const packetl2c_bc_table_kill_monkey_fish& from) {
  3275. GOOGLE_CHECK_NE(&from, this);
  3276. slotarr_.MergeFrom(from.slotarr_);
  3277. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3278. if (from.has_packet_id()) {
  3279. set_packet_id(from.packet_id());
  3280. }
  3281. if (from.has_playerid()) {
  3282. set_playerid(from.playerid());
  3283. }
  3284. if (from.has_fishid()) {
  3285. set_fishid(from.fishid());
  3286. }
  3287. if (from.has_dropgold()) {
  3288. set_dropgold(from.dropgold());
  3289. }
  3290. if (from.has_gainjackpot()) {
  3291. set_gainjackpot(from.gainjackpot());
  3292. }
  3293. if (from.has_point()) {
  3294. set_point(from.point());
  3295. }
  3296. if (from.has_addpoint()) {
  3297. set_addpoint(from.addpoint());
  3298. }
  3299. }
  3300. if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
  3301. if (from.has_jackpot()) {
  3302. set_jackpot(from.jackpot());
  3303. }
  3304. }
  3305. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  3306. }
  3307. void packetl2c_bc_table_kill_monkey_fish::CopyFrom(const ::google::protobuf::Message& from) {
  3308. if (&from == this) return;
  3309. Clear();
  3310. MergeFrom(from);
  3311. }
  3312. void packetl2c_bc_table_kill_monkey_fish::CopyFrom(const packetl2c_bc_table_kill_monkey_fish& from) {
  3313. if (&from == this) return;
  3314. Clear();
  3315. MergeFrom(from);
  3316. }
  3317. bool packetl2c_bc_table_kill_monkey_fish::IsInitialized() const {
  3318. return true;
  3319. }
  3320. void packetl2c_bc_table_kill_monkey_fish::Swap(packetl2c_bc_table_kill_monkey_fish* other) {
  3321. if (other != this) {
  3322. std::swap(packet_id_, other->packet_id_);
  3323. std::swap(playerid_, other->playerid_);
  3324. std::swap(fishid_, other->fishid_);
  3325. slotarr_.Swap(&other->slotarr_);
  3326. std::swap(dropgold_, other->dropgold_);
  3327. std::swap(gainjackpot_, other->gainjackpot_);
  3328. std::swap(point_, other->point_);
  3329. std::swap(addpoint_, other->addpoint_);
  3330. std::swap(jackpot_, other->jackpot_);
  3331. std::swap(_has_bits_[0], other->_has_bits_[0]);
  3332. _unknown_fields_.Swap(&other->_unknown_fields_);
  3333. std::swap(_cached_size_, other->_cached_size_);
  3334. }
  3335. }
  3336. ::google::protobuf::Metadata packetl2c_bc_table_kill_monkey_fish::GetMetadata() const {
  3337. protobuf_AssignDescriptorsOnce();
  3338. ::google::protobuf::Metadata metadata;
  3339. metadata.descriptor = packetl2c_bc_table_kill_monkey_fish_descriptor_;
  3340. metadata.reflection = packetl2c_bc_table_kill_monkey_fish_reflection_;
  3341. return metadata;
  3342. }
  3343. // ===================================================================
  3344. #ifndef _MSC_VER
  3345. const int packetc2l_get_kill_monkey_history::kPacketIdFieldNumber;
  3346. #endif // !_MSC_VER
  3347. packetc2l_get_kill_monkey_history::packetc2l_get_kill_monkey_history()
  3348. : ::google::protobuf::Message() {
  3349. SharedCtor();
  3350. }
  3351. void packetc2l_get_kill_monkey_history::InitAsDefaultInstance() {
  3352. }
  3353. packetc2l_get_kill_monkey_history::packetc2l_get_kill_monkey_history(const packetc2l_get_kill_monkey_history& from)
  3354. : ::google::protobuf::Message() {
  3355. SharedCtor();
  3356. MergeFrom(from);
  3357. }
  3358. void packetc2l_get_kill_monkey_history::SharedCtor() {
  3359. _cached_size_ = 0;
  3360. packet_id_ = 10219;
  3361. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3362. }
  3363. packetc2l_get_kill_monkey_history::~packetc2l_get_kill_monkey_history() {
  3364. SharedDtor();
  3365. }
  3366. void packetc2l_get_kill_monkey_history::SharedDtor() {
  3367. if (this != default_instance_) {
  3368. }
  3369. }
  3370. void packetc2l_get_kill_monkey_history::SetCachedSize(int size) const {
  3371. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3372. _cached_size_ = size;
  3373. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3374. }
  3375. const ::google::protobuf::Descriptor* packetc2l_get_kill_monkey_history::descriptor() {
  3376. protobuf_AssignDescriptorsOnce();
  3377. return packetc2l_get_kill_monkey_history_descriptor_;
  3378. }
  3379. const packetc2l_get_kill_monkey_history& packetc2l_get_kill_monkey_history::default_instance() {
  3380. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fmonkey_5fpalace_2eproto();
  3381. return *default_instance_;
  3382. }
  3383. packetc2l_get_kill_monkey_history* packetc2l_get_kill_monkey_history::default_instance_ = NULL;
  3384. packetc2l_get_kill_monkey_history* packetc2l_get_kill_monkey_history::New() const {
  3385. return new packetc2l_get_kill_monkey_history;
  3386. }
  3387. void packetc2l_get_kill_monkey_history::Clear() {
  3388. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3389. packet_id_ = 10219;
  3390. }
  3391. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3392. mutable_unknown_fields()->Clear();
  3393. }
  3394. bool packetc2l_get_kill_monkey_history::MergePartialFromCodedStream(
  3395. ::google::protobuf::io::CodedInputStream* input) {
  3396. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  3397. ::google::protobuf::uint32 tag;
  3398. while ((tag = input->ReadTag()) != 0) {
  3399. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3400. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_kill_monkey_history];
  3401. case 1: {
  3402. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3403. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3404. int value;
  3405. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3406. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3407. input, &value)));
  3408. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  3409. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  3410. } else {
  3411. mutable_unknown_fields()->AddVarint(1, value);
  3412. }
  3413. } else {
  3414. goto handle_uninterpreted;
  3415. }
  3416. if (input->ExpectAtEnd()) return true;
  3417. break;
  3418. }
  3419. default: {
  3420. handle_uninterpreted:
  3421. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3422. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  3423. return true;
  3424. }
  3425. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3426. input, tag, mutable_unknown_fields()));
  3427. break;
  3428. }
  3429. }
  3430. }
  3431. return true;
  3432. #undef DO_
  3433. }
  3434. void packetc2l_get_kill_monkey_history::SerializeWithCachedSizes(
  3435. ::google::protobuf::io::CodedOutputStream* output) const {
  3436. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_kill_monkey_history];
  3437. if (has_packet_id()) {
  3438. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3439. 1, this->packet_id(), output);
  3440. }
  3441. if (!unknown_fields().empty()) {
  3442. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3443. unknown_fields(), output);
  3444. }
  3445. }
  3446. ::google::protobuf::uint8* packetc2l_get_kill_monkey_history::SerializeWithCachedSizesToArray(
  3447. ::google::protobuf::uint8* target) const {
  3448. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_kill_monkey_history];
  3449. if (has_packet_id()) {
  3450. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3451. 1, this->packet_id(), target);
  3452. }
  3453. if (!unknown_fields().empty()) {
  3454. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3455. unknown_fields(), target);
  3456. }
  3457. return target;
  3458. }
  3459. int packetc2l_get_kill_monkey_history::ByteSize() const {
  3460. int total_size = 0;
  3461. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3462. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_kill_monkey_history];
  3463. if (has_packet_id()) {
  3464. total_size += 1 +
  3465. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  3466. }
  3467. }
  3468. if (!unknown_fields().empty()) {
  3469. total_size +=
  3470. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3471. unknown_fields());
  3472. }
  3473. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3474. _cached_size_ = total_size;
  3475. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3476. return total_size;
  3477. }
  3478. void packetc2l_get_kill_monkey_history::MergeFrom(const ::google::protobuf::Message& from) {
  3479. GOOGLE_CHECK_NE(&from, this);
  3480. const packetc2l_get_kill_monkey_history* source =
  3481. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_get_kill_monkey_history*>(
  3482. &from);
  3483. if (source == NULL) {
  3484. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3485. } else {
  3486. MergeFrom(*source);
  3487. }
  3488. }
  3489. void packetc2l_get_kill_monkey_history::MergeFrom(const packetc2l_get_kill_monkey_history& from) {
  3490. GOOGLE_CHECK_NE(&from, this);
  3491. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3492. if (from.has_packet_id()) {
  3493. set_packet_id(from.packet_id());
  3494. }
  3495. }
  3496. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  3497. }
  3498. void packetc2l_get_kill_monkey_history::CopyFrom(const ::google::protobuf::Message& from) {
  3499. if (&from == this) return;
  3500. Clear();
  3501. MergeFrom(from);
  3502. }
  3503. void packetc2l_get_kill_monkey_history::CopyFrom(const packetc2l_get_kill_monkey_history& from) {
  3504. if (&from == this) return;
  3505. Clear();
  3506. MergeFrom(from);
  3507. }
  3508. bool packetc2l_get_kill_monkey_history::IsInitialized() const {
  3509. return true;
  3510. }
  3511. void packetc2l_get_kill_monkey_history::Swap(packetc2l_get_kill_monkey_history* other) {
  3512. if (other != this) {
  3513. std::swap(packet_id_, other->packet_id_);
  3514. std::swap(_has_bits_[0], other->_has_bits_[0]);
  3515. _unknown_fields_.Swap(&other->_unknown_fields_);
  3516. std::swap(_cached_size_, other->_cached_size_);
  3517. }
  3518. }
  3519. ::google::protobuf::Metadata packetc2l_get_kill_monkey_history::GetMetadata() const {
  3520. protobuf_AssignDescriptorsOnce();
  3521. ::google::protobuf::Metadata metadata;
  3522. metadata.descriptor = packetc2l_get_kill_monkey_history_descriptor_;
  3523. metadata.reflection = packetc2l_get_kill_monkey_history_reflection_;
  3524. return metadata;
  3525. }
  3526. // ===================================================================
  3527. #ifndef _MSC_VER
  3528. const int packetl2c_get_kill_monkey_history_result::kPacketIdFieldNumber;
  3529. const int packetl2c_get_kill_monkey_history_result::kJackpotFieldNumber;
  3530. const int packetl2c_get_kill_monkey_history_result::kHistoryListFieldNumber;
  3531. #endif // !_MSC_VER
  3532. packetl2c_get_kill_monkey_history_result::packetl2c_get_kill_monkey_history_result()
  3533. : ::google::protobuf::Message() {
  3534. SharedCtor();
  3535. }
  3536. void packetl2c_get_kill_monkey_history_result::InitAsDefaultInstance() {
  3537. }
  3538. packetl2c_get_kill_monkey_history_result::packetl2c_get_kill_monkey_history_result(const packetl2c_get_kill_monkey_history_result& from)
  3539. : ::google::protobuf::Message() {
  3540. SharedCtor();
  3541. MergeFrom(from);
  3542. }
  3543. void packetl2c_get_kill_monkey_history_result::SharedCtor() {
  3544. _cached_size_ = 0;
  3545. packet_id_ = 16224;
  3546. jackpot_ = GOOGLE_LONGLONG(0);
  3547. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3548. }
  3549. packetl2c_get_kill_monkey_history_result::~packetl2c_get_kill_monkey_history_result() {
  3550. SharedDtor();
  3551. }
  3552. void packetl2c_get_kill_monkey_history_result::SharedDtor() {
  3553. if (this != default_instance_) {
  3554. }
  3555. }
  3556. void packetl2c_get_kill_monkey_history_result::SetCachedSize(int size) const {
  3557. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3558. _cached_size_ = size;
  3559. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3560. }
  3561. const ::google::protobuf::Descriptor* packetl2c_get_kill_monkey_history_result::descriptor() {
  3562. protobuf_AssignDescriptorsOnce();
  3563. return packetl2c_get_kill_monkey_history_result_descriptor_;
  3564. }
  3565. const packetl2c_get_kill_monkey_history_result& packetl2c_get_kill_monkey_history_result::default_instance() {
  3566. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fmonkey_5fpalace_2eproto();
  3567. return *default_instance_;
  3568. }
  3569. packetl2c_get_kill_monkey_history_result* packetl2c_get_kill_monkey_history_result::default_instance_ = NULL;
  3570. packetl2c_get_kill_monkey_history_result* packetl2c_get_kill_monkey_history_result::New() const {
  3571. return new packetl2c_get_kill_monkey_history_result;
  3572. }
  3573. void packetl2c_get_kill_monkey_history_result::Clear() {
  3574. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3575. packet_id_ = 16224;
  3576. jackpot_ = GOOGLE_LONGLONG(0);
  3577. }
  3578. historylist_.Clear();
  3579. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3580. mutable_unknown_fields()->Clear();
  3581. }
  3582. bool packetl2c_get_kill_monkey_history_result::MergePartialFromCodedStream(
  3583. ::google::protobuf::io::CodedInputStream* input) {
  3584. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  3585. ::google::protobuf::uint32 tag;
  3586. while ((tag = input->ReadTag()) != 0) {
  3587. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3588. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_kill_monkey_history_result];
  3589. case 1: {
  3590. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3591. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3592. int value;
  3593. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3594. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3595. input, &value)));
  3596. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  3597. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  3598. } else {
  3599. mutable_unknown_fields()->AddVarint(1, value);
  3600. }
  3601. } else {
  3602. goto handle_uninterpreted;
  3603. }
  3604. if (input->ExpectTag(16)) goto parse_jackpot;
  3605. break;
  3606. }
  3607. // optional int64 jackpot = 2;
  3608. case 2: {
  3609. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3610. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3611. parse_jackpot:
  3612. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3613. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  3614. input, &jackpot_)));
  3615. set_has_jackpot();
  3616. } else {
  3617. goto handle_uninterpreted;
  3618. }
  3619. if (input->ExpectTag(26)) goto parse_historyList;
  3620. break;
  3621. }
  3622. // repeated .fish_protocols.killMonkeyHistory historyList = 3;
  3623. case 3: {
  3624. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3625. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  3626. parse_historyList:
  3627. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  3628. input, add_historylist()));
  3629. } else {
  3630. goto handle_uninterpreted;
  3631. }
  3632. if (input->ExpectTag(26)) goto parse_historyList;
  3633. if (input->ExpectAtEnd()) return true;
  3634. break;
  3635. }
  3636. default: {
  3637. handle_uninterpreted:
  3638. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3639. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  3640. return true;
  3641. }
  3642. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3643. input, tag, mutable_unknown_fields()));
  3644. break;
  3645. }
  3646. }
  3647. }
  3648. return true;
  3649. #undef DO_
  3650. }
  3651. void packetl2c_get_kill_monkey_history_result::SerializeWithCachedSizes(
  3652. ::google::protobuf::io::CodedOutputStream* output) const {
  3653. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_kill_monkey_history_result];
  3654. if (has_packet_id()) {
  3655. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3656. 1, this->packet_id(), output);
  3657. }
  3658. // optional int64 jackpot = 2;
  3659. if (has_jackpot()) {
  3660. ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->jackpot(), output);
  3661. }
  3662. // repeated .fish_protocols.killMonkeyHistory historyList = 3;
  3663. for (int i = 0; i < this->historylist_size(); i++) {
  3664. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3665. 3, this->historylist(i), output);
  3666. }
  3667. if (!unknown_fields().empty()) {
  3668. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3669. unknown_fields(), output);
  3670. }
  3671. }
  3672. ::google::protobuf::uint8* packetl2c_get_kill_monkey_history_result::SerializeWithCachedSizesToArray(
  3673. ::google::protobuf::uint8* target) const {
  3674. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_kill_monkey_history_result];
  3675. if (has_packet_id()) {
  3676. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3677. 1, this->packet_id(), target);
  3678. }
  3679. // optional int64 jackpot = 2;
  3680. if (has_jackpot()) {
  3681. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->jackpot(), target);
  3682. }
  3683. // repeated .fish_protocols.killMonkeyHistory historyList = 3;
  3684. for (int i = 0; i < this->historylist_size(); i++) {
  3685. target = ::google::protobuf::internal::WireFormatLite::
  3686. WriteMessageNoVirtualToArray(
  3687. 3, this->historylist(i), target);
  3688. }
  3689. if (!unknown_fields().empty()) {
  3690. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3691. unknown_fields(), target);
  3692. }
  3693. return target;
  3694. }
  3695. int packetl2c_get_kill_monkey_history_result::ByteSize() const {
  3696. int total_size = 0;
  3697. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3698. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_kill_monkey_history_result];
  3699. if (has_packet_id()) {
  3700. total_size += 1 +
  3701. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  3702. }
  3703. // optional int64 jackpot = 2;
  3704. if (has_jackpot()) {
  3705. total_size += 1 +
  3706. ::google::protobuf::internal::WireFormatLite::Int64Size(
  3707. this->jackpot());
  3708. }
  3709. }
  3710. // repeated .fish_protocols.killMonkeyHistory historyList = 3;
  3711. total_size += 1 * this->historylist_size();
  3712. for (int i = 0; i < this->historylist_size(); i++) {
  3713. total_size +=
  3714. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  3715. this->historylist(i));
  3716. }
  3717. if (!unknown_fields().empty()) {
  3718. total_size +=
  3719. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3720. unknown_fields());
  3721. }
  3722. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3723. _cached_size_ = total_size;
  3724. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3725. return total_size;
  3726. }
  3727. void packetl2c_get_kill_monkey_history_result::MergeFrom(const ::google::protobuf::Message& from) {
  3728. GOOGLE_CHECK_NE(&from, this);
  3729. const packetl2c_get_kill_monkey_history_result* source =
  3730. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_get_kill_monkey_history_result*>(
  3731. &from);
  3732. if (source == NULL) {
  3733. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3734. } else {
  3735. MergeFrom(*source);
  3736. }
  3737. }
  3738. void packetl2c_get_kill_monkey_history_result::MergeFrom(const packetl2c_get_kill_monkey_history_result& from) {
  3739. GOOGLE_CHECK_NE(&from, this);
  3740. historylist_.MergeFrom(from.historylist_);
  3741. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3742. if (from.has_packet_id()) {
  3743. set_packet_id(from.packet_id());
  3744. }
  3745. if (from.has_jackpot()) {
  3746. set_jackpot(from.jackpot());
  3747. }
  3748. }
  3749. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  3750. }
  3751. void packetl2c_get_kill_monkey_history_result::CopyFrom(const ::google::protobuf::Message& from) {
  3752. if (&from == this) return;
  3753. Clear();
  3754. MergeFrom(from);
  3755. }
  3756. void packetl2c_get_kill_monkey_history_result::CopyFrom(const packetl2c_get_kill_monkey_history_result& from) {
  3757. if (&from == this) return;
  3758. Clear();
  3759. MergeFrom(from);
  3760. }
  3761. bool packetl2c_get_kill_monkey_history_result::IsInitialized() const {
  3762. return true;
  3763. }
  3764. void packetl2c_get_kill_monkey_history_result::Swap(packetl2c_get_kill_monkey_history_result* other) {
  3765. if (other != this) {
  3766. std::swap(packet_id_, other->packet_id_);
  3767. std::swap(jackpot_, other->jackpot_);
  3768. historylist_.Swap(&other->historylist_);
  3769. std::swap(_has_bits_[0], other->_has_bits_[0]);
  3770. _unknown_fields_.Swap(&other->_unknown_fields_);
  3771. std::swap(_cached_size_, other->_cached_size_);
  3772. }
  3773. }
  3774. ::google::protobuf::Metadata packetl2c_get_kill_monkey_history_result::GetMetadata() const {
  3775. protobuf_AssignDescriptorsOnce();
  3776. ::google::protobuf::Metadata metadata;
  3777. metadata.descriptor = packetl2c_get_kill_monkey_history_result_descriptor_;
  3778. metadata.reflection = packetl2c_get_kill_monkey_history_result_reflection_;
  3779. return metadata;
  3780. }
  3781. // ===================================================================
  3782. #ifndef _MSC_VER
  3783. const int packetc2l_call_monkey::kPacketIdFieldNumber;
  3784. #endif // !_MSC_VER
  3785. packetc2l_call_monkey::packetc2l_call_monkey()
  3786. : ::google::protobuf::Message() {
  3787. SharedCtor();
  3788. }
  3789. void packetc2l_call_monkey::InitAsDefaultInstance() {
  3790. }
  3791. packetc2l_call_monkey::packetc2l_call_monkey(const packetc2l_call_monkey& from)
  3792. : ::google::protobuf::Message() {
  3793. SharedCtor();
  3794. MergeFrom(from);
  3795. }
  3796. void packetc2l_call_monkey::SharedCtor() {
  3797. _cached_size_ = 0;
  3798. packet_id_ = 10220;
  3799. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3800. }
  3801. packetc2l_call_monkey::~packetc2l_call_monkey() {
  3802. SharedDtor();
  3803. }
  3804. void packetc2l_call_monkey::SharedDtor() {
  3805. if (this != default_instance_) {
  3806. }
  3807. }
  3808. void packetc2l_call_monkey::SetCachedSize(int size) const {
  3809. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3810. _cached_size_ = size;
  3811. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3812. }
  3813. const ::google::protobuf::Descriptor* packetc2l_call_monkey::descriptor() {
  3814. protobuf_AssignDescriptorsOnce();
  3815. return packetc2l_call_monkey_descriptor_;
  3816. }
  3817. const packetc2l_call_monkey& packetc2l_call_monkey::default_instance() {
  3818. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fmonkey_5fpalace_2eproto();
  3819. return *default_instance_;
  3820. }
  3821. packetc2l_call_monkey* packetc2l_call_monkey::default_instance_ = NULL;
  3822. packetc2l_call_monkey* packetc2l_call_monkey::New() const {
  3823. return new packetc2l_call_monkey;
  3824. }
  3825. void packetc2l_call_monkey::Clear() {
  3826. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3827. packet_id_ = 10220;
  3828. }
  3829. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3830. mutable_unknown_fields()->Clear();
  3831. }
  3832. bool packetc2l_call_monkey::MergePartialFromCodedStream(
  3833. ::google::protobuf::io::CodedInputStream* input) {
  3834. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  3835. ::google::protobuf::uint32 tag;
  3836. while ((tag = input->ReadTag()) != 0) {
  3837. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3838. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_call_monkey];
  3839. case 1: {
  3840. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3841. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3842. int value;
  3843. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3844. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3845. input, &value)));
  3846. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  3847. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  3848. } else {
  3849. mutable_unknown_fields()->AddVarint(1, value);
  3850. }
  3851. } else {
  3852. goto handle_uninterpreted;
  3853. }
  3854. if (input->ExpectAtEnd()) return true;
  3855. break;
  3856. }
  3857. default: {
  3858. handle_uninterpreted:
  3859. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3860. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  3861. return true;
  3862. }
  3863. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3864. input, tag, mutable_unknown_fields()));
  3865. break;
  3866. }
  3867. }
  3868. }
  3869. return true;
  3870. #undef DO_
  3871. }
  3872. void packetc2l_call_monkey::SerializeWithCachedSizes(
  3873. ::google::protobuf::io::CodedOutputStream* output) const {
  3874. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_call_monkey];
  3875. if (has_packet_id()) {
  3876. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3877. 1, this->packet_id(), output);
  3878. }
  3879. if (!unknown_fields().empty()) {
  3880. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3881. unknown_fields(), output);
  3882. }
  3883. }
  3884. ::google::protobuf::uint8* packetc2l_call_monkey::SerializeWithCachedSizesToArray(
  3885. ::google::protobuf::uint8* target) const {
  3886. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_call_monkey];
  3887. if (has_packet_id()) {
  3888. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3889. 1, this->packet_id(), target);
  3890. }
  3891. if (!unknown_fields().empty()) {
  3892. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3893. unknown_fields(), target);
  3894. }
  3895. return target;
  3896. }
  3897. int packetc2l_call_monkey::ByteSize() const {
  3898. int total_size = 0;
  3899. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3900. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_call_monkey];
  3901. if (has_packet_id()) {
  3902. total_size += 1 +
  3903. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  3904. }
  3905. }
  3906. if (!unknown_fields().empty()) {
  3907. total_size +=
  3908. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3909. unknown_fields());
  3910. }
  3911. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3912. _cached_size_ = total_size;
  3913. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3914. return total_size;
  3915. }
  3916. void packetc2l_call_monkey::MergeFrom(const ::google::protobuf::Message& from) {
  3917. GOOGLE_CHECK_NE(&from, this);
  3918. const packetc2l_call_monkey* source =
  3919. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_call_monkey*>(
  3920. &from);
  3921. if (source == NULL) {
  3922. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3923. } else {
  3924. MergeFrom(*source);
  3925. }
  3926. }
  3927. void packetc2l_call_monkey::MergeFrom(const packetc2l_call_monkey& from) {
  3928. GOOGLE_CHECK_NE(&from, this);
  3929. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3930. if (from.has_packet_id()) {
  3931. set_packet_id(from.packet_id());
  3932. }
  3933. }
  3934. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  3935. }
  3936. void packetc2l_call_monkey::CopyFrom(const ::google::protobuf::Message& from) {
  3937. if (&from == this) return;
  3938. Clear();
  3939. MergeFrom(from);
  3940. }
  3941. void packetc2l_call_monkey::CopyFrom(const packetc2l_call_monkey& from) {
  3942. if (&from == this) return;
  3943. Clear();
  3944. MergeFrom(from);
  3945. }
  3946. bool packetc2l_call_monkey::IsInitialized() const {
  3947. return true;
  3948. }
  3949. void packetc2l_call_monkey::Swap(packetc2l_call_monkey* other) {
  3950. if (other != this) {
  3951. std::swap(packet_id_, other->packet_id_);
  3952. std::swap(_has_bits_[0], other->_has_bits_[0]);
  3953. _unknown_fields_.Swap(&other->_unknown_fields_);
  3954. std::swap(_cached_size_, other->_cached_size_);
  3955. }
  3956. }
  3957. ::google::protobuf::Metadata packetc2l_call_monkey::GetMetadata() const {
  3958. protobuf_AssignDescriptorsOnce();
  3959. ::google::protobuf::Metadata metadata;
  3960. metadata.descriptor = packetc2l_call_monkey_descriptor_;
  3961. metadata.reflection = packetc2l_call_monkey_reflection_;
  3962. return metadata;
  3963. }
  3964. // ===================================================================
  3965. #ifndef _MSC_VER
  3966. const int packetl2c_call_monkey_result::kPacketIdFieldNumber;
  3967. const int packetl2c_call_monkey_result::kResultFieldNumber;
  3968. #endif // !_MSC_VER
  3969. packetl2c_call_monkey_result::packetl2c_call_monkey_result()
  3970. : ::google::protobuf::Message() {
  3971. SharedCtor();
  3972. }
  3973. void packetl2c_call_monkey_result::InitAsDefaultInstance() {
  3974. }
  3975. packetl2c_call_monkey_result::packetl2c_call_monkey_result(const packetl2c_call_monkey_result& from)
  3976. : ::google::protobuf::Message() {
  3977. SharedCtor();
  3978. MergeFrom(from);
  3979. }
  3980. void packetl2c_call_monkey_result::SharedCtor() {
  3981. _cached_size_ = 0;
  3982. packet_id_ = 16226;
  3983. result_ = 0;
  3984. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3985. }
  3986. packetl2c_call_monkey_result::~packetl2c_call_monkey_result() {
  3987. SharedDtor();
  3988. }
  3989. void packetl2c_call_monkey_result::SharedDtor() {
  3990. if (this != default_instance_) {
  3991. }
  3992. }
  3993. void packetl2c_call_monkey_result::SetCachedSize(int size) const {
  3994. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3995. _cached_size_ = size;
  3996. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3997. }
  3998. const ::google::protobuf::Descriptor* packetl2c_call_monkey_result::descriptor() {
  3999. protobuf_AssignDescriptorsOnce();
  4000. return packetl2c_call_monkey_result_descriptor_;
  4001. }
  4002. const packetl2c_call_monkey_result& packetl2c_call_monkey_result::default_instance() {
  4003. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fmonkey_5fpalace_2eproto();
  4004. return *default_instance_;
  4005. }
  4006. packetl2c_call_monkey_result* packetl2c_call_monkey_result::default_instance_ = NULL;
  4007. packetl2c_call_monkey_result* packetl2c_call_monkey_result::New() const {
  4008. return new packetl2c_call_monkey_result;
  4009. }
  4010. void packetl2c_call_monkey_result::Clear() {
  4011. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4012. packet_id_ = 16226;
  4013. result_ = 0;
  4014. }
  4015. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4016. mutable_unknown_fields()->Clear();
  4017. }
  4018. bool packetl2c_call_monkey_result::MergePartialFromCodedStream(
  4019. ::google::protobuf::io::CodedInputStream* input) {
  4020. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  4021. ::google::protobuf::uint32 tag;
  4022. while ((tag = input->ReadTag()) != 0) {
  4023. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  4024. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_call_monkey_result];
  4025. case 1: {
  4026. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4027. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4028. int value;
  4029. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4030. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  4031. input, &value)));
  4032. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  4033. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  4034. } else {
  4035. mutable_unknown_fields()->AddVarint(1, value);
  4036. }
  4037. } else {
  4038. goto handle_uninterpreted;
  4039. }
  4040. if (input->ExpectTag(16)) goto parse_result;
  4041. break;
  4042. }
  4043. // optional int32 result = 2;
  4044. case 2: {
  4045. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4046. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4047. parse_result:
  4048. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4049. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4050. input, &result_)));
  4051. set_has_result();
  4052. } else {
  4053. goto handle_uninterpreted;
  4054. }
  4055. if (input->ExpectAtEnd()) return true;
  4056. break;
  4057. }
  4058. default: {
  4059. handle_uninterpreted:
  4060. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4061. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  4062. return true;
  4063. }
  4064. DO_(::google::protobuf::internal::WireFormat::SkipField(
  4065. input, tag, mutable_unknown_fields()));
  4066. break;
  4067. }
  4068. }
  4069. }
  4070. return true;
  4071. #undef DO_
  4072. }
  4073. void packetl2c_call_monkey_result::SerializeWithCachedSizes(
  4074. ::google::protobuf::io::CodedOutputStream* output) const {
  4075. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_call_monkey_result];
  4076. if (has_packet_id()) {
  4077. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4078. 1, this->packet_id(), output);
  4079. }
  4080. // optional int32 result = 2;
  4081. if (has_result()) {
  4082. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->result(), output);
  4083. }
  4084. if (!unknown_fields().empty()) {
  4085. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  4086. unknown_fields(), output);
  4087. }
  4088. }
  4089. ::google::protobuf::uint8* packetl2c_call_monkey_result::SerializeWithCachedSizesToArray(
  4090. ::google::protobuf::uint8* target) const {
  4091. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_call_monkey_result];
  4092. if (has_packet_id()) {
  4093. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4094. 1, this->packet_id(), target);
  4095. }
  4096. // optional int32 result = 2;
  4097. if (has_result()) {
  4098. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->result(), target);
  4099. }
  4100. if (!unknown_fields().empty()) {
  4101. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  4102. unknown_fields(), target);
  4103. }
  4104. return target;
  4105. }
  4106. int packetl2c_call_monkey_result::ByteSize() const {
  4107. int total_size = 0;
  4108. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4109. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_call_monkey_result];
  4110. if (has_packet_id()) {
  4111. total_size += 1 +
  4112. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  4113. }
  4114. // optional int32 result = 2;
  4115. if (has_result()) {
  4116. total_size += 1 +
  4117. ::google::protobuf::internal::WireFormatLite::Int32Size(
  4118. this->result());
  4119. }
  4120. }
  4121. if (!unknown_fields().empty()) {
  4122. total_size +=
  4123. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  4124. unknown_fields());
  4125. }
  4126. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4127. _cached_size_ = total_size;
  4128. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4129. return total_size;
  4130. }
  4131. void packetl2c_call_monkey_result::MergeFrom(const ::google::protobuf::Message& from) {
  4132. GOOGLE_CHECK_NE(&from, this);
  4133. const packetl2c_call_monkey_result* source =
  4134. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_call_monkey_result*>(
  4135. &from);
  4136. if (source == NULL) {
  4137. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  4138. } else {
  4139. MergeFrom(*source);
  4140. }
  4141. }
  4142. void packetl2c_call_monkey_result::MergeFrom(const packetl2c_call_monkey_result& from) {
  4143. GOOGLE_CHECK_NE(&from, this);
  4144. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4145. if (from.has_packet_id()) {
  4146. set_packet_id(from.packet_id());
  4147. }
  4148. if (from.has_result()) {
  4149. set_result(from.result());
  4150. }
  4151. }
  4152. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  4153. }
  4154. void packetl2c_call_monkey_result::CopyFrom(const ::google::protobuf::Message& from) {
  4155. if (&from == this) return;
  4156. Clear();
  4157. MergeFrom(from);
  4158. }
  4159. void packetl2c_call_monkey_result::CopyFrom(const packetl2c_call_monkey_result& from) {
  4160. if (&from == this) return;
  4161. Clear();
  4162. MergeFrom(from);
  4163. }
  4164. bool packetl2c_call_monkey_result::IsInitialized() const {
  4165. return true;
  4166. }
  4167. void packetl2c_call_monkey_result::Swap(packetl2c_call_monkey_result* other) {
  4168. if (other != this) {
  4169. std::swap(packet_id_, other->packet_id_);
  4170. std::swap(result_, other->result_);
  4171. std::swap(_has_bits_[0], other->_has_bits_[0]);
  4172. _unknown_fields_.Swap(&other->_unknown_fields_);
  4173. std::swap(_cached_size_, other->_cached_size_);
  4174. }
  4175. }
  4176. ::google::protobuf::Metadata packetl2c_call_monkey_result::GetMetadata() const {
  4177. protobuf_AssignDescriptorsOnce();
  4178. ::google::protobuf::Metadata metadata;
  4179. metadata.descriptor = packetl2c_call_monkey_result_descriptor_;
  4180. metadata.reflection = packetl2c_call_monkey_result_reflection_;
  4181. return metadata;
  4182. }
  4183. // ===================================================================
  4184. #ifndef _MSC_VER
  4185. const int packetc2l_monkey_exchange::kPacketIdFieldNumber;
  4186. const int packetc2l_monkey_exchange::kExchangeAllFieldNumber;
  4187. const int packetc2l_monkey_exchange::kExchangeIndexFieldNumber;
  4188. #endif // !_MSC_VER
  4189. packetc2l_monkey_exchange::packetc2l_monkey_exchange()
  4190. : ::google::protobuf::Message() {
  4191. SharedCtor();
  4192. }
  4193. void packetc2l_monkey_exchange::InitAsDefaultInstance() {
  4194. }
  4195. packetc2l_monkey_exchange::packetc2l_monkey_exchange(const packetc2l_monkey_exchange& from)
  4196. : ::google::protobuf::Message() {
  4197. SharedCtor();
  4198. MergeFrom(from);
  4199. }
  4200. void packetc2l_monkey_exchange::SharedCtor() {
  4201. _cached_size_ = 0;
  4202. packet_id_ = 10222;
  4203. exchangeall_ = false;
  4204. exchangeindex_ = 0;
  4205. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4206. }
  4207. packetc2l_monkey_exchange::~packetc2l_monkey_exchange() {
  4208. SharedDtor();
  4209. }
  4210. void packetc2l_monkey_exchange::SharedDtor() {
  4211. if (this != default_instance_) {
  4212. }
  4213. }
  4214. void packetc2l_monkey_exchange::SetCachedSize(int size) const {
  4215. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4216. _cached_size_ = size;
  4217. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4218. }
  4219. const ::google::protobuf::Descriptor* packetc2l_monkey_exchange::descriptor() {
  4220. protobuf_AssignDescriptorsOnce();
  4221. return packetc2l_monkey_exchange_descriptor_;
  4222. }
  4223. const packetc2l_monkey_exchange& packetc2l_monkey_exchange::default_instance() {
  4224. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fmonkey_5fpalace_2eproto();
  4225. return *default_instance_;
  4226. }
  4227. packetc2l_monkey_exchange* packetc2l_monkey_exchange::default_instance_ = NULL;
  4228. packetc2l_monkey_exchange* packetc2l_monkey_exchange::New() const {
  4229. return new packetc2l_monkey_exchange;
  4230. }
  4231. void packetc2l_monkey_exchange::Clear() {
  4232. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4233. packet_id_ = 10222;
  4234. exchangeall_ = false;
  4235. exchangeindex_ = 0;
  4236. }
  4237. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4238. mutable_unknown_fields()->Clear();
  4239. }
  4240. bool packetc2l_monkey_exchange::MergePartialFromCodedStream(
  4241. ::google::protobuf::io::CodedInputStream* input) {
  4242. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  4243. ::google::protobuf::uint32 tag;
  4244. while ((tag = input->ReadTag()) != 0) {
  4245. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  4246. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_monkey_exchange];
  4247. case 1: {
  4248. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4249. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4250. int value;
  4251. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4252. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  4253. input, &value)));
  4254. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  4255. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  4256. } else {
  4257. mutable_unknown_fields()->AddVarint(1, value);
  4258. }
  4259. } else {
  4260. goto handle_uninterpreted;
  4261. }
  4262. if (input->ExpectTag(16)) goto parse_exchangeAll;
  4263. break;
  4264. }
  4265. // optional bool exchangeAll = 2;
  4266. case 2: {
  4267. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4268. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4269. parse_exchangeAll:
  4270. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4271. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  4272. input, &exchangeall_)));
  4273. set_has_exchangeall();
  4274. } else {
  4275. goto handle_uninterpreted;
  4276. }
  4277. if (input->ExpectTag(24)) goto parse_exchangeIndex;
  4278. break;
  4279. }
  4280. // optional int32 exchangeIndex = 3;
  4281. case 3: {
  4282. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4283. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4284. parse_exchangeIndex:
  4285. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4286. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4287. input, &exchangeindex_)));
  4288. set_has_exchangeindex();
  4289. } else {
  4290. goto handle_uninterpreted;
  4291. }
  4292. if (input->ExpectAtEnd()) return true;
  4293. break;
  4294. }
  4295. default: {
  4296. handle_uninterpreted:
  4297. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4298. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  4299. return true;
  4300. }
  4301. DO_(::google::protobuf::internal::WireFormat::SkipField(
  4302. input, tag, mutable_unknown_fields()));
  4303. break;
  4304. }
  4305. }
  4306. }
  4307. return true;
  4308. #undef DO_
  4309. }
  4310. void packetc2l_monkey_exchange::SerializeWithCachedSizes(
  4311. ::google::protobuf::io::CodedOutputStream* output) const {
  4312. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_monkey_exchange];
  4313. if (has_packet_id()) {
  4314. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4315. 1, this->packet_id(), output);
  4316. }
  4317. // optional bool exchangeAll = 2;
  4318. if (has_exchangeall()) {
  4319. ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->exchangeall(), output);
  4320. }
  4321. // optional int32 exchangeIndex = 3;
  4322. if (has_exchangeindex()) {
  4323. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->exchangeindex(), output);
  4324. }
  4325. if (!unknown_fields().empty()) {
  4326. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  4327. unknown_fields(), output);
  4328. }
  4329. }
  4330. ::google::protobuf::uint8* packetc2l_monkey_exchange::SerializeWithCachedSizesToArray(
  4331. ::google::protobuf::uint8* target) const {
  4332. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_monkey_exchange];
  4333. if (has_packet_id()) {
  4334. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4335. 1, this->packet_id(), target);
  4336. }
  4337. // optional bool exchangeAll = 2;
  4338. if (has_exchangeall()) {
  4339. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->exchangeall(), target);
  4340. }
  4341. // optional int32 exchangeIndex = 3;
  4342. if (has_exchangeindex()) {
  4343. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->exchangeindex(), target);
  4344. }
  4345. if (!unknown_fields().empty()) {
  4346. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  4347. unknown_fields(), target);
  4348. }
  4349. return target;
  4350. }
  4351. int packetc2l_monkey_exchange::ByteSize() const {
  4352. int total_size = 0;
  4353. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4354. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_monkey_exchange];
  4355. if (has_packet_id()) {
  4356. total_size += 1 +
  4357. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  4358. }
  4359. // optional bool exchangeAll = 2;
  4360. if (has_exchangeall()) {
  4361. total_size += 1 + 1;
  4362. }
  4363. // optional int32 exchangeIndex = 3;
  4364. if (has_exchangeindex()) {
  4365. total_size += 1 +
  4366. ::google::protobuf::internal::WireFormatLite::Int32Size(
  4367. this->exchangeindex());
  4368. }
  4369. }
  4370. if (!unknown_fields().empty()) {
  4371. total_size +=
  4372. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  4373. unknown_fields());
  4374. }
  4375. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4376. _cached_size_ = total_size;
  4377. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4378. return total_size;
  4379. }
  4380. void packetc2l_monkey_exchange::MergeFrom(const ::google::protobuf::Message& from) {
  4381. GOOGLE_CHECK_NE(&from, this);
  4382. const packetc2l_monkey_exchange* source =
  4383. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_monkey_exchange*>(
  4384. &from);
  4385. if (source == NULL) {
  4386. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  4387. } else {
  4388. MergeFrom(*source);
  4389. }
  4390. }
  4391. void packetc2l_monkey_exchange::MergeFrom(const packetc2l_monkey_exchange& from) {
  4392. GOOGLE_CHECK_NE(&from, this);
  4393. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4394. if (from.has_packet_id()) {
  4395. set_packet_id(from.packet_id());
  4396. }
  4397. if (from.has_exchangeall()) {
  4398. set_exchangeall(from.exchangeall());
  4399. }
  4400. if (from.has_exchangeindex()) {
  4401. set_exchangeindex(from.exchangeindex());
  4402. }
  4403. }
  4404. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  4405. }
  4406. void packetc2l_monkey_exchange::CopyFrom(const ::google::protobuf::Message& from) {
  4407. if (&from == this) return;
  4408. Clear();
  4409. MergeFrom(from);
  4410. }
  4411. void packetc2l_monkey_exchange::CopyFrom(const packetc2l_monkey_exchange& from) {
  4412. if (&from == this) return;
  4413. Clear();
  4414. MergeFrom(from);
  4415. }
  4416. bool packetc2l_monkey_exchange::IsInitialized() const {
  4417. return true;
  4418. }
  4419. void packetc2l_monkey_exchange::Swap(packetc2l_monkey_exchange* other) {
  4420. if (other != this) {
  4421. std::swap(packet_id_, other->packet_id_);
  4422. std::swap(exchangeall_, other->exchangeall_);
  4423. std::swap(exchangeindex_, other->exchangeindex_);
  4424. std::swap(_has_bits_[0], other->_has_bits_[0]);
  4425. _unknown_fields_.Swap(&other->_unknown_fields_);
  4426. std::swap(_cached_size_, other->_cached_size_);
  4427. }
  4428. }
  4429. ::google::protobuf::Metadata packetc2l_monkey_exchange::GetMetadata() const {
  4430. protobuf_AssignDescriptorsOnce();
  4431. ::google::protobuf::Metadata metadata;
  4432. metadata.descriptor = packetc2l_monkey_exchange_descriptor_;
  4433. metadata.reflection = packetc2l_monkey_exchange_reflection_;
  4434. return metadata;
  4435. }
  4436. // ===================================================================
  4437. #ifndef _MSC_VER
  4438. const int packetl2c_monkey_exchange_result::kPacketIdFieldNumber;
  4439. const int packetl2c_monkey_exchange_result::kResultFieldNumber;
  4440. const int packetl2c_monkey_exchange_result::kExchangeAllFieldNumber;
  4441. const int packetl2c_monkey_exchange_result::kExchangeIndexFieldNumber;
  4442. const int packetl2c_monkey_exchange_result::kItemsFieldNumber;
  4443. #endif // !_MSC_VER
  4444. packetl2c_monkey_exchange_result::packetl2c_monkey_exchange_result()
  4445. : ::google::protobuf::Message() {
  4446. SharedCtor();
  4447. }
  4448. void packetl2c_monkey_exchange_result::InitAsDefaultInstance() {
  4449. }
  4450. packetl2c_monkey_exchange_result::packetl2c_monkey_exchange_result(const packetl2c_monkey_exchange_result& from)
  4451. : ::google::protobuf::Message() {
  4452. SharedCtor();
  4453. MergeFrom(from);
  4454. }
  4455. void packetl2c_monkey_exchange_result::SharedCtor() {
  4456. _cached_size_ = 0;
  4457. packet_id_ = 16228;
  4458. result_ = 0;
  4459. exchangeall_ = false;
  4460. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4461. }
  4462. packetl2c_monkey_exchange_result::~packetl2c_monkey_exchange_result() {
  4463. SharedDtor();
  4464. }
  4465. void packetl2c_monkey_exchange_result::SharedDtor() {
  4466. if (this != default_instance_) {
  4467. }
  4468. }
  4469. void packetl2c_monkey_exchange_result::SetCachedSize(int size) const {
  4470. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4471. _cached_size_ = size;
  4472. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4473. }
  4474. const ::google::protobuf::Descriptor* packetl2c_monkey_exchange_result::descriptor() {
  4475. protobuf_AssignDescriptorsOnce();
  4476. return packetl2c_monkey_exchange_result_descriptor_;
  4477. }
  4478. const packetl2c_monkey_exchange_result& packetl2c_monkey_exchange_result::default_instance() {
  4479. if (default_instance_ == NULL) protobuf_AddDesc_fish_5fmonkey_5fpalace_2eproto();
  4480. return *default_instance_;
  4481. }
  4482. packetl2c_monkey_exchange_result* packetl2c_monkey_exchange_result::default_instance_ = NULL;
  4483. packetl2c_monkey_exchange_result* packetl2c_monkey_exchange_result::New() const {
  4484. return new packetl2c_monkey_exchange_result;
  4485. }
  4486. void packetl2c_monkey_exchange_result::Clear() {
  4487. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4488. packet_id_ = 16228;
  4489. result_ = 0;
  4490. exchangeall_ = false;
  4491. }
  4492. exchangeindex_.Clear();
  4493. items_.Clear();
  4494. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4495. mutable_unknown_fields()->Clear();
  4496. }
  4497. bool packetl2c_monkey_exchange_result::MergePartialFromCodedStream(
  4498. ::google::protobuf::io::CodedInputStream* input) {
  4499. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  4500. ::google::protobuf::uint32 tag;
  4501. while ((tag = input->ReadTag()) != 0) {
  4502. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  4503. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_monkey_exchange_result];
  4504. case 1: {
  4505. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4506. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4507. int value;
  4508. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4509. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  4510. input, &value)));
  4511. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  4512. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  4513. } else {
  4514. mutable_unknown_fields()->AddVarint(1, value);
  4515. }
  4516. } else {
  4517. goto handle_uninterpreted;
  4518. }
  4519. if (input->ExpectTag(16)) goto parse_result;
  4520. break;
  4521. }
  4522. // optional int32 result = 2;
  4523. case 2: {
  4524. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4525. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4526. parse_result:
  4527. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4528. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4529. input, &result_)));
  4530. set_has_result();
  4531. } else {
  4532. goto handle_uninterpreted;
  4533. }
  4534. if (input->ExpectTag(24)) goto parse_exchangeAll;
  4535. break;
  4536. }
  4537. // optional bool exchangeAll = 3;
  4538. case 3: {
  4539. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4540. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4541. parse_exchangeAll:
  4542. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4543. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  4544. input, &exchangeall_)));
  4545. set_has_exchangeall();
  4546. } else {
  4547. goto handle_uninterpreted;
  4548. }
  4549. if (input->ExpectTag(32)) goto parse_exchangeIndex;
  4550. break;
  4551. }
  4552. // repeated int32 exchangeIndex = 4;
  4553. case 4: {
  4554. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4555. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4556. parse_exchangeIndex:
  4557. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
  4558. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4559. 1, 32, input, this->mutable_exchangeindex())));
  4560. } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
  4561. == ::google::protobuf::internal::WireFormatLite::
  4562. WIRETYPE_LENGTH_DELIMITED) {
  4563. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
  4564. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4565. input, this->mutable_exchangeindex())));
  4566. } else {
  4567. goto handle_uninterpreted;
  4568. }
  4569. if (input->ExpectTag(32)) goto parse_exchangeIndex;
  4570. if (input->ExpectTag(42)) goto parse_items;
  4571. break;
  4572. }
  4573. // repeated .fish_protocols.ItemInfo items = 5;
  4574. case 5: {
  4575. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4576. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  4577. parse_items:
  4578. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  4579. input, add_items()));
  4580. } else {
  4581. goto handle_uninterpreted;
  4582. }
  4583. if (input->ExpectTag(42)) goto parse_items;
  4584. if (input->ExpectAtEnd()) return true;
  4585. break;
  4586. }
  4587. default: {
  4588. handle_uninterpreted:
  4589. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4590. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  4591. return true;
  4592. }
  4593. DO_(::google::protobuf::internal::WireFormat::SkipField(
  4594. input, tag, mutable_unknown_fields()));
  4595. break;
  4596. }
  4597. }
  4598. }
  4599. return true;
  4600. #undef DO_
  4601. }
  4602. void packetl2c_monkey_exchange_result::SerializeWithCachedSizes(
  4603. ::google::protobuf::io::CodedOutputStream* output) const {
  4604. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_monkey_exchange_result];
  4605. if (has_packet_id()) {
  4606. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4607. 1, this->packet_id(), output);
  4608. }
  4609. // optional int32 result = 2;
  4610. if (has_result()) {
  4611. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->result(), output);
  4612. }
  4613. // optional bool exchangeAll = 3;
  4614. if (has_exchangeall()) {
  4615. ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->exchangeall(), output);
  4616. }
  4617. // repeated int32 exchangeIndex = 4;
  4618. for (int i = 0; i < this->exchangeindex_size(); i++) {
  4619. ::google::protobuf::internal::WireFormatLite::WriteInt32(
  4620. 4, this->exchangeindex(i), output);
  4621. }
  4622. // repeated .fish_protocols.ItemInfo items = 5;
  4623. for (int i = 0; i < this->items_size(); i++) {
  4624. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  4625. 5, this->items(i), output);
  4626. }
  4627. if (!unknown_fields().empty()) {
  4628. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  4629. unknown_fields(), output);
  4630. }
  4631. }
  4632. ::google::protobuf::uint8* packetl2c_monkey_exchange_result::SerializeWithCachedSizesToArray(
  4633. ::google::protobuf::uint8* target) const {
  4634. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_monkey_exchange_result];
  4635. if (has_packet_id()) {
  4636. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4637. 1, this->packet_id(), target);
  4638. }
  4639. // optional int32 result = 2;
  4640. if (has_result()) {
  4641. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->result(), target);
  4642. }
  4643. // optional bool exchangeAll = 3;
  4644. if (has_exchangeall()) {
  4645. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->exchangeall(), target);
  4646. }
  4647. // repeated int32 exchangeIndex = 4;
  4648. for (int i = 0; i < this->exchangeindex_size(); i++) {
  4649. target = ::google::protobuf::internal::WireFormatLite::
  4650. WriteInt32ToArray(4, this->exchangeindex(i), target);
  4651. }
  4652. // repeated .fish_protocols.ItemInfo items = 5;
  4653. for (int i = 0; i < this->items_size(); i++) {
  4654. target = ::google::protobuf::internal::WireFormatLite::
  4655. WriteMessageNoVirtualToArray(
  4656. 5, this->items(i), target);
  4657. }
  4658. if (!unknown_fields().empty()) {
  4659. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  4660. unknown_fields(), target);
  4661. }
  4662. return target;
  4663. }
  4664. int packetl2c_monkey_exchange_result::ByteSize() const {
  4665. int total_size = 0;
  4666. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4667. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_monkey_exchange_result];
  4668. if (has_packet_id()) {
  4669. total_size += 1 +
  4670. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  4671. }
  4672. // optional int32 result = 2;
  4673. if (has_result()) {
  4674. total_size += 1 +
  4675. ::google::protobuf::internal::WireFormatLite::Int32Size(
  4676. this->result());
  4677. }
  4678. // optional bool exchangeAll = 3;
  4679. if (has_exchangeall()) {
  4680. total_size += 1 + 1;
  4681. }
  4682. }
  4683. // repeated int32 exchangeIndex = 4;
  4684. {
  4685. int data_size = 0;
  4686. for (int i = 0; i < this->exchangeindex_size(); i++) {
  4687. data_size += ::google::protobuf::internal::WireFormatLite::
  4688. Int32Size(this->exchangeindex(i));
  4689. }
  4690. total_size += 1 * this->exchangeindex_size() + data_size;
  4691. }
  4692. // repeated .fish_protocols.ItemInfo items = 5;
  4693. total_size += 1 * this->items_size();
  4694. for (int i = 0; i < this->items_size(); i++) {
  4695. total_size +=
  4696. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  4697. this->items(i));
  4698. }
  4699. if (!unknown_fields().empty()) {
  4700. total_size +=
  4701. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  4702. unknown_fields());
  4703. }
  4704. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4705. _cached_size_ = total_size;
  4706. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4707. return total_size;
  4708. }
  4709. void packetl2c_monkey_exchange_result::MergeFrom(const ::google::protobuf::Message& from) {
  4710. GOOGLE_CHECK_NE(&from, this);
  4711. const packetl2c_monkey_exchange_result* source =
  4712. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_monkey_exchange_result*>(
  4713. &from);
  4714. if (source == NULL) {
  4715. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  4716. } else {
  4717. MergeFrom(*source);
  4718. }
  4719. }
  4720. void packetl2c_monkey_exchange_result::MergeFrom(const packetl2c_monkey_exchange_result& from) {
  4721. GOOGLE_CHECK_NE(&from, this);
  4722. exchangeindex_.MergeFrom(from.exchangeindex_);
  4723. items_.MergeFrom(from.items_);
  4724. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4725. if (from.has_packet_id()) {
  4726. set_packet_id(from.packet_id());
  4727. }
  4728. if (from.has_result()) {
  4729. set_result(from.result());
  4730. }
  4731. if (from.has_exchangeall()) {
  4732. set_exchangeall(from.exchangeall());
  4733. }
  4734. }
  4735. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  4736. }
  4737. void packetl2c_monkey_exchange_result::CopyFrom(const ::google::protobuf::Message& from) {
  4738. if (&from == this) return;
  4739. Clear();
  4740. MergeFrom(from);
  4741. }
  4742. void packetl2c_monkey_exchange_result::CopyFrom(const packetl2c_monkey_exchange_result& from) {
  4743. if (&from == this) return;
  4744. Clear();
  4745. MergeFrom(from);
  4746. }
  4747. bool packetl2c_monkey_exchange_result::IsInitialized() const {
  4748. return true;
  4749. }
  4750. void packetl2c_monkey_exchange_result::Swap(packetl2c_monkey_exchange_result* other) {
  4751. if (other != this) {
  4752. std::swap(packet_id_, other->packet_id_);
  4753. std::swap(result_, other->result_);
  4754. std::swap(exchangeall_, other->exchangeall_);
  4755. exchangeindex_.Swap(&other->exchangeindex_);
  4756. items_.Swap(&other->items_);
  4757. std::swap(_has_bits_[0], other->_has_bits_[0]);
  4758. _unknown_fields_.Swap(&other->_unknown_fields_);
  4759. std::swap(_cached_size_, other->_cached_size_);
  4760. }
  4761. }
  4762. ::google::protobuf::Metadata packetl2c_monkey_exchange_result::GetMetadata() const {
  4763. protobuf_AssignDescriptorsOnce();
  4764. ::google::protobuf::Metadata metadata;
  4765. metadata.descriptor = packetl2c_monkey_exchange_result_descriptor_;
  4766. metadata.reflection = packetl2c_monkey_exchange_result_reflection_;
  4767. return metadata;
  4768. }
  4769. // @@protoc_insertion_point(namespace_scope)
  4770. } // namespace fish_protocols
  4771. // @@protoc_insertion_point(global_scope)