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

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