123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: fish_type_def.proto
- #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
- #include "fish_type_def.pb.h"
- #include <algorithm>
- #include <google/protobuf/stubs/common.h>
- #include <google/protobuf/stubs/once.h>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/wire_format_lite_inl.h>
- #include <google/protobuf/descriptor.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/reflection_ops.h>
- #include <google/protobuf/wire_format.h>
- // @@protoc_insertion_point(includes)
- namespace fish_protocols {
- namespace {
- const ::google::protobuf::Descriptor* msg_fish_init_descriptor_ = NULL;
- const ::google::protobuf::internal::GeneratedMessageReflection*
- msg_fish_init_reflection_ = NULL;
- const ::google::protobuf::Descriptor* msg_generator_init_descriptor_ = NULL;
- const ::google::protobuf::internal::GeneratedMessageReflection*
- msg_generator_init_reflection_ = NULL;
- const ::google::protobuf::Descriptor* SelfBuff_descriptor_ = NULL;
- const ::google::protobuf::internal::GeneratedMessageReflection*
- SelfBuff_reflection_ = NULL;
- const ::google::protobuf::Descriptor* FunBuff_descriptor_ = NULL;
- const ::google::protobuf::internal::GeneratedMessageReflection*
- FunBuff_reflection_ = NULL;
- const ::google::protobuf::Descriptor* msg_scene_info_descriptor_ = NULL;
- const ::google::protobuf::internal::GeneratedMessageReflection*
- msg_scene_info_reflection_ = NULL;
- const ::google::protobuf::Descriptor* msg_buff_info_descriptor_ = NULL;
- const ::google::protobuf::internal::GeneratedMessageReflection*
- msg_buff_info_reflection_ = NULL;
- const ::google::protobuf::Descriptor* msg_seat_info_descriptor_ = NULL;
- const ::google::protobuf::internal::GeneratedMessageReflection*
- msg_seat_info_reflection_ = NULL;
- const ::google::protobuf::Descriptor* msg_item_descriptor_ = NULL;
- const ::google::protobuf::internal::GeneratedMessageReflection*
- msg_item_reflection_ = NULL;
- const ::google::protobuf::Descriptor* msg_fish_info_descriptor_ = NULL;
- const ::google::protobuf::internal::GeneratedMessageReflection*
- msg_fish_info_reflection_ = NULL;
- const ::google::protobuf::Descriptor* redEnvlopeInfo_descriptor_ = NULL;
- const ::google::protobuf::internal::GeneratedMessageReflection*
- redEnvlopeInfo_reflection_ = NULL;
- } // namespace
- void protobuf_AssignDesc_fish_5ftype_5fdef_2eproto() {
- protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
- const ::google::protobuf::FileDescriptor* file =
- ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
- "fish_type_def.proto");
- GOOGLE_CHECK(file != NULL);
- msg_fish_init_descriptor_ = file->message_type(0);
- static const int msg_fish_init_offsets_[4] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_fish_init, id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_fish_init, fish_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_fish_init, life_time_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_fish_init, route_param_),
- };
- msg_fish_init_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- msg_fish_init_descriptor_,
- msg_fish_init::default_instance_,
- msg_fish_init_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_fish_init, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_fish_init, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(msg_fish_init));
- msg_generator_init_descriptor_ = file->message_type(1);
- static const int msg_generator_init_offsets_[6] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_generator_init, generator_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_generator_init, life_time_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_generator_init, start_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_generator_init, route_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_generator_init, pos_x_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_generator_init, pos_y_),
- };
- msg_generator_init_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- msg_generator_init_descriptor_,
- msg_generator_init::default_instance_,
- msg_generator_init_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_generator_init, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_generator_init, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(msg_generator_init));
- SelfBuff_descriptor_ = file->message_type(2);
- static const int SelfBuff_offsets_[2] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelfBuff, buffid_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelfBuff, remaintime_),
- };
- SelfBuff_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- SelfBuff_descriptor_,
- SelfBuff::default_instance_,
- SelfBuff_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelfBuff, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelfBuff, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(SelfBuff));
- FunBuff_descriptor_ = file->message_type(3);
- static const int FunBuff_offsets_[2] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunBuff, buffid_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunBuff, efftype_),
- };
- FunBuff_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- FunBuff_descriptor_,
- FunBuff::default_instance_,
- FunBuff_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunBuff, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunBuff, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(FunBuff));
- msg_scene_info_descriptor_ = file->message_type(4);
- static const int msg_scene_info_offsets_[10] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_scene_info, sceneid_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_scene_info, roomid_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_scene_info, seat_info_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_scene_info, fish_infos_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_scene_info, generator_infos_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_scene_info, boss_time_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_scene_info, selfbufflist_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_scene_info, selffunbufflist_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_scene_info, high_grade_jackpot_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_scene_info, frozeremaintime_),
- };
- msg_scene_info_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- msg_scene_info_descriptor_,
- msg_scene_info::default_instance_,
- msg_scene_info_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_scene_info, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_scene_info, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(msg_scene_info));
- msg_buff_info_descriptor_ = file->message_type(5);
- static const int msg_buff_info_offsets_[2] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_buff_info, buffid_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_buff_info, outtime_),
- };
- msg_buff_info_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- msg_buff_info_descriptor_,
- msg_buff_info::default_instance_,
- msg_buff_info_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_buff_info, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_buff_info, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(msg_buff_info));
- msg_seat_info_descriptor_ = file->message_type(6);
- static const int msg_seat_info_offsets_[20] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, seat_index_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, player_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, nickname_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, player_gold_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, turret_rate_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, turret_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, turret_lv_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, wing_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, wing_lv_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, bufflist_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, headid_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, frameid_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, point_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, vip_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, player_lv_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, player_diamond_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, player_ticket_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, dimensity_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, room_rate_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, bullet_power_),
- };
- msg_seat_info_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- msg_seat_info_descriptor_,
- msg_seat_info::default_instance_,
- msg_seat_info_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_seat_info, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(msg_seat_info));
- msg_item_descriptor_ = file->message_type(7);
- static const int msg_item_offsets_[3] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_item, item_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_item, item_count_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_item, end_time_),
- };
- msg_item_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- msg_item_descriptor_,
- msg_item::default_instance_,
- msg_item_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_item, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_item, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(msg_item));
- msg_fish_info_descriptor_ = file->message_type(8);
- static const int msg_fish_info_offsets_[3] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_fish_info, id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_fish_info, fish_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_fish_info, route_id_),
- };
- msg_fish_info_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- msg_fish_info_descriptor_,
- msg_fish_info::default_instance_,
- msg_fish_info_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_fish_info, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(msg_fish_info, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(msg_fish_info));
- redEnvlopeInfo_descriptor_ = file->message_type(9);
- static const int redEnvlopeInfo_offsets_[3] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(redEnvlopeInfo, roomid_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(redEnvlopeInfo, curgeer_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(redEnvlopeInfo, redenvelopeacc_),
- };
- redEnvlopeInfo_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- redEnvlopeInfo_descriptor_,
- redEnvlopeInfo::default_instance_,
- redEnvlopeInfo_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(redEnvlopeInfo, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(redEnvlopeInfo, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(redEnvlopeInfo));
- }
- namespace {
- GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
- inline void protobuf_AssignDescriptorsOnce() {
- ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
- &protobuf_AssignDesc_fish_5ftype_5fdef_2eproto);
- }
- void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- msg_fish_init_descriptor_, &msg_fish_init::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- msg_generator_init_descriptor_, &msg_generator_init::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- SelfBuff_descriptor_, &SelfBuff::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- FunBuff_descriptor_, &FunBuff::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- msg_scene_info_descriptor_, &msg_scene_info::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- msg_buff_info_descriptor_, &msg_buff_info::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- msg_seat_info_descriptor_, &msg_seat_info::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- msg_item_descriptor_, &msg_item::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- msg_fish_info_descriptor_, &msg_fish_info::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- redEnvlopeInfo_descriptor_, &redEnvlopeInfo::default_instance());
- }
- } // namespace
- void protobuf_ShutdownFile_fish_5ftype_5fdef_2eproto() {
- delete msg_fish_init::default_instance_;
- delete msg_fish_init_reflection_;
- delete msg_generator_init::default_instance_;
- delete msg_generator_init_reflection_;
- delete SelfBuff::default_instance_;
- delete SelfBuff_reflection_;
- delete FunBuff::default_instance_;
- delete FunBuff_reflection_;
- delete msg_scene_info::default_instance_;
- delete msg_scene_info_reflection_;
- delete msg_buff_info::default_instance_;
- delete msg_buff_info_reflection_;
- delete msg_seat_info::default_instance_;
- delete msg_seat_info_reflection_;
- delete msg_item::default_instance_;
- delete msg_item_reflection_;
- delete msg_fish_info::default_instance_;
- delete msg_fish_info_reflection_;
- delete redEnvlopeInfo::default_instance_;
- delete redEnvlopeInfo_reflection_;
- }
- void protobuf_AddDesc_fish_5ftype_5fdef_2eproto() {
- static bool already_here = false;
- if (already_here) return;
- already_here = true;
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- ::fish_protocols::protobuf_AddDesc_fish_5fdef_2eproto();
- ::msg_type_def::protobuf_AddDesc_msg_5ftype_5fdef_2eproto();
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- "\n\023fish_type_def.proto\022\016fish_protocols\032\016f"
- "ish_def.proto\032\022msg_type_def.proto\"T\n\rmsg"
- "_fish_init\022\n\n\002id\030\001 \001(\005\022\017\n\007fish_id\030\002 \001(\005\022"
- "\021\n\tlife_time\030\003 \001(\002\022\023\n\013route_param\030\004 \003(\002\""
- "\210\001\n\022msg_generator_init\022\024\n\014generator_id\030\001"
- " \001(\005\022\021\n\tlife_time\030\002 \001(\005\022\020\n\010start_id\030\003 \001("
- "\005\022\023\n\010route_id\030\004 \001(\005:\0010\022\020\n\005pos_x\030\005 \001(\005:\0010"
- "\022\020\n\005pos_y\030\006 \001(\005:\0010\".\n\010SelfBuff\022\016\n\006buffId"
- "\030\001 \001(\005\022\022\n\nremainTime\030\002 \001(\005\"*\n\007FunBuff\022\016\n"
- "\006buffId\030\001 \001(\005\022\017\n\007effType\030\002 \001(\005\"\375\002\n\016msg_s"
- "cene_info\022\017\n\007sceneid\030\001 \001(\005\022\016\n\006roomid\030\002 \001"
- "(\005\0220\n\tseat_info\030\003 \003(\0132\035.fish_protocols.m"
- "sg_seat_info\0221\n\nfish_infos\030\004 \003(\0132\035.fish_"
- "protocols.msg_fish_init\022;\n\017generator_inf"
- "os\030\005 \003(\0132\".fish_protocols.msg_generator_"
- "init\022\021\n\tboss_time\030\006 \001(\005\022.\n\014selfBuffList\030"
- "\007 \003(\0132\030.fish_protocols.SelfBuff\0220\n\017selfF"
- "unBuffList\030\010 \003(\0132\027.fish_protocols.FunBuf"
- "f\022\032\n\022high_grade_jackpot\030\t \001(\003\022\027\n\017frozeRe"
- "mainTime\030\n \001(\005\"4\n\rmsg_buff_info\022\016\n\006buffi"
- "d\030\001 \001(\005\022\023\n\007outtime\030\002 \001(\005:\002-1\"\246\003\n\rmsg_sea"
- "t_info\022\022\n\nseat_index\030\001 \001(\005\022\021\n\tplayer_id\030"
- "\002 \001(\005\022\020\n\010nickname\030\003 \001(\t\022\023\n\013player_gold\030\004"
- " \001(\003\022\023\n\013turret_rate\030\005 \001(\005\022\021\n\tturret_id\030\006"
- " \001(\005\022\021\n\tturret_lv\030\007 \001(\005\022\017\n\007wing_id\030\010 \001(\005"
- "\022\017\n\007wing_lv\030\t \001(\005\022/\n\010bufflist\030\n \003(\0132\035.fi"
- "sh_protocols.msg_buff_info\022\016\n\006headid\030\013 \001"
- "(\005\022\017\n\007frameid\030\014 \001(\005\022\r\n\005point\030\r \001(\005\022\013\n\003vi"
- "p\030\016 \001(\005\022\021\n\tplayer_lv\030\017 \001(\005\022\026\n\016player_dia"
- "mond\030\020 \001(\005\022\025\n\rplayer_ticket\030\021 \001(\005\022\021\n\tdim"
- "ensity\030\022 \001(\005\022\021\n\troom_rate\030\023 \001(\005\022\024\n\014bulle"
- "t_power\030\024 \001(\005\"E\n\010msg_item\022\017\n\007item_id\030\001 \001"
- "(\005\022\022\n\nitem_count\030\002 \001(\005\022\024\n\010end_time\030\003 \001(\005"
- ":\002-1\">\n\rmsg_fish_info\022\n\n\002id\030\001 \001(\005\022\017\n\007fis"
- "h_id\030\002 \001(\005\022\020\n\010route_id\030\003 \001(\005\"I\n\016redEnvlo"
- "peInfo\022\016\n\006roomid\030\001 \001(\005\022\017\n\007curGeer\030\002 \001(\005\022"
- "\026\n\016redEnvelopeAcc\030\003 \001(\005", 1463);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "fish_type_def.proto", &protobuf_RegisterTypes);
- msg_fish_init::default_instance_ = new msg_fish_init();
- msg_generator_init::default_instance_ = new msg_generator_init();
- SelfBuff::default_instance_ = new SelfBuff();
- FunBuff::default_instance_ = new FunBuff();
- msg_scene_info::default_instance_ = new msg_scene_info();
- msg_buff_info::default_instance_ = new msg_buff_info();
- msg_seat_info::default_instance_ = new msg_seat_info();
- msg_item::default_instance_ = new msg_item();
- msg_fish_info::default_instance_ = new msg_fish_info();
- redEnvlopeInfo::default_instance_ = new redEnvlopeInfo();
- msg_fish_init::default_instance_->InitAsDefaultInstance();
- msg_generator_init::default_instance_->InitAsDefaultInstance();
- SelfBuff::default_instance_->InitAsDefaultInstance();
- FunBuff::default_instance_->InitAsDefaultInstance();
- msg_scene_info::default_instance_->InitAsDefaultInstance();
- msg_buff_info::default_instance_->InitAsDefaultInstance();
- msg_seat_info::default_instance_->InitAsDefaultInstance();
- msg_item::default_instance_->InitAsDefaultInstance();
- msg_fish_info::default_instance_->InitAsDefaultInstance();
- redEnvlopeInfo::default_instance_->InitAsDefaultInstance();
- ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_fish_5ftype_5fdef_2eproto);
- }
- // Force AddDescriptors() to be called at static initialization time.
- struct StaticDescriptorInitializer_fish_5ftype_5fdef_2eproto {
- StaticDescriptorInitializer_fish_5ftype_5fdef_2eproto() {
- protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
- }
- } static_descriptor_initializer_fish_5ftype_5fdef_2eproto_;
- // ===================================================================
- #ifndef _MSC_VER
- const int msg_fish_init::kIdFieldNumber;
- const int msg_fish_init::kFishIdFieldNumber;
- const int msg_fish_init::kLifeTimeFieldNumber;
- const int msg_fish_init::kRouteParamFieldNumber;
- #endif // !_MSC_VER
- msg_fish_init::msg_fish_init()
- : ::google::protobuf::Message() {
- SharedCtor();
- }
- void msg_fish_init::InitAsDefaultInstance() {
- }
- msg_fish_init::msg_fish_init(const msg_fish_init& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
- }
- void msg_fish_init::SharedCtor() {
- _cached_size_ = 0;
- id_ = 0;
- fish_id_ = 0;
- life_time_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- }
- msg_fish_init::~msg_fish_init() {
- SharedDtor();
- }
- void msg_fish_init::SharedDtor() {
- if (this != default_instance_) {
- }
- }
- void msg_fish_init::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* msg_fish_init::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return msg_fish_init_descriptor_;
- }
- const msg_fish_init& msg_fish_init::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
- return *default_instance_;
- }
- msg_fish_init* msg_fish_init::default_instance_ = NULL;
- msg_fish_init* msg_fish_init::New() const {
- return new msg_fish_init;
- }
- void msg_fish_init::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- id_ = 0;
- fish_id_ = 0;
- life_time_ = 0;
- }
- route_param_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
- }
- bool msg_fish_init::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
- ::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional int32 id = 1;
- case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &id_)));
- set_has_id();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(16)) goto parse_fish_id;
- break;
- }
- // optional int32 fish_id = 2;
- case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_fish_id:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &fish_id_)));
- set_has_fish_id();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(29)) goto parse_life_time;
- break;
- }
- // optional float life_time = 3;
- case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
- parse_life_time:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &life_time_)));
- set_has_life_time();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(37)) goto parse_route_param;
- break;
- }
- // repeated float route_param = 4;
- case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
- parse_route_param:
- DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- 1, 37, input, this->mutable_route_param())));
- } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
- == ::google::protobuf::internal::WireFormatLite::
- WIRETYPE_LENGTH_DELIMITED) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, this->mutable_route_param())));
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(37)) goto parse_route_param;
- if (input->ExpectAtEnd()) return true;
- break;
- }
- default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
- break;
- }
- }
- }
- return true;
- #undef DO_
- }
- void msg_fish_init::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // optional int32 id = 1;
- if (has_id()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->id(), output);
- }
- // optional int32 fish_id = 2;
- if (has_fish_id()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->fish_id(), output);
- }
- // optional float life_time = 3;
- if (has_life_time()) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->life_time(), output);
- }
- // repeated float route_param = 4;
- for (int i = 0; i < this->route_param_size(); i++) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(
- 4, this->route_param(i), output);
- }
- if (!unknown_fields().empty()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
- }
- }
- ::google::protobuf::uint8* msg_fish_init::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
- // optional int32 id = 1;
- if (has_id()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->id(), target);
- }
- // optional int32 fish_id = 2;
- if (has_fish_id()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->fish_id(), target);
- }
- // optional float life_time = 3;
- if (has_life_time()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->life_time(), target);
- }
- // repeated float route_param = 4;
- for (int i = 0; i < this->route_param_size(); i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- WriteFloatToArray(4, this->route_param(i), target);
- }
- if (!unknown_fields().empty()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
- }
- return target;
- }
- int msg_fish_init::ByteSize() const {
- int total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional int32 id = 1;
- if (has_id()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->id());
- }
- // optional int32 fish_id = 2;
- if (has_fish_id()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->fish_id());
- }
- // optional float life_time = 3;
- if (has_life_time()) {
- total_size += 1 + 4;
- }
- }
- // repeated float route_param = 4;
- {
- int data_size = 0;
- data_size = 4 * this->route_param_size();
- total_size += 1 * this->route_param_size() + data_size;
- }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void msg_fish_init::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
- const msg_fish_init* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const msg_fish_init*>(
- &from);
- if (source == NULL) {
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- MergeFrom(*source);
- }
- }
- void msg_fish_init::MergeFrom(const msg_fish_init& from) {
- GOOGLE_CHECK_NE(&from, this);
- route_param_.MergeFrom(from.route_param_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_id()) {
- set_id(from.id());
- }
- if (from.has_fish_id()) {
- set_fish_id(from.fish_id());
- }
- if (from.has_life_time()) {
- set_life_time(from.life_time());
- }
- }
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
- }
- void msg_fish_init::CopyFrom(const ::google::protobuf::Message& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void msg_fish_init::CopyFrom(const msg_fish_init& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool msg_fish_init::IsInitialized() const {
- return true;
- }
- void msg_fish_init::Swap(msg_fish_init* other) {
- if (other != this) {
- std::swap(id_, other->id_);
- std::swap(fish_id_, other->fish_id_);
- std::swap(life_time_, other->life_time_);
- route_param_.Swap(&other->route_param_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
- }
- ::google::protobuf::Metadata msg_fish_init::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = msg_fish_init_descriptor_;
- metadata.reflection = msg_fish_init_reflection_;
- return metadata;
- }
- // ===================================================================
- #ifndef _MSC_VER
- const int msg_generator_init::kGeneratorIdFieldNumber;
- const int msg_generator_init::kLifeTimeFieldNumber;
- const int msg_generator_init::kStartIdFieldNumber;
- const int msg_generator_init::kRouteIdFieldNumber;
- const int msg_generator_init::kPosXFieldNumber;
- const int msg_generator_init::kPosYFieldNumber;
- #endif // !_MSC_VER
- msg_generator_init::msg_generator_init()
- : ::google::protobuf::Message() {
- SharedCtor();
- }
- void msg_generator_init::InitAsDefaultInstance() {
- }
- msg_generator_init::msg_generator_init(const msg_generator_init& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
- }
- void msg_generator_init::SharedCtor() {
- _cached_size_ = 0;
- generator_id_ = 0;
- life_time_ = 0;
- start_id_ = 0;
- route_id_ = 0;
- pos_x_ = 0;
- pos_y_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- }
- msg_generator_init::~msg_generator_init() {
- SharedDtor();
- }
- void msg_generator_init::SharedDtor() {
- if (this != default_instance_) {
- }
- }
- void msg_generator_init::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* msg_generator_init::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return msg_generator_init_descriptor_;
- }
- const msg_generator_init& msg_generator_init::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
- return *default_instance_;
- }
- msg_generator_init* msg_generator_init::default_instance_ = NULL;
- msg_generator_init* msg_generator_init::New() const {
- return new msg_generator_init;
- }
- void msg_generator_init::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- generator_id_ = 0;
- life_time_ = 0;
- start_id_ = 0;
- route_id_ = 0;
- pos_x_ = 0;
- pos_y_ = 0;
- }
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
- }
- bool msg_generator_init::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
- ::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional int32 generator_id = 1;
- case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &generator_id_)));
- set_has_generator_id();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(16)) goto parse_life_time;
- break;
- }
- // optional int32 life_time = 2;
- case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_life_time:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &life_time_)));
- set_has_life_time();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(24)) goto parse_start_id;
- break;
- }
- // optional int32 start_id = 3;
- case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_start_id:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &start_id_)));
- set_has_start_id();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(32)) goto parse_route_id;
- break;
- }
- // optional int32 route_id = 4 [default = 0];
- case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_route_id:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &route_id_)));
- set_has_route_id();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(40)) goto parse_pos_x;
- break;
- }
- // optional int32 pos_x = 5 [default = 0];
- case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_pos_x:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &pos_x_)));
- set_has_pos_x();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(48)) goto parse_pos_y;
- break;
- }
- // optional int32 pos_y = 6 [default = 0];
- case 6: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_pos_y:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &pos_y_)));
- set_has_pos_y();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectAtEnd()) return true;
- break;
- }
- default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
- break;
- }
- }
- }
- return true;
- #undef DO_
- }
- void msg_generator_init::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // optional int32 generator_id = 1;
- if (has_generator_id()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->generator_id(), output);
- }
- // optional int32 life_time = 2;
- if (has_life_time()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->life_time(), output);
- }
- // optional int32 start_id = 3;
- if (has_start_id()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->start_id(), output);
- }
- // optional int32 route_id = 4 [default = 0];
- if (has_route_id()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->route_id(), output);
- }
- // optional int32 pos_x = 5 [default = 0];
- if (has_pos_x()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->pos_x(), output);
- }
- // optional int32 pos_y = 6 [default = 0];
- if (has_pos_y()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->pos_y(), output);
- }
- if (!unknown_fields().empty()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
- }
- }
- ::google::protobuf::uint8* msg_generator_init::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
- // optional int32 generator_id = 1;
- if (has_generator_id()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->generator_id(), target);
- }
- // optional int32 life_time = 2;
- if (has_life_time()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->life_time(), target);
- }
- // optional int32 start_id = 3;
- if (has_start_id()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->start_id(), target);
- }
- // optional int32 route_id = 4 [default = 0];
- if (has_route_id()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->route_id(), target);
- }
- // optional int32 pos_x = 5 [default = 0];
- if (has_pos_x()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->pos_x(), target);
- }
- // optional int32 pos_y = 6 [default = 0];
- if (has_pos_y()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->pos_y(), target);
- }
- if (!unknown_fields().empty()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
- }
- return target;
- }
- int msg_generator_init::ByteSize() const {
- int total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional int32 generator_id = 1;
- if (has_generator_id()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->generator_id());
- }
- // optional int32 life_time = 2;
- if (has_life_time()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->life_time());
- }
- // optional int32 start_id = 3;
- if (has_start_id()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->start_id());
- }
- // optional int32 route_id = 4 [default = 0];
- if (has_route_id()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->route_id());
- }
- // optional int32 pos_x = 5 [default = 0];
- if (has_pos_x()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->pos_x());
- }
- // optional int32 pos_y = 6 [default = 0];
- if (has_pos_y()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->pos_y());
- }
- }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void msg_generator_init::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
- const msg_generator_init* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const msg_generator_init*>(
- &from);
- if (source == NULL) {
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- MergeFrom(*source);
- }
- }
- void msg_generator_init::MergeFrom(const msg_generator_init& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_generator_id()) {
- set_generator_id(from.generator_id());
- }
- if (from.has_life_time()) {
- set_life_time(from.life_time());
- }
- if (from.has_start_id()) {
- set_start_id(from.start_id());
- }
- if (from.has_route_id()) {
- set_route_id(from.route_id());
- }
- if (from.has_pos_x()) {
- set_pos_x(from.pos_x());
- }
- if (from.has_pos_y()) {
- set_pos_y(from.pos_y());
- }
- }
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
- }
- void msg_generator_init::CopyFrom(const ::google::protobuf::Message& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void msg_generator_init::CopyFrom(const msg_generator_init& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool msg_generator_init::IsInitialized() const {
- return true;
- }
- void msg_generator_init::Swap(msg_generator_init* other) {
- if (other != this) {
- std::swap(generator_id_, other->generator_id_);
- std::swap(life_time_, other->life_time_);
- std::swap(start_id_, other->start_id_);
- std::swap(route_id_, other->route_id_);
- std::swap(pos_x_, other->pos_x_);
- std::swap(pos_y_, other->pos_y_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
- }
- ::google::protobuf::Metadata msg_generator_init::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = msg_generator_init_descriptor_;
- metadata.reflection = msg_generator_init_reflection_;
- return metadata;
- }
- // ===================================================================
- #ifndef _MSC_VER
- const int SelfBuff::kBuffIdFieldNumber;
- const int SelfBuff::kRemainTimeFieldNumber;
- #endif // !_MSC_VER
- SelfBuff::SelfBuff()
- : ::google::protobuf::Message() {
- SharedCtor();
- }
- void SelfBuff::InitAsDefaultInstance() {
- }
- SelfBuff::SelfBuff(const SelfBuff& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
- }
- void SelfBuff::SharedCtor() {
- _cached_size_ = 0;
- buffid_ = 0;
- remaintime_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- }
- SelfBuff::~SelfBuff() {
- SharedDtor();
- }
- void SelfBuff::SharedDtor() {
- if (this != default_instance_) {
- }
- }
- void SelfBuff::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* SelfBuff::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return SelfBuff_descriptor_;
- }
- const SelfBuff& SelfBuff::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
- return *default_instance_;
- }
- SelfBuff* SelfBuff::default_instance_ = NULL;
- SelfBuff* SelfBuff::New() const {
- return new SelfBuff;
- }
- void SelfBuff::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- buffid_ = 0;
- remaintime_ = 0;
- }
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
- }
- bool SelfBuff::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
- ::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional int32 buffId = 1;
- case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &buffid_)));
- set_has_buffid();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(16)) goto parse_remainTime;
- break;
- }
- // optional int32 remainTime = 2;
- case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_remainTime:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &remaintime_)));
- set_has_remaintime();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectAtEnd()) return true;
- break;
- }
- default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
- break;
- }
- }
- }
- return true;
- #undef DO_
- }
- void SelfBuff::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // optional int32 buffId = 1;
- if (has_buffid()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->buffid(), output);
- }
- // optional int32 remainTime = 2;
- if (has_remaintime()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->remaintime(), output);
- }
- if (!unknown_fields().empty()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
- }
- }
- ::google::protobuf::uint8* SelfBuff::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
- // optional int32 buffId = 1;
- if (has_buffid()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->buffid(), target);
- }
- // optional int32 remainTime = 2;
- if (has_remaintime()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->remaintime(), target);
- }
- if (!unknown_fields().empty()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
- }
- return target;
- }
- int SelfBuff::ByteSize() const {
- int total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional int32 buffId = 1;
- if (has_buffid()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->buffid());
- }
- // optional int32 remainTime = 2;
- if (has_remaintime()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->remaintime());
- }
- }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void SelfBuff::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
- const SelfBuff* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const SelfBuff*>(
- &from);
- if (source == NULL) {
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- MergeFrom(*source);
- }
- }
- void SelfBuff::MergeFrom(const SelfBuff& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_buffid()) {
- set_buffid(from.buffid());
- }
- if (from.has_remaintime()) {
- set_remaintime(from.remaintime());
- }
- }
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
- }
- void SelfBuff::CopyFrom(const ::google::protobuf::Message& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void SelfBuff::CopyFrom(const SelfBuff& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SelfBuff::IsInitialized() const {
- return true;
- }
- void SelfBuff::Swap(SelfBuff* other) {
- if (other != this) {
- std::swap(buffid_, other->buffid_);
- std::swap(remaintime_, other->remaintime_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
- }
- ::google::protobuf::Metadata SelfBuff::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = SelfBuff_descriptor_;
- metadata.reflection = SelfBuff_reflection_;
- return metadata;
- }
- // ===================================================================
- #ifndef _MSC_VER
- const int FunBuff::kBuffIdFieldNumber;
- const int FunBuff::kEffTypeFieldNumber;
- #endif // !_MSC_VER
- FunBuff::FunBuff()
- : ::google::protobuf::Message() {
- SharedCtor();
- }
- void FunBuff::InitAsDefaultInstance() {
- }
- FunBuff::FunBuff(const FunBuff& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
- }
- void FunBuff::SharedCtor() {
- _cached_size_ = 0;
- buffid_ = 0;
- efftype_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- }
- FunBuff::~FunBuff() {
- SharedDtor();
- }
- void FunBuff::SharedDtor() {
- if (this != default_instance_) {
- }
- }
- void FunBuff::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* FunBuff::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return FunBuff_descriptor_;
- }
- const FunBuff& FunBuff::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
- return *default_instance_;
- }
- FunBuff* FunBuff::default_instance_ = NULL;
- FunBuff* FunBuff::New() const {
- return new FunBuff;
- }
- void FunBuff::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- buffid_ = 0;
- efftype_ = 0;
- }
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
- }
- bool FunBuff::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
- ::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional int32 buffId = 1;
- case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &buffid_)));
- set_has_buffid();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(16)) goto parse_effType;
- break;
- }
- // optional int32 effType = 2;
- case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_effType:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &efftype_)));
- set_has_efftype();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectAtEnd()) return true;
- break;
- }
- default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
- break;
- }
- }
- }
- return true;
- #undef DO_
- }
- void FunBuff::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // optional int32 buffId = 1;
- if (has_buffid()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->buffid(), output);
- }
- // optional int32 effType = 2;
- if (has_efftype()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->efftype(), output);
- }
- if (!unknown_fields().empty()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
- }
- }
- ::google::protobuf::uint8* FunBuff::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
- // optional int32 buffId = 1;
- if (has_buffid()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->buffid(), target);
- }
- // optional int32 effType = 2;
- if (has_efftype()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->efftype(), target);
- }
- if (!unknown_fields().empty()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
- }
- return target;
- }
- int FunBuff::ByteSize() const {
- int total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional int32 buffId = 1;
- if (has_buffid()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->buffid());
- }
- // optional int32 effType = 2;
- if (has_efftype()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->efftype());
- }
- }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void FunBuff::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
- const FunBuff* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const FunBuff*>(
- &from);
- if (source == NULL) {
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- MergeFrom(*source);
- }
- }
- void FunBuff::MergeFrom(const FunBuff& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_buffid()) {
- set_buffid(from.buffid());
- }
- if (from.has_efftype()) {
- set_efftype(from.efftype());
- }
- }
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
- }
- void FunBuff::CopyFrom(const ::google::protobuf::Message& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void FunBuff::CopyFrom(const FunBuff& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool FunBuff::IsInitialized() const {
- return true;
- }
- void FunBuff::Swap(FunBuff* other) {
- if (other != this) {
- std::swap(buffid_, other->buffid_);
- std::swap(efftype_, other->efftype_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
- }
- ::google::protobuf::Metadata FunBuff::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = FunBuff_descriptor_;
- metadata.reflection = FunBuff_reflection_;
- return metadata;
- }
- // ===================================================================
- #ifndef _MSC_VER
- const int msg_scene_info::kSceneidFieldNumber;
- const int msg_scene_info::kRoomidFieldNumber;
- const int msg_scene_info::kSeatInfoFieldNumber;
- const int msg_scene_info::kFishInfosFieldNumber;
- const int msg_scene_info::kGeneratorInfosFieldNumber;
- const int msg_scene_info::kBossTimeFieldNumber;
- const int msg_scene_info::kSelfBuffListFieldNumber;
- const int msg_scene_info::kSelfFunBuffListFieldNumber;
- const int msg_scene_info::kHighGradeJackpotFieldNumber;
- const int msg_scene_info::kFrozeRemainTimeFieldNumber;
- #endif // !_MSC_VER
- msg_scene_info::msg_scene_info()
- : ::google::protobuf::Message() {
- SharedCtor();
- }
- void msg_scene_info::InitAsDefaultInstance() {
- }
- msg_scene_info::msg_scene_info(const msg_scene_info& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
- }
- void msg_scene_info::SharedCtor() {
- _cached_size_ = 0;
- sceneid_ = 0;
- roomid_ = 0;
- boss_time_ = 0;
- high_grade_jackpot_ = GOOGLE_LONGLONG(0);
- frozeremaintime_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- }
- msg_scene_info::~msg_scene_info() {
- SharedDtor();
- }
- void msg_scene_info::SharedDtor() {
- if (this != default_instance_) {
- }
- }
- void msg_scene_info::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* msg_scene_info::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return msg_scene_info_descriptor_;
- }
- const msg_scene_info& msg_scene_info::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
- return *default_instance_;
- }
- msg_scene_info* msg_scene_info::default_instance_ = NULL;
- msg_scene_info* msg_scene_info::New() const {
- return new msg_scene_info;
- }
- void msg_scene_info::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- sceneid_ = 0;
- roomid_ = 0;
- boss_time_ = 0;
- }
- if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- high_grade_jackpot_ = GOOGLE_LONGLONG(0);
- frozeremaintime_ = 0;
- }
- seat_info_.Clear();
- fish_infos_.Clear();
- generator_infos_.Clear();
- selfbufflist_.Clear();
- selffunbufflist_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
- }
- bool msg_scene_info::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
- ::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional int32 sceneid = 1;
- case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &sceneid_)));
- set_has_sceneid();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(16)) goto parse_roomid;
- break;
- }
- // optional int32 roomid = 2;
- case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_roomid:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &roomid_)));
- set_has_roomid();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(26)) goto parse_seat_info;
- break;
- }
- // repeated .fish_protocols.msg_seat_info seat_info = 3;
- case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_seat_info:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, add_seat_info()));
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(26)) goto parse_seat_info;
- if (input->ExpectTag(34)) goto parse_fish_infos;
- break;
- }
- // repeated .fish_protocols.msg_fish_init fish_infos = 4;
- case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_fish_infos:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, add_fish_infos()));
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(34)) goto parse_fish_infos;
- if (input->ExpectTag(42)) goto parse_generator_infos;
- break;
- }
- // repeated .fish_protocols.msg_generator_init generator_infos = 5;
- case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_generator_infos:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, add_generator_infos()));
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(42)) goto parse_generator_infos;
- if (input->ExpectTag(48)) goto parse_boss_time;
- break;
- }
- // optional int32 boss_time = 6;
- case 6: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_boss_time:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &boss_time_)));
- set_has_boss_time();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(58)) goto parse_selfBuffList;
- break;
- }
- // repeated .fish_protocols.SelfBuff selfBuffList = 7;
- case 7: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_selfBuffList:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, add_selfbufflist()));
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(58)) goto parse_selfBuffList;
- if (input->ExpectTag(66)) goto parse_selfFunBuffList;
- break;
- }
- // repeated .fish_protocols.FunBuff selfFunBuffList = 8;
- case 8: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_selfFunBuffList:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, add_selffunbufflist()));
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(66)) goto parse_selfFunBuffList;
- if (input->ExpectTag(72)) goto parse_high_grade_jackpot;
- break;
- }
- // optional int64 high_grade_jackpot = 9;
- case 9: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_high_grade_jackpot:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
- input, &high_grade_jackpot_)));
- set_has_high_grade_jackpot();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(80)) goto parse_frozeRemainTime;
- break;
- }
- // optional int32 frozeRemainTime = 10;
- case 10: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_frozeRemainTime:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &frozeremaintime_)));
- set_has_frozeremaintime();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectAtEnd()) return true;
- break;
- }
- default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
- break;
- }
- }
- }
- return true;
- #undef DO_
- }
- void msg_scene_info::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // optional int32 sceneid = 1;
- if (has_sceneid()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->sceneid(), output);
- }
- // optional int32 roomid = 2;
- if (has_roomid()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->roomid(), output);
- }
- // repeated .fish_protocols.msg_seat_info seat_info = 3;
- for (int i = 0; i < this->seat_info_size(); i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, this->seat_info(i), output);
- }
- // repeated .fish_protocols.msg_fish_init fish_infos = 4;
- for (int i = 0; i < this->fish_infos_size(); i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4, this->fish_infos(i), output);
- }
- // repeated .fish_protocols.msg_generator_init generator_infos = 5;
- for (int i = 0; i < this->generator_infos_size(); i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 5, this->generator_infos(i), output);
- }
- // optional int32 boss_time = 6;
- if (has_boss_time()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->boss_time(), output);
- }
- // repeated .fish_protocols.SelfBuff selfBuffList = 7;
- for (int i = 0; i < this->selfbufflist_size(); i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 7, this->selfbufflist(i), output);
- }
- // repeated .fish_protocols.FunBuff selfFunBuffList = 8;
- for (int i = 0; i < this->selffunbufflist_size(); i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 8, this->selffunbufflist(i), output);
- }
- // optional int64 high_grade_jackpot = 9;
- if (has_high_grade_jackpot()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(9, this->high_grade_jackpot(), output);
- }
- // optional int32 frozeRemainTime = 10;
- if (has_frozeremaintime()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->frozeremaintime(), output);
- }
- if (!unknown_fields().empty()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
- }
- }
- ::google::protobuf::uint8* msg_scene_info::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
- // optional int32 sceneid = 1;
- if (has_sceneid()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->sceneid(), target);
- }
- // optional int32 roomid = 2;
- if (has_roomid()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->roomid(), target);
- }
- // repeated .fish_protocols.msg_seat_info seat_info = 3;
- for (int i = 0; i < this->seat_info_size(); i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 3, this->seat_info(i), target);
- }
- // repeated .fish_protocols.msg_fish_init fish_infos = 4;
- for (int i = 0; i < this->fish_infos_size(); i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 4, this->fish_infos(i), target);
- }
- // repeated .fish_protocols.msg_generator_init generator_infos = 5;
- for (int i = 0; i < this->generator_infos_size(); i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 5, this->generator_infos(i), target);
- }
- // optional int32 boss_time = 6;
- if (has_boss_time()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->boss_time(), target);
- }
- // repeated .fish_protocols.SelfBuff selfBuffList = 7;
- for (int i = 0; i < this->selfbufflist_size(); i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 7, this->selfbufflist(i), target);
- }
- // repeated .fish_protocols.FunBuff selfFunBuffList = 8;
- for (int i = 0; i < this->selffunbufflist_size(); i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 8, this->selffunbufflist(i), target);
- }
- // optional int64 high_grade_jackpot = 9;
- if (has_high_grade_jackpot()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(9, this->high_grade_jackpot(), target);
- }
- // optional int32 frozeRemainTime = 10;
- if (has_frozeremaintime()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->frozeremaintime(), target);
- }
- if (!unknown_fields().empty()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
- }
- return target;
- }
- int msg_scene_info::ByteSize() const {
- int total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional int32 sceneid = 1;
- if (has_sceneid()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->sceneid());
- }
- // optional int32 roomid = 2;
- if (has_roomid()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->roomid());
- }
- // optional int32 boss_time = 6;
- if (has_boss_time()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->boss_time());
- }
- }
- if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- // optional int64 high_grade_jackpot = 9;
- if (has_high_grade_jackpot()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->high_grade_jackpot());
- }
- // optional int32 frozeRemainTime = 10;
- if (has_frozeremaintime()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->frozeremaintime());
- }
- }
- // repeated .fish_protocols.msg_seat_info seat_info = 3;
- total_size += 1 * this->seat_info_size();
- for (int i = 0; i < this->seat_info_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->seat_info(i));
- }
- // repeated .fish_protocols.msg_fish_init fish_infos = 4;
- total_size += 1 * this->fish_infos_size();
- for (int i = 0; i < this->fish_infos_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->fish_infos(i));
- }
- // repeated .fish_protocols.msg_generator_init generator_infos = 5;
- total_size += 1 * this->generator_infos_size();
- for (int i = 0; i < this->generator_infos_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->generator_infos(i));
- }
- // repeated .fish_protocols.SelfBuff selfBuffList = 7;
- total_size += 1 * this->selfbufflist_size();
- for (int i = 0; i < this->selfbufflist_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->selfbufflist(i));
- }
- // repeated .fish_protocols.FunBuff selfFunBuffList = 8;
- total_size += 1 * this->selffunbufflist_size();
- for (int i = 0; i < this->selffunbufflist_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->selffunbufflist(i));
- }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void msg_scene_info::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
- const msg_scene_info* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const msg_scene_info*>(
- &from);
- if (source == NULL) {
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- MergeFrom(*source);
- }
- }
- void msg_scene_info::MergeFrom(const msg_scene_info& from) {
- GOOGLE_CHECK_NE(&from, this);
- seat_info_.MergeFrom(from.seat_info_);
- fish_infos_.MergeFrom(from.fish_infos_);
- generator_infos_.MergeFrom(from.generator_infos_);
- selfbufflist_.MergeFrom(from.selfbufflist_);
- selffunbufflist_.MergeFrom(from.selffunbufflist_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_sceneid()) {
- set_sceneid(from.sceneid());
- }
- if (from.has_roomid()) {
- set_roomid(from.roomid());
- }
- if (from.has_boss_time()) {
- set_boss_time(from.boss_time());
- }
- }
- if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- if (from.has_high_grade_jackpot()) {
- set_high_grade_jackpot(from.high_grade_jackpot());
- }
- if (from.has_frozeremaintime()) {
- set_frozeremaintime(from.frozeremaintime());
- }
- }
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
- }
- void msg_scene_info::CopyFrom(const ::google::protobuf::Message& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void msg_scene_info::CopyFrom(const msg_scene_info& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool msg_scene_info::IsInitialized() const {
- return true;
- }
- void msg_scene_info::Swap(msg_scene_info* other) {
- if (other != this) {
- std::swap(sceneid_, other->sceneid_);
- std::swap(roomid_, other->roomid_);
- seat_info_.Swap(&other->seat_info_);
- fish_infos_.Swap(&other->fish_infos_);
- generator_infos_.Swap(&other->generator_infos_);
- std::swap(boss_time_, other->boss_time_);
- selfbufflist_.Swap(&other->selfbufflist_);
- selffunbufflist_.Swap(&other->selffunbufflist_);
- std::swap(high_grade_jackpot_, other->high_grade_jackpot_);
- std::swap(frozeremaintime_, other->frozeremaintime_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
- }
- ::google::protobuf::Metadata msg_scene_info::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = msg_scene_info_descriptor_;
- metadata.reflection = msg_scene_info_reflection_;
- return metadata;
- }
- // ===================================================================
- #ifndef _MSC_VER
- const int msg_buff_info::kBuffidFieldNumber;
- const int msg_buff_info::kOuttimeFieldNumber;
- #endif // !_MSC_VER
- msg_buff_info::msg_buff_info()
- : ::google::protobuf::Message() {
- SharedCtor();
- }
- void msg_buff_info::InitAsDefaultInstance() {
- }
- msg_buff_info::msg_buff_info(const msg_buff_info& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
- }
- void msg_buff_info::SharedCtor() {
- _cached_size_ = 0;
- buffid_ = 0;
- outtime_ = -1;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- }
- msg_buff_info::~msg_buff_info() {
- SharedDtor();
- }
- void msg_buff_info::SharedDtor() {
- if (this != default_instance_) {
- }
- }
- void msg_buff_info::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* msg_buff_info::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return msg_buff_info_descriptor_;
- }
- const msg_buff_info& msg_buff_info::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
- return *default_instance_;
- }
- msg_buff_info* msg_buff_info::default_instance_ = NULL;
- msg_buff_info* msg_buff_info::New() const {
- return new msg_buff_info;
- }
- void msg_buff_info::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- buffid_ = 0;
- outtime_ = -1;
- }
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
- }
- bool msg_buff_info::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
- ::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional int32 buffid = 1;
- case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &buffid_)));
- set_has_buffid();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(16)) goto parse_outtime;
- break;
- }
- // optional int32 outtime = 2 [default = -1];
- case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_outtime:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &outtime_)));
- set_has_outtime();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectAtEnd()) return true;
- break;
- }
- default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
- break;
- }
- }
- }
- return true;
- #undef DO_
- }
- void msg_buff_info::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // optional int32 buffid = 1;
- if (has_buffid()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->buffid(), output);
- }
- // optional int32 outtime = 2 [default = -1];
- if (has_outtime()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->outtime(), output);
- }
- if (!unknown_fields().empty()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
- }
- }
- ::google::protobuf::uint8* msg_buff_info::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
- // optional int32 buffid = 1;
- if (has_buffid()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->buffid(), target);
- }
- // optional int32 outtime = 2 [default = -1];
- if (has_outtime()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->outtime(), target);
- }
- if (!unknown_fields().empty()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
- }
- return target;
- }
- int msg_buff_info::ByteSize() const {
- int total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional int32 buffid = 1;
- if (has_buffid()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->buffid());
- }
- // optional int32 outtime = 2 [default = -1];
- if (has_outtime()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->outtime());
- }
- }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void msg_buff_info::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
- const msg_buff_info* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const msg_buff_info*>(
- &from);
- if (source == NULL) {
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- MergeFrom(*source);
- }
- }
- void msg_buff_info::MergeFrom(const msg_buff_info& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_buffid()) {
- set_buffid(from.buffid());
- }
- if (from.has_outtime()) {
- set_outtime(from.outtime());
- }
- }
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
- }
- void msg_buff_info::CopyFrom(const ::google::protobuf::Message& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void msg_buff_info::CopyFrom(const msg_buff_info& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool msg_buff_info::IsInitialized() const {
- return true;
- }
- void msg_buff_info::Swap(msg_buff_info* other) {
- if (other != this) {
- std::swap(buffid_, other->buffid_);
- std::swap(outtime_, other->outtime_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
- }
- ::google::protobuf::Metadata msg_buff_info::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = msg_buff_info_descriptor_;
- metadata.reflection = msg_buff_info_reflection_;
- return metadata;
- }
- // ===================================================================
- #ifndef _MSC_VER
- const int msg_seat_info::kSeatIndexFieldNumber;
- const int msg_seat_info::kPlayerIdFieldNumber;
- const int msg_seat_info::kNicknameFieldNumber;
- const int msg_seat_info::kPlayerGoldFieldNumber;
- const int msg_seat_info::kTurretRateFieldNumber;
- const int msg_seat_info::kTurretIdFieldNumber;
- const int msg_seat_info::kTurretLvFieldNumber;
- const int msg_seat_info::kWingIdFieldNumber;
- const int msg_seat_info::kWingLvFieldNumber;
- const int msg_seat_info::kBufflistFieldNumber;
- const int msg_seat_info::kHeadidFieldNumber;
- const int msg_seat_info::kFrameidFieldNumber;
- const int msg_seat_info::kPointFieldNumber;
- const int msg_seat_info::kVipFieldNumber;
- const int msg_seat_info::kPlayerLvFieldNumber;
- const int msg_seat_info::kPlayerDiamondFieldNumber;
- const int msg_seat_info::kPlayerTicketFieldNumber;
- const int msg_seat_info::kDimensityFieldNumber;
- const int msg_seat_info::kRoomRateFieldNumber;
- const int msg_seat_info::kBulletPowerFieldNumber;
- #endif // !_MSC_VER
- msg_seat_info::msg_seat_info()
- : ::google::protobuf::Message() {
- SharedCtor();
- }
- void msg_seat_info::InitAsDefaultInstance() {
- }
- msg_seat_info::msg_seat_info(const msg_seat_info& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
- }
- void msg_seat_info::SharedCtor() {
- _cached_size_ = 0;
- seat_index_ = 0;
- player_id_ = 0;
- nickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- player_gold_ = GOOGLE_LONGLONG(0);
- turret_rate_ = 0;
- turret_id_ = 0;
- turret_lv_ = 0;
- wing_id_ = 0;
- wing_lv_ = 0;
- headid_ = 0;
- frameid_ = 0;
- point_ = 0;
- vip_ = 0;
- player_lv_ = 0;
- player_diamond_ = 0;
- player_ticket_ = 0;
- dimensity_ = 0;
- room_rate_ = 0;
- bullet_power_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- }
- msg_seat_info::~msg_seat_info() {
- SharedDtor();
- }
- void msg_seat_info::SharedDtor() {
- if (nickname_ != &::google::protobuf::internal::kEmptyString) {
- delete nickname_;
- }
- if (this != default_instance_) {
- }
- }
- void msg_seat_info::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* msg_seat_info::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return msg_seat_info_descriptor_;
- }
- const msg_seat_info& msg_seat_info::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
- return *default_instance_;
- }
- msg_seat_info* msg_seat_info::default_instance_ = NULL;
- msg_seat_info* msg_seat_info::New() const {
- return new msg_seat_info;
- }
- void msg_seat_info::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- seat_index_ = 0;
- player_id_ = 0;
- if (has_nickname()) {
- if (nickname_ != &::google::protobuf::internal::kEmptyString) {
- nickname_->clear();
- }
- }
- player_gold_ = GOOGLE_LONGLONG(0);
- turret_rate_ = 0;
- turret_id_ = 0;
- turret_lv_ = 0;
- wing_id_ = 0;
- }
- if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- wing_lv_ = 0;
- headid_ = 0;
- frameid_ = 0;
- point_ = 0;
- vip_ = 0;
- player_lv_ = 0;
- player_diamond_ = 0;
- }
- if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
- player_ticket_ = 0;
- dimensity_ = 0;
- room_rate_ = 0;
- bullet_power_ = 0;
- }
- bufflist_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
- }
- bool msg_seat_info::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
- ::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional int32 seat_index = 1;
- case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &seat_index_)));
- set_has_seat_index();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(16)) goto parse_player_id;
- break;
- }
- // optional int32 player_id = 2;
- case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_player_id:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &player_id_)));
- set_has_player_id();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(26)) goto parse_nickname;
- break;
- }
- // optional string nickname = 3;
- case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_nickname:
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_nickname()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->nickname().data(), this->nickname().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(32)) goto parse_player_gold;
- break;
- }
- // optional int64 player_gold = 4;
- case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_player_gold:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
- input, &player_gold_)));
- set_has_player_gold();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(40)) goto parse_turret_rate;
- break;
- }
- // optional int32 turret_rate = 5;
- case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_turret_rate:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &turret_rate_)));
- set_has_turret_rate();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(48)) goto parse_turret_id;
- break;
- }
- // optional int32 turret_id = 6;
- case 6: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_turret_id:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &turret_id_)));
- set_has_turret_id();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(56)) goto parse_turret_lv;
- break;
- }
- // optional int32 turret_lv = 7;
- case 7: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_turret_lv:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &turret_lv_)));
- set_has_turret_lv();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(64)) goto parse_wing_id;
- break;
- }
- // optional int32 wing_id = 8;
- case 8: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_wing_id:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &wing_id_)));
- set_has_wing_id();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(72)) goto parse_wing_lv;
- break;
- }
- // optional int32 wing_lv = 9;
- case 9: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_wing_lv:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &wing_lv_)));
- set_has_wing_lv();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(82)) goto parse_bufflist;
- break;
- }
- // repeated .fish_protocols.msg_buff_info bufflist = 10;
- case 10: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_bufflist:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, add_bufflist()));
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(82)) goto parse_bufflist;
- if (input->ExpectTag(88)) goto parse_headid;
- break;
- }
- // optional int32 headid = 11;
- case 11: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_headid:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &headid_)));
- set_has_headid();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(96)) goto parse_frameid;
- break;
- }
- // optional int32 frameid = 12;
- case 12: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_frameid:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &frameid_)));
- set_has_frameid();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(104)) goto parse_point;
- break;
- }
- // optional int32 point = 13;
- case 13: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_point:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &point_)));
- set_has_point();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(112)) goto parse_vip;
- break;
- }
- // optional int32 vip = 14;
- case 14: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_vip:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &vip_)));
- set_has_vip();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(120)) goto parse_player_lv;
- break;
- }
- // optional int32 player_lv = 15;
- case 15: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_player_lv:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &player_lv_)));
- set_has_player_lv();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(128)) goto parse_player_diamond;
- break;
- }
- // optional int32 player_diamond = 16;
- case 16: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_player_diamond:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &player_diamond_)));
- set_has_player_diamond();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(136)) goto parse_player_ticket;
- break;
- }
- // optional int32 player_ticket = 17;
- case 17: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_player_ticket:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &player_ticket_)));
- set_has_player_ticket();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(144)) goto parse_dimensity;
- break;
- }
- // optional int32 dimensity = 18;
- case 18: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_dimensity:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &dimensity_)));
- set_has_dimensity();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(152)) goto parse_room_rate;
- break;
- }
- // optional int32 room_rate = 19;
- case 19: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_room_rate:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &room_rate_)));
- set_has_room_rate();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(160)) goto parse_bullet_power;
- break;
- }
- // optional int32 bullet_power = 20;
- case 20: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_bullet_power:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &bullet_power_)));
- set_has_bullet_power();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectAtEnd()) return true;
- break;
- }
- default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
- break;
- }
- }
- }
- return true;
- #undef DO_
- }
- void msg_seat_info::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // optional int32 seat_index = 1;
- if (has_seat_index()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->seat_index(), output);
- }
- // optional int32 player_id = 2;
- if (has_player_id()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->player_id(), output);
- }
- // optional string nickname = 3;
- if (has_nickname()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->nickname().data(), this->nickname().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
- 3, this->nickname(), output);
- }
- // optional int64 player_gold = 4;
- if (has_player_gold()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->player_gold(), output);
- }
- // optional int32 turret_rate = 5;
- if (has_turret_rate()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->turret_rate(), output);
- }
- // optional int32 turret_id = 6;
- if (has_turret_id()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->turret_id(), output);
- }
- // optional int32 turret_lv = 7;
- if (has_turret_lv()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->turret_lv(), output);
- }
- // optional int32 wing_id = 8;
- if (has_wing_id()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->wing_id(), output);
- }
- // optional int32 wing_lv = 9;
- if (has_wing_lv()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->wing_lv(), output);
- }
- // repeated .fish_protocols.msg_buff_info bufflist = 10;
- for (int i = 0; i < this->bufflist_size(); i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 10, this->bufflist(i), output);
- }
- // optional int32 headid = 11;
- if (has_headid()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(11, this->headid(), output);
- }
- // optional int32 frameid = 12;
- if (has_frameid()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(12, this->frameid(), output);
- }
- // optional int32 point = 13;
- if (has_point()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(13, this->point(), output);
- }
- // optional int32 vip = 14;
- if (has_vip()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(14, this->vip(), output);
- }
- // optional int32 player_lv = 15;
- if (has_player_lv()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(15, this->player_lv(), output);
- }
- // optional int32 player_diamond = 16;
- if (has_player_diamond()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(16, this->player_diamond(), output);
- }
- // optional int32 player_ticket = 17;
- if (has_player_ticket()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(17, this->player_ticket(), output);
- }
- // optional int32 dimensity = 18;
- if (has_dimensity()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(18, this->dimensity(), output);
- }
- // optional int32 room_rate = 19;
- if (has_room_rate()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(19, this->room_rate(), output);
- }
- // optional int32 bullet_power = 20;
- if (has_bullet_power()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(20, this->bullet_power(), output);
- }
- if (!unknown_fields().empty()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
- }
- }
- ::google::protobuf::uint8* msg_seat_info::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
- // optional int32 seat_index = 1;
- if (has_seat_index()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->seat_index(), target);
- }
- // optional int32 player_id = 2;
- if (has_player_id()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->player_id(), target);
- }
- // optional string nickname = 3;
- if (has_nickname()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->nickname().data(), this->nickname().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 3, this->nickname(), target);
- }
- // optional int64 player_gold = 4;
- if (has_player_gold()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->player_gold(), target);
- }
- // optional int32 turret_rate = 5;
- if (has_turret_rate()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->turret_rate(), target);
- }
- // optional int32 turret_id = 6;
- if (has_turret_id()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->turret_id(), target);
- }
- // optional int32 turret_lv = 7;
- if (has_turret_lv()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->turret_lv(), target);
- }
- // optional int32 wing_id = 8;
- if (has_wing_id()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->wing_id(), target);
- }
- // optional int32 wing_lv = 9;
- if (has_wing_lv()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->wing_lv(), target);
- }
- // repeated .fish_protocols.msg_buff_info bufflist = 10;
- for (int i = 0; i < this->bufflist_size(); i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 10, this->bufflist(i), target);
- }
- // optional int32 headid = 11;
- if (has_headid()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(11, this->headid(), target);
- }
- // optional int32 frameid = 12;
- if (has_frameid()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(12, this->frameid(), target);
- }
- // optional int32 point = 13;
- if (has_point()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(13, this->point(), target);
- }
- // optional int32 vip = 14;
- if (has_vip()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(14, this->vip(), target);
- }
- // optional int32 player_lv = 15;
- if (has_player_lv()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(15, this->player_lv(), target);
- }
- // optional int32 player_diamond = 16;
- if (has_player_diamond()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(16, this->player_diamond(), target);
- }
- // optional int32 player_ticket = 17;
- if (has_player_ticket()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(17, this->player_ticket(), target);
- }
- // optional int32 dimensity = 18;
- if (has_dimensity()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(18, this->dimensity(), target);
- }
- // optional int32 room_rate = 19;
- if (has_room_rate()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(19, this->room_rate(), target);
- }
- // optional int32 bullet_power = 20;
- if (has_bullet_power()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(20, this->bullet_power(), target);
- }
- if (!unknown_fields().empty()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
- }
- return target;
- }
- int msg_seat_info::ByteSize() const {
- int total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional int32 seat_index = 1;
- if (has_seat_index()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->seat_index());
- }
- // optional int32 player_id = 2;
- if (has_player_id()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->player_id());
- }
- // optional string nickname = 3;
- if (has_nickname()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->nickname());
- }
- // optional int64 player_gold = 4;
- if (has_player_gold()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->player_gold());
- }
- // optional int32 turret_rate = 5;
- if (has_turret_rate()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->turret_rate());
- }
- // optional int32 turret_id = 6;
- if (has_turret_id()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->turret_id());
- }
- // optional int32 turret_lv = 7;
- if (has_turret_lv()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->turret_lv());
- }
- // optional int32 wing_id = 8;
- if (has_wing_id()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->wing_id());
- }
- }
- if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- // optional int32 wing_lv = 9;
- if (has_wing_lv()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->wing_lv());
- }
- // optional int32 headid = 11;
- if (has_headid()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->headid());
- }
- // optional int32 frameid = 12;
- if (has_frameid()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->frameid());
- }
- // optional int32 point = 13;
- if (has_point()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->point());
- }
- // optional int32 vip = 14;
- if (has_vip()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->vip());
- }
- // optional int32 player_lv = 15;
- if (has_player_lv()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->player_lv());
- }
- // optional int32 player_diamond = 16;
- if (has_player_diamond()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->player_diamond());
- }
- }
- if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
- // optional int32 player_ticket = 17;
- if (has_player_ticket()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->player_ticket());
- }
- // optional int32 dimensity = 18;
- if (has_dimensity()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->dimensity());
- }
- // optional int32 room_rate = 19;
- if (has_room_rate()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->room_rate());
- }
- // optional int32 bullet_power = 20;
- if (has_bullet_power()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->bullet_power());
- }
- }
- // repeated .fish_protocols.msg_buff_info bufflist = 10;
- total_size += 1 * this->bufflist_size();
- for (int i = 0; i < this->bufflist_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->bufflist(i));
- }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void msg_seat_info::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
- const msg_seat_info* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const msg_seat_info*>(
- &from);
- if (source == NULL) {
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- MergeFrom(*source);
- }
- }
- void msg_seat_info::MergeFrom(const msg_seat_info& from) {
- GOOGLE_CHECK_NE(&from, this);
- bufflist_.MergeFrom(from.bufflist_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_seat_index()) {
- set_seat_index(from.seat_index());
- }
- if (from.has_player_id()) {
- set_player_id(from.player_id());
- }
- if (from.has_nickname()) {
- set_nickname(from.nickname());
- }
- if (from.has_player_gold()) {
- set_player_gold(from.player_gold());
- }
- if (from.has_turret_rate()) {
- set_turret_rate(from.turret_rate());
- }
- if (from.has_turret_id()) {
- set_turret_id(from.turret_id());
- }
- if (from.has_turret_lv()) {
- set_turret_lv(from.turret_lv());
- }
- if (from.has_wing_id()) {
- set_wing_id(from.wing_id());
- }
- }
- if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- if (from.has_wing_lv()) {
- set_wing_lv(from.wing_lv());
- }
- if (from.has_headid()) {
- set_headid(from.headid());
- }
- if (from.has_frameid()) {
- set_frameid(from.frameid());
- }
- if (from.has_point()) {
- set_point(from.point());
- }
- if (from.has_vip()) {
- set_vip(from.vip());
- }
- if (from.has_player_lv()) {
- set_player_lv(from.player_lv());
- }
- if (from.has_player_diamond()) {
- set_player_diamond(from.player_diamond());
- }
- }
- if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) {
- if (from.has_player_ticket()) {
- set_player_ticket(from.player_ticket());
- }
- if (from.has_dimensity()) {
- set_dimensity(from.dimensity());
- }
- if (from.has_room_rate()) {
- set_room_rate(from.room_rate());
- }
- if (from.has_bullet_power()) {
- set_bullet_power(from.bullet_power());
- }
- }
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
- }
- void msg_seat_info::CopyFrom(const ::google::protobuf::Message& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void msg_seat_info::CopyFrom(const msg_seat_info& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool msg_seat_info::IsInitialized() const {
- return true;
- }
- void msg_seat_info::Swap(msg_seat_info* other) {
- if (other != this) {
- std::swap(seat_index_, other->seat_index_);
- std::swap(player_id_, other->player_id_);
- std::swap(nickname_, other->nickname_);
- std::swap(player_gold_, other->player_gold_);
- std::swap(turret_rate_, other->turret_rate_);
- std::swap(turret_id_, other->turret_id_);
- std::swap(turret_lv_, other->turret_lv_);
- std::swap(wing_id_, other->wing_id_);
- std::swap(wing_lv_, other->wing_lv_);
- bufflist_.Swap(&other->bufflist_);
- std::swap(headid_, other->headid_);
- std::swap(frameid_, other->frameid_);
- std::swap(point_, other->point_);
- std::swap(vip_, other->vip_);
- std::swap(player_lv_, other->player_lv_);
- std::swap(player_diamond_, other->player_diamond_);
- std::swap(player_ticket_, other->player_ticket_);
- std::swap(dimensity_, other->dimensity_);
- std::swap(room_rate_, other->room_rate_);
- std::swap(bullet_power_, other->bullet_power_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
- }
- ::google::protobuf::Metadata msg_seat_info::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = msg_seat_info_descriptor_;
- metadata.reflection = msg_seat_info_reflection_;
- return metadata;
- }
- // ===================================================================
- #ifndef _MSC_VER
- const int msg_item::kItemIdFieldNumber;
- const int msg_item::kItemCountFieldNumber;
- const int msg_item::kEndTimeFieldNumber;
- #endif // !_MSC_VER
- msg_item::msg_item()
- : ::google::protobuf::Message() {
- SharedCtor();
- }
- void msg_item::InitAsDefaultInstance() {
- }
- msg_item::msg_item(const msg_item& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
- }
- void msg_item::SharedCtor() {
- _cached_size_ = 0;
- item_id_ = 0;
- item_count_ = 0;
- end_time_ = -1;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- }
- msg_item::~msg_item() {
- SharedDtor();
- }
- void msg_item::SharedDtor() {
- if (this != default_instance_) {
- }
- }
- void msg_item::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* msg_item::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return msg_item_descriptor_;
- }
- const msg_item& msg_item::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
- return *default_instance_;
- }
- msg_item* msg_item::default_instance_ = NULL;
- msg_item* msg_item::New() const {
- return new msg_item;
- }
- void msg_item::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- item_id_ = 0;
- item_count_ = 0;
- end_time_ = -1;
- }
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
- }
- bool msg_item::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
- ::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional int32 item_id = 1;
- case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &item_id_)));
- set_has_item_id();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(16)) goto parse_item_count;
- break;
- }
- // optional int32 item_count = 2;
- case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_item_count:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &item_count_)));
- set_has_item_count();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(24)) goto parse_end_time;
- break;
- }
- // optional int32 end_time = 3 [default = -1];
- case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_end_time:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &end_time_)));
- set_has_end_time();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectAtEnd()) return true;
- break;
- }
- default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
- break;
- }
- }
- }
- return true;
- #undef DO_
- }
- void msg_item::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // optional int32 item_id = 1;
- if (has_item_id()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->item_id(), output);
- }
- // optional int32 item_count = 2;
- if (has_item_count()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->item_count(), output);
- }
- // optional int32 end_time = 3 [default = -1];
- if (has_end_time()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->end_time(), output);
- }
- if (!unknown_fields().empty()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
- }
- }
- ::google::protobuf::uint8* msg_item::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
- // optional int32 item_id = 1;
- if (has_item_id()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->item_id(), target);
- }
- // optional int32 item_count = 2;
- if (has_item_count()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->item_count(), target);
- }
- // optional int32 end_time = 3 [default = -1];
- if (has_end_time()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->end_time(), target);
- }
- if (!unknown_fields().empty()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
- }
- return target;
- }
- int msg_item::ByteSize() const {
- int total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional int32 item_id = 1;
- if (has_item_id()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->item_id());
- }
- // optional int32 item_count = 2;
- if (has_item_count()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->item_count());
- }
- // optional int32 end_time = 3 [default = -1];
- if (has_end_time()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->end_time());
- }
- }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void msg_item::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
- const msg_item* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const msg_item*>(
- &from);
- if (source == NULL) {
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- MergeFrom(*source);
- }
- }
- void msg_item::MergeFrom(const msg_item& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_item_id()) {
- set_item_id(from.item_id());
- }
- if (from.has_item_count()) {
- set_item_count(from.item_count());
- }
- if (from.has_end_time()) {
- set_end_time(from.end_time());
- }
- }
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
- }
- void msg_item::CopyFrom(const ::google::protobuf::Message& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void msg_item::CopyFrom(const msg_item& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool msg_item::IsInitialized() const {
- return true;
- }
- void msg_item::Swap(msg_item* other) {
- if (other != this) {
- std::swap(item_id_, other->item_id_);
- std::swap(item_count_, other->item_count_);
- std::swap(end_time_, other->end_time_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
- }
- ::google::protobuf::Metadata msg_item::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = msg_item_descriptor_;
- metadata.reflection = msg_item_reflection_;
- return metadata;
- }
- // ===================================================================
- #ifndef _MSC_VER
- const int msg_fish_info::kIdFieldNumber;
- const int msg_fish_info::kFishIdFieldNumber;
- const int msg_fish_info::kRouteIdFieldNumber;
- #endif // !_MSC_VER
- msg_fish_info::msg_fish_info()
- : ::google::protobuf::Message() {
- SharedCtor();
- }
- void msg_fish_info::InitAsDefaultInstance() {
- }
- msg_fish_info::msg_fish_info(const msg_fish_info& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
- }
- void msg_fish_info::SharedCtor() {
- _cached_size_ = 0;
- id_ = 0;
- fish_id_ = 0;
- route_id_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- }
- msg_fish_info::~msg_fish_info() {
- SharedDtor();
- }
- void msg_fish_info::SharedDtor() {
- if (this != default_instance_) {
- }
- }
- void msg_fish_info::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* msg_fish_info::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return msg_fish_info_descriptor_;
- }
- const msg_fish_info& msg_fish_info::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
- return *default_instance_;
- }
- msg_fish_info* msg_fish_info::default_instance_ = NULL;
- msg_fish_info* msg_fish_info::New() const {
- return new msg_fish_info;
- }
- void msg_fish_info::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- id_ = 0;
- fish_id_ = 0;
- route_id_ = 0;
- }
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
- }
- bool msg_fish_info::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
- ::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional int32 id = 1;
- case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &id_)));
- set_has_id();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(16)) goto parse_fish_id;
- break;
- }
- // optional int32 fish_id = 2;
- case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_fish_id:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &fish_id_)));
- set_has_fish_id();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(24)) goto parse_route_id;
- break;
- }
- // optional int32 route_id = 3;
- case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_route_id:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &route_id_)));
- set_has_route_id();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectAtEnd()) return true;
- break;
- }
- default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
- break;
- }
- }
- }
- return true;
- #undef DO_
- }
- void msg_fish_info::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // optional int32 id = 1;
- if (has_id()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->id(), output);
- }
- // optional int32 fish_id = 2;
- if (has_fish_id()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->fish_id(), output);
- }
- // optional int32 route_id = 3;
- if (has_route_id()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->route_id(), output);
- }
- if (!unknown_fields().empty()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
- }
- }
- ::google::protobuf::uint8* msg_fish_info::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
- // optional int32 id = 1;
- if (has_id()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->id(), target);
- }
- // optional int32 fish_id = 2;
- if (has_fish_id()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->fish_id(), target);
- }
- // optional int32 route_id = 3;
- if (has_route_id()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->route_id(), target);
- }
- if (!unknown_fields().empty()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
- }
- return target;
- }
- int msg_fish_info::ByteSize() const {
- int total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional int32 id = 1;
- if (has_id()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->id());
- }
- // optional int32 fish_id = 2;
- if (has_fish_id()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->fish_id());
- }
- // optional int32 route_id = 3;
- if (has_route_id()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->route_id());
- }
- }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void msg_fish_info::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
- const msg_fish_info* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const msg_fish_info*>(
- &from);
- if (source == NULL) {
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- MergeFrom(*source);
- }
- }
- void msg_fish_info::MergeFrom(const msg_fish_info& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_id()) {
- set_id(from.id());
- }
- if (from.has_fish_id()) {
- set_fish_id(from.fish_id());
- }
- if (from.has_route_id()) {
- set_route_id(from.route_id());
- }
- }
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
- }
- void msg_fish_info::CopyFrom(const ::google::protobuf::Message& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void msg_fish_info::CopyFrom(const msg_fish_info& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool msg_fish_info::IsInitialized() const {
- return true;
- }
- void msg_fish_info::Swap(msg_fish_info* other) {
- if (other != this) {
- std::swap(id_, other->id_);
- std::swap(fish_id_, other->fish_id_);
- std::swap(route_id_, other->route_id_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
- }
- ::google::protobuf::Metadata msg_fish_info::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = msg_fish_info_descriptor_;
- metadata.reflection = msg_fish_info_reflection_;
- return metadata;
- }
- // ===================================================================
- #ifndef _MSC_VER
- const int redEnvlopeInfo::kRoomidFieldNumber;
- const int redEnvlopeInfo::kCurGeerFieldNumber;
- const int redEnvlopeInfo::kRedEnvelopeAccFieldNumber;
- #endif // !_MSC_VER
- redEnvlopeInfo::redEnvlopeInfo()
- : ::google::protobuf::Message() {
- SharedCtor();
- }
- void redEnvlopeInfo::InitAsDefaultInstance() {
- }
- redEnvlopeInfo::redEnvlopeInfo(const redEnvlopeInfo& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
- }
- void redEnvlopeInfo::SharedCtor() {
- _cached_size_ = 0;
- roomid_ = 0;
- curgeer_ = 0;
- redenvelopeacc_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- }
- redEnvlopeInfo::~redEnvlopeInfo() {
- SharedDtor();
- }
- void redEnvlopeInfo::SharedDtor() {
- if (this != default_instance_) {
- }
- }
- void redEnvlopeInfo::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* redEnvlopeInfo::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return redEnvlopeInfo_descriptor_;
- }
- const redEnvlopeInfo& redEnvlopeInfo::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
- return *default_instance_;
- }
- redEnvlopeInfo* redEnvlopeInfo::default_instance_ = NULL;
- redEnvlopeInfo* redEnvlopeInfo::New() const {
- return new redEnvlopeInfo;
- }
- void redEnvlopeInfo::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- roomid_ = 0;
- curgeer_ = 0;
- redenvelopeacc_ = 0;
- }
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
- }
- bool redEnvlopeInfo::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
- ::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional int32 roomid = 1;
- case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &roomid_)));
- set_has_roomid();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(16)) goto parse_curGeer;
- break;
- }
- // optional int32 curGeer = 2;
- case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_curGeer:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &curgeer_)));
- set_has_curgeer();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(24)) goto parse_redEnvelopeAcc;
- break;
- }
- // optional int32 redEnvelopeAcc = 3;
- case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_redEnvelopeAcc:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &redenvelopeacc_)));
- set_has_redenvelopeacc();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectAtEnd()) return true;
- break;
- }
- default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
- break;
- }
- }
- }
- return true;
- #undef DO_
- }
- void redEnvlopeInfo::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // optional int32 roomid = 1;
- if (has_roomid()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->roomid(), output);
- }
- // optional int32 curGeer = 2;
- if (has_curgeer()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->curgeer(), output);
- }
- // optional int32 redEnvelopeAcc = 3;
- if (has_redenvelopeacc()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->redenvelopeacc(), output);
- }
- if (!unknown_fields().empty()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
- }
- }
- ::google::protobuf::uint8* redEnvlopeInfo::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
- // optional int32 roomid = 1;
- if (has_roomid()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->roomid(), target);
- }
- // optional int32 curGeer = 2;
- if (has_curgeer()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->curgeer(), target);
- }
- // optional int32 redEnvelopeAcc = 3;
- if (has_redenvelopeacc()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->redenvelopeacc(), target);
- }
- if (!unknown_fields().empty()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
- }
- return target;
- }
- int redEnvlopeInfo::ByteSize() const {
- int total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional int32 roomid = 1;
- if (has_roomid()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->roomid());
- }
- // optional int32 curGeer = 2;
- if (has_curgeer()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->curgeer());
- }
- // optional int32 redEnvelopeAcc = 3;
- if (has_redenvelopeacc()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->redenvelopeacc());
- }
- }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void redEnvlopeInfo::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
- const redEnvlopeInfo* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const redEnvlopeInfo*>(
- &from);
- if (source == NULL) {
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- MergeFrom(*source);
- }
- }
- void redEnvlopeInfo::MergeFrom(const redEnvlopeInfo& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_roomid()) {
- set_roomid(from.roomid());
- }
- if (from.has_curgeer()) {
- set_curgeer(from.curgeer());
- }
- if (from.has_redenvelopeacc()) {
- set_redenvelopeacc(from.redenvelopeacc());
- }
- }
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
- }
- void redEnvlopeInfo::CopyFrom(const ::google::protobuf::Message& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void redEnvlopeInfo::CopyFrom(const redEnvlopeInfo& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool redEnvlopeInfo::IsInitialized() const {
- return true;
- }
- void redEnvlopeInfo::Swap(redEnvlopeInfo* other) {
- if (other != this) {
- std::swap(roomid_, other->roomid_);
- std::swap(curgeer_, other->curgeer_);
- std::swap(redenvelopeacc_, other->redenvelopeacc_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
- }
- ::google::protobuf::Metadata redEnvlopeInfo::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = redEnvlopeInfo_descriptor_;
- metadata.reflection = redEnvlopeInfo_reflection_;
- return metadata;
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace fish_protocols
- // @@protoc_insertion_point(global_scope)
|