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

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