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.h 76 kB

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