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

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