fish_rank.pb.h 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: fish_rank.proto
  3. #ifndef PROTOBUF_fish_5frank_2eproto__INCLUDED
  4. #define PROTOBUF_fish_5frank_2eproto__INCLUDED
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 2005000
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/generated_message_util.h>
  18. #include <google/protobuf/message.h>
  19. #include <google/protobuf/repeated_field.h>
  20. #include <google/protobuf/extension_set.h>
  21. #include <google/protobuf/unknown_field_set.h>
  22. #include "fish_def.pb.h"
  23. // @@protoc_insertion_point(includes)
  24. namespace fish_protocols {
  25. // Internal implementation detail -- do not call these.
  26. void protobuf_AddDesc_fish_5frank_2eproto();
  27. void protobuf_AssignDesc_fish_5frank_2eproto();
  28. void protobuf_ShutdownFile_fish_5frank_2eproto();
  29. class RankInfo;
  30. class packetc2l_req_torpedo_rank;
  31. class packetl2c_req_torpedo_rank_result;
  32. // ===================================================================
  33. class RankInfo : public ::google::protobuf::Message {
  34. public:
  35. RankInfo();
  36. virtual ~RankInfo();
  37. RankInfo(const RankInfo& from);
  38. inline RankInfo& operator=(const RankInfo& from) {
  39. CopyFrom(from);
  40. return *this;
  41. }
  42. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  43. return _unknown_fields_;
  44. }
  45. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  46. return &_unknown_fields_;
  47. }
  48. static const ::google::protobuf::Descriptor* descriptor();
  49. static const RankInfo& default_instance();
  50. void Swap(RankInfo* other);
  51. // implements Message ----------------------------------------------
  52. RankInfo* New() const;
  53. void CopyFrom(const ::google::protobuf::Message& from);
  54. void MergeFrom(const ::google::protobuf::Message& from);
  55. void CopyFrom(const RankInfo& from);
  56. void MergeFrom(const RankInfo& from);
  57. void Clear();
  58. bool IsInitialized() const;
  59. int ByteSize() const;
  60. bool MergePartialFromCodedStream(
  61. ::google::protobuf::io::CodedInputStream* input);
  62. void SerializeWithCachedSizes(
  63. ::google::protobuf::io::CodedOutputStream* output) const;
  64. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  65. int GetCachedSize() const { return _cached_size_; }
  66. private:
  67. void SharedCtor();
  68. void SharedDtor();
  69. void SetCachedSize(int size) const;
  70. public:
  71. ::google::protobuf::Metadata GetMetadata() const;
  72. // nested types ----------------------------------------------------
  73. // accessors -------------------------------------------------------
  74. // optional int32 playerId = 1;
  75. inline bool has_playerid() const;
  76. inline void clear_playerid();
  77. static const int kPlayerIdFieldNumber = 1;
  78. inline ::google::protobuf::int32 playerid() const;
  79. inline void set_playerid(::google::protobuf::int32 value);
  80. // optional string nickName = 2;
  81. inline bool has_nickname() const;
  82. inline void clear_nickname();
  83. static const int kNickNameFieldNumber = 2;
  84. inline const ::std::string& nickname() const;
  85. inline void set_nickname(const ::std::string& value);
  86. inline void set_nickname(const char* value);
  87. inline void set_nickname(const char* value, size_t size);
  88. inline ::std::string* mutable_nickname();
  89. inline ::std::string* release_nickname();
  90. inline void set_allocated_nickname(::std::string* nickname);
  91. // optional int32 gold = 3;
  92. inline bool has_gold() const;
  93. inline void clear_gold();
  94. static const int kGoldFieldNumber = 3;
  95. inline ::google::protobuf::int32 gold() const;
  96. inline void set_gold(::google::protobuf::int32 value);
  97. // optional int32 vipLevel = 4;
  98. inline bool has_viplevel() const;
  99. inline void clear_viplevel();
  100. static const int kVipLevelFieldNumber = 4;
  101. inline ::google::protobuf::int32 viplevel() const;
  102. inline void set_viplevel(::google::protobuf::int32 value);
  103. // optional int32 playerlv = 5;
  104. inline bool has_playerlv() const;
  105. inline void clear_playerlv();
  106. static const int kPlayerlvFieldNumber = 5;
  107. inline ::google::protobuf::int32 playerlv() const;
  108. inline void set_playerlv(::google::protobuf::int32 value);
  109. // optional int32 headid = 6;
  110. inline bool has_headid() const;
  111. inline void clear_headid();
  112. static const int kHeadidFieldNumber = 6;
  113. inline ::google::protobuf::int32 headid() const;
  114. inline void set_headid(::google::protobuf::int32 value);
  115. // optional int32 frameid = 7;
  116. inline bool has_frameid() const;
  117. inline void clear_frameid();
  118. static const int kFrameidFieldNumber = 7;
  119. inline ::google::protobuf::int32 frameid() const;
  120. inline void set_frameid(::google::protobuf::int32 value);
  121. // @@protoc_insertion_point(class_scope:fish_protocols.RankInfo)
  122. private:
  123. inline void set_has_playerid();
  124. inline void clear_has_playerid();
  125. inline void set_has_nickname();
  126. inline void clear_has_nickname();
  127. inline void set_has_gold();
  128. inline void clear_has_gold();
  129. inline void set_has_viplevel();
  130. inline void clear_has_viplevel();
  131. inline void set_has_playerlv();
  132. inline void clear_has_playerlv();
  133. inline void set_has_headid();
  134. inline void clear_has_headid();
  135. inline void set_has_frameid();
  136. inline void clear_has_frameid();
  137. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  138. ::std::string* nickname_;
  139. ::google::protobuf::int32 playerid_;
  140. ::google::protobuf::int32 gold_;
  141. ::google::protobuf::int32 viplevel_;
  142. ::google::protobuf::int32 playerlv_;
  143. ::google::protobuf::int32 headid_;
  144. ::google::protobuf::int32 frameid_;
  145. mutable int _cached_size_;
  146. ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32];
  147. friend void protobuf_AddDesc_fish_5frank_2eproto();
  148. friend void protobuf_AssignDesc_fish_5frank_2eproto();
  149. friend void protobuf_ShutdownFile_fish_5frank_2eproto();
  150. void InitAsDefaultInstance();
  151. static RankInfo* default_instance_;
  152. };
  153. // -------------------------------------------------------------------
  154. class packetc2l_req_torpedo_rank : public ::google::protobuf::Message {
  155. public:
  156. packetc2l_req_torpedo_rank();
  157. virtual ~packetc2l_req_torpedo_rank();
  158. packetc2l_req_torpedo_rank(const packetc2l_req_torpedo_rank& from);
  159. inline packetc2l_req_torpedo_rank& operator=(const packetc2l_req_torpedo_rank& from) {
  160. CopyFrom(from);
  161. return *this;
  162. }
  163. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  164. return _unknown_fields_;
  165. }
  166. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  167. return &_unknown_fields_;
  168. }
  169. static const ::google::protobuf::Descriptor* descriptor();
  170. static const packetc2l_req_torpedo_rank& default_instance();
  171. void Swap(packetc2l_req_torpedo_rank* other);
  172. // implements Message ----------------------------------------------
  173. packetc2l_req_torpedo_rank* New() const;
  174. void CopyFrom(const ::google::protobuf::Message& from);
  175. void MergeFrom(const ::google::protobuf::Message& from);
  176. void CopyFrom(const packetc2l_req_torpedo_rank& from);
  177. void MergeFrom(const packetc2l_req_torpedo_rank& from);
  178. void Clear();
  179. bool IsInitialized() const;
  180. int ByteSize() const;
  181. bool MergePartialFromCodedStream(
  182. ::google::protobuf::io::CodedInputStream* input);
  183. void SerializeWithCachedSizes(
  184. ::google::protobuf::io::CodedOutputStream* output) const;
  185. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  186. int GetCachedSize() const { return _cached_size_; }
  187. private:
  188. void SharedCtor();
  189. void SharedDtor();
  190. void SetCachedSize(int size) const;
  191. public:
  192. ::google::protobuf::Metadata GetMetadata() const;
  193. // nested types ----------------------------------------------------
  194. // accessors -------------------------------------------------------
  195. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_req_torpedo_rank];
  196. inline bool has_packet_id() const;
  197. inline void clear_packet_id();
  198. static const int kPacketIdFieldNumber = 1;
  199. inline ::fish_protocols::e_server_msg_type packet_id() const;
  200. inline void set_packet_id(::fish_protocols::e_server_msg_type value);
  201. // optional int32 torpedoId = 2;
  202. inline bool has_torpedoid() const;
  203. inline void clear_torpedoid();
  204. static const int kTorpedoIdFieldNumber = 2;
  205. inline ::google::protobuf::int32 torpedoid() const;
  206. inline void set_torpedoid(::google::protobuf::int32 value);
  207. // @@protoc_insertion_point(class_scope:fish_protocols.packetc2l_req_torpedo_rank)
  208. private:
  209. inline void set_has_packet_id();
  210. inline void clear_has_packet_id();
  211. inline void set_has_torpedoid();
  212. inline void clear_has_torpedoid();
  213. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  214. int packet_id_;
  215. ::google::protobuf::int32 torpedoid_;
  216. mutable int _cached_size_;
  217. ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
  218. friend void protobuf_AddDesc_fish_5frank_2eproto();
  219. friend void protobuf_AssignDesc_fish_5frank_2eproto();
  220. friend void protobuf_ShutdownFile_fish_5frank_2eproto();
  221. void InitAsDefaultInstance();
  222. static packetc2l_req_torpedo_rank* default_instance_;
  223. };
  224. // -------------------------------------------------------------------
  225. class packetl2c_req_torpedo_rank_result : public ::google::protobuf::Message {
  226. public:
  227. packetl2c_req_torpedo_rank_result();
  228. virtual ~packetl2c_req_torpedo_rank_result();
  229. packetl2c_req_torpedo_rank_result(const packetl2c_req_torpedo_rank_result& from);
  230. inline packetl2c_req_torpedo_rank_result& operator=(const packetl2c_req_torpedo_rank_result& from) {
  231. CopyFrom(from);
  232. return *this;
  233. }
  234. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  235. return _unknown_fields_;
  236. }
  237. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  238. return &_unknown_fields_;
  239. }
  240. static const ::google::protobuf::Descriptor* descriptor();
  241. static const packetl2c_req_torpedo_rank_result& default_instance();
  242. void Swap(packetl2c_req_torpedo_rank_result* other);
  243. // implements Message ----------------------------------------------
  244. packetl2c_req_torpedo_rank_result* New() const;
  245. void CopyFrom(const ::google::protobuf::Message& from);
  246. void MergeFrom(const ::google::protobuf::Message& from);
  247. void CopyFrom(const packetl2c_req_torpedo_rank_result& from);
  248. void MergeFrom(const packetl2c_req_torpedo_rank_result& from);
  249. void Clear();
  250. bool IsInitialized() const;
  251. int ByteSize() const;
  252. bool MergePartialFromCodedStream(
  253. ::google::protobuf::io::CodedInputStream* input);
  254. void SerializeWithCachedSizes(
  255. ::google::protobuf::io::CodedOutputStream* output) const;
  256. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  257. int GetCachedSize() const { return _cached_size_; }
  258. private:
  259. void SharedCtor();
  260. void SharedDtor();
  261. void SetCachedSize(int size) const;
  262. public:
  263. ::google::protobuf::Metadata GetMetadata() const;
  264. // nested types ----------------------------------------------------
  265. // accessors -------------------------------------------------------
  266. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_req_torpedo_rank_result];
  267. inline bool has_packet_id() const;
  268. inline void clear_packet_id();
  269. static const int kPacketIdFieldNumber = 1;
  270. inline ::fish_protocols::e_server_msg_type packet_id() const;
  271. inline void set_packet_id(::fish_protocols::e_server_msg_type value);
  272. // optional int32 torpedoId = 2;
  273. inline bool has_torpedoid() const;
  274. inline void clear_torpedoid();
  275. static const int kTorpedoIdFieldNumber = 2;
  276. inline ::google::protobuf::int32 torpedoid() const;
  277. inline void set_torpedoid(::google::protobuf::int32 value);
  278. // repeated .fish_protocols.RankInfo rankList = 3;
  279. inline int ranklist_size() const;
  280. inline void clear_ranklist();
  281. static const int kRankListFieldNumber = 3;
  282. inline const ::fish_protocols::RankInfo& ranklist(int index) const;
  283. inline ::fish_protocols::RankInfo* mutable_ranklist(int index);
  284. inline ::fish_protocols::RankInfo* add_ranklist();
  285. inline const ::google::protobuf::RepeatedPtrField< ::fish_protocols::RankInfo >&
  286. ranklist() const;
  287. inline ::google::protobuf::RepeatedPtrField< ::fish_protocols::RankInfo >*
  288. mutable_ranklist();
  289. // optional int32 selfRank = 4;
  290. inline bool has_selfrank() const;
  291. inline void clear_selfrank();
  292. static const int kSelfRankFieldNumber = 4;
  293. inline ::google::protobuf::int32 selfrank() const;
  294. inline void set_selfrank(::google::protobuf::int32 value);
  295. // optional int32 selfGold = 5;
  296. inline bool has_selfgold() const;
  297. inline void clear_selfgold();
  298. static const int kSelfGoldFieldNumber = 5;
  299. inline ::google::protobuf::int32 selfgold() const;
  300. inline void set_selfgold(::google::protobuf::int32 value);
  301. // @@protoc_insertion_point(class_scope:fish_protocols.packetl2c_req_torpedo_rank_result)
  302. private:
  303. inline void set_has_packet_id();
  304. inline void clear_has_packet_id();
  305. inline void set_has_torpedoid();
  306. inline void clear_has_torpedoid();
  307. inline void set_has_selfrank();
  308. inline void clear_has_selfrank();
  309. inline void set_has_selfgold();
  310. inline void clear_has_selfgold();
  311. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  312. int packet_id_;
  313. ::google::protobuf::int32 torpedoid_;
  314. ::google::protobuf::RepeatedPtrField< ::fish_protocols::RankInfo > ranklist_;
  315. ::google::protobuf::int32 selfrank_;
  316. ::google::protobuf::int32 selfgold_;
  317. mutable int _cached_size_;
  318. ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
  319. friend void protobuf_AddDesc_fish_5frank_2eproto();
  320. friend void protobuf_AssignDesc_fish_5frank_2eproto();
  321. friend void protobuf_ShutdownFile_fish_5frank_2eproto();
  322. void InitAsDefaultInstance();
  323. static packetl2c_req_torpedo_rank_result* default_instance_;
  324. };
  325. // ===================================================================
  326. // ===================================================================
  327. // RankInfo
  328. // optional int32 playerId = 1;
  329. inline bool RankInfo::has_playerid() const {
  330. return (_has_bits_[0] & 0x00000001u) != 0;
  331. }
  332. inline void RankInfo::set_has_playerid() {
  333. _has_bits_[0] |= 0x00000001u;
  334. }
  335. inline void RankInfo::clear_has_playerid() {
  336. _has_bits_[0] &= ~0x00000001u;
  337. }
  338. inline void RankInfo::clear_playerid() {
  339. playerid_ = 0;
  340. clear_has_playerid();
  341. }
  342. inline ::google::protobuf::int32 RankInfo::playerid() const {
  343. return playerid_;
  344. }
  345. inline void RankInfo::set_playerid(::google::protobuf::int32 value) {
  346. set_has_playerid();
  347. playerid_ = value;
  348. }
  349. // optional string nickName = 2;
  350. inline bool RankInfo::has_nickname() const {
  351. return (_has_bits_[0] & 0x00000002u) != 0;
  352. }
  353. inline void RankInfo::set_has_nickname() {
  354. _has_bits_[0] |= 0x00000002u;
  355. }
  356. inline void RankInfo::clear_has_nickname() {
  357. _has_bits_[0] &= ~0x00000002u;
  358. }
  359. inline void RankInfo::clear_nickname() {
  360. if (nickname_ != &::google::protobuf::internal::kEmptyString) {
  361. nickname_->clear();
  362. }
  363. clear_has_nickname();
  364. }
  365. inline const ::std::string& RankInfo::nickname() const {
  366. return *nickname_;
  367. }
  368. inline void RankInfo::set_nickname(const ::std::string& value) {
  369. set_has_nickname();
  370. if (nickname_ == &::google::protobuf::internal::kEmptyString) {
  371. nickname_ = new ::std::string;
  372. }
  373. nickname_->assign(value);
  374. }
  375. inline void RankInfo::set_nickname(const char* value) {
  376. set_has_nickname();
  377. if (nickname_ == &::google::protobuf::internal::kEmptyString) {
  378. nickname_ = new ::std::string;
  379. }
  380. nickname_->assign(value);
  381. }
  382. inline void RankInfo::set_nickname(const char* value, size_t size) {
  383. set_has_nickname();
  384. if (nickname_ == &::google::protobuf::internal::kEmptyString) {
  385. nickname_ = new ::std::string;
  386. }
  387. nickname_->assign(reinterpret_cast<const char*>(value), size);
  388. }
  389. inline ::std::string* RankInfo::mutable_nickname() {
  390. set_has_nickname();
  391. if (nickname_ == &::google::protobuf::internal::kEmptyString) {
  392. nickname_ = new ::std::string;
  393. }
  394. return nickname_;
  395. }
  396. inline ::std::string* RankInfo::release_nickname() {
  397. clear_has_nickname();
  398. if (nickname_ == &::google::protobuf::internal::kEmptyString) {
  399. return NULL;
  400. } else {
  401. ::std::string* temp = nickname_;
  402. nickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  403. return temp;
  404. }
  405. }
  406. inline void RankInfo::set_allocated_nickname(::std::string* nickname) {
  407. if (nickname_ != &::google::protobuf::internal::kEmptyString) {
  408. delete nickname_;
  409. }
  410. if (nickname) {
  411. set_has_nickname();
  412. nickname_ = nickname;
  413. } else {
  414. clear_has_nickname();
  415. nickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  416. }
  417. }
  418. // optional int32 gold = 3;
  419. inline bool RankInfo::has_gold() const {
  420. return (_has_bits_[0] & 0x00000004u) != 0;
  421. }
  422. inline void RankInfo::set_has_gold() {
  423. _has_bits_[0] |= 0x00000004u;
  424. }
  425. inline void RankInfo::clear_has_gold() {
  426. _has_bits_[0] &= ~0x00000004u;
  427. }
  428. inline void RankInfo::clear_gold() {
  429. gold_ = 0;
  430. clear_has_gold();
  431. }
  432. inline ::google::protobuf::int32 RankInfo::gold() const {
  433. return gold_;
  434. }
  435. inline void RankInfo::set_gold(::google::protobuf::int32 value) {
  436. set_has_gold();
  437. gold_ = value;
  438. }
  439. // optional int32 vipLevel = 4;
  440. inline bool RankInfo::has_viplevel() const {
  441. return (_has_bits_[0] & 0x00000008u) != 0;
  442. }
  443. inline void RankInfo::set_has_viplevel() {
  444. _has_bits_[0] |= 0x00000008u;
  445. }
  446. inline void RankInfo::clear_has_viplevel() {
  447. _has_bits_[0] &= ~0x00000008u;
  448. }
  449. inline void RankInfo::clear_viplevel() {
  450. viplevel_ = 0;
  451. clear_has_viplevel();
  452. }
  453. inline ::google::protobuf::int32 RankInfo::viplevel() const {
  454. return viplevel_;
  455. }
  456. inline void RankInfo::set_viplevel(::google::protobuf::int32 value) {
  457. set_has_viplevel();
  458. viplevel_ = value;
  459. }
  460. // optional int32 playerlv = 5;
  461. inline bool RankInfo::has_playerlv() const {
  462. return (_has_bits_[0] & 0x00000010u) != 0;
  463. }
  464. inline void RankInfo::set_has_playerlv() {
  465. _has_bits_[0] |= 0x00000010u;
  466. }
  467. inline void RankInfo::clear_has_playerlv() {
  468. _has_bits_[0] &= ~0x00000010u;
  469. }
  470. inline void RankInfo::clear_playerlv() {
  471. playerlv_ = 0;
  472. clear_has_playerlv();
  473. }
  474. inline ::google::protobuf::int32 RankInfo::playerlv() const {
  475. return playerlv_;
  476. }
  477. inline void RankInfo::set_playerlv(::google::protobuf::int32 value) {
  478. set_has_playerlv();
  479. playerlv_ = value;
  480. }
  481. // optional int32 headid = 6;
  482. inline bool RankInfo::has_headid() const {
  483. return (_has_bits_[0] & 0x00000020u) != 0;
  484. }
  485. inline void RankInfo::set_has_headid() {
  486. _has_bits_[0] |= 0x00000020u;
  487. }
  488. inline void RankInfo::clear_has_headid() {
  489. _has_bits_[0] &= ~0x00000020u;
  490. }
  491. inline void RankInfo::clear_headid() {
  492. headid_ = 0;
  493. clear_has_headid();
  494. }
  495. inline ::google::protobuf::int32 RankInfo::headid() const {
  496. return headid_;
  497. }
  498. inline void RankInfo::set_headid(::google::protobuf::int32 value) {
  499. set_has_headid();
  500. headid_ = value;
  501. }
  502. // optional int32 frameid = 7;
  503. inline bool RankInfo::has_frameid() const {
  504. return (_has_bits_[0] & 0x00000040u) != 0;
  505. }
  506. inline void RankInfo::set_has_frameid() {
  507. _has_bits_[0] |= 0x00000040u;
  508. }
  509. inline void RankInfo::clear_has_frameid() {
  510. _has_bits_[0] &= ~0x00000040u;
  511. }
  512. inline void RankInfo::clear_frameid() {
  513. frameid_ = 0;
  514. clear_has_frameid();
  515. }
  516. inline ::google::protobuf::int32 RankInfo::frameid() const {
  517. return frameid_;
  518. }
  519. inline void RankInfo::set_frameid(::google::protobuf::int32 value) {
  520. set_has_frameid();
  521. frameid_ = value;
  522. }
  523. // -------------------------------------------------------------------
  524. // packetc2l_req_torpedo_rank
  525. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_req_torpedo_rank];
  526. inline bool packetc2l_req_torpedo_rank::has_packet_id() const {
  527. return (_has_bits_[0] & 0x00000001u) != 0;
  528. }
  529. inline void packetc2l_req_torpedo_rank::set_has_packet_id() {
  530. _has_bits_[0] |= 0x00000001u;
  531. }
  532. inline void packetc2l_req_torpedo_rank::clear_has_packet_id() {
  533. _has_bits_[0] &= ~0x00000001u;
  534. }
  535. inline void packetc2l_req_torpedo_rank::clear_packet_id() {
  536. packet_id_ = 10206;
  537. clear_has_packet_id();
  538. }
  539. inline ::fish_protocols::e_server_msg_type packetc2l_req_torpedo_rank::packet_id() const {
  540. return static_cast< ::fish_protocols::e_server_msg_type >(packet_id_);
  541. }
  542. inline void packetc2l_req_torpedo_rank::set_packet_id(::fish_protocols::e_server_msg_type value) {
  543. assert(::fish_protocols::e_server_msg_type_IsValid(value));
  544. set_has_packet_id();
  545. packet_id_ = value;
  546. }
  547. // optional int32 torpedoId = 2;
  548. inline bool packetc2l_req_torpedo_rank::has_torpedoid() const {
  549. return (_has_bits_[0] & 0x00000002u) != 0;
  550. }
  551. inline void packetc2l_req_torpedo_rank::set_has_torpedoid() {
  552. _has_bits_[0] |= 0x00000002u;
  553. }
  554. inline void packetc2l_req_torpedo_rank::clear_has_torpedoid() {
  555. _has_bits_[0] &= ~0x00000002u;
  556. }
  557. inline void packetc2l_req_torpedo_rank::clear_torpedoid() {
  558. torpedoid_ = 0;
  559. clear_has_torpedoid();
  560. }
  561. inline ::google::protobuf::int32 packetc2l_req_torpedo_rank::torpedoid() const {
  562. return torpedoid_;
  563. }
  564. inline void packetc2l_req_torpedo_rank::set_torpedoid(::google::protobuf::int32 value) {
  565. set_has_torpedoid();
  566. torpedoid_ = value;
  567. }
  568. // -------------------------------------------------------------------
  569. // packetl2c_req_torpedo_rank_result
  570. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_req_torpedo_rank_result];
  571. inline bool packetl2c_req_torpedo_rank_result::has_packet_id() const {
  572. return (_has_bits_[0] & 0x00000001u) != 0;
  573. }
  574. inline void packetl2c_req_torpedo_rank_result::set_has_packet_id() {
  575. _has_bits_[0] |= 0x00000001u;
  576. }
  577. inline void packetl2c_req_torpedo_rank_result::clear_has_packet_id() {
  578. _has_bits_[0] &= ~0x00000001u;
  579. }
  580. inline void packetl2c_req_torpedo_rank_result::clear_packet_id() {
  581. packet_id_ = 16205;
  582. clear_has_packet_id();
  583. }
  584. inline ::fish_protocols::e_server_msg_type packetl2c_req_torpedo_rank_result::packet_id() const {
  585. return static_cast< ::fish_protocols::e_server_msg_type >(packet_id_);
  586. }
  587. inline void packetl2c_req_torpedo_rank_result::set_packet_id(::fish_protocols::e_server_msg_type value) {
  588. assert(::fish_protocols::e_server_msg_type_IsValid(value));
  589. set_has_packet_id();
  590. packet_id_ = value;
  591. }
  592. // optional int32 torpedoId = 2;
  593. inline bool packetl2c_req_torpedo_rank_result::has_torpedoid() const {
  594. return (_has_bits_[0] & 0x00000002u) != 0;
  595. }
  596. inline void packetl2c_req_torpedo_rank_result::set_has_torpedoid() {
  597. _has_bits_[0] |= 0x00000002u;
  598. }
  599. inline void packetl2c_req_torpedo_rank_result::clear_has_torpedoid() {
  600. _has_bits_[0] &= ~0x00000002u;
  601. }
  602. inline void packetl2c_req_torpedo_rank_result::clear_torpedoid() {
  603. torpedoid_ = 0;
  604. clear_has_torpedoid();
  605. }
  606. inline ::google::protobuf::int32 packetl2c_req_torpedo_rank_result::torpedoid() const {
  607. return torpedoid_;
  608. }
  609. inline void packetl2c_req_torpedo_rank_result::set_torpedoid(::google::protobuf::int32 value) {
  610. set_has_torpedoid();
  611. torpedoid_ = value;
  612. }
  613. // repeated .fish_protocols.RankInfo rankList = 3;
  614. inline int packetl2c_req_torpedo_rank_result::ranklist_size() const {
  615. return ranklist_.size();
  616. }
  617. inline void packetl2c_req_torpedo_rank_result::clear_ranklist() {
  618. ranklist_.Clear();
  619. }
  620. inline const ::fish_protocols::RankInfo& packetl2c_req_torpedo_rank_result::ranklist(int index) const {
  621. return ranklist_.Get(index);
  622. }
  623. inline ::fish_protocols::RankInfo* packetl2c_req_torpedo_rank_result::mutable_ranklist(int index) {
  624. return ranklist_.Mutable(index);
  625. }
  626. inline ::fish_protocols::RankInfo* packetl2c_req_torpedo_rank_result::add_ranklist() {
  627. return ranklist_.Add();
  628. }
  629. inline const ::google::protobuf::RepeatedPtrField< ::fish_protocols::RankInfo >&
  630. packetl2c_req_torpedo_rank_result::ranklist() const {
  631. return ranklist_;
  632. }
  633. inline ::google::protobuf::RepeatedPtrField< ::fish_protocols::RankInfo >*
  634. packetl2c_req_torpedo_rank_result::mutable_ranklist() {
  635. return &ranklist_;
  636. }
  637. // optional int32 selfRank = 4;
  638. inline bool packetl2c_req_torpedo_rank_result::has_selfrank() const {
  639. return (_has_bits_[0] & 0x00000008u) != 0;
  640. }
  641. inline void packetl2c_req_torpedo_rank_result::set_has_selfrank() {
  642. _has_bits_[0] |= 0x00000008u;
  643. }
  644. inline void packetl2c_req_torpedo_rank_result::clear_has_selfrank() {
  645. _has_bits_[0] &= ~0x00000008u;
  646. }
  647. inline void packetl2c_req_torpedo_rank_result::clear_selfrank() {
  648. selfrank_ = 0;
  649. clear_has_selfrank();
  650. }
  651. inline ::google::protobuf::int32 packetl2c_req_torpedo_rank_result::selfrank() const {
  652. return selfrank_;
  653. }
  654. inline void packetl2c_req_torpedo_rank_result::set_selfrank(::google::protobuf::int32 value) {
  655. set_has_selfrank();
  656. selfrank_ = value;
  657. }
  658. // optional int32 selfGold = 5;
  659. inline bool packetl2c_req_torpedo_rank_result::has_selfgold() const {
  660. return (_has_bits_[0] & 0x00000010u) != 0;
  661. }
  662. inline void packetl2c_req_torpedo_rank_result::set_has_selfgold() {
  663. _has_bits_[0] |= 0x00000010u;
  664. }
  665. inline void packetl2c_req_torpedo_rank_result::clear_has_selfgold() {
  666. _has_bits_[0] &= ~0x00000010u;
  667. }
  668. inline void packetl2c_req_torpedo_rank_result::clear_selfgold() {
  669. selfgold_ = 0;
  670. clear_has_selfgold();
  671. }
  672. inline ::google::protobuf::int32 packetl2c_req_torpedo_rank_result::selfgold() const {
  673. return selfgold_;
  674. }
  675. inline void packetl2c_req_torpedo_rank_result::set_selfgold(::google::protobuf::int32 value) {
  676. set_has_selfgold();
  677. selfgold_ = value;
  678. }
  679. // @@protoc_insertion_point(namespace_scope)
  680. } // namespace fish_protocols
  681. #ifndef SWIG
  682. namespace google {
  683. namespace protobuf {
  684. } // namespace google
  685. } // namespace protobuf
  686. #endif // SWIG
  687. // @@protoc_insertion_point(global_scope)
  688. #endif // PROTOBUF_fish_5frank_2eproto__INCLUDED