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

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