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

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