You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Message2Clients.pb.cc 168 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: Message2Clients.proto
  3. #include "Message2Clients.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/io/coded_stream.h>
  6. #include <google/protobuf/extension_set.h>
  7. #include <google/protobuf/wire_format_lite.h>
  8. #include <google/protobuf/descriptor.h>
  9. #include <google/protobuf/generated_message_reflection.h>
  10. #include <google/protobuf/reflection_ops.h>
  11. #include <google/protobuf/wire_format.h>
  12. // @@protoc_insertion_point(includes)
  13. #include <google/protobuf/port_def.inc>
  14. PROTOBUF_PRAGMA_INIT_SEG
  15. namespace _pb = ::PROTOBUF_NAMESPACE_ID;
  16. namespace _pbi = _pb::internal;
  17. namespace protobuf
  18. {
  19. PROTOBUF_CONSTEXPR MessageOfStudent::MessageOfStudent(
  20. ::_pbi::ConstantInitialized
  21. ) :
  22. _impl_{
  23. /*decltype(_impl_.buff_)*/ {}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.speed_)*/ 0, /*decltype(_impl_.determination_)*/ 0, /*decltype(_impl_.time_until_skill_available_)*/ 0, /*decltype(_impl_.fail_num_)*/ 0, /*decltype(_impl_.place_)*/ 0, /*decltype(_impl_.prop_)*/ 0, /*decltype(_impl_.student_type_)*/ 0, /*decltype(_impl_.guid_)*/ int64_t{0}, /*decltype(_impl_.fail_time_)*/ 0, /*decltype(_impl_.state_)*/ 0, /*decltype(_impl_.view_range_)*/ 0, /*decltype(_impl_.emo_time_)*/ 0, /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.radius_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  24. {
  25. }
  26. struct MessageOfStudentDefaultTypeInternal
  27. {
  28. PROTOBUF_CONSTEXPR MessageOfStudentDefaultTypeInternal() :
  29. _instance(::_pbi::ConstantInitialized{})
  30. {
  31. }
  32. ~MessageOfStudentDefaultTypeInternal()
  33. {
  34. }
  35. union
  36. {
  37. MessageOfStudent _instance;
  38. };
  39. };
  40. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfStudentDefaultTypeInternal _MessageOfStudent_default_instance_;
  41. PROTOBUF_CONSTEXPR MessageOfTricker::MessageOfTricker(
  42. ::_pbi::ConstantInitialized
  43. ) :
  44. _impl_{
  45. /*decltype(_impl_.buff_)*/ {}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.speed_)*/ 0, /*decltype(_impl_.damage_)*/ 0, /*decltype(_impl_.time_until_skill_available_)*/ 0, /*decltype(_impl_.place_)*/ 0, /*decltype(_impl_.prop_)*/ 0, /*decltype(_impl_.guid_)*/ int64_t{0}, /*decltype(_impl_.tricker_type_)*/ 0, /*decltype(_impl_.movable_)*/ false, /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.view_range_)*/ 0, /*decltype(_impl_.radius_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  46. {
  47. }
  48. struct MessageOfTrickerDefaultTypeInternal
  49. {
  50. PROTOBUF_CONSTEXPR MessageOfTrickerDefaultTypeInternal() :
  51. _instance(::_pbi::ConstantInitialized{})
  52. {
  53. }
  54. ~MessageOfTrickerDefaultTypeInternal()
  55. {
  56. }
  57. union
  58. {
  59. MessageOfTricker _instance;
  60. };
  61. };
  62. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfTrickerDefaultTypeInternal _MessageOfTricker_default_instance_;
  63. PROTOBUF_CONSTEXPR MessageOfProp::MessageOfProp(
  64. ::_pbi::ConstantInitialized
  65. ) :
  66. _impl_{
  67. /*decltype(_impl_.type_)*/ 0, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.facing_direction_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.place_)*/ 0, /*decltype(_impl_.guid_)*/ int64_t{0}, /*decltype(_impl_.size_)*/ 0, /*decltype(_impl_.is_moving_)*/ false, /*decltype(_impl_._cached_size_)*/ {}}
  68. {
  69. }
  70. struct MessageOfPropDefaultTypeInternal
  71. {
  72. PROTOBUF_CONSTEXPR MessageOfPropDefaultTypeInternal() :
  73. _instance(::_pbi::ConstantInitialized{})
  74. {
  75. }
  76. ~MessageOfPropDefaultTypeInternal()
  77. {
  78. }
  79. union
  80. {
  81. MessageOfProp _instance;
  82. };
  83. };
  84. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfPropDefaultTypeInternal _MessageOfProp_default_instance_;
  85. PROTOBUF_CONSTEXPR MessageOfPickedProp::MessageOfPickedProp(
  86. ::_pbi::ConstantInitialized
  87. ) :
  88. _impl_{
  89. /*decltype(_impl_.type_)*/ 0, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.facing_direction_)*/ 0, /*decltype(_impl_.mapping_id_)*/ int64_t{0}, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  90. {
  91. }
  92. struct MessageOfPickedPropDefaultTypeInternal
  93. {
  94. PROTOBUF_CONSTEXPR MessageOfPickedPropDefaultTypeInternal() :
  95. _instance(::_pbi::ConstantInitialized{})
  96. {
  97. }
  98. ~MessageOfPickedPropDefaultTypeInternal()
  99. {
  100. }
  101. union
  102. {
  103. MessageOfPickedProp _instance;
  104. };
  105. };
  106. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfPickedPropDefaultTypeInternal _MessageOfPickedProp_default_instance_;
  107. PROTOBUF_CONSTEXPR MessageOfMap_Row::MessageOfMap_Row(
  108. ::_pbi::ConstantInitialized
  109. ) :
  110. _impl_{
  111. /*decltype(_impl_.col_)*/ {}, /*decltype(_impl_._col_cached_byte_size_)*/ {0}, /*decltype(_impl_._cached_size_)*/ {}}
  112. {
  113. }
  114. struct MessageOfMap_RowDefaultTypeInternal
  115. {
  116. PROTOBUF_CONSTEXPR MessageOfMap_RowDefaultTypeInternal() :
  117. _instance(::_pbi::ConstantInitialized{})
  118. {
  119. }
  120. ~MessageOfMap_RowDefaultTypeInternal()
  121. {
  122. }
  123. union
  124. {
  125. MessageOfMap_Row _instance;
  126. };
  127. };
  128. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfMap_RowDefaultTypeInternal _MessageOfMap_Row_default_instance_;
  129. PROTOBUF_CONSTEXPR MessageOfMap::MessageOfMap(
  130. ::_pbi::ConstantInitialized
  131. ) :
  132. _impl_{
  133. /*decltype(_impl_.row_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}}
  134. {
  135. }
  136. struct MessageOfMapDefaultTypeInternal
  137. {
  138. PROTOBUF_CONSTEXPR MessageOfMapDefaultTypeInternal() :
  139. _instance(::_pbi::ConstantInitialized{})
  140. {
  141. }
  142. ~MessageOfMapDefaultTypeInternal()
  143. {
  144. }
  145. union
  146. {
  147. MessageOfMap _instance;
  148. };
  149. };
  150. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfMapDefaultTypeInternal _MessageOfMap_default_instance_;
  151. PROTOBUF_CONSTEXPR MessageToClient::MessageToClient(
  152. ::_pbi::ConstantInitialized
  153. ) :
  154. _impl_{
  155. /*decltype(_impl_.student_message_)*/ {}, /*decltype(_impl_.tricker_message_)*/ {}, /*decltype(_impl_.prop_message_)*/ {}, /*decltype(_impl_.map_message_)*/ nullptr, /*decltype(_impl_.game_state_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  156. {
  157. }
  158. struct MessageToClientDefaultTypeInternal
  159. {
  160. PROTOBUF_CONSTEXPR MessageToClientDefaultTypeInternal() :
  161. _instance(::_pbi::ConstantInitialized{})
  162. {
  163. }
  164. ~MessageToClientDefaultTypeInternal()
  165. {
  166. }
  167. union
  168. {
  169. MessageToClient _instance;
  170. };
  171. };
  172. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageToClientDefaultTypeInternal _MessageToClient_default_instance_;
  173. PROTOBUF_CONSTEXPR MoveRes::MoveRes(
  174. ::_pbi::ConstantInitialized
  175. ) :
  176. _impl_{
  177. /*decltype(_impl_.actual_speed_)*/ int64_t{0}, /*decltype(_impl_.actual_angle_)*/ 0, /*decltype(_impl_.act_success_)*/ false, /*decltype(_impl_._cached_size_)*/ {}}
  178. {
  179. }
  180. struct MoveResDefaultTypeInternal
  181. {
  182. PROTOBUF_CONSTEXPR MoveResDefaultTypeInternal() :
  183. _instance(::_pbi::ConstantInitialized{})
  184. {
  185. }
  186. ~MoveResDefaultTypeInternal()
  187. {
  188. }
  189. union
  190. {
  191. MoveRes _instance;
  192. };
  193. };
  194. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveResDefaultTypeInternal _MoveRes_default_instance_;
  195. PROTOBUF_CONSTEXPR BoolRes::BoolRes(
  196. ::_pbi::ConstantInitialized
  197. ) :
  198. _impl_{
  199. /*decltype(_impl_.act_success_)*/ false, /*decltype(_impl_._cached_size_)*/ {}}
  200. {
  201. }
  202. struct BoolResDefaultTypeInternal
  203. {
  204. PROTOBUF_CONSTEXPR BoolResDefaultTypeInternal() :
  205. _instance(::_pbi::ConstantInitialized{})
  206. {
  207. }
  208. ~BoolResDefaultTypeInternal()
  209. {
  210. }
  211. union
  212. {
  213. BoolRes _instance;
  214. };
  215. };
  216. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BoolResDefaultTypeInternal _BoolRes_default_instance_;
  217. PROTOBUF_CONSTEXPR MsgRes::MsgRes(
  218. ::_pbi::ConstantInitialized
  219. ) :
  220. _impl_{
  221. /*decltype(_impl_.message_received_)*/ {&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}, /*decltype(_impl_.from_player_id_)*/ int64_t{0}, /*decltype(_impl_.have_message_)*/ false, /*decltype(_impl_._cached_size_)*/ {}}
  222. {
  223. }
  224. struct MsgResDefaultTypeInternal
  225. {
  226. PROTOBUF_CONSTEXPR MsgResDefaultTypeInternal() :
  227. _instance(::_pbi::ConstantInitialized{})
  228. {
  229. }
  230. ~MsgResDefaultTypeInternal()
  231. {
  232. }
  233. union
  234. {
  235. MsgRes _instance;
  236. };
  237. };
  238. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MsgResDefaultTypeInternal _MsgRes_default_instance_;
  239. } // namespace protobuf
  240. static ::_pb::Metadata file_level_metadata_Message2Clients_2eproto[10];
  241. static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_Message2Clients_2eproto = nullptr;
  242. static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_Message2Clients_2eproto = nullptr;
  243. const uint32_t TableStruct_Message2Clients_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  244. ~0u, // no _has_bits_
  245. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _internal_metadata_),
  246. ~0u, // no _extensions_
  247. ~0u, // no _oneof_case_
  248. ~0u, // no _weak_field_map_
  249. ~0u, // no _inlined_string_donated_
  250. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.x_),
  251. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.y_),
  252. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.speed_),
  253. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.determination_),
  254. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.fail_num_),
  255. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.time_until_skill_available_),
  256. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.place_),
  257. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.prop_),
  258. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.student_type_),
  259. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.guid_),
  260. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.state_),
  261. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.fail_time_),
  262. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.emo_time_),
  263. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.player_id_),
  264. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.view_range_),
  265. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.radius_),
  266. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.buff_),
  267. ~0u, // no _has_bits_
  268. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _internal_metadata_),
  269. ~0u, // no _extensions_
  270. ~0u, // no _oneof_case_
  271. ~0u, // no _weak_field_map_
  272. ~0u, // no _inlined_string_donated_
  273. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.x_),
  274. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.y_),
  275. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.speed_),
  276. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.damage_),
  277. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.time_until_skill_available_),
  278. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.place_),
  279. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.prop_),
  280. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.tricker_type_),
  281. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.guid_),
  282. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.movable_),
  283. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.player_id_),
  284. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.view_range_),
  285. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.radius_),
  286. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.buff_),
  287. ~0u, // no _has_bits_
  288. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _internal_metadata_),
  289. ~0u, // no _extensions_
  290. ~0u, // no _oneof_case_
  291. ~0u, // no _weak_field_map_
  292. ~0u, // no _inlined_string_donated_
  293. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.type_),
  294. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.x_),
  295. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.y_),
  296. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.facing_direction_),
  297. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.guid_),
  298. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.place_),
  299. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.size_),
  300. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.is_moving_),
  301. ~0u, // no _has_bits_
  302. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _internal_metadata_),
  303. ~0u, // no _extensions_
  304. ~0u, // no _oneof_case_
  305. ~0u, // no _weak_field_map_
  306. ~0u, // no _inlined_string_donated_
  307. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.type_),
  308. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.x_),
  309. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.y_),
  310. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.facing_direction_),
  311. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.mapping_id_),
  312. ~0u, // no _has_bits_
  313. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap_Row, _internal_metadata_),
  314. ~0u, // no _extensions_
  315. ~0u, // no _oneof_case_
  316. ~0u, // no _weak_field_map_
  317. ~0u, // no _inlined_string_donated_
  318. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap_Row, _impl_.col_),
  319. ~0u, // no _has_bits_
  320. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap, _internal_metadata_),
  321. ~0u, // no _extensions_
  322. ~0u, // no _oneof_case_
  323. ~0u, // no _weak_field_map_
  324. ~0u, // no _inlined_string_donated_
  325. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap, _impl_.row_),
  326. ~0u, // no _has_bits_
  327. PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _internal_metadata_),
  328. ~0u, // no _extensions_
  329. ~0u, // no _oneof_case_
  330. ~0u, // no _weak_field_map_
  331. ~0u, // no _inlined_string_donated_
  332. PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.student_message_),
  333. PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.tricker_message_),
  334. PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.prop_message_),
  335. PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.map_message_),
  336. PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.game_state_),
  337. ~0u, // no _has_bits_
  338. PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _internal_metadata_),
  339. ~0u, // no _extensions_
  340. ~0u, // no _oneof_case_
  341. ~0u, // no _weak_field_map_
  342. ~0u, // no _inlined_string_donated_
  343. PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _impl_.actual_speed_),
  344. PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _impl_.actual_angle_),
  345. PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _impl_.act_success_),
  346. ~0u, // no _has_bits_
  347. PROTOBUF_FIELD_OFFSET(::protobuf::BoolRes, _internal_metadata_),
  348. ~0u, // no _extensions_
  349. ~0u, // no _oneof_case_
  350. ~0u, // no _weak_field_map_
  351. ~0u, // no _inlined_string_donated_
  352. PROTOBUF_FIELD_OFFSET(::protobuf::BoolRes, _impl_.act_success_),
  353. ~0u, // no _has_bits_
  354. PROTOBUF_FIELD_OFFSET(::protobuf::MsgRes, _internal_metadata_),
  355. ~0u, // no _extensions_
  356. ~0u, // no _oneof_case_
  357. ~0u, // no _weak_field_map_
  358. ~0u, // no _inlined_string_donated_
  359. PROTOBUF_FIELD_OFFSET(::protobuf::MsgRes, _impl_.have_message_),
  360. PROTOBUF_FIELD_OFFSET(::protobuf::MsgRes, _impl_.from_player_id_),
  361. PROTOBUF_FIELD_OFFSET(::protobuf::MsgRes, _impl_.message_received_),
  362. };
  363. static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  364. {0, -1, -1, sizeof(::protobuf::MessageOfStudent)},
  365. {23, -1, -1, sizeof(::protobuf::MessageOfTricker)},
  366. {43, -1, -1, sizeof(::protobuf::MessageOfProp)},
  367. {57, -1, -1, sizeof(::protobuf::MessageOfPickedProp)},
  368. {68, -1, -1, sizeof(::protobuf::MessageOfMap_Row)},
  369. {75, -1, -1, sizeof(::protobuf::MessageOfMap)},
  370. {82, -1, -1, sizeof(::protobuf::MessageToClient)},
  371. {93, -1, -1, sizeof(::protobuf::MoveRes)},
  372. {102, -1, -1, sizeof(::protobuf::BoolRes)},
  373. {109, -1, -1, sizeof(::protobuf::MsgRes)},
  374. };
  375. static const ::_pb::Message* const file_default_instances[] = {
  376. &::protobuf::_MessageOfStudent_default_instance_._instance,
  377. &::protobuf::_MessageOfTricker_default_instance_._instance,
  378. &::protobuf::_MessageOfProp_default_instance_._instance,
  379. &::protobuf::_MessageOfPickedProp_default_instance_._instance,
  380. &::protobuf::_MessageOfMap_Row_default_instance_._instance,
  381. &::protobuf::_MessageOfMap_default_instance_._instance,
  382. &::protobuf::_MessageToClient_default_instance_._instance,
  383. &::protobuf::_MoveRes_default_instance_._instance,
  384. &::protobuf::_BoolRes_default_instance_._instance,
  385. &::protobuf::_MsgRes_default_instance_._instance,
  386. };
  387. const char descriptor_table_protodef_Message2Clients_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  388. "\n\025Message2Clients.proto\022\010protobuf\032\021Messa"
  389. "geType.proto\"\261\003\n\020MessageOfStudent\022\t\n\001x\030\001"
  390. " \001(\005\022\t\n\001y\030\002 \001(\005\022\r\n\005speed\030\003 \001(\005\022\025\n\rdeterm"
  391. "ination\030\004 \001(\005\022\020\n\010fail_num\030\005 \001(\005\022\"\n\032time_"
  392. "until_skill_available\030\006 \001(\001\022\"\n\005place\030\007 \001"
  393. "(\0162\023.protobuf.PlaceType\022 \n\004prop\030\010 \001(\0162\022."
  394. "protobuf.PropType\022+\n\014student_type\030\t \001(\0162"
  395. "\025.protobuf.StudentType\022\014\n\004guid\030\n \001(\003\022%\n\005"
  396. "state\030\013 \001(\0162\026.protobuf.StudentState\022\021\n\tf"
  397. "ail_time\030\014 \001(\001\022\020\n\010emo_time\030\016 \001(\001\022\021\n\tplay"
  398. "er_id\030\017 \001(\003\022\022\n\nview_range\030\020 \001(\005\022\016\n\006radiu"
  399. "s\030\021 \001(\005\022\'\n\004buff\030\022 \003(\0162\031.protobuf.Student"
  400. "BuffType\"\335\002\n\020MessageOfTricker\022\t\n\001x\030\001 \001(\005"
  401. "\022\t\n\001y\030\002 \001(\005\022\r\n\005speed\030\003 \001(\005\022\016\n\006damage\030\004 \001"
  402. "(\005\022\"\n\032time_until_skill_available\030\005 \001(\001\022\""
  403. "\n\005place\030\006 \001(\0162\023.protobuf.PlaceType\022 \n\004pr"
  404. "op\030\007 \001(\0162\022.protobuf.PropType\022+\n\014tricker_"
  405. "type\030\010 \001(\0162\025.protobuf.TrickerType\022\014\n\004gui"
  406. "d\030\t \001(\003\022\017\n\007movable\030\n \001(\010\022\021\n\tplayer_id\030\013 "
  407. "\001(\003\022\022\n\nview_range\030\014 \001(\005\022\016\n\006radius\030\r \001(\005\022"
  408. "\'\n\004buff\030\016 \003(\0162\031.protobuf.TrickerBuffType"
  409. "\"\264\001\n\rMessageOfProp\022 \n\004type\030\001 \001(\0162\022.proto"
  410. "buf.PropType\022\t\n\001x\030\002 \001(\005\022\t\n\001y\030\003 \001(\005\022\030\n\020fa"
  411. "cing_direction\030\004 \001(\001\022\014\n\004guid\030\005 \001(\003\022\"\n\005pl"
  412. "ace\030\006 \001(\0162\023.protobuf.PlaceType\022\014\n\004size\030\007"
  413. " \001(\005\022\021\n\tis_moving\030\010 \001(\010\"{\n\023MessageOfPick"
  414. "edProp\022 \n\004type\030\001 \001(\0162\022.protobuf.PropType"
  415. "\022\t\n\001x\030\002 \001(\005\022\t\n\001y\030\003 \001(\005\022\030\n\020facing_directi"
  416. "on\030\004 \001(\001\022\022\n\nmapping_id\030\005 \001(\003\"`\n\014MessageO"
  417. "fMap\022\'\n\003row\030\002 \003(\0132\032.protobuf.MessageOfMa"
  418. "p.Row\032\'\n\003Row\022 \n\003col\030\001 \003(\0162\023.protobuf.Pla"
  419. "ceType\"\200\002\n\017MessageToClient\0223\n\017student_me"
  420. "ssage\030\001 \003(\0132\032.protobuf.MessageOfStudent\022"
  421. "3\n\017tricker_message\030\002 \003(\0132\032.protobuf.Mess"
  422. "ageOfTricker\022-\n\014prop_message\030\003 \003(\0132\027.pro"
  423. "tobuf.MessageOfProp\022+\n\013map_message\030\004 \001(\013"
  424. "2\026.protobuf.MessageOfMap\022\'\n\ngame_state\030\005"
  425. " \001(\0162\023.protobuf.GameState\"J\n\007MoveRes\022\024\n\014"
  426. "actual_speed\030\001 \001(\003\022\024\n\014actual_angle\030\002 \001(\001"
  427. "\022\023\n\013act_success\030\003 \001(\010\"\036\n\007BoolRes\022\023\n\013act_"
  428. "success\030\001 \001(\010\"P\n\006MsgRes\022\024\n\014have_message\030"
  429. "\001 \001(\010\022\026\n\016from_player_id\030\002 \001(\003\022\030\n\020message"
  430. "_received\030\003 \001(\tb\006proto3";
  431. static const ::_pbi::DescriptorTable* const descriptor_table_Message2Clients_2eproto_deps[1] = {
  432. &::descriptor_table_MessageType_2eproto,
  433. };
  434. static ::_pbi::once_flag descriptor_table_Message2Clients_2eproto_once;
  435. const ::_pbi::DescriptorTable descriptor_table_Message2Clients_2eproto = {
  436. false,
  437. false,
  438. 1703,
  439. descriptor_table_protodef_Message2Clients_2eproto,
  440. "Message2Clients.proto",
  441. &descriptor_table_Message2Clients_2eproto_once,
  442. descriptor_table_Message2Clients_2eproto_deps,
  443. 1,
  444. 10,
  445. schemas,
  446. file_default_instances,
  447. TableStruct_Message2Clients_2eproto::offsets,
  448. file_level_metadata_Message2Clients_2eproto,
  449. file_level_enum_descriptors_Message2Clients_2eproto,
  450. file_level_service_descriptors_Message2Clients_2eproto,
  451. };
  452. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_Message2Clients_2eproto_getter()
  453. {
  454. return &descriptor_table_Message2Clients_2eproto;
  455. }
  456. // Force running AddDescriptors() at dynamic initialization time.
  457. PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_Message2Clients_2eproto(&descriptor_table_Message2Clients_2eproto);
  458. namespace protobuf
  459. {
  460. // ===================================================================
  461. class MessageOfStudent::_Internal
  462. {
  463. public:
  464. };
  465. MessageOfStudent::MessageOfStudent(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  466. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  467. {
  468. SharedCtor(arena, is_message_owned);
  469. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfStudent)
  470. }
  471. MessageOfStudent::MessageOfStudent(const MessageOfStudent& from) :
  472. ::PROTOBUF_NAMESPACE_ID::Message()
  473. {
  474. MessageOfStudent* const _this = this;
  475. (void)_this;
  476. new (&_impl_) Impl_{
  477. decltype(_impl_.buff_){from._impl_.buff_}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, decltype(_impl_.x_){}, decltype(_impl_.y_){}, decltype(_impl_.speed_){}, decltype(_impl_.determination_){}, decltype(_impl_.time_until_skill_available_){}, decltype(_impl_.fail_num_){}, decltype(_impl_.place_){}, decltype(_impl_.prop_){}, decltype(_impl_.student_type_){}, decltype(_impl_.guid_){}, decltype(_impl_.fail_time_){}, decltype(_impl_.state_){}, decltype(_impl_.view_range_){}, decltype(_impl_.emo_time_){}, decltype(_impl_.player_id_){}, decltype(_impl_.radius_){}, /*decltype(_impl_._cached_size_)*/ {}};
  478. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  479. ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.radius_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.radius_));
  480. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfStudent)
  481. }
  482. inline void MessageOfStudent::SharedCtor(
  483. ::_pb::Arena* arena, bool is_message_owned
  484. )
  485. {
  486. (void)arena;
  487. (void)is_message_owned;
  488. new (&_impl_) Impl_{
  489. decltype(_impl_.buff_){arena}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, decltype(_impl_.x_){0}, decltype(_impl_.y_){0}, decltype(_impl_.speed_){0}, decltype(_impl_.determination_){0}, decltype(_impl_.time_until_skill_available_){0}, decltype(_impl_.fail_num_){0}, decltype(_impl_.place_){0}, decltype(_impl_.prop_){0}, decltype(_impl_.student_type_){0}, decltype(_impl_.guid_){int64_t{0}}, decltype(_impl_.fail_time_){0}, decltype(_impl_.state_){0}, decltype(_impl_.view_range_){0}, decltype(_impl_.emo_time_){0}, decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.radius_){0}, /*decltype(_impl_._cached_size_)*/ {}};
  490. }
  491. MessageOfStudent::~MessageOfStudent()
  492. {
  493. // @@protoc_insertion_point(destructor:protobuf.MessageOfStudent)
  494. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  495. {
  496. (void)arena;
  497. return;
  498. }
  499. SharedDtor();
  500. }
  501. inline void MessageOfStudent::SharedDtor()
  502. {
  503. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  504. _impl_.buff_.~RepeatedField();
  505. }
  506. void MessageOfStudent::SetCachedSize(int size) const
  507. {
  508. _impl_._cached_size_.Set(size);
  509. }
  510. void MessageOfStudent::Clear()
  511. {
  512. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfStudent)
  513. uint32_t cached_has_bits = 0;
  514. // Prevent compiler warnings about cached_has_bits being unused
  515. (void)cached_has_bits;
  516. _impl_.buff_.Clear();
  517. ::memset(&_impl_.x_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.radius_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.radius_));
  518. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  519. }
  520. const char* MessageOfStudent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  521. {
  522. #define CHK_(x) \
  523. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  524. goto failure
  525. while (!ctx->Done(&ptr))
  526. {
  527. uint32_t tag;
  528. ptr = ::_pbi::ReadTag(ptr, &tag);
  529. switch (tag >> 3)
  530. {
  531. // int32 x = 1;
  532. case 1:
  533. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  534. {
  535. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  536. CHK_(ptr);
  537. }
  538. else
  539. goto handle_unusual;
  540. continue;
  541. // int32 y = 2;
  542. case 2:
  543. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  544. {
  545. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  546. CHK_(ptr);
  547. }
  548. else
  549. goto handle_unusual;
  550. continue;
  551. // int32 speed = 3;
  552. case 3:
  553. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  554. {
  555. _impl_.speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  556. CHK_(ptr);
  557. }
  558. else
  559. goto handle_unusual;
  560. continue;
  561. // int32 determination = 4;
  562. case 4:
  563. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32))
  564. {
  565. _impl_.determination_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  566. CHK_(ptr);
  567. }
  568. else
  569. goto handle_unusual;
  570. continue;
  571. // int32 fail_num = 5;
  572. case 5:
  573. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
  574. {
  575. _impl_.fail_num_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  576. CHK_(ptr);
  577. }
  578. else
  579. goto handle_unusual;
  580. continue;
  581. // double time_until_skill_available = 6;
  582. case 6:
  583. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 49))
  584. {
  585. _impl_.time_until_skill_available_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  586. ptr += sizeof(double);
  587. }
  588. else
  589. goto handle_unusual;
  590. continue;
  591. // .protobuf.PlaceType place = 7;
  592. case 7:
  593. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56))
  594. {
  595. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  596. CHK_(ptr);
  597. _internal_set_place(static_cast<::protobuf::PlaceType>(val));
  598. }
  599. else
  600. goto handle_unusual;
  601. continue;
  602. // .protobuf.PropType prop = 8;
  603. case 8:
  604. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64))
  605. {
  606. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  607. CHK_(ptr);
  608. _internal_set_prop(static_cast<::protobuf::PropType>(val));
  609. }
  610. else
  611. goto handle_unusual;
  612. continue;
  613. // .protobuf.StudentType student_type = 9;
  614. case 9:
  615. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72))
  616. {
  617. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  618. CHK_(ptr);
  619. _internal_set_student_type(static_cast<::protobuf::StudentType>(val));
  620. }
  621. else
  622. goto handle_unusual;
  623. continue;
  624. // int64 guid = 10;
  625. case 10:
  626. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80))
  627. {
  628. _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  629. CHK_(ptr);
  630. }
  631. else
  632. goto handle_unusual;
  633. continue;
  634. // .protobuf.StudentState state = 11;
  635. case 11:
  636. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88))
  637. {
  638. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  639. CHK_(ptr);
  640. _internal_set_state(static_cast<::protobuf::StudentState>(val));
  641. }
  642. else
  643. goto handle_unusual;
  644. continue;
  645. // double fail_time = 12;
  646. case 12:
  647. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 97))
  648. {
  649. _impl_.fail_time_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  650. ptr += sizeof(double);
  651. }
  652. else
  653. goto handle_unusual;
  654. continue;
  655. // double emo_time = 14;
  656. case 14:
  657. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 113))
  658. {
  659. _impl_.emo_time_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  660. ptr += sizeof(double);
  661. }
  662. else
  663. goto handle_unusual;
  664. continue;
  665. // int64 player_id = 15;
  666. case 15:
  667. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 120))
  668. {
  669. _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  670. CHK_(ptr);
  671. }
  672. else
  673. goto handle_unusual;
  674. continue;
  675. // int32 view_range = 16;
  676. case 16:
  677. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128))
  678. {
  679. _impl_.view_range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  680. CHK_(ptr);
  681. }
  682. else
  683. goto handle_unusual;
  684. continue;
  685. // int32 radius = 17;
  686. case 17:
  687. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 136))
  688. {
  689. _impl_.radius_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  690. CHK_(ptr);
  691. }
  692. else
  693. goto handle_unusual;
  694. continue;
  695. // repeated .protobuf.StudentBuffType buff = 18;
  696. case 18:
  697. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 146))
  698. {
  699. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_buff(), ptr, ctx);
  700. CHK_(ptr);
  701. }
  702. else if (static_cast<uint8_t>(tag) == 144)
  703. {
  704. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  705. CHK_(ptr);
  706. _internal_add_buff(static_cast<::protobuf::StudentBuffType>(val));
  707. }
  708. else
  709. goto handle_unusual;
  710. continue;
  711. default:
  712. goto handle_unusual;
  713. } // switch
  714. handle_unusual:
  715. if ((tag == 0) || ((tag & 7) == 4))
  716. {
  717. CHK_(ptr);
  718. ctx->SetLastTag(tag);
  719. goto message_done;
  720. }
  721. ptr = UnknownFieldParse(
  722. tag,
  723. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  724. ptr,
  725. ctx
  726. );
  727. CHK_(ptr != nullptr);
  728. } // while
  729. message_done:
  730. return ptr;
  731. failure:
  732. ptr = nullptr;
  733. goto message_done;
  734. #undef CHK_
  735. }
  736. uint8_t* MessageOfStudent::_InternalSerialize(
  737. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  738. ) const
  739. {
  740. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfStudent)
  741. uint32_t cached_has_bits = 0;
  742. (void)cached_has_bits;
  743. // int32 x = 1;
  744. if (this->_internal_x() != 0)
  745. {
  746. target = stream->EnsureSpace(target);
  747. target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target);
  748. }
  749. // int32 y = 2;
  750. if (this->_internal_y() != 0)
  751. {
  752. target = stream->EnsureSpace(target);
  753. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target);
  754. }
  755. // int32 speed = 3;
  756. if (this->_internal_speed() != 0)
  757. {
  758. target = stream->EnsureSpace(target);
  759. target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_speed(), target);
  760. }
  761. // int32 determination = 4;
  762. if (this->_internal_determination() != 0)
  763. {
  764. target = stream->EnsureSpace(target);
  765. target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_determination(), target);
  766. }
  767. // int32 fail_num = 5;
  768. if (this->_internal_fail_num() != 0)
  769. {
  770. target = stream->EnsureSpace(target);
  771. target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_fail_num(), target);
  772. }
  773. // double time_until_skill_available = 6;
  774. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  775. double tmp_time_until_skill_available = this->_internal_time_until_skill_available();
  776. uint64_t raw_time_until_skill_available;
  777. memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
  778. if (raw_time_until_skill_available != 0)
  779. {
  780. target = stream->EnsureSpace(target);
  781. target = ::_pbi::WireFormatLite::WriteDoubleToArray(6, this->_internal_time_until_skill_available(), target);
  782. }
  783. // .protobuf.PlaceType place = 7;
  784. if (this->_internal_place() != 0)
  785. {
  786. target = stream->EnsureSpace(target);
  787. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  788. 7, this->_internal_place(), target
  789. );
  790. }
  791. // .protobuf.PropType prop = 8;
  792. if (this->_internal_prop() != 0)
  793. {
  794. target = stream->EnsureSpace(target);
  795. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  796. 8, this->_internal_prop(), target
  797. );
  798. }
  799. // .protobuf.StudentType student_type = 9;
  800. if (this->_internal_student_type() != 0)
  801. {
  802. target = stream->EnsureSpace(target);
  803. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  804. 9, this->_internal_student_type(), target
  805. );
  806. }
  807. // int64 guid = 10;
  808. if (this->_internal_guid() != 0)
  809. {
  810. target = stream->EnsureSpace(target);
  811. target = ::_pbi::WireFormatLite::WriteInt64ToArray(10, this->_internal_guid(), target);
  812. }
  813. // .protobuf.StudentState state = 11;
  814. if (this->_internal_state() != 0)
  815. {
  816. target = stream->EnsureSpace(target);
  817. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  818. 11, this->_internal_state(), target
  819. );
  820. }
  821. // double fail_time = 12;
  822. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  823. double tmp_fail_time = this->_internal_fail_time();
  824. uint64_t raw_fail_time;
  825. memcpy(&raw_fail_time, &tmp_fail_time, sizeof(tmp_fail_time));
  826. if (raw_fail_time != 0)
  827. {
  828. target = stream->EnsureSpace(target);
  829. target = ::_pbi::WireFormatLite::WriteDoubleToArray(12, this->_internal_fail_time(), target);
  830. }
  831. // double emo_time = 14;
  832. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  833. double tmp_emo_time = this->_internal_emo_time();
  834. uint64_t raw_emo_time;
  835. memcpy(&raw_emo_time, &tmp_emo_time, sizeof(tmp_emo_time));
  836. if (raw_emo_time != 0)
  837. {
  838. target = stream->EnsureSpace(target);
  839. target = ::_pbi::WireFormatLite::WriteDoubleToArray(14, this->_internal_emo_time(), target);
  840. }
  841. // int64 player_id = 15;
  842. if (this->_internal_player_id() != 0)
  843. {
  844. target = stream->EnsureSpace(target);
  845. target = ::_pbi::WireFormatLite::WriteInt64ToArray(15, this->_internal_player_id(), target);
  846. }
  847. // int32 view_range = 16;
  848. if (this->_internal_view_range() != 0)
  849. {
  850. target = stream->EnsureSpace(target);
  851. target = ::_pbi::WireFormatLite::WriteInt32ToArray(16, this->_internal_view_range(), target);
  852. }
  853. // int32 radius = 17;
  854. if (this->_internal_radius() != 0)
  855. {
  856. target = stream->EnsureSpace(target);
  857. target = ::_pbi::WireFormatLite::WriteInt32ToArray(17, this->_internal_radius(), target);
  858. }
  859. // repeated .protobuf.StudentBuffType buff = 18;
  860. {
  861. int byte_size = _impl_._buff_cached_byte_size_.load(std::memory_order_relaxed);
  862. if (byte_size > 0)
  863. {
  864. target = stream->WriteEnumPacked(
  865. 18, _impl_.buff_, byte_size, target
  866. );
  867. }
  868. }
  869. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  870. {
  871. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  872. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  873. );
  874. }
  875. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfStudent)
  876. return target;
  877. }
  878. size_t MessageOfStudent::ByteSizeLong() const
  879. {
  880. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfStudent)
  881. size_t total_size = 0;
  882. uint32_t cached_has_bits = 0;
  883. // Prevent compiler warnings about cached_has_bits being unused
  884. (void)cached_has_bits;
  885. // repeated .protobuf.StudentBuffType buff = 18;
  886. {
  887. size_t data_size = 0;
  888. unsigned int count = static_cast<unsigned int>(this->_internal_buff_size());
  889. for (unsigned int i = 0; i < count; i++)
  890. {
  891. data_size += ::_pbi::WireFormatLite::EnumSize(
  892. this->_internal_buff(static_cast<int>(i))
  893. );
  894. }
  895. if (data_size > 0)
  896. {
  897. total_size += 2 +
  898. ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
  899. }
  900. int cached_size = ::_pbi::ToCachedSize(data_size);
  901. _impl_._buff_cached_byte_size_.store(cached_size, std::memory_order_relaxed);
  902. total_size += data_size;
  903. }
  904. // int32 x = 1;
  905. if (this->_internal_x() != 0)
  906. {
  907. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
  908. }
  909. // int32 y = 2;
  910. if (this->_internal_y() != 0)
  911. {
  912. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
  913. }
  914. // int32 speed = 3;
  915. if (this->_internal_speed() != 0)
  916. {
  917. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_speed());
  918. }
  919. // int32 determination = 4;
  920. if (this->_internal_determination() != 0)
  921. {
  922. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_determination());
  923. }
  924. // double time_until_skill_available = 6;
  925. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  926. double tmp_time_until_skill_available = this->_internal_time_until_skill_available();
  927. uint64_t raw_time_until_skill_available;
  928. memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
  929. if (raw_time_until_skill_available != 0)
  930. {
  931. total_size += 1 + 8;
  932. }
  933. // int32 fail_num = 5;
  934. if (this->_internal_fail_num() != 0)
  935. {
  936. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_fail_num());
  937. }
  938. // .protobuf.PlaceType place = 7;
  939. if (this->_internal_place() != 0)
  940. {
  941. total_size += 1 +
  942. ::_pbi::WireFormatLite::EnumSize(this->_internal_place());
  943. }
  944. // .protobuf.PropType prop = 8;
  945. if (this->_internal_prop() != 0)
  946. {
  947. total_size += 1 +
  948. ::_pbi::WireFormatLite::EnumSize(this->_internal_prop());
  949. }
  950. // .protobuf.StudentType student_type = 9;
  951. if (this->_internal_student_type() != 0)
  952. {
  953. total_size += 1 +
  954. ::_pbi::WireFormatLite::EnumSize(this->_internal_student_type());
  955. }
  956. // int64 guid = 10;
  957. if (this->_internal_guid() != 0)
  958. {
  959. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid());
  960. }
  961. // double fail_time = 12;
  962. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  963. double tmp_fail_time = this->_internal_fail_time();
  964. uint64_t raw_fail_time;
  965. memcpy(&raw_fail_time, &tmp_fail_time, sizeof(tmp_fail_time));
  966. if (raw_fail_time != 0)
  967. {
  968. total_size += 1 + 8;
  969. }
  970. // .protobuf.StudentState state = 11;
  971. if (this->_internal_state() != 0)
  972. {
  973. total_size += 1 +
  974. ::_pbi::WireFormatLite::EnumSize(this->_internal_state());
  975. }
  976. // int32 view_range = 16;
  977. if (this->_internal_view_range() != 0)
  978. {
  979. total_size += 2 +
  980. ::_pbi::WireFormatLite::Int32Size(
  981. this->_internal_view_range()
  982. );
  983. }
  984. // double emo_time = 14;
  985. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  986. double tmp_emo_time = this->_internal_emo_time();
  987. uint64_t raw_emo_time;
  988. memcpy(&raw_emo_time, &tmp_emo_time, sizeof(tmp_emo_time));
  989. if (raw_emo_time != 0)
  990. {
  991. total_size += 1 + 8;
  992. }
  993. // int64 player_id = 15;
  994. if (this->_internal_player_id() != 0)
  995. {
  996. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
  997. }
  998. // int32 radius = 17;
  999. if (this->_internal_radius() != 0)
  1000. {
  1001. total_size += 2 +
  1002. ::_pbi::WireFormatLite::Int32Size(
  1003. this->_internal_radius()
  1004. );
  1005. }
  1006. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1007. }
  1008. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfStudent::_class_data_ = {
  1009. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1010. MessageOfStudent::MergeImpl};
  1011. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfStudent::GetClassData() const
  1012. {
  1013. return &_class_data_;
  1014. }
  1015. void MessageOfStudent::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  1016. {
  1017. auto* const _this = static_cast<MessageOfStudent*>(&to_msg);
  1018. auto& from = static_cast<const MessageOfStudent&>(from_msg);
  1019. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfStudent)
  1020. GOOGLE_DCHECK_NE(&from, _this);
  1021. uint32_t cached_has_bits = 0;
  1022. (void)cached_has_bits;
  1023. _this->_impl_.buff_.MergeFrom(from._impl_.buff_);
  1024. if (from._internal_x() != 0)
  1025. {
  1026. _this->_internal_set_x(from._internal_x());
  1027. }
  1028. if (from._internal_y() != 0)
  1029. {
  1030. _this->_internal_set_y(from._internal_y());
  1031. }
  1032. if (from._internal_speed() != 0)
  1033. {
  1034. _this->_internal_set_speed(from._internal_speed());
  1035. }
  1036. if (from._internal_determination() != 0)
  1037. {
  1038. _this->_internal_set_determination(from._internal_determination());
  1039. }
  1040. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1041. double tmp_time_until_skill_available = from._internal_time_until_skill_available();
  1042. uint64_t raw_time_until_skill_available;
  1043. memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
  1044. if (raw_time_until_skill_available != 0)
  1045. {
  1046. _this->_internal_set_time_until_skill_available(from._internal_time_until_skill_available());
  1047. }
  1048. if (from._internal_fail_num() != 0)
  1049. {
  1050. _this->_internal_set_fail_num(from._internal_fail_num());
  1051. }
  1052. if (from._internal_place() != 0)
  1053. {
  1054. _this->_internal_set_place(from._internal_place());
  1055. }
  1056. if (from._internal_prop() != 0)
  1057. {
  1058. _this->_internal_set_prop(from._internal_prop());
  1059. }
  1060. if (from._internal_student_type() != 0)
  1061. {
  1062. _this->_internal_set_student_type(from._internal_student_type());
  1063. }
  1064. if (from._internal_guid() != 0)
  1065. {
  1066. _this->_internal_set_guid(from._internal_guid());
  1067. }
  1068. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1069. double tmp_fail_time = from._internal_fail_time();
  1070. uint64_t raw_fail_time;
  1071. memcpy(&raw_fail_time, &tmp_fail_time, sizeof(tmp_fail_time));
  1072. if (raw_fail_time != 0)
  1073. {
  1074. _this->_internal_set_fail_time(from._internal_fail_time());
  1075. }
  1076. if (from._internal_state() != 0)
  1077. {
  1078. _this->_internal_set_state(from._internal_state());
  1079. }
  1080. if (from._internal_view_range() != 0)
  1081. {
  1082. _this->_internal_set_view_range(from._internal_view_range());
  1083. }
  1084. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1085. double tmp_emo_time = from._internal_emo_time();
  1086. uint64_t raw_emo_time;
  1087. memcpy(&raw_emo_time, &tmp_emo_time, sizeof(tmp_emo_time));
  1088. if (raw_emo_time != 0)
  1089. {
  1090. _this->_internal_set_emo_time(from._internal_emo_time());
  1091. }
  1092. if (from._internal_player_id() != 0)
  1093. {
  1094. _this->_internal_set_player_id(from._internal_player_id());
  1095. }
  1096. if (from._internal_radius() != 0)
  1097. {
  1098. _this->_internal_set_radius(from._internal_radius());
  1099. }
  1100. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1101. }
  1102. void MessageOfStudent::CopyFrom(const MessageOfStudent& from)
  1103. {
  1104. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfStudent)
  1105. if (&from == this)
  1106. return;
  1107. Clear();
  1108. MergeFrom(from);
  1109. }
  1110. bool MessageOfStudent::IsInitialized() const
  1111. {
  1112. return true;
  1113. }
  1114. void MessageOfStudent::InternalSwap(MessageOfStudent* other)
  1115. {
  1116. using std::swap;
  1117. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1118. _impl_.buff_.InternalSwap(&other->_impl_.buff_);
  1119. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1120. PROTOBUF_FIELD_OFFSET(MessageOfStudent, _impl_.radius_) + sizeof(MessageOfStudent::_impl_.radius_) - PROTOBUF_FIELD_OFFSET(MessageOfStudent, _impl_.x_)>(
  1121. reinterpret_cast<char*>(&_impl_.x_),
  1122. reinterpret_cast<char*>(&other->_impl_.x_)
  1123. );
  1124. }
  1125. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfStudent::GetMetadata() const
  1126. {
  1127. return ::_pbi::AssignDescriptors(
  1128. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[0]
  1129. );
  1130. }
  1131. // ===================================================================
  1132. class MessageOfTricker::_Internal
  1133. {
  1134. public:
  1135. };
  1136. MessageOfTricker::MessageOfTricker(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  1137. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  1138. {
  1139. SharedCtor(arena, is_message_owned);
  1140. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfTricker)
  1141. }
  1142. MessageOfTricker::MessageOfTricker(const MessageOfTricker& from) :
  1143. ::PROTOBUF_NAMESPACE_ID::Message()
  1144. {
  1145. MessageOfTricker* const _this = this;
  1146. (void)_this;
  1147. new (&_impl_) Impl_{
  1148. decltype(_impl_.buff_){from._impl_.buff_}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, decltype(_impl_.x_){}, decltype(_impl_.y_){}, decltype(_impl_.speed_){}, decltype(_impl_.damage_){}, decltype(_impl_.time_until_skill_available_){}, decltype(_impl_.place_){}, decltype(_impl_.prop_){}, decltype(_impl_.guid_){}, decltype(_impl_.tricker_type_){}, decltype(_impl_.movable_){}, decltype(_impl_.player_id_){}, decltype(_impl_.view_range_){}, decltype(_impl_.radius_){}, /*decltype(_impl_._cached_size_)*/ {}};
  1149. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1150. ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.radius_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.radius_));
  1151. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfTricker)
  1152. }
  1153. inline void MessageOfTricker::SharedCtor(
  1154. ::_pb::Arena* arena, bool is_message_owned
  1155. )
  1156. {
  1157. (void)arena;
  1158. (void)is_message_owned;
  1159. new (&_impl_) Impl_{
  1160. decltype(_impl_.buff_){arena}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, decltype(_impl_.x_){0}, decltype(_impl_.y_){0}, decltype(_impl_.speed_){0}, decltype(_impl_.damage_){0}, decltype(_impl_.time_until_skill_available_){0}, decltype(_impl_.place_){0}, decltype(_impl_.prop_){0}, decltype(_impl_.guid_){int64_t{0}}, decltype(_impl_.tricker_type_){0}, decltype(_impl_.movable_){false}, decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.view_range_){0}, decltype(_impl_.radius_){0}, /*decltype(_impl_._cached_size_)*/ {}};
  1161. }
  1162. MessageOfTricker::~MessageOfTricker()
  1163. {
  1164. // @@protoc_insertion_point(destructor:protobuf.MessageOfTricker)
  1165. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  1166. {
  1167. (void)arena;
  1168. return;
  1169. }
  1170. SharedDtor();
  1171. }
  1172. inline void MessageOfTricker::SharedDtor()
  1173. {
  1174. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1175. _impl_.buff_.~RepeatedField();
  1176. }
  1177. void MessageOfTricker::SetCachedSize(int size) const
  1178. {
  1179. _impl_._cached_size_.Set(size);
  1180. }
  1181. void MessageOfTricker::Clear()
  1182. {
  1183. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfTricker)
  1184. uint32_t cached_has_bits = 0;
  1185. // Prevent compiler warnings about cached_has_bits being unused
  1186. (void)cached_has_bits;
  1187. _impl_.buff_.Clear();
  1188. ::memset(&_impl_.x_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.radius_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.radius_));
  1189. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1190. }
  1191. const char* MessageOfTricker::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  1192. {
  1193. #define CHK_(x) \
  1194. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  1195. goto failure
  1196. while (!ctx->Done(&ptr))
  1197. {
  1198. uint32_t tag;
  1199. ptr = ::_pbi::ReadTag(ptr, &tag);
  1200. switch (tag >> 3)
  1201. {
  1202. // int32 x = 1;
  1203. case 1:
  1204. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  1205. {
  1206. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1207. CHK_(ptr);
  1208. }
  1209. else
  1210. goto handle_unusual;
  1211. continue;
  1212. // int32 y = 2;
  1213. case 2:
  1214. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  1215. {
  1216. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1217. CHK_(ptr);
  1218. }
  1219. else
  1220. goto handle_unusual;
  1221. continue;
  1222. // int32 speed = 3;
  1223. case 3:
  1224. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  1225. {
  1226. _impl_.speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1227. CHK_(ptr);
  1228. }
  1229. else
  1230. goto handle_unusual;
  1231. continue;
  1232. // int32 damage = 4;
  1233. case 4:
  1234. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32))
  1235. {
  1236. _impl_.damage_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1237. CHK_(ptr);
  1238. }
  1239. else
  1240. goto handle_unusual;
  1241. continue;
  1242. // double time_until_skill_available = 5;
  1243. case 5:
  1244. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 41))
  1245. {
  1246. _impl_.time_until_skill_available_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  1247. ptr += sizeof(double);
  1248. }
  1249. else
  1250. goto handle_unusual;
  1251. continue;
  1252. // .protobuf.PlaceType place = 6;
  1253. case 6:
  1254. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48))
  1255. {
  1256. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1257. CHK_(ptr);
  1258. _internal_set_place(static_cast<::protobuf::PlaceType>(val));
  1259. }
  1260. else
  1261. goto handle_unusual;
  1262. continue;
  1263. // .protobuf.PropType prop = 7;
  1264. case 7:
  1265. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56))
  1266. {
  1267. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1268. CHK_(ptr);
  1269. _internal_set_prop(static_cast<::protobuf::PropType>(val));
  1270. }
  1271. else
  1272. goto handle_unusual;
  1273. continue;
  1274. // .protobuf.TrickerType tricker_type = 8;
  1275. case 8:
  1276. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64))
  1277. {
  1278. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1279. CHK_(ptr);
  1280. _internal_set_tricker_type(static_cast<::protobuf::TrickerType>(val));
  1281. }
  1282. else
  1283. goto handle_unusual;
  1284. continue;
  1285. // int64 guid = 9;
  1286. case 9:
  1287. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72))
  1288. {
  1289. _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1290. CHK_(ptr);
  1291. }
  1292. else
  1293. goto handle_unusual;
  1294. continue;
  1295. // bool movable = 10;
  1296. case 10:
  1297. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80))
  1298. {
  1299. _impl_.movable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1300. CHK_(ptr);
  1301. }
  1302. else
  1303. goto handle_unusual;
  1304. continue;
  1305. // int64 player_id = 11;
  1306. case 11:
  1307. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88))
  1308. {
  1309. _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1310. CHK_(ptr);
  1311. }
  1312. else
  1313. goto handle_unusual;
  1314. continue;
  1315. // int32 view_range = 12;
  1316. case 12:
  1317. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96))
  1318. {
  1319. _impl_.view_range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1320. CHK_(ptr);
  1321. }
  1322. else
  1323. goto handle_unusual;
  1324. continue;
  1325. // int32 radius = 13;
  1326. case 13:
  1327. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 104))
  1328. {
  1329. _impl_.radius_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1330. CHK_(ptr);
  1331. }
  1332. else
  1333. goto handle_unusual;
  1334. continue;
  1335. // repeated .protobuf.TrickerBuffType buff = 14;
  1336. case 14:
  1337. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 114))
  1338. {
  1339. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_buff(), ptr, ctx);
  1340. CHK_(ptr);
  1341. }
  1342. else if (static_cast<uint8_t>(tag) == 112)
  1343. {
  1344. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1345. CHK_(ptr);
  1346. _internal_add_buff(static_cast<::protobuf::TrickerBuffType>(val));
  1347. }
  1348. else
  1349. goto handle_unusual;
  1350. continue;
  1351. default:
  1352. goto handle_unusual;
  1353. } // switch
  1354. handle_unusual:
  1355. if ((tag == 0) || ((tag & 7) == 4))
  1356. {
  1357. CHK_(ptr);
  1358. ctx->SetLastTag(tag);
  1359. goto message_done;
  1360. }
  1361. ptr = UnknownFieldParse(
  1362. tag,
  1363. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1364. ptr,
  1365. ctx
  1366. );
  1367. CHK_(ptr != nullptr);
  1368. } // while
  1369. message_done:
  1370. return ptr;
  1371. failure:
  1372. ptr = nullptr;
  1373. goto message_done;
  1374. #undef CHK_
  1375. }
  1376. uint8_t* MessageOfTricker::_InternalSerialize(
  1377. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  1378. ) const
  1379. {
  1380. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfTricker)
  1381. uint32_t cached_has_bits = 0;
  1382. (void)cached_has_bits;
  1383. // int32 x = 1;
  1384. if (this->_internal_x() != 0)
  1385. {
  1386. target = stream->EnsureSpace(target);
  1387. target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target);
  1388. }
  1389. // int32 y = 2;
  1390. if (this->_internal_y() != 0)
  1391. {
  1392. target = stream->EnsureSpace(target);
  1393. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target);
  1394. }
  1395. // int32 speed = 3;
  1396. if (this->_internal_speed() != 0)
  1397. {
  1398. target = stream->EnsureSpace(target);
  1399. target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_speed(), target);
  1400. }
  1401. // int32 damage = 4;
  1402. if (this->_internal_damage() != 0)
  1403. {
  1404. target = stream->EnsureSpace(target);
  1405. target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_damage(), target);
  1406. }
  1407. // double time_until_skill_available = 5;
  1408. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1409. double tmp_time_until_skill_available = this->_internal_time_until_skill_available();
  1410. uint64_t raw_time_until_skill_available;
  1411. memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
  1412. if (raw_time_until_skill_available != 0)
  1413. {
  1414. target = stream->EnsureSpace(target);
  1415. target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_time_until_skill_available(), target);
  1416. }
  1417. // .protobuf.PlaceType place = 6;
  1418. if (this->_internal_place() != 0)
  1419. {
  1420. target = stream->EnsureSpace(target);
  1421. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  1422. 6, this->_internal_place(), target
  1423. );
  1424. }
  1425. // .protobuf.PropType prop = 7;
  1426. if (this->_internal_prop() != 0)
  1427. {
  1428. target = stream->EnsureSpace(target);
  1429. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  1430. 7, this->_internal_prop(), target
  1431. );
  1432. }
  1433. // .protobuf.TrickerType tricker_type = 8;
  1434. if (this->_internal_tricker_type() != 0)
  1435. {
  1436. target = stream->EnsureSpace(target);
  1437. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  1438. 8, this->_internal_tricker_type(), target
  1439. );
  1440. }
  1441. // int64 guid = 9;
  1442. if (this->_internal_guid() != 0)
  1443. {
  1444. target = stream->EnsureSpace(target);
  1445. target = ::_pbi::WireFormatLite::WriteInt64ToArray(9, this->_internal_guid(), target);
  1446. }
  1447. // bool movable = 10;
  1448. if (this->_internal_movable() != 0)
  1449. {
  1450. target = stream->EnsureSpace(target);
  1451. target = ::_pbi::WireFormatLite::WriteBoolToArray(10, this->_internal_movable(), target);
  1452. }
  1453. // int64 player_id = 11;
  1454. if (this->_internal_player_id() != 0)
  1455. {
  1456. target = stream->EnsureSpace(target);
  1457. target = ::_pbi::WireFormatLite::WriteInt64ToArray(11, this->_internal_player_id(), target);
  1458. }
  1459. // int32 view_range = 12;
  1460. if (this->_internal_view_range() != 0)
  1461. {
  1462. target = stream->EnsureSpace(target);
  1463. target = ::_pbi::WireFormatLite::WriteInt32ToArray(12, this->_internal_view_range(), target);
  1464. }
  1465. // int32 radius = 13;
  1466. if (this->_internal_radius() != 0)
  1467. {
  1468. target = stream->EnsureSpace(target);
  1469. target = ::_pbi::WireFormatLite::WriteInt32ToArray(13, this->_internal_radius(), target);
  1470. }
  1471. // repeated .protobuf.TrickerBuffType buff = 14;
  1472. {
  1473. int byte_size = _impl_._buff_cached_byte_size_.load(std::memory_order_relaxed);
  1474. if (byte_size > 0)
  1475. {
  1476. target = stream->WriteEnumPacked(
  1477. 14, _impl_.buff_, byte_size, target
  1478. );
  1479. }
  1480. }
  1481. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  1482. {
  1483. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1484. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  1485. );
  1486. }
  1487. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfTricker)
  1488. return target;
  1489. }
  1490. size_t MessageOfTricker::ByteSizeLong() const
  1491. {
  1492. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfTricker)
  1493. size_t total_size = 0;
  1494. uint32_t cached_has_bits = 0;
  1495. // Prevent compiler warnings about cached_has_bits being unused
  1496. (void)cached_has_bits;
  1497. // repeated .protobuf.TrickerBuffType buff = 14;
  1498. {
  1499. size_t data_size = 0;
  1500. unsigned int count = static_cast<unsigned int>(this->_internal_buff_size());
  1501. for (unsigned int i = 0; i < count; i++)
  1502. {
  1503. data_size += ::_pbi::WireFormatLite::EnumSize(
  1504. this->_internal_buff(static_cast<int>(i))
  1505. );
  1506. }
  1507. if (data_size > 0)
  1508. {
  1509. total_size += 1 +
  1510. ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
  1511. }
  1512. int cached_size = ::_pbi::ToCachedSize(data_size);
  1513. _impl_._buff_cached_byte_size_.store(cached_size, std::memory_order_relaxed);
  1514. total_size += data_size;
  1515. }
  1516. // int32 x = 1;
  1517. if (this->_internal_x() != 0)
  1518. {
  1519. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
  1520. }
  1521. // int32 y = 2;
  1522. if (this->_internal_y() != 0)
  1523. {
  1524. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
  1525. }
  1526. // int32 speed = 3;
  1527. if (this->_internal_speed() != 0)
  1528. {
  1529. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_speed());
  1530. }
  1531. // int32 damage = 4;
  1532. if (this->_internal_damage() != 0)
  1533. {
  1534. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_damage());
  1535. }
  1536. // double time_until_skill_available = 5;
  1537. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1538. double tmp_time_until_skill_available = this->_internal_time_until_skill_available();
  1539. uint64_t raw_time_until_skill_available;
  1540. memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
  1541. if (raw_time_until_skill_available != 0)
  1542. {
  1543. total_size += 1 + 8;
  1544. }
  1545. // .protobuf.PlaceType place = 6;
  1546. if (this->_internal_place() != 0)
  1547. {
  1548. total_size += 1 +
  1549. ::_pbi::WireFormatLite::EnumSize(this->_internal_place());
  1550. }
  1551. // .protobuf.PropType prop = 7;
  1552. if (this->_internal_prop() != 0)
  1553. {
  1554. total_size += 1 +
  1555. ::_pbi::WireFormatLite::EnumSize(this->_internal_prop());
  1556. }
  1557. // int64 guid = 9;
  1558. if (this->_internal_guid() != 0)
  1559. {
  1560. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid());
  1561. }
  1562. // .protobuf.TrickerType tricker_type = 8;
  1563. if (this->_internal_tricker_type() != 0)
  1564. {
  1565. total_size += 1 +
  1566. ::_pbi::WireFormatLite::EnumSize(this->_internal_tricker_type());
  1567. }
  1568. // bool movable = 10;
  1569. if (this->_internal_movable() != 0)
  1570. {
  1571. total_size += 1 + 1;
  1572. }
  1573. // int64 player_id = 11;
  1574. if (this->_internal_player_id() != 0)
  1575. {
  1576. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
  1577. }
  1578. // int32 view_range = 12;
  1579. if (this->_internal_view_range() != 0)
  1580. {
  1581. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_view_range());
  1582. }
  1583. // int32 radius = 13;
  1584. if (this->_internal_radius() != 0)
  1585. {
  1586. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_radius());
  1587. }
  1588. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1589. }
  1590. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfTricker::_class_data_ = {
  1591. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1592. MessageOfTricker::MergeImpl};
  1593. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfTricker::GetClassData() const
  1594. {
  1595. return &_class_data_;
  1596. }
  1597. void MessageOfTricker::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  1598. {
  1599. auto* const _this = static_cast<MessageOfTricker*>(&to_msg);
  1600. auto& from = static_cast<const MessageOfTricker&>(from_msg);
  1601. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfTricker)
  1602. GOOGLE_DCHECK_NE(&from, _this);
  1603. uint32_t cached_has_bits = 0;
  1604. (void)cached_has_bits;
  1605. _this->_impl_.buff_.MergeFrom(from._impl_.buff_);
  1606. if (from._internal_x() != 0)
  1607. {
  1608. _this->_internal_set_x(from._internal_x());
  1609. }
  1610. if (from._internal_y() != 0)
  1611. {
  1612. _this->_internal_set_y(from._internal_y());
  1613. }
  1614. if (from._internal_speed() != 0)
  1615. {
  1616. _this->_internal_set_speed(from._internal_speed());
  1617. }
  1618. if (from._internal_damage() != 0)
  1619. {
  1620. _this->_internal_set_damage(from._internal_damage());
  1621. }
  1622. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1623. double tmp_time_until_skill_available = from._internal_time_until_skill_available();
  1624. uint64_t raw_time_until_skill_available;
  1625. memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
  1626. if (raw_time_until_skill_available != 0)
  1627. {
  1628. _this->_internal_set_time_until_skill_available(from._internal_time_until_skill_available());
  1629. }
  1630. if (from._internal_place() != 0)
  1631. {
  1632. _this->_internal_set_place(from._internal_place());
  1633. }
  1634. if (from._internal_prop() != 0)
  1635. {
  1636. _this->_internal_set_prop(from._internal_prop());
  1637. }
  1638. if (from._internal_guid() != 0)
  1639. {
  1640. _this->_internal_set_guid(from._internal_guid());
  1641. }
  1642. if (from._internal_tricker_type() != 0)
  1643. {
  1644. _this->_internal_set_tricker_type(from._internal_tricker_type());
  1645. }
  1646. if (from._internal_movable() != 0)
  1647. {
  1648. _this->_internal_set_movable(from._internal_movable());
  1649. }
  1650. if (from._internal_player_id() != 0)
  1651. {
  1652. _this->_internal_set_player_id(from._internal_player_id());
  1653. }
  1654. if (from._internal_view_range() != 0)
  1655. {
  1656. _this->_internal_set_view_range(from._internal_view_range());
  1657. }
  1658. if (from._internal_radius() != 0)
  1659. {
  1660. _this->_internal_set_radius(from._internal_radius());
  1661. }
  1662. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1663. }
  1664. void MessageOfTricker::CopyFrom(const MessageOfTricker& from)
  1665. {
  1666. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfTricker)
  1667. if (&from == this)
  1668. return;
  1669. Clear();
  1670. MergeFrom(from);
  1671. }
  1672. bool MessageOfTricker::IsInitialized() const
  1673. {
  1674. return true;
  1675. }
  1676. void MessageOfTricker::InternalSwap(MessageOfTricker* other)
  1677. {
  1678. using std::swap;
  1679. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1680. _impl_.buff_.InternalSwap(&other->_impl_.buff_);
  1681. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1682. PROTOBUF_FIELD_OFFSET(MessageOfTricker, _impl_.radius_) + sizeof(MessageOfTricker::_impl_.radius_) - PROTOBUF_FIELD_OFFSET(MessageOfTricker, _impl_.x_)>(
  1683. reinterpret_cast<char*>(&_impl_.x_),
  1684. reinterpret_cast<char*>(&other->_impl_.x_)
  1685. );
  1686. }
  1687. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfTricker::GetMetadata() const
  1688. {
  1689. return ::_pbi::AssignDescriptors(
  1690. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[1]
  1691. );
  1692. }
  1693. // ===================================================================
  1694. class MessageOfProp::_Internal
  1695. {
  1696. public:
  1697. };
  1698. MessageOfProp::MessageOfProp(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  1699. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  1700. {
  1701. SharedCtor(arena, is_message_owned);
  1702. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfProp)
  1703. }
  1704. MessageOfProp::MessageOfProp(const MessageOfProp& from) :
  1705. ::PROTOBUF_NAMESPACE_ID::Message()
  1706. {
  1707. MessageOfProp* const _this = this;
  1708. (void)_this;
  1709. new (&_impl_) Impl_{
  1710. decltype(_impl_.type_){}, decltype(_impl_.x_){}, decltype(_impl_.facing_direction_){}, decltype(_impl_.y_){}, decltype(_impl_.place_){}, decltype(_impl_.guid_){}, decltype(_impl_.size_){}, decltype(_impl_.is_moving_){}, /*decltype(_impl_._cached_size_)*/ {}};
  1711. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1712. ::memcpy(&_impl_.type_, &from._impl_.type_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.is_moving_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.is_moving_));
  1713. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfProp)
  1714. }
  1715. inline void MessageOfProp::SharedCtor(
  1716. ::_pb::Arena* arena, bool is_message_owned
  1717. )
  1718. {
  1719. (void)arena;
  1720. (void)is_message_owned;
  1721. new (&_impl_) Impl_{
  1722. decltype(_impl_.type_){0}, decltype(_impl_.x_){0}, decltype(_impl_.facing_direction_){0}, decltype(_impl_.y_){0}, decltype(_impl_.place_){0}, decltype(_impl_.guid_){int64_t{0}}, decltype(_impl_.size_){0}, decltype(_impl_.is_moving_){false}, /*decltype(_impl_._cached_size_)*/ {}};
  1723. }
  1724. MessageOfProp::~MessageOfProp()
  1725. {
  1726. // @@protoc_insertion_point(destructor:protobuf.MessageOfProp)
  1727. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  1728. {
  1729. (void)arena;
  1730. return;
  1731. }
  1732. SharedDtor();
  1733. }
  1734. inline void MessageOfProp::SharedDtor()
  1735. {
  1736. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1737. }
  1738. void MessageOfProp::SetCachedSize(int size) const
  1739. {
  1740. _impl_._cached_size_.Set(size);
  1741. }
  1742. void MessageOfProp::Clear()
  1743. {
  1744. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfProp)
  1745. uint32_t cached_has_bits = 0;
  1746. // Prevent compiler warnings about cached_has_bits being unused
  1747. (void)cached_has_bits;
  1748. ::memset(&_impl_.type_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.is_moving_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.is_moving_));
  1749. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1750. }
  1751. const char* MessageOfProp::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  1752. {
  1753. #define CHK_(x) \
  1754. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  1755. goto failure
  1756. while (!ctx->Done(&ptr))
  1757. {
  1758. uint32_t tag;
  1759. ptr = ::_pbi::ReadTag(ptr, &tag);
  1760. switch (tag >> 3)
  1761. {
  1762. // .protobuf.PropType type = 1;
  1763. case 1:
  1764. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  1765. {
  1766. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1767. CHK_(ptr);
  1768. _internal_set_type(static_cast<::protobuf::PropType>(val));
  1769. }
  1770. else
  1771. goto handle_unusual;
  1772. continue;
  1773. // int32 x = 2;
  1774. case 2:
  1775. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  1776. {
  1777. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1778. CHK_(ptr);
  1779. }
  1780. else
  1781. goto handle_unusual;
  1782. continue;
  1783. // int32 y = 3;
  1784. case 3:
  1785. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  1786. {
  1787. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1788. CHK_(ptr);
  1789. }
  1790. else
  1791. goto handle_unusual;
  1792. continue;
  1793. // double facing_direction = 4;
  1794. case 4:
  1795. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33))
  1796. {
  1797. _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  1798. ptr += sizeof(double);
  1799. }
  1800. else
  1801. goto handle_unusual;
  1802. continue;
  1803. // int64 guid = 5;
  1804. case 5:
  1805. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
  1806. {
  1807. _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1808. CHK_(ptr);
  1809. }
  1810. else
  1811. goto handle_unusual;
  1812. continue;
  1813. // .protobuf.PlaceType place = 6;
  1814. case 6:
  1815. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48))
  1816. {
  1817. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1818. CHK_(ptr);
  1819. _internal_set_place(static_cast<::protobuf::PlaceType>(val));
  1820. }
  1821. else
  1822. goto handle_unusual;
  1823. continue;
  1824. // int32 size = 7;
  1825. case 7:
  1826. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56))
  1827. {
  1828. _impl_.size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1829. CHK_(ptr);
  1830. }
  1831. else
  1832. goto handle_unusual;
  1833. continue;
  1834. // bool is_moving = 8;
  1835. case 8:
  1836. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64))
  1837. {
  1838. _impl_.is_moving_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1839. CHK_(ptr);
  1840. }
  1841. else
  1842. goto handle_unusual;
  1843. continue;
  1844. default:
  1845. goto handle_unusual;
  1846. } // switch
  1847. handle_unusual:
  1848. if ((tag == 0) || ((tag & 7) == 4))
  1849. {
  1850. CHK_(ptr);
  1851. ctx->SetLastTag(tag);
  1852. goto message_done;
  1853. }
  1854. ptr = UnknownFieldParse(
  1855. tag,
  1856. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1857. ptr,
  1858. ctx
  1859. );
  1860. CHK_(ptr != nullptr);
  1861. } // while
  1862. message_done:
  1863. return ptr;
  1864. failure:
  1865. ptr = nullptr;
  1866. goto message_done;
  1867. #undef CHK_
  1868. }
  1869. uint8_t* MessageOfProp::_InternalSerialize(
  1870. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  1871. ) const
  1872. {
  1873. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfProp)
  1874. uint32_t cached_has_bits = 0;
  1875. (void)cached_has_bits;
  1876. // .protobuf.PropType type = 1;
  1877. if (this->_internal_type() != 0)
  1878. {
  1879. target = stream->EnsureSpace(target);
  1880. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  1881. 1, this->_internal_type(), target
  1882. );
  1883. }
  1884. // int32 x = 2;
  1885. if (this->_internal_x() != 0)
  1886. {
  1887. target = stream->EnsureSpace(target);
  1888. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target);
  1889. }
  1890. // int32 y = 3;
  1891. if (this->_internal_y() != 0)
  1892. {
  1893. target = stream->EnsureSpace(target);
  1894. target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target);
  1895. }
  1896. // double facing_direction = 4;
  1897. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1898. double tmp_facing_direction = this->_internal_facing_direction();
  1899. uint64_t raw_facing_direction;
  1900. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  1901. if (raw_facing_direction != 0)
  1902. {
  1903. target = stream->EnsureSpace(target);
  1904. target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target);
  1905. }
  1906. // int64 guid = 5;
  1907. if (this->_internal_guid() != 0)
  1908. {
  1909. target = stream->EnsureSpace(target);
  1910. target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_guid(), target);
  1911. }
  1912. // .protobuf.PlaceType place = 6;
  1913. if (this->_internal_place() != 0)
  1914. {
  1915. target = stream->EnsureSpace(target);
  1916. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  1917. 6, this->_internal_place(), target
  1918. );
  1919. }
  1920. // int32 size = 7;
  1921. if (this->_internal_size() != 0)
  1922. {
  1923. target = stream->EnsureSpace(target);
  1924. target = ::_pbi::WireFormatLite::WriteInt32ToArray(7, this->_internal_size(), target);
  1925. }
  1926. // bool is_moving = 8;
  1927. if (this->_internal_is_moving() != 0)
  1928. {
  1929. target = stream->EnsureSpace(target);
  1930. target = ::_pbi::WireFormatLite::WriteBoolToArray(8, this->_internal_is_moving(), target);
  1931. }
  1932. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  1933. {
  1934. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1935. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  1936. );
  1937. }
  1938. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfProp)
  1939. return target;
  1940. }
  1941. size_t MessageOfProp::ByteSizeLong() const
  1942. {
  1943. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfProp)
  1944. size_t total_size = 0;
  1945. uint32_t cached_has_bits = 0;
  1946. // Prevent compiler warnings about cached_has_bits being unused
  1947. (void)cached_has_bits;
  1948. // .protobuf.PropType type = 1;
  1949. if (this->_internal_type() != 0)
  1950. {
  1951. total_size += 1 +
  1952. ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
  1953. }
  1954. // int32 x = 2;
  1955. if (this->_internal_x() != 0)
  1956. {
  1957. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
  1958. }
  1959. // double facing_direction = 4;
  1960. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1961. double tmp_facing_direction = this->_internal_facing_direction();
  1962. uint64_t raw_facing_direction;
  1963. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  1964. if (raw_facing_direction != 0)
  1965. {
  1966. total_size += 1 + 8;
  1967. }
  1968. // int32 y = 3;
  1969. if (this->_internal_y() != 0)
  1970. {
  1971. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
  1972. }
  1973. // .protobuf.PlaceType place = 6;
  1974. if (this->_internal_place() != 0)
  1975. {
  1976. total_size += 1 +
  1977. ::_pbi::WireFormatLite::EnumSize(this->_internal_place());
  1978. }
  1979. // int64 guid = 5;
  1980. if (this->_internal_guid() != 0)
  1981. {
  1982. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid());
  1983. }
  1984. // int32 size = 7;
  1985. if (this->_internal_size() != 0)
  1986. {
  1987. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_size());
  1988. }
  1989. // bool is_moving = 8;
  1990. if (this->_internal_is_moving() != 0)
  1991. {
  1992. total_size += 1 + 1;
  1993. }
  1994. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1995. }
  1996. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfProp::_class_data_ = {
  1997. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1998. MessageOfProp::MergeImpl};
  1999. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfProp::GetClassData() const
  2000. {
  2001. return &_class_data_;
  2002. }
  2003. void MessageOfProp::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  2004. {
  2005. auto* const _this = static_cast<MessageOfProp*>(&to_msg);
  2006. auto& from = static_cast<const MessageOfProp&>(from_msg);
  2007. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfProp)
  2008. GOOGLE_DCHECK_NE(&from, _this);
  2009. uint32_t cached_has_bits = 0;
  2010. (void)cached_has_bits;
  2011. if (from._internal_type() != 0)
  2012. {
  2013. _this->_internal_set_type(from._internal_type());
  2014. }
  2015. if (from._internal_x() != 0)
  2016. {
  2017. _this->_internal_set_x(from._internal_x());
  2018. }
  2019. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2020. double tmp_facing_direction = from._internal_facing_direction();
  2021. uint64_t raw_facing_direction;
  2022. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  2023. if (raw_facing_direction != 0)
  2024. {
  2025. _this->_internal_set_facing_direction(from._internal_facing_direction());
  2026. }
  2027. if (from._internal_y() != 0)
  2028. {
  2029. _this->_internal_set_y(from._internal_y());
  2030. }
  2031. if (from._internal_place() != 0)
  2032. {
  2033. _this->_internal_set_place(from._internal_place());
  2034. }
  2035. if (from._internal_guid() != 0)
  2036. {
  2037. _this->_internal_set_guid(from._internal_guid());
  2038. }
  2039. if (from._internal_size() != 0)
  2040. {
  2041. _this->_internal_set_size(from._internal_size());
  2042. }
  2043. if (from._internal_is_moving() != 0)
  2044. {
  2045. _this->_internal_set_is_moving(from._internal_is_moving());
  2046. }
  2047. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2048. }
  2049. void MessageOfProp::CopyFrom(const MessageOfProp& from)
  2050. {
  2051. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfProp)
  2052. if (&from == this)
  2053. return;
  2054. Clear();
  2055. MergeFrom(from);
  2056. }
  2057. bool MessageOfProp::IsInitialized() const
  2058. {
  2059. return true;
  2060. }
  2061. void MessageOfProp::InternalSwap(MessageOfProp* other)
  2062. {
  2063. using std::swap;
  2064. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2065. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2066. PROTOBUF_FIELD_OFFSET(MessageOfProp, _impl_.is_moving_) + sizeof(MessageOfProp::_impl_.is_moving_) - PROTOBUF_FIELD_OFFSET(MessageOfProp, _impl_.type_)>(
  2067. reinterpret_cast<char*>(&_impl_.type_),
  2068. reinterpret_cast<char*>(&other->_impl_.type_)
  2069. );
  2070. }
  2071. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfProp::GetMetadata() const
  2072. {
  2073. return ::_pbi::AssignDescriptors(
  2074. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[2]
  2075. );
  2076. }
  2077. // ===================================================================
  2078. class MessageOfPickedProp::_Internal
  2079. {
  2080. public:
  2081. };
  2082. MessageOfPickedProp::MessageOfPickedProp(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  2083. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  2084. {
  2085. SharedCtor(arena, is_message_owned);
  2086. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfPickedProp)
  2087. }
  2088. MessageOfPickedProp::MessageOfPickedProp(const MessageOfPickedProp& from) :
  2089. ::PROTOBUF_NAMESPACE_ID::Message()
  2090. {
  2091. MessageOfPickedProp* const _this = this;
  2092. (void)_this;
  2093. new (&_impl_) Impl_{
  2094. decltype(_impl_.type_){}, decltype(_impl_.x_){}, decltype(_impl_.facing_direction_){}, decltype(_impl_.mapping_id_){}, decltype(_impl_.y_){}, /*decltype(_impl_._cached_size_)*/ {}};
  2095. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2096. ::memcpy(&_impl_.type_, &from._impl_.type_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.y_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.y_));
  2097. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfPickedProp)
  2098. }
  2099. inline void MessageOfPickedProp::SharedCtor(
  2100. ::_pb::Arena* arena, bool is_message_owned
  2101. )
  2102. {
  2103. (void)arena;
  2104. (void)is_message_owned;
  2105. new (&_impl_) Impl_{
  2106. decltype(_impl_.type_){0}, decltype(_impl_.x_){0}, decltype(_impl_.facing_direction_){0}, decltype(_impl_.mapping_id_){int64_t{0}}, decltype(_impl_.y_){0}, /*decltype(_impl_._cached_size_)*/ {}};
  2107. }
  2108. MessageOfPickedProp::~MessageOfPickedProp()
  2109. {
  2110. // @@protoc_insertion_point(destructor:protobuf.MessageOfPickedProp)
  2111. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  2112. {
  2113. (void)arena;
  2114. return;
  2115. }
  2116. SharedDtor();
  2117. }
  2118. inline void MessageOfPickedProp::SharedDtor()
  2119. {
  2120. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2121. }
  2122. void MessageOfPickedProp::SetCachedSize(int size) const
  2123. {
  2124. _impl_._cached_size_.Set(size);
  2125. }
  2126. void MessageOfPickedProp::Clear()
  2127. {
  2128. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfPickedProp)
  2129. uint32_t cached_has_bits = 0;
  2130. // Prevent compiler warnings about cached_has_bits being unused
  2131. (void)cached_has_bits;
  2132. ::memset(&_impl_.type_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.y_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.y_));
  2133. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2134. }
  2135. const char* MessageOfPickedProp::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  2136. {
  2137. #define CHK_(x) \
  2138. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  2139. goto failure
  2140. while (!ctx->Done(&ptr))
  2141. {
  2142. uint32_t tag;
  2143. ptr = ::_pbi::ReadTag(ptr, &tag);
  2144. switch (tag >> 3)
  2145. {
  2146. // .protobuf.PropType type = 1;
  2147. case 1:
  2148. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  2149. {
  2150. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2151. CHK_(ptr);
  2152. _internal_set_type(static_cast<::protobuf::PropType>(val));
  2153. }
  2154. else
  2155. goto handle_unusual;
  2156. continue;
  2157. // int32 x = 2;
  2158. case 2:
  2159. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  2160. {
  2161. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2162. CHK_(ptr);
  2163. }
  2164. else
  2165. goto handle_unusual;
  2166. continue;
  2167. // int32 y = 3;
  2168. case 3:
  2169. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  2170. {
  2171. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2172. CHK_(ptr);
  2173. }
  2174. else
  2175. goto handle_unusual;
  2176. continue;
  2177. // double facing_direction = 4;
  2178. case 4:
  2179. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33))
  2180. {
  2181. _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  2182. ptr += sizeof(double);
  2183. }
  2184. else
  2185. goto handle_unusual;
  2186. continue;
  2187. // int64 mapping_id = 5;
  2188. case 5:
  2189. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
  2190. {
  2191. _impl_.mapping_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2192. CHK_(ptr);
  2193. }
  2194. else
  2195. goto handle_unusual;
  2196. continue;
  2197. default:
  2198. goto handle_unusual;
  2199. } // switch
  2200. handle_unusual:
  2201. if ((tag == 0) || ((tag & 7) == 4))
  2202. {
  2203. CHK_(ptr);
  2204. ctx->SetLastTag(tag);
  2205. goto message_done;
  2206. }
  2207. ptr = UnknownFieldParse(
  2208. tag,
  2209. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2210. ptr,
  2211. ctx
  2212. );
  2213. CHK_(ptr != nullptr);
  2214. } // while
  2215. message_done:
  2216. return ptr;
  2217. failure:
  2218. ptr = nullptr;
  2219. goto message_done;
  2220. #undef CHK_
  2221. }
  2222. uint8_t* MessageOfPickedProp::_InternalSerialize(
  2223. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  2224. ) const
  2225. {
  2226. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfPickedProp)
  2227. uint32_t cached_has_bits = 0;
  2228. (void)cached_has_bits;
  2229. // .protobuf.PropType type = 1;
  2230. if (this->_internal_type() != 0)
  2231. {
  2232. target = stream->EnsureSpace(target);
  2233. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  2234. 1, this->_internal_type(), target
  2235. );
  2236. }
  2237. // int32 x = 2;
  2238. if (this->_internal_x() != 0)
  2239. {
  2240. target = stream->EnsureSpace(target);
  2241. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target);
  2242. }
  2243. // int32 y = 3;
  2244. if (this->_internal_y() != 0)
  2245. {
  2246. target = stream->EnsureSpace(target);
  2247. target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target);
  2248. }
  2249. // double facing_direction = 4;
  2250. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2251. double tmp_facing_direction = this->_internal_facing_direction();
  2252. uint64_t raw_facing_direction;
  2253. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  2254. if (raw_facing_direction != 0)
  2255. {
  2256. target = stream->EnsureSpace(target);
  2257. target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target);
  2258. }
  2259. // int64 mapping_id = 5;
  2260. if (this->_internal_mapping_id() != 0)
  2261. {
  2262. target = stream->EnsureSpace(target);
  2263. target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_mapping_id(), target);
  2264. }
  2265. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  2266. {
  2267. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2268. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  2269. );
  2270. }
  2271. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfPickedProp)
  2272. return target;
  2273. }
  2274. size_t MessageOfPickedProp::ByteSizeLong() const
  2275. {
  2276. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfPickedProp)
  2277. size_t total_size = 0;
  2278. uint32_t cached_has_bits = 0;
  2279. // Prevent compiler warnings about cached_has_bits being unused
  2280. (void)cached_has_bits;
  2281. // .protobuf.PropType type = 1;
  2282. if (this->_internal_type() != 0)
  2283. {
  2284. total_size += 1 +
  2285. ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
  2286. }
  2287. // int32 x = 2;
  2288. if (this->_internal_x() != 0)
  2289. {
  2290. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
  2291. }
  2292. // double facing_direction = 4;
  2293. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2294. double tmp_facing_direction = this->_internal_facing_direction();
  2295. uint64_t raw_facing_direction;
  2296. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  2297. if (raw_facing_direction != 0)
  2298. {
  2299. total_size += 1 + 8;
  2300. }
  2301. // int64 mapping_id = 5;
  2302. if (this->_internal_mapping_id() != 0)
  2303. {
  2304. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_mapping_id());
  2305. }
  2306. // int32 y = 3;
  2307. if (this->_internal_y() != 0)
  2308. {
  2309. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
  2310. }
  2311. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2312. }
  2313. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfPickedProp::_class_data_ = {
  2314. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  2315. MessageOfPickedProp::MergeImpl};
  2316. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfPickedProp::GetClassData() const
  2317. {
  2318. return &_class_data_;
  2319. }
  2320. void MessageOfPickedProp::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  2321. {
  2322. auto* const _this = static_cast<MessageOfPickedProp*>(&to_msg);
  2323. auto& from = static_cast<const MessageOfPickedProp&>(from_msg);
  2324. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfPickedProp)
  2325. GOOGLE_DCHECK_NE(&from, _this);
  2326. uint32_t cached_has_bits = 0;
  2327. (void)cached_has_bits;
  2328. if (from._internal_type() != 0)
  2329. {
  2330. _this->_internal_set_type(from._internal_type());
  2331. }
  2332. if (from._internal_x() != 0)
  2333. {
  2334. _this->_internal_set_x(from._internal_x());
  2335. }
  2336. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2337. double tmp_facing_direction = from._internal_facing_direction();
  2338. uint64_t raw_facing_direction;
  2339. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  2340. if (raw_facing_direction != 0)
  2341. {
  2342. _this->_internal_set_facing_direction(from._internal_facing_direction());
  2343. }
  2344. if (from._internal_mapping_id() != 0)
  2345. {
  2346. _this->_internal_set_mapping_id(from._internal_mapping_id());
  2347. }
  2348. if (from._internal_y() != 0)
  2349. {
  2350. _this->_internal_set_y(from._internal_y());
  2351. }
  2352. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2353. }
  2354. void MessageOfPickedProp::CopyFrom(const MessageOfPickedProp& from)
  2355. {
  2356. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfPickedProp)
  2357. if (&from == this)
  2358. return;
  2359. Clear();
  2360. MergeFrom(from);
  2361. }
  2362. bool MessageOfPickedProp::IsInitialized() const
  2363. {
  2364. return true;
  2365. }
  2366. void MessageOfPickedProp::InternalSwap(MessageOfPickedProp* other)
  2367. {
  2368. using std::swap;
  2369. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2370. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2371. PROTOBUF_FIELD_OFFSET(MessageOfPickedProp, _impl_.y_) + sizeof(MessageOfPickedProp::_impl_.y_) - PROTOBUF_FIELD_OFFSET(MessageOfPickedProp, _impl_.type_)>(
  2372. reinterpret_cast<char*>(&_impl_.type_),
  2373. reinterpret_cast<char*>(&other->_impl_.type_)
  2374. );
  2375. }
  2376. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfPickedProp::GetMetadata() const
  2377. {
  2378. return ::_pbi::AssignDescriptors(
  2379. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[3]
  2380. );
  2381. }
  2382. // ===================================================================
  2383. class MessageOfMap_Row::_Internal
  2384. {
  2385. public:
  2386. };
  2387. MessageOfMap_Row::MessageOfMap_Row(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  2388. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  2389. {
  2390. SharedCtor(arena, is_message_owned);
  2391. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfMap.Row)
  2392. }
  2393. MessageOfMap_Row::MessageOfMap_Row(const MessageOfMap_Row& from) :
  2394. ::PROTOBUF_NAMESPACE_ID::Message()
  2395. {
  2396. MessageOfMap_Row* const _this = this;
  2397. (void)_this;
  2398. new (&_impl_) Impl_{
  2399. decltype(_impl_.col_){from._impl_.col_}, /*decltype(_impl_._col_cached_byte_size_)*/ {0}, /*decltype(_impl_._cached_size_)*/ {}};
  2400. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2401. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfMap.Row)
  2402. }
  2403. inline void MessageOfMap_Row::SharedCtor(
  2404. ::_pb::Arena* arena, bool is_message_owned
  2405. )
  2406. {
  2407. (void)arena;
  2408. (void)is_message_owned;
  2409. new (&_impl_) Impl_{
  2410. decltype(_impl_.col_){arena}, /*decltype(_impl_._col_cached_byte_size_)*/ {0}, /*decltype(_impl_._cached_size_)*/ {}};
  2411. }
  2412. MessageOfMap_Row::~MessageOfMap_Row()
  2413. {
  2414. // @@protoc_insertion_point(destructor:protobuf.MessageOfMap.Row)
  2415. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  2416. {
  2417. (void)arena;
  2418. return;
  2419. }
  2420. SharedDtor();
  2421. }
  2422. inline void MessageOfMap_Row::SharedDtor()
  2423. {
  2424. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2425. _impl_.col_.~RepeatedField();
  2426. }
  2427. void MessageOfMap_Row::SetCachedSize(int size) const
  2428. {
  2429. _impl_._cached_size_.Set(size);
  2430. }
  2431. void MessageOfMap_Row::Clear()
  2432. {
  2433. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfMap.Row)
  2434. uint32_t cached_has_bits = 0;
  2435. // Prevent compiler warnings about cached_has_bits being unused
  2436. (void)cached_has_bits;
  2437. _impl_.col_.Clear();
  2438. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2439. }
  2440. const char* MessageOfMap_Row::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  2441. {
  2442. #define CHK_(x) \
  2443. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  2444. goto failure
  2445. while (!ctx->Done(&ptr))
  2446. {
  2447. uint32_t tag;
  2448. ptr = ::_pbi::ReadTag(ptr, &tag);
  2449. switch (tag >> 3)
  2450. {
  2451. // repeated .protobuf.PlaceType col = 1;
  2452. case 1:
  2453. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10))
  2454. {
  2455. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_col(), ptr, ctx);
  2456. CHK_(ptr);
  2457. }
  2458. else if (static_cast<uint8_t>(tag) == 8)
  2459. {
  2460. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2461. CHK_(ptr);
  2462. _internal_add_col(static_cast<::protobuf::PlaceType>(val));
  2463. }
  2464. else
  2465. goto handle_unusual;
  2466. continue;
  2467. default:
  2468. goto handle_unusual;
  2469. } // switch
  2470. handle_unusual:
  2471. if ((tag == 0) || ((tag & 7) == 4))
  2472. {
  2473. CHK_(ptr);
  2474. ctx->SetLastTag(tag);
  2475. goto message_done;
  2476. }
  2477. ptr = UnknownFieldParse(
  2478. tag,
  2479. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2480. ptr,
  2481. ctx
  2482. );
  2483. CHK_(ptr != nullptr);
  2484. } // while
  2485. message_done:
  2486. return ptr;
  2487. failure:
  2488. ptr = nullptr;
  2489. goto message_done;
  2490. #undef CHK_
  2491. }
  2492. uint8_t* MessageOfMap_Row::_InternalSerialize(
  2493. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  2494. ) const
  2495. {
  2496. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfMap.Row)
  2497. uint32_t cached_has_bits = 0;
  2498. (void)cached_has_bits;
  2499. // repeated .protobuf.PlaceType col = 1;
  2500. {
  2501. int byte_size = _impl_._col_cached_byte_size_.load(std::memory_order_relaxed);
  2502. if (byte_size > 0)
  2503. {
  2504. target = stream->WriteEnumPacked(
  2505. 1, _impl_.col_, byte_size, target
  2506. );
  2507. }
  2508. }
  2509. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  2510. {
  2511. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2512. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  2513. );
  2514. }
  2515. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfMap.Row)
  2516. return target;
  2517. }
  2518. size_t MessageOfMap_Row::ByteSizeLong() const
  2519. {
  2520. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfMap.Row)
  2521. size_t total_size = 0;
  2522. uint32_t cached_has_bits = 0;
  2523. // Prevent compiler warnings about cached_has_bits being unused
  2524. (void)cached_has_bits;
  2525. // repeated .protobuf.PlaceType col = 1;
  2526. {
  2527. size_t data_size = 0;
  2528. unsigned int count = static_cast<unsigned int>(this->_internal_col_size());
  2529. for (unsigned int i = 0; i < count; i++)
  2530. {
  2531. data_size += ::_pbi::WireFormatLite::EnumSize(
  2532. this->_internal_col(static_cast<int>(i))
  2533. );
  2534. }
  2535. if (data_size > 0)
  2536. {
  2537. total_size += 1 +
  2538. ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
  2539. }
  2540. int cached_size = ::_pbi::ToCachedSize(data_size);
  2541. _impl_._col_cached_byte_size_.store(cached_size, std::memory_order_relaxed);
  2542. total_size += data_size;
  2543. }
  2544. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2545. }
  2546. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfMap_Row::_class_data_ = {
  2547. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  2548. MessageOfMap_Row::MergeImpl};
  2549. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfMap_Row::GetClassData() const
  2550. {
  2551. return &_class_data_;
  2552. }
  2553. void MessageOfMap_Row::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  2554. {
  2555. auto* const _this = static_cast<MessageOfMap_Row*>(&to_msg);
  2556. auto& from = static_cast<const MessageOfMap_Row&>(from_msg);
  2557. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfMap.Row)
  2558. GOOGLE_DCHECK_NE(&from, _this);
  2559. uint32_t cached_has_bits = 0;
  2560. (void)cached_has_bits;
  2561. _this->_impl_.col_.MergeFrom(from._impl_.col_);
  2562. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2563. }
  2564. void MessageOfMap_Row::CopyFrom(const MessageOfMap_Row& from)
  2565. {
  2566. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfMap.Row)
  2567. if (&from == this)
  2568. return;
  2569. Clear();
  2570. MergeFrom(from);
  2571. }
  2572. bool MessageOfMap_Row::IsInitialized() const
  2573. {
  2574. return true;
  2575. }
  2576. void MessageOfMap_Row::InternalSwap(MessageOfMap_Row* other)
  2577. {
  2578. using std::swap;
  2579. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2580. _impl_.col_.InternalSwap(&other->_impl_.col_);
  2581. }
  2582. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfMap_Row::GetMetadata() const
  2583. {
  2584. return ::_pbi::AssignDescriptors(
  2585. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[4]
  2586. );
  2587. }
  2588. // ===================================================================
  2589. class MessageOfMap::_Internal
  2590. {
  2591. public:
  2592. };
  2593. MessageOfMap::MessageOfMap(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  2594. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  2595. {
  2596. SharedCtor(arena, is_message_owned);
  2597. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfMap)
  2598. }
  2599. MessageOfMap::MessageOfMap(const MessageOfMap& from) :
  2600. ::PROTOBUF_NAMESPACE_ID::Message()
  2601. {
  2602. MessageOfMap* const _this = this;
  2603. (void)_this;
  2604. new (&_impl_) Impl_{
  2605. decltype(_impl_.row_){from._impl_.row_}, /*decltype(_impl_._cached_size_)*/ {}};
  2606. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2607. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfMap)
  2608. }
  2609. inline void MessageOfMap::SharedCtor(
  2610. ::_pb::Arena* arena, bool is_message_owned
  2611. )
  2612. {
  2613. (void)arena;
  2614. (void)is_message_owned;
  2615. new (&_impl_) Impl_{
  2616. decltype(_impl_.row_){arena}, /*decltype(_impl_._cached_size_)*/ {}};
  2617. }
  2618. MessageOfMap::~MessageOfMap()
  2619. {
  2620. // @@protoc_insertion_point(destructor:protobuf.MessageOfMap)
  2621. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  2622. {
  2623. (void)arena;
  2624. return;
  2625. }
  2626. SharedDtor();
  2627. }
  2628. inline void MessageOfMap::SharedDtor()
  2629. {
  2630. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2631. _impl_.row_.~RepeatedPtrField();
  2632. }
  2633. void MessageOfMap::SetCachedSize(int size) const
  2634. {
  2635. _impl_._cached_size_.Set(size);
  2636. }
  2637. void MessageOfMap::Clear()
  2638. {
  2639. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfMap)
  2640. uint32_t cached_has_bits = 0;
  2641. // Prevent compiler warnings about cached_has_bits being unused
  2642. (void)cached_has_bits;
  2643. _impl_.row_.Clear();
  2644. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2645. }
  2646. const char* MessageOfMap::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  2647. {
  2648. #define CHK_(x) \
  2649. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  2650. goto failure
  2651. while (!ctx->Done(&ptr))
  2652. {
  2653. uint32_t tag;
  2654. ptr = ::_pbi::ReadTag(ptr, &tag);
  2655. switch (tag >> 3)
  2656. {
  2657. // repeated .protobuf.MessageOfMap.Row row = 2;
  2658. case 2:
  2659. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18))
  2660. {
  2661. ptr -= 1;
  2662. do
  2663. {
  2664. ptr += 1;
  2665. ptr = ctx->ParseMessage(_internal_add_row(), ptr);
  2666. CHK_(ptr);
  2667. if (!ctx->DataAvailable(ptr))
  2668. break;
  2669. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
  2670. }
  2671. else
  2672. goto handle_unusual;
  2673. continue;
  2674. default:
  2675. goto handle_unusual;
  2676. } // switch
  2677. handle_unusual:
  2678. if ((tag == 0) || ((tag & 7) == 4))
  2679. {
  2680. CHK_(ptr);
  2681. ctx->SetLastTag(tag);
  2682. goto message_done;
  2683. }
  2684. ptr = UnknownFieldParse(
  2685. tag,
  2686. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2687. ptr,
  2688. ctx
  2689. );
  2690. CHK_(ptr != nullptr);
  2691. } // while
  2692. message_done:
  2693. return ptr;
  2694. failure:
  2695. ptr = nullptr;
  2696. goto message_done;
  2697. #undef CHK_
  2698. }
  2699. uint8_t* MessageOfMap::_InternalSerialize(
  2700. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  2701. ) const
  2702. {
  2703. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfMap)
  2704. uint32_t cached_has_bits = 0;
  2705. (void)cached_has_bits;
  2706. // repeated .protobuf.MessageOfMap.Row row = 2;
  2707. for (unsigned i = 0,
  2708. n = static_cast<unsigned>(this->_internal_row_size());
  2709. i < n;
  2710. i++)
  2711. {
  2712. const auto& repfield = this->_internal_row(i);
  2713. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2714. InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
  2715. }
  2716. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  2717. {
  2718. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2719. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  2720. );
  2721. }
  2722. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfMap)
  2723. return target;
  2724. }
  2725. size_t MessageOfMap::ByteSizeLong() const
  2726. {
  2727. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfMap)
  2728. size_t total_size = 0;
  2729. uint32_t cached_has_bits = 0;
  2730. // Prevent compiler warnings about cached_has_bits being unused
  2731. (void)cached_has_bits;
  2732. // repeated .protobuf.MessageOfMap.Row row = 2;
  2733. total_size += 1UL * this->_internal_row_size();
  2734. for (const auto& msg : this->_impl_.row_)
  2735. {
  2736. total_size +=
  2737. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  2738. }
  2739. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2740. }
  2741. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfMap::_class_data_ = {
  2742. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  2743. MessageOfMap::MergeImpl};
  2744. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfMap::GetClassData() const
  2745. {
  2746. return &_class_data_;
  2747. }
  2748. void MessageOfMap::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  2749. {
  2750. auto* const _this = static_cast<MessageOfMap*>(&to_msg);
  2751. auto& from = static_cast<const MessageOfMap&>(from_msg);
  2752. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfMap)
  2753. GOOGLE_DCHECK_NE(&from, _this);
  2754. uint32_t cached_has_bits = 0;
  2755. (void)cached_has_bits;
  2756. _this->_impl_.row_.MergeFrom(from._impl_.row_);
  2757. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2758. }
  2759. void MessageOfMap::CopyFrom(const MessageOfMap& from)
  2760. {
  2761. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfMap)
  2762. if (&from == this)
  2763. return;
  2764. Clear();
  2765. MergeFrom(from);
  2766. }
  2767. bool MessageOfMap::IsInitialized() const
  2768. {
  2769. return true;
  2770. }
  2771. void MessageOfMap::InternalSwap(MessageOfMap* other)
  2772. {
  2773. using std::swap;
  2774. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2775. _impl_.row_.InternalSwap(&other->_impl_.row_);
  2776. }
  2777. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfMap::GetMetadata() const
  2778. {
  2779. return ::_pbi::AssignDescriptors(
  2780. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[5]
  2781. );
  2782. }
  2783. // ===================================================================
  2784. class MessageToClient::_Internal
  2785. {
  2786. public:
  2787. static const ::protobuf::MessageOfMap& map_message(const MessageToClient* msg);
  2788. };
  2789. const ::protobuf::MessageOfMap&
  2790. MessageToClient::_Internal::map_message(const MessageToClient* msg)
  2791. {
  2792. return *msg->_impl_.map_message_;
  2793. }
  2794. MessageToClient::MessageToClient(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  2795. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  2796. {
  2797. SharedCtor(arena, is_message_owned);
  2798. // @@protoc_insertion_point(arena_constructor:protobuf.MessageToClient)
  2799. }
  2800. MessageToClient::MessageToClient(const MessageToClient& from) :
  2801. ::PROTOBUF_NAMESPACE_ID::Message()
  2802. {
  2803. MessageToClient* const _this = this;
  2804. (void)_this;
  2805. new (&_impl_) Impl_{
  2806. decltype(_impl_.student_message_){from._impl_.student_message_}, decltype(_impl_.tricker_message_){from._impl_.tricker_message_}, decltype(_impl_.prop_message_){from._impl_.prop_message_}, decltype(_impl_.map_message_){nullptr}, decltype(_impl_.game_state_){}, /*decltype(_impl_._cached_size_)*/ {}};
  2807. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2808. if (from._internal_has_map_message())
  2809. {
  2810. _this->_impl_.map_message_ = new ::protobuf::MessageOfMap(*from._impl_.map_message_);
  2811. }
  2812. _this->_impl_.game_state_ = from._impl_.game_state_;
  2813. // @@protoc_insertion_point(copy_constructor:protobuf.MessageToClient)
  2814. }
  2815. inline void MessageToClient::SharedCtor(
  2816. ::_pb::Arena* arena, bool is_message_owned
  2817. )
  2818. {
  2819. (void)arena;
  2820. (void)is_message_owned;
  2821. new (&_impl_) Impl_{
  2822. decltype(_impl_.student_message_){arena}, decltype(_impl_.tricker_message_){arena}, decltype(_impl_.prop_message_){arena}, decltype(_impl_.map_message_){nullptr}, decltype(_impl_.game_state_){0}, /*decltype(_impl_._cached_size_)*/ {}};
  2823. }
  2824. MessageToClient::~MessageToClient()
  2825. {
  2826. // @@protoc_insertion_point(destructor:protobuf.MessageToClient)
  2827. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  2828. {
  2829. (void)arena;
  2830. return;
  2831. }
  2832. SharedDtor();
  2833. }
  2834. inline void MessageToClient::SharedDtor()
  2835. {
  2836. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2837. _impl_.student_message_.~RepeatedPtrField();
  2838. _impl_.tricker_message_.~RepeatedPtrField();
  2839. _impl_.prop_message_.~RepeatedPtrField();
  2840. if (this != internal_default_instance())
  2841. delete _impl_.map_message_;
  2842. }
  2843. void MessageToClient::SetCachedSize(int size) const
  2844. {
  2845. _impl_._cached_size_.Set(size);
  2846. }
  2847. void MessageToClient::Clear()
  2848. {
  2849. // @@protoc_insertion_point(message_clear_start:protobuf.MessageToClient)
  2850. uint32_t cached_has_bits = 0;
  2851. // Prevent compiler warnings about cached_has_bits being unused
  2852. (void)cached_has_bits;
  2853. _impl_.student_message_.Clear();
  2854. _impl_.tricker_message_.Clear();
  2855. _impl_.prop_message_.Clear();
  2856. if (GetArenaForAllocation() == nullptr && _impl_.map_message_ != nullptr)
  2857. {
  2858. delete _impl_.map_message_;
  2859. }
  2860. _impl_.map_message_ = nullptr;
  2861. _impl_.game_state_ = 0;
  2862. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2863. }
  2864. const char* MessageToClient::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  2865. {
  2866. #define CHK_(x) \
  2867. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  2868. goto failure
  2869. while (!ctx->Done(&ptr))
  2870. {
  2871. uint32_t tag;
  2872. ptr = ::_pbi::ReadTag(ptr, &tag);
  2873. switch (tag >> 3)
  2874. {
  2875. // repeated .protobuf.MessageOfStudent student_message = 1;
  2876. case 1:
  2877. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10))
  2878. {
  2879. ptr -= 1;
  2880. do
  2881. {
  2882. ptr += 1;
  2883. ptr = ctx->ParseMessage(_internal_add_student_message(), ptr);
  2884. CHK_(ptr);
  2885. if (!ctx->DataAvailable(ptr))
  2886. break;
  2887. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  2888. }
  2889. else
  2890. goto handle_unusual;
  2891. continue;
  2892. // repeated .protobuf.MessageOfTricker tricker_message = 2;
  2893. case 2:
  2894. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18))
  2895. {
  2896. ptr -= 1;
  2897. do
  2898. {
  2899. ptr += 1;
  2900. ptr = ctx->ParseMessage(_internal_add_tricker_message(), ptr);
  2901. CHK_(ptr);
  2902. if (!ctx->DataAvailable(ptr))
  2903. break;
  2904. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
  2905. }
  2906. else
  2907. goto handle_unusual;
  2908. continue;
  2909. // repeated .protobuf.MessageOfProp prop_message = 3;
  2910. case 3:
  2911. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26))
  2912. {
  2913. ptr -= 1;
  2914. do
  2915. {
  2916. ptr += 1;
  2917. ptr = ctx->ParseMessage(_internal_add_prop_message(), ptr);
  2918. CHK_(ptr);
  2919. if (!ctx->DataAvailable(ptr))
  2920. break;
  2921. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
  2922. }
  2923. else
  2924. goto handle_unusual;
  2925. continue;
  2926. // .protobuf.MessageOfMap map_message = 4;
  2927. case 4:
  2928. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34))
  2929. {
  2930. ptr = ctx->ParseMessage(_internal_mutable_map_message(), ptr);
  2931. CHK_(ptr);
  2932. }
  2933. else
  2934. goto handle_unusual;
  2935. continue;
  2936. // .protobuf.GameState game_state = 5;
  2937. case 5:
  2938. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
  2939. {
  2940. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2941. CHK_(ptr);
  2942. _internal_set_game_state(static_cast<::protobuf::GameState>(val));
  2943. }
  2944. else
  2945. goto handle_unusual;
  2946. continue;
  2947. default:
  2948. goto handle_unusual;
  2949. } // switch
  2950. handle_unusual:
  2951. if ((tag == 0) || ((tag & 7) == 4))
  2952. {
  2953. CHK_(ptr);
  2954. ctx->SetLastTag(tag);
  2955. goto message_done;
  2956. }
  2957. ptr = UnknownFieldParse(
  2958. tag,
  2959. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2960. ptr,
  2961. ctx
  2962. );
  2963. CHK_(ptr != nullptr);
  2964. } // while
  2965. message_done:
  2966. return ptr;
  2967. failure:
  2968. ptr = nullptr;
  2969. goto message_done;
  2970. #undef CHK_
  2971. }
  2972. uint8_t* MessageToClient::_InternalSerialize(
  2973. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  2974. ) const
  2975. {
  2976. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageToClient)
  2977. uint32_t cached_has_bits = 0;
  2978. (void)cached_has_bits;
  2979. // repeated .protobuf.MessageOfStudent student_message = 1;
  2980. for (unsigned i = 0,
  2981. n = static_cast<unsigned>(this->_internal_student_message_size());
  2982. i < n;
  2983. i++)
  2984. {
  2985. const auto& repfield = this->_internal_student_message(i);
  2986. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2987. InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
  2988. }
  2989. // repeated .protobuf.MessageOfTricker tricker_message = 2;
  2990. for (unsigned i = 0,
  2991. n = static_cast<unsigned>(this->_internal_tricker_message_size());
  2992. i < n;
  2993. i++)
  2994. {
  2995. const auto& repfield = this->_internal_tricker_message(i);
  2996. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2997. InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
  2998. }
  2999. // repeated .protobuf.MessageOfProp prop_message = 3;
  3000. for (unsigned i = 0,
  3001. n = static_cast<unsigned>(this->_internal_prop_message_size());
  3002. i < n;
  3003. i++)
  3004. {
  3005. const auto& repfield = this->_internal_prop_message(i);
  3006. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3007. InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream);
  3008. }
  3009. // .protobuf.MessageOfMap map_message = 4;
  3010. if (this->_internal_has_map_message())
  3011. {
  3012. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3013. InternalWriteMessage(4, _Internal::map_message(this), _Internal::map_message(this).GetCachedSize(), target, stream);
  3014. }
  3015. // .protobuf.GameState game_state = 5;
  3016. if (this->_internal_game_state() != 0)
  3017. {
  3018. target = stream->EnsureSpace(target);
  3019. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  3020. 5, this->_internal_game_state(), target
  3021. );
  3022. }
  3023. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  3024. {
  3025. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3026. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  3027. );
  3028. }
  3029. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageToClient)
  3030. return target;
  3031. }
  3032. size_t MessageToClient::ByteSizeLong() const
  3033. {
  3034. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageToClient)
  3035. size_t total_size = 0;
  3036. uint32_t cached_has_bits = 0;
  3037. // Prevent compiler warnings about cached_has_bits being unused
  3038. (void)cached_has_bits;
  3039. // repeated .protobuf.MessageOfStudent student_message = 1;
  3040. total_size += 1UL * this->_internal_student_message_size();
  3041. for (const auto& msg : this->_impl_.student_message_)
  3042. {
  3043. total_size +=
  3044. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  3045. }
  3046. // repeated .protobuf.MessageOfTricker tricker_message = 2;
  3047. total_size += 1UL * this->_internal_tricker_message_size();
  3048. for (const auto& msg : this->_impl_.tricker_message_)
  3049. {
  3050. total_size +=
  3051. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  3052. }
  3053. // repeated .protobuf.MessageOfProp prop_message = 3;
  3054. total_size += 1UL * this->_internal_prop_message_size();
  3055. for (const auto& msg : this->_impl_.prop_message_)
  3056. {
  3057. total_size +=
  3058. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  3059. }
  3060. // .protobuf.MessageOfMap map_message = 4;
  3061. if (this->_internal_has_map_message())
  3062. {
  3063. total_size += 1 +
  3064. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  3065. *_impl_.map_message_
  3066. );
  3067. }
  3068. // .protobuf.GameState game_state = 5;
  3069. if (this->_internal_game_state() != 0)
  3070. {
  3071. total_size += 1 +
  3072. ::_pbi::WireFormatLite::EnumSize(this->_internal_game_state());
  3073. }
  3074. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3075. }
  3076. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageToClient::_class_data_ = {
  3077. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  3078. MessageToClient::MergeImpl};
  3079. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageToClient::GetClassData() const
  3080. {
  3081. return &_class_data_;
  3082. }
  3083. void MessageToClient::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  3084. {
  3085. auto* const _this = static_cast<MessageToClient*>(&to_msg);
  3086. auto& from = static_cast<const MessageToClient&>(from_msg);
  3087. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageToClient)
  3088. GOOGLE_DCHECK_NE(&from, _this);
  3089. uint32_t cached_has_bits = 0;
  3090. (void)cached_has_bits;
  3091. _this->_impl_.student_message_.MergeFrom(from._impl_.student_message_);
  3092. _this->_impl_.tricker_message_.MergeFrom(from._impl_.tricker_message_);
  3093. _this->_impl_.prop_message_.MergeFrom(from._impl_.prop_message_);
  3094. if (from._internal_has_map_message())
  3095. {
  3096. _this->_internal_mutable_map_message()->::protobuf::MessageOfMap::MergeFrom(
  3097. from._internal_map_message()
  3098. );
  3099. }
  3100. if (from._internal_game_state() != 0)
  3101. {
  3102. _this->_internal_set_game_state(from._internal_game_state());
  3103. }
  3104. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3105. }
  3106. void MessageToClient::CopyFrom(const MessageToClient& from)
  3107. {
  3108. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageToClient)
  3109. if (&from == this)
  3110. return;
  3111. Clear();
  3112. MergeFrom(from);
  3113. }
  3114. bool MessageToClient::IsInitialized() const
  3115. {
  3116. return true;
  3117. }
  3118. void MessageToClient::InternalSwap(MessageToClient* other)
  3119. {
  3120. using std::swap;
  3121. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3122. _impl_.student_message_.InternalSwap(&other->_impl_.student_message_);
  3123. _impl_.tricker_message_.InternalSwap(&other->_impl_.tricker_message_);
  3124. _impl_.prop_message_.InternalSwap(&other->_impl_.prop_message_);
  3125. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3126. PROTOBUF_FIELD_OFFSET(MessageToClient, _impl_.game_state_) + sizeof(MessageToClient::_impl_.game_state_) - PROTOBUF_FIELD_OFFSET(MessageToClient, _impl_.map_message_)>(
  3127. reinterpret_cast<char*>(&_impl_.map_message_),
  3128. reinterpret_cast<char*>(&other->_impl_.map_message_)
  3129. );
  3130. }
  3131. ::PROTOBUF_NAMESPACE_ID::Metadata MessageToClient::GetMetadata() const
  3132. {
  3133. return ::_pbi::AssignDescriptors(
  3134. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[6]
  3135. );
  3136. }
  3137. // ===================================================================
  3138. class MoveRes::_Internal
  3139. {
  3140. public:
  3141. };
  3142. MoveRes::MoveRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  3143. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  3144. {
  3145. SharedCtor(arena, is_message_owned);
  3146. // @@protoc_insertion_point(arena_constructor:protobuf.MoveRes)
  3147. }
  3148. MoveRes::MoveRes(const MoveRes& from) :
  3149. ::PROTOBUF_NAMESPACE_ID::Message()
  3150. {
  3151. MoveRes* const _this = this;
  3152. (void)_this;
  3153. new (&_impl_) Impl_{
  3154. decltype(_impl_.actual_speed_){}, decltype(_impl_.actual_angle_){}, decltype(_impl_.act_success_){}, /*decltype(_impl_._cached_size_)*/ {}};
  3155. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3156. ::memcpy(&_impl_.actual_speed_, &from._impl_.actual_speed_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.act_success_) - reinterpret_cast<char*>(&_impl_.actual_speed_)) + sizeof(_impl_.act_success_));
  3157. // @@protoc_insertion_point(copy_constructor:protobuf.MoveRes)
  3158. }
  3159. inline void MoveRes::SharedCtor(
  3160. ::_pb::Arena* arena, bool is_message_owned
  3161. )
  3162. {
  3163. (void)arena;
  3164. (void)is_message_owned;
  3165. new (&_impl_) Impl_{
  3166. decltype(_impl_.actual_speed_){int64_t{0}}, decltype(_impl_.actual_angle_){0}, decltype(_impl_.act_success_){false}, /*decltype(_impl_._cached_size_)*/ {}};
  3167. }
  3168. MoveRes::~MoveRes()
  3169. {
  3170. // @@protoc_insertion_point(destructor:protobuf.MoveRes)
  3171. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  3172. {
  3173. (void)arena;
  3174. return;
  3175. }
  3176. SharedDtor();
  3177. }
  3178. inline void MoveRes::SharedDtor()
  3179. {
  3180. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3181. }
  3182. void MoveRes::SetCachedSize(int size) const
  3183. {
  3184. _impl_._cached_size_.Set(size);
  3185. }
  3186. void MoveRes::Clear()
  3187. {
  3188. // @@protoc_insertion_point(message_clear_start:protobuf.MoveRes)
  3189. uint32_t cached_has_bits = 0;
  3190. // Prevent compiler warnings about cached_has_bits being unused
  3191. (void)cached_has_bits;
  3192. ::memset(&_impl_.actual_speed_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.act_success_) - reinterpret_cast<char*>(&_impl_.actual_speed_)) + sizeof(_impl_.act_success_));
  3193. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3194. }
  3195. const char* MoveRes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  3196. {
  3197. #define CHK_(x) \
  3198. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  3199. goto failure
  3200. while (!ctx->Done(&ptr))
  3201. {
  3202. uint32_t tag;
  3203. ptr = ::_pbi::ReadTag(ptr, &tag);
  3204. switch (tag >> 3)
  3205. {
  3206. // int64 actual_speed = 1;
  3207. case 1:
  3208. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  3209. {
  3210. _impl_.actual_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3211. CHK_(ptr);
  3212. }
  3213. else
  3214. goto handle_unusual;
  3215. continue;
  3216. // double actual_angle = 2;
  3217. case 2:
  3218. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17))
  3219. {
  3220. _impl_.actual_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  3221. ptr += sizeof(double);
  3222. }
  3223. else
  3224. goto handle_unusual;
  3225. continue;
  3226. // bool act_success = 3;
  3227. case 3:
  3228. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  3229. {
  3230. _impl_.act_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3231. CHK_(ptr);
  3232. }
  3233. else
  3234. goto handle_unusual;
  3235. continue;
  3236. default:
  3237. goto handle_unusual;
  3238. } // switch
  3239. handle_unusual:
  3240. if ((tag == 0) || ((tag & 7) == 4))
  3241. {
  3242. CHK_(ptr);
  3243. ctx->SetLastTag(tag);
  3244. goto message_done;
  3245. }
  3246. ptr = UnknownFieldParse(
  3247. tag,
  3248. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3249. ptr,
  3250. ctx
  3251. );
  3252. CHK_(ptr != nullptr);
  3253. } // while
  3254. message_done:
  3255. return ptr;
  3256. failure:
  3257. ptr = nullptr;
  3258. goto message_done;
  3259. #undef CHK_
  3260. }
  3261. uint8_t* MoveRes::_InternalSerialize(
  3262. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  3263. ) const
  3264. {
  3265. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MoveRes)
  3266. uint32_t cached_has_bits = 0;
  3267. (void)cached_has_bits;
  3268. // int64 actual_speed = 1;
  3269. if (this->_internal_actual_speed() != 0)
  3270. {
  3271. target = stream->EnsureSpace(target);
  3272. target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_actual_speed(), target);
  3273. }
  3274. // double actual_angle = 2;
  3275. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  3276. double tmp_actual_angle = this->_internal_actual_angle();
  3277. uint64_t raw_actual_angle;
  3278. memcpy(&raw_actual_angle, &tmp_actual_angle, sizeof(tmp_actual_angle));
  3279. if (raw_actual_angle != 0)
  3280. {
  3281. target = stream->EnsureSpace(target);
  3282. target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_actual_angle(), target);
  3283. }
  3284. // bool act_success = 3;
  3285. if (this->_internal_act_success() != 0)
  3286. {
  3287. target = stream->EnsureSpace(target);
  3288. target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_act_success(), target);
  3289. }
  3290. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  3291. {
  3292. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3293. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  3294. );
  3295. }
  3296. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MoveRes)
  3297. return target;
  3298. }
  3299. size_t MoveRes::ByteSizeLong() const
  3300. {
  3301. // @@protoc_insertion_point(message_byte_size_start:protobuf.MoveRes)
  3302. size_t total_size = 0;
  3303. uint32_t cached_has_bits = 0;
  3304. // Prevent compiler warnings about cached_has_bits being unused
  3305. (void)cached_has_bits;
  3306. // int64 actual_speed = 1;
  3307. if (this->_internal_actual_speed() != 0)
  3308. {
  3309. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_actual_speed());
  3310. }
  3311. // double actual_angle = 2;
  3312. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  3313. double tmp_actual_angle = this->_internal_actual_angle();
  3314. uint64_t raw_actual_angle;
  3315. memcpy(&raw_actual_angle, &tmp_actual_angle, sizeof(tmp_actual_angle));
  3316. if (raw_actual_angle != 0)
  3317. {
  3318. total_size += 1 + 8;
  3319. }
  3320. // bool act_success = 3;
  3321. if (this->_internal_act_success() != 0)
  3322. {
  3323. total_size += 1 + 1;
  3324. }
  3325. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3326. }
  3327. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveRes::_class_data_ = {
  3328. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  3329. MoveRes::MergeImpl};
  3330. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MoveRes::GetClassData() const
  3331. {
  3332. return &_class_data_;
  3333. }
  3334. void MoveRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  3335. {
  3336. auto* const _this = static_cast<MoveRes*>(&to_msg);
  3337. auto& from = static_cast<const MoveRes&>(from_msg);
  3338. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MoveRes)
  3339. GOOGLE_DCHECK_NE(&from, _this);
  3340. uint32_t cached_has_bits = 0;
  3341. (void)cached_has_bits;
  3342. if (from._internal_actual_speed() != 0)
  3343. {
  3344. _this->_internal_set_actual_speed(from._internal_actual_speed());
  3345. }
  3346. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  3347. double tmp_actual_angle = from._internal_actual_angle();
  3348. uint64_t raw_actual_angle;
  3349. memcpy(&raw_actual_angle, &tmp_actual_angle, sizeof(tmp_actual_angle));
  3350. if (raw_actual_angle != 0)
  3351. {
  3352. _this->_internal_set_actual_angle(from._internal_actual_angle());
  3353. }
  3354. if (from._internal_act_success() != 0)
  3355. {
  3356. _this->_internal_set_act_success(from._internal_act_success());
  3357. }
  3358. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3359. }
  3360. void MoveRes::CopyFrom(const MoveRes& from)
  3361. {
  3362. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MoveRes)
  3363. if (&from == this)
  3364. return;
  3365. Clear();
  3366. MergeFrom(from);
  3367. }
  3368. bool MoveRes::IsInitialized() const
  3369. {
  3370. return true;
  3371. }
  3372. void MoveRes::InternalSwap(MoveRes* other)
  3373. {
  3374. using std::swap;
  3375. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3376. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3377. PROTOBUF_FIELD_OFFSET(MoveRes, _impl_.act_success_) + sizeof(MoveRes::_impl_.act_success_) - PROTOBUF_FIELD_OFFSET(MoveRes, _impl_.actual_speed_)>(
  3378. reinterpret_cast<char*>(&_impl_.actual_speed_),
  3379. reinterpret_cast<char*>(&other->_impl_.actual_speed_)
  3380. );
  3381. }
  3382. ::PROTOBUF_NAMESPACE_ID::Metadata MoveRes::GetMetadata() const
  3383. {
  3384. return ::_pbi::AssignDescriptors(
  3385. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[7]
  3386. );
  3387. }
  3388. // ===================================================================
  3389. class BoolRes::_Internal
  3390. {
  3391. public:
  3392. };
  3393. BoolRes::BoolRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  3394. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  3395. {
  3396. SharedCtor(arena, is_message_owned);
  3397. // @@protoc_insertion_point(arena_constructor:protobuf.BoolRes)
  3398. }
  3399. BoolRes::BoolRes(const BoolRes& from) :
  3400. ::PROTOBUF_NAMESPACE_ID::Message()
  3401. {
  3402. BoolRes* const _this = this;
  3403. (void)_this;
  3404. new (&_impl_) Impl_{
  3405. decltype(_impl_.act_success_){}, /*decltype(_impl_._cached_size_)*/ {}};
  3406. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3407. _this->_impl_.act_success_ = from._impl_.act_success_;
  3408. // @@protoc_insertion_point(copy_constructor:protobuf.BoolRes)
  3409. }
  3410. inline void BoolRes::SharedCtor(
  3411. ::_pb::Arena* arena, bool is_message_owned
  3412. )
  3413. {
  3414. (void)arena;
  3415. (void)is_message_owned;
  3416. new (&_impl_) Impl_{
  3417. decltype(_impl_.act_success_){false}, /*decltype(_impl_._cached_size_)*/ {}};
  3418. }
  3419. BoolRes::~BoolRes()
  3420. {
  3421. // @@protoc_insertion_point(destructor:protobuf.BoolRes)
  3422. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  3423. {
  3424. (void)arena;
  3425. return;
  3426. }
  3427. SharedDtor();
  3428. }
  3429. inline void BoolRes::SharedDtor()
  3430. {
  3431. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3432. }
  3433. void BoolRes::SetCachedSize(int size) const
  3434. {
  3435. _impl_._cached_size_.Set(size);
  3436. }
  3437. void BoolRes::Clear()
  3438. {
  3439. // @@protoc_insertion_point(message_clear_start:protobuf.BoolRes)
  3440. uint32_t cached_has_bits = 0;
  3441. // Prevent compiler warnings about cached_has_bits being unused
  3442. (void)cached_has_bits;
  3443. _impl_.act_success_ = false;
  3444. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3445. }
  3446. const char* BoolRes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  3447. {
  3448. #define CHK_(x) \
  3449. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  3450. goto failure
  3451. while (!ctx->Done(&ptr))
  3452. {
  3453. uint32_t tag;
  3454. ptr = ::_pbi::ReadTag(ptr, &tag);
  3455. switch (tag >> 3)
  3456. {
  3457. // bool act_success = 1;
  3458. case 1:
  3459. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  3460. {
  3461. _impl_.act_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3462. CHK_(ptr);
  3463. }
  3464. else
  3465. goto handle_unusual;
  3466. continue;
  3467. default:
  3468. goto handle_unusual;
  3469. } // switch
  3470. handle_unusual:
  3471. if ((tag == 0) || ((tag & 7) == 4))
  3472. {
  3473. CHK_(ptr);
  3474. ctx->SetLastTag(tag);
  3475. goto message_done;
  3476. }
  3477. ptr = UnknownFieldParse(
  3478. tag,
  3479. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3480. ptr,
  3481. ctx
  3482. );
  3483. CHK_(ptr != nullptr);
  3484. } // while
  3485. message_done:
  3486. return ptr;
  3487. failure:
  3488. ptr = nullptr;
  3489. goto message_done;
  3490. #undef CHK_
  3491. }
  3492. uint8_t* BoolRes::_InternalSerialize(
  3493. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  3494. ) const
  3495. {
  3496. // @@protoc_insertion_point(serialize_to_array_start:protobuf.BoolRes)
  3497. uint32_t cached_has_bits = 0;
  3498. (void)cached_has_bits;
  3499. // bool act_success = 1;
  3500. if (this->_internal_act_success() != 0)
  3501. {
  3502. target = stream->EnsureSpace(target);
  3503. target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_act_success(), target);
  3504. }
  3505. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  3506. {
  3507. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3508. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  3509. );
  3510. }
  3511. // @@protoc_insertion_point(serialize_to_array_end:protobuf.BoolRes)
  3512. return target;
  3513. }
  3514. size_t BoolRes::ByteSizeLong() const
  3515. {
  3516. // @@protoc_insertion_point(message_byte_size_start:protobuf.BoolRes)
  3517. size_t total_size = 0;
  3518. uint32_t cached_has_bits = 0;
  3519. // Prevent compiler warnings about cached_has_bits being unused
  3520. (void)cached_has_bits;
  3521. // bool act_success = 1;
  3522. if (this->_internal_act_success() != 0)
  3523. {
  3524. total_size += 1 + 1;
  3525. }
  3526. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3527. }
  3528. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BoolRes::_class_data_ = {
  3529. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  3530. BoolRes::MergeImpl};
  3531. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* BoolRes::GetClassData() const
  3532. {
  3533. return &_class_data_;
  3534. }
  3535. void BoolRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  3536. {
  3537. auto* const _this = static_cast<BoolRes*>(&to_msg);
  3538. auto& from = static_cast<const BoolRes&>(from_msg);
  3539. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.BoolRes)
  3540. GOOGLE_DCHECK_NE(&from, _this);
  3541. uint32_t cached_has_bits = 0;
  3542. (void)cached_has_bits;
  3543. if (from._internal_act_success() != 0)
  3544. {
  3545. _this->_internal_set_act_success(from._internal_act_success());
  3546. }
  3547. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3548. }
  3549. void BoolRes::CopyFrom(const BoolRes& from)
  3550. {
  3551. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.BoolRes)
  3552. if (&from == this)
  3553. return;
  3554. Clear();
  3555. MergeFrom(from);
  3556. }
  3557. bool BoolRes::IsInitialized() const
  3558. {
  3559. return true;
  3560. }
  3561. void BoolRes::InternalSwap(BoolRes* other)
  3562. {
  3563. using std::swap;
  3564. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3565. swap(_impl_.act_success_, other->_impl_.act_success_);
  3566. }
  3567. ::PROTOBUF_NAMESPACE_ID::Metadata BoolRes::GetMetadata() const
  3568. {
  3569. return ::_pbi::AssignDescriptors(
  3570. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[8]
  3571. );
  3572. }
  3573. // ===================================================================
  3574. class MsgRes::_Internal
  3575. {
  3576. public:
  3577. };
  3578. MsgRes::MsgRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  3579. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  3580. {
  3581. SharedCtor(arena, is_message_owned);
  3582. // @@protoc_insertion_point(arena_constructor:protobuf.MsgRes)
  3583. }
  3584. MsgRes::MsgRes(const MsgRes& from) :
  3585. ::PROTOBUF_NAMESPACE_ID::Message()
  3586. {
  3587. MsgRes* const _this = this;
  3588. (void)_this;
  3589. new (&_impl_) Impl_{
  3590. decltype(_impl_.message_received_){}, decltype(_impl_.from_player_id_){}, decltype(_impl_.have_message_){}, /*decltype(_impl_._cached_size_)*/ {}};
  3591. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3592. _impl_.message_received_.InitDefault();
  3593. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3594. _impl_.message_received_.Set("", GetArenaForAllocation());
  3595. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3596. if (!from._internal_message_received().empty())
  3597. {
  3598. _this->_impl_.message_received_.Set(from._internal_message_received(), _this->GetArenaForAllocation());
  3599. }
  3600. ::memcpy(&_impl_.from_player_id_, &from._impl_.from_player_id_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.have_message_) - reinterpret_cast<char*>(&_impl_.from_player_id_)) + sizeof(_impl_.have_message_));
  3601. // @@protoc_insertion_point(copy_constructor:protobuf.MsgRes)
  3602. }
  3603. inline void MsgRes::SharedCtor(
  3604. ::_pb::Arena* arena, bool is_message_owned
  3605. )
  3606. {
  3607. (void)arena;
  3608. (void)is_message_owned;
  3609. new (&_impl_) Impl_{
  3610. decltype(_impl_.message_received_){}, decltype(_impl_.from_player_id_){int64_t{0}}, decltype(_impl_.have_message_){false}, /*decltype(_impl_._cached_size_)*/ {}};
  3611. _impl_.message_received_.InitDefault();
  3612. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3613. _impl_.message_received_.Set("", GetArenaForAllocation());
  3614. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3615. }
  3616. MsgRes::~MsgRes()
  3617. {
  3618. // @@protoc_insertion_point(destructor:protobuf.MsgRes)
  3619. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  3620. {
  3621. (void)arena;
  3622. return;
  3623. }
  3624. SharedDtor();
  3625. }
  3626. inline void MsgRes::SharedDtor()
  3627. {
  3628. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3629. _impl_.message_received_.Destroy();
  3630. }
  3631. void MsgRes::SetCachedSize(int size) const
  3632. {
  3633. _impl_._cached_size_.Set(size);
  3634. }
  3635. void MsgRes::Clear()
  3636. {
  3637. // @@protoc_insertion_point(message_clear_start:protobuf.MsgRes)
  3638. uint32_t cached_has_bits = 0;
  3639. // Prevent compiler warnings about cached_has_bits being unused
  3640. (void)cached_has_bits;
  3641. _impl_.message_received_.ClearToEmpty();
  3642. ::memset(&_impl_.from_player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.have_message_) - reinterpret_cast<char*>(&_impl_.from_player_id_)) + sizeof(_impl_.have_message_));
  3643. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3644. }
  3645. const char* MsgRes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  3646. {
  3647. #define CHK_(x) \
  3648. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  3649. goto failure
  3650. while (!ctx->Done(&ptr))
  3651. {
  3652. uint32_t tag;
  3653. ptr = ::_pbi::ReadTag(ptr, &tag);
  3654. switch (tag >> 3)
  3655. {
  3656. // bool have_message = 1;
  3657. case 1:
  3658. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  3659. {
  3660. _impl_.have_message_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3661. CHK_(ptr);
  3662. }
  3663. else
  3664. goto handle_unusual;
  3665. continue;
  3666. // int64 from_player_id = 2;
  3667. case 2:
  3668. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  3669. {
  3670. _impl_.from_player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3671. CHK_(ptr);
  3672. }
  3673. else
  3674. goto handle_unusual;
  3675. continue;
  3676. // string message_received = 3;
  3677. case 3:
  3678. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26))
  3679. {
  3680. auto str = _internal_mutable_message_received();
  3681. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  3682. CHK_(ptr);
  3683. CHK_(::_pbi::VerifyUTF8(str, "protobuf.MsgRes.message_received"));
  3684. }
  3685. else
  3686. goto handle_unusual;
  3687. continue;
  3688. default:
  3689. goto handle_unusual;
  3690. } // switch
  3691. handle_unusual:
  3692. if ((tag == 0) || ((tag & 7) == 4))
  3693. {
  3694. CHK_(ptr);
  3695. ctx->SetLastTag(tag);
  3696. goto message_done;
  3697. }
  3698. ptr = UnknownFieldParse(
  3699. tag,
  3700. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3701. ptr,
  3702. ctx
  3703. );
  3704. CHK_(ptr != nullptr);
  3705. } // while
  3706. message_done:
  3707. return ptr;
  3708. failure:
  3709. ptr = nullptr;
  3710. goto message_done;
  3711. #undef CHK_
  3712. }
  3713. uint8_t* MsgRes::_InternalSerialize(
  3714. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  3715. ) const
  3716. {
  3717. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MsgRes)
  3718. uint32_t cached_has_bits = 0;
  3719. (void)cached_has_bits;
  3720. // bool have_message = 1;
  3721. if (this->_internal_have_message() != 0)
  3722. {
  3723. target = stream->EnsureSpace(target);
  3724. target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_have_message(), target);
  3725. }
  3726. // int64 from_player_id = 2;
  3727. if (this->_internal_from_player_id() != 0)
  3728. {
  3729. target = stream->EnsureSpace(target);
  3730. target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_from_player_id(), target);
  3731. }
  3732. // string message_received = 3;
  3733. if (!this->_internal_message_received().empty())
  3734. {
  3735. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3736. this->_internal_message_received().data(), static_cast<int>(this->_internal_message_received().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protobuf.MsgRes.message_received"
  3737. );
  3738. target = stream->WriteStringMaybeAliased(
  3739. 3, this->_internal_message_received(), target
  3740. );
  3741. }
  3742. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  3743. {
  3744. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3745. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  3746. );
  3747. }
  3748. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MsgRes)
  3749. return target;
  3750. }
  3751. size_t MsgRes::ByteSizeLong() const
  3752. {
  3753. // @@protoc_insertion_point(message_byte_size_start:protobuf.MsgRes)
  3754. size_t total_size = 0;
  3755. uint32_t cached_has_bits = 0;
  3756. // Prevent compiler warnings about cached_has_bits being unused
  3757. (void)cached_has_bits;
  3758. // string message_received = 3;
  3759. if (!this->_internal_message_received().empty())
  3760. {
  3761. total_size += 1 +
  3762. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3763. this->_internal_message_received()
  3764. );
  3765. }
  3766. // int64 from_player_id = 2;
  3767. if (this->_internal_from_player_id() != 0)
  3768. {
  3769. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_from_player_id());
  3770. }
  3771. // bool have_message = 1;
  3772. if (this->_internal_have_message() != 0)
  3773. {
  3774. total_size += 1 + 1;
  3775. }
  3776. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3777. }
  3778. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MsgRes::_class_data_ = {
  3779. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  3780. MsgRes::MergeImpl};
  3781. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MsgRes::GetClassData() const
  3782. {
  3783. return &_class_data_;
  3784. }
  3785. void MsgRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  3786. {
  3787. auto* const _this = static_cast<MsgRes*>(&to_msg);
  3788. auto& from = static_cast<const MsgRes&>(from_msg);
  3789. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MsgRes)
  3790. GOOGLE_DCHECK_NE(&from, _this);
  3791. uint32_t cached_has_bits = 0;
  3792. (void)cached_has_bits;
  3793. if (!from._internal_message_received().empty())
  3794. {
  3795. _this->_internal_set_message_received(from._internal_message_received());
  3796. }
  3797. if (from._internal_from_player_id() != 0)
  3798. {
  3799. _this->_internal_set_from_player_id(from._internal_from_player_id());
  3800. }
  3801. if (from._internal_have_message() != 0)
  3802. {
  3803. _this->_internal_set_have_message(from._internal_have_message());
  3804. }
  3805. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3806. }
  3807. void MsgRes::CopyFrom(const MsgRes& from)
  3808. {
  3809. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MsgRes)
  3810. if (&from == this)
  3811. return;
  3812. Clear();
  3813. MergeFrom(from);
  3814. }
  3815. bool MsgRes::IsInitialized() const
  3816. {
  3817. return true;
  3818. }
  3819. void MsgRes::InternalSwap(MsgRes* other)
  3820. {
  3821. using std::swap;
  3822. auto* lhs_arena = GetArenaForAllocation();
  3823. auto* rhs_arena = other->GetArenaForAllocation();
  3824. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3825. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  3826. &_impl_.message_received_, lhs_arena, &other->_impl_.message_received_, rhs_arena
  3827. );
  3828. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3829. PROTOBUF_FIELD_OFFSET(MsgRes, _impl_.have_message_) + sizeof(MsgRes::_impl_.have_message_) - PROTOBUF_FIELD_OFFSET(MsgRes, _impl_.from_player_id_)>(
  3830. reinterpret_cast<char*>(&_impl_.from_player_id_),
  3831. reinterpret_cast<char*>(&other->_impl_.from_player_id_)
  3832. );
  3833. }
  3834. ::PROTOBUF_NAMESPACE_ID::Metadata MsgRes::GetMetadata() const
  3835. {
  3836. return ::_pbi::AssignDescriptors(
  3837. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[9]
  3838. );
  3839. }
  3840. // @@protoc_insertion_point(namespace_scope)
  3841. } // namespace protobuf
  3842. PROTOBUF_NAMESPACE_OPEN
  3843. template<>
  3844. PROTOBUF_NOINLINE ::protobuf::MessageOfStudent*
  3845. Arena::CreateMaybeMessage<::protobuf::MessageOfStudent>(Arena* arena)
  3846. {
  3847. return Arena::CreateMessageInternal<::protobuf::MessageOfStudent>(arena);
  3848. }
  3849. template<>
  3850. PROTOBUF_NOINLINE ::protobuf::MessageOfTricker*
  3851. Arena::CreateMaybeMessage<::protobuf::MessageOfTricker>(Arena* arena)
  3852. {
  3853. return Arena::CreateMessageInternal<::protobuf::MessageOfTricker>(arena);
  3854. }
  3855. template<>
  3856. PROTOBUF_NOINLINE ::protobuf::MessageOfProp*
  3857. Arena::CreateMaybeMessage<::protobuf::MessageOfProp>(Arena* arena)
  3858. {
  3859. return Arena::CreateMessageInternal<::protobuf::MessageOfProp>(arena);
  3860. }
  3861. template<>
  3862. PROTOBUF_NOINLINE ::protobuf::MessageOfPickedProp*
  3863. Arena::CreateMaybeMessage<::protobuf::MessageOfPickedProp>(Arena* arena)
  3864. {
  3865. return Arena::CreateMessageInternal<::protobuf::MessageOfPickedProp>(arena);
  3866. }
  3867. template<>
  3868. PROTOBUF_NOINLINE ::protobuf::MessageOfMap_Row*
  3869. Arena::CreateMaybeMessage<::protobuf::MessageOfMap_Row>(Arena* arena)
  3870. {
  3871. return Arena::CreateMessageInternal<::protobuf::MessageOfMap_Row>(arena);
  3872. }
  3873. template<>
  3874. PROTOBUF_NOINLINE ::protobuf::MessageOfMap*
  3875. Arena::CreateMaybeMessage<::protobuf::MessageOfMap>(Arena* arena)
  3876. {
  3877. return Arena::CreateMessageInternal<::protobuf::MessageOfMap>(arena);
  3878. }
  3879. template<>
  3880. PROTOBUF_NOINLINE ::protobuf::MessageToClient*
  3881. Arena::CreateMaybeMessage<::protobuf::MessageToClient>(Arena* arena)
  3882. {
  3883. return Arena::CreateMessageInternal<::protobuf::MessageToClient>(arena);
  3884. }
  3885. template<>
  3886. PROTOBUF_NOINLINE ::protobuf::MoveRes*
  3887. Arena::CreateMaybeMessage<::protobuf::MoveRes>(Arena* arena)
  3888. {
  3889. return Arena::CreateMessageInternal<::protobuf::MoveRes>(arena);
  3890. }
  3891. template<>
  3892. PROTOBUF_NOINLINE ::protobuf::BoolRes*
  3893. Arena::CreateMaybeMessage<::protobuf::BoolRes>(Arena* arena)
  3894. {
  3895. return Arena::CreateMessageInternal<::protobuf::BoolRes>(arena);
  3896. }
  3897. template<>
  3898. PROTOBUF_NOINLINE ::protobuf::MsgRes*
  3899. Arena::CreateMaybeMessage<::protobuf::MsgRes>(Arena* arena)
  3900. {
  3901. return Arena::CreateMessageInternal<::protobuf::MsgRes>(arena);
  3902. }
  3903. PROTOBUF_NAMESPACE_CLOSE
  3904. // @@protoc_insertion_point(global_scope)
  3905. #include <google/protobuf/port_undef.inc>