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.

Message2Server.pb.cc 94 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: Message2Server.proto
  3. #include "Message2Server.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 PlayerMsg::PlayerMsg(
  18. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized
  19. ) :
  20. player_id_(int64_t{0}),
  21. player_type_(0)
  22. ,
  23. _oneof_case_{}
  24. {
  25. }
  26. struct PlayerMsgDefaultTypeInternal
  27. {
  28. constexpr PlayerMsgDefaultTypeInternal() :
  29. _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{})
  30. {
  31. }
  32. ~PlayerMsgDefaultTypeInternal()
  33. {
  34. }
  35. union
  36. {
  37. PlayerMsg _instance;
  38. };
  39. };
  40. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PlayerMsgDefaultTypeInternal _PlayerMsg_default_instance_;
  41. constexpr MoveMsg::MoveMsg(
  42. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized
  43. ) :
  44. player_id_(int64_t{0}),
  45. angle_(0),
  46. time_in_milliseconds_(int64_t{0})
  47. {
  48. }
  49. struct MoveMsgDefaultTypeInternal
  50. {
  51. constexpr MoveMsgDefaultTypeInternal() :
  52. _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{})
  53. {
  54. }
  55. ~MoveMsgDefaultTypeInternal()
  56. {
  57. }
  58. union
  59. {
  60. MoveMsg _instance;
  61. };
  62. };
  63. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MoveMsgDefaultTypeInternal _MoveMsg_default_instance_;
  64. constexpr PropMsg::PropMsg(
  65. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized
  66. ) :
  67. player_id_(int64_t{0}),
  68. prop_type_(0)
  69. {
  70. }
  71. struct PropMsgDefaultTypeInternal
  72. {
  73. constexpr PropMsgDefaultTypeInternal() :
  74. _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{})
  75. {
  76. }
  77. ~PropMsgDefaultTypeInternal()
  78. {
  79. }
  80. union
  81. {
  82. PropMsg _instance;
  83. };
  84. };
  85. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PropMsgDefaultTypeInternal _PropMsg_default_instance_;
  86. constexpr SendMsg::SendMsg(
  87. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized
  88. ) :
  89. message_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string),
  90. player_id_(int64_t{0}),
  91. to_player_id_(int64_t{0})
  92. {
  93. }
  94. struct SendMsgDefaultTypeInternal
  95. {
  96. constexpr SendMsgDefaultTypeInternal() :
  97. _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{})
  98. {
  99. }
  100. ~SendMsgDefaultTypeInternal()
  101. {
  102. }
  103. union
  104. {
  105. SendMsg _instance;
  106. };
  107. };
  108. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SendMsgDefaultTypeInternal _SendMsg_default_instance_;
  109. constexpr AttackMsg::AttackMsg(
  110. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized
  111. ) :
  112. player_id_(int64_t{0}),
  113. angle_(0)
  114. {
  115. }
  116. struct AttackMsgDefaultTypeInternal
  117. {
  118. constexpr AttackMsgDefaultTypeInternal() :
  119. _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{})
  120. {
  121. }
  122. ~AttackMsgDefaultTypeInternal()
  123. {
  124. }
  125. union
  126. {
  127. AttackMsg _instance;
  128. };
  129. };
  130. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AttackMsgDefaultTypeInternal _AttackMsg_default_instance_;
  131. constexpr IDMsg::IDMsg(
  132. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized
  133. ) :
  134. player_id_(int64_t{0})
  135. {
  136. }
  137. struct IDMsgDefaultTypeInternal
  138. {
  139. constexpr IDMsgDefaultTypeInternal() :
  140. _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{})
  141. {
  142. }
  143. ~IDMsgDefaultTypeInternal()
  144. {
  145. }
  146. union
  147. {
  148. IDMsg _instance;
  149. };
  150. };
  151. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT IDMsgDefaultTypeInternal _IDMsg_default_instance_;
  152. constexpr TreatAndRescueMsg::TreatAndRescueMsg(
  153. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized
  154. ) :
  155. player_id_(int64_t{0}),
  156. to_player_id_(int64_t{0})
  157. {
  158. }
  159. struct TreatAndRescueMsgDefaultTypeInternal
  160. {
  161. constexpr TreatAndRescueMsgDefaultTypeInternal() :
  162. _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{})
  163. {
  164. }
  165. ~TreatAndRescueMsgDefaultTypeInternal()
  166. {
  167. }
  168. union
  169. {
  170. TreatAndRescueMsg _instance;
  171. };
  172. };
  173. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT TreatAndRescueMsgDefaultTypeInternal _TreatAndRescueMsg_default_instance_;
  174. constexpr SkillMsg::SkillMsg(
  175. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized
  176. ) :
  177. player_id_(int64_t{0}),
  178. skill_id_(0)
  179. {
  180. }
  181. struct SkillMsgDefaultTypeInternal
  182. {
  183. constexpr SkillMsgDefaultTypeInternal() :
  184. _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{})
  185. {
  186. }
  187. ~SkillMsgDefaultTypeInternal()
  188. {
  189. }
  190. union
  191. {
  192. SkillMsg _instance;
  193. };
  194. };
  195. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SkillMsgDefaultTypeInternal _SkillMsg_default_instance_;
  196. } // namespace protobuf
  197. static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_Message2Server_2eproto[8];
  198. static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_Message2Server_2eproto = nullptr;
  199. static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_Message2Server_2eproto = nullptr;
  200. const uint32_t TableStruct_Message2Server_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  201. ~0u, // no _has_bits_
  202. PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, _internal_metadata_),
  203. ~0u, // no _extensions_
  204. PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, _oneof_case_[0]),
  205. ~0u, // no _weak_field_map_
  206. ~0u, // no _inlined_string_donated_
  207. PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, player_id_),
  208. ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag,
  209. ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag,
  210. PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, player_type_),
  211. PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, job_type_),
  212. ~0u, // no _has_bits_
  213. PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, _internal_metadata_),
  214. ~0u, // no _extensions_
  215. ~0u, // no _oneof_case_
  216. ~0u, // no _weak_field_map_
  217. ~0u, // no _inlined_string_donated_
  218. PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, player_id_),
  219. PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, angle_),
  220. PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, time_in_milliseconds_),
  221. ~0u, // no _has_bits_
  222. PROTOBUF_FIELD_OFFSET(::protobuf::PropMsg, _internal_metadata_),
  223. ~0u, // no _extensions_
  224. ~0u, // no _oneof_case_
  225. ~0u, // no _weak_field_map_
  226. ~0u, // no _inlined_string_donated_
  227. PROTOBUF_FIELD_OFFSET(::protobuf::PropMsg, player_id_),
  228. PROTOBUF_FIELD_OFFSET(::protobuf::PropMsg, prop_type_),
  229. ~0u, // no _has_bits_
  230. PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, _internal_metadata_),
  231. ~0u, // no _extensions_
  232. ~0u, // no _oneof_case_
  233. ~0u, // no _weak_field_map_
  234. ~0u, // no _inlined_string_donated_
  235. PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, player_id_),
  236. PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, to_player_id_),
  237. PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, message_),
  238. ~0u, // no _has_bits_
  239. PROTOBUF_FIELD_OFFSET(::protobuf::AttackMsg, _internal_metadata_),
  240. ~0u, // no _extensions_
  241. ~0u, // no _oneof_case_
  242. ~0u, // no _weak_field_map_
  243. ~0u, // no _inlined_string_donated_
  244. PROTOBUF_FIELD_OFFSET(::protobuf::AttackMsg, player_id_),
  245. PROTOBUF_FIELD_OFFSET(::protobuf::AttackMsg, angle_),
  246. ~0u, // no _has_bits_
  247. PROTOBUF_FIELD_OFFSET(::protobuf::IDMsg, _internal_metadata_),
  248. ~0u, // no _extensions_
  249. ~0u, // no _oneof_case_
  250. ~0u, // no _weak_field_map_
  251. ~0u, // no _inlined_string_donated_
  252. PROTOBUF_FIELD_OFFSET(::protobuf::IDMsg, player_id_),
  253. ~0u, // no _has_bits_
  254. PROTOBUF_FIELD_OFFSET(::protobuf::TreatAndRescueMsg, _internal_metadata_),
  255. ~0u, // no _extensions_
  256. ~0u, // no _oneof_case_
  257. ~0u, // no _weak_field_map_
  258. ~0u, // no _inlined_string_donated_
  259. PROTOBUF_FIELD_OFFSET(::protobuf::TreatAndRescueMsg, player_id_),
  260. PROTOBUF_FIELD_OFFSET(::protobuf::TreatAndRescueMsg, to_player_id_),
  261. ~0u, // no _has_bits_
  262. PROTOBUF_FIELD_OFFSET(::protobuf::SkillMsg, _internal_metadata_),
  263. ~0u, // no _extensions_
  264. ~0u, // no _oneof_case_
  265. ~0u, // no _weak_field_map_
  266. ~0u, // no _inlined_string_donated_
  267. PROTOBUF_FIELD_OFFSET(::protobuf::SkillMsg, player_id_),
  268. PROTOBUF_FIELD_OFFSET(::protobuf::SkillMsg, skill_id_),
  269. };
  270. static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  271. {0, -1, -1, sizeof(::protobuf::PlayerMsg)},
  272. {11, -1, -1, sizeof(::protobuf::MoveMsg)},
  273. {20, -1, -1, sizeof(::protobuf::PropMsg)},
  274. {28, -1, -1, sizeof(::protobuf::SendMsg)},
  275. {37, -1, -1, sizeof(::protobuf::AttackMsg)},
  276. {45, -1, -1, sizeof(::protobuf::IDMsg)},
  277. {52, -1, -1, sizeof(::protobuf::TreatAndRescueMsg)},
  278. {60, -1, -1, sizeof(::protobuf::SkillMsg)},
  279. };
  280. static ::PROTOBUF_NAMESPACE_ID::Message const* const file_default_instances[] = {
  281. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::protobuf::_PlayerMsg_default_instance_),
  282. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::protobuf::_MoveMsg_default_instance_),
  283. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::protobuf::_PropMsg_default_instance_),
  284. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::protobuf::_SendMsg_default_instance_),
  285. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::protobuf::_AttackMsg_default_instance_),
  286. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::protobuf::_IDMsg_default_instance_),
  287. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::protobuf::_TreatAndRescueMsg_default_instance_),
  288. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::protobuf::_SkillMsg_default_instance_),
  289. };
  290. const char descriptor_table_protodef_Message2Server_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  291. "\n\024Message2Server.proto\022\010protobuf\032\021Messag"
  292. "eType.proto\"\263\001\n\tPlayerMsg\022\021\n\tplayer_id\030\001"
  293. " \001(\003\022-\n\014student_type\030\002 \001(\0162\025.protobuf.St"
  294. "udentTypeH\000\022-\n\014tricker_type\030\003 \001(\0162\025.prot"
  295. "obuf.TrickerTypeH\000\022)\n\013player_type\030\004 \001(\0162"
  296. "\024.protobuf.PlayerTypeB\n\n\010job_type\"I\n\007Mov"
  297. "eMsg\022\021\n\tplayer_id\030\001 \001(\003\022\r\n\005angle\030\002 \001(\001\022\034"
  298. "\n\024time_in_milliseconds\030\003 \001(\003\"C\n\007PropMsg\022"
  299. "\021\n\tplayer_id\030\001 \001(\003\022%\n\tprop_type\030\002 \001(\0162\022."
  300. "protobuf.PropType\"C\n\007SendMsg\022\021\n\tplayer_i"
  301. "d\030\001 \001(\003\022\024\n\014to_player_id\030\002 \001(\003\022\017\n\007message"
  302. "\030\003 \001(\t\"-\n\tAttackMsg\022\021\n\tplayer_id\030\001 \001(\003\022\r"
  303. "\n\005angle\030\002 \001(\001\"\032\n\005IDMsg\022\021\n\tplayer_id\030\001 \001("
  304. "\003\"<\n\021TreatAndRescueMsg\022\021\n\tplayer_id\030\001 \001("
  305. "\003\022\024\n\014to_player_id\030\002 \001(\003\"/\n\010SkillMsg\022\021\n\tp"
  306. "layer_id\030\001 \001(\003\022\020\n\010skill_id\030\002 \001(\005b\006proto3";
  307. static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* const descriptor_table_Message2Server_2eproto_deps[1] = {
  308. &::descriptor_table_MessageType_2eproto,
  309. };
  310. static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_Message2Server_2eproto_once;
  311. const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Message2Server_2eproto = {
  312. false,
  313. false,
  314. 640,
  315. descriptor_table_protodef_Message2Server_2eproto,
  316. "Message2Server.proto",
  317. &descriptor_table_Message2Server_2eproto_once,
  318. descriptor_table_Message2Server_2eproto_deps,
  319. 1,
  320. 8,
  321. schemas,
  322. file_default_instances,
  323. TableStruct_Message2Server_2eproto::offsets,
  324. file_level_metadata_Message2Server_2eproto,
  325. file_level_enum_descriptors_Message2Server_2eproto,
  326. file_level_service_descriptors_Message2Server_2eproto,
  327. };
  328. PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_Message2Server_2eproto_getter()
  329. {
  330. return &descriptor_table_Message2Server_2eproto;
  331. }
  332. // Force running AddDescriptors() at dynamic initialization time.
  333. PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_Message2Server_2eproto(&descriptor_table_Message2Server_2eproto);
  334. namespace protobuf
  335. {
  336. // ===================================================================
  337. class PlayerMsg::_Internal
  338. {
  339. public:
  340. };
  341. PlayerMsg::PlayerMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  342. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  343. {
  344. SharedCtor();
  345. if (!is_message_owned)
  346. {
  347. RegisterArenaDtor(arena);
  348. }
  349. // @@protoc_insertion_point(arena_constructor:protobuf.PlayerMsg)
  350. }
  351. PlayerMsg::PlayerMsg(const PlayerMsg& from) :
  352. ::PROTOBUF_NAMESPACE_ID::Message()
  353. {
  354. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  355. ::memcpy(&player_id_, &from.player_id_, static_cast<size_t>(reinterpret_cast<char*>(&player_type_) - reinterpret_cast<char*>(&player_id_)) + sizeof(player_type_));
  356. clear_has_job_type();
  357. switch (from.job_type_case())
  358. {
  359. case kStudentType:
  360. {
  361. _internal_set_student_type(from._internal_student_type());
  362. break;
  363. }
  364. case kTrickerType:
  365. {
  366. _internal_set_tricker_type(from._internal_tricker_type());
  367. break;
  368. }
  369. case JOB_TYPE_NOT_SET:
  370. {
  371. break;
  372. }
  373. }
  374. // @@protoc_insertion_point(copy_constructor:protobuf.PlayerMsg)
  375. }
  376. inline void PlayerMsg::SharedCtor()
  377. {
  378. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(reinterpret_cast<char*>(&player_id_) - reinterpret_cast<char*>(this)), 0, static_cast<size_t>(reinterpret_cast<char*>(&player_type_) - reinterpret_cast<char*>(&player_id_)) + sizeof(player_type_));
  379. clear_has_job_type();
  380. }
  381. PlayerMsg::~PlayerMsg()
  382. {
  383. // @@protoc_insertion_point(destructor:protobuf.PlayerMsg)
  384. if (GetArenaForAllocation() != nullptr)
  385. return;
  386. SharedDtor();
  387. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  388. }
  389. inline void PlayerMsg::SharedDtor()
  390. {
  391. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  392. if (has_job_type())
  393. {
  394. clear_job_type();
  395. }
  396. }
  397. void PlayerMsg::ArenaDtor(void* object)
  398. {
  399. PlayerMsg* _this = reinterpret_cast<PlayerMsg*>(object);
  400. (void)_this;
  401. }
  402. void PlayerMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*)
  403. {
  404. }
  405. void PlayerMsg::SetCachedSize(int size) const
  406. {
  407. _cached_size_.Set(size);
  408. }
  409. void PlayerMsg::clear_job_type()
  410. {
  411. // @@protoc_insertion_point(one_of_clear_start:protobuf.PlayerMsg)
  412. switch (job_type_case())
  413. {
  414. case kStudentType:
  415. {
  416. // No need to clear
  417. break;
  418. }
  419. case kTrickerType:
  420. {
  421. // No need to clear
  422. break;
  423. }
  424. case JOB_TYPE_NOT_SET:
  425. {
  426. break;
  427. }
  428. }
  429. _oneof_case_[0] = JOB_TYPE_NOT_SET;
  430. }
  431. void PlayerMsg::Clear()
  432. {
  433. // @@protoc_insertion_point(message_clear_start:protobuf.PlayerMsg)
  434. uint32_t cached_has_bits = 0;
  435. // Prevent compiler warnings about cached_has_bits being unused
  436. (void)cached_has_bits;
  437. ::memset(&player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&player_type_) - reinterpret_cast<char*>(&player_id_)) + sizeof(player_type_));
  438. clear_job_type();
  439. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  440. }
  441. const char* PlayerMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
  442. {
  443. #define CHK_(x) \
  444. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  445. goto failure
  446. while (!ctx->Done(&ptr))
  447. {
  448. uint32_t tag;
  449. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  450. switch (tag >> 3)
  451. {
  452. // int64 player_id = 1;
  453. case 1:
  454. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  455. {
  456. player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  457. CHK_(ptr);
  458. }
  459. else
  460. goto handle_unusual;
  461. continue;
  462. // .protobuf.StudentType student_type = 2;
  463. case 2:
  464. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  465. {
  466. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  467. CHK_(ptr);
  468. _internal_set_student_type(static_cast<::protobuf::StudentType>(val));
  469. }
  470. else
  471. goto handle_unusual;
  472. continue;
  473. // .protobuf.TrickerType tricker_type = 3;
  474. case 3:
  475. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  476. {
  477. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  478. CHK_(ptr);
  479. _internal_set_tricker_type(static_cast<::protobuf::TrickerType>(val));
  480. }
  481. else
  482. goto handle_unusual;
  483. continue;
  484. // .protobuf.PlayerType player_type = 4;
  485. case 4:
  486. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32))
  487. {
  488. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  489. CHK_(ptr);
  490. _internal_set_player_type(static_cast<::protobuf::PlayerType>(val));
  491. }
  492. else
  493. goto handle_unusual;
  494. continue;
  495. default:
  496. goto handle_unusual;
  497. } // switch
  498. handle_unusual:
  499. if ((tag == 0) || ((tag & 7) == 4))
  500. {
  501. CHK_(ptr);
  502. ctx->SetLastTag(tag);
  503. goto message_done;
  504. }
  505. ptr = UnknownFieldParse(
  506. tag,
  507. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  508. ptr,
  509. ctx
  510. );
  511. CHK_(ptr != nullptr);
  512. } // while
  513. message_done:
  514. return ptr;
  515. failure:
  516. ptr = nullptr;
  517. goto message_done;
  518. #undef CHK_
  519. }
  520. uint8_t* PlayerMsg::_InternalSerialize(
  521. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  522. ) const
  523. {
  524. // @@protoc_insertion_point(serialize_to_array_start:protobuf.PlayerMsg)
  525. uint32_t cached_has_bits = 0;
  526. (void)cached_has_bits;
  527. // int64 player_id = 1;
  528. if (this->_internal_player_id() != 0)
  529. {
  530. target = stream->EnsureSpace(target);
  531. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target);
  532. }
  533. // .protobuf.StudentType student_type = 2;
  534. if (_internal_has_student_type())
  535. {
  536. target = stream->EnsureSpace(target);
  537. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  538. 2, this->_internal_student_type(), target
  539. );
  540. }
  541. // .protobuf.TrickerType tricker_type = 3;
  542. if (_internal_has_tricker_type())
  543. {
  544. target = stream->EnsureSpace(target);
  545. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  546. 3, this->_internal_tricker_type(), target
  547. );
  548. }
  549. // .protobuf.PlayerType player_type = 4;
  550. if (this->_internal_player_type() != 0)
  551. {
  552. target = stream->EnsureSpace(target);
  553. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  554. 4, this->_internal_player_type(), target
  555. );
  556. }
  557. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  558. {
  559. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  560. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  561. );
  562. }
  563. // @@protoc_insertion_point(serialize_to_array_end:protobuf.PlayerMsg)
  564. return target;
  565. }
  566. size_t PlayerMsg::ByteSizeLong() const
  567. {
  568. // @@protoc_insertion_point(message_byte_size_start:protobuf.PlayerMsg)
  569. size_t total_size = 0;
  570. uint32_t cached_has_bits = 0;
  571. // Prevent compiler warnings about cached_has_bits being unused
  572. (void)cached_has_bits;
  573. // int64 player_id = 1;
  574. if (this->_internal_player_id() != 0)
  575. {
  576. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
  577. }
  578. // .protobuf.PlayerType player_type = 4;
  579. if (this->_internal_player_type() != 0)
  580. {
  581. total_size += 1 +
  582. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_player_type());
  583. }
  584. switch (job_type_case())
  585. {
  586. // .protobuf.StudentType student_type = 2;
  587. case kStudentType:
  588. {
  589. total_size += 1 +
  590. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_student_type());
  591. break;
  592. }
  593. // .protobuf.TrickerType tricker_type = 3;
  594. case kTrickerType:
  595. {
  596. total_size += 1 +
  597. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_tricker_type());
  598. break;
  599. }
  600. case JOB_TYPE_NOT_SET:
  601. {
  602. break;
  603. }
  604. }
  605. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  606. }
  607. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PlayerMsg::_class_data_ = {
  608. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  609. PlayerMsg::MergeImpl};
  610. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* PlayerMsg::GetClassData() const
  611. {
  612. return &_class_data_;
  613. }
  614. void PlayerMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from)
  615. {
  616. static_cast<PlayerMsg*>(to)->MergeFrom(
  617. static_cast<const PlayerMsg&>(from)
  618. );
  619. }
  620. void PlayerMsg::MergeFrom(const PlayerMsg& from)
  621. {
  622. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.PlayerMsg)
  623. GOOGLE_DCHECK_NE(&from, this);
  624. uint32_t cached_has_bits = 0;
  625. (void)cached_has_bits;
  626. if (from._internal_player_id() != 0)
  627. {
  628. _internal_set_player_id(from._internal_player_id());
  629. }
  630. if (from._internal_player_type() != 0)
  631. {
  632. _internal_set_player_type(from._internal_player_type());
  633. }
  634. switch (from.job_type_case())
  635. {
  636. case kStudentType:
  637. {
  638. _internal_set_student_type(from._internal_student_type());
  639. break;
  640. }
  641. case kTrickerType:
  642. {
  643. _internal_set_tricker_type(from._internal_tricker_type());
  644. break;
  645. }
  646. case JOB_TYPE_NOT_SET:
  647. {
  648. break;
  649. }
  650. }
  651. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  652. }
  653. void PlayerMsg::CopyFrom(const PlayerMsg& from)
  654. {
  655. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.PlayerMsg)
  656. if (&from == this)
  657. return;
  658. Clear();
  659. MergeFrom(from);
  660. }
  661. bool PlayerMsg::IsInitialized() const
  662. {
  663. return true;
  664. }
  665. void PlayerMsg::InternalSwap(PlayerMsg* other)
  666. {
  667. using std::swap;
  668. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  669. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  670. PROTOBUF_FIELD_OFFSET(PlayerMsg, player_type_) + sizeof(PlayerMsg::player_type_) - PROTOBUF_FIELD_OFFSET(PlayerMsg, player_id_)>(
  671. reinterpret_cast<char*>(&player_id_),
  672. reinterpret_cast<char*>(&other->player_id_)
  673. );
  674. swap(job_type_, other->job_type_);
  675. swap(_oneof_case_[0], other->_oneof_case_[0]);
  676. }
  677. ::PROTOBUF_NAMESPACE_ID::Metadata PlayerMsg::GetMetadata() const
  678. {
  679. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  680. &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[0]
  681. );
  682. }
  683. // ===================================================================
  684. class MoveMsg::_Internal
  685. {
  686. public:
  687. };
  688. MoveMsg::MoveMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  689. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  690. {
  691. SharedCtor();
  692. if (!is_message_owned)
  693. {
  694. RegisterArenaDtor(arena);
  695. }
  696. // @@protoc_insertion_point(arena_constructor:protobuf.MoveMsg)
  697. }
  698. MoveMsg::MoveMsg(const MoveMsg& from) :
  699. ::PROTOBUF_NAMESPACE_ID::Message()
  700. {
  701. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  702. ::memcpy(&player_id_, &from.player_id_, static_cast<size_t>(reinterpret_cast<char*>(&time_in_milliseconds_) - reinterpret_cast<char*>(&player_id_)) + sizeof(time_in_milliseconds_));
  703. // @@protoc_insertion_point(copy_constructor:protobuf.MoveMsg)
  704. }
  705. inline void MoveMsg::SharedCtor()
  706. {
  707. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(reinterpret_cast<char*>(&player_id_) - reinterpret_cast<char*>(this)), 0, static_cast<size_t>(reinterpret_cast<char*>(&time_in_milliseconds_) - reinterpret_cast<char*>(&player_id_)) + sizeof(time_in_milliseconds_));
  708. }
  709. MoveMsg::~MoveMsg()
  710. {
  711. // @@protoc_insertion_point(destructor:protobuf.MoveMsg)
  712. if (GetArenaForAllocation() != nullptr)
  713. return;
  714. SharedDtor();
  715. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  716. }
  717. inline void MoveMsg::SharedDtor()
  718. {
  719. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  720. }
  721. void MoveMsg::ArenaDtor(void* object)
  722. {
  723. MoveMsg* _this = reinterpret_cast<MoveMsg*>(object);
  724. (void)_this;
  725. }
  726. void MoveMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*)
  727. {
  728. }
  729. void MoveMsg::SetCachedSize(int size) const
  730. {
  731. _cached_size_.Set(size);
  732. }
  733. void MoveMsg::Clear()
  734. {
  735. // @@protoc_insertion_point(message_clear_start:protobuf.MoveMsg)
  736. uint32_t cached_has_bits = 0;
  737. // Prevent compiler warnings about cached_has_bits being unused
  738. (void)cached_has_bits;
  739. ::memset(&player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&time_in_milliseconds_) - reinterpret_cast<char*>(&player_id_)) + sizeof(time_in_milliseconds_));
  740. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  741. }
  742. const char* MoveMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
  743. {
  744. #define CHK_(x) \
  745. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  746. goto failure
  747. while (!ctx->Done(&ptr))
  748. {
  749. uint32_t tag;
  750. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  751. switch (tag >> 3)
  752. {
  753. // int64 player_id = 1;
  754. case 1:
  755. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  756. {
  757. player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  758. CHK_(ptr);
  759. }
  760. else
  761. goto handle_unusual;
  762. continue;
  763. // double angle = 2;
  764. case 2:
  765. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17))
  766. {
  767. angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  768. ptr += sizeof(double);
  769. }
  770. else
  771. goto handle_unusual;
  772. continue;
  773. // int64 time_in_milliseconds = 3;
  774. case 3:
  775. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  776. {
  777. time_in_milliseconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  778. CHK_(ptr);
  779. }
  780. else
  781. goto handle_unusual;
  782. continue;
  783. default:
  784. goto handle_unusual;
  785. } // switch
  786. handle_unusual:
  787. if ((tag == 0) || ((tag & 7) == 4))
  788. {
  789. CHK_(ptr);
  790. ctx->SetLastTag(tag);
  791. goto message_done;
  792. }
  793. ptr = UnknownFieldParse(
  794. tag,
  795. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  796. ptr,
  797. ctx
  798. );
  799. CHK_(ptr != nullptr);
  800. } // while
  801. message_done:
  802. return ptr;
  803. failure:
  804. ptr = nullptr;
  805. goto message_done;
  806. #undef CHK_
  807. }
  808. uint8_t* MoveMsg::_InternalSerialize(
  809. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  810. ) const
  811. {
  812. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MoveMsg)
  813. uint32_t cached_has_bits = 0;
  814. (void)cached_has_bits;
  815. // int64 player_id = 1;
  816. if (this->_internal_player_id() != 0)
  817. {
  818. target = stream->EnsureSpace(target);
  819. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target);
  820. }
  821. // double angle = 2;
  822. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  823. double tmp_angle = this->_internal_angle();
  824. uint64_t raw_angle;
  825. memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle));
  826. if (raw_angle != 0)
  827. {
  828. target = stream->EnsureSpace(target);
  829. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_angle(), target);
  830. }
  831. // int64 time_in_milliseconds = 3;
  832. if (this->_internal_time_in_milliseconds() != 0)
  833. {
  834. target = stream->EnsureSpace(target);
  835. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_time_in_milliseconds(), target);
  836. }
  837. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  838. {
  839. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  840. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  841. );
  842. }
  843. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MoveMsg)
  844. return target;
  845. }
  846. size_t MoveMsg::ByteSizeLong() const
  847. {
  848. // @@protoc_insertion_point(message_byte_size_start:protobuf.MoveMsg)
  849. size_t total_size = 0;
  850. uint32_t cached_has_bits = 0;
  851. // Prevent compiler warnings about cached_has_bits being unused
  852. (void)cached_has_bits;
  853. // int64 player_id = 1;
  854. if (this->_internal_player_id() != 0)
  855. {
  856. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
  857. }
  858. // double angle = 2;
  859. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  860. double tmp_angle = this->_internal_angle();
  861. uint64_t raw_angle;
  862. memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle));
  863. if (raw_angle != 0)
  864. {
  865. total_size += 1 + 8;
  866. }
  867. // int64 time_in_milliseconds = 3;
  868. if (this->_internal_time_in_milliseconds() != 0)
  869. {
  870. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_time_in_milliseconds());
  871. }
  872. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  873. }
  874. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveMsg::_class_data_ = {
  875. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  876. MoveMsg::MergeImpl};
  877. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MoveMsg::GetClassData() const
  878. {
  879. return &_class_data_;
  880. }
  881. void MoveMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from)
  882. {
  883. static_cast<MoveMsg*>(to)->MergeFrom(
  884. static_cast<const MoveMsg&>(from)
  885. );
  886. }
  887. void MoveMsg::MergeFrom(const MoveMsg& from)
  888. {
  889. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MoveMsg)
  890. GOOGLE_DCHECK_NE(&from, this);
  891. uint32_t cached_has_bits = 0;
  892. (void)cached_has_bits;
  893. if (from._internal_player_id() != 0)
  894. {
  895. _internal_set_player_id(from._internal_player_id());
  896. }
  897. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  898. double tmp_angle = from._internal_angle();
  899. uint64_t raw_angle;
  900. memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle));
  901. if (raw_angle != 0)
  902. {
  903. _internal_set_angle(from._internal_angle());
  904. }
  905. if (from._internal_time_in_milliseconds() != 0)
  906. {
  907. _internal_set_time_in_milliseconds(from._internal_time_in_milliseconds());
  908. }
  909. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  910. }
  911. void MoveMsg::CopyFrom(const MoveMsg& from)
  912. {
  913. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MoveMsg)
  914. if (&from == this)
  915. return;
  916. Clear();
  917. MergeFrom(from);
  918. }
  919. bool MoveMsg::IsInitialized() const
  920. {
  921. return true;
  922. }
  923. void MoveMsg::InternalSwap(MoveMsg* other)
  924. {
  925. using std::swap;
  926. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  927. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  928. PROTOBUF_FIELD_OFFSET(MoveMsg, time_in_milliseconds_) + sizeof(MoveMsg::time_in_milliseconds_) - PROTOBUF_FIELD_OFFSET(MoveMsg, player_id_)>(
  929. reinterpret_cast<char*>(&player_id_),
  930. reinterpret_cast<char*>(&other->player_id_)
  931. );
  932. }
  933. ::PROTOBUF_NAMESPACE_ID::Metadata MoveMsg::GetMetadata() const
  934. {
  935. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  936. &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[1]
  937. );
  938. }
  939. // ===================================================================
  940. class PropMsg::_Internal
  941. {
  942. public:
  943. };
  944. PropMsg::PropMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  945. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  946. {
  947. SharedCtor();
  948. if (!is_message_owned)
  949. {
  950. RegisterArenaDtor(arena);
  951. }
  952. // @@protoc_insertion_point(arena_constructor:protobuf.PropMsg)
  953. }
  954. PropMsg::PropMsg(const PropMsg& from) :
  955. ::PROTOBUF_NAMESPACE_ID::Message()
  956. {
  957. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  958. ::memcpy(&player_id_, &from.player_id_, static_cast<size_t>(reinterpret_cast<char*>(&prop_type_) - reinterpret_cast<char*>(&player_id_)) + sizeof(prop_type_));
  959. // @@protoc_insertion_point(copy_constructor:protobuf.PropMsg)
  960. }
  961. inline void PropMsg::SharedCtor()
  962. {
  963. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(reinterpret_cast<char*>(&player_id_) - reinterpret_cast<char*>(this)), 0, static_cast<size_t>(reinterpret_cast<char*>(&prop_type_) - reinterpret_cast<char*>(&player_id_)) + sizeof(prop_type_));
  964. }
  965. PropMsg::~PropMsg()
  966. {
  967. // @@protoc_insertion_point(destructor:protobuf.PropMsg)
  968. if (GetArenaForAllocation() != nullptr)
  969. return;
  970. SharedDtor();
  971. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  972. }
  973. inline void PropMsg::SharedDtor()
  974. {
  975. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  976. }
  977. void PropMsg::ArenaDtor(void* object)
  978. {
  979. PropMsg* _this = reinterpret_cast<PropMsg*>(object);
  980. (void)_this;
  981. }
  982. void PropMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*)
  983. {
  984. }
  985. void PropMsg::SetCachedSize(int size) const
  986. {
  987. _cached_size_.Set(size);
  988. }
  989. void PropMsg::Clear()
  990. {
  991. // @@protoc_insertion_point(message_clear_start:protobuf.PropMsg)
  992. uint32_t cached_has_bits = 0;
  993. // Prevent compiler warnings about cached_has_bits being unused
  994. (void)cached_has_bits;
  995. ::memset(&player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&prop_type_) - reinterpret_cast<char*>(&player_id_)) + sizeof(prop_type_));
  996. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  997. }
  998. const char* PropMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
  999. {
  1000. #define CHK_(x) \
  1001. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  1002. goto failure
  1003. while (!ctx->Done(&ptr))
  1004. {
  1005. uint32_t tag;
  1006. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1007. switch (tag >> 3)
  1008. {
  1009. // int64 player_id = 1;
  1010. case 1:
  1011. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  1012. {
  1013. player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1014. CHK_(ptr);
  1015. }
  1016. else
  1017. goto handle_unusual;
  1018. continue;
  1019. // .protobuf.PropType prop_type = 2;
  1020. case 2:
  1021. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  1022. {
  1023. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1024. CHK_(ptr);
  1025. _internal_set_prop_type(static_cast<::protobuf::PropType>(val));
  1026. }
  1027. else
  1028. goto handle_unusual;
  1029. continue;
  1030. default:
  1031. goto handle_unusual;
  1032. } // switch
  1033. handle_unusual:
  1034. if ((tag == 0) || ((tag & 7) == 4))
  1035. {
  1036. CHK_(ptr);
  1037. ctx->SetLastTag(tag);
  1038. goto message_done;
  1039. }
  1040. ptr = UnknownFieldParse(
  1041. tag,
  1042. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1043. ptr,
  1044. ctx
  1045. );
  1046. CHK_(ptr != nullptr);
  1047. } // while
  1048. message_done:
  1049. return ptr;
  1050. failure:
  1051. ptr = nullptr;
  1052. goto message_done;
  1053. #undef CHK_
  1054. }
  1055. uint8_t* PropMsg::_InternalSerialize(
  1056. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  1057. ) const
  1058. {
  1059. // @@protoc_insertion_point(serialize_to_array_start:protobuf.PropMsg)
  1060. uint32_t cached_has_bits = 0;
  1061. (void)cached_has_bits;
  1062. // int64 player_id = 1;
  1063. if (this->_internal_player_id() != 0)
  1064. {
  1065. target = stream->EnsureSpace(target);
  1066. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target);
  1067. }
  1068. // .protobuf.PropType prop_type = 2;
  1069. if (this->_internal_prop_type() != 0)
  1070. {
  1071. target = stream->EnsureSpace(target);
  1072. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  1073. 2, this->_internal_prop_type(), target
  1074. );
  1075. }
  1076. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  1077. {
  1078. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1079. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  1080. );
  1081. }
  1082. // @@protoc_insertion_point(serialize_to_array_end:protobuf.PropMsg)
  1083. return target;
  1084. }
  1085. size_t PropMsg::ByteSizeLong() const
  1086. {
  1087. // @@protoc_insertion_point(message_byte_size_start:protobuf.PropMsg)
  1088. size_t total_size = 0;
  1089. uint32_t cached_has_bits = 0;
  1090. // Prevent compiler warnings about cached_has_bits being unused
  1091. (void)cached_has_bits;
  1092. // int64 player_id = 1;
  1093. if (this->_internal_player_id() != 0)
  1094. {
  1095. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
  1096. }
  1097. // .protobuf.PropType prop_type = 2;
  1098. if (this->_internal_prop_type() != 0)
  1099. {
  1100. total_size += 1 +
  1101. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_prop_type());
  1102. }
  1103. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1104. }
  1105. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PropMsg::_class_data_ = {
  1106. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1107. PropMsg::MergeImpl};
  1108. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* PropMsg::GetClassData() const
  1109. {
  1110. return &_class_data_;
  1111. }
  1112. void PropMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from)
  1113. {
  1114. static_cast<PropMsg*>(to)->MergeFrom(
  1115. static_cast<const PropMsg&>(from)
  1116. );
  1117. }
  1118. void PropMsg::MergeFrom(const PropMsg& from)
  1119. {
  1120. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.PropMsg)
  1121. GOOGLE_DCHECK_NE(&from, this);
  1122. uint32_t cached_has_bits = 0;
  1123. (void)cached_has_bits;
  1124. if (from._internal_player_id() != 0)
  1125. {
  1126. _internal_set_player_id(from._internal_player_id());
  1127. }
  1128. if (from._internal_prop_type() != 0)
  1129. {
  1130. _internal_set_prop_type(from._internal_prop_type());
  1131. }
  1132. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1133. }
  1134. void PropMsg::CopyFrom(const PropMsg& from)
  1135. {
  1136. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.PropMsg)
  1137. if (&from == this)
  1138. return;
  1139. Clear();
  1140. MergeFrom(from);
  1141. }
  1142. bool PropMsg::IsInitialized() const
  1143. {
  1144. return true;
  1145. }
  1146. void PropMsg::InternalSwap(PropMsg* other)
  1147. {
  1148. using std::swap;
  1149. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1150. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1151. PROTOBUF_FIELD_OFFSET(PropMsg, prop_type_) + sizeof(PropMsg::prop_type_) - PROTOBUF_FIELD_OFFSET(PropMsg, player_id_)>(
  1152. reinterpret_cast<char*>(&player_id_),
  1153. reinterpret_cast<char*>(&other->player_id_)
  1154. );
  1155. }
  1156. ::PROTOBUF_NAMESPACE_ID::Metadata PropMsg::GetMetadata() const
  1157. {
  1158. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1159. &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[2]
  1160. );
  1161. }
  1162. // ===================================================================
  1163. class SendMsg::_Internal
  1164. {
  1165. public:
  1166. };
  1167. SendMsg::SendMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  1168. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  1169. {
  1170. SharedCtor();
  1171. if (!is_message_owned)
  1172. {
  1173. RegisterArenaDtor(arena);
  1174. }
  1175. // @@protoc_insertion_point(arena_constructor:protobuf.SendMsg)
  1176. }
  1177. SendMsg::SendMsg(const SendMsg& from) :
  1178. ::PROTOBUF_NAMESPACE_ID::Message()
  1179. {
  1180. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1181. message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1182. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1183. message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1184. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1185. if (!from._internal_message().empty())
  1186. {
  1187. message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_message(), GetArenaForAllocation());
  1188. }
  1189. ::memcpy(&player_id_, &from.player_id_, static_cast<size_t>(reinterpret_cast<char*>(&to_player_id_) - reinterpret_cast<char*>(&player_id_)) + sizeof(to_player_id_));
  1190. // @@protoc_insertion_point(copy_constructor:protobuf.SendMsg)
  1191. }
  1192. inline void SendMsg::SharedCtor()
  1193. {
  1194. message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1195. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1196. message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1197. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1198. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(reinterpret_cast<char*>(&player_id_) - reinterpret_cast<char*>(this)), 0, static_cast<size_t>(reinterpret_cast<char*>(&to_player_id_) - reinterpret_cast<char*>(&player_id_)) + sizeof(to_player_id_));
  1199. }
  1200. SendMsg::~SendMsg()
  1201. {
  1202. // @@protoc_insertion_point(destructor:protobuf.SendMsg)
  1203. if (GetArenaForAllocation() != nullptr)
  1204. return;
  1205. SharedDtor();
  1206. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1207. }
  1208. inline void SendMsg::SharedDtor()
  1209. {
  1210. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1211. message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1212. }
  1213. void SendMsg::ArenaDtor(void* object)
  1214. {
  1215. SendMsg* _this = reinterpret_cast<SendMsg*>(object);
  1216. (void)_this;
  1217. }
  1218. void SendMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*)
  1219. {
  1220. }
  1221. void SendMsg::SetCachedSize(int size) const
  1222. {
  1223. _cached_size_.Set(size);
  1224. }
  1225. void SendMsg::Clear()
  1226. {
  1227. // @@protoc_insertion_point(message_clear_start:protobuf.SendMsg)
  1228. uint32_t cached_has_bits = 0;
  1229. // Prevent compiler warnings about cached_has_bits being unused
  1230. (void)cached_has_bits;
  1231. message_.ClearToEmpty();
  1232. ::memset(&player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&to_player_id_) - reinterpret_cast<char*>(&player_id_)) + sizeof(to_player_id_));
  1233. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1234. }
  1235. const char* SendMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
  1236. {
  1237. #define CHK_(x) \
  1238. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  1239. goto failure
  1240. while (!ctx->Done(&ptr))
  1241. {
  1242. uint32_t tag;
  1243. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1244. switch (tag >> 3)
  1245. {
  1246. // int64 player_id = 1;
  1247. case 1:
  1248. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  1249. {
  1250. player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1251. CHK_(ptr);
  1252. }
  1253. else
  1254. goto handle_unusual;
  1255. continue;
  1256. // int64 to_player_id = 2;
  1257. case 2:
  1258. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  1259. {
  1260. to_player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1261. CHK_(ptr);
  1262. }
  1263. else
  1264. goto handle_unusual;
  1265. continue;
  1266. // string message = 3;
  1267. case 3:
  1268. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26))
  1269. {
  1270. auto str = _internal_mutable_message();
  1271. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  1272. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protobuf.SendMsg.message"));
  1273. CHK_(ptr);
  1274. }
  1275. else
  1276. goto handle_unusual;
  1277. continue;
  1278. default:
  1279. goto handle_unusual;
  1280. } // switch
  1281. handle_unusual:
  1282. if ((tag == 0) || ((tag & 7) == 4))
  1283. {
  1284. CHK_(ptr);
  1285. ctx->SetLastTag(tag);
  1286. goto message_done;
  1287. }
  1288. ptr = UnknownFieldParse(
  1289. tag,
  1290. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1291. ptr,
  1292. ctx
  1293. );
  1294. CHK_(ptr != nullptr);
  1295. } // while
  1296. message_done:
  1297. return ptr;
  1298. failure:
  1299. ptr = nullptr;
  1300. goto message_done;
  1301. #undef CHK_
  1302. }
  1303. uint8_t* SendMsg::_InternalSerialize(
  1304. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  1305. ) const
  1306. {
  1307. // @@protoc_insertion_point(serialize_to_array_start:protobuf.SendMsg)
  1308. uint32_t cached_has_bits = 0;
  1309. (void)cached_has_bits;
  1310. // int64 player_id = 1;
  1311. if (this->_internal_player_id() != 0)
  1312. {
  1313. target = stream->EnsureSpace(target);
  1314. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target);
  1315. }
  1316. // int64 to_player_id = 2;
  1317. if (this->_internal_to_player_id() != 0)
  1318. {
  1319. target = stream->EnsureSpace(target);
  1320. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_to_player_id(), target);
  1321. }
  1322. // string message = 3;
  1323. if (!this->_internal_message().empty())
  1324. {
  1325. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1326. this->_internal_message().data(), static_cast<int>(this->_internal_message().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protobuf.SendMsg.message"
  1327. );
  1328. target = stream->WriteStringMaybeAliased(
  1329. 3, this->_internal_message(), target
  1330. );
  1331. }
  1332. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  1333. {
  1334. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1335. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  1336. );
  1337. }
  1338. // @@protoc_insertion_point(serialize_to_array_end:protobuf.SendMsg)
  1339. return target;
  1340. }
  1341. size_t SendMsg::ByteSizeLong() const
  1342. {
  1343. // @@protoc_insertion_point(message_byte_size_start:protobuf.SendMsg)
  1344. size_t total_size = 0;
  1345. uint32_t cached_has_bits = 0;
  1346. // Prevent compiler warnings about cached_has_bits being unused
  1347. (void)cached_has_bits;
  1348. // string message = 3;
  1349. if (!this->_internal_message().empty())
  1350. {
  1351. total_size += 1 +
  1352. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1353. this->_internal_message()
  1354. );
  1355. }
  1356. // int64 player_id = 1;
  1357. if (this->_internal_player_id() != 0)
  1358. {
  1359. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
  1360. }
  1361. // int64 to_player_id = 2;
  1362. if (this->_internal_to_player_id() != 0)
  1363. {
  1364. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_to_player_id());
  1365. }
  1366. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1367. }
  1368. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SendMsg::_class_data_ = {
  1369. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1370. SendMsg::MergeImpl};
  1371. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* SendMsg::GetClassData() const
  1372. {
  1373. return &_class_data_;
  1374. }
  1375. void SendMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from)
  1376. {
  1377. static_cast<SendMsg*>(to)->MergeFrom(
  1378. static_cast<const SendMsg&>(from)
  1379. );
  1380. }
  1381. void SendMsg::MergeFrom(const SendMsg& from)
  1382. {
  1383. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.SendMsg)
  1384. GOOGLE_DCHECK_NE(&from, this);
  1385. uint32_t cached_has_bits = 0;
  1386. (void)cached_has_bits;
  1387. if (!from._internal_message().empty())
  1388. {
  1389. _internal_set_message(from._internal_message());
  1390. }
  1391. if (from._internal_player_id() != 0)
  1392. {
  1393. _internal_set_player_id(from._internal_player_id());
  1394. }
  1395. if (from._internal_to_player_id() != 0)
  1396. {
  1397. _internal_set_to_player_id(from._internal_to_player_id());
  1398. }
  1399. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1400. }
  1401. void SendMsg::CopyFrom(const SendMsg& from)
  1402. {
  1403. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.SendMsg)
  1404. if (&from == this)
  1405. return;
  1406. Clear();
  1407. MergeFrom(from);
  1408. }
  1409. bool SendMsg::IsInitialized() const
  1410. {
  1411. return true;
  1412. }
  1413. void SendMsg::InternalSwap(SendMsg* other)
  1414. {
  1415. using std::swap;
  1416. auto* lhs_arena = GetArenaForAllocation();
  1417. auto* rhs_arena = other->GetArenaForAllocation();
  1418. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1419. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  1420. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1421. &message_,
  1422. lhs_arena,
  1423. &other->message_,
  1424. rhs_arena
  1425. );
  1426. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1427. PROTOBUF_FIELD_OFFSET(SendMsg, to_player_id_) + sizeof(SendMsg::to_player_id_) - PROTOBUF_FIELD_OFFSET(SendMsg, player_id_)>(
  1428. reinterpret_cast<char*>(&player_id_),
  1429. reinterpret_cast<char*>(&other->player_id_)
  1430. );
  1431. }
  1432. ::PROTOBUF_NAMESPACE_ID::Metadata SendMsg::GetMetadata() const
  1433. {
  1434. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1435. &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[3]
  1436. );
  1437. }
  1438. // ===================================================================
  1439. class AttackMsg::_Internal
  1440. {
  1441. public:
  1442. };
  1443. AttackMsg::AttackMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  1444. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  1445. {
  1446. SharedCtor();
  1447. if (!is_message_owned)
  1448. {
  1449. RegisterArenaDtor(arena);
  1450. }
  1451. // @@protoc_insertion_point(arena_constructor:protobuf.AttackMsg)
  1452. }
  1453. AttackMsg::AttackMsg(const AttackMsg& from) :
  1454. ::PROTOBUF_NAMESPACE_ID::Message()
  1455. {
  1456. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1457. ::memcpy(&player_id_, &from.player_id_, static_cast<size_t>(reinterpret_cast<char*>(&angle_) - reinterpret_cast<char*>(&player_id_)) + sizeof(angle_));
  1458. // @@protoc_insertion_point(copy_constructor:protobuf.AttackMsg)
  1459. }
  1460. inline void AttackMsg::SharedCtor()
  1461. {
  1462. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(reinterpret_cast<char*>(&player_id_) - reinterpret_cast<char*>(this)), 0, static_cast<size_t>(reinterpret_cast<char*>(&angle_) - reinterpret_cast<char*>(&player_id_)) + sizeof(angle_));
  1463. }
  1464. AttackMsg::~AttackMsg()
  1465. {
  1466. // @@protoc_insertion_point(destructor:protobuf.AttackMsg)
  1467. if (GetArenaForAllocation() != nullptr)
  1468. return;
  1469. SharedDtor();
  1470. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1471. }
  1472. inline void AttackMsg::SharedDtor()
  1473. {
  1474. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1475. }
  1476. void AttackMsg::ArenaDtor(void* object)
  1477. {
  1478. AttackMsg* _this = reinterpret_cast<AttackMsg*>(object);
  1479. (void)_this;
  1480. }
  1481. void AttackMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*)
  1482. {
  1483. }
  1484. void AttackMsg::SetCachedSize(int size) const
  1485. {
  1486. _cached_size_.Set(size);
  1487. }
  1488. void AttackMsg::Clear()
  1489. {
  1490. // @@protoc_insertion_point(message_clear_start:protobuf.AttackMsg)
  1491. uint32_t cached_has_bits = 0;
  1492. // Prevent compiler warnings about cached_has_bits being unused
  1493. (void)cached_has_bits;
  1494. ::memset(&player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&angle_) - reinterpret_cast<char*>(&player_id_)) + sizeof(angle_));
  1495. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1496. }
  1497. const char* AttackMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
  1498. {
  1499. #define CHK_(x) \
  1500. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  1501. goto failure
  1502. while (!ctx->Done(&ptr))
  1503. {
  1504. uint32_t tag;
  1505. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1506. switch (tag >> 3)
  1507. {
  1508. // int64 player_id = 1;
  1509. case 1:
  1510. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  1511. {
  1512. player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1513. CHK_(ptr);
  1514. }
  1515. else
  1516. goto handle_unusual;
  1517. continue;
  1518. // double angle = 2;
  1519. case 2:
  1520. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17))
  1521. {
  1522. angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  1523. ptr += sizeof(double);
  1524. }
  1525. else
  1526. goto handle_unusual;
  1527. continue;
  1528. default:
  1529. goto handle_unusual;
  1530. } // switch
  1531. handle_unusual:
  1532. if ((tag == 0) || ((tag & 7) == 4))
  1533. {
  1534. CHK_(ptr);
  1535. ctx->SetLastTag(tag);
  1536. goto message_done;
  1537. }
  1538. ptr = UnknownFieldParse(
  1539. tag,
  1540. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1541. ptr,
  1542. ctx
  1543. );
  1544. CHK_(ptr != nullptr);
  1545. } // while
  1546. message_done:
  1547. return ptr;
  1548. failure:
  1549. ptr = nullptr;
  1550. goto message_done;
  1551. #undef CHK_
  1552. }
  1553. uint8_t* AttackMsg::_InternalSerialize(
  1554. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  1555. ) const
  1556. {
  1557. // @@protoc_insertion_point(serialize_to_array_start:protobuf.AttackMsg)
  1558. uint32_t cached_has_bits = 0;
  1559. (void)cached_has_bits;
  1560. // int64 player_id = 1;
  1561. if (this->_internal_player_id() != 0)
  1562. {
  1563. target = stream->EnsureSpace(target);
  1564. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target);
  1565. }
  1566. // double angle = 2;
  1567. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1568. double tmp_angle = this->_internal_angle();
  1569. uint64_t raw_angle;
  1570. memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle));
  1571. if (raw_angle != 0)
  1572. {
  1573. target = stream->EnsureSpace(target);
  1574. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_angle(), target);
  1575. }
  1576. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  1577. {
  1578. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1579. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  1580. );
  1581. }
  1582. // @@protoc_insertion_point(serialize_to_array_end:protobuf.AttackMsg)
  1583. return target;
  1584. }
  1585. size_t AttackMsg::ByteSizeLong() const
  1586. {
  1587. // @@protoc_insertion_point(message_byte_size_start:protobuf.AttackMsg)
  1588. size_t total_size = 0;
  1589. uint32_t cached_has_bits = 0;
  1590. // Prevent compiler warnings about cached_has_bits being unused
  1591. (void)cached_has_bits;
  1592. // int64 player_id = 1;
  1593. if (this->_internal_player_id() != 0)
  1594. {
  1595. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
  1596. }
  1597. // double angle = 2;
  1598. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1599. double tmp_angle = this->_internal_angle();
  1600. uint64_t raw_angle;
  1601. memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle));
  1602. if (raw_angle != 0)
  1603. {
  1604. total_size += 1 + 8;
  1605. }
  1606. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1607. }
  1608. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AttackMsg::_class_data_ = {
  1609. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1610. AttackMsg::MergeImpl};
  1611. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* AttackMsg::GetClassData() const
  1612. {
  1613. return &_class_data_;
  1614. }
  1615. void AttackMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from)
  1616. {
  1617. static_cast<AttackMsg*>(to)->MergeFrom(
  1618. static_cast<const AttackMsg&>(from)
  1619. );
  1620. }
  1621. void AttackMsg::MergeFrom(const AttackMsg& from)
  1622. {
  1623. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.AttackMsg)
  1624. GOOGLE_DCHECK_NE(&from, this);
  1625. uint32_t cached_has_bits = 0;
  1626. (void)cached_has_bits;
  1627. if (from._internal_player_id() != 0)
  1628. {
  1629. _internal_set_player_id(from._internal_player_id());
  1630. }
  1631. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1632. double tmp_angle = from._internal_angle();
  1633. uint64_t raw_angle;
  1634. memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle));
  1635. if (raw_angle != 0)
  1636. {
  1637. _internal_set_angle(from._internal_angle());
  1638. }
  1639. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1640. }
  1641. void AttackMsg::CopyFrom(const AttackMsg& from)
  1642. {
  1643. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.AttackMsg)
  1644. if (&from == this)
  1645. return;
  1646. Clear();
  1647. MergeFrom(from);
  1648. }
  1649. bool AttackMsg::IsInitialized() const
  1650. {
  1651. return true;
  1652. }
  1653. void AttackMsg::InternalSwap(AttackMsg* other)
  1654. {
  1655. using std::swap;
  1656. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1657. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1658. PROTOBUF_FIELD_OFFSET(AttackMsg, angle_) + sizeof(AttackMsg::angle_) - PROTOBUF_FIELD_OFFSET(AttackMsg, player_id_)>(
  1659. reinterpret_cast<char*>(&player_id_),
  1660. reinterpret_cast<char*>(&other->player_id_)
  1661. );
  1662. }
  1663. ::PROTOBUF_NAMESPACE_ID::Metadata AttackMsg::GetMetadata() const
  1664. {
  1665. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1666. &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[4]
  1667. );
  1668. }
  1669. // ===================================================================
  1670. class IDMsg::_Internal
  1671. {
  1672. public:
  1673. };
  1674. IDMsg::IDMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  1675. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  1676. {
  1677. SharedCtor();
  1678. if (!is_message_owned)
  1679. {
  1680. RegisterArenaDtor(arena);
  1681. }
  1682. // @@protoc_insertion_point(arena_constructor:protobuf.IDMsg)
  1683. }
  1684. IDMsg::IDMsg(const IDMsg& from) :
  1685. ::PROTOBUF_NAMESPACE_ID::Message()
  1686. {
  1687. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1688. player_id_ = from.player_id_;
  1689. // @@protoc_insertion_point(copy_constructor:protobuf.IDMsg)
  1690. }
  1691. inline void IDMsg::SharedCtor()
  1692. {
  1693. player_id_ = int64_t{0};
  1694. }
  1695. IDMsg::~IDMsg()
  1696. {
  1697. // @@protoc_insertion_point(destructor:protobuf.IDMsg)
  1698. if (GetArenaForAllocation() != nullptr)
  1699. return;
  1700. SharedDtor();
  1701. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1702. }
  1703. inline void IDMsg::SharedDtor()
  1704. {
  1705. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1706. }
  1707. void IDMsg::ArenaDtor(void* object)
  1708. {
  1709. IDMsg* _this = reinterpret_cast<IDMsg*>(object);
  1710. (void)_this;
  1711. }
  1712. void IDMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*)
  1713. {
  1714. }
  1715. void IDMsg::SetCachedSize(int size) const
  1716. {
  1717. _cached_size_.Set(size);
  1718. }
  1719. void IDMsg::Clear()
  1720. {
  1721. // @@protoc_insertion_point(message_clear_start:protobuf.IDMsg)
  1722. uint32_t cached_has_bits = 0;
  1723. // Prevent compiler warnings about cached_has_bits being unused
  1724. (void)cached_has_bits;
  1725. player_id_ = int64_t{0};
  1726. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1727. }
  1728. const char* IDMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
  1729. {
  1730. #define CHK_(x) \
  1731. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  1732. goto failure
  1733. while (!ctx->Done(&ptr))
  1734. {
  1735. uint32_t tag;
  1736. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1737. switch (tag >> 3)
  1738. {
  1739. // int64 player_id = 1;
  1740. case 1:
  1741. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  1742. {
  1743. player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1744. CHK_(ptr);
  1745. }
  1746. else
  1747. goto handle_unusual;
  1748. continue;
  1749. default:
  1750. goto handle_unusual;
  1751. } // switch
  1752. handle_unusual:
  1753. if ((tag == 0) || ((tag & 7) == 4))
  1754. {
  1755. CHK_(ptr);
  1756. ctx->SetLastTag(tag);
  1757. goto message_done;
  1758. }
  1759. ptr = UnknownFieldParse(
  1760. tag,
  1761. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1762. ptr,
  1763. ctx
  1764. );
  1765. CHK_(ptr != nullptr);
  1766. } // while
  1767. message_done:
  1768. return ptr;
  1769. failure:
  1770. ptr = nullptr;
  1771. goto message_done;
  1772. #undef CHK_
  1773. }
  1774. uint8_t* IDMsg::_InternalSerialize(
  1775. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  1776. ) const
  1777. {
  1778. // @@protoc_insertion_point(serialize_to_array_start:protobuf.IDMsg)
  1779. uint32_t cached_has_bits = 0;
  1780. (void)cached_has_bits;
  1781. // int64 player_id = 1;
  1782. if (this->_internal_player_id() != 0)
  1783. {
  1784. target = stream->EnsureSpace(target);
  1785. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target);
  1786. }
  1787. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  1788. {
  1789. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1790. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  1791. );
  1792. }
  1793. // @@protoc_insertion_point(serialize_to_array_end:protobuf.IDMsg)
  1794. return target;
  1795. }
  1796. size_t IDMsg::ByteSizeLong() const
  1797. {
  1798. // @@protoc_insertion_point(message_byte_size_start:protobuf.IDMsg)
  1799. size_t total_size = 0;
  1800. uint32_t cached_has_bits = 0;
  1801. // Prevent compiler warnings about cached_has_bits being unused
  1802. (void)cached_has_bits;
  1803. // int64 player_id = 1;
  1804. if (this->_internal_player_id() != 0)
  1805. {
  1806. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
  1807. }
  1808. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1809. }
  1810. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IDMsg::_class_data_ = {
  1811. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1812. IDMsg::MergeImpl};
  1813. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* IDMsg::GetClassData() const
  1814. {
  1815. return &_class_data_;
  1816. }
  1817. void IDMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from)
  1818. {
  1819. static_cast<IDMsg*>(to)->MergeFrom(
  1820. static_cast<const IDMsg&>(from)
  1821. );
  1822. }
  1823. void IDMsg::MergeFrom(const IDMsg& from)
  1824. {
  1825. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.IDMsg)
  1826. GOOGLE_DCHECK_NE(&from, this);
  1827. uint32_t cached_has_bits = 0;
  1828. (void)cached_has_bits;
  1829. if (from._internal_player_id() != 0)
  1830. {
  1831. _internal_set_player_id(from._internal_player_id());
  1832. }
  1833. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1834. }
  1835. void IDMsg::CopyFrom(const IDMsg& from)
  1836. {
  1837. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.IDMsg)
  1838. if (&from == this)
  1839. return;
  1840. Clear();
  1841. MergeFrom(from);
  1842. }
  1843. bool IDMsg::IsInitialized() const
  1844. {
  1845. return true;
  1846. }
  1847. void IDMsg::InternalSwap(IDMsg* other)
  1848. {
  1849. using std::swap;
  1850. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1851. swap(player_id_, other->player_id_);
  1852. }
  1853. ::PROTOBUF_NAMESPACE_ID::Metadata IDMsg::GetMetadata() const
  1854. {
  1855. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1856. &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[5]
  1857. );
  1858. }
  1859. // ===================================================================
  1860. class TreatAndRescueMsg::_Internal
  1861. {
  1862. public:
  1863. };
  1864. TreatAndRescueMsg::TreatAndRescueMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  1865. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  1866. {
  1867. SharedCtor();
  1868. if (!is_message_owned)
  1869. {
  1870. RegisterArenaDtor(arena);
  1871. }
  1872. // @@protoc_insertion_point(arena_constructor:protobuf.TreatAndRescueMsg)
  1873. }
  1874. TreatAndRescueMsg::TreatAndRescueMsg(const TreatAndRescueMsg& from) :
  1875. ::PROTOBUF_NAMESPACE_ID::Message()
  1876. {
  1877. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1878. ::memcpy(&player_id_, &from.player_id_, static_cast<size_t>(reinterpret_cast<char*>(&to_player_id_) - reinterpret_cast<char*>(&player_id_)) + sizeof(to_player_id_));
  1879. // @@protoc_insertion_point(copy_constructor:protobuf.TreatAndRescueMsg)
  1880. }
  1881. inline void TreatAndRescueMsg::SharedCtor()
  1882. {
  1883. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(reinterpret_cast<char*>(&player_id_) - reinterpret_cast<char*>(this)), 0, static_cast<size_t>(reinterpret_cast<char*>(&to_player_id_) - reinterpret_cast<char*>(&player_id_)) + sizeof(to_player_id_));
  1884. }
  1885. TreatAndRescueMsg::~TreatAndRescueMsg()
  1886. {
  1887. // @@protoc_insertion_point(destructor:protobuf.TreatAndRescueMsg)
  1888. if (GetArenaForAllocation() != nullptr)
  1889. return;
  1890. SharedDtor();
  1891. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1892. }
  1893. inline void TreatAndRescueMsg::SharedDtor()
  1894. {
  1895. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1896. }
  1897. void TreatAndRescueMsg::ArenaDtor(void* object)
  1898. {
  1899. TreatAndRescueMsg* _this = reinterpret_cast<TreatAndRescueMsg*>(object);
  1900. (void)_this;
  1901. }
  1902. void TreatAndRescueMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*)
  1903. {
  1904. }
  1905. void TreatAndRescueMsg::SetCachedSize(int size) const
  1906. {
  1907. _cached_size_.Set(size);
  1908. }
  1909. void TreatAndRescueMsg::Clear()
  1910. {
  1911. // @@protoc_insertion_point(message_clear_start:protobuf.TreatAndRescueMsg)
  1912. uint32_t cached_has_bits = 0;
  1913. // Prevent compiler warnings about cached_has_bits being unused
  1914. (void)cached_has_bits;
  1915. ::memset(&player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&to_player_id_) - reinterpret_cast<char*>(&player_id_)) + sizeof(to_player_id_));
  1916. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1917. }
  1918. const char* TreatAndRescueMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
  1919. {
  1920. #define CHK_(x) \
  1921. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  1922. goto failure
  1923. while (!ctx->Done(&ptr))
  1924. {
  1925. uint32_t tag;
  1926. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1927. switch (tag >> 3)
  1928. {
  1929. // int64 player_id = 1;
  1930. case 1:
  1931. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  1932. {
  1933. player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1934. CHK_(ptr);
  1935. }
  1936. else
  1937. goto handle_unusual;
  1938. continue;
  1939. // int64 to_player_id = 2;
  1940. case 2:
  1941. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  1942. {
  1943. to_player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1944. CHK_(ptr);
  1945. }
  1946. else
  1947. goto handle_unusual;
  1948. continue;
  1949. default:
  1950. goto handle_unusual;
  1951. } // switch
  1952. handle_unusual:
  1953. if ((tag == 0) || ((tag & 7) == 4))
  1954. {
  1955. CHK_(ptr);
  1956. ctx->SetLastTag(tag);
  1957. goto message_done;
  1958. }
  1959. ptr = UnknownFieldParse(
  1960. tag,
  1961. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1962. ptr,
  1963. ctx
  1964. );
  1965. CHK_(ptr != nullptr);
  1966. } // while
  1967. message_done:
  1968. return ptr;
  1969. failure:
  1970. ptr = nullptr;
  1971. goto message_done;
  1972. #undef CHK_
  1973. }
  1974. uint8_t* TreatAndRescueMsg::_InternalSerialize(
  1975. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  1976. ) const
  1977. {
  1978. // @@protoc_insertion_point(serialize_to_array_start:protobuf.TreatAndRescueMsg)
  1979. uint32_t cached_has_bits = 0;
  1980. (void)cached_has_bits;
  1981. // int64 player_id = 1;
  1982. if (this->_internal_player_id() != 0)
  1983. {
  1984. target = stream->EnsureSpace(target);
  1985. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target);
  1986. }
  1987. // int64 to_player_id = 2;
  1988. if (this->_internal_to_player_id() != 0)
  1989. {
  1990. target = stream->EnsureSpace(target);
  1991. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_to_player_id(), target);
  1992. }
  1993. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  1994. {
  1995. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1996. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  1997. );
  1998. }
  1999. // @@protoc_insertion_point(serialize_to_array_end:protobuf.TreatAndRescueMsg)
  2000. return target;
  2001. }
  2002. size_t TreatAndRescueMsg::ByteSizeLong() const
  2003. {
  2004. // @@protoc_insertion_point(message_byte_size_start:protobuf.TreatAndRescueMsg)
  2005. size_t total_size = 0;
  2006. uint32_t cached_has_bits = 0;
  2007. // Prevent compiler warnings about cached_has_bits being unused
  2008. (void)cached_has_bits;
  2009. // int64 player_id = 1;
  2010. if (this->_internal_player_id() != 0)
  2011. {
  2012. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
  2013. }
  2014. // int64 to_player_id = 2;
  2015. if (this->_internal_to_player_id() != 0)
  2016. {
  2017. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_to_player_id());
  2018. }
  2019. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2020. }
  2021. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TreatAndRescueMsg::_class_data_ = {
  2022. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2023. TreatAndRescueMsg::MergeImpl};
  2024. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* TreatAndRescueMsg::GetClassData() const
  2025. {
  2026. return &_class_data_;
  2027. }
  2028. void TreatAndRescueMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from)
  2029. {
  2030. static_cast<TreatAndRescueMsg*>(to)->MergeFrom(
  2031. static_cast<const TreatAndRescueMsg&>(from)
  2032. );
  2033. }
  2034. void TreatAndRescueMsg::MergeFrom(const TreatAndRescueMsg& from)
  2035. {
  2036. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.TreatAndRescueMsg)
  2037. GOOGLE_DCHECK_NE(&from, this);
  2038. uint32_t cached_has_bits = 0;
  2039. (void)cached_has_bits;
  2040. if (from._internal_player_id() != 0)
  2041. {
  2042. _internal_set_player_id(from._internal_player_id());
  2043. }
  2044. if (from._internal_to_player_id() != 0)
  2045. {
  2046. _internal_set_to_player_id(from._internal_to_player_id());
  2047. }
  2048. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2049. }
  2050. void TreatAndRescueMsg::CopyFrom(const TreatAndRescueMsg& from)
  2051. {
  2052. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.TreatAndRescueMsg)
  2053. if (&from == this)
  2054. return;
  2055. Clear();
  2056. MergeFrom(from);
  2057. }
  2058. bool TreatAndRescueMsg::IsInitialized() const
  2059. {
  2060. return true;
  2061. }
  2062. void TreatAndRescueMsg::InternalSwap(TreatAndRescueMsg* other)
  2063. {
  2064. using std::swap;
  2065. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2066. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2067. PROTOBUF_FIELD_OFFSET(TreatAndRescueMsg, to_player_id_) + sizeof(TreatAndRescueMsg::to_player_id_) - PROTOBUF_FIELD_OFFSET(TreatAndRescueMsg, player_id_)>(
  2068. reinterpret_cast<char*>(&player_id_),
  2069. reinterpret_cast<char*>(&other->player_id_)
  2070. );
  2071. }
  2072. ::PROTOBUF_NAMESPACE_ID::Metadata TreatAndRescueMsg::GetMetadata() const
  2073. {
  2074. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2075. &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[6]
  2076. );
  2077. }
  2078. // ===================================================================
  2079. class SkillMsg::_Internal
  2080. {
  2081. public:
  2082. };
  2083. SkillMsg::SkillMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  2084. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  2085. {
  2086. SharedCtor();
  2087. if (!is_message_owned)
  2088. {
  2089. RegisterArenaDtor(arena);
  2090. }
  2091. // @@protoc_insertion_point(arena_constructor:protobuf.SkillMsg)
  2092. }
  2093. SkillMsg::SkillMsg(const SkillMsg& from) :
  2094. ::PROTOBUF_NAMESPACE_ID::Message()
  2095. {
  2096. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2097. ::memcpy(&player_id_, &from.player_id_, static_cast<size_t>(reinterpret_cast<char*>(&skill_id_) - reinterpret_cast<char*>(&player_id_)) + sizeof(skill_id_));
  2098. // @@protoc_insertion_point(copy_constructor:protobuf.SkillMsg)
  2099. }
  2100. inline void SkillMsg::SharedCtor()
  2101. {
  2102. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(reinterpret_cast<char*>(&player_id_) - reinterpret_cast<char*>(this)), 0, static_cast<size_t>(reinterpret_cast<char*>(&skill_id_) - reinterpret_cast<char*>(&player_id_)) + sizeof(skill_id_));
  2103. }
  2104. SkillMsg::~SkillMsg()
  2105. {
  2106. // @@protoc_insertion_point(destructor:protobuf.SkillMsg)
  2107. if (GetArenaForAllocation() != nullptr)
  2108. return;
  2109. SharedDtor();
  2110. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2111. }
  2112. inline void SkillMsg::SharedDtor()
  2113. {
  2114. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2115. }
  2116. void SkillMsg::ArenaDtor(void* object)
  2117. {
  2118. SkillMsg* _this = reinterpret_cast<SkillMsg*>(object);
  2119. (void)_this;
  2120. }
  2121. void SkillMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*)
  2122. {
  2123. }
  2124. void SkillMsg::SetCachedSize(int size) const
  2125. {
  2126. _cached_size_.Set(size);
  2127. }
  2128. void SkillMsg::Clear()
  2129. {
  2130. // @@protoc_insertion_point(message_clear_start:protobuf.SkillMsg)
  2131. uint32_t cached_has_bits = 0;
  2132. // Prevent compiler warnings about cached_has_bits being unused
  2133. (void)cached_has_bits;
  2134. ::memset(&player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&skill_id_) - reinterpret_cast<char*>(&player_id_)) + sizeof(skill_id_));
  2135. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2136. }
  2137. const char* SkillMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
  2138. {
  2139. #define CHK_(x) \
  2140. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  2141. goto failure
  2142. while (!ctx->Done(&ptr))
  2143. {
  2144. uint32_t tag;
  2145. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2146. switch (tag >> 3)
  2147. {
  2148. // int64 player_id = 1;
  2149. case 1:
  2150. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  2151. {
  2152. player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2153. CHK_(ptr);
  2154. }
  2155. else
  2156. goto handle_unusual;
  2157. continue;
  2158. // int32 skill_id = 2;
  2159. case 2:
  2160. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  2161. {
  2162. skill_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2163. CHK_(ptr);
  2164. }
  2165. else
  2166. goto handle_unusual;
  2167. continue;
  2168. default:
  2169. goto handle_unusual;
  2170. } // switch
  2171. handle_unusual:
  2172. if ((tag == 0) || ((tag & 7) == 4))
  2173. {
  2174. CHK_(ptr);
  2175. ctx->SetLastTag(tag);
  2176. goto message_done;
  2177. }
  2178. ptr = UnknownFieldParse(
  2179. tag,
  2180. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2181. ptr,
  2182. ctx
  2183. );
  2184. CHK_(ptr != nullptr);
  2185. } // while
  2186. message_done:
  2187. return ptr;
  2188. failure:
  2189. ptr = nullptr;
  2190. goto message_done;
  2191. #undef CHK_
  2192. }
  2193. uint8_t* SkillMsg::_InternalSerialize(
  2194. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  2195. ) const
  2196. {
  2197. // @@protoc_insertion_point(serialize_to_array_start:protobuf.SkillMsg)
  2198. uint32_t cached_has_bits = 0;
  2199. (void)cached_has_bits;
  2200. // int64 player_id = 1;
  2201. if (this->_internal_player_id() != 0)
  2202. {
  2203. target = stream->EnsureSpace(target);
  2204. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target);
  2205. }
  2206. // int32 skill_id = 2;
  2207. if (this->_internal_skill_id() != 0)
  2208. {
  2209. target = stream->EnsureSpace(target);
  2210. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_skill_id(), target);
  2211. }
  2212. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  2213. {
  2214. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2215. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  2216. );
  2217. }
  2218. // @@protoc_insertion_point(serialize_to_array_end:protobuf.SkillMsg)
  2219. return target;
  2220. }
  2221. size_t SkillMsg::ByteSizeLong() const
  2222. {
  2223. // @@protoc_insertion_point(message_byte_size_start:protobuf.SkillMsg)
  2224. size_t total_size = 0;
  2225. uint32_t cached_has_bits = 0;
  2226. // Prevent compiler warnings about cached_has_bits being unused
  2227. (void)cached_has_bits;
  2228. // int64 player_id = 1;
  2229. if (this->_internal_player_id() != 0)
  2230. {
  2231. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
  2232. }
  2233. // int32 skill_id = 2;
  2234. if (this->_internal_skill_id() != 0)
  2235. {
  2236. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_skill_id());
  2237. }
  2238. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2239. }
  2240. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SkillMsg::_class_data_ = {
  2241. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2242. SkillMsg::MergeImpl};
  2243. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* SkillMsg::GetClassData() const
  2244. {
  2245. return &_class_data_;
  2246. }
  2247. void SkillMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from)
  2248. {
  2249. static_cast<SkillMsg*>(to)->MergeFrom(
  2250. static_cast<const SkillMsg&>(from)
  2251. );
  2252. }
  2253. void SkillMsg::MergeFrom(const SkillMsg& from)
  2254. {
  2255. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.SkillMsg)
  2256. GOOGLE_DCHECK_NE(&from, this);
  2257. uint32_t cached_has_bits = 0;
  2258. (void)cached_has_bits;
  2259. if (from._internal_player_id() != 0)
  2260. {
  2261. _internal_set_player_id(from._internal_player_id());
  2262. }
  2263. if (from._internal_skill_id() != 0)
  2264. {
  2265. _internal_set_skill_id(from._internal_skill_id());
  2266. }
  2267. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2268. }
  2269. void SkillMsg::CopyFrom(const SkillMsg& from)
  2270. {
  2271. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.SkillMsg)
  2272. if (&from == this)
  2273. return;
  2274. Clear();
  2275. MergeFrom(from);
  2276. }
  2277. bool SkillMsg::IsInitialized() const
  2278. {
  2279. return true;
  2280. }
  2281. void SkillMsg::InternalSwap(SkillMsg* other)
  2282. {
  2283. using std::swap;
  2284. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2285. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2286. PROTOBUF_FIELD_OFFSET(SkillMsg, skill_id_) + sizeof(SkillMsg::skill_id_) - PROTOBUF_FIELD_OFFSET(SkillMsg, player_id_)>(
  2287. reinterpret_cast<char*>(&player_id_),
  2288. reinterpret_cast<char*>(&other->player_id_)
  2289. );
  2290. }
  2291. ::PROTOBUF_NAMESPACE_ID::Metadata SkillMsg::GetMetadata() const
  2292. {
  2293. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2294. &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[7]
  2295. );
  2296. }
  2297. // @@protoc_insertion_point(namespace_scope)
  2298. } // namespace protobuf
  2299. PROTOBUF_NAMESPACE_OPEN
  2300. template<>
  2301. PROTOBUF_NOINLINE ::protobuf::PlayerMsg* Arena::CreateMaybeMessage<::protobuf::PlayerMsg>(Arena* arena)
  2302. {
  2303. return Arena::CreateMessageInternal<::protobuf::PlayerMsg>(arena);
  2304. }
  2305. template<>
  2306. PROTOBUF_NOINLINE ::protobuf::MoveMsg* Arena::CreateMaybeMessage<::protobuf::MoveMsg>(Arena* arena)
  2307. {
  2308. return Arena::CreateMessageInternal<::protobuf::MoveMsg>(arena);
  2309. }
  2310. template<>
  2311. PROTOBUF_NOINLINE ::protobuf::PropMsg* Arena::CreateMaybeMessage<::protobuf::PropMsg>(Arena* arena)
  2312. {
  2313. return Arena::CreateMessageInternal<::protobuf::PropMsg>(arena);
  2314. }
  2315. template<>
  2316. PROTOBUF_NOINLINE ::protobuf::SendMsg* Arena::CreateMaybeMessage<::protobuf::SendMsg>(Arena* arena)
  2317. {
  2318. return Arena::CreateMessageInternal<::protobuf::SendMsg>(arena);
  2319. }
  2320. template<>
  2321. PROTOBUF_NOINLINE ::protobuf::AttackMsg* Arena::CreateMaybeMessage<::protobuf::AttackMsg>(Arena* arena)
  2322. {
  2323. return Arena::CreateMessageInternal<::protobuf::AttackMsg>(arena);
  2324. }
  2325. template<>
  2326. PROTOBUF_NOINLINE ::protobuf::IDMsg* Arena::CreateMaybeMessage<::protobuf::IDMsg>(Arena* arena)
  2327. {
  2328. return Arena::CreateMessageInternal<::protobuf::IDMsg>(arena);
  2329. }
  2330. template<>
  2331. PROTOBUF_NOINLINE ::protobuf::TreatAndRescueMsg* Arena::CreateMaybeMessage<::protobuf::TreatAndRescueMsg>(Arena* arena)
  2332. {
  2333. return Arena::CreateMessageInternal<::protobuf::TreatAndRescueMsg>(arena);
  2334. }
  2335. template<>
  2336. PROTOBUF_NOINLINE ::protobuf::SkillMsg* Arena::CreateMaybeMessage<::protobuf::SkillMsg>(Arena* arena)
  2337. {
  2338. return Arena::CreateMessageInternal<::protobuf::SkillMsg>(arena);
  2339. }
  2340. PROTOBUF_NAMESPACE_CLOSE
  2341. // @@protoc_insertion_point(global_scope)
  2342. #include <google/protobuf/port_undef.inc>