fish_type_def.pb.cc 140 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: fish_type_def.proto
  3. #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
  4. #include "fish_type_def.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* msg_fish_init_descriptor_ = NULL;
  18. const ::google::protobuf::internal::GeneratedMessageReflection*
  19. msg_fish_init_reflection_ = NULL;
  20. const ::google::protobuf::Descriptor* msg_generator_init_descriptor_ = NULL;
  21. const ::google::protobuf::internal::GeneratedMessageReflection*
  22. msg_generator_init_reflection_ = NULL;
  23. const ::google::protobuf::Descriptor* SelfBuff_descriptor_ = NULL;
  24. const ::google::protobuf::internal::GeneratedMessageReflection*
  25. SelfBuff_reflection_ = NULL;
  26. const ::google::protobuf::Descriptor* FunBuff_descriptor_ = NULL;
  27. const ::google::protobuf::internal::GeneratedMessageReflection*
  28. FunBuff_reflection_ = NULL;
  29. const ::google::protobuf::Descriptor* msg_scene_info_descriptor_ = NULL;
  30. const ::google::protobuf::internal::GeneratedMessageReflection*
  31. msg_scene_info_reflection_ = NULL;
  32. const ::google::protobuf::Descriptor* msg_buff_info_descriptor_ = NULL;
  33. const ::google::protobuf::internal::GeneratedMessageReflection*
  34. msg_buff_info_reflection_ = NULL;
  35. const ::google::protobuf::Descriptor* msg_seat_info_descriptor_ = NULL;
  36. const ::google::protobuf::internal::GeneratedMessageReflection*
  37. msg_seat_info_reflection_ = NULL;
  38. const ::google::protobuf::Descriptor* msg_item_descriptor_ = NULL;
  39. const ::google::protobuf::internal::GeneratedMessageReflection*
  40. msg_item_reflection_ = NULL;
  41. const ::google::protobuf::Descriptor* msg_fish_info_descriptor_ = NULL;
  42. const ::google::protobuf::internal::GeneratedMessageReflection*
  43. msg_fish_info_reflection_ = NULL;
  44. const ::google::protobuf::Descriptor* redEnvlopeInfo_descriptor_ = NULL;
  45. const ::google::protobuf::internal::GeneratedMessageReflection*
  46. redEnvlopeInfo_reflection_ = NULL;
  47. } // namespace
  48. void protobuf_AssignDesc_fish_5ftype_5fdef_2eproto() {
  49. protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
  50. const ::google::protobuf::FileDescriptor* file =
  51. ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
  52. "fish_type_def.proto");
  53. GOOGLE_CHECK(file != NULL);
  54. msg_fish_init_descriptor_ = file->message_type(0);
  55. static const int msg_fish_init_offsets_[4] = {
  56. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_fish_init, id_),
  57. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_fish_init, fish_id_),
  58. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_fish_init, life_time_),
  59. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_fish_init, route_param_),
  60. };
  61. msg_fish_init_reflection_ =
  62. new ::google::protobuf::internal::GeneratedMessageReflection(
  63. msg_fish_init_descriptor_,
  64. msg_fish_init::default_instance_,
  65. msg_fish_init_offsets_,
  66. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_fish_init, _has_bits_[0]),
  67. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_fish_init, _unknown_fields_),
  68. -1,
  69. ::google::protobuf::DescriptorPool::generated_pool(),
  70. ::google::protobuf::MessageFactory::generated_factory(),
  71. sizeof(msg_fish_init));
  72. msg_generator_init_descriptor_ = file->message_type(1);
  73. static const int msg_generator_init_offsets_[6] = {
  74. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_generator_init, generator_id_),
  75. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_generator_init, life_time_),
  76. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_generator_init, start_id_),
  77. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_generator_init, route_id_),
  78. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_generator_init, pos_x_),
  79. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_generator_init, pos_y_),
  80. };
  81. msg_generator_init_reflection_ =
  82. new ::google::protobuf::internal::GeneratedMessageReflection(
  83. msg_generator_init_descriptor_,
  84. msg_generator_init::default_instance_,
  85. msg_generator_init_offsets_,
  86. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_generator_init, _has_bits_[0]),
  87. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_generator_init, _unknown_fields_),
  88. -1,
  89. ::google::protobuf::DescriptorPool::generated_pool(),
  90. ::google::protobuf::MessageFactory::generated_factory(),
  91. sizeof(msg_generator_init));
  92. SelfBuff_descriptor_ = file->message_type(2);
  93. static const int SelfBuff_offsets_[2] = {
  94. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelfBuff, buffid_),
  95. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelfBuff, remaintime_),
  96. };
  97. SelfBuff_reflection_ =
  98. new ::google::protobuf::internal::GeneratedMessageReflection(
  99. SelfBuff_descriptor_,
  100. SelfBuff::default_instance_,
  101. SelfBuff_offsets_,
  102. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelfBuff, _has_bits_[0]),
  103. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelfBuff, _unknown_fields_),
  104. -1,
  105. ::google::protobuf::DescriptorPool::generated_pool(),
  106. ::google::protobuf::MessageFactory::generated_factory(),
  107. sizeof(SelfBuff));
  108. FunBuff_descriptor_ = file->message_type(3);
  109. static const int FunBuff_offsets_[2] = {
  110. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunBuff, buffid_),
  111. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunBuff, efftype_),
  112. };
  113. FunBuff_reflection_ =
  114. new ::google::protobuf::internal::GeneratedMessageReflection(
  115. FunBuff_descriptor_,
  116. FunBuff::default_instance_,
  117. FunBuff_offsets_,
  118. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunBuff, _has_bits_[0]),
  119. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunBuff, _unknown_fields_),
  120. -1,
  121. ::google::protobuf::DescriptorPool::generated_pool(),
  122. ::google::protobuf::MessageFactory::generated_factory(),
  123. sizeof(FunBuff));
  124. msg_scene_info_descriptor_ = file->message_type(4);
  125. static const int msg_scene_info_offsets_[10] = {
  126. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_scene_info, sceneid_),
  127. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_scene_info, roomid_),
  128. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_scene_info, seat_info_),
  129. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_scene_info, fish_infos_),
  130. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_scene_info, generator_infos_),
  131. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_scene_info, boss_time_),
  132. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_scene_info, selfbufflist_),
  133. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_scene_info, selffunbufflist_),
  134. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_scene_info, high_grade_jackpot_),
  135. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_scene_info, frozeremaintime_),
  136. };
  137. msg_scene_info_reflection_ =
  138. new ::google::protobuf::internal::GeneratedMessageReflection(
  139. msg_scene_info_descriptor_,
  140. msg_scene_info::default_instance_,
  141. msg_scene_info_offsets_,
  142. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_scene_info, _has_bits_[0]),
  143. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_scene_info, _unknown_fields_),
  144. -1,
  145. ::google::protobuf::DescriptorPool::generated_pool(),
  146. ::google::protobuf::MessageFactory::generated_factory(),
  147. sizeof(msg_scene_info));
  148. msg_buff_info_descriptor_ = file->message_type(5);
  149. static const int msg_buff_info_offsets_[2] = {
  150. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_buff_info, buffid_),
  151. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_buff_info, outtime_),
  152. };
  153. msg_buff_info_reflection_ =
  154. new ::google::protobuf::internal::GeneratedMessageReflection(
  155. msg_buff_info_descriptor_,
  156. msg_buff_info::default_instance_,
  157. msg_buff_info_offsets_,
  158. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_buff_info, _has_bits_[0]),
  159. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_buff_info, _unknown_fields_),
  160. -1,
  161. ::google::protobuf::DescriptorPool::generated_pool(),
  162. ::google::protobuf::MessageFactory::generated_factory(),
  163. sizeof(msg_buff_info));
  164. msg_seat_info_descriptor_ = file->message_type(6);
  165. static const int msg_seat_info_offsets_[20] = {
  166. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, seat_index_),
  167. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, player_id_),
  168. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, nickname_),
  169. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, player_gold_),
  170. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, turret_rate_),
  171. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, turret_id_),
  172. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, turret_lv_),
  173. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, wing_id_),
  174. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, wing_lv_),
  175. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, bufflist_),
  176. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, headid_),
  177. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, frameid_),
  178. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, point_),
  179. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, vip_),
  180. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, player_lv_),
  181. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, player_diamond_),
  182. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, player_ticket_),
  183. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, dimensity_),
  184. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, room_rate_),
  185. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, bullet_power_),
  186. };
  187. msg_seat_info_reflection_ =
  188. new ::google::protobuf::internal::GeneratedMessageReflection(
  189. msg_seat_info_descriptor_,
  190. msg_seat_info::default_instance_,
  191. msg_seat_info_offsets_,
  192. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, _has_bits_[0]),
  193. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, _unknown_fields_),
  194. -1,
  195. ::google::protobuf::DescriptorPool::generated_pool(),
  196. ::google::protobuf::MessageFactory::generated_factory(),
  197. sizeof(msg_seat_info));
  198. msg_item_descriptor_ = file->message_type(7);
  199. static const int msg_item_offsets_[3] = {
  200. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_item, item_id_),
  201. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_item, item_count_),
  202. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_item, end_time_),
  203. };
  204. msg_item_reflection_ =
  205. new ::google::protobuf::internal::GeneratedMessageReflection(
  206. msg_item_descriptor_,
  207. msg_item::default_instance_,
  208. msg_item_offsets_,
  209. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_item, _has_bits_[0]),
  210. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_item, _unknown_fields_),
  211. -1,
  212. ::google::protobuf::DescriptorPool::generated_pool(),
  213. ::google::protobuf::MessageFactory::generated_factory(),
  214. sizeof(msg_item));
  215. msg_fish_info_descriptor_ = file->message_type(8);
  216. static const int msg_fish_info_offsets_[3] = {
  217. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_fish_info, id_),
  218. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_fish_info, fish_id_),
  219. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_fish_info, route_id_),
  220. };
  221. msg_fish_info_reflection_ =
  222. new ::google::protobuf::internal::GeneratedMessageReflection(
  223. msg_fish_info_descriptor_,
  224. msg_fish_info::default_instance_,
  225. msg_fish_info_offsets_,
  226. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_fish_info, _has_bits_[0]),
  227. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_fish_info, _unknown_fields_),
  228. -1,
  229. ::google::protobuf::DescriptorPool::generated_pool(),
  230. ::google::protobuf::MessageFactory::generated_factory(),
  231. sizeof(msg_fish_info));
  232. redEnvlopeInfo_descriptor_ = file->message_type(9);
  233. static const int redEnvlopeInfo_offsets_[3] = {
  234. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(redEnvlopeInfo, roomid_),
  235. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(redEnvlopeInfo, curgeer_),
  236. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(redEnvlopeInfo, redenvelopeacc_),
  237. };
  238. redEnvlopeInfo_reflection_ =
  239. new ::google::protobuf::internal::GeneratedMessageReflection(
  240. redEnvlopeInfo_descriptor_,
  241. redEnvlopeInfo::default_instance_,
  242. redEnvlopeInfo_offsets_,
  243. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(redEnvlopeInfo, _has_bits_[0]),
  244. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(redEnvlopeInfo, _unknown_fields_),
  245. -1,
  246. ::google::protobuf::DescriptorPool::generated_pool(),
  247. ::google::protobuf::MessageFactory::generated_factory(),
  248. sizeof(redEnvlopeInfo));
  249. }
  250. namespace {
  251. GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
  252. inline void protobuf_AssignDescriptorsOnce() {
  253. ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
  254. &protobuf_AssignDesc_fish_5ftype_5fdef_2eproto);
  255. }
  256. void protobuf_RegisterTypes(const ::std::string&) {
  257. protobuf_AssignDescriptorsOnce();
  258. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  259. msg_fish_init_descriptor_, &msg_fish_init::default_instance());
  260. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  261. msg_generator_init_descriptor_, &msg_generator_init::default_instance());
  262. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  263. SelfBuff_descriptor_, &SelfBuff::default_instance());
  264. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  265. FunBuff_descriptor_, &FunBuff::default_instance());
  266. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  267. msg_scene_info_descriptor_, &msg_scene_info::default_instance());
  268. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  269. msg_buff_info_descriptor_, &msg_buff_info::default_instance());
  270. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  271. msg_seat_info_descriptor_, &msg_seat_info::default_instance());
  272. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  273. msg_item_descriptor_, &msg_item::default_instance());
  274. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  275. msg_fish_info_descriptor_, &msg_fish_info::default_instance());
  276. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  277. redEnvlopeInfo_descriptor_, &redEnvlopeInfo::default_instance());
  278. }
  279. } // namespace
  280. void protobuf_ShutdownFile_fish_5ftype_5fdef_2eproto() {
  281. delete msg_fish_init::default_instance_;
  282. delete msg_fish_init_reflection_;
  283. delete msg_generator_init::default_instance_;
  284. delete msg_generator_init_reflection_;
  285. delete SelfBuff::default_instance_;
  286. delete SelfBuff_reflection_;
  287. delete FunBuff::default_instance_;
  288. delete FunBuff_reflection_;
  289. delete msg_scene_info::default_instance_;
  290. delete msg_scene_info_reflection_;
  291. delete msg_buff_info::default_instance_;
  292. delete msg_buff_info_reflection_;
  293. delete msg_seat_info::default_instance_;
  294. delete msg_seat_info_reflection_;
  295. delete msg_item::default_instance_;
  296. delete msg_item_reflection_;
  297. delete msg_fish_info::default_instance_;
  298. delete msg_fish_info_reflection_;
  299. delete redEnvlopeInfo::default_instance_;
  300. delete redEnvlopeInfo_reflection_;
  301. }
  302. void protobuf_AddDesc_fish_5ftype_5fdef_2eproto() {
  303. static bool already_here = false;
  304. if (already_here) return;
  305. already_here = true;
  306. GOOGLE_PROTOBUF_VERIFY_VERSION;
  307. ::fish_protocols::protobuf_AddDesc_fish_5fdef_2eproto();
  308. ::msg_type_def::protobuf_AddDesc_msg_5ftype_5fdef_2eproto();
  309. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  310. "\n\023fish_type_def.proto\022\016fish_protocols\032\016f"
  311. "ish_def.proto\032\022msg_type_def.proto\"T\n\rmsg"
  312. "_fish_init\022\n\n\002id\030\001 \001(\005\022\017\n\007fish_id\030\002 \001(\005\022"
  313. "\021\n\tlife_time\030\003 \001(\002\022\023\n\013route_param\030\004 \003(\002\""
  314. "\210\001\n\022msg_generator_init\022\024\n\014generator_id\030\001"
  315. " \001(\005\022\021\n\tlife_time\030\002 \001(\005\022\020\n\010start_id\030\003 \001("
  316. "\005\022\023\n\010route_id\030\004 \001(\005:\0010\022\020\n\005pos_x\030\005 \001(\005:\0010"
  317. "\022\020\n\005pos_y\030\006 \001(\005:\0010\".\n\010SelfBuff\022\016\n\006buffId"
  318. "\030\001 \001(\005\022\022\n\nremainTime\030\002 \001(\005\"*\n\007FunBuff\022\016\n"
  319. "\006buffId\030\001 \001(\005\022\017\n\007effType\030\002 \001(\005\"\375\002\n\016msg_s"
  320. "cene_info\022\017\n\007sceneid\030\001 \001(\005\022\016\n\006roomid\030\002 \001"
  321. "(\005\0220\n\tseat_info\030\003 \003(\0132\035.fish_protocols.m"
  322. "sg_seat_info\0221\n\nfish_infos\030\004 \003(\0132\035.fish_"
  323. "protocols.msg_fish_init\022;\n\017generator_inf"
  324. "os\030\005 \003(\0132\".fish_protocols.msg_generator_"
  325. "init\022\021\n\tboss_time\030\006 \001(\005\022.\n\014selfBuffList\030"
  326. "\007 \003(\0132\030.fish_protocols.SelfBuff\0220\n\017selfF"
  327. "unBuffList\030\010 \003(\0132\027.fish_protocols.FunBuf"
  328. "f\022\032\n\022high_grade_jackpot\030\t \001(\003\022\027\n\017frozeRe"
  329. "mainTime\030\n \001(\005\"4\n\rmsg_buff_info\022\016\n\006buffi"
  330. "d\030\001 \001(\005\022\023\n\007outtime\030\002 \001(\005:\002-1\"\246\003\n\rmsg_sea"
  331. "t_info\022\022\n\nseat_index\030\001 \001(\005\022\021\n\tplayer_id\030"
  332. "\002 \001(\005\022\020\n\010nickname\030\003 \001(\t\022\023\n\013player_gold\030\004"
  333. " \001(\003\022\023\n\013turret_rate\030\005 \001(\005\022\021\n\tturret_id\030\006"
  334. " \001(\005\022\021\n\tturret_lv\030\007 \001(\005\022\017\n\007wing_id\030\010 \001(\005"
  335. "\022\017\n\007wing_lv\030\t \001(\005\022/\n\010bufflist\030\n \003(\0132\035.fi"
  336. "sh_protocols.msg_buff_info\022\016\n\006headid\030\013 \001"
  337. "(\005\022\017\n\007frameid\030\014 \001(\005\022\r\n\005point\030\r \001(\005\022\013\n\003vi"
  338. "p\030\016 \001(\005\022\021\n\tplayer_lv\030\017 \001(\005\022\026\n\016player_dia"
  339. "mond\030\020 \001(\005\022\025\n\rplayer_ticket\030\021 \001(\005\022\021\n\tdim"
  340. "ensity\030\022 \001(\005\022\021\n\troom_rate\030\023 \001(\005\022\024\n\014bulle"
  341. "t_power\030\024 \001(\005\"E\n\010msg_item\022\017\n\007item_id\030\001 \001"
  342. "(\005\022\022\n\nitem_count\030\002 \001(\005\022\024\n\010end_time\030\003 \001(\005"
  343. ":\002-1\">\n\rmsg_fish_info\022\n\n\002id\030\001 \001(\005\022\017\n\007fis"
  344. "h_id\030\002 \001(\005\022\020\n\010route_id\030\003 \001(\005\"I\n\016redEnvlo"
  345. "peInfo\022\016\n\006roomid\030\001 \001(\005\022\017\n\007curGeer\030\002 \001(\005\022"
  346. "\026\n\016redEnvelopeAcc\030\003 \001(\005", 1463);
  347. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  348. "fish_type_def.proto", &protobuf_RegisterTypes);
  349. msg_fish_init::default_instance_ = new msg_fish_init();
  350. msg_generator_init::default_instance_ = new msg_generator_init();
  351. SelfBuff::default_instance_ = new SelfBuff();
  352. FunBuff::default_instance_ = new FunBuff();
  353. msg_scene_info::default_instance_ = new msg_scene_info();
  354. msg_buff_info::default_instance_ = new msg_buff_info();
  355. msg_seat_info::default_instance_ = new msg_seat_info();
  356. msg_item::default_instance_ = new msg_item();
  357. msg_fish_info::default_instance_ = new msg_fish_info();
  358. redEnvlopeInfo::default_instance_ = new redEnvlopeInfo();
  359. msg_fish_init::default_instance_->InitAsDefaultInstance();
  360. msg_generator_init::default_instance_->InitAsDefaultInstance();
  361. SelfBuff::default_instance_->InitAsDefaultInstance();
  362. FunBuff::default_instance_->InitAsDefaultInstance();
  363. msg_scene_info::default_instance_->InitAsDefaultInstance();
  364. msg_buff_info::default_instance_->InitAsDefaultInstance();
  365. msg_seat_info::default_instance_->InitAsDefaultInstance();
  366. msg_item::default_instance_->InitAsDefaultInstance();
  367. msg_fish_info::default_instance_->InitAsDefaultInstance();
  368. redEnvlopeInfo::default_instance_->InitAsDefaultInstance();
  369. ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_fish_5ftype_5fdef_2eproto);
  370. }
  371. // Force AddDescriptors() to be called at static initialization time.
  372. struct StaticDescriptorInitializer_fish_5ftype_5fdef_2eproto {
  373. StaticDescriptorInitializer_fish_5ftype_5fdef_2eproto() {
  374. protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
  375. }
  376. } static_descriptor_initializer_fish_5ftype_5fdef_2eproto_;
  377. // ===================================================================
  378. #ifndef _MSC_VER
  379. const int msg_fish_init::kIdFieldNumber;
  380. const int msg_fish_init::kFishIdFieldNumber;
  381. const int msg_fish_init::kLifeTimeFieldNumber;
  382. const int msg_fish_init::kRouteParamFieldNumber;
  383. #endif // !_MSC_VER
  384. msg_fish_init::msg_fish_init()
  385. : ::google::protobuf::Message() {
  386. SharedCtor();
  387. }
  388. void msg_fish_init::InitAsDefaultInstance() {
  389. }
  390. msg_fish_init::msg_fish_init(const msg_fish_init& from)
  391. : ::google::protobuf::Message() {
  392. SharedCtor();
  393. MergeFrom(from);
  394. }
  395. void msg_fish_init::SharedCtor() {
  396. _cached_size_ = 0;
  397. id_ = 0;
  398. fish_id_ = 0;
  399. life_time_ = 0;
  400. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  401. }
  402. msg_fish_init::~msg_fish_init() {
  403. SharedDtor();
  404. }
  405. void msg_fish_init::SharedDtor() {
  406. if (this != default_instance_) {
  407. }
  408. }
  409. void msg_fish_init::SetCachedSize(int size) const {
  410. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  411. _cached_size_ = size;
  412. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  413. }
  414. const ::google::protobuf::Descriptor* msg_fish_init::descriptor() {
  415. protobuf_AssignDescriptorsOnce();
  416. return msg_fish_init_descriptor_;
  417. }
  418. const msg_fish_init& msg_fish_init::default_instance() {
  419. if (default_instance_ == NULL) protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
  420. return *default_instance_;
  421. }
  422. msg_fish_init* msg_fish_init::default_instance_ = NULL;
  423. msg_fish_init* msg_fish_init::New() const {
  424. return new msg_fish_init;
  425. }
  426. void msg_fish_init::Clear() {
  427. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  428. id_ = 0;
  429. fish_id_ = 0;
  430. life_time_ = 0;
  431. }
  432. route_param_.Clear();
  433. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  434. mutable_unknown_fields()->Clear();
  435. }
  436. bool msg_fish_init::MergePartialFromCodedStream(
  437. ::google::protobuf::io::CodedInputStream* input) {
  438. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  439. ::google::protobuf::uint32 tag;
  440. while ((tag = input->ReadTag()) != 0) {
  441. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  442. // optional int32 id = 1;
  443. case 1: {
  444. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  445. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  446. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  447. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  448. input, &id_)));
  449. set_has_id();
  450. } else {
  451. goto handle_uninterpreted;
  452. }
  453. if (input->ExpectTag(16)) goto parse_fish_id;
  454. break;
  455. }
  456. // optional int32 fish_id = 2;
  457. case 2: {
  458. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  459. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  460. parse_fish_id:
  461. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  462. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  463. input, &fish_id_)));
  464. set_has_fish_id();
  465. } else {
  466. goto handle_uninterpreted;
  467. }
  468. if (input->ExpectTag(29)) goto parse_life_time;
  469. break;
  470. }
  471. // optional float life_time = 3;
  472. case 3: {
  473. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  474. ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
  475. parse_life_time:
  476. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  477. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  478. input, &life_time_)));
  479. set_has_life_time();
  480. } else {
  481. goto handle_uninterpreted;
  482. }
  483. if (input->ExpectTag(37)) goto parse_route_param;
  484. break;
  485. }
  486. // repeated float route_param = 4;
  487. case 4: {
  488. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  489. ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
  490. parse_route_param:
  491. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
  492. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  493. 1, 37, input, this->mutable_route_param())));
  494. } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
  495. == ::google::protobuf::internal::WireFormatLite::
  496. WIRETYPE_LENGTH_DELIMITED) {
  497. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
  498. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  499. input, this->mutable_route_param())));
  500. } else {
  501. goto handle_uninterpreted;
  502. }
  503. if (input->ExpectTag(37)) goto parse_route_param;
  504. if (input->ExpectAtEnd()) return true;
  505. break;
  506. }
  507. default: {
  508. handle_uninterpreted:
  509. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  510. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  511. return true;
  512. }
  513. DO_(::google::protobuf::internal::WireFormat::SkipField(
  514. input, tag, mutable_unknown_fields()));
  515. break;
  516. }
  517. }
  518. }
  519. return true;
  520. #undef DO_
  521. }
  522. void msg_fish_init::SerializeWithCachedSizes(
  523. ::google::protobuf::io::CodedOutputStream* output) const {
  524. // optional int32 id = 1;
  525. if (has_id()) {
  526. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->id(), output);
  527. }
  528. // optional int32 fish_id = 2;
  529. if (has_fish_id()) {
  530. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->fish_id(), output);
  531. }
  532. // optional float life_time = 3;
  533. if (has_life_time()) {
  534. ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->life_time(), output);
  535. }
  536. // repeated float route_param = 4;
  537. for (int i = 0; i < this->route_param_size(); i++) {
  538. ::google::protobuf::internal::WireFormatLite::WriteFloat(
  539. 4, this->route_param(i), output);
  540. }
  541. if (!unknown_fields().empty()) {
  542. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  543. unknown_fields(), output);
  544. }
  545. }
  546. ::google::protobuf::uint8* msg_fish_init::SerializeWithCachedSizesToArray(
  547. ::google::protobuf::uint8* target) const {
  548. // optional int32 id = 1;
  549. if (has_id()) {
  550. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->id(), target);
  551. }
  552. // optional int32 fish_id = 2;
  553. if (has_fish_id()) {
  554. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->fish_id(), target);
  555. }
  556. // optional float life_time = 3;
  557. if (has_life_time()) {
  558. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->life_time(), target);
  559. }
  560. // repeated float route_param = 4;
  561. for (int i = 0; i < this->route_param_size(); i++) {
  562. target = ::google::protobuf::internal::WireFormatLite::
  563. WriteFloatToArray(4, this->route_param(i), target);
  564. }
  565. if (!unknown_fields().empty()) {
  566. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  567. unknown_fields(), target);
  568. }
  569. return target;
  570. }
  571. int msg_fish_init::ByteSize() const {
  572. int total_size = 0;
  573. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  574. // optional int32 id = 1;
  575. if (has_id()) {
  576. total_size += 1 +
  577. ::google::protobuf::internal::WireFormatLite::Int32Size(
  578. this->id());
  579. }
  580. // optional int32 fish_id = 2;
  581. if (has_fish_id()) {
  582. total_size += 1 +
  583. ::google::protobuf::internal::WireFormatLite::Int32Size(
  584. this->fish_id());
  585. }
  586. // optional float life_time = 3;
  587. if (has_life_time()) {
  588. total_size += 1 + 4;
  589. }
  590. }
  591. // repeated float route_param = 4;
  592. {
  593. int data_size = 0;
  594. data_size = 4 * this->route_param_size();
  595. total_size += 1 * this->route_param_size() + data_size;
  596. }
  597. if (!unknown_fields().empty()) {
  598. total_size +=
  599. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  600. unknown_fields());
  601. }
  602. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  603. _cached_size_ = total_size;
  604. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  605. return total_size;
  606. }
  607. void msg_fish_init::MergeFrom(const ::google::protobuf::Message& from) {
  608. GOOGLE_CHECK_NE(&from, this);
  609. const msg_fish_init* source =
  610. ::google::protobuf::internal::dynamic_cast_if_available<const msg_fish_init*>(
  611. &from);
  612. if (source == NULL) {
  613. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  614. } else {
  615. MergeFrom(*source);
  616. }
  617. }
  618. void msg_fish_init::MergeFrom(const msg_fish_init& from) {
  619. GOOGLE_CHECK_NE(&from, this);
  620. route_param_.MergeFrom(from.route_param_);
  621. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  622. if (from.has_id()) {
  623. set_id(from.id());
  624. }
  625. if (from.has_fish_id()) {
  626. set_fish_id(from.fish_id());
  627. }
  628. if (from.has_life_time()) {
  629. set_life_time(from.life_time());
  630. }
  631. }
  632. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  633. }
  634. void msg_fish_init::CopyFrom(const ::google::protobuf::Message& from) {
  635. if (&from == this) return;
  636. Clear();
  637. MergeFrom(from);
  638. }
  639. void msg_fish_init::CopyFrom(const msg_fish_init& from) {
  640. if (&from == this) return;
  641. Clear();
  642. MergeFrom(from);
  643. }
  644. bool msg_fish_init::IsInitialized() const {
  645. return true;
  646. }
  647. void msg_fish_init::Swap(msg_fish_init* other) {
  648. if (other != this) {
  649. std::swap(id_, other->id_);
  650. std::swap(fish_id_, other->fish_id_);
  651. std::swap(life_time_, other->life_time_);
  652. route_param_.Swap(&other->route_param_);
  653. std::swap(_has_bits_[0], other->_has_bits_[0]);
  654. _unknown_fields_.Swap(&other->_unknown_fields_);
  655. std::swap(_cached_size_, other->_cached_size_);
  656. }
  657. }
  658. ::google::protobuf::Metadata msg_fish_init::GetMetadata() const {
  659. protobuf_AssignDescriptorsOnce();
  660. ::google::protobuf::Metadata metadata;
  661. metadata.descriptor = msg_fish_init_descriptor_;
  662. metadata.reflection = msg_fish_init_reflection_;
  663. return metadata;
  664. }
  665. // ===================================================================
  666. #ifndef _MSC_VER
  667. const int msg_generator_init::kGeneratorIdFieldNumber;
  668. const int msg_generator_init::kLifeTimeFieldNumber;
  669. const int msg_generator_init::kStartIdFieldNumber;
  670. const int msg_generator_init::kRouteIdFieldNumber;
  671. const int msg_generator_init::kPosXFieldNumber;
  672. const int msg_generator_init::kPosYFieldNumber;
  673. #endif // !_MSC_VER
  674. msg_generator_init::msg_generator_init()
  675. : ::google::protobuf::Message() {
  676. SharedCtor();
  677. }
  678. void msg_generator_init::InitAsDefaultInstance() {
  679. }
  680. msg_generator_init::msg_generator_init(const msg_generator_init& from)
  681. : ::google::protobuf::Message() {
  682. SharedCtor();
  683. MergeFrom(from);
  684. }
  685. void msg_generator_init::SharedCtor() {
  686. _cached_size_ = 0;
  687. generator_id_ = 0;
  688. life_time_ = 0;
  689. start_id_ = 0;
  690. route_id_ = 0;
  691. pos_x_ = 0;
  692. pos_y_ = 0;
  693. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  694. }
  695. msg_generator_init::~msg_generator_init() {
  696. SharedDtor();
  697. }
  698. void msg_generator_init::SharedDtor() {
  699. if (this != default_instance_) {
  700. }
  701. }
  702. void msg_generator_init::SetCachedSize(int size) const {
  703. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  704. _cached_size_ = size;
  705. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  706. }
  707. const ::google::protobuf::Descriptor* msg_generator_init::descriptor() {
  708. protobuf_AssignDescriptorsOnce();
  709. return msg_generator_init_descriptor_;
  710. }
  711. const msg_generator_init& msg_generator_init::default_instance() {
  712. if (default_instance_ == NULL) protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
  713. return *default_instance_;
  714. }
  715. msg_generator_init* msg_generator_init::default_instance_ = NULL;
  716. msg_generator_init* msg_generator_init::New() const {
  717. return new msg_generator_init;
  718. }
  719. void msg_generator_init::Clear() {
  720. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  721. generator_id_ = 0;
  722. life_time_ = 0;
  723. start_id_ = 0;
  724. route_id_ = 0;
  725. pos_x_ = 0;
  726. pos_y_ = 0;
  727. }
  728. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  729. mutable_unknown_fields()->Clear();
  730. }
  731. bool msg_generator_init::MergePartialFromCodedStream(
  732. ::google::protobuf::io::CodedInputStream* input) {
  733. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  734. ::google::protobuf::uint32 tag;
  735. while ((tag = input->ReadTag()) != 0) {
  736. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  737. // optional int32 generator_id = 1;
  738. case 1: {
  739. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  740. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  741. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  742. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  743. input, &generator_id_)));
  744. set_has_generator_id();
  745. } else {
  746. goto handle_uninterpreted;
  747. }
  748. if (input->ExpectTag(16)) goto parse_life_time;
  749. break;
  750. }
  751. // optional int32 life_time = 2;
  752. case 2: {
  753. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  754. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  755. parse_life_time:
  756. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  757. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  758. input, &life_time_)));
  759. set_has_life_time();
  760. } else {
  761. goto handle_uninterpreted;
  762. }
  763. if (input->ExpectTag(24)) goto parse_start_id;
  764. break;
  765. }
  766. // optional int32 start_id = 3;
  767. case 3: {
  768. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  769. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  770. parse_start_id:
  771. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  772. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  773. input, &start_id_)));
  774. set_has_start_id();
  775. } else {
  776. goto handle_uninterpreted;
  777. }
  778. if (input->ExpectTag(32)) goto parse_route_id;
  779. break;
  780. }
  781. // optional int32 route_id = 4 [default = 0];
  782. case 4: {
  783. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  784. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  785. parse_route_id:
  786. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  787. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  788. input, &route_id_)));
  789. set_has_route_id();
  790. } else {
  791. goto handle_uninterpreted;
  792. }
  793. if (input->ExpectTag(40)) goto parse_pos_x;
  794. break;
  795. }
  796. // optional int32 pos_x = 5 [default = 0];
  797. case 5: {
  798. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  799. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  800. parse_pos_x:
  801. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  802. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  803. input, &pos_x_)));
  804. set_has_pos_x();
  805. } else {
  806. goto handle_uninterpreted;
  807. }
  808. if (input->ExpectTag(48)) goto parse_pos_y;
  809. break;
  810. }
  811. // optional int32 pos_y = 6 [default = 0];
  812. case 6: {
  813. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  814. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  815. parse_pos_y:
  816. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  817. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  818. input, &pos_y_)));
  819. set_has_pos_y();
  820. } else {
  821. goto handle_uninterpreted;
  822. }
  823. if (input->ExpectAtEnd()) return true;
  824. break;
  825. }
  826. default: {
  827. handle_uninterpreted:
  828. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  829. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  830. return true;
  831. }
  832. DO_(::google::protobuf::internal::WireFormat::SkipField(
  833. input, tag, mutable_unknown_fields()));
  834. break;
  835. }
  836. }
  837. }
  838. return true;
  839. #undef DO_
  840. }
  841. void msg_generator_init::SerializeWithCachedSizes(
  842. ::google::protobuf::io::CodedOutputStream* output) const {
  843. // optional int32 generator_id = 1;
  844. if (has_generator_id()) {
  845. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->generator_id(), output);
  846. }
  847. // optional int32 life_time = 2;
  848. if (has_life_time()) {
  849. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->life_time(), output);
  850. }
  851. // optional int32 start_id = 3;
  852. if (has_start_id()) {
  853. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->start_id(), output);
  854. }
  855. // optional int32 route_id = 4 [default = 0];
  856. if (has_route_id()) {
  857. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->route_id(), output);
  858. }
  859. // optional int32 pos_x = 5 [default = 0];
  860. if (has_pos_x()) {
  861. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->pos_x(), output);
  862. }
  863. // optional int32 pos_y = 6 [default = 0];
  864. if (has_pos_y()) {
  865. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->pos_y(), output);
  866. }
  867. if (!unknown_fields().empty()) {
  868. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  869. unknown_fields(), output);
  870. }
  871. }
  872. ::google::protobuf::uint8* msg_generator_init::SerializeWithCachedSizesToArray(
  873. ::google::protobuf::uint8* target) const {
  874. // optional int32 generator_id = 1;
  875. if (has_generator_id()) {
  876. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->generator_id(), target);
  877. }
  878. // optional int32 life_time = 2;
  879. if (has_life_time()) {
  880. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->life_time(), target);
  881. }
  882. // optional int32 start_id = 3;
  883. if (has_start_id()) {
  884. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->start_id(), target);
  885. }
  886. // optional int32 route_id = 4 [default = 0];
  887. if (has_route_id()) {
  888. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->route_id(), target);
  889. }
  890. // optional int32 pos_x = 5 [default = 0];
  891. if (has_pos_x()) {
  892. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->pos_x(), target);
  893. }
  894. // optional int32 pos_y = 6 [default = 0];
  895. if (has_pos_y()) {
  896. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->pos_y(), target);
  897. }
  898. if (!unknown_fields().empty()) {
  899. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  900. unknown_fields(), target);
  901. }
  902. return target;
  903. }
  904. int msg_generator_init::ByteSize() const {
  905. int total_size = 0;
  906. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  907. // optional int32 generator_id = 1;
  908. if (has_generator_id()) {
  909. total_size += 1 +
  910. ::google::protobuf::internal::WireFormatLite::Int32Size(
  911. this->generator_id());
  912. }
  913. // optional int32 life_time = 2;
  914. if (has_life_time()) {
  915. total_size += 1 +
  916. ::google::protobuf::internal::WireFormatLite::Int32Size(
  917. this->life_time());
  918. }
  919. // optional int32 start_id = 3;
  920. if (has_start_id()) {
  921. total_size += 1 +
  922. ::google::protobuf::internal::WireFormatLite::Int32Size(
  923. this->start_id());
  924. }
  925. // optional int32 route_id = 4 [default = 0];
  926. if (has_route_id()) {
  927. total_size += 1 +
  928. ::google::protobuf::internal::WireFormatLite::Int32Size(
  929. this->route_id());
  930. }
  931. // optional int32 pos_x = 5 [default = 0];
  932. if (has_pos_x()) {
  933. total_size += 1 +
  934. ::google::protobuf::internal::WireFormatLite::Int32Size(
  935. this->pos_x());
  936. }
  937. // optional int32 pos_y = 6 [default = 0];
  938. if (has_pos_y()) {
  939. total_size += 1 +
  940. ::google::protobuf::internal::WireFormatLite::Int32Size(
  941. this->pos_y());
  942. }
  943. }
  944. if (!unknown_fields().empty()) {
  945. total_size +=
  946. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  947. unknown_fields());
  948. }
  949. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  950. _cached_size_ = total_size;
  951. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  952. return total_size;
  953. }
  954. void msg_generator_init::MergeFrom(const ::google::protobuf::Message& from) {
  955. GOOGLE_CHECK_NE(&from, this);
  956. const msg_generator_init* source =
  957. ::google::protobuf::internal::dynamic_cast_if_available<const msg_generator_init*>(
  958. &from);
  959. if (source == NULL) {
  960. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  961. } else {
  962. MergeFrom(*source);
  963. }
  964. }
  965. void msg_generator_init::MergeFrom(const msg_generator_init& from) {
  966. GOOGLE_CHECK_NE(&from, this);
  967. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  968. if (from.has_generator_id()) {
  969. set_generator_id(from.generator_id());
  970. }
  971. if (from.has_life_time()) {
  972. set_life_time(from.life_time());
  973. }
  974. if (from.has_start_id()) {
  975. set_start_id(from.start_id());
  976. }
  977. if (from.has_route_id()) {
  978. set_route_id(from.route_id());
  979. }
  980. if (from.has_pos_x()) {
  981. set_pos_x(from.pos_x());
  982. }
  983. if (from.has_pos_y()) {
  984. set_pos_y(from.pos_y());
  985. }
  986. }
  987. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  988. }
  989. void msg_generator_init::CopyFrom(const ::google::protobuf::Message& from) {
  990. if (&from == this) return;
  991. Clear();
  992. MergeFrom(from);
  993. }
  994. void msg_generator_init::CopyFrom(const msg_generator_init& from) {
  995. if (&from == this) return;
  996. Clear();
  997. MergeFrom(from);
  998. }
  999. bool msg_generator_init::IsInitialized() const {
  1000. return true;
  1001. }
  1002. void msg_generator_init::Swap(msg_generator_init* other) {
  1003. if (other != this) {
  1004. std::swap(generator_id_, other->generator_id_);
  1005. std::swap(life_time_, other->life_time_);
  1006. std::swap(start_id_, other->start_id_);
  1007. std::swap(route_id_, other->route_id_);
  1008. std::swap(pos_x_, other->pos_x_);
  1009. std::swap(pos_y_, other->pos_y_);
  1010. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1011. _unknown_fields_.Swap(&other->_unknown_fields_);
  1012. std::swap(_cached_size_, other->_cached_size_);
  1013. }
  1014. }
  1015. ::google::protobuf::Metadata msg_generator_init::GetMetadata() const {
  1016. protobuf_AssignDescriptorsOnce();
  1017. ::google::protobuf::Metadata metadata;
  1018. metadata.descriptor = msg_generator_init_descriptor_;
  1019. metadata.reflection = msg_generator_init_reflection_;
  1020. return metadata;
  1021. }
  1022. // ===================================================================
  1023. #ifndef _MSC_VER
  1024. const int SelfBuff::kBuffIdFieldNumber;
  1025. const int SelfBuff::kRemainTimeFieldNumber;
  1026. #endif // !_MSC_VER
  1027. SelfBuff::SelfBuff()
  1028. : ::google::protobuf::Message() {
  1029. SharedCtor();
  1030. }
  1031. void SelfBuff::InitAsDefaultInstance() {
  1032. }
  1033. SelfBuff::SelfBuff(const SelfBuff& from)
  1034. : ::google::protobuf::Message() {
  1035. SharedCtor();
  1036. MergeFrom(from);
  1037. }
  1038. void SelfBuff::SharedCtor() {
  1039. _cached_size_ = 0;
  1040. buffid_ = 0;
  1041. remaintime_ = 0;
  1042. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1043. }
  1044. SelfBuff::~SelfBuff() {
  1045. SharedDtor();
  1046. }
  1047. void SelfBuff::SharedDtor() {
  1048. if (this != default_instance_) {
  1049. }
  1050. }
  1051. void SelfBuff::SetCachedSize(int size) const {
  1052. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1053. _cached_size_ = size;
  1054. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1055. }
  1056. const ::google::protobuf::Descriptor* SelfBuff::descriptor() {
  1057. protobuf_AssignDescriptorsOnce();
  1058. return SelfBuff_descriptor_;
  1059. }
  1060. const SelfBuff& SelfBuff::default_instance() {
  1061. if (default_instance_ == NULL) protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
  1062. return *default_instance_;
  1063. }
  1064. SelfBuff* SelfBuff::default_instance_ = NULL;
  1065. SelfBuff* SelfBuff::New() const {
  1066. return new SelfBuff;
  1067. }
  1068. void SelfBuff::Clear() {
  1069. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1070. buffid_ = 0;
  1071. remaintime_ = 0;
  1072. }
  1073. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1074. mutable_unknown_fields()->Clear();
  1075. }
  1076. bool SelfBuff::MergePartialFromCodedStream(
  1077. ::google::protobuf::io::CodedInputStream* input) {
  1078. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  1079. ::google::protobuf::uint32 tag;
  1080. while ((tag = input->ReadTag()) != 0) {
  1081. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1082. // optional int32 buffId = 1;
  1083. case 1: {
  1084. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1085. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1086. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1087. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1088. input, &buffid_)));
  1089. set_has_buffid();
  1090. } else {
  1091. goto handle_uninterpreted;
  1092. }
  1093. if (input->ExpectTag(16)) goto parse_remainTime;
  1094. break;
  1095. }
  1096. // optional int32 remainTime = 2;
  1097. case 2: {
  1098. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1099. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1100. parse_remainTime:
  1101. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1102. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1103. input, &remaintime_)));
  1104. set_has_remaintime();
  1105. } else {
  1106. goto handle_uninterpreted;
  1107. }
  1108. if (input->ExpectAtEnd()) return true;
  1109. break;
  1110. }
  1111. default: {
  1112. handle_uninterpreted:
  1113. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1114. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1115. return true;
  1116. }
  1117. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1118. input, tag, mutable_unknown_fields()));
  1119. break;
  1120. }
  1121. }
  1122. }
  1123. return true;
  1124. #undef DO_
  1125. }
  1126. void SelfBuff::SerializeWithCachedSizes(
  1127. ::google::protobuf::io::CodedOutputStream* output) const {
  1128. // optional int32 buffId = 1;
  1129. if (has_buffid()) {
  1130. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->buffid(), output);
  1131. }
  1132. // optional int32 remainTime = 2;
  1133. if (has_remaintime()) {
  1134. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->remaintime(), output);
  1135. }
  1136. if (!unknown_fields().empty()) {
  1137. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1138. unknown_fields(), output);
  1139. }
  1140. }
  1141. ::google::protobuf::uint8* SelfBuff::SerializeWithCachedSizesToArray(
  1142. ::google::protobuf::uint8* target) const {
  1143. // optional int32 buffId = 1;
  1144. if (has_buffid()) {
  1145. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->buffid(), target);
  1146. }
  1147. // optional int32 remainTime = 2;
  1148. if (has_remaintime()) {
  1149. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->remaintime(), target);
  1150. }
  1151. if (!unknown_fields().empty()) {
  1152. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1153. unknown_fields(), target);
  1154. }
  1155. return target;
  1156. }
  1157. int SelfBuff::ByteSize() const {
  1158. int total_size = 0;
  1159. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1160. // optional int32 buffId = 1;
  1161. if (has_buffid()) {
  1162. total_size += 1 +
  1163. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1164. this->buffid());
  1165. }
  1166. // optional int32 remainTime = 2;
  1167. if (has_remaintime()) {
  1168. total_size += 1 +
  1169. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1170. this->remaintime());
  1171. }
  1172. }
  1173. if (!unknown_fields().empty()) {
  1174. total_size +=
  1175. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1176. unknown_fields());
  1177. }
  1178. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1179. _cached_size_ = total_size;
  1180. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1181. return total_size;
  1182. }
  1183. void SelfBuff::MergeFrom(const ::google::protobuf::Message& from) {
  1184. GOOGLE_CHECK_NE(&from, this);
  1185. const SelfBuff* source =
  1186. ::google::protobuf::internal::dynamic_cast_if_available<const SelfBuff*>(
  1187. &from);
  1188. if (source == NULL) {
  1189. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1190. } else {
  1191. MergeFrom(*source);
  1192. }
  1193. }
  1194. void SelfBuff::MergeFrom(const SelfBuff& from) {
  1195. GOOGLE_CHECK_NE(&from, this);
  1196. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1197. if (from.has_buffid()) {
  1198. set_buffid(from.buffid());
  1199. }
  1200. if (from.has_remaintime()) {
  1201. set_remaintime(from.remaintime());
  1202. }
  1203. }
  1204. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1205. }
  1206. void SelfBuff::CopyFrom(const ::google::protobuf::Message& from) {
  1207. if (&from == this) return;
  1208. Clear();
  1209. MergeFrom(from);
  1210. }
  1211. void SelfBuff::CopyFrom(const SelfBuff& from) {
  1212. if (&from == this) return;
  1213. Clear();
  1214. MergeFrom(from);
  1215. }
  1216. bool SelfBuff::IsInitialized() const {
  1217. return true;
  1218. }
  1219. void SelfBuff::Swap(SelfBuff* other) {
  1220. if (other != this) {
  1221. std::swap(buffid_, other->buffid_);
  1222. std::swap(remaintime_, other->remaintime_);
  1223. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1224. _unknown_fields_.Swap(&other->_unknown_fields_);
  1225. std::swap(_cached_size_, other->_cached_size_);
  1226. }
  1227. }
  1228. ::google::protobuf::Metadata SelfBuff::GetMetadata() const {
  1229. protobuf_AssignDescriptorsOnce();
  1230. ::google::protobuf::Metadata metadata;
  1231. metadata.descriptor = SelfBuff_descriptor_;
  1232. metadata.reflection = SelfBuff_reflection_;
  1233. return metadata;
  1234. }
  1235. // ===================================================================
  1236. #ifndef _MSC_VER
  1237. const int FunBuff::kBuffIdFieldNumber;
  1238. const int FunBuff::kEffTypeFieldNumber;
  1239. #endif // !_MSC_VER
  1240. FunBuff::FunBuff()
  1241. : ::google::protobuf::Message() {
  1242. SharedCtor();
  1243. }
  1244. void FunBuff::InitAsDefaultInstance() {
  1245. }
  1246. FunBuff::FunBuff(const FunBuff& from)
  1247. : ::google::protobuf::Message() {
  1248. SharedCtor();
  1249. MergeFrom(from);
  1250. }
  1251. void FunBuff::SharedCtor() {
  1252. _cached_size_ = 0;
  1253. buffid_ = 0;
  1254. efftype_ = 0;
  1255. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1256. }
  1257. FunBuff::~FunBuff() {
  1258. SharedDtor();
  1259. }
  1260. void FunBuff::SharedDtor() {
  1261. if (this != default_instance_) {
  1262. }
  1263. }
  1264. void FunBuff::SetCachedSize(int size) const {
  1265. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1266. _cached_size_ = size;
  1267. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1268. }
  1269. const ::google::protobuf::Descriptor* FunBuff::descriptor() {
  1270. protobuf_AssignDescriptorsOnce();
  1271. return FunBuff_descriptor_;
  1272. }
  1273. const FunBuff& FunBuff::default_instance() {
  1274. if (default_instance_ == NULL) protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
  1275. return *default_instance_;
  1276. }
  1277. FunBuff* FunBuff::default_instance_ = NULL;
  1278. FunBuff* FunBuff::New() const {
  1279. return new FunBuff;
  1280. }
  1281. void FunBuff::Clear() {
  1282. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1283. buffid_ = 0;
  1284. efftype_ = 0;
  1285. }
  1286. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1287. mutable_unknown_fields()->Clear();
  1288. }
  1289. bool FunBuff::MergePartialFromCodedStream(
  1290. ::google::protobuf::io::CodedInputStream* input) {
  1291. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  1292. ::google::protobuf::uint32 tag;
  1293. while ((tag = input->ReadTag()) != 0) {
  1294. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1295. // optional int32 buffId = 1;
  1296. case 1: {
  1297. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1298. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1299. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1300. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1301. input, &buffid_)));
  1302. set_has_buffid();
  1303. } else {
  1304. goto handle_uninterpreted;
  1305. }
  1306. if (input->ExpectTag(16)) goto parse_effType;
  1307. break;
  1308. }
  1309. // optional int32 effType = 2;
  1310. case 2: {
  1311. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1312. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1313. parse_effType:
  1314. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1315. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1316. input, &efftype_)));
  1317. set_has_efftype();
  1318. } else {
  1319. goto handle_uninterpreted;
  1320. }
  1321. if (input->ExpectAtEnd()) return true;
  1322. break;
  1323. }
  1324. default: {
  1325. handle_uninterpreted:
  1326. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1327. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1328. return true;
  1329. }
  1330. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1331. input, tag, mutable_unknown_fields()));
  1332. break;
  1333. }
  1334. }
  1335. }
  1336. return true;
  1337. #undef DO_
  1338. }
  1339. void FunBuff::SerializeWithCachedSizes(
  1340. ::google::protobuf::io::CodedOutputStream* output) const {
  1341. // optional int32 buffId = 1;
  1342. if (has_buffid()) {
  1343. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->buffid(), output);
  1344. }
  1345. // optional int32 effType = 2;
  1346. if (has_efftype()) {
  1347. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->efftype(), output);
  1348. }
  1349. if (!unknown_fields().empty()) {
  1350. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1351. unknown_fields(), output);
  1352. }
  1353. }
  1354. ::google::protobuf::uint8* FunBuff::SerializeWithCachedSizesToArray(
  1355. ::google::protobuf::uint8* target) const {
  1356. // optional int32 buffId = 1;
  1357. if (has_buffid()) {
  1358. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->buffid(), target);
  1359. }
  1360. // optional int32 effType = 2;
  1361. if (has_efftype()) {
  1362. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->efftype(), target);
  1363. }
  1364. if (!unknown_fields().empty()) {
  1365. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1366. unknown_fields(), target);
  1367. }
  1368. return target;
  1369. }
  1370. int FunBuff::ByteSize() const {
  1371. int total_size = 0;
  1372. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1373. // optional int32 buffId = 1;
  1374. if (has_buffid()) {
  1375. total_size += 1 +
  1376. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1377. this->buffid());
  1378. }
  1379. // optional int32 effType = 2;
  1380. if (has_efftype()) {
  1381. total_size += 1 +
  1382. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1383. this->efftype());
  1384. }
  1385. }
  1386. if (!unknown_fields().empty()) {
  1387. total_size +=
  1388. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1389. unknown_fields());
  1390. }
  1391. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1392. _cached_size_ = total_size;
  1393. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1394. return total_size;
  1395. }
  1396. void FunBuff::MergeFrom(const ::google::protobuf::Message& from) {
  1397. GOOGLE_CHECK_NE(&from, this);
  1398. const FunBuff* source =
  1399. ::google::protobuf::internal::dynamic_cast_if_available<const FunBuff*>(
  1400. &from);
  1401. if (source == NULL) {
  1402. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1403. } else {
  1404. MergeFrom(*source);
  1405. }
  1406. }
  1407. void FunBuff::MergeFrom(const FunBuff& from) {
  1408. GOOGLE_CHECK_NE(&from, this);
  1409. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1410. if (from.has_buffid()) {
  1411. set_buffid(from.buffid());
  1412. }
  1413. if (from.has_efftype()) {
  1414. set_efftype(from.efftype());
  1415. }
  1416. }
  1417. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1418. }
  1419. void FunBuff::CopyFrom(const ::google::protobuf::Message& from) {
  1420. if (&from == this) return;
  1421. Clear();
  1422. MergeFrom(from);
  1423. }
  1424. void FunBuff::CopyFrom(const FunBuff& from) {
  1425. if (&from == this) return;
  1426. Clear();
  1427. MergeFrom(from);
  1428. }
  1429. bool FunBuff::IsInitialized() const {
  1430. return true;
  1431. }
  1432. void FunBuff::Swap(FunBuff* other) {
  1433. if (other != this) {
  1434. std::swap(buffid_, other->buffid_);
  1435. std::swap(efftype_, other->efftype_);
  1436. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1437. _unknown_fields_.Swap(&other->_unknown_fields_);
  1438. std::swap(_cached_size_, other->_cached_size_);
  1439. }
  1440. }
  1441. ::google::protobuf::Metadata FunBuff::GetMetadata() const {
  1442. protobuf_AssignDescriptorsOnce();
  1443. ::google::protobuf::Metadata metadata;
  1444. metadata.descriptor = FunBuff_descriptor_;
  1445. metadata.reflection = FunBuff_reflection_;
  1446. return metadata;
  1447. }
  1448. // ===================================================================
  1449. #ifndef _MSC_VER
  1450. const int msg_scene_info::kSceneidFieldNumber;
  1451. const int msg_scene_info::kRoomidFieldNumber;
  1452. const int msg_scene_info::kSeatInfoFieldNumber;
  1453. const int msg_scene_info::kFishInfosFieldNumber;
  1454. const int msg_scene_info::kGeneratorInfosFieldNumber;
  1455. const int msg_scene_info::kBossTimeFieldNumber;
  1456. const int msg_scene_info::kSelfBuffListFieldNumber;
  1457. const int msg_scene_info::kSelfFunBuffListFieldNumber;
  1458. const int msg_scene_info::kHighGradeJackpotFieldNumber;
  1459. const int msg_scene_info::kFrozeRemainTimeFieldNumber;
  1460. #endif // !_MSC_VER
  1461. msg_scene_info::msg_scene_info()
  1462. : ::google::protobuf::Message() {
  1463. SharedCtor();
  1464. }
  1465. void msg_scene_info::InitAsDefaultInstance() {
  1466. }
  1467. msg_scene_info::msg_scene_info(const msg_scene_info& from)
  1468. : ::google::protobuf::Message() {
  1469. SharedCtor();
  1470. MergeFrom(from);
  1471. }
  1472. void msg_scene_info::SharedCtor() {
  1473. _cached_size_ = 0;
  1474. sceneid_ = 0;
  1475. roomid_ = 0;
  1476. boss_time_ = 0;
  1477. high_grade_jackpot_ = GOOGLE_LONGLONG(0);
  1478. frozeremaintime_ = 0;
  1479. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1480. }
  1481. msg_scene_info::~msg_scene_info() {
  1482. SharedDtor();
  1483. }
  1484. void msg_scene_info::SharedDtor() {
  1485. if (this != default_instance_) {
  1486. }
  1487. }
  1488. void msg_scene_info::SetCachedSize(int size) const {
  1489. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1490. _cached_size_ = size;
  1491. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1492. }
  1493. const ::google::protobuf::Descriptor* msg_scene_info::descriptor() {
  1494. protobuf_AssignDescriptorsOnce();
  1495. return msg_scene_info_descriptor_;
  1496. }
  1497. const msg_scene_info& msg_scene_info::default_instance() {
  1498. if (default_instance_ == NULL) protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
  1499. return *default_instance_;
  1500. }
  1501. msg_scene_info* msg_scene_info::default_instance_ = NULL;
  1502. msg_scene_info* msg_scene_info::New() const {
  1503. return new msg_scene_info;
  1504. }
  1505. void msg_scene_info::Clear() {
  1506. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1507. sceneid_ = 0;
  1508. roomid_ = 0;
  1509. boss_time_ = 0;
  1510. }
  1511. if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
  1512. high_grade_jackpot_ = GOOGLE_LONGLONG(0);
  1513. frozeremaintime_ = 0;
  1514. }
  1515. seat_info_.Clear();
  1516. fish_infos_.Clear();
  1517. generator_infos_.Clear();
  1518. selfbufflist_.Clear();
  1519. selffunbufflist_.Clear();
  1520. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1521. mutable_unknown_fields()->Clear();
  1522. }
  1523. bool msg_scene_info::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 int32 sceneid = 1;
  1530. case 1: {
  1531. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1532. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1533. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1534. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1535. input, &sceneid_)));
  1536. set_has_sceneid();
  1537. } else {
  1538. goto handle_uninterpreted;
  1539. }
  1540. if (input->ExpectTag(16)) goto parse_roomid;
  1541. break;
  1542. }
  1543. // optional int32 roomid = 2;
  1544. case 2: {
  1545. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1546. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1547. parse_roomid:
  1548. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1549. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1550. input, &roomid_)));
  1551. set_has_roomid();
  1552. } else {
  1553. goto handle_uninterpreted;
  1554. }
  1555. if (input->ExpectTag(26)) goto parse_seat_info;
  1556. break;
  1557. }
  1558. // repeated .fish_protocols.msg_seat_info seat_info = 3;
  1559. case 3: {
  1560. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1561. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1562. parse_seat_info:
  1563. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1564. input, add_seat_info()));
  1565. } else {
  1566. goto handle_uninterpreted;
  1567. }
  1568. if (input->ExpectTag(26)) goto parse_seat_info;
  1569. if (input->ExpectTag(34)) goto parse_fish_infos;
  1570. break;
  1571. }
  1572. // repeated .fish_protocols.msg_fish_init fish_infos = 4;
  1573. case 4: {
  1574. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1575. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1576. parse_fish_infos:
  1577. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1578. input, add_fish_infos()));
  1579. } else {
  1580. goto handle_uninterpreted;
  1581. }
  1582. if (input->ExpectTag(34)) goto parse_fish_infos;
  1583. if (input->ExpectTag(42)) goto parse_generator_infos;
  1584. break;
  1585. }
  1586. // repeated .fish_protocols.msg_generator_init generator_infos = 5;
  1587. case 5: {
  1588. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1589. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1590. parse_generator_infos:
  1591. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1592. input, add_generator_infos()));
  1593. } else {
  1594. goto handle_uninterpreted;
  1595. }
  1596. if (input->ExpectTag(42)) goto parse_generator_infos;
  1597. if (input->ExpectTag(48)) goto parse_boss_time;
  1598. break;
  1599. }
  1600. // optional int32 boss_time = 6;
  1601. case 6: {
  1602. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1603. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1604. parse_boss_time:
  1605. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1606. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1607. input, &boss_time_)));
  1608. set_has_boss_time();
  1609. } else {
  1610. goto handle_uninterpreted;
  1611. }
  1612. if (input->ExpectTag(58)) goto parse_selfBuffList;
  1613. break;
  1614. }
  1615. // repeated .fish_protocols.SelfBuff selfBuffList = 7;
  1616. case 7: {
  1617. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1618. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1619. parse_selfBuffList:
  1620. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1621. input, add_selfbufflist()));
  1622. } else {
  1623. goto handle_uninterpreted;
  1624. }
  1625. if (input->ExpectTag(58)) goto parse_selfBuffList;
  1626. if (input->ExpectTag(66)) goto parse_selfFunBuffList;
  1627. break;
  1628. }
  1629. // repeated .fish_protocols.FunBuff selfFunBuffList = 8;
  1630. case 8: {
  1631. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1632. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1633. parse_selfFunBuffList:
  1634. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1635. input, add_selffunbufflist()));
  1636. } else {
  1637. goto handle_uninterpreted;
  1638. }
  1639. if (input->ExpectTag(66)) goto parse_selfFunBuffList;
  1640. if (input->ExpectTag(72)) goto parse_high_grade_jackpot;
  1641. break;
  1642. }
  1643. // optional int64 high_grade_jackpot = 9;
  1644. case 9: {
  1645. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1646. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1647. parse_high_grade_jackpot:
  1648. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1649. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  1650. input, &high_grade_jackpot_)));
  1651. set_has_high_grade_jackpot();
  1652. } else {
  1653. goto handle_uninterpreted;
  1654. }
  1655. if (input->ExpectTag(80)) goto parse_frozeRemainTime;
  1656. break;
  1657. }
  1658. // optional int32 frozeRemainTime = 10;
  1659. case 10: {
  1660. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1661. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1662. parse_frozeRemainTime:
  1663. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1664. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1665. input, &frozeremaintime_)));
  1666. set_has_frozeremaintime();
  1667. } else {
  1668. goto handle_uninterpreted;
  1669. }
  1670. if (input->ExpectAtEnd()) return true;
  1671. break;
  1672. }
  1673. default: {
  1674. handle_uninterpreted:
  1675. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1676. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1677. return true;
  1678. }
  1679. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1680. input, tag, mutable_unknown_fields()));
  1681. break;
  1682. }
  1683. }
  1684. }
  1685. return true;
  1686. #undef DO_
  1687. }
  1688. void msg_scene_info::SerializeWithCachedSizes(
  1689. ::google::protobuf::io::CodedOutputStream* output) const {
  1690. // optional int32 sceneid = 1;
  1691. if (has_sceneid()) {
  1692. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->sceneid(), output);
  1693. }
  1694. // optional int32 roomid = 2;
  1695. if (has_roomid()) {
  1696. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->roomid(), output);
  1697. }
  1698. // repeated .fish_protocols.msg_seat_info seat_info = 3;
  1699. for (int i = 0; i < this->seat_info_size(); i++) {
  1700. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1701. 3, this->seat_info(i), output);
  1702. }
  1703. // repeated .fish_protocols.msg_fish_init fish_infos = 4;
  1704. for (int i = 0; i < this->fish_infos_size(); i++) {
  1705. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1706. 4, this->fish_infos(i), output);
  1707. }
  1708. // repeated .fish_protocols.msg_generator_init generator_infos = 5;
  1709. for (int i = 0; i < this->generator_infos_size(); i++) {
  1710. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1711. 5, this->generator_infos(i), output);
  1712. }
  1713. // optional int32 boss_time = 6;
  1714. if (has_boss_time()) {
  1715. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->boss_time(), output);
  1716. }
  1717. // repeated .fish_protocols.SelfBuff selfBuffList = 7;
  1718. for (int i = 0; i < this->selfbufflist_size(); i++) {
  1719. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1720. 7, this->selfbufflist(i), output);
  1721. }
  1722. // repeated .fish_protocols.FunBuff selfFunBuffList = 8;
  1723. for (int i = 0; i < this->selffunbufflist_size(); i++) {
  1724. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1725. 8, this->selffunbufflist(i), output);
  1726. }
  1727. // optional int64 high_grade_jackpot = 9;
  1728. if (has_high_grade_jackpot()) {
  1729. ::google::protobuf::internal::WireFormatLite::WriteInt64(9, this->high_grade_jackpot(), output);
  1730. }
  1731. // optional int32 frozeRemainTime = 10;
  1732. if (has_frozeremaintime()) {
  1733. ::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->frozeremaintime(), output);
  1734. }
  1735. if (!unknown_fields().empty()) {
  1736. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1737. unknown_fields(), output);
  1738. }
  1739. }
  1740. ::google::protobuf::uint8* msg_scene_info::SerializeWithCachedSizesToArray(
  1741. ::google::protobuf::uint8* target) const {
  1742. // optional int32 sceneid = 1;
  1743. if (has_sceneid()) {
  1744. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->sceneid(), target);
  1745. }
  1746. // optional int32 roomid = 2;
  1747. if (has_roomid()) {
  1748. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->roomid(), target);
  1749. }
  1750. // repeated .fish_protocols.msg_seat_info seat_info = 3;
  1751. for (int i = 0; i < this->seat_info_size(); i++) {
  1752. target = ::google::protobuf::internal::WireFormatLite::
  1753. WriteMessageNoVirtualToArray(
  1754. 3, this->seat_info(i), target);
  1755. }
  1756. // repeated .fish_protocols.msg_fish_init fish_infos = 4;
  1757. for (int i = 0; i < this->fish_infos_size(); i++) {
  1758. target = ::google::protobuf::internal::WireFormatLite::
  1759. WriteMessageNoVirtualToArray(
  1760. 4, this->fish_infos(i), target);
  1761. }
  1762. // repeated .fish_protocols.msg_generator_init generator_infos = 5;
  1763. for (int i = 0; i < this->generator_infos_size(); i++) {
  1764. target = ::google::protobuf::internal::WireFormatLite::
  1765. WriteMessageNoVirtualToArray(
  1766. 5, this->generator_infos(i), target);
  1767. }
  1768. // optional int32 boss_time = 6;
  1769. if (has_boss_time()) {
  1770. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->boss_time(), target);
  1771. }
  1772. // repeated .fish_protocols.SelfBuff selfBuffList = 7;
  1773. for (int i = 0; i < this->selfbufflist_size(); i++) {
  1774. target = ::google::protobuf::internal::WireFormatLite::
  1775. WriteMessageNoVirtualToArray(
  1776. 7, this->selfbufflist(i), target);
  1777. }
  1778. // repeated .fish_protocols.FunBuff selfFunBuffList = 8;
  1779. for (int i = 0; i < this->selffunbufflist_size(); i++) {
  1780. target = ::google::protobuf::internal::WireFormatLite::
  1781. WriteMessageNoVirtualToArray(
  1782. 8, this->selffunbufflist(i), target);
  1783. }
  1784. // optional int64 high_grade_jackpot = 9;
  1785. if (has_high_grade_jackpot()) {
  1786. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(9, this->high_grade_jackpot(), target);
  1787. }
  1788. // optional int32 frozeRemainTime = 10;
  1789. if (has_frozeremaintime()) {
  1790. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->frozeremaintime(), target);
  1791. }
  1792. if (!unknown_fields().empty()) {
  1793. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1794. unknown_fields(), target);
  1795. }
  1796. return target;
  1797. }
  1798. int msg_scene_info::ByteSize() const {
  1799. int total_size = 0;
  1800. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1801. // optional int32 sceneid = 1;
  1802. if (has_sceneid()) {
  1803. total_size += 1 +
  1804. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1805. this->sceneid());
  1806. }
  1807. // optional int32 roomid = 2;
  1808. if (has_roomid()) {
  1809. total_size += 1 +
  1810. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1811. this->roomid());
  1812. }
  1813. // optional int32 boss_time = 6;
  1814. if (has_boss_time()) {
  1815. total_size += 1 +
  1816. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1817. this->boss_time());
  1818. }
  1819. }
  1820. if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
  1821. // optional int64 high_grade_jackpot = 9;
  1822. if (has_high_grade_jackpot()) {
  1823. total_size += 1 +
  1824. ::google::protobuf::internal::WireFormatLite::Int64Size(
  1825. this->high_grade_jackpot());
  1826. }
  1827. // optional int32 frozeRemainTime = 10;
  1828. if (has_frozeremaintime()) {
  1829. total_size += 1 +
  1830. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1831. this->frozeremaintime());
  1832. }
  1833. }
  1834. // repeated .fish_protocols.msg_seat_info seat_info = 3;
  1835. total_size += 1 * this->seat_info_size();
  1836. for (int i = 0; i < this->seat_info_size(); i++) {
  1837. total_size +=
  1838. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1839. this->seat_info(i));
  1840. }
  1841. // repeated .fish_protocols.msg_fish_init fish_infos = 4;
  1842. total_size += 1 * this->fish_infos_size();
  1843. for (int i = 0; i < this->fish_infos_size(); i++) {
  1844. total_size +=
  1845. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1846. this->fish_infos(i));
  1847. }
  1848. // repeated .fish_protocols.msg_generator_init generator_infos = 5;
  1849. total_size += 1 * this->generator_infos_size();
  1850. for (int i = 0; i < this->generator_infos_size(); i++) {
  1851. total_size +=
  1852. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1853. this->generator_infos(i));
  1854. }
  1855. // repeated .fish_protocols.SelfBuff selfBuffList = 7;
  1856. total_size += 1 * this->selfbufflist_size();
  1857. for (int i = 0; i < this->selfbufflist_size(); i++) {
  1858. total_size +=
  1859. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1860. this->selfbufflist(i));
  1861. }
  1862. // repeated .fish_protocols.FunBuff selfFunBuffList = 8;
  1863. total_size += 1 * this->selffunbufflist_size();
  1864. for (int i = 0; i < this->selffunbufflist_size(); i++) {
  1865. total_size +=
  1866. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1867. this->selffunbufflist(i));
  1868. }
  1869. if (!unknown_fields().empty()) {
  1870. total_size +=
  1871. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1872. unknown_fields());
  1873. }
  1874. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1875. _cached_size_ = total_size;
  1876. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1877. return total_size;
  1878. }
  1879. void msg_scene_info::MergeFrom(const ::google::protobuf::Message& from) {
  1880. GOOGLE_CHECK_NE(&from, this);
  1881. const msg_scene_info* source =
  1882. ::google::protobuf::internal::dynamic_cast_if_available<const msg_scene_info*>(
  1883. &from);
  1884. if (source == NULL) {
  1885. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1886. } else {
  1887. MergeFrom(*source);
  1888. }
  1889. }
  1890. void msg_scene_info::MergeFrom(const msg_scene_info& from) {
  1891. GOOGLE_CHECK_NE(&from, this);
  1892. seat_info_.MergeFrom(from.seat_info_);
  1893. fish_infos_.MergeFrom(from.fish_infos_);
  1894. generator_infos_.MergeFrom(from.generator_infos_);
  1895. selfbufflist_.MergeFrom(from.selfbufflist_);
  1896. selffunbufflist_.MergeFrom(from.selffunbufflist_);
  1897. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1898. if (from.has_sceneid()) {
  1899. set_sceneid(from.sceneid());
  1900. }
  1901. if (from.has_roomid()) {
  1902. set_roomid(from.roomid());
  1903. }
  1904. if (from.has_boss_time()) {
  1905. set_boss_time(from.boss_time());
  1906. }
  1907. }
  1908. if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
  1909. if (from.has_high_grade_jackpot()) {
  1910. set_high_grade_jackpot(from.high_grade_jackpot());
  1911. }
  1912. if (from.has_frozeremaintime()) {
  1913. set_frozeremaintime(from.frozeremaintime());
  1914. }
  1915. }
  1916. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1917. }
  1918. void msg_scene_info::CopyFrom(const ::google::protobuf::Message& from) {
  1919. if (&from == this) return;
  1920. Clear();
  1921. MergeFrom(from);
  1922. }
  1923. void msg_scene_info::CopyFrom(const msg_scene_info& from) {
  1924. if (&from == this) return;
  1925. Clear();
  1926. MergeFrom(from);
  1927. }
  1928. bool msg_scene_info::IsInitialized() const {
  1929. return true;
  1930. }
  1931. void msg_scene_info::Swap(msg_scene_info* other) {
  1932. if (other != this) {
  1933. std::swap(sceneid_, other->sceneid_);
  1934. std::swap(roomid_, other->roomid_);
  1935. seat_info_.Swap(&other->seat_info_);
  1936. fish_infos_.Swap(&other->fish_infos_);
  1937. generator_infos_.Swap(&other->generator_infos_);
  1938. std::swap(boss_time_, other->boss_time_);
  1939. selfbufflist_.Swap(&other->selfbufflist_);
  1940. selffunbufflist_.Swap(&other->selffunbufflist_);
  1941. std::swap(high_grade_jackpot_, other->high_grade_jackpot_);
  1942. std::swap(frozeremaintime_, other->frozeremaintime_);
  1943. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1944. _unknown_fields_.Swap(&other->_unknown_fields_);
  1945. std::swap(_cached_size_, other->_cached_size_);
  1946. }
  1947. }
  1948. ::google::protobuf::Metadata msg_scene_info::GetMetadata() const {
  1949. protobuf_AssignDescriptorsOnce();
  1950. ::google::protobuf::Metadata metadata;
  1951. metadata.descriptor = msg_scene_info_descriptor_;
  1952. metadata.reflection = msg_scene_info_reflection_;
  1953. return metadata;
  1954. }
  1955. // ===================================================================
  1956. #ifndef _MSC_VER
  1957. const int msg_buff_info::kBuffidFieldNumber;
  1958. const int msg_buff_info::kOuttimeFieldNumber;
  1959. #endif // !_MSC_VER
  1960. msg_buff_info::msg_buff_info()
  1961. : ::google::protobuf::Message() {
  1962. SharedCtor();
  1963. }
  1964. void msg_buff_info::InitAsDefaultInstance() {
  1965. }
  1966. msg_buff_info::msg_buff_info(const msg_buff_info& from)
  1967. : ::google::protobuf::Message() {
  1968. SharedCtor();
  1969. MergeFrom(from);
  1970. }
  1971. void msg_buff_info::SharedCtor() {
  1972. _cached_size_ = 0;
  1973. buffid_ = 0;
  1974. outtime_ = -1;
  1975. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1976. }
  1977. msg_buff_info::~msg_buff_info() {
  1978. SharedDtor();
  1979. }
  1980. void msg_buff_info::SharedDtor() {
  1981. if (this != default_instance_) {
  1982. }
  1983. }
  1984. void msg_buff_info::SetCachedSize(int size) const {
  1985. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1986. _cached_size_ = size;
  1987. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1988. }
  1989. const ::google::protobuf::Descriptor* msg_buff_info::descriptor() {
  1990. protobuf_AssignDescriptorsOnce();
  1991. return msg_buff_info_descriptor_;
  1992. }
  1993. const msg_buff_info& msg_buff_info::default_instance() {
  1994. if (default_instance_ == NULL) protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
  1995. return *default_instance_;
  1996. }
  1997. msg_buff_info* msg_buff_info::default_instance_ = NULL;
  1998. msg_buff_info* msg_buff_info::New() const {
  1999. return new msg_buff_info;
  2000. }
  2001. void msg_buff_info::Clear() {
  2002. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2003. buffid_ = 0;
  2004. outtime_ = -1;
  2005. }
  2006. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2007. mutable_unknown_fields()->Clear();
  2008. }
  2009. bool msg_buff_info::MergePartialFromCodedStream(
  2010. ::google::protobuf::io::CodedInputStream* input) {
  2011. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  2012. ::google::protobuf::uint32 tag;
  2013. while ((tag = input->ReadTag()) != 0) {
  2014. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2015. // optional int32 buffid = 1;
  2016. case 1: {
  2017. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2018. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2019. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2020. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2021. input, &buffid_)));
  2022. set_has_buffid();
  2023. } else {
  2024. goto handle_uninterpreted;
  2025. }
  2026. if (input->ExpectTag(16)) goto parse_outtime;
  2027. break;
  2028. }
  2029. // optional int32 outtime = 2 [default = -1];
  2030. case 2: {
  2031. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2032. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2033. parse_outtime:
  2034. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2035. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2036. input, &outtime_)));
  2037. set_has_outtime();
  2038. } else {
  2039. goto handle_uninterpreted;
  2040. }
  2041. if (input->ExpectAtEnd()) return true;
  2042. break;
  2043. }
  2044. default: {
  2045. handle_uninterpreted:
  2046. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2047. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2048. return true;
  2049. }
  2050. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2051. input, tag, mutable_unknown_fields()));
  2052. break;
  2053. }
  2054. }
  2055. }
  2056. return true;
  2057. #undef DO_
  2058. }
  2059. void msg_buff_info::SerializeWithCachedSizes(
  2060. ::google::protobuf::io::CodedOutputStream* output) const {
  2061. // optional int32 buffid = 1;
  2062. if (has_buffid()) {
  2063. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->buffid(), output);
  2064. }
  2065. // optional int32 outtime = 2 [default = -1];
  2066. if (has_outtime()) {
  2067. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->outtime(), output);
  2068. }
  2069. if (!unknown_fields().empty()) {
  2070. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2071. unknown_fields(), output);
  2072. }
  2073. }
  2074. ::google::protobuf::uint8* msg_buff_info::SerializeWithCachedSizesToArray(
  2075. ::google::protobuf::uint8* target) const {
  2076. // optional int32 buffid = 1;
  2077. if (has_buffid()) {
  2078. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->buffid(), target);
  2079. }
  2080. // optional int32 outtime = 2 [default = -1];
  2081. if (has_outtime()) {
  2082. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->outtime(), target);
  2083. }
  2084. if (!unknown_fields().empty()) {
  2085. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2086. unknown_fields(), target);
  2087. }
  2088. return target;
  2089. }
  2090. int msg_buff_info::ByteSize() const {
  2091. int total_size = 0;
  2092. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2093. // optional int32 buffid = 1;
  2094. if (has_buffid()) {
  2095. total_size += 1 +
  2096. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2097. this->buffid());
  2098. }
  2099. // optional int32 outtime = 2 [default = -1];
  2100. if (has_outtime()) {
  2101. total_size += 1 +
  2102. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2103. this->outtime());
  2104. }
  2105. }
  2106. if (!unknown_fields().empty()) {
  2107. total_size +=
  2108. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2109. unknown_fields());
  2110. }
  2111. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2112. _cached_size_ = total_size;
  2113. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2114. return total_size;
  2115. }
  2116. void msg_buff_info::MergeFrom(const ::google::protobuf::Message& from) {
  2117. GOOGLE_CHECK_NE(&from, this);
  2118. const msg_buff_info* source =
  2119. ::google::protobuf::internal::dynamic_cast_if_available<const msg_buff_info*>(
  2120. &from);
  2121. if (source == NULL) {
  2122. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2123. } else {
  2124. MergeFrom(*source);
  2125. }
  2126. }
  2127. void msg_buff_info::MergeFrom(const msg_buff_info& from) {
  2128. GOOGLE_CHECK_NE(&from, this);
  2129. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2130. if (from.has_buffid()) {
  2131. set_buffid(from.buffid());
  2132. }
  2133. if (from.has_outtime()) {
  2134. set_outtime(from.outtime());
  2135. }
  2136. }
  2137. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  2138. }
  2139. void msg_buff_info::CopyFrom(const ::google::protobuf::Message& from) {
  2140. if (&from == this) return;
  2141. Clear();
  2142. MergeFrom(from);
  2143. }
  2144. void msg_buff_info::CopyFrom(const msg_buff_info& from) {
  2145. if (&from == this) return;
  2146. Clear();
  2147. MergeFrom(from);
  2148. }
  2149. bool msg_buff_info::IsInitialized() const {
  2150. return true;
  2151. }
  2152. void msg_buff_info::Swap(msg_buff_info* other) {
  2153. if (other != this) {
  2154. std::swap(buffid_, other->buffid_);
  2155. std::swap(outtime_, other->outtime_);
  2156. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2157. _unknown_fields_.Swap(&other->_unknown_fields_);
  2158. std::swap(_cached_size_, other->_cached_size_);
  2159. }
  2160. }
  2161. ::google::protobuf::Metadata msg_buff_info::GetMetadata() const {
  2162. protobuf_AssignDescriptorsOnce();
  2163. ::google::protobuf::Metadata metadata;
  2164. metadata.descriptor = msg_buff_info_descriptor_;
  2165. metadata.reflection = msg_buff_info_reflection_;
  2166. return metadata;
  2167. }
  2168. // ===================================================================
  2169. #ifndef _MSC_VER
  2170. const int msg_seat_info::kSeatIndexFieldNumber;
  2171. const int msg_seat_info::kPlayerIdFieldNumber;
  2172. const int msg_seat_info::kNicknameFieldNumber;
  2173. const int msg_seat_info::kPlayerGoldFieldNumber;
  2174. const int msg_seat_info::kTurretRateFieldNumber;
  2175. const int msg_seat_info::kTurretIdFieldNumber;
  2176. const int msg_seat_info::kTurretLvFieldNumber;
  2177. const int msg_seat_info::kWingIdFieldNumber;
  2178. const int msg_seat_info::kWingLvFieldNumber;
  2179. const int msg_seat_info::kBufflistFieldNumber;
  2180. const int msg_seat_info::kHeadidFieldNumber;
  2181. const int msg_seat_info::kFrameidFieldNumber;
  2182. const int msg_seat_info::kPointFieldNumber;
  2183. const int msg_seat_info::kVipFieldNumber;
  2184. const int msg_seat_info::kPlayerLvFieldNumber;
  2185. const int msg_seat_info::kPlayerDiamondFieldNumber;
  2186. const int msg_seat_info::kPlayerTicketFieldNumber;
  2187. const int msg_seat_info::kDimensityFieldNumber;
  2188. const int msg_seat_info::kRoomRateFieldNumber;
  2189. const int msg_seat_info::kBulletPowerFieldNumber;
  2190. #endif // !_MSC_VER
  2191. msg_seat_info::msg_seat_info()
  2192. : ::google::protobuf::Message() {
  2193. SharedCtor();
  2194. }
  2195. void msg_seat_info::InitAsDefaultInstance() {
  2196. }
  2197. msg_seat_info::msg_seat_info(const msg_seat_info& from)
  2198. : ::google::protobuf::Message() {
  2199. SharedCtor();
  2200. MergeFrom(from);
  2201. }
  2202. void msg_seat_info::SharedCtor() {
  2203. _cached_size_ = 0;
  2204. seat_index_ = 0;
  2205. player_id_ = 0;
  2206. nickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  2207. player_gold_ = GOOGLE_LONGLONG(0);
  2208. turret_rate_ = 0;
  2209. turret_id_ = 0;
  2210. turret_lv_ = 0;
  2211. wing_id_ = 0;
  2212. wing_lv_ = 0;
  2213. headid_ = 0;
  2214. frameid_ = 0;
  2215. point_ = 0;
  2216. vip_ = 0;
  2217. player_lv_ = 0;
  2218. player_diamond_ = 0;
  2219. player_ticket_ = 0;
  2220. dimensity_ = 0;
  2221. room_rate_ = 0;
  2222. bullet_power_ = 0;
  2223. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2224. }
  2225. msg_seat_info::~msg_seat_info() {
  2226. SharedDtor();
  2227. }
  2228. void msg_seat_info::SharedDtor() {
  2229. if (nickname_ != &::google::protobuf::internal::kEmptyString) {
  2230. delete nickname_;
  2231. }
  2232. if (this != default_instance_) {
  2233. }
  2234. }
  2235. void msg_seat_info::SetCachedSize(int size) const {
  2236. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2237. _cached_size_ = size;
  2238. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2239. }
  2240. const ::google::protobuf::Descriptor* msg_seat_info::descriptor() {
  2241. protobuf_AssignDescriptorsOnce();
  2242. return msg_seat_info_descriptor_;
  2243. }
  2244. const msg_seat_info& msg_seat_info::default_instance() {
  2245. if (default_instance_ == NULL) protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
  2246. return *default_instance_;
  2247. }
  2248. msg_seat_info* msg_seat_info::default_instance_ = NULL;
  2249. msg_seat_info* msg_seat_info::New() const {
  2250. return new msg_seat_info;
  2251. }
  2252. void msg_seat_info::Clear() {
  2253. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2254. seat_index_ = 0;
  2255. player_id_ = 0;
  2256. if (has_nickname()) {
  2257. if (nickname_ != &::google::protobuf::internal::kEmptyString) {
  2258. nickname_->clear();
  2259. }
  2260. }
  2261. player_gold_ = GOOGLE_LONGLONG(0);
  2262. turret_rate_ = 0;
  2263. turret_id_ = 0;
  2264. turret_lv_ = 0;
  2265. wing_id_ = 0;
  2266. }
  2267. if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
  2268. wing_lv_ = 0;
  2269. headid_ = 0;
  2270. frameid_ = 0;
  2271. point_ = 0;
  2272. vip_ = 0;
  2273. player_lv_ = 0;
  2274. player_diamond_ = 0;
  2275. }
  2276. if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
  2277. player_ticket_ = 0;
  2278. dimensity_ = 0;
  2279. room_rate_ = 0;
  2280. bullet_power_ = 0;
  2281. }
  2282. bufflist_.Clear();
  2283. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2284. mutable_unknown_fields()->Clear();
  2285. }
  2286. bool msg_seat_info::MergePartialFromCodedStream(
  2287. ::google::protobuf::io::CodedInputStream* input) {
  2288. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  2289. ::google::protobuf::uint32 tag;
  2290. while ((tag = input->ReadTag()) != 0) {
  2291. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2292. // optional int32 seat_index = 1;
  2293. case 1: {
  2294. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2295. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2296. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2297. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2298. input, &seat_index_)));
  2299. set_has_seat_index();
  2300. } else {
  2301. goto handle_uninterpreted;
  2302. }
  2303. if (input->ExpectTag(16)) goto parse_player_id;
  2304. break;
  2305. }
  2306. // optional int32 player_id = 2;
  2307. case 2: {
  2308. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2309. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2310. parse_player_id:
  2311. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2312. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2313. input, &player_id_)));
  2314. set_has_player_id();
  2315. } else {
  2316. goto handle_uninterpreted;
  2317. }
  2318. if (input->ExpectTag(26)) goto parse_nickname;
  2319. break;
  2320. }
  2321. // optional string nickname = 3;
  2322. case 3: {
  2323. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2324. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  2325. parse_nickname:
  2326. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2327. input, this->mutable_nickname()));
  2328. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  2329. this->nickname().data(), this->nickname().length(),
  2330. ::google::protobuf::internal::WireFormat::PARSE);
  2331. } else {
  2332. goto handle_uninterpreted;
  2333. }
  2334. if (input->ExpectTag(32)) goto parse_player_gold;
  2335. break;
  2336. }
  2337. // optional int64 player_gold = 4;
  2338. case 4: {
  2339. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2340. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2341. parse_player_gold:
  2342. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2343. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  2344. input, &player_gold_)));
  2345. set_has_player_gold();
  2346. } else {
  2347. goto handle_uninterpreted;
  2348. }
  2349. if (input->ExpectTag(40)) goto parse_turret_rate;
  2350. break;
  2351. }
  2352. // optional int32 turret_rate = 5;
  2353. case 5: {
  2354. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2355. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2356. parse_turret_rate:
  2357. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2358. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2359. input, &turret_rate_)));
  2360. set_has_turret_rate();
  2361. } else {
  2362. goto handle_uninterpreted;
  2363. }
  2364. if (input->ExpectTag(48)) goto parse_turret_id;
  2365. break;
  2366. }
  2367. // optional int32 turret_id = 6;
  2368. case 6: {
  2369. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2370. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2371. parse_turret_id:
  2372. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2373. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2374. input, &turret_id_)));
  2375. set_has_turret_id();
  2376. } else {
  2377. goto handle_uninterpreted;
  2378. }
  2379. if (input->ExpectTag(56)) goto parse_turret_lv;
  2380. break;
  2381. }
  2382. // optional int32 turret_lv = 7;
  2383. case 7: {
  2384. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2385. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2386. parse_turret_lv:
  2387. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2388. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2389. input, &turret_lv_)));
  2390. set_has_turret_lv();
  2391. } else {
  2392. goto handle_uninterpreted;
  2393. }
  2394. if (input->ExpectTag(64)) goto parse_wing_id;
  2395. break;
  2396. }
  2397. // optional int32 wing_id = 8;
  2398. case 8: {
  2399. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2400. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2401. parse_wing_id:
  2402. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2403. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2404. input, &wing_id_)));
  2405. set_has_wing_id();
  2406. } else {
  2407. goto handle_uninterpreted;
  2408. }
  2409. if (input->ExpectTag(72)) goto parse_wing_lv;
  2410. break;
  2411. }
  2412. // optional int32 wing_lv = 9;
  2413. case 9: {
  2414. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2415. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2416. parse_wing_lv:
  2417. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2418. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2419. input, &wing_lv_)));
  2420. set_has_wing_lv();
  2421. } else {
  2422. goto handle_uninterpreted;
  2423. }
  2424. if (input->ExpectTag(82)) goto parse_bufflist;
  2425. break;
  2426. }
  2427. // repeated .fish_protocols.msg_buff_info bufflist = 10;
  2428. case 10: {
  2429. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2430. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  2431. parse_bufflist:
  2432. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2433. input, add_bufflist()));
  2434. } else {
  2435. goto handle_uninterpreted;
  2436. }
  2437. if (input->ExpectTag(82)) goto parse_bufflist;
  2438. if (input->ExpectTag(88)) goto parse_headid;
  2439. break;
  2440. }
  2441. // optional int32 headid = 11;
  2442. case 11: {
  2443. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2444. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2445. parse_headid:
  2446. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2447. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2448. input, &headid_)));
  2449. set_has_headid();
  2450. } else {
  2451. goto handle_uninterpreted;
  2452. }
  2453. if (input->ExpectTag(96)) goto parse_frameid;
  2454. break;
  2455. }
  2456. // optional int32 frameid = 12;
  2457. case 12: {
  2458. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2459. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2460. parse_frameid:
  2461. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2462. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2463. input, &frameid_)));
  2464. set_has_frameid();
  2465. } else {
  2466. goto handle_uninterpreted;
  2467. }
  2468. if (input->ExpectTag(104)) goto parse_point;
  2469. break;
  2470. }
  2471. // optional int32 point = 13;
  2472. case 13: {
  2473. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2474. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2475. parse_point:
  2476. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2477. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2478. input, &point_)));
  2479. set_has_point();
  2480. } else {
  2481. goto handle_uninterpreted;
  2482. }
  2483. if (input->ExpectTag(112)) goto parse_vip;
  2484. break;
  2485. }
  2486. // optional int32 vip = 14;
  2487. case 14: {
  2488. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2489. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2490. parse_vip:
  2491. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2492. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2493. input, &vip_)));
  2494. set_has_vip();
  2495. } else {
  2496. goto handle_uninterpreted;
  2497. }
  2498. if (input->ExpectTag(120)) goto parse_player_lv;
  2499. break;
  2500. }
  2501. // optional int32 player_lv = 15;
  2502. case 15: {
  2503. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2504. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2505. parse_player_lv:
  2506. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2507. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2508. input, &player_lv_)));
  2509. set_has_player_lv();
  2510. } else {
  2511. goto handle_uninterpreted;
  2512. }
  2513. if (input->ExpectTag(128)) goto parse_player_diamond;
  2514. break;
  2515. }
  2516. // optional int32 player_diamond = 16;
  2517. case 16: {
  2518. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2519. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2520. parse_player_diamond:
  2521. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2522. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2523. input, &player_diamond_)));
  2524. set_has_player_diamond();
  2525. } else {
  2526. goto handle_uninterpreted;
  2527. }
  2528. if (input->ExpectTag(136)) goto parse_player_ticket;
  2529. break;
  2530. }
  2531. // optional int32 player_ticket = 17;
  2532. case 17: {
  2533. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2534. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2535. parse_player_ticket:
  2536. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2537. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2538. input, &player_ticket_)));
  2539. set_has_player_ticket();
  2540. } else {
  2541. goto handle_uninterpreted;
  2542. }
  2543. if (input->ExpectTag(144)) goto parse_dimensity;
  2544. break;
  2545. }
  2546. // optional int32 dimensity = 18;
  2547. case 18: {
  2548. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2549. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2550. parse_dimensity:
  2551. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2552. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2553. input, &dimensity_)));
  2554. set_has_dimensity();
  2555. } else {
  2556. goto handle_uninterpreted;
  2557. }
  2558. if (input->ExpectTag(152)) goto parse_room_rate;
  2559. break;
  2560. }
  2561. // optional int32 room_rate = 19;
  2562. case 19: {
  2563. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2564. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2565. parse_room_rate:
  2566. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2567. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2568. input, &room_rate_)));
  2569. set_has_room_rate();
  2570. } else {
  2571. goto handle_uninterpreted;
  2572. }
  2573. if (input->ExpectTag(160)) goto parse_bullet_power;
  2574. break;
  2575. }
  2576. // optional int32 bullet_power = 20;
  2577. case 20: {
  2578. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2579. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2580. parse_bullet_power:
  2581. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2582. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2583. input, &bullet_power_)));
  2584. set_has_bullet_power();
  2585. } else {
  2586. goto handle_uninterpreted;
  2587. }
  2588. if (input->ExpectAtEnd()) return true;
  2589. break;
  2590. }
  2591. default: {
  2592. handle_uninterpreted:
  2593. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2594. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2595. return true;
  2596. }
  2597. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2598. input, tag, mutable_unknown_fields()));
  2599. break;
  2600. }
  2601. }
  2602. }
  2603. return true;
  2604. #undef DO_
  2605. }
  2606. void msg_seat_info::SerializeWithCachedSizes(
  2607. ::google::protobuf::io::CodedOutputStream* output) const {
  2608. // optional int32 seat_index = 1;
  2609. if (has_seat_index()) {
  2610. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->seat_index(), output);
  2611. }
  2612. // optional int32 player_id = 2;
  2613. if (has_player_id()) {
  2614. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->player_id(), output);
  2615. }
  2616. // optional string nickname = 3;
  2617. if (has_nickname()) {
  2618. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  2619. this->nickname().data(), this->nickname().length(),
  2620. ::google::protobuf::internal::WireFormat::SERIALIZE);
  2621. ::google::protobuf::internal::WireFormatLite::WriteString(
  2622. 3, this->nickname(), output);
  2623. }
  2624. // optional int64 player_gold = 4;
  2625. if (has_player_gold()) {
  2626. ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->player_gold(), output);
  2627. }
  2628. // optional int32 turret_rate = 5;
  2629. if (has_turret_rate()) {
  2630. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->turret_rate(), output);
  2631. }
  2632. // optional int32 turret_id = 6;
  2633. if (has_turret_id()) {
  2634. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->turret_id(), output);
  2635. }
  2636. // optional int32 turret_lv = 7;
  2637. if (has_turret_lv()) {
  2638. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->turret_lv(), output);
  2639. }
  2640. // optional int32 wing_id = 8;
  2641. if (has_wing_id()) {
  2642. ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->wing_id(), output);
  2643. }
  2644. // optional int32 wing_lv = 9;
  2645. if (has_wing_lv()) {
  2646. ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->wing_lv(), output);
  2647. }
  2648. // repeated .fish_protocols.msg_buff_info bufflist = 10;
  2649. for (int i = 0; i < this->bufflist_size(); i++) {
  2650. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2651. 10, this->bufflist(i), output);
  2652. }
  2653. // optional int32 headid = 11;
  2654. if (has_headid()) {
  2655. ::google::protobuf::internal::WireFormatLite::WriteInt32(11, this->headid(), output);
  2656. }
  2657. // optional int32 frameid = 12;
  2658. if (has_frameid()) {
  2659. ::google::protobuf::internal::WireFormatLite::WriteInt32(12, this->frameid(), output);
  2660. }
  2661. // optional int32 point = 13;
  2662. if (has_point()) {
  2663. ::google::protobuf::internal::WireFormatLite::WriteInt32(13, this->point(), output);
  2664. }
  2665. // optional int32 vip = 14;
  2666. if (has_vip()) {
  2667. ::google::protobuf::internal::WireFormatLite::WriteInt32(14, this->vip(), output);
  2668. }
  2669. // optional int32 player_lv = 15;
  2670. if (has_player_lv()) {
  2671. ::google::protobuf::internal::WireFormatLite::WriteInt32(15, this->player_lv(), output);
  2672. }
  2673. // optional int32 player_diamond = 16;
  2674. if (has_player_diamond()) {
  2675. ::google::protobuf::internal::WireFormatLite::WriteInt32(16, this->player_diamond(), output);
  2676. }
  2677. // optional int32 player_ticket = 17;
  2678. if (has_player_ticket()) {
  2679. ::google::protobuf::internal::WireFormatLite::WriteInt32(17, this->player_ticket(), output);
  2680. }
  2681. // optional int32 dimensity = 18;
  2682. if (has_dimensity()) {
  2683. ::google::protobuf::internal::WireFormatLite::WriteInt32(18, this->dimensity(), output);
  2684. }
  2685. // optional int32 room_rate = 19;
  2686. if (has_room_rate()) {
  2687. ::google::protobuf::internal::WireFormatLite::WriteInt32(19, this->room_rate(), output);
  2688. }
  2689. // optional int32 bullet_power = 20;
  2690. if (has_bullet_power()) {
  2691. ::google::protobuf::internal::WireFormatLite::WriteInt32(20, this->bullet_power(), output);
  2692. }
  2693. if (!unknown_fields().empty()) {
  2694. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2695. unknown_fields(), output);
  2696. }
  2697. }
  2698. ::google::protobuf::uint8* msg_seat_info::SerializeWithCachedSizesToArray(
  2699. ::google::protobuf::uint8* target) const {
  2700. // optional int32 seat_index = 1;
  2701. if (has_seat_index()) {
  2702. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->seat_index(), target);
  2703. }
  2704. // optional int32 player_id = 2;
  2705. if (has_player_id()) {
  2706. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->player_id(), target);
  2707. }
  2708. // optional string nickname = 3;
  2709. if (has_nickname()) {
  2710. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  2711. this->nickname().data(), this->nickname().length(),
  2712. ::google::protobuf::internal::WireFormat::SERIALIZE);
  2713. target =
  2714. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2715. 3, this->nickname(), target);
  2716. }
  2717. // optional int64 player_gold = 4;
  2718. if (has_player_gold()) {
  2719. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->player_gold(), target);
  2720. }
  2721. // optional int32 turret_rate = 5;
  2722. if (has_turret_rate()) {
  2723. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->turret_rate(), target);
  2724. }
  2725. // optional int32 turret_id = 6;
  2726. if (has_turret_id()) {
  2727. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->turret_id(), target);
  2728. }
  2729. // optional int32 turret_lv = 7;
  2730. if (has_turret_lv()) {
  2731. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->turret_lv(), target);
  2732. }
  2733. // optional int32 wing_id = 8;
  2734. if (has_wing_id()) {
  2735. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->wing_id(), target);
  2736. }
  2737. // optional int32 wing_lv = 9;
  2738. if (has_wing_lv()) {
  2739. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->wing_lv(), target);
  2740. }
  2741. // repeated .fish_protocols.msg_buff_info bufflist = 10;
  2742. for (int i = 0; i < this->bufflist_size(); i++) {
  2743. target = ::google::protobuf::internal::WireFormatLite::
  2744. WriteMessageNoVirtualToArray(
  2745. 10, this->bufflist(i), target);
  2746. }
  2747. // optional int32 headid = 11;
  2748. if (has_headid()) {
  2749. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(11, this->headid(), target);
  2750. }
  2751. // optional int32 frameid = 12;
  2752. if (has_frameid()) {
  2753. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(12, this->frameid(), target);
  2754. }
  2755. // optional int32 point = 13;
  2756. if (has_point()) {
  2757. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(13, this->point(), target);
  2758. }
  2759. // optional int32 vip = 14;
  2760. if (has_vip()) {
  2761. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(14, this->vip(), target);
  2762. }
  2763. // optional int32 player_lv = 15;
  2764. if (has_player_lv()) {
  2765. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(15, this->player_lv(), target);
  2766. }
  2767. // optional int32 player_diamond = 16;
  2768. if (has_player_diamond()) {
  2769. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(16, this->player_diamond(), target);
  2770. }
  2771. // optional int32 player_ticket = 17;
  2772. if (has_player_ticket()) {
  2773. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(17, this->player_ticket(), target);
  2774. }
  2775. // optional int32 dimensity = 18;
  2776. if (has_dimensity()) {
  2777. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(18, this->dimensity(), target);
  2778. }
  2779. // optional int32 room_rate = 19;
  2780. if (has_room_rate()) {
  2781. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(19, this->room_rate(), target);
  2782. }
  2783. // optional int32 bullet_power = 20;
  2784. if (has_bullet_power()) {
  2785. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(20, this->bullet_power(), target);
  2786. }
  2787. if (!unknown_fields().empty()) {
  2788. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2789. unknown_fields(), target);
  2790. }
  2791. return target;
  2792. }
  2793. int msg_seat_info::ByteSize() const {
  2794. int total_size = 0;
  2795. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2796. // optional int32 seat_index = 1;
  2797. if (has_seat_index()) {
  2798. total_size += 1 +
  2799. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2800. this->seat_index());
  2801. }
  2802. // optional int32 player_id = 2;
  2803. if (has_player_id()) {
  2804. total_size += 1 +
  2805. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2806. this->player_id());
  2807. }
  2808. // optional string nickname = 3;
  2809. if (has_nickname()) {
  2810. total_size += 1 +
  2811. ::google::protobuf::internal::WireFormatLite::StringSize(
  2812. this->nickname());
  2813. }
  2814. // optional int64 player_gold = 4;
  2815. if (has_player_gold()) {
  2816. total_size += 1 +
  2817. ::google::protobuf::internal::WireFormatLite::Int64Size(
  2818. this->player_gold());
  2819. }
  2820. // optional int32 turret_rate = 5;
  2821. if (has_turret_rate()) {
  2822. total_size += 1 +
  2823. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2824. this->turret_rate());
  2825. }
  2826. // optional int32 turret_id = 6;
  2827. if (has_turret_id()) {
  2828. total_size += 1 +
  2829. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2830. this->turret_id());
  2831. }
  2832. // optional int32 turret_lv = 7;
  2833. if (has_turret_lv()) {
  2834. total_size += 1 +
  2835. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2836. this->turret_lv());
  2837. }
  2838. // optional int32 wing_id = 8;
  2839. if (has_wing_id()) {
  2840. total_size += 1 +
  2841. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2842. this->wing_id());
  2843. }
  2844. }
  2845. if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
  2846. // optional int32 wing_lv = 9;
  2847. if (has_wing_lv()) {
  2848. total_size += 1 +
  2849. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2850. this->wing_lv());
  2851. }
  2852. // optional int32 headid = 11;
  2853. if (has_headid()) {
  2854. total_size += 1 +
  2855. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2856. this->headid());
  2857. }
  2858. // optional int32 frameid = 12;
  2859. if (has_frameid()) {
  2860. total_size += 1 +
  2861. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2862. this->frameid());
  2863. }
  2864. // optional int32 point = 13;
  2865. if (has_point()) {
  2866. total_size += 1 +
  2867. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2868. this->point());
  2869. }
  2870. // optional int32 vip = 14;
  2871. if (has_vip()) {
  2872. total_size += 1 +
  2873. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2874. this->vip());
  2875. }
  2876. // optional int32 player_lv = 15;
  2877. if (has_player_lv()) {
  2878. total_size += 1 +
  2879. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2880. this->player_lv());
  2881. }
  2882. // optional int32 player_diamond = 16;
  2883. if (has_player_diamond()) {
  2884. total_size += 2 +
  2885. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2886. this->player_diamond());
  2887. }
  2888. }
  2889. if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
  2890. // optional int32 player_ticket = 17;
  2891. if (has_player_ticket()) {
  2892. total_size += 2 +
  2893. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2894. this->player_ticket());
  2895. }
  2896. // optional int32 dimensity = 18;
  2897. if (has_dimensity()) {
  2898. total_size += 2 +
  2899. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2900. this->dimensity());
  2901. }
  2902. // optional int32 room_rate = 19;
  2903. if (has_room_rate()) {
  2904. total_size += 2 +
  2905. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2906. this->room_rate());
  2907. }
  2908. // optional int32 bullet_power = 20;
  2909. if (has_bullet_power()) {
  2910. total_size += 2 +
  2911. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2912. this->bullet_power());
  2913. }
  2914. }
  2915. // repeated .fish_protocols.msg_buff_info bufflist = 10;
  2916. total_size += 1 * this->bufflist_size();
  2917. for (int i = 0; i < this->bufflist_size(); i++) {
  2918. total_size +=
  2919. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  2920. this->bufflist(i));
  2921. }
  2922. if (!unknown_fields().empty()) {
  2923. total_size +=
  2924. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2925. unknown_fields());
  2926. }
  2927. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2928. _cached_size_ = total_size;
  2929. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2930. return total_size;
  2931. }
  2932. void msg_seat_info::MergeFrom(const ::google::protobuf::Message& from) {
  2933. GOOGLE_CHECK_NE(&from, this);
  2934. const msg_seat_info* source =
  2935. ::google::protobuf::internal::dynamic_cast_if_available<const msg_seat_info*>(
  2936. &from);
  2937. if (source == NULL) {
  2938. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2939. } else {
  2940. MergeFrom(*source);
  2941. }
  2942. }
  2943. void msg_seat_info::MergeFrom(const msg_seat_info& from) {
  2944. GOOGLE_CHECK_NE(&from, this);
  2945. bufflist_.MergeFrom(from.bufflist_);
  2946. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2947. if (from.has_seat_index()) {
  2948. set_seat_index(from.seat_index());
  2949. }
  2950. if (from.has_player_id()) {
  2951. set_player_id(from.player_id());
  2952. }
  2953. if (from.has_nickname()) {
  2954. set_nickname(from.nickname());
  2955. }
  2956. if (from.has_player_gold()) {
  2957. set_player_gold(from.player_gold());
  2958. }
  2959. if (from.has_turret_rate()) {
  2960. set_turret_rate(from.turret_rate());
  2961. }
  2962. if (from.has_turret_id()) {
  2963. set_turret_id(from.turret_id());
  2964. }
  2965. if (from.has_turret_lv()) {
  2966. set_turret_lv(from.turret_lv());
  2967. }
  2968. if (from.has_wing_id()) {
  2969. set_wing_id(from.wing_id());
  2970. }
  2971. }
  2972. if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
  2973. if (from.has_wing_lv()) {
  2974. set_wing_lv(from.wing_lv());
  2975. }
  2976. if (from.has_headid()) {
  2977. set_headid(from.headid());
  2978. }
  2979. if (from.has_frameid()) {
  2980. set_frameid(from.frameid());
  2981. }
  2982. if (from.has_point()) {
  2983. set_point(from.point());
  2984. }
  2985. if (from.has_vip()) {
  2986. set_vip(from.vip());
  2987. }
  2988. if (from.has_player_lv()) {
  2989. set_player_lv(from.player_lv());
  2990. }
  2991. if (from.has_player_diamond()) {
  2992. set_player_diamond(from.player_diamond());
  2993. }
  2994. }
  2995. if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) {
  2996. if (from.has_player_ticket()) {
  2997. set_player_ticket(from.player_ticket());
  2998. }
  2999. if (from.has_dimensity()) {
  3000. set_dimensity(from.dimensity());
  3001. }
  3002. if (from.has_room_rate()) {
  3003. set_room_rate(from.room_rate());
  3004. }
  3005. if (from.has_bullet_power()) {
  3006. set_bullet_power(from.bullet_power());
  3007. }
  3008. }
  3009. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  3010. }
  3011. void msg_seat_info::CopyFrom(const ::google::protobuf::Message& from) {
  3012. if (&from == this) return;
  3013. Clear();
  3014. MergeFrom(from);
  3015. }
  3016. void msg_seat_info::CopyFrom(const msg_seat_info& from) {
  3017. if (&from == this) return;
  3018. Clear();
  3019. MergeFrom(from);
  3020. }
  3021. bool msg_seat_info::IsInitialized() const {
  3022. return true;
  3023. }
  3024. void msg_seat_info::Swap(msg_seat_info* other) {
  3025. if (other != this) {
  3026. std::swap(seat_index_, other->seat_index_);
  3027. std::swap(player_id_, other->player_id_);
  3028. std::swap(nickname_, other->nickname_);
  3029. std::swap(player_gold_, other->player_gold_);
  3030. std::swap(turret_rate_, other->turret_rate_);
  3031. std::swap(turret_id_, other->turret_id_);
  3032. std::swap(turret_lv_, other->turret_lv_);
  3033. std::swap(wing_id_, other->wing_id_);
  3034. std::swap(wing_lv_, other->wing_lv_);
  3035. bufflist_.Swap(&other->bufflist_);
  3036. std::swap(headid_, other->headid_);
  3037. std::swap(frameid_, other->frameid_);
  3038. std::swap(point_, other->point_);
  3039. std::swap(vip_, other->vip_);
  3040. std::swap(player_lv_, other->player_lv_);
  3041. std::swap(player_diamond_, other->player_diamond_);
  3042. std::swap(player_ticket_, other->player_ticket_);
  3043. std::swap(dimensity_, other->dimensity_);
  3044. std::swap(room_rate_, other->room_rate_);
  3045. std::swap(bullet_power_, other->bullet_power_);
  3046. std::swap(_has_bits_[0], other->_has_bits_[0]);
  3047. _unknown_fields_.Swap(&other->_unknown_fields_);
  3048. std::swap(_cached_size_, other->_cached_size_);
  3049. }
  3050. }
  3051. ::google::protobuf::Metadata msg_seat_info::GetMetadata() const {
  3052. protobuf_AssignDescriptorsOnce();
  3053. ::google::protobuf::Metadata metadata;
  3054. metadata.descriptor = msg_seat_info_descriptor_;
  3055. metadata.reflection = msg_seat_info_reflection_;
  3056. return metadata;
  3057. }
  3058. // ===================================================================
  3059. #ifndef _MSC_VER
  3060. const int msg_item::kItemIdFieldNumber;
  3061. const int msg_item::kItemCountFieldNumber;
  3062. const int msg_item::kEndTimeFieldNumber;
  3063. #endif // !_MSC_VER
  3064. msg_item::msg_item()
  3065. : ::google::protobuf::Message() {
  3066. SharedCtor();
  3067. }
  3068. void msg_item::InitAsDefaultInstance() {
  3069. }
  3070. msg_item::msg_item(const msg_item& from)
  3071. : ::google::protobuf::Message() {
  3072. SharedCtor();
  3073. MergeFrom(from);
  3074. }
  3075. void msg_item::SharedCtor() {
  3076. _cached_size_ = 0;
  3077. item_id_ = 0;
  3078. item_count_ = 0;
  3079. end_time_ = -1;
  3080. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3081. }
  3082. msg_item::~msg_item() {
  3083. SharedDtor();
  3084. }
  3085. void msg_item::SharedDtor() {
  3086. if (this != default_instance_) {
  3087. }
  3088. }
  3089. void msg_item::SetCachedSize(int size) const {
  3090. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3091. _cached_size_ = size;
  3092. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3093. }
  3094. const ::google::protobuf::Descriptor* msg_item::descriptor() {
  3095. protobuf_AssignDescriptorsOnce();
  3096. return msg_item_descriptor_;
  3097. }
  3098. const msg_item& msg_item::default_instance() {
  3099. if (default_instance_ == NULL) protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
  3100. return *default_instance_;
  3101. }
  3102. msg_item* msg_item::default_instance_ = NULL;
  3103. msg_item* msg_item::New() const {
  3104. return new msg_item;
  3105. }
  3106. void msg_item::Clear() {
  3107. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3108. item_id_ = 0;
  3109. item_count_ = 0;
  3110. end_time_ = -1;
  3111. }
  3112. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3113. mutable_unknown_fields()->Clear();
  3114. }
  3115. bool msg_item::MergePartialFromCodedStream(
  3116. ::google::protobuf::io::CodedInputStream* input) {
  3117. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  3118. ::google::protobuf::uint32 tag;
  3119. while ((tag = input->ReadTag()) != 0) {
  3120. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3121. // optional int32 item_id = 1;
  3122. case 1: {
  3123. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3124. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3125. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3126. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3127. input, &item_id_)));
  3128. set_has_item_id();
  3129. } else {
  3130. goto handle_uninterpreted;
  3131. }
  3132. if (input->ExpectTag(16)) goto parse_item_count;
  3133. break;
  3134. }
  3135. // optional int32 item_count = 2;
  3136. case 2: {
  3137. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3138. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3139. parse_item_count:
  3140. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3141. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3142. input, &item_count_)));
  3143. set_has_item_count();
  3144. } else {
  3145. goto handle_uninterpreted;
  3146. }
  3147. if (input->ExpectTag(24)) goto parse_end_time;
  3148. break;
  3149. }
  3150. // optional int32 end_time = 3 [default = -1];
  3151. case 3: {
  3152. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3153. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3154. parse_end_time:
  3155. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3156. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3157. input, &end_time_)));
  3158. set_has_end_time();
  3159. } else {
  3160. goto handle_uninterpreted;
  3161. }
  3162. if (input->ExpectAtEnd()) return true;
  3163. break;
  3164. }
  3165. default: {
  3166. handle_uninterpreted:
  3167. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3168. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  3169. return true;
  3170. }
  3171. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3172. input, tag, mutable_unknown_fields()));
  3173. break;
  3174. }
  3175. }
  3176. }
  3177. return true;
  3178. #undef DO_
  3179. }
  3180. void msg_item::SerializeWithCachedSizes(
  3181. ::google::protobuf::io::CodedOutputStream* output) const {
  3182. // optional int32 item_id = 1;
  3183. if (has_item_id()) {
  3184. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->item_id(), output);
  3185. }
  3186. // optional int32 item_count = 2;
  3187. if (has_item_count()) {
  3188. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->item_count(), output);
  3189. }
  3190. // optional int32 end_time = 3 [default = -1];
  3191. if (has_end_time()) {
  3192. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->end_time(), output);
  3193. }
  3194. if (!unknown_fields().empty()) {
  3195. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3196. unknown_fields(), output);
  3197. }
  3198. }
  3199. ::google::protobuf::uint8* msg_item::SerializeWithCachedSizesToArray(
  3200. ::google::protobuf::uint8* target) const {
  3201. // optional int32 item_id = 1;
  3202. if (has_item_id()) {
  3203. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->item_id(), target);
  3204. }
  3205. // optional int32 item_count = 2;
  3206. if (has_item_count()) {
  3207. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->item_count(), target);
  3208. }
  3209. // optional int32 end_time = 3 [default = -1];
  3210. if (has_end_time()) {
  3211. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->end_time(), target);
  3212. }
  3213. if (!unknown_fields().empty()) {
  3214. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3215. unknown_fields(), target);
  3216. }
  3217. return target;
  3218. }
  3219. int msg_item::ByteSize() const {
  3220. int total_size = 0;
  3221. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3222. // optional int32 item_id = 1;
  3223. if (has_item_id()) {
  3224. total_size += 1 +
  3225. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3226. this->item_id());
  3227. }
  3228. // optional int32 item_count = 2;
  3229. if (has_item_count()) {
  3230. total_size += 1 +
  3231. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3232. this->item_count());
  3233. }
  3234. // optional int32 end_time = 3 [default = -1];
  3235. if (has_end_time()) {
  3236. total_size += 1 +
  3237. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3238. this->end_time());
  3239. }
  3240. }
  3241. if (!unknown_fields().empty()) {
  3242. total_size +=
  3243. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3244. unknown_fields());
  3245. }
  3246. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3247. _cached_size_ = total_size;
  3248. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3249. return total_size;
  3250. }
  3251. void msg_item::MergeFrom(const ::google::protobuf::Message& from) {
  3252. GOOGLE_CHECK_NE(&from, this);
  3253. const msg_item* source =
  3254. ::google::protobuf::internal::dynamic_cast_if_available<const msg_item*>(
  3255. &from);
  3256. if (source == NULL) {
  3257. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3258. } else {
  3259. MergeFrom(*source);
  3260. }
  3261. }
  3262. void msg_item::MergeFrom(const msg_item& from) {
  3263. GOOGLE_CHECK_NE(&from, this);
  3264. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3265. if (from.has_item_id()) {
  3266. set_item_id(from.item_id());
  3267. }
  3268. if (from.has_item_count()) {
  3269. set_item_count(from.item_count());
  3270. }
  3271. if (from.has_end_time()) {
  3272. set_end_time(from.end_time());
  3273. }
  3274. }
  3275. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  3276. }
  3277. void msg_item::CopyFrom(const ::google::protobuf::Message& from) {
  3278. if (&from == this) return;
  3279. Clear();
  3280. MergeFrom(from);
  3281. }
  3282. void msg_item::CopyFrom(const msg_item& from) {
  3283. if (&from == this) return;
  3284. Clear();
  3285. MergeFrom(from);
  3286. }
  3287. bool msg_item::IsInitialized() const {
  3288. return true;
  3289. }
  3290. void msg_item::Swap(msg_item* other) {
  3291. if (other != this) {
  3292. std::swap(item_id_, other->item_id_);
  3293. std::swap(item_count_, other->item_count_);
  3294. std::swap(end_time_, other->end_time_);
  3295. std::swap(_has_bits_[0], other->_has_bits_[0]);
  3296. _unknown_fields_.Swap(&other->_unknown_fields_);
  3297. std::swap(_cached_size_, other->_cached_size_);
  3298. }
  3299. }
  3300. ::google::protobuf::Metadata msg_item::GetMetadata() const {
  3301. protobuf_AssignDescriptorsOnce();
  3302. ::google::protobuf::Metadata metadata;
  3303. metadata.descriptor = msg_item_descriptor_;
  3304. metadata.reflection = msg_item_reflection_;
  3305. return metadata;
  3306. }
  3307. // ===================================================================
  3308. #ifndef _MSC_VER
  3309. const int msg_fish_info::kIdFieldNumber;
  3310. const int msg_fish_info::kFishIdFieldNumber;
  3311. const int msg_fish_info::kRouteIdFieldNumber;
  3312. #endif // !_MSC_VER
  3313. msg_fish_info::msg_fish_info()
  3314. : ::google::protobuf::Message() {
  3315. SharedCtor();
  3316. }
  3317. void msg_fish_info::InitAsDefaultInstance() {
  3318. }
  3319. msg_fish_info::msg_fish_info(const msg_fish_info& from)
  3320. : ::google::protobuf::Message() {
  3321. SharedCtor();
  3322. MergeFrom(from);
  3323. }
  3324. void msg_fish_info::SharedCtor() {
  3325. _cached_size_ = 0;
  3326. id_ = 0;
  3327. fish_id_ = 0;
  3328. route_id_ = 0;
  3329. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3330. }
  3331. msg_fish_info::~msg_fish_info() {
  3332. SharedDtor();
  3333. }
  3334. void msg_fish_info::SharedDtor() {
  3335. if (this != default_instance_) {
  3336. }
  3337. }
  3338. void msg_fish_info::SetCachedSize(int size) const {
  3339. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3340. _cached_size_ = size;
  3341. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3342. }
  3343. const ::google::protobuf::Descriptor* msg_fish_info::descriptor() {
  3344. protobuf_AssignDescriptorsOnce();
  3345. return msg_fish_info_descriptor_;
  3346. }
  3347. const msg_fish_info& msg_fish_info::default_instance() {
  3348. if (default_instance_ == NULL) protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
  3349. return *default_instance_;
  3350. }
  3351. msg_fish_info* msg_fish_info::default_instance_ = NULL;
  3352. msg_fish_info* msg_fish_info::New() const {
  3353. return new msg_fish_info;
  3354. }
  3355. void msg_fish_info::Clear() {
  3356. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3357. id_ = 0;
  3358. fish_id_ = 0;
  3359. route_id_ = 0;
  3360. }
  3361. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3362. mutable_unknown_fields()->Clear();
  3363. }
  3364. bool msg_fish_info::MergePartialFromCodedStream(
  3365. ::google::protobuf::io::CodedInputStream* input) {
  3366. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  3367. ::google::protobuf::uint32 tag;
  3368. while ((tag = input->ReadTag()) != 0) {
  3369. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3370. // optional int32 id = 1;
  3371. case 1: {
  3372. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3373. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3374. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3375. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3376. input, &id_)));
  3377. set_has_id();
  3378. } else {
  3379. goto handle_uninterpreted;
  3380. }
  3381. if (input->ExpectTag(16)) goto parse_fish_id;
  3382. break;
  3383. }
  3384. // optional int32 fish_id = 2;
  3385. case 2: {
  3386. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3387. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3388. parse_fish_id:
  3389. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3390. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3391. input, &fish_id_)));
  3392. set_has_fish_id();
  3393. } else {
  3394. goto handle_uninterpreted;
  3395. }
  3396. if (input->ExpectTag(24)) goto parse_route_id;
  3397. break;
  3398. }
  3399. // optional int32 route_id = 3;
  3400. case 3: {
  3401. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3402. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3403. parse_route_id:
  3404. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3405. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3406. input, &route_id_)));
  3407. set_has_route_id();
  3408. } else {
  3409. goto handle_uninterpreted;
  3410. }
  3411. if (input->ExpectAtEnd()) return true;
  3412. break;
  3413. }
  3414. default: {
  3415. handle_uninterpreted:
  3416. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3417. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  3418. return true;
  3419. }
  3420. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3421. input, tag, mutable_unknown_fields()));
  3422. break;
  3423. }
  3424. }
  3425. }
  3426. return true;
  3427. #undef DO_
  3428. }
  3429. void msg_fish_info::SerializeWithCachedSizes(
  3430. ::google::protobuf::io::CodedOutputStream* output) const {
  3431. // optional int32 id = 1;
  3432. if (has_id()) {
  3433. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->id(), output);
  3434. }
  3435. // optional int32 fish_id = 2;
  3436. if (has_fish_id()) {
  3437. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->fish_id(), output);
  3438. }
  3439. // optional int32 route_id = 3;
  3440. if (has_route_id()) {
  3441. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->route_id(), output);
  3442. }
  3443. if (!unknown_fields().empty()) {
  3444. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3445. unknown_fields(), output);
  3446. }
  3447. }
  3448. ::google::protobuf::uint8* msg_fish_info::SerializeWithCachedSizesToArray(
  3449. ::google::protobuf::uint8* target) const {
  3450. // optional int32 id = 1;
  3451. if (has_id()) {
  3452. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->id(), target);
  3453. }
  3454. // optional int32 fish_id = 2;
  3455. if (has_fish_id()) {
  3456. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->fish_id(), target);
  3457. }
  3458. // optional int32 route_id = 3;
  3459. if (has_route_id()) {
  3460. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->route_id(), target);
  3461. }
  3462. if (!unknown_fields().empty()) {
  3463. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3464. unknown_fields(), target);
  3465. }
  3466. return target;
  3467. }
  3468. int msg_fish_info::ByteSize() const {
  3469. int total_size = 0;
  3470. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3471. // optional int32 id = 1;
  3472. if (has_id()) {
  3473. total_size += 1 +
  3474. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3475. this->id());
  3476. }
  3477. // optional int32 fish_id = 2;
  3478. if (has_fish_id()) {
  3479. total_size += 1 +
  3480. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3481. this->fish_id());
  3482. }
  3483. // optional int32 route_id = 3;
  3484. if (has_route_id()) {
  3485. total_size += 1 +
  3486. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3487. this->route_id());
  3488. }
  3489. }
  3490. if (!unknown_fields().empty()) {
  3491. total_size +=
  3492. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3493. unknown_fields());
  3494. }
  3495. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3496. _cached_size_ = total_size;
  3497. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3498. return total_size;
  3499. }
  3500. void msg_fish_info::MergeFrom(const ::google::protobuf::Message& from) {
  3501. GOOGLE_CHECK_NE(&from, this);
  3502. const msg_fish_info* source =
  3503. ::google::protobuf::internal::dynamic_cast_if_available<const msg_fish_info*>(
  3504. &from);
  3505. if (source == NULL) {
  3506. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3507. } else {
  3508. MergeFrom(*source);
  3509. }
  3510. }
  3511. void msg_fish_info::MergeFrom(const msg_fish_info& from) {
  3512. GOOGLE_CHECK_NE(&from, this);
  3513. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3514. if (from.has_id()) {
  3515. set_id(from.id());
  3516. }
  3517. if (from.has_fish_id()) {
  3518. set_fish_id(from.fish_id());
  3519. }
  3520. if (from.has_route_id()) {
  3521. set_route_id(from.route_id());
  3522. }
  3523. }
  3524. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  3525. }
  3526. void msg_fish_info::CopyFrom(const ::google::protobuf::Message& from) {
  3527. if (&from == this) return;
  3528. Clear();
  3529. MergeFrom(from);
  3530. }
  3531. void msg_fish_info::CopyFrom(const msg_fish_info& from) {
  3532. if (&from == this) return;
  3533. Clear();
  3534. MergeFrom(from);
  3535. }
  3536. bool msg_fish_info::IsInitialized() const {
  3537. return true;
  3538. }
  3539. void msg_fish_info::Swap(msg_fish_info* other) {
  3540. if (other != this) {
  3541. std::swap(id_, other->id_);
  3542. std::swap(fish_id_, other->fish_id_);
  3543. std::swap(route_id_, other->route_id_);
  3544. std::swap(_has_bits_[0], other->_has_bits_[0]);
  3545. _unknown_fields_.Swap(&other->_unknown_fields_);
  3546. std::swap(_cached_size_, other->_cached_size_);
  3547. }
  3548. }
  3549. ::google::protobuf::Metadata msg_fish_info::GetMetadata() const {
  3550. protobuf_AssignDescriptorsOnce();
  3551. ::google::protobuf::Metadata metadata;
  3552. metadata.descriptor = msg_fish_info_descriptor_;
  3553. metadata.reflection = msg_fish_info_reflection_;
  3554. return metadata;
  3555. }
  3556. // ===================================================================
  3557. #ifndef _MSC_VER
  3558. const int redEnvlopeInfo::kRoomidFieldNumber;
  3559. const int redEnvlopeInfo::kCurGeerFieldNumber;
  3560. const int redEnvlopeInfo::kRedEnvelopeAccFieldNumber;
  3561. #endif // !_MSC_VER
  3562. redEnvlopeInfo::redEnvlopeInfo()
  3563. : ::google::protobuf::Message() {
  3564. SharedCtor();
  3565. }
  3566. void redEnvlopeInfo::InitAsDefaultInstance() {
  3567. }
  3568. redEnvlopeInfo::redEnvlopeInfo(const redEnvlopeInfo& from)
  3569. : ::google::protobuf::Message() {
  3570. SharedCtor();
  3571. MergeFrom(from);
  3572. }
  3573. void redEnvlopeInfo::SharedCtor() {
  3574. _cached_size_ = 0;
  3575. roomid_ = 0;
  3576. curgeer_ = 0;
  3577. redenvelopeacc_ = 0;
  3578. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3579. }
  3580. redEnvlopeInfo::~redEnvlopeInfo() {
  3581. SharedDtor();
  3582. }
  3583. void redEnvlopeInfo::SharedDtor() {
  3584. if (this != default_instance_) {
  3585. }
  3586. }
  3587. void redEnvlopeInfo::SetCachedSize(int size) const {
  3588. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3589. _cached_size_ = size;
  3590. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3591. }
  3592. const ::google::protobuf::Descriptor* redEnvlopeInfo::descriptor() {
  3593. protobuf_AssignDescriptorsOnce();
  3594. return redEnvlopeInfo_descriptor_;
  3595. }
  3596. const redEnvlopeInfo& redEnvlopeInfo::default_instance() {
  3597. if (default_instance_ == NULL) protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
  3598. return *default_instance_;
  3599. }
  3600. redEnvlopeInfo* redEnvlopeInfo::default_instance_ = NULL;
  3601. redEnvlopeInfo* redEnvlopeInfo::New() const {
  3602. return new redEnvlopeInfo;
  3603. }
  3604. void redEnvlopeInfo::Clear() {
  3605. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3606. roomid_ = 0;
  3607. curgeer_ = 0;
  3608. redenvelopeacc_ = 0;
  3609. }
  3610. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3611. mutable_unknown_fields()->Clear();
  3612. }
  3613. bool redEnvlopeInfo::MergePartialFromCodedStream(
  3614. ::google::protobuf::io::CodedInputStream* input) {
  3615. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  3616. ::google::protobuf::uint32 tag;
  3617. while ((tag = input->ReadTag()) != 0) {
  3618. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3619. // optional int32 roomid = 1;
  3620. case 1: {
  3621. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3622. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3623. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3624. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3625. input, &roomid_)));
  3626. set_has_roomid();
  3627. } else {
  3628. goto handle_uninterpreted;
  3629. }
  3630. if (input->ExpectTag(16)) goto parse_curGeer;
  3631. break;
  3632. }
  3633. // optional int32 curGeer = 2;
  3634. case 2: {
  3635. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3636. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3637. parse_curGeer:
  3638. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3639. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3640. input, &curgeer_)));
  3641. set_has_curgeer();
  3642. } else {
  3643. goto handle_uninterpreted;
  3644. }
  3645. if (input->ExpectTag(24)) goto parse_redEnvelopeAcc;
  3646. break;
  3647. }
  3648. // optional int32 redEnvelopeAcc = 3;
  3649. case 3: {
  3650. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3651. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3652. parse_redEnvelopeAcc:
  3653. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3654. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3655. input, &redenvelopeacc_)));
  3656. set_has_redenvelopeacc();
  3657. } else {
  3658. goto handle_uninterpreted;
  3659. }
  3660. if (input->ExpectAtEnd()) return true;
  3661. break;
  3662. }
  3663. default: {
  3664. handle_uninterpreted:
  3665. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3666. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  3667. return true;
  3668. }
  3669. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3670. input, tag, mutable_unknown_fields()));
  3671. break;
  3672. }
  3673. }
  3674. }
  3675. return true;
  3676. #undef DO_
  3677. }
  3678. void redEnvlopeInfo::SerializeWithCachedSizes(
  3679. ::google::protobuf::io::CodedOutputStream* output) const {
  3680. // optional int32 roomid = 1;
  3681. if (has_roomid()) {
  3682. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->roomid(), output);
  3683. }
  3684. // optional int32 curGeer = 2;
  3685. if (has_curgeer()) {
  3686. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->curgeer(), output);
  3687. }
  3688. // optional int32 redEnvelopeAcc = 3;
  3689. if (has_redenvelopeacc()) {
  3690. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->redenvelopeacc(), output);
  3691. }
  3692. if (!unknown_fields().empty()) {
  3693. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3694. unknown_fields(), output);
  3695. }
  3696. }
  3697. ::google::protobuf::uint8* redEnvlopeInfo::SerializeWithCachedSizesToArray(
  3698. ::google::protobuf::uint8* target) const {
  3699. // optional int32 roomid = 1;
  3700. if (has_roomid()) {
  3701. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->roomid(), target);
  3702. }
  3703. // optional int32 curGeer = 2;
  3704. if (has_curgeer()) {
  3705. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->curgeer(), target);
  3706. }
  3707. // optional int32 redEnvelopeAcc = 3;
  3708. if (has_redenvelopeacc()) {
  3709. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->redenvelopeacc(), target);
  3710. }
  3711. if (!unknown_fields().empty()) {
  3712. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3713. unknown_fields(), target);
  3714. }
  3715. return target;
  3716. }
  3717. int redEnvlopeInfo::ByteSize() const {
  3718. int total_size = 0;
  3719. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3720. // optional int32 roomid = 1;
  3721. if (has_roomid()) {
  3722. total_size += 1 +
  3723. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3724. this->roomid());
  3725. }
  3726. // optional int32 curGeer = 2;
  3727. if (has_curgeer()) {
  3728. total_size += 1 +
  3729. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3730. this->curgeer());
  3731. }
  3732. // optional int32 redEnvelopeAcc = 3;
  3733. if (has_redenvelopeacc()) {
  3734. total_size += 1 +
  3735. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3736. this->redenvelopeacc());
  3737. }
  3738. }
  3739. if (!unknown_fields().empty()) {
  3740. total_size +=
  3741. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3742. unknown_fields());
  3743. }
  3744. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3745. _cached_size_ = total_size;
  3746. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3747. return total_size;
  3748. }
  3749. void redEnvlopeInfo::MergeFrom(const ::google::protobuf::Message& from) {
  3750. GOOGLE_CHECK_NE(&from, this);
  3751. const redEnvlopeInfo* source =
  3752. ::google::protobuf::internal::dynamic_cast_if_available<const redEnvlopeInfo*>(
  3753. &from);
  3754. if (source == NULL) {
  3755. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3756. } else {
  3757. MergeFrom(*source);
  3758. }
  3759. }
  3760. void redEnvlopeInfo::MergeFrom(const redEnvlopeInfo& from) {
  3761. GOOGLE_CHECK_NE(&from, this);
  3762. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3763. if (from.has_roomid()) {
  3764. set_roomid(from.roomid());
  3765. }
  3766. if (from.has_curgeer()) {
  3767. set_curgeer(from.curgeer());
  3768. }
  3769. if (from.has_redenvelopeacc()) {
  3770. set_redenvelopeacc(from.redenvelopeacc());
  3771. }
  3772. }
  3773. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  3774. }
  3775. void redEnvlopeInfo::CopyFrom(const ::google::protobuf::Message& from) {
  3776. if (&from == this) return;
  3777. Clear();
  3778. MergeFrom(from);
  3779. }
  3780. void redEnvlopeInfo::CopyFrom(const redEnvlopeInfo& from) {
  3781. if (&from == this) return;
  3782. Clear();
  3783. MergeFrom(from);
  3784. }
  3785. bool redEnvlopeInfo::IsInitialized() const {
  3786. return true;
  3787. }
  3788. void redEnvlopeInfo::Swap(redEnvlopeInfo* other) {
  3789. if (other != this) {
  3790. std::swap(roomid_, other->roomid_);
  3791. std::swap(curgeer_, other->curgeer_);
  3792. std::swap(redenvelopeacc_, other->redenvelopeacc_);
  3793. std::swap(_has_bits_[0], other->_has_bits_[0]);
  3794. _unknown_fields_.Swap(&other->_unknown_fields_);
  3795. std::swap(_cached_size_, other->_cached_size_);
  3796. }
  3797. }
  3798. ::google::protobuf::Metadata redEnvlopeInfo::GetMetadata() const {
  3799. protobuf_AssignDescriptorsOnce();
  3800. ::google::protobuf::Metadata metadata;
  3801. metadata.descriptor = redEnvlopeInfo_descriptor_;
  3802. metadata.reflection = redEnvlopeInfo_reflection_;
  3803. return metadata;
  3804. }
  3805. // @@protoc_insertion_point(namespace_scope)
  3806. } // namespace fish_protocols
  3807. // @@protoc_insertion_point(global_scope)