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 166 kB

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