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

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