fish_rank.pb.cc 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: fish_rank.proto
  3. #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
  4. #include "fish_rank.pb.h"
  5. #include <algorithm>
  6. #include <google/protobuf/stubs/common.h>
  7. #include <google/protobuf/stubs/once.h>
  8. #include <google/protobuf/io/coded_stream.h>
  9. #include <google/protobuf/wire_format_lite_inl.h>
  10. #include <google/protobuf/descriptor.h>
  11. #include <google/protobuf/generated_message_reflection.h>
  12. #include <google/protobuf/reflection_ops.h>
  13. #include <google/protobuf/wire_format.h>
  14. // @@protoc_insertion_point(includes)
  15. namespace fish_protocols {
  16. namespace {
  17. const ::google::protobuf::Descriptor* RankInfo_descriptor_ = NULL;
  18. const ::google::protobuf::internal::GeneratedMessageReflection*
  19. RankInfo_reflection_ = NULL;
  20. const ::google::protobuf::Descriptor* packetc2l_req_torpedo_rank_descriptor_ = NULL;
  21. const ::google::protobuf::internal::GeneratedMessageReflection*
  22. packetc2l_req_torpedo_rank_reflection_ = NULL;
  23. const ::google::protobuf::Descriptor* packetl2c_req_torpedo_rank_result_descriptor_ = NULL;
  24. const ::google::protobuf::internal::GeneratedMessageReflection*
  25. packetl2c_req_torpedo_rank_result_reflection_ = NULL;
  26. } // namespace
  27. void protobuf_AssignDesc_fish_5frank_2eproto() {
  28. protobuf_AddDesc_fish_5frank_2eproto();
  29. const ::google::protobuf::FileDescriptor* file =
  30. ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
  31. "fish_rank.proto");
  32. GOOGLE_CHECK(file != NULL);
  33. RankInfo_descriptor_ = file->message_type(0);
  34. static const int RankInfo_offsets_[7] = {
  35. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RankInfo, playerid_),
  36. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RankInfo, nickname_),
  37. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RankInfo, gold_),
  38. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RankInfo, viplevel_),
  39. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RankInfo, playerlv_),
  40. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RankInfo, headid_),
  41. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RankInfo, frameid_),
  42. };
  43. RankInfo_reflection_ =
  44. new ::google::protobuf::internal::GeneratedMessageReflection(
  45. RankInfo_descriptor_,
  46. RankInfo::default_instance_,
  47. RankInfo_offsets_,
  48. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RankInfo, _has_bits_[0]),
  49. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RankInfo, _unknown_fields_),
  50. -1,
  51. ::google::protobuf::DescriptorPool::generated_pool(),
  52. ::google::protobuf::MessageFactory::generated_factory(),
  53. sizeof(RankInfo));
  54. packetc2l_req_torpedo_rank_descriptor_ = file->message_type(1);
  55. static const int packetc2l_req_torpedo_rank_offsets_[2] = {
  56. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_req_torpedo_rank, packet_id_),
  57. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_req_torpedo_rank, torpedoid_),
  58. };
  59. packetc2l_req_torpedo_rank_reflection_ =
  60. new ::google::protobuf::internal::GeneratedMessageReflection(
  61. packetc2l_req_torpedo_rank_descriptor_,
  62. packetc2l_req_torpedo_rank::default_instance_,
  63. packetc2l_req_torpedo_rank_offsets_,
  64. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_req_torpedo_rank, _has_bits_[0]),
  65. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_req_torpedo_rank, _unknown_fields_),
  66. -1,
  67. ::google::protobuf::DescriptorPool::generated_pool(),
  68. ::google::protobuf::MessageFactory::generated_factory(),
  69. sizeof(packetc2l_req_torpedo_rank));
  70. packetl2c_req_torpedo_rank_result_descriptor_ = file->message_type(2);
  71. static const int packetl2c_req_torpedo_rank_result_offsets_[5] = {
  72. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_req_torpedo_rank_result, packet_id_),
  73. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_req_torpedo_rank_result, torpedoid_),
  74. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_req_torpedo_rank_result, ranklist_),
  75. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_req_torpedo_rank_result, selfrank_),
  76. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_req_torpedo_rank_result, selfgold_),
  77. };
  78. packetl2c_req_torpedo_rank_result_reflection_ =
  79. new ::google::protobuf::internal::GeneratedMessageReflection(
  80. packetl2c_req_torpedo_rank_result_descriptor_,
  81. packetl2c_req_torpedo_rank_result::default_instance_,
  82. packetl2c_req_torpedo_rank_result_offsets_,
  83. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_req_torpedo_rank_result, _has_bits_[0]),
  84. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_req_torpedo_rank_result, _unknown_fields_),
  85. -1,
  86. ::google::protobuf::DescriptorPool::generated_pool(),
  87. ::google::protobuf::MessageFactory::generated_factory(),
  88. sizeof(packetl2c_req_torpedo_rank_result));
  89. }
  90. namespace {
  91. GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
  92. inline void protobuf_AssignDescriptorsOnce() {
  93. ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
  94. &protobuf_AssignDesc_fish_5frank_2eproto);
  95. }
  96. void protobuf_RegisterTypes(const ::std::string&) {
  97. protobuf_AssignDescriptorsOnce();
  98. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  99. RankInfo_descriptor_, &RankInfo::default_instance());
  100. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  101. packetc2l_req_torpedo_rank_descriptor_, &packetc2l_req_torpedo_rank::default_instance());
  102. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  103. packetl2c_req_torpedo_rank_result_descriptor_, &packetl2c_req_torpedo_rank_result::default_instance());
  104. }
  105. } // namespace
  106. void protobuf_ShutdownFile_fish_5frank_2eproto() {
  107. delete RankInfo::default_instance_;
  108. delete RankInfo_reflection_;
  109. delete packetc2l_req_torpedo_rank::default_instance_;
  110. delete packetc2l_req_torpedo_rank_reflection_;
  111. delete packetl2c_req_torpedo_rank_result::default_instance_;
  112. delete packetl2c_req_torpedo_rank_result_reflection_;
  113. }
  114. void protobuf_AddDesc_fish_5frank_2eproto() {
  115. static bool already_here = false;
  116. if (already_here) return;
  117. already_here = true;
  118. GOOGLE_PROTOBUF_VERIFY_VERSION;
  119. ::fish_protocols::protobuf_AddDesc_fish_5fdef_2eproto();
  120. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  121. "\n\017fish_rank.proto\022\016fish_protocols\032\016fish_"
  122. "def.proto\"\201\001\n\010RankInfo\022\020\n\010playerId\030\001 \001(\005"
  123. "\022\020\n\010nickName\030\002 \001(\t\022\014\n\004gold\030\003 \001(\005\022\020\n\010vipL"
  124. "evel\030\004 \001(\005\022\020\n\010playerlv\030\005 \001(\005\022\016\n\006headid\030\006"
  125. " \001(\005\022\017\n\007frameid\030\007 \001(\005\"\201\001\n\032packetc2l_req_"
  126. "torpedo_rank\022P\n\tpacket_id\030\001 \001(\0162!.fish_p"
  127. "rotocols.e_server_msg_type:\032e_mst_c2l_re"
  128. "q_torpedo_rank\022\021\n\ttorpedoId\030\002 \001(\005\"\337\001\n!pa"
  129. "cketl2c_req_torpedo_rank_result\022W\n\tpacke"
  130. "t_id\030\001 \001(\0162!.fish_protocols.e_server_msg"
  131. "_type:!e_mst_l2c_req_torpedo_rank_result"
  132. "\022\021\n\ttorpedoId\030\002 \001(\005\022*\n\010rankList\030\003 \003(\0132\030."
  133. "fish_protocols.RankInfo\022\020\n\010selfRank\030\004 \001("
  134. "\005\022\020\n\010selfGold\030\005 \001(\005", 539);
  135. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  136. "fish_rank.proto", &protobuf_RegisterTypes);
  137. RankInfo::default_instance_ = new RankInfo();
  138. packetc2l_req_torpedo_rank::default_instance_ = new packetc2l_req_torpedo_rank();
  139. packetl2c_req_torpedo_rank_result::default_instance_ = new packetl2c_req_torpedo_rank_result();
  140. RankInfo::default_instance_->InitAsDefaultInstance();
  141. packetc2l_req_torpedo_rank::default_instance_->InitAsDefaultInstance();
  142. packetl2c_req_torpedo_rank_result::default_instance_->InitAsDefaultInstance();
  143. ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_fish_5frank_2eproto);
  144. }
  145. // Force AddDescriptors() to be called at static initialization time.
  146. struct StaticDescriptorInitializer_fish_5frank_2eproto {
  147. StaticDescriptorInitializer_fish_5frank_2eproto() {
  148. protobuf_AddDesc_fish_5frank_2eproto();
  149. }
  150. } static_descriptor_initializer_fish_5frank_2eproto_;
  151. // ===================================================================
  152. #ifndef _MSC_VER
  153. const int RankInfo::kPlayerIdFieldNumber;
  154. const int RankInfo::kNickNameFieldNumber;
  155. const int RankInfo::kGoldFieldNumber;
  156. const int RankInfo::kVipLevelFieldNumber;
  157. const int RankInfo::kPlayerlvFieldNumber;
  158. const int RankInfo::kHeadidFieldNumber;
  159. const int RankInfo::kFrameidFieldNumber;
  160. #endif // !_MSC_VER
  161. RankInfo::RankInfo()
  162. : ::google::protobuf::Message() {
  163. SharedCtor();
  164. }
  165. void RankInfo::InitAsDefaultInstance() {
  166. }
  167. RankInfo::RankInfo(const RankInfo& from)
  168. : ::google::protobuf::Message() {
  169. SharedCtor();
  170. MergeFrom(from);
  171. }
  172. void RankInfo::SharedCtor() {
  173. _cached_size_ = 0;
  174. playerid_ = 0;
  175. nickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  176. gold_ = 0;
  177. viplevel_ = 0;
  178. playerlv_ = 0;
  179. headid_ = 0;
  180. frameid_ = 0;
  181. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  182. }
  183. RankInfo::~RankInfo() {
  184. SharedDtor();
  185. }
  186. void RankInfo::SharedDtor() {
  187. if (nickname_ != &::google::protobuf::internal::kEmptyString) {
  188. delete nickname_;
  189. }
  190. if (this != default_instance_) {
  191. }
  192. }
  193. void RankInfo::SetCachedSize(int size) const {
  194. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  195. _cached_size_ = size;
  196. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  197. }
  198. const ::google::protobuf::Descriptor* RankInfo::descriptor() {
  199. protobuf_AssignDescriptorsOnce();
  200. return RankInfo_descriptor_;
  201. }
  202. const RankInfo& RankInfo::default_instance() {
  203. if (default_instance_ == NULL) protobuf_AddDesc_fish_5frank_2eproto();
  204. return *default_instance_;
  205. }
  206. RankInfo* RankInfo::default_instance_ = NULL;
  207. RankInfo* RankInfo::New() const {
  208. return new RankInfo;
  209. }
  210. void RankInfo::Clear() {
  211. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  212. playerid_ = 0;
  213. if (has_nickname()) {
  214. if (nickname_ != &::google::protobuf::internal::kEmptyString) {
  215. nickname_->clear();
  216. }
  217. }
  218. gold_ = 0;
  219. viplevel_ = 0;
  220. playerlv_ = 0;
  221. headid_ = 0;
  222. frameid_ = 0;
  223. }
  224. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  225. mutable_unknown_fields()->Clear();
  226. }
  227. bool RankInfo::MergePartialFromCodedStream(
  228. ::google::protobuf::io::CodedInputStream* input) {
  229. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  230. ::google::protobuf::uint32 tag;
  231. while ((tag = input->ReadTag()) != 0) {
  232. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  233. // optional int32 playerId = 1;
  234. case 1: {
  235. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  236. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  237. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  238. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  239. input, &playerid_)));
  240. set_has_playerid();
  241. } else {
  242. goto handle_uninterpreted;
  243. }
  244. if (input->ExpectTag(18)) goto parse_nickName;
  245. break;
  246. }
  247. // optional string nickName = 2;
  248. case 2: {
  249. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  250. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  251. parse_nickName:
  252. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  253. input, this->mutable_nickname()));
  254. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  255. this->nickname().data(), this->nickname().length(),
  256. ::google::protobuf::internal::WireFormat::PARSE);
  257. } else {
  258. goto handle_uninterpreted;
  259. }
  260. if (input->ExpectTag(24)) goto parse_gold;
  261. break;
  262. }
  263. // optional int32 gold = 3;
  264. case 3: {
  265. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  266. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  267. parse_gold:
  268. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  269. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  270. input, &gold_)));
  271. set_has_gold();
  272. } else {
  273. goto handle_uninterpreted;
  274. }
  275. if (input->ExpectTag(32)) goto parse_vipLevel;
  276. break;
  277. }
  278. // optional int32 vipLevel = 4;
  279. case 4: {
  280. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  281. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  282. parse_vipLevel:
  283. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  284. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  285. input, &viplevel_)));
  286. set_has_viplevel();
  287. } else {
  288. goto handle_uninterpreted;
  289. }
  290. if (input->ExpectTag(40)) goto parse_playerlv;
  291. break;
  292. }
  293. // optional int32 playerlv = 5;
  294. case 5: {
  295. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  296. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  297. parse_playerlv:
  298. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  299. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  300. input, &playerlv_)));
  301. set_has_playerlv();
  302. } else {
  303. goto handle_uninterpreted;
  304. }
  305. if (input->ExpectTag(48)) goto parse_headid;
  306. break;
  307. }
  308. // optional int32 headid = 6;
  309. case 6: {
  310. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  311. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  312. parse_headid:
  313. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  314. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  315. input, &headid_)));
  316. set_has_headid();
  317. } else {
  318. goto handle_uninterpreted;
  319. }
  320. if (input->ExpectTag(56)) goto parse_frameid;
  321. break;
  322. }
  323. // optional int32 frameid = 7;
  324. case 7: {
  325. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  326. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  327. parse_frameid:
  328. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  329. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  330. input, &frameid_)));
  331. set_has_frameid();
  332. } else {
  333. goto handle_uninterpreted;
  334. }
  335. if (input->ExpectAtEnd()) return true;
  336. break;
  337. }
  338. default: {
  339. handle_uninterpreted:
  340. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  341. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  342. return true;
  343. }
  344. DO_(::google::protobuf::internal::WireFormat::SkipField(
  345. input, tag, mutable_unknown_fields()));
  346. break;
  347. }
  348. }
  349. }
  350. return true;
  351. #undef DO_
  352. }
  353. void RankInfo::SerializeWithCachedSizes(
  354. ::google::protobuf::io::CodedOutputStream* output) const {
  355. // optional int32 playerId = 1;
  356. if (has_playerid()) {
  357. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->playerid(), output);
  358. }
  359. // optional string nickName = 2;
  360. if (has_nickname()) {
  361. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  362. this->nickname().data(), this->nickname().length(),
  363. ::google::protobuf::internal::WireFormat::SERIALIZE);
  364. ::google::protobuf::internal::WireFormatLite::WriteString(
  365. 2, this->nickname(), output);
  366. }
  367. // optional int32 gold = 3;
  368. if (has_gold()) {
  369. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->gold(), output);
  370. }
  371. // optional int32 vipLevel = 4;
  372. if (has_viplevel()) {
  373. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->viplevel(), output);
  374. }
  375. // optional int32 playerlv = 5;
  376. if (has_playerlv()) {
  377. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->playerlv(), output);
  378. }
  379. // optional int32 headid = 6;
  380. if (has_headid()) {
  381. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->headid(), output);
  382. }
  383. // optional int32 frameid = 7;
  384. if (has_frameid()) {
  385. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->frameid(), output);
  386. }
  387. if (!unknown_fields().empty()) {
  388. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  389. unknown_fields(), output);
  390. }
  391. }
  392. ::google::protobuf::uint8* RankInfo::SerializeWithCachedSizesToArray(
  393. ::google::protobuf::uint8* target) const {
  394. // optional int32 playerId = 1;
  395. if (has_playerid()) {
  396. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->playerid(), target);
  397. }
  398. // optional string nickName = 2;
  399. if (has_nickname()) {
  400. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  401. this->nickname().data(), this->nickname().length(),
  402. ::google::protobuf::internal::WireFormat::SERIALIZE);
  403. target =
  404. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  405. 2, this->nickname(), target);
  406. }
  407. // optional int32 gold = 3;
  408. if (has_gold()) {
  409. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->gold(), target);
  410. }
  411. // optional int32 vipLevel = 4;
  412. if (has_viplevel()) {
  413. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->viplevel(), target);
  414. }
  415. // optional int32 playerlv = 5;
  416. if (has_playerlv()) {
  417. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->playerlv(), target);
  418. }
  419. // optional int32 headid = 6;
  420. if (has_headid()) {
  421. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->headid(), target);
  422. }
  423. // optional int32 frameid = 7;
  424. if (has_frameid()) {
  425. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->frameid(), target);
  426. }
  427. if (!unknown_fields().empty()) {
  428. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  429. unknown_fields(), target);
  430. }
  431. return target;
  432. }
  433. int RankInfo::ByteSize() const {
  434. int total_size = 0;
  435. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  436. // optional int32 playerId = 1;
  437. if (has_playerid()) {
  438. total_size += 1 +
  439. ::google::protobuf::internal::WireFormatLite::Int32Size(
  440. this->playerid());
  441. }
  442. // optional string nickName = 2;
  443. if (has_nickname()) {
  444. total_size += 1 +
  445. ::google::protobuf::internal::WireFormatLite::StringSize(
  446. this->nickname());
  447. }
  448. // optional int32 gold = 3;
  449. if (has_gold()) {
  450. total_size += 1 +
  451. ::google::protobuf::internal::WireFormatLite::Int32Size(
  452. this->gold());
  453. }
  454. // optional int32 vipLevel = 4;
  455. if (has_viplevel()) {
  456. total_size += 1 +
  457. ::google::protobuf::internal::WireFormatLite::Int32Size(
  458. this->viplevel());
  459. }
  460. // optional int32 playerlv = 5;
  461. if (has_playerlv()) {
  462. total_size += 1 +
  463. ::google::protobuf::internal::WireFormatLite::Int32Size(
  464. this->playerlv());
  465. }
  466. // optional int32 headid = 6;
  467. if (has_headid()) {
  468. total_size += 1 +
  469. ::google::protobuf::internal::WireFormatLite::Int32Size(
  470. this->headid());
  471. }
  472. // optional int32 frameid = 7;
  473. if (has_frameid()) {
  474. total_size += 1 +
  475. ::google::protobuf::internal::WireFormatLite::Int32Size(
  476. this->frameid());
  477. }
  478. }
  479. if (!unknown_fields().empty()) {
  480. total_size +=
  481. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  482. unknown_fields());
  483. }
  484. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  485. _cached_size_ = total_size;
  486. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  487. return total_size;
  488. }
  489. void RankInfo::MergeFrom(const ::google::protobuf::Message& from) {
  490. GOOGLE_CHECK_NE(&from, this);
  491. const RankInfo* source =
  492. ::google::protobuf::internal::dynamic_cast_if_available<const RankInfo*>(
  493. &from);
  494. if (source == NULL) {
  495. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  496. } else {
  497. MergeFrom(*source);
  498. }
  499. }
  500. void RankInfo::MergeFrom(const RankInfo& from) {
  501. GOOGLE_CHECK_NE(&from, this);
  502. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  503. if (from.has_playerid()) {
  504. set_playerid(from.playerid());
  505. }
  506. if (from.has_nickname()) {
  507. set_nickname(from.nickname());
  508. }
  509. if (from.has_gold()) {
  510. set_gold(from.gold());
  511. }
  512. if (from.has_viplevel()) {
  513. set_viplevel(from.viplevel());
  514. }
  515. if (from.has_playerlv()) {
  516. set_playerlv(from.playerlv());
  517. }
  518. if (from.has_headid()) {
  519. set_headid(from.headid());
  520. }
  521. if (from.has_frameid()) {
  522. set_frameid(from.frameid());
  523. }
  524. }
  525. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  526. }
  527. void RankInfo::CopyFrom(const ::google::protobuf::Message& from) {
  528. if (&from == this) return;
  529. Clear();
  530. MergeFrom(from);
  531. }
  532. void RankInfo::CopyFrom(const RankInfo& from) {
  533. if (&from == this) return;
  534. Clear();
  535. MergeFrom(from);
  536. }
  537. bool RankInfo::IsInitialized() const {
  538. return true;
  539. }
  540. void RankInfo::Swap(RankInfo* other) {
  541. if (other != this) {
  542. std::swap(playerid_, other->playerid_);
  543. std::swap(nickname_, other->nickname_);
  544. std::swap(gold_, other->gold_);
  545. std::swap(viplevel_, other->viplevel_);
  546. std::swap(playerlv_, other->playerlv_);
  547. std::swap(headid_, other->headid_);
  548. std::swap(frameid_, other->frameid_);
  549. std::swap(_has_bits_[0], other->_has_bits_[0]);
  550. _unknown_fields_.Swap(&other->_unknown_fields_);
  551. std::swap(_cached_size_, other->_cached_size_);
  552. }
  553. }
  554. ::google::protobuf::Metadata RankInfo::GetMetadata() const {
  555. protobuf_AssignDescriptorsOnce();
  556. ::google::protobuf::Metadata metadata;
  557. metadata.descriptor = RankInfo_descriptor_;
  558. metadata.reflection = RankInfo_reflection_;
  559. return metadata;
  560. }
  561. // ===================================================================
  562. #ifndef _MSC_VER
  563. const int packetc2l_req_torpedo_rank::kPacketIdFieldNumber;
  564. const int packetc2l_req_torpedo_rank::kTorpedoIdFieldNumber;
  565. #endif // !_MSC_VER
  566. packetc2l_req_torpedo_rank::packetc2l_req_torpedo_rank()
  567. : ::google::protobuf::Message() {
  568. SharedCtor();
  569. }
  570. void packetc2l_req_torpedo_rank::InitAsDefaultInstance() {
  571. }
  572. packetc2l_req_torpedo_rank::packetc2l_req_torpedo_rank(const packetc2l_req_torpedo_rank& from)
  573. : ::google::protobuf::Message() {
  574. SharedCtor();
  575. MergeFrom(from);
  576. }
  577. void packetc2l_req_torpedo_rank::SharedCtor() {
  578. _cached_size_ = 0;
  579. packet_id_ = 10206;
  580. torpedoid_ = 0;
  581. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  582. }
  583. packetc2l_req_torpedo_rank::~packetc2l_req_torpedo_rank() {
  584. SharedDtor();
  585. }
  586. void packetc2l_req_torpedo_rank::SharedDtor() {
  587. if (this != default_instance_) {
  588. }
  589. }
  590. void packetc2l_req_torpedo_rank::SetCachedSize(int size) const {
  591. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  592. _cached_size_ = size;
  593. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  594. }
  595. const ::google::protobuf::Descriptor* packetc2l_req_torpedo_rank::descriptor() {
  596. protobuf_AssignDescriptorsOnce();
  597. return packetc2l_req_torpedo_rank_descriptor_;
  598. }
  599. const packetc2l_req_torpedo_rank& packetc2l_req_torpedo_rank::default_instance() {
  600. if (default_instance_ == NULL) protobuf_AddDesc_fish_5frank_2eproto();
  601. return *default_instance_;
  602. }
  603. packetc2l_req_torpedo_rank* packetc2l_req_torpedo_rank::default_instance_ = NULL;
  604. packetc2l_req_torpedo_rank* packetc2l_req_torpedo_rank::New() const {
  605. return new packetc2l_req_torpedo_rank;
  606. }
  607. void packetc2l_req_torpedo_rank::Clear() {
  608. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  609. packet_id_ = 10206;
  610. torpedoid_ = 0;
  611. }
  612. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  613. mutable_unknown_fields()->Clear();
  614. }
  615. bool packetc2l_req_torpedo_rank::MergePartialFromCodedStream(
  616. ::google::protobuf::io::CodedInputStream* input) {
  617. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  618. ::google::protobuf::uint32 tag;
  619. while ((tag = input->ReadTag()) != 0) {
  620. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  621. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_req_torpedo_rank];
  622. case 1: {
  623. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  624. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  625. int value;
  626. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  627. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  628. input, &value)));
  629. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  630. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  631. } else {
  632. mutable_unknown_fields()->AddVarint(1, value);
  633. }
  634. } else {
  635. goto handle_uninterpreted;
  636. }
  637. if (input->ExpectTag(16)) goto parse_torpedoId;
  638. break;
  639. }
  640. // optional int32 torpedoId = 2;
  641. case 2: {
  642. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  643. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  644. parse_torpedoId:
  645. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  646. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  647. input, &torpedoid_)));
  648. set_has_torpedoid();
  649. } else {
  650. goto handle_uninterpreted;
  651. }
  652. if (input->ExpectAtEnd()) return true;
  653. break;
  654. }
  655. default: {
  656. handle_uninterpreted:
  657. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  658. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  659. return true;
  660. }
  661. DO_(::google::protobuf::internal::WireFormat::SkipField(
  662. input, tag, mutable_unknown_fields()));
  663. break;
  664. }
  665. }
  666. }
  667. return true;
  668. #undef DO_
  669. }
  670. void packetc2l_req_torpedo_rank::SerializeWithCachedSizes(
  671. ::google::protobuf::io::CodedOutputStream* output) const {
  672. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_req_torpedo_rank];
  673. if (has_packet_id()) {
  674. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  675. 1, this->packet_id(), output);
  676. }
  677. // optional int32 torpedoId = 2;
  678. if (has_torpedoid()) {
  679. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->torpedoid(), output);
  680. }
  681. if (!unknown_fields().empty()) {
  682. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  683. unknown_fields(), output);
  684. }
  685. }
  686. ::google::protobuf::uint8* packetc2l_req_torpedo_rank::SerializeWithCachedSizesToArray(
  687. ::google::protobuf::uint8* target) const {
  688. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_req_torpedo_rank];
  689. if (has_packet_id()) {
  690. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  691. 1, this->packet_id(), target);
  692. }
  693. // optional int32 torpedoId = 2;
  694. if (has_torpedoid()) {
  695. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->torpedoid(), target);
  696. }
  697. if (!unknown_fields().empty()) {
  698. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  699. unknown_fields(), target);
  700. }
  701. return target;
  702. }
  703. int packetc2l_req_torpedo_rank::ByteSize() const {
  704. int total_size = 0;
  705. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  706. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_req_torpedo_rank];
  707. if (has_packet_id()) {
  708. total_size += 1 +
  709. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  710. }
  711. // optional int32 torpedoId = 2;
  712. if (has_torpedoid()) {
  713. total_size += 1 +
  714. ::google::protobuf::internal::WireFormatLite::Int32Size(
  715. this->torpedoid());
  716. }
  717. }
  718. if (!unknown_fields().empty()) {
  719. total_size +=
  720. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  721. unknown_fields());
  722. }
  723. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  724. _cached_size_ = total_size;
  725. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  726. return total_size;
  727. }
  728. void packetc2l_req_torpedo_rank::MergeFrom(const ::google::protobuf::Message& from) {
  729. GOOGLE_CHECK_NE(&from, this);
  730. const packetc2l_req_torpedo_rank* source =
  731. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2l_req_torpedo_rank*>(
  732. &from);
  733. if (source == NULL) {
  734. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  735. } else {
  736. MergeFrom(*source);
  737. }
  738. }
  739. void packetc2l_req_torpedo_rank::MergeFrom(const packetc2l_req_torpedo_rank& from) {
  740. GOOGLE_CHECK_NE(&from, this);
  741. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  742. if (from.has_packet_id()) {
  743. set_packet_id(from.packet_id());
  744. }
  745. if (from.has_torpedoid()) {
  746. set_torpedoid(from.torpedoid());
  747. }
  748. }
  749. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  750. }
  751. void packetc2l_req_torpedo_rank::CopyFrom(const ::google::protobuf::Message& from) {
  752. if (&from == this) return;
  753. Clear();
  754. MergeFrom(from);
  755. }
  756. void packetc2l_req_torpedo_rank::CopyFrom(const packetc2l_req_torpedo_rank& from) {
  757. if (&from == this) return;
  758. Clear();
  759. MergeFrom(from);
  760. }
  761. bool packetc2l_req_torpedo_rank::IsInitialized() const {
  762. return true;
  763. }
  764. void packetc2l_req_torpedo_rank::Swap(packetc2l_req_torpedo_rank* other) {
  765. if (other != this) {
  766. std::swap(packet_id_, other->packet_id_);
  767. std::swap(torpedoid_, other->torpedoid_);
  768. std::swap(_has_bits_[0], other->_has_bits_[0]);
  769. _unknown_fields_.Swap(&other->_unknown_fields_);
  770. std::swap(_cached_size_, other->_cached_size_);
  771. }
  772. }
  773. ::google::protobuf::Metadata packetc2l_req_torpedo_rank::GetMetadata() const {
  774. protobuf_AssignDescriptorsOnce();
  775. ::google::protobuf::Metadata metadata;
  776. metadata.descriptor = packetc2l_req_torpedo_rank_descriptor_;
  777. metadata.reflection = packetc2l_req_torpedo_rank_reflection_;
  778. return metadata;
  779. }
  780. // ===================================================================
  781. #ifndef _MSC_VER
  782. const int packetl2c_req_torpedo_rank_result::kPacketIdFieldNumber;
  783. const int packetl2c_req_torpedo_rank_result::kTorpedoIdFieldNumber;
  784. const int packetl2c_req_torpedo_rank_result::kRankListFieldNumber;
  785. const int packetl2c_req_torpedo_rank_result::kSelfRankFieldNumber;
  786. const int packetl2c_req_torpedo_rank_result::kSelfGoldFieldNumber;
  787. #endif // !_MSC_VER
  788. packetl2c_req_torpedo_rank_result::packetl2c_req_torpedo_rank_result()
  789. : ::google::protobuf::Message() {
  790. SharedCtor();
  791. }
  792. void packetl2c_req_torpedo_rank_result::InitAsDefaultInstance() {
  793. }
  794. packetl2c_req_torpedo_rank_result::packetl2c_req_torpedo_rank_result(const packetl2c_req_torpedo_rank_result& from)
  795. : ::google::protobuf::Message() {
  796. SharedCtor();
  797. MergeFrom(from);
  798. }
  799. void packetl2c_req_torpedo_rank_result::SharedCtor() {
  800. _cached_size_ = 0;
  801. packet_id_ = 16205;
  802. torpedoid_ = 0;
  803. selfrank_ = 0;
  804. selfgold_ = 0;
  805. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  806. }
  807. packetl2c_req_torpedo_rank_result::~packetl2c_req_torpedo_rank_result() {
  808. SharedDtor();
  809. }
  810. void packetl2c_req_torpedo_rank_result::SharedDtor() {
  811. if (this != default_instance_) {
  812. }
  813. }
  814. void packetl2c_req_torpedo_rank_result::SetCachedSize(int size) const {
  815. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  816. _cached_size_ = size;
  817. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  818. }
  819. const ::google::protobuf::Descriptor* packetl2c_req_torpedo_rank_result::descriptor() {
  820. protobuf_AssignDescriptorsOnce();
  821. return packetl2c_req_torpedo_rank_result_descriptor_;
  822. }
  823. const packetl2c_req_torpedo_rank_result& packetl2c_req_torpedo_rank_result::default_instance() {
  824. if (default_instance_ == NULL) protobuf_AddDesc_fish_5frank_2eproto();
  825. return *default_instance_;
  826. }
  827. packetl2c_req_torpedo_rank_result* packetl2c_req_torpedo_rank_result::default_instance_ = NULL;
  828. packetl2c_req_torpedo_rank_result* packetl2c_req_torpedo_rank_result::New() const {
  829. return new packetl2c_req_torpedo_rank_result;
  830. }
  831. void packetl2c_req_torpedo_rank_result::Clear() {
  832. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  833. packet_id_ = 16205;
  834. torpedoid_ = 0;
  835. selfrank_ = 0;
  836. selfgold_ = 0;
  837. }
  838. ranklist_.Clear();
  839. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  840. mutable_unknown_fields()->Clear();
  841. }
  842. bool packetl2c_req_torpedo_rank_result::MergePartialFromCodedStream(
  843. ::google::protobuf::io::CodedInputStream* input) {
  844. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  845. ::google::protobuf::uint32 tag;
  846. while ((tag = input->ReadTag()) != 0) {
  847. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  848. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_req_torpedo_rank_result];
  849. case 1: {
  850. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  851. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  852. int value;
  853. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  854. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  855. input, &value)));
  856. if (::fish_protocols::e_server_msg_type_IsValid(value)) {
  857. set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
  858. } else {
  859. mutable_unknown_fields()->AddVarint(1, value);
  860. }
  861. } else {
  862. goto handle_uninterpreted;
  863. }
  864. if (input->ExpectTag(16)) goto parse_torpedoId;
  865. break;
  866. }
  867. // optional int32 torpedoId = 2;
  868. case 2: {
  869. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  870. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  871. parse_torpedoId:
  872. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  873. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  874. input, &torpedoid_)));
  875. set_has_torpedoid();
  876. } else {
  877. goto handle_uninterpreted;
  878. }
  879. if (input->ExpectTag(26)) goto parse_rankList;
  880. break;
  881. }
  882. // repeated .fish_protocols.RankInfo rankList = 3;
  883. case 3: {
  884. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  885. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  886. parse_rankList:
  887. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  888. input, add_ranklist()));
  889. } else {
  890. goto handle_uninterpreted;
  891. }
  892. if (input->ExpectTag(26)) goto parse_rankList;
  893. if (input->ExpectTag(32)) goto parse_selfRank;
  894. break;
  895. }
  896. // optional int32 selfRank = 4;
  897. case 4: {
  898. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  899. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  900. parse_selfRank:
  901. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  902. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  903. input, &selfrank_)));
  904. set_has_selfrank();
  905. } else {
  906. goto handle_uninterpreted;
  907. }
  908. if (input->ExpectTag(40)) goto parse_selfGold;
  909. break;
  910. }
  911. // optional int32 selfGold = 5;
  912. case 5: {
  913. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  914. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  915. parse_selfGold:
  916. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  917. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  918. input, &selfgold_)));
  919. set_has_selfgold();
  920. } else {
  921. goto handle_uninterpreted;
  922. }
  923. if (input->ExpectAtEnd()) return true;
  924. break;
  925. }
  926. default: {
  927. handle_uninterpreted:
  928. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  929. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  930. return true;
  931. }
  932. DO_(::google::protobuf::internal::WireFormat::SkipField(
  933. input, tag, mutable_unknown_fields()));
  934. break;
  935. }
  936. }
  937. }
  938. return true;
  939. #undef DO_
  940. }
  941. void packetl2c_req_torpedo_rank_result::SerializeWithCachedSizes(
  942. ::google::protobuf::io::CodedOutputStream* output) const {
  943. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_req_torpedo_rank_result];
  944. if (has_packet_id()) {
  945. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  946. 1, this->packet_id(), output);
  947. }
  948. // optional int32 torpedoId = 2;
  949. if (has_torpedoid()) {
  950. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->torpedoid(), output);
  951. }
  952. // repeated .fish_protocols.RankInfo rankList = 3;
  953. for (int i = 0; i < this->ranklist_size(); i++) {
  954. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  955. 3, this->ranklist(i), output);
  956. }
  957. // optional int32 selfRank = 4;
  958. if (has_selfrank()) {
  959. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->selfrank(), output);
  960. }
  961. // optional int32 selfGold = 5;
  962. if (has_selfgold()) {
  963. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->selfgold(), output);
  964. }
  965. if (!unknown_fields().empty()) {
  966. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  967. unknown_fields(), output);
  968. }
  969. }
  970. ::google::protobuf::uint8* packetl2c_req_torpedo_rank_result::SerializeWithCachedSizesToArray(
  971. ::google::protobuf::uint8* target) const {
  972. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_req_torpedo_rank_result];
  973. if (has_packet_id()) {
  974. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  975. 1, this->packet_id(), target);
  976. }
  977. // optional int32 torpedoId = 2;
  978. if (has_torpedoid()) {
  979. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->torpedoid(), target);
  980. }
  981. // repeated .fish_protocols.RankInfo rankList = 3;
  982. for (int i = 0; i < this->ranklist_size(); i++) {
  983. target = ::google::protobuf::internal::WireFormatLite::
  984. WriteMessageNoVirtualToArray(
  985. 3, this->ranklist(i), target);
  986. }
  987. // optional int32 selfRank = 4;
  988. if (has_selfrank()) {
  989. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->selfrank(), target);
  990. }
  991. // optional int32 selfGold = 5;
  992. if (has_selfgold()) {
  993. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->selfgold(), target);
  994. }
  995. if (!unknown_fields().empty()) {
  996. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  997. unknown_fields(), target);
  998. }
  999. return target;
  1000. }
  1001. int packetl2c_req_torpedo_rank_result::ByteSize() const {
  1002. int total_size = 0;
  1003. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1004. // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_req_torpedo_rank_result];
  1005. if (has_packet_id()) {
  1006. total_size += 1 +
  1007. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  1008. }
  1009. // optional int32 torpedoId = 2;
  1010. if (has_torpedoid()) {
  1011. total_size += 1 +
  1012. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1013. this->torpedoid());
  1014. }
  1015. // optional int32 selfRank = 4;
  1016. if (has_selfrank()) {
  1017. total_size += 1 +
  1018. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1019. this->selfrank());
  1020. }
  1021. // optional int32 selfGold = 5;
  1022. if (has_selfgold()) {
  1023. total_size += 1 +
  1024. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1025. this->selfgold());
  1026. }
  1027. }
  1028. // repeated .fish_protocols.RankInfo rankList = 3;
  1029. total_size += 1 * this->ranklist_size();
  1030. for (int i = 0; i < this->ranklist_size(); i++) {
  1031. total_size +=
  1032. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1033. this->ranklist(i));
  1034. }
  1035. if (!unknown_fields().empty()) {
  1036. total_size +=
  1037. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1038. unknown_fields());
  1039. }
  1040. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1041. _cached_size_ = total_size;
  1042. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1043. return total_size;
  1044. }
  1045. void packetl2c_req_torpedo_rank_result::MergeFrom(const ::google::protobuf::Message& from) {
  1046. GOOGLE_CHECK_NE(&from, this);
  1047. const packetl2c_req_torpedo_rank_result* source =
  1048. ::google::protobuf::internal::dynamic_cast_if_available<const packetl2c_req_torpedo_rank_result*>(
  1049. &from);
  1050. if (source == NULL) {
  1051. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1052. } else {
  1053. MergeFrom(*source);
  1054. }
  1055. }
  1056. void packetl2c_req_torpedo_rank_result::MergeFrom(const packetl2c_req_torpedo_rank_result& from) {
  1057. GOOGLE_CHECK_NE(&from, this);
  1058. ranklist_.MergeFrom(from.ranklist_);
  1059. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1060. if (from.has_packet_id()) {
  1061. set_packet_id(from.packet_id());
  1062. }
  1063. if (from.has_torpedoid()) {
  1064. set_torpedoid(from.torpedoid());
  1065. }
  1066. if (from.has_selfrank()) {
  1067. set_selfrank(from.selfrank());
  1068. }
  1069. if (from.has_selfgold()) {
  1070. set_selfgold(from.selfgold());
  1071. }
  1072. }
  1073. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1074. }
  1075. void packetl2c_req_torpedo_rank_result::CopyFrom(const ::google::protobuf::Message& from) {
  1076. if (&from == this) return;
  1077. Clear();
  1078. MergeFrom(from);
  1079. }
  1080. void packetl2c_req_torpedo_rank_result::CopyFrom(const packetl2c_req_torpedo_rank_result& from) {
  1081. if (&from == this) return;
  1082. Clear();
  1083. MergeFrom(from);
  1084. }
  1085. bool packetl2c_req_torpedo_rank_result::IsInitialized() const {
  1086. return true;
  1087. }
  1088. void packetl2c_req_torpedo_rank_result::Swap(packetl2c_req_torpedo_rank_result* other) {
  1089. if (other != this) {
  1090. std::swap(packet_id_, other->packet_id_);
  1091. std::swap(torpedoid_, other->torpedoid_);
  1092. ranklist_.Swap(&other->ranklist_);
  1093. std::swap(selfrank_, other->selfrank_);
  1094. std::swap(selfgold_, other->selfgold_);
  1095. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1096. _unknown_fields_.Swap(&other->_unknown_fields_);
  1097. std::swap(_cached_size_, other->_cached_size_);
  1098. }
  1099. }
  1100. ::google::protobuf::Metadata packetl2c_req_torpedo_rank_result::GetMetadata() const {
  1101. protobuf_AssignDescriptorsOnce();
  1102. ::google::protobuf::Metadata metadata;
  1103. metadata.descriptor = packetl2c_req_torpedo_rank_result_descriptor_;
  1104. metadata.reflection = packetl2c_req_torpedo_rank_result_reflection_;
  1105. return metadata;
  1106. }
  1107. // @@protoc_insertion_point(namespace_scope)
  1108. } // namespace fish_protocols
  1109. // @@protoc_insertion_point(global_scope)