client2world_rank.pb.cc 96 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: client2world_rank.proto
  3. #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
  4. #include "client2world_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 client2world_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* packetc2w_req_coin_rank_descriptor_ = NULL;
  21. const ::google::protobuf::internal::GeneratedMessageReflection*
  22. packetc2w_req_coin_rank_reflection_ = NULL;
  23. const ::google::protobuf::Descriptor* packetw2c_req_coin_rank_result_descriptor_ = NULL;
  24. const ::google::protobuf::internal::GeneratedMessageReflection*
  25. packetw2c_req_coin_rank_result_reflection_ = NULL;
  26. const ::google::protobuf::Descriptor* RechargeInfo_descriptor_ = NULL;
  27. const ::google::protobuf::internal::GeneratedMessageReflection*
  28. RechargeInfo_reflection_ = NULL;
  29. const ::google::protobuf::Descriptor* packetc2w_req_recharge_rank_descriptor_ = NULL;
  30. const ::google::protobuf::internal::GeneratedMessageReflection*
  31. packetc2w_req_recharge_rank_reflection_ = NULL;
  32. const ::google::protobuf::Descriptor* packetw2c_req_recharge_rank_result_descriptor_ = NULL;
  33. const ::google::protobuf::internal::GeneratedMessageReflection*
  34. packetw2c_req_recharge_rank_result_reflection_ = NULL;
  35. const ::google::protobuf::Descriptor* packetc2w_req_coin_growth_descriptor_ = NULL;
  36. const ::google::protobuf::internal::GeneratedMessageReflection*
  37. packetc2w_req_coin_growth_reflection_ = NULL;
  38. const ::google::protobuf::Descriptor* packetw2c_req_coin_growth_result_descriptor_ = NULL;
  39. const ::google::protobuf::internal::GeneratedMessageReflection*
  40. packetw2c_req_coin_growth_result_reflection_ = NULL;
  41. } // namespace
  42. void protobuf_AssignDesc_client2world_5frank_2eproto() {
  43. protobuf_AddDesc_client2world_5frank_2eproto();
  44. const ::google::protobuf::FileDescriptor* file =
  45. ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
  46. "client2world_rank.proto");
  47. GOOGLE_CHECK(file != NULL);
  48. RankInfo_descriptor_ = file->message_type(0);
  49. static const int RankInfo_offsets_[7] = {
  50. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RankInfo, playerid_),
  51. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RankInfo, nickname_),
  52. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RankInfo, gold_),
  53. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RankInfo, viplevel_),
  54. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RankInfo, playerlv_),
  55. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RankInfo, headid_),
  56. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RankInfo, frameid_),
  57. };
  58. RankInfo_reflection_ =
  59. new ::google::protobuf::internal::GeneratedMessageReflection(
  60. RankInfo_descriptor_,
  61. RankInfo::default_instance_,
  62. RankInfo_offsets_,
  63. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RankInfo, _has_bits_[0]),
  64. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RankInfo, _unknown_fields_),
  65. -1,
  66. ::google::protobuf::DescriptorPool::generated_pool(),
  67. ::google::protobuf::MessageFactory::generated_factory(),
  68. sizeof(RankInfo));
  69. packetc2w_req_coin_rank_descriptor_ = file->message_type(1);
  70. static const int packetc2w_req_coin_rank_offsets_[1] = {
  71. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_coin_rank, packet_id_),
  72. };
  73. packetc2w_req_coin_rank_reflection_ =
  74. new ::google::protobuf::internal::GeneratedMessageReflection(
  75. packetc2w_req_coin_rank_descriptor_,
  76. packetc2w_req_coin_rank::default_instance_,
  77. packetc2w_req_coin_rank_offsets_,
  78. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_coin_rank, _has_bits_[0]),
  79. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_coin_rank, _unknown_fields_),
  80. -1,
  81. ::google::protobuf::DescriptorPool::generated_pool(),
  82. ::google::protobuf::MessageFactory::generated_factory(),
  83. sizeof(packetc2w_req_coin_rank));
  84. packetw2c_req_coin_rank_result_descriptor_ = file->message_type(2);
  85. static const int packetw2c_req_coin_rank_result_offsets_[3] = {
  86. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_coin_rank_result, packet_id_),
  87. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_coin_rank_result, ranklist_),
  88. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_coin_rank_result, selfrank_),
  89. };
  90. packetw2c_req_coin_rank_result_reflection_ =
  91. new ::google::protobuf::internal::GeneratedMessageReflection(
  92. packetw2c_req_coin_rank_result_descriptor_,
  93. packetw2c_req_coin_rank_result::default_instance_,
  94. packetw2c_req_coin_rank_result_offsets_,
  95. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_coin_rank_result, _has_bits_[0]),
  96. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_coin_rank_result, _unknown_fields_),
  97. -1,
  98. ::google::protobuf::DescriptorPool::generated_pool(),
  99. ::google::protobuf::MessageFactory::generated_factory(),
  100. sizeof(packetw2c_req_coin_rank_result));
  101. RechargeInfo_descriptor_ = file->message_type(3);
  102. static const int RechargeInfo_offsets_[4] = {
  103. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RechargeInfo, playerid_),
  104. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RechargeInfo, nickname_),
  105. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RechargeInfo, rmb_),
  106. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RechargeInfo, viplevel_),
  107. };
  108. RechargeInfo_reflection_ =
  109. new ::google::protobuf::internal::GeneratedMessageReflection(
  110. RechargeInfo_descriptor_,
  111. RechargeInfo::default_instance_,
  112. RechargeInfo_offsets_,
  113. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RechargeInfo, _has_bits_[0]),
  114. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RechargeInfo, _unknown_fields_),
  115. -1,
  116. ::google::protobuf::DescriptorPool::generated_pool(),
  117. ::google::protobuf::MessageFactory::generated_factory(),
  118. sizeof(RechargeInfo));
  119. packetc2w_req_recharge_rank_descriptor_ = file->message_type(4);
  120. static const int packetc2w_req_recharge_rank_offsets_[2] = {
  121. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_recharge_rank, packet_id_),
  122. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_recharge_rank, is_yesterday_),
  123. };
  124. packetc2w_req_recharge_rank_reflection_ =
  125. new ::google::protobuf::internal::GeneratedMessageReflection(
  126. packetc2w_req_recharge_rank_descriptor_,
  127. packetc2w_req_recharge_rank::default_instance_,
  128. packetc2w_req_recharge_rank_offsets_,
  129. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_recharge_rank, _has_bits_[0]),
  130. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_recharge_rank, _unknown_fields_),
  131. -1,
  132. ::google::protobuf::DescriptorPool::generated_pool(),
  133. ::google::protobuf::MessageFactory::generated_factory(),
  134. sizeof(packetc2w_req_recharge_rank));
  135. packetw2c_req_recharge_rank_result_descriptor_ = file->message_type(5);
  136. static const int packetw2c_req_recharge_rank_result_offsets_[5] = {
  137. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_recharge_rank_result, packet_id_),
  138. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_recharge_rank_result, ranklist_),
  139. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_recharge_rank_result, selfrank_),
  140. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_recharge_rank_result, selfrmb_),
  141. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_recharge_rank_result, is_yesterday_),
  142. };
  143. packetw2c_req_recharge_rank_result_reflection_ =
  144. new ::google::protobuf::internal::GeneratedMessageReflection(
  145. packetw2c_req_recharge_rank_result_descriptor_,
  146. packetw2c_req_recharge_rank_result::default_instance_,
  147. packetw2c_req_recharge_rank_result_offsets_,
  148. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_recharge_rank_result, _has_bits_[0]),
  149. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_recharge_rank_result, _unknown_fields_),
  150. -1,
  151. ::google::protobuf::DescriptorPool::generated_pool(),
  152. ::google::protobuf::MessageFactory::generated_factory(),
  153. sizeof(packetw2c_req_recharge_rank_result));
  154. packetc2w_req_coin_growth_descriptor_ = file->message_type(6);
  155. static const int packetc2w_req_coin_growth_offsets_[1] = {
  156. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_coin_growth, packet_id_),
  157. };
  158. packetc2w_req_coin_growth_reflection_ =
  159. new ::google::protobuf::internal::GeneratedMessageReflection(
  160. packetc2w_req_coin_growth_descriptor_,
  161. packetc2w_req_coin_growth::default_instance_,
  162. packetc2w_req_coin_growth_offsets_,
  163. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_coin_growth, _has_bits_[0]),
  164. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_coin_growth, _unknown_fields_),
  165. -1,
  166. ::google::protobuf::DescriptorPool::generated_pool(),
  167. ::google::protobuf::MessageFactory::generated_factory(),
  168. sizeof(packetc2w_req_coin_growth));
  169. packetw2c_req_coin_growth_result_descriptor_ = file->message_type(7);
  170. static const int packetw2c_req_coin_growth_result_offsets_[4] = {
  171. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_coin_growth_result, packet_id_),
  172. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_coin_growth_result, ranklist_),
  173. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_coin_growth_result, selfrank_),
  174. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_coin_growth_result, selfgold_),
  175. };
  176. packetw2c_req_coin_growth_result_reflection_ =
  177. new ::google::protobuf::internal::GeneratedMessageReflection(
  178. packetw2c_req_coin_growth_result_descriptor_,
  179. packetw2c_req_coin_growth_result::default_instance_,
  180. packetw2c_req_coin_growth_result_offsets_,
  181. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_coin_growth_result, _has_bits_[0]),
  182. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_coin_growth_result, _unknown_fields_),
  183. -1,
  184. ::google::protobuf::DescriptorPool::generated_pool(),
  185. ::google::protobuf::MessageFactory::generated_factory(),
  186. sizeof(packetw2c_req_coin_growth_result));
  187. }
  188. namespace {
  189. GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
  190. inline void protobuf_AssignDescriptorsOnce() {
  191. ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
  192. &protobuf_AssignDesc_client2world_5frank_2eproto);
  193. }
  194. void protobuf_RegisterTypes(const ::std::string&) {
  195. protobuf_AssignDescriptorsOnce();
  196. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  197. RankInfo_descriptor_, &RankInfo::default_instance());
  198. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  199. packetc2w_req_coin_rank_descriptor_, &packetc2w_req_coin_rank::default_instance());
  200. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  201. packetw2c_req_coin_rank_result_descriptor_, &packetw2c_req_coin_rank_result::default_instance());
  202. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  203. RechargeInfo_descriptor_, &RechargeInfo::default_instance());
  204. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  205. packetc2w_req_recharge_rank_descriptor_, &packetc2w_req_recharge_rank::default_instance());
  206. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  207. packetw2c_req_recharge_rank_result_descriptor_, &packetw2c_req_recharge_rank_result::default_instance());
  208. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  209. packetc2w_req_coin_growth_descriptor_, &packetc2w_req_coin_growth::default_instance());
  210. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  211. packetw2c_req_coin_growth_result_descriptor_, &packetw2c_req_coin_growth_result::default_instance());
  212. }
  213. } // namespace
  214. void protobuf_ShutdownFile_client2world_5frank_2eproto() {
  215. delete RankInfo::default_instance_;
  216. delete RankInfo_reflection_;
  217. delete packetc2w_req_coin_rank::default_instance_;
  218. delete packetc2w_req_coin_rank_reflection_;
  219. delete packetw2c_req_coin_rank_result::default_instance_;
  220. delete packetw2c_req_coin_rank_result_reflection_;
  221. delete RechargeInfo::default_instance_;
  222. delete RechargeInfo_reflection_;
  223. delete packetc2w_req_recharge_rank::default_instance_;
  224. delete packetc2w_req_recharge_rank_reflection_;
  225. delete packetw2c_req_recharge_rank_result::default_instance_;
  226. delete packetw2c_req_recharge_rank_result_reflection_;
  227. delete packetc2w_req_coin_growth::default_instance_;
  228. delete packetc2w_req_coin_growth_reflection_;
  229. delete packetw2c_req_coin_growth_result::default_instance_;
  230. delete packetw2c_req_coin_growth_result_reflection_;
  231. }
  232. void protobuf_AddDesc_client2world_5frank_2eproto() {
  233. static bool already_here = false;
  234. if (already_here) return;
  235. already_here = true;
  236. GOOGLE_PROTOBUF_VERIFY_VERSION;
  237. ::client2world_protocols::protobuf_AddDesc_client2world_5fmsg_5ftype_2eproto();
  238. ::msg_type_def::protobuf_AddDesc_msg_5ftype_5fdef_2eproto();
  239. ::msg_info_def::protobuf_AddDesc_msg_5finfo_5fdef_2eproto();
  240. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  241. "\n\027client2world_rank.proto\022\026client2world_"
  242. "protocols\032\033client2world_msg_type.proto\032\022"
  243. "msg_type_def.proto\032\022msg_info_def.proto\"\201"
  244. "\001\n\010RankInfo\022\020\n\010playerId\030\001 \001(\005\022\020\n\010nickNam"
  245. "e\030\002 \001(\t\022\014\n\004gold\030\003 \001(\003\022\020\n\010vipLevel\030\004 \001(\005\022"
  246. "\020\n\010playerlv\030\005 \001(\005\022\016\n\006headid\030\006 \001(\005\022\017\n\007fra"
  247. "meid\030\007 \001(\005\"p\n\027packetc2w_req_coin_rank\022U\n"
  248. "\tpacket_id\030\001 \001(\0162).client2world_protocol"
  249. "s.e_server_msg_type:\027e_mst_c2w_req_coin_"
  250. "rank\"\304\001\n\036packetw2c_req_coin_rank_result\022"
  251. "\\\n\tpacket_id\030\001 \001(\0162).client2world_protoc"
  252. "ols.e_server_msg_type:\036e_mst_w2c_req_coi"
  253. "n_rank_result\0222\n\010rankList\030\002 \003(\0132 .client"
  254. "2world_protocols.RankInfo\022\020\n\010selfRank\030\003 "
  255. "\001(\005\"Q\n\014RechargeInfo\022\020\n\010playerId\030\001 \001(\005\022\020\n"
  256. "\010nickName\030\002 \001(\t\022\013\n\003rmb\030\003 \001(\005\022\020\n\010vipLevel"
  257. "\030\004 \001(\005\"\225\001\n\033packetc2w_req_recharge_rank\022Y"
  258. "\n\tpacket_id\030\001 \001(\0162).client2world_protoco"
  259. "ls.e_server_msg_type:\033e_mst_c2w_req_rech"
  260. "arge_rank\022\033\n\014is_yesterday\030\002 \001(\010:\005false\"\376"
  261. "\001\n\"packetw2c_req_recharge_rank_result\022`\n"
  262. "\tpacket_id\030\001 \001(\0162).client2world_protocol"
  263. "s.e_server_msg_type:\"e_mst_w2c_req_recha"
  264. "rge_rank_result\0226\n\010rankList\030\002 \003(\0132$.clie"
  265. "nt2world_protocols.RechargeInfo\022\020\n\010selfR"
  266. "ank\030\003 \001(\005\022\017\n\007selfrmb\030\004 \001(\005\022\033\n\014is_yesterd"
  267. "ay\030\005 \001(\010:\005false\"t\n\031packetc2w_req_coin_gr"
  268. "owth\022W\n\tpacket_id\030\001 \001(\0162).client2world_p"
  269. "rotocols.e_server_msg_type:\031e_mst_c2w_re"
  270. "q_coin_growth\"\332\001\n packetw2c_req_coin_gro"
  271. "wth_result\022^\n\tpacket_id\030\001 \001(\0162).client2w"
  272. "orld_protocols.e_server_msg_type: e_mst_"
  273. "w2c_req_coin_growth_result\0222\n\010rankList\030\002"
  274. " \003(\0132 .client2world_protocols.RankInfo\022\020"
  275. "\n\010selfRank\030\003 \001(\005\022\020\n\010selfGold\030\004 \001(\003", 1394);
  276. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  277. "client2world_rank.proto", &protobuf_RegisterTypes);
  278. RankInfo::default_instance_ = new RankInfo();
  279. packetc2w_req_coin_rank::default_instance_ = new packetc2w_req_coin_rank();
  280. packetw2c_req_coin_rank_result::default_instance_ = new packetw2c_req_coin_rank_result();
  281. RechargeInfo::default_instance_ = new RechargeInfo();
  282. packetc2w_req_recharge_rank::default_instance_ = new packetc2w_req_recharge_rank();
  283. packetw2c_req_recharge_rank_result::default_instance_ = new packetw2c_req_recharge_rank_result();
  284. packetc2w_req_coin_growth::default_instance_ = new packetc2w_req_coin_growth();
  285. packetw2c_req_coin_growth_result::default_instance_ = new packetw2c_req_coin_growth_result();
  286. RankInfo::default_instance_->InitAsDefaultInstance();
  287. packetc2w_req_coin_rank::default_instance_->InitAsDefaultInstance();
  288. packetw2c_req_coin_rank_result::default_instance_->InitAsDefaultInstance();
  289. RechargeInfo::default_instance_->InitAsDefaultInstance();
  290. packetc2w_req_recharge_rank::default_instance_->InitAsDefaultInstance();
  291. packetw2c_req_recharge_rank_result::default_instance_->InitAsDefaultInstance();
  292. packetc2w_req_coin_growth::default_instance_->InitAsDefaultInstance();
  293. packetw2c_req_coin_growth_result::default_instance_->InitAsDefaultInstance();
  294. ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_client2world_5frank_2eproto);
  295. }
  296. // Force AddDescriptors() to be called at static initialization time.
  297. struct StaticDescriptorInitializer_client2world_5frank_2eproto {
  298. StaticDescriptorInitializer_client2world_5frank_2eproto() {
  299. protobuf_AddDesc_client2world_5frank_2eproto();
  300. }
  301. } static_descriptor_initializer_client2world_5frank_2eproto_;
  302. // ===================================================================
  303. #ifndef _MSC_VER
  304. const int RankInfo::kPlayerIdFieldNumber;
  305. const int RankInfo::kNickNameFieldNumber;
  306. const int RankInfo::kGoldFieldNumber;
  307. const int RankInfo::kVipLevelFieldNumber;
  308. const int RankInfo::kPlayerlvFieldNumber;
  309. const int RankInfo::kHeadidFieldNumber;
  310. const int RankInfo::kFrameidFieldNumber;
  311. #endif // !_MSC_VER
  312. RankInfo::RankInfo()
  313. : ::google::protobuf::Message() {
  314. SharedCtor();
  315. }
  316. void RankInfo::InitAsDefaultInstance() {
  317. }
  318. RankInfo::RankInfo(const RankInfo& from)
  319. : ::google::protobuf::Message() {
  320. SharedCtor();
  321. MergeFrom(from);
  322. }
  323. void RankInfo::SharedCtor() {
  324. _cached_size_ = 0;
  325. playerid_ = 0;
  326. nickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  327. gold_ = GOOGLE_LONGLONG(0);
  328. viplevel_ = 0;
  329. playerlv_ = 0;
  330. headid_ = 0;
  331. frameid_ = 0;
  332. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  333. }
  334. RankInfo::~RankInfo() {
  335. SharedDtor();
  336. }
  337. void RankInfo::SharedDtor() {
  338. if (nickname_ != &::google::protobuf::internal::kEmptyString) {
  339. delete nickname_;
  340. }
  341. if (this != default_instance_) {
  342. }
  343. }
  344. void RankInfo::SetCachedSize(int size) const {
  345. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  346. _cached_size_ = size;
  347. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  348. }
  349. const ::google::protobuf::Descriptor* RankInfo::descriptor() {
  350. protobuf_AssignDescriptorsOnce();
  351. return RankInfo_descriptor_;
  352. }
  353. const RankInfo& RankInfo::default_instance() {
  354. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5frank_2eproto();
  355. return *default_instance_;
  356. }
  357. RankInfo* RankInfo::default_instance_ = NULL;
  358. RankInfo* RankInfo::New() const {
  359. return new RankInfo;
  360. }
  361. void RankInfo::Clear() {
  362. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  363. playerid_ = 0;
  364. if (has_nickname()) {
  365. if (nickname_ != &::google::protobuf::internal::kEmptyString) {
  366. nickname_->clear();
  367. }
  368. }
  369. gold_ = GOOGLE_LONGLONG(0);
  370. viplevel_ = 0;
  371. playerlv_ = 0;
  372. headid_ = 0;
  373. frameid_ = 0;
  374. }
  375. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  376. mutable_unknown_fields()->Clear();
  377. }
  378. bool RankInfo::MergePartialFromCodedStream(
  379. ::google::protobuf::io::CodedInputStream* input) {
  380. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  381. ::google::protobuf::uint32 tag;
  382. while ((tag = input->ReadTag()) != 0) {
  383. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  384. // optional int32 playerId = 1;
  385. case 1: {
  386. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  387. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  388. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  389. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  390. input, &playerid_)));
  391. set_has_playerid();
  392. } else {
  393. goto handle_uninterpreted;
  394. }
  395. if (input->ExpectTag(18)) goto parse_nickName;
  396. break;
  397. }
  398. // optional string nickName = 2;
  399. case 2: {
  400. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  401. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  402. parse_nickName:
  403. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  404. input, this->mutable_nickname()));
  405. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  406. this->nickname().data(), this->nickname().length(),
  407. ::google::protobuf::internal::WireFormat::PARSE);
  408. } else {
  409. goto handle_uninterpreted;
  410. }
  411. if (input->ExpectTag(24)) goto parse_gold;
  412. break;
  413. }
  414. // optional int64 gold = 3;
  415. case 3: {
  416. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  417. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  418. parse_gold:
  419. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  420. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  421. input, &gold_)));
  422. set_has_gold();
  423. } else {
  424. goto handle_uninterpreted;
  425. }
  426. if (input->ExpectTag(32)) goto parse_vipLevel;
  427. break;
  428. }
  429. // optional int32 vipLevel = 4;
  430. case 4: {
  431. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  432. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  433. parse_vipLevel:
  434. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  435. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  436. input, &viplevel_)));
  437. set_has_viplevel();
  438. } else {
  439. goto handle_uninterpreted;
  440. }
  441. if (input->ExpectTag(40)) goto parse_playerlv;
  442. break;
  443. }
  444. // optional int32 playerlv = 5;
  445. case 5: {
  446. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  447. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  448. parse_playerlv:
  449. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  450. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  451. input, &playerlv_)));
  452. set_has_playerlv();
  453. } else {
  454. goto handle_uninterpreted;
  455. }
  456. if (input->ExpectTag(48)) goto parse_headid;
  457. break;
  458. }
  459. // optional int32 headid = 6;
  460. case 6: {
  461. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  462. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  463. parse_headid:
  464. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  465. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  466. input, &headid_)));
  467. set_has_headid();
  468. } else {
  469. goto handle_uninterpreted;
  470. }
  471. if (input->ExpectTag(56)) goto parse_frameid;
  472. break;
  473. }
  474. // optional int32 frameid = 7;
  475. case 7: {
  476. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  477. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  478. parse_frameid:
  479. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  480. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  481. input, &frameid_)));
  482. set_has_frameid();
  483. } else {
  484. goto handle_uninterpreted;
  485. }
  486. if (input->ExpectAtEnd()) return true;
  487. break;
  488. }
  489. default: {
  490. handle_uninterpreted:
  491. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  492. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  493. return true;
  494. }
  495. DO_(::google::protobuf::internal::WireFormat::SkipField(
  496. input, tag, mutable_unknown_fields()));
  497. break;
  498. }
  499. }
  500. }
  501. return true;
  502. #undef DO_
  503. }
  504. void RankInfo::SerializeWithCachedSizes(
  505. ::google::protobuf::io::CodedOutputStream* output) const {
  506. // optional int32 playerId = 1;
  507. if (has_playerid()) {
  508. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->playerid(), output);
  509. }
  510. // optional string nickName = 2;
  511. if (has_nickname()) {
  512. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  513. this->nickname().data(), this->nickname().length(),
  514. ::google::protobuf::internal::WireFormat::SERIALIZE);
  515. ::google::protobuf::internal::WireFormatLite::WriteString(
  516. 2, this->nickname(), output);
  517. }
  518. // optional int64 gold = 3;
  519. if (has_gold()) {
  520. ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->gold(), output);
  521. }
  522. // optional int32 vipLevel = 4;
  523. if (has_viplevel()) {
  524. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->viplevel(), output);
  525. }
  526. // optional int32 playerlv = 5;
  527. if (has_playerlv()) {
  528. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->playerlv(), output);
  529. }
  530. // optional int32 headid = 6;
  531. if (has_headid()) {
  532. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->headid(), output);
  533. }
  534. // optional int32 frameid = 7;
  535. if (has_frameid()) {
  536. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->frameid(), output);
  537. }
  538. if (!unknown_fields().empty()) {
  539. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  540. unknown_fields(), output);
  541. }
  542. }
  543. ::google::protobuf::uint8* RankInfo::SerializeWithCachedSizesToArray(
  544. ::google::protobuf::uint8* target) const {
  545. // optional int32 playerId = 1;
  546. if (has_playerid()) {
  547. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->playerid(), target);
  548. }
  549. // optional string nickName = 2;
  550. if (has_nickname()) {
  551. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  552. this->nickname().data(), this->nickname().length(),
  553. ::google::protobuf::internal::WireFormat::SERIALIZE);
  554. target =
  555. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  556. 2, this->nickname(), target);
  557. }
  558. // optional int64 gold = 3;
  559. if (has_gold()) {
  560. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->gold(), target);
  561. }
  562. // optional int32 vipLevel = 4;
  563. if (has_viplevel()) {
  564. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->viplevel(), target);
  565. }
  566. // optional int32 playerlv = 5;
  567. if (has_playerlv()) {
  568. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->playerlv(), target);
  569. }
  570. // optional int32 headid = 6;
  571. if (has_headid()) {
  572. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->headid(), target);
  573. }
  574. // optional int32 frameid = 7;
  575. if (has_frameid()) {
  576. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->frameid(), target);
  577. }
  578. if (!unknown_fields().empty()) {
  579. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  580. unknown_fields(), target);
  581. }
  582. return target;
  583. }
  584. int RankInfo::ByteSize() const {
  585. int total_size = 0;
  586. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  587. // optional int32 playerId = 1;
  588. if (has_playerid()) {
  589. total_size += 1 +
  590. ::google::protobuf::internal::WireFormatLite::Int32Size(
  591. this->playerid());
  592. }
  593. // optional string nickName = 2;
  594. if (has_nickname()) {
  595. total_size += 1 +
  596. ::google::protobuf::internal::WireFormatLite::StringSize(
  597. this->nickname());
  598. }
  599. // optional int64 gold = 3;
  600. if (has_gold()) {
  601. total_size += 1 +
  602. ::google::protobuf::internal::WireFormatLite::Int64Size(
  603. this->gold());
  604. }
  605. // optional int32 vipLevel = 4;
  606. if (has_viplevel()) {
  607. total_size += 1 +
  608. ::google::protobuf::internal::WireFormatLite::Int32Size(
  609. this->viplevel());
  610. }
  611. // optional int32 playerlv = 5;
  612. if (has_playerlv()) {
  613. total_size += 1 +
  614. ::google::protobuf::internal::WireFormatLite::Int32Size(
  615. this->playerlv());
  616. }
  617. // optional int32 headid = 6;
  618. if (has_headid()) {
  619. total_size += 1 +
  620. ::google::protobuf::internal::WireFormatLite::Int32Size(
  621. this->headid());
  622. }
  623. // optional int32 frameid = 7;
  624. if (has_frameid()) {
  625. total_size += 1 +
  626. ::google::protobuf::internal::WireFormatLite::Int32Size(
  627. this->frameid());
  628. }
  629. }
  630. if (!unknown_fields().empty()) {
  631. total_size +=
  632. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  633. unknown_fields());
  634. }
  635. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  636. _cached_size_ = total_size;
  637. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  638. return total_size;
  639. }
  640. void RankInfo::MergeFrom(const ::google::protobuf::Message& from) {
  641. GOOGLE_CHECK_NE(&from, this);
  642. const RankInfo* source =
  643. ::google::protobuf::internal::dynamic_cast_if_available<const RankInfo*>(
  644. &from);
  645. if (source == NULL) {
  646. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  647. } else {
  648. MergeFrom(*source);
  649. }
  650. }
  651. void RankInfo::MergeFrom(const RankInfo& from) {
  652. GOOGLE_CHECK_NE(&from, this);
  653. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  654. if (from.has_playerid()) {
  655. set_playerid(from.playerid());
  656. }
  657. if (from.has_nickname()) {
  658. set_nickname(from.nickname());
  659. }
  660. if (from.has_gold()) {
  661. set_gold(from.gold());
  662. }
  663. if (from.has_viplevel()) {
  664. set_viplevel(from.viplevel());
  665. }
  666. if (from.has_playerlv()) {
  667. set_playerlv(from.playerlv());
  668. }
  669. if (from.has_headid()) {
  670. set_headid(from.headid());
  671. }
  672. if (from.has_frameid()) {
  673. set_frameid(from.frameid());
  674. }
  675. }
  676. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  677. }
  678. void RankInfo::CopyFrom(const ::google::protobuf::Message& from) {
  679. if (&from == this) return;
  680. Clear();
  681. MergeFrom(from);
  682. }
  683. void RankInfo::CopyFrom(const RankInfo& from) {
  684. if (&from == this) return;
  685. Clear();
  686. MergeFrom(from);
  687. }
  688. bool RankInfo::IsInitialized() const {
  689. return true;
  690. }
  691. void RankInfo::Swap(RankInfo* other) {
  692. if (other != this) {
  693. std::swap(playerid_, other->playerid_);
  694. std::swap(nickname_, other->nickname_);
  695. std::swap(gold_, other->gold_);
  696. std::swap(viplevel_, other->viplevel_);
  697. std::swap(playerlv_, other->playerlv_);
  698. std::swap(headid_, other->headid_);
  699. std::swap(frameid_, other->frameid_);
  700. std::swap(_has_bits_[0], other->_has_bits_[0]);
  701. _unknown_fields_.Swap(&other->_unknown_fields_);
  702. std::swap(_cached_size_, other->_cached_size_);
  703. }
  704. }
  705. ::google::protobuf::Metadata RankInfo::GetMetadata() const {
  706. protobuf_AssignDescriptorsOnce();
  707. ::google::protobuf::Metadata metadata;
  708. metadata.descriptor = RankInfo_descriptor_;
  709. metadata.reflection = RankInfo_reflection_;
  710. return metadata;
  711. }
  712. // ===================================================================
  713. #ifndef _MSC_VER
  714. const int packetc2w_req_coin_rank::kPacketIdFieldNumber;
  715. #endif // !_MSC_VER
  716. packetc2w_req_coin_rank::packetc2w_req_coin_rank()
  717. : ::google::protobuf::Message() {
  718. SharedCtor();
  719. }
  720. void packetc2w_req_coin_rank::InitAsDefaultInstance() {
  721. }
  722. packetc2w_req_coin_rank::packetc2w_req_coin_rank(const packetc2w_req_coin_rank& from)
  723. : ::google::protobuf::Message() {
  724. SharedCtor();
  725. MergeFrom(from);
  726. }
  727. void packetc2w_req_coin_rank::SharedCtor() {
  728. _cached_size_ = 0;
  729. packet_id_ = 5020;
  730. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  731. }
  732. packetc2w_req_coin_rank::~packetc2w_req_coin_rank() {
  733. SharedDtor();
  734. }
  735. void packetc2w_req_coin_rank::SharedDtor() {
  736. if (this != default_instance_) {
  737. }
  738. }
  739. void packetc2w_req_coin_rank::SetCachedSize(int size) const {
  740. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  741. _cached_size_ = size;
  742. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  743. }
  744. const ::google::protobuf::Descriptor* packetc2w_req_coin_rank::descriptor() {
  745. protobuf_AssignDescriptorsOnce();
  746. return packetc2w_req_coin_rank_descriptor_;
  747. }
  748. const packetc2w_req_coin_rank& packetc2w_req_coin_rank::default_instance() {
  749. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5frank_2eproto();
  750. return *default_instance_;
  751. }
  752. packetc2w_req_coin_rank* packetc2w_req_coin_rank::default_instance_ = NULL;
  753. packetc2w_req_coin_rank* packetc2w_req_coin_rank::New() const {
  754. return new packetc2w_req_coin_rank;
  755. }
  756. void packetc2w_req_coin_rank::Clear() {
  757. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  758. packet_id_ = 5020;
  759. }
  760. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  761. mutable_unknown_fields()->Clear();
  762. }
  763. bool packetc2w_req_coin_rank::MergePartialFromCodedStream(
  764. ::google::protobuf::io::CodedInputStream* input) {
  765. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  766. ::google::protobuf::uint32 tag;
  767. while ((tag = input->ReadTag()) != 0) {
  768. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  769. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_coin_rank];
  770. case 1: {
  771. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  772. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  773. int value;
  774. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  775. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  776. input, &value)));
  777. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  778. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  779. } else {
  780. mutable_unknown_fields()->AddVarint(1, value);
  781. }
  782. } else {
  783. goto handle_uninterpreted;
  784. }
  785. if (input->ExpectAtEnd()) return true;
  786. break;
  787. }
  788. default: {
  789. handle_uninterpreted:
  790. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  791. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  792. return true;
  793. }
  794. DO_(::google::protobuf::internal::WireFormat::SkipField(
  795. input, tag, mutable_unknown_fields()));
  796. break;
  797. }
  798. }
  799. }
  800. return true;
  801. #undef DO_
  802. }
  803. void packetc2w_req_coin_rank::SerializeWithCachedSizes(
  804. ::google::protobuf::io::CodedOutputStream* output) const {
  805. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_coin_rank];
  806. if (has_packet_id()) {
  807. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  808. 1, this->packet_id(), output);
  809. }
  810. if (!unknown_fields().empty()) {
  811. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  812. unknown_fields(), output);
  813. }
  814. }
  815. ::google::protobuf::uint8* packetc2w_req_coin_rank::SerializeWithCachedSizesToArray(
  816. ::google::protobuf::uint8* target) const {
  817. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_coin_rank];
  818. if (has_packet_id()) {
  819. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  820. 1, this->packet_id(), target);
  821. }
  822. if (!unknown_fields().empty()) {
  823. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  824. unknown_fields(), target);
  825. }
  826. return target;
  827. }
  828. int packetc2w_req_coin_rank::ByteSize() const {
  829. int total_size = 0;
  830. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  831. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_coin_rank];
  832. if (has_packet_id()) {
  833. total_size += 1 +
  834. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  835. }
  836. }
  837. if (!unknown_fields().empty()) {
  838. total_size +=
  839. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  840. unknown_fields());
  841. }
  842. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  843. _cached_size_ = total_size;
  844. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  845. return total_size;
  846. }
  847. void packetc2w_req_coin_rank::MergeFrom(const ::google::protobuf::Message& from) {
  848. GOOGLE_CHECK_NE(&from, this);
  849. const packetc2w_req_coin_rank* source =
  850. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2w_req_coin_rank*>(
  851. &from);
  852. if (source == NULL) {
  853. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  854. } else {
  855. MergeFrom(*source);
  856. }
  857. }
  858. void packetc2w_req_coin_rank::MergeFrom(const packetc2w_req_coin_rank& from) {
  859. GOOGLE_CHECK_NE(&from, this);
  860. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  861. if (from.has_packet_id()) {
  862. set_packet_id(from.packet_id());
  863. }
  864. }
  865. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  866. }
  867. void packetc2w_req_coin_rank::CopyFrom(const ::google::protobuf::Message& from) {
  868. if (&from == this) return;
  869. Clear();
  870. MergeFrom(from);
  871. }
  872. void packetc2w_req_coin_rank::CopyFrom(const packetc2w_req_coin_rank& from) {
  873. if (&from == this) return;
  874. Clear();
  875. MergeFrom(from);
  876. }
  877. bool packetc2w_req_coin_rank::IsInitialized() const {
  878. return true;
  879. }
  880. void packetc2w_req_coin_rank::Swap(packetc2w_req_coin_rank* other) {
  881. if (other != this) {
  882. std::swap(packet_id_, other->packet_id_);
  883. std::swap(_has_bits_[0], other->_has_bits_[0]);
  884. _unknown_fields_.Swap(&other->_unknown_fields_);
  885. std::swap(_cached_size_, other->_cached_size_);
  886. }
  887. }
  888. ::google::protobuf::Metadata packetc2w_req_coin_rank::GetMetadata() const {
  889. protobuf_AssignDescriptorsOnce();
  890. ::google::protobuf::Metadata metadata;
  891. metadata.descriptor = packetc2w_req_coin_rank_descriptor_;
  892. metadata.reflection = packetc2w_req_coin_rank_reflection_;
  893. return metadata;
  894. }
  895. // ===================================================================
  896. #ifndef _MSC_VER
  897. const int packetw2c_req_coin_rank_result::kPacketIdFieldNumber;
  898. const int packetw2c_req_coin_rank_result::kRankListFieldNumber;
  899. const int packetw2c_req_coin_rank_result::kSelfRankFieldNumber;
  900. #endif // !_MSC_VER
  901. packetw2c_req_coin_rank_result::packetw2c_req_coin_rank_result()
  902. : ::google::protobuf::Message() {
  903. SharedCtor();
  904. }
  905. void packetw2c_req_coin_rank_result::InitAsDefaultInstance() {
  906. }
  907. packetw2c_req_coin_rank_result::packetw2c_req_coin_rank_result(const packetw2c_req_coin_rank_result& from)
  908. : ::google::protobuf::Message() {
  909. SharedCtor();
  910. MergeFrom(from);
  911. }
  912. void packetw2c_req_coin_rank_result::SharedCtor() {
  913. _cached_size_ = 0;
  914. packet_id_ = 7521;
  915. selfrank_ = 0;
  916. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  917. }
  918. packetw2c_req_coin_rank_result::~packetw2c_req_coin_rank_result() {
  919. SharedDtor();
  920. }
  921. void packetw2c_req_coin_rank_result::SharedDtor() {
  922. if (this != default_instance_) {
  923. }
  924. }
  925. void packetw2c_req_coin_rank_result::SetCachedSize(int size) const {
  926. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  927. _cached_size_ = size;
  928. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  929. }
  930. const ::google::protobuf::Descriptor* packetw2c_req_coin_rank_result::descriptor() {
  931. protobuf_AssignDescriptorsOnce();
  932. return packetw2c_req_coin_rank_result_descriptor_;
  933. }
  934. const packetw2c_req_coin_rank_result& packetw2c_req_coin_rank_result::default_instance() {
  935. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5frank_2eproto();
  936. return *default_instance_;
  937. }
  938. packetw2c_req_coin_rank_result* packetw2c_req_coin_rank_result::default_instance_ = NULL;
  939. packetw2c_req_coin_rank_result* packetw2c_req_coin_rank_result::New() const {
  940. return new packetw2c_req_coin_rank_result;
  941. }
  942. void packetw2c_req_coin_rank_result::Clear() {
  943. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  944. packet_id_ = 7521;
  945. selfrank_ = 0;
  946. }
  947. ranklist_.Clear();
  948. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  949. mutable_unknown_fields()->Clear();
  950. }
  951. bool packetw2c_req_coin_rank_result::MergePartialFromCodedStream(
  952. ::google::protobuf::io::CodedInputStream* input) {
  953. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  954. ::google::protobuf::uint32 tag;
  955. while ((tag = input->ReadTag()) != 0) {
  956. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  957. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_coin_rank_result];
  958. case 1: {
  959. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  960. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  961. int value;
  962. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  963. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  964. input, &value)));
  965. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  966. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  967. } else {
  968. mutable_unknown_fields()->AddVarint(1, value);
  969. }
  970. } else {
  971. goto handle_uninterpreted;
  972. }
  973. if (input->ExpectTag(18)) goto parse_rankList;
  974. break;
  975. }
  976. // repeated .client2world_protocols.RankInfo rankList = 2;
  977. case 2: {
  978. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  979. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  980. parse_rankList:
  981. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  982. input, add_ranklist()));
  983. } else {
  984. goto handle_uninterpreted;
  985. }
  986. if (input->ExpectTag(18)) goto parse_rankList;
  987. if (input->ExpectTag(24)) goto parse_selfRank;
  988. break;
  989. }
  990. // optional int32 selfRank = 3;
  991. case 3: {
  992. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  993. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  994. parse_selfRank:
  995. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  996. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  997. input, &selfrank_)));
  998. set_has_selfrank();
  999. } else {
  1000. goto handle_uninterpreted;
  1001. }
  1002. if (input->ExpectAtEnd()) return true;
  1003. break;
  1004. }
  1005. default: {
  1006. handle_uninterpreted:
  1007. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1008. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1009. return true;
  1010. }
  1011. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1012. input, tag, mutable_unknown_fields()));
  1013. break;
  1014. }
  1015. }
  1016. }
  1017. return true;
  1018. #undef DO_
  1019. }
  1020. void packetw2c_req_coin_rank_result::SerializeWithCachedSizes(
  1021. ::google::protobuf::io::CodedOutputStream* output) const {
  1022. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_coin_rank_result];
  1023. if (has_packet_id()) {
  1024. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1025. 1, this->packet_id(), output);
  1026. }
  1027. // repeated .client2world_protocols.RankInfo rankList = 2;
  1028. for (int i = 0; i < this->ranklist_size(); i++) {
  1029. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1030. 2, this->ranklist(i), output);
  1031. }
  1032. // optional int32 selfRank = 3;
  1033. if (has_selfrank()) {
  1034. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->selfrank(), output);
  1035. }
  1036. if (!unknown_fields().empty()) {
  1037. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1038. unknown_fields(), output);
  1039. }
  1040. }
  1041. ::google::protobuf::uint8* packetw2c_req_coin_rank_result::SerializeWithCachedSizesToArray(
  1042. ::google::protobuf::uint8* target) const {
  1043. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_coin_rank_result];
  1044. if (has_packet_id()) {
  1045. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1046. 1, this->packet_id(), target);
  1047. }
  1048. // repeated .client2world_protocols.RankInfo rankList = 2;
  1049. for (int i = 0; i < this->ranklist_size(); i++) {
  1050. target = ::google::protobuf::internal::WireFormatLite::
  1051. WriteMessageNoVirtualToArray(
  1052. 2, this->ranklist(i), target);
  1053. }
  1054. // optional int32 selfRank = 3;
  1055. if (has_selfrank()) {
  1056. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->selfrank(), target);
  1057. }
  1058. if (!unknown_fields().empty()) {
  1059. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1060. unknown_fields(), target);
  1061. }
  1062. return target;
  1063. }
  1064. int packetw2c_req_coin_rank_result::ByteSize() const {
  1065. int total_size = 0;
  1066. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1067. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_coin_rank_result];
  1068. if (has_packet_id()) {
  1069. total_size += 1 +
  1070. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  1071. }
  1072. // optional int32 selfRank = 3;
  1073. if (has_selfrank()) {
  1074. total_size += 1 +
  1075. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1076. this->selfrank());
  1077. }
  1078. }
  1079. // repeated .client2world_protocols.RankInfo rankList = 2;
  1080. total_size += 1 * this->ranklist_size();
  1081. for (int i = 0; i < this->ranklist_size(); i++) {
  1082. total_size +=
  1083. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1084. this->ranklist(i));
  1085. }
  1086. if (!unknown_fields().empty()) {
  1087. total_size +=
  1088. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1089. unknown_fields());
  1090. }
  1091. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1092. _cached_size_ = total_size;
  1093. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1094. return total_size;
  1095. }
  1096. void packetw2c_req_coin_rank_result::MergeFrom(const ::google::protobuf::Message& from) {
  1097. GOOGLE_CHECK_NE(&from, this);
  1098. const packetw2c_req_coin_rank_result* source =
  1099. ::google::protobuf::internal::dynamic_cast_if_available<const packetw2c_req_coin_rank_result*>(
  1100. &from);
  1101. if (source == NULL) {
  1102. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1103. } else {
  1104. MergeFrom(*source);
  1105. }
  1106. }
  1107. void packetw2c_req_coin_rank_result::MergeFrom(const packetw2c_req_coin_rank_result& from) {
  1108. GOOGLE_CHECK_NE(&from, this);
  1109. ranklist_.MergeFrom(from.ranklist_);
  1110. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1111. if (from.has_packet_id()) {
  1112. set_packet_id(from.packet_id());
  1113. }
  1114. if (from.has_selfrank()) {
  1115. set_selfrank(from.selfrank());
  1116. }
  1117. }
  1118. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1119. }
  1120. void packetw2c_req_coin_rank_result::CopyFrom(const ::google::protobuf::Message& from) {
  1121. if (&from == this) return;
  1122. Clear();
  1123. MergeFrom(from);
  1124. }
  1125. void packetw2c_req_coin_rank_result::CopyFrom(const packetw2c_req_coin_rank_result& from) {
  1126. if (&from == this) return;
  1127. Clear();
  1128. MergeFrom(from);
  1129. }
  1130. bool packetw2c_req_coin_rank_result::IsInitialized() const {
  1131. return true;
  1132. }
  1133. void packetw2c_req_coin_rank_result::Swap(packetw2c_req_coin_rank_result* other) {
  1134. if (other != this) {
  1135. std::swap(packet_id_, other->packet_id_);
  1136. ranklist_.Swap(&other->ranklist_);
  1137. std::swap(selfrank_, other->selfrank_);
  1138. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1139. _unknown_fields_.Swap(&other->_unknown_fields_);
  1140. std::swap(_cached_size_, other->_cached_size_);
  1141. }
  1142. }
  1143. ::google::protobuf::Metadata packetw2c_req_coin_rank_result::GetMetadata() const {
  1144. protobuf_AssignDescriptorsOnce();
  1145. ::google::protobuf::Metadata metadata;
  1146. metadata.descriptor = packetw2c_req_coin_rank_result_descriptor_;
  1147. metadata.reflection = packetw2c_req_coin_rank_result_reflection_;
  1148. return metadata;
  1149. }
  1150. // ===================================================================
  1151. #ifndef _MSC_VER
  1152. const int RechargeInfo::kPlayerIdFieldNumber;
  1153. const int RechargeInfo::kNickNameFieldNumber;
  1154. const int RechargeInfo::kRmbFieldNumber;
  1155. const int RechargeInfo::kVipLevelFieldNumber;
  1156. #endif // !_MSC_VER
  1157. RechargeInfo::RechargeInfo()
  1158. : ::google::protobuf::Message() {
  1159. SharedCtor();
  1160. }
  1161. void RechargeInfo::InitAsDefaultInstance() {
  1162. }
  1163. RechargeInfo::RechargeInfo(const RechargeInfo& from)
  1164. : ::google::protobuf::Message() {
  1165. SharedCtor();
  1166. MergeFrom(from);
  1167. }
  1168. void RechargeInfo::SharedCtor() {
  1169. _cached_size_ = 0;
  1170. playerid_ = 0;
  1171. nickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  1172. rmb_ = 0;
  1173. viplevel_ = 0;
  1174. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1175. }
  1176. RechargeInfo::~RechargeInfo() {
  1177. SharedDtor();
  1178. }
  1179. void RechargeInfo::SharedDtor() {
  1180. if (nickname_ != &::google::protobuf::internal::kEmptyString) {
  1181. delete nickname_;
  1182. }
  1183. if (this != default_instance_) {
  1184. }
  1185. }
  1186. void RechargeInfo::SetCachedSize(int size) const {
  1187. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1188. _cached_size_ = size;
  1189. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1190. }
  1191. const ::google::protobuf::Descriptor* RechargeInfo::descriptor() {
  1192. protobuf_AssignDescriptorsOnce();
  1193. return RechargeInfo_descriptor_;
  1194. }
  1195. const RechargeInfo& RechargeInfo::default_instance() {
  1196. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5frank_2eproto();
  1197. return *default_instance_;
  1198. }
  1199. RechargeInfo* RechargeInfo::default_instance_ = NULL;
  1200. RechargeInfo* RechargeInfo::New() const {
  1201. return new RechargeInfo;
  1202. }
  1203. void RechargeInfo::Clear() {
  1204. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1205. playerid_ = 0;
  1206. if (has_nickname()) {
  1207. if (nickname_ != &::google::protobuf::internal::kEmptyString) {
  1208. nickname_->clear();
  1209. }
  1210. }
  1211. rmb_ = 0;
  1212. viplevel_ = 0;
  1213. }
  1214. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1215. mutable_unknown_fields()->Clear();
  1216. }
  1217. bool RechargeInfo::MergePartialFromCodedStream(
  1218. ::google::protobuf::io::CodedInputStream* input) {
  1219. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  1220. ::google::protobuf::uint32 tag;
  1221. while ((tag = input->ReadTag()) != 0) {
  1222. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1223. // optional int32 playerId = 1;
  1224. case 1: {
  1225. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1226. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1227. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1228. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1229. input, &playerid_)));
  1230. set_has_playerid();
  1231. } else {
  1232. goto handle_uninterpreted;
  1233. }
  1234. if (input->ExpectTag(18)) goto parse_nickName;
  1235. break;
  1236. }
  1237. // optional string nickName = 2;
  1238. case 2: {
  1239. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1240. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1241. parse_nickName:
  1242. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1243. input, this->mutable_nickname()));
  1244. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1245. this->nickname().data(), this->nickname().length(),
  1246. ::google::protobuf::internal::WireFormat::PARSE);
  1247. } else {
  1248. goto handle_uninterpreted;
  1249. }
  1250. if (input->ExpectTag(24)) goto parse_rmb;
  1251. break;
  1252. }
  1253. // optional int32 rmb = 3;
  1254. case 3: {
  1255. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1256. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1257. parse_rmb:
  1258. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1259. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1260. input, &rmb_)));
  1261. set_has_rmb();
  1262. } else {
  1263. goto handle_uninterpreted;
  1264. }
  1265. if (input->ExpectTag(32)) goto parse_vipLevel;
  1266. break;
  1267. }
  1268. // optional int32 vipLevel = 4;
  1269. case 4: {
  1270. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1271. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1272. parse_vipLevel:
  1273. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1274. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1275. input, &viplevel_)));
  1276. set_has_viplevel();
  1277. } else {
  1278. goto handle_uninterpreted;
  1279. }
  1280. if (input->ExpectAtEnd()) return true;
  1281. break;
  1282. }
  1283. default: {
  1284. handle_uninterpreted:
  1285. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1286. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1287. return true;
  1288. }
  1289. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1290. input, tag, mutable_unknown_fields()));
  1291. break;
  1292. }
  1293. }
  1294. }
  1295. return true;
  1296. #undef DO_
  1297. }
  1298. void RechargeInfo::SerializeWithCachedSizes(
  1299. ::google::protobuf::io::CodedOutputStream* output) const {
  1300. // optional int32 playerId = 1;
  1301. if (has_playerid()) {
  1302. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->playerid(), output);
  1303. }
  1304. // optional string nickName = 2;
  1305. if (has_nickname()) {
  1306. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1307. this->nickname().data(), this->nickname().length(),
  1308. ::google::protobuf::internal::WireFormat::SERIALIZE);
  1309. ::google::protobuf::internal::WireFormatLite::WriteString(
  1310. 2, this->nickname(), output);
  1311. }
  1312. // optional int32 rmb = 3;
  1313. if (has_rmb()) {
  1314. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->rmb(), output);
  1315. }
  1316. // optional int32 vipLevel = 4;
  1317. if (has_viplevel()) {
  1318. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->viplevel(), output);
  1319. }
  1320. if (!unknown_fields().empty()) {
  1321. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1322. unknown_fields(), output);
  1323. }
  1324. }
  1325. ::google::protobuf::uint8* RechargeInfo::SerializeWithCachedSizesToArray(
  1326. ::google::protobuf::uint8* target) const {
  1327. // optional int32 playerId = 1;
  1328. if (has_playerid()) {
  1329. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->playerid(), target);
  1330. }
  1331. // optional string nickName = 2;
  1332. if (has_nickname()) {
  1333. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1334. this->nickname().data(), this->nickname().length(),
  1335. ::google::protobuf::internal::WireFormat::SERIALIZE);
  1336. target =
  1337. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1338. 2, this->nickname(), target);
  1339. }
  1340. // optional int32 rmb = 3;
  1341. if (has_rmb()) {
  1342. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->rmb(), target);
  1343. }
  1344. // optional int32 vipLevel = 4;
  1345. if (has_viplevel()) {
  1346. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->viplevel(), target);
  1347. }
  1348. if (!unknown_fields().empty()) {
  1349. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1350. unknown_fields(), target);
  1351. }
  1352. return target;
  1353. }
  1354. int RechargeInfo::ByteSize() const {
  1355. int total_size = 0;
  1356. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1357. // optional int32 playerId = 1;
  1358. if (has_playerid()) {
  1359. total_size += 1 +
  1360. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1361. this->playerid());
  1362. }
  1363. // optional string nickName = 2;
  1364. if (has_nickname()) {
  1365. total_size += 1 +
  1366. ::google::protobuf::internal::WireFormatLite::StringSize(
  1367. this->nickname());
  1368. }
  1369. // optional int32 rmb = 3;
  1370. if (has_rmb()) {
  1371. total_size += 1 +
  1372. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1373. this->rmb());
  1374. }
  1375. // optional int32 vipLevel = 4;
  1376. if (has_viplevel()) {
  1377. total_size += 1 +
  1378. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1379. this->viplevel());
  1380. }
  1381. }
  1382. if (!unknown_fields().empty()) {
  1383. total_size +=
  1384. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1385. unknown_fields());
  1386. }
  1387. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1388. _cached_size_ = total_size;
  1389. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1390. return total_size;
  1391. }
  1392. void RechargeInfo::MergeFrom(const ::google::protobuf::Message& from) {
  1393. GOOGLE_CHECK_NE(&from, this);
  1394. const RechargeInfo* source =
  1395. ::google::protobuf::internal::dynamic_cast_if_available<const RechargeInfo*>(
  1396. &from);
  1397. if (source == NULL) {
  1398. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1399. } else {
  1400. MergeFrom(*source);
  1401. }
  1402. }
  1403. void RechargeInfo::MergeFrom(const RechargeInfo& from) {
  1404. GOOGLE_CHECK_NE(&from, this);
  1405. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1406. if (from.has_playerid()) {
  1407. set_playerid(from.playerid());
  1408. }
  1409. if (from.has_nickname()) {
  1410. set_nickname(from.nickname());
  1411. }
  1412. if (from.has_rmb()) {
  1413. set_rmb(from.rmb());
  1414. }
  1415. if (from.has_viplevel()) {
  1416. set_viplevel(from.viplevel());
  1417. }
  1418. }
  1419. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1420. }
  1421. void RechargeInfo::CopyFrom(const ::google::protobuf::Message& from) {
  1422. if (&from == this) return;
  1423. Clear();
  1424. MergeFrom(from);
  1425. }
  1426. void RechargeInfo::CopyFrom(const RechargeInfo& from) {
  1427. if (&from == this) return;
  1428. Clear();
  1429. MergeFrom(from);
  1430. }
  1431. bool RechargeInfo::IsInitialized() const {
  1432. return true;
  1433. }
  1434. void RechargeInfo::Swap(RechargeInfo* other) {
  1435. if (other != this) {
  1436. std::swap(playerid_, other->playerid_);
  1437. std::swap(nickname_, other->nickname_);
  1438. std::swap(rmb_, other->rmb_);
  1439. std::swap(viplevel_, other->viplevel_);
  1440. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1441. _unknown_fields_.Swap(&other->_unknown_fields_);
  1442. std::swap(_cached_size_, other->_cached_size_);
  1443. }
  1444. }
  1445. ::google::protobuf::Metadata RechargeInfo::GetMetadata() const {
  1446. protobuf_AssignDescriptorsOnce();
  1447. ::google::protobuf::Metadata metadata;
  1448. metadata.descriptor = RechargeInfo_descriptor_;
  1449. metadata.reflection = RechargeInfo_reflection_;
  1450. return metadata;
  1451. }
  1452. // ===================================================================
  1453. #ifndef _MSC_VER
  1454. const int packetc2w_req_recharge_rank::kPacketIdFieldNumber;
  1455. const int packetc2w_req_recharge_rank::kIsYesterdayFieldNumber;
  1456. #endif // !_MSC_VER
  1457. packetc2w_req_recharge_rank::packetc2w_req_recharge_rank()
  1458. : ::google::protobuf::Message() {
  1459. SharedCtor();
  1460. }
  1461. void packetc2w_req_recharge_rank::InitAsDefaultInstance() {
  1462. }
  1463. packetc2w_req_recharge_rank::packetc2w_req_recharge_rank(const packetc2w_req_recharge_rank& from)
  1464. : ::google::protobuf::Message() {
  1465. SharedCtor();
  1466. MergeFrom(from);
  1467. }
  1468. void packetc2w_req_recharge_rank::SharedCtor() {
  1469. _cached_size_ = 0;
  1470. packet_id_ = 5051;
  1471. is_yesterday_ = false;
  1472. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1473. }
  1474. packetc2w_req_recharge_rank::~packetc2w_req_recharge_rank() {
  1475. SharedDtor();
  1476. }
  1477. void packetc2w_req_recharge_rank::SharedDtor() {
  1478. if (this != default_instance_) {
  1479. }
  1480. }
  1481. void packetc2w_req_recharge_rank::SetCachedSize(int size) const {
  1482. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1483. _cached_size_ = size;
  1484. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1485. }
  1486. const ::google::protobuf::Descriptor* packetc2w_req_recharge_rank::descriptor() {
  1487. protobuf_AssignDescriptorsOnce();
  1488. return packetc2w_req_recharge_rank_descriptor_;
  1489. }
  1490. const packetc2w_req_recharge_rank& packetc2w_req_recharge_rank::default_instance() {
  1491. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5frank_2eproto();
  1492. return *default_instance_;
  1493. }
  1494. packetc2w_req_recharge_rank* packetc2w_req_recharge_rank::default_instance_ = NULL;
  1495. packetc2w_req_recharge_rank* packetc2w_req_recharge_rank::New() const {
  1496. return new packetc2w_req_recharge_rank;
  1497. }
  1498. void packetc2w_req_recharge_rank::Clear() {
  1499. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1500. packet_id_ = 5051;
  1501. is_yesterday_ = false;
  1502. }
  1503. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1504. mutable_unknown_fields()->Clear();
  1505. }
  1506. bool packetc2w_req_recharge_rank::MergePartialFromCodedStream(
  1507. ::google::protobuf::io::CodedInputStream* input) {
  1508. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  1509. ::google::protobuf::uint32 tag;
  1510. while ((tag = input->ReadTag()) != 0) {
  1511. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1512. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_recharge_rank];
  1513. case 1: {
  1514. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1515. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1516. int value;
  1517. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1518. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1519. input, &value)));
  1520. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  1521. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  1522. } else {
  1523. mutable_unknown_fields()->AddVarint(1, value);
  1524. }
  1525. } else {
  1526. goto handle_uninterpreted;
  1527. }
  1528. if (input->ExpectTag(16)) goto parse_is_yesterday;
  1529. break;
  1530. }
  1531. // optional bool is_yesterday = 2 [default = false];
  1532. case 2: {
  1533. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1534. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1535. parse_is_yesterday:
  1536. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1537. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  1538. input, &is_yesterday_)));
  1539. set_has_is_yesterday();
  1540. } else {
  1541. goto handle_uninterpreted;
  1542. }
  1543. if (input->ExpectAtEnd()) return true;
  1544. break;
  1545. }
  1546. default: {
  1547. handle_uninterpreted:
  1548. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1549. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1550. return true;
  1551. }
  1552. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1553. input, tag, mutable_unknown_fields()));
  1554. break;
  1555. }
  1556. }
  1557. }
  1558. return true;
  1559. #undef DO_
  1560. }
  1561. void packetc2w_req_recharge_rank::SerializeWithCachedSizes(
  1562. ::google::protobuf::io::CodedOutputStream* output) const {
  1563. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_recharge_rank];
  1564. if (has_packet_id()) {
  1565. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1566. 1, this->packet_id(), output);
  1567. }
  1568. // optional bool is_yesterday = 2 [default = false];
  1569. if (has_is_yesterday()) {
  1570. ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_yesterday(), output);
  1571. }
  1572. if (!unknown_fields().empty()) {
  1573. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1574. unknown_fields(), output);
  1575. }
  1576. }
  1577. ::google::protobuf::uint8* packetc2w_req_recharge_rank::SerializeWithCachedSizesToArray(
  1578. ::google::protobuf::uint8* target) const {
  1579. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_recharge_rank];
  1580. if (has_packet_id()) {
  1581. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1582. 1, this->packet_id(), target);
  1583. }
  1584. // optional bool is_yesterday = 2 [default = false];
  1585. if (has_is_yesterday()) {
  1586. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_yesterday(), target);
  1587. }
  1588. if (!unknown_fields().empty()) {
  1589. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1590. unknown_fields(), target);
  1591. }
  1592. return target;
  1593. }
  1594. int packetc2w_req_recharge_rank::ByteSize() const {
  1595. int total_size = 0;
  1596. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1597. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_recharge_rank];
  1598. if (has_packet_id()) {
  1599. total_size += 1 +
  1600. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  1601. }
  1602. // optional bool is_yesterday = 2 [default = false];
  1603. if (has_is_yesterday()) {
  1604. total_size += 1 + 1;
  1605. }
  1606. }
  1607. if (!unknown_fields().empty()) {
  1608. total_size +=
  1609. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1610. unknown_fields());
  1611. }
  1612. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1613. _cached_size_ = total_size;
  1614. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1615. return total_size;
  1616. }
  1617. void packetc2w_req_recharge_rank::MergeFrom(const ::google::protobuf::Message& from) {
  1618. GOOGLE_CHECK_NE(&from, this);
  1619. const packetc2w_req_recharge_rank* source =
  1620. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2w_req_recharge_rank*>(
  1621. &from);
  1622. if (source == NULL) {
  1623. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1624. } else {
  1625. MergeFrom(*source);
  1626. }
  1627. }
  1628. void packetc2w_req_recharge_rank::MergeFrom(const packetc2w_req_recharge_rank& from) {
  1629. GOOGLE_CHECK_NE(&from, this);
  1630. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1631. if (from.has_packet_id()) {
  1632. set_packet_id(from.packet_id());
  1633. }
  1634. if (from.has_is_yesterday()) {
  1635. set_is_yesterday(from.is_yesterday());
  1636. }
  1637. }
  1638. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1639. }
  1640. void packetc2w_req_recharge_rank::CopyFrom(const ::google::protobuf::Message& from) {
  1641. if (&from == this) return;
  1642. Clear();
  1643. MergeFrom(from);
  1644. }
  1645. void packetc2w_req_recharge_rank::CopyFrom(const packetc2w_req_recharge_rank& from) {
  1646. if (&from == this) return;
  1647. Clear();
  1648. MergeFrom(from);
  1649. }
  1650. bool packetc2w_req_recharge_rank::IsInitialized() const {
  1651. return true;
  1652. }
  1653. void packetc2w_req_recharge_rank::Swap(packetc2w_req_recharge_rank* other) {
  1654. if (other != this) {
  1655. std::swap(packet_id_, other->packet_id_);
  1656. std::swap(is_yesterday_, other->is_yesterday_);
  1657. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1658. _unknown_fields_.Swap(&other->_unknown_fields_);
  1659. std::swap(_cached_size_, other->_cached_size_);
  1660. }
  1661. }
  1662. ::google::protobuf::Metadata packetc2w_req_recharge_rank::GetMetadata() const {
  1663. protobuf_AssignDescriptorsOnce();
  1664. ::google::protobuf::Metadata metadata;
  1665. metadata.descriptor = packetc2w_req_recharge_rank_descriptor_;
  1666. metadata.reflection = packetc2w_req_recharge_rank_reflection_;
  1667. return metadata;
  1668. }
  1669. // ===================================================================
  1670. #ifndef _MSC_VER
  1671. const int packetw2c_req_recharge_rank_result::kPacketIdFieldNumber;
  1672. const int packetw2c_req_recharge_rank_result::kRankListFieldNumber;
  1673. const int packetw2c_req_recharge_rank_result::kSelfRankFieldNumber;
  1674. const int packetw2c_req_recharge_rank_result::kSelfrmbFieldNumber;
  1675. const int packetw2c_req_recharge_rank_result::kIsYesterdayFieldNumber;
  1676. #endif // !_MSC_VER
  1677. packetw2c_req_recharge_rank_result::packetw2c_req_recharge_rank_result()
  1678. : ::google::protobuf::Message() {
  1679. SharedCtor();
  1680. }
  1681. void packetw2c_req_recharge_rank_result::InitAsDefaultInstance() {
  1682. }
  1683. packetw2c_req_recharge_rank_result::packetw2c_req_recharge_rank_result(const packetw2c_req_recharge_rank_result& from)
  1684. : ::google::protobuf::Message() {
  1685. SharedCtor();
  1686. MergeFrom(from);
  1687. }
  1688. void packetw2c_req_recharge_rank_result::SharedCtor() {
  1689. _cached_size_ = 0;
  1690. packet_id_ = 7554;
  1691. selfrank_ = 0;
  1692. selfrmb_ = 0;
  1693. is_yesterday_ = false;
  1694. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1695. }
  1696. packetw2c_req_recharge_rank_result::~packetw2c_req_recharge_rank_result() {
  1697. SharedDtor();
  1698. }
  1699. void packetw2c_req_recharge_rank_result::SharedDtor() {
  1700. if (this != default_instance_) {
  1701. }
  1702. }
  1703. void packetw2c_req_recharge_rank_result::SetCachedSize(int size) const {
  1704. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1705. _cached_size_ = size;
  1706. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1707. }
  1708. const ::google::protobuf::Descriptor* packetw2c_req_recharge_rank_result::descriptor() {
  1709. protobuf_AssignDescriptorsOnce();
  1710. return packetw2c_req_recharge_rank_result_descriptor_;
  1711. }
  1712. const packetw2c_req_recharge_rank_result& packetw2c_req_recharge_rank_result::default_instance() {
  1713. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5frank_2eproto();
  1714. return *default_instance_;
  1715. }
  1716. packetw2c_req_recharge_rank_result* packetw2c_req_recharge_rank_result::default_instance_ = NULL;
  1717. packetw2c_req_recharge_rank_result* packetw2c_req_recharge_rank_result::New() const {
  1718. return new packetw2c_req_recharge_rank_result;
  1719. }
  1720. void packetw2c_req_recharge_rank_result::Clear() {
  1721. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1722. packet_id_ = 7554;
  1723. selfrank_ = 0;
  1724. selfrmb_ = 0;
  1725. is_yesterday_ = false;
  1726. }
  1727. ranklist_.Clear();
  1728. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1729. mutable_unknown_fields()->Clear();
  1730. }
  1731. bool packetw2c_req_recharge_rank_result::MergePartialFromCodedStream(
  1732. ::google::protobuf::io::CodedInputStream* input) {
  1733. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  1734. ::google::protobuf::uint32 tag;
  1735. while ((tag = input->ReadTag()) != 0) {
  1736. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1737. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_recharge_rank_result];
  1738. case 1: {
  1739. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1740. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1741. int value;
  1742. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1743. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1744. input, &value)));
  1745. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  1746. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  1747. } else {
  1748. mutable_unknown_fields()->AddVarint(1, value);
  1749. }
  1750. } else {
  1751. goto handle_uninterpreted;
  1752. }
  1753. if (input->ExpectTag(18)) goto parse_rankList;
  1754. break;
  1755. }
  1756. // repeated .client2world_protocols.RechargeInfo rankList = 2;
  1757. case 2: {
  1758. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1759. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1760. parse_rankList:
  1761. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1762. input, add_ranklist()));
  1763. } else {
  1764. goto handle_uninterpreted;
  1765. }
  1766. if (input->ExpectTag(18)) goto parse_rankList;
  1767. if (input->ExpectTag(24)) goto parse_selfRank;
  1768. break;
  1769. }
  1770. // optional int32 selfRank = 3;
  1771. case 3: {
  1772. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1773. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1774. parse_selfRank:
  1775. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1776. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1777. input, &selfrank_)));
  1778. set_has_selfrank();
  1779. } else {
  1780. goto handle_uninterpreted;
  1781. }
  1782. if (input->ExpectTag(32)) goto parse_selfrmb;
  1783. break;
  1784. }
  1785. // optional int32 selfrmb = 4;
  1786. case 4: {
  1787. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1788. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1789. parse_selfrmb:
  1790. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1791. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1792. input, &selfrmb_)));
  1793. set_has_selfrmb();
  1794. } else {
  1795. goto handle_uninterpreted;
  1796. }
  1797. if (input->ExpectTag(40)) goto parse_is_yesterday;
  1798. break;
  1799. }
  1800. // optional bool is_yesterday = 5 [default = false];
  1801. case 5: {
  1802. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1803. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1804. parse_is_yesterday:
  1805. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1806. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  1807. input, &is_yesterday_)));
  1808. set_has_is_yesterday();
  1809. } else {
  1810. goto handle_uninterpreted;
  1811. }
  1812. if (input->ExpectAtEnd()) return true;
  1813. break;
  1814. }
  1815. default: {
  1816. handle_uninterpreted:
  1817. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1818. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1819. return true;
  1820. }
  1821. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1822. input, tag, mutable_unknown_fields()));
  1823. break;
  1824. }
  1825. }
  1826. }
  1827. return true;
  1828. #undef DO_
  1829. }
  1830. void packetw2c_req_recharge_rank_result::SerializeWithCachedSizes(
  1831. ::google::protobuf::io::CodedOutputStream* output) const {
  1832. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_recharge_rank_result];
  1833. if (has_packet_id()) {
  1834. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1835. 1, this->packet_id(), output);
  1836. }
  1837. // repeated .client2world_protocols.RechargeInfo rankList = 2;
  1838. for (int i = 0; i < this->ranklist_size(); i++) {
  1839. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1840. 2, this->ranklist(i), output);
  1841. }
  1842. // optional int32 selfRank = 3;
  1843. if (has_selfrank()) {
  1844. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->selfrank(), output);
  1845. }
  1846. // optional int32 selfrmb = 4;
  1847. if (has_selfrmb()) {
  1848. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->selfrmb(), output);
  1849. }
  1850. // optional bool is_yesterday = 5 [default = false];
  1851. if (has_is_yesterday()) {
  1852. ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->is_yesterday(), output);
  1853. }
  1854. if (!unknown_fields().empty()) {
  1855. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1856. unknown_fields(), output);
  1857. }
  1858. }
  1859. ::google::protobuf::uint8* packetw2c_req_recharge_rank_result::SerializeWithCachedSizesToArray(
  1860. ::google::protobuf::uint8* target) const {
  1861. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_recharge_rank_result];
  1862. if (has_packet_id()) {
  1863. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1864. 1, this->packet_id(), target);
  1865. }
  1866. // repeated .client2world_protocols.RechargeInfo rankList = 2;
  1867. for (int i = 0; i < this->ranklist_size(); i++) {
  1868. target = ::google::protobuf::internal::WireFormatLite::
  1869. WriteMessageNoVirtualToArray(
  1870. 2, this->ranklist(i), target);
  1871. }
  1872. // optional int32 selfRank = 3;
  1873. if (has_selfrank()) {
  1874. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->selfrank(), target);
  1875. }
  1876. // optional int32 selfrmb = 4;
  1877. if (has_selfrmb()) {
  1878. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->selfrmb(), target);
  1879. }
  1880. // optional bool is_yesterday = 5 [default = false];
  1881. if (has_is_yesterday()) {
  1882. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->is_yesterday(), target);
  1883. }
  1884. if (!unknown_fields().empty()) {
  1885. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1886. unknown_fields(), target);
  1887. }
  1888. return target;
  1889. }
  1890. int packetw2c_req_recharge_rank_result::ByteSize() const {
  1891. int total_size = 0;
  1892. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1893. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_recharge_rank_result];
  1894. if (has_packet_id()) {
  1895. total_size += 1 +
  1896. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  1897. }
  1898. // optional int32 selfRank = 3;
  1899. if (has_selfrank()) {
  1900. total_size += 1 +
  1901. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1902. this->selfrank());
  1903. }
  1904. // optional int32 selfrmb = 4;
  1905. if (has_selfrmb()) {
  1906. total_size += 1 +
  1907. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1908. this->selfrmb());
  1909. }
  1910. // optional bool is_yesterday = 5 [default = false];
  1911. if (has_is_yesterday()) {
  1912. total_size += 1 + 1;
  1913. }
  1914. }
  1915. // repeated .client2world_protocols.RechargeInfo rankList = 2;
  1916. total_size += 1 * this->ranklist_size();
  1917. for (int i = 0; i < this->ranklist_size(); i++) {
  1918. total_size +=
  1919. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1920. this->ranklist(i));
  1921. }
  1922. if (!unknown_fields().empty()) {
  1923. total_size +=
  1924. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1925. unknown_fields());
  1926. }
  1927. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1928. _cached_size_ = total_size;
  1929. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1930. return total_size;
  1931. }
  1932. void packetw2c_req_recharge_rank_result::MergeFrom(const ::google::protobuf::Message& from) {
  1933. GOOGLE_CHECK_NE(&from, this);
  1934. const packetw2c_req_recharge_rank_result* source =
  1935. ::google::protobuf::internal::dynamic_cast_if_available<const packetw2c_req_recharge_rank_result*>(
  1936. &from);
  1937. if (source == NULL) {
  1938. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1939. } else {
  1940. MergeFrom(*source);
  1941. }
  1942. }
  1943. void packetw2c_req_recharge_rank_result::MergeFrom(const packetw2c_req_recharge_rank_result& from) {
  1944. GOOGLE_CHECK_NE(&from, this);
  1945. ranklist_.MergeFrom(from.ranklist_);
  1946. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1947. if (from.has_packet_id()) {
  1948. set_packet_id(from.packet_id());
  1949. }
  1950. if (from.has_selfrank()) {
  1951. set_selfrank(from.selfrank());
  1952. }
  1953. if (from.has_selfrmb()) {
  1954. set_selfrmb(from.selfrmb());
  1955. }
  1956. if (from.has_is_yesterday()) {
  1957. set_is_yesterday(from.is_yesterday());
  1958. }
  1959. }
  1960. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1961. }
  1962. void packetw2c_req_recharge_rank_result::CopyFrom(const ::google::protobuf::Message& from) {
  1963. if (&from == this) return;
  1964. Clear();
  1965. MergeFrom(from);
  1966. }
  1967. void packetw2c_req_recharge_rank_result::CopyFrom(const packetw2c_req_recharge_rank_result& from) {
  1968. if (&from == this) return;
  1969. Clear();
  1970. MergeFrom(from);
  1971. }
  1972. bool packetw2c_req_recharge_rank_result::IsInitialized() const {
  1973. return true;
  1974. }
  1975. void packetw2c_req_recharge_rank_result::Swap(packetw2c_req_recharge_rank_result* other) {
  1976. if (other != this) {
  1977. std::swap(packet_id_, other->packet_id_);
  1978. ranklist_.Swap(&other->ranklist_);
  1979. std::swap(selfrank_, other->selfrank_);
  1980. std::swap(selfrmb_, other->selfrmb_);
  1981. std::swap(is_yesterday_, other->is_yesterday_);
  1982. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1983. _unknown_fields_.Swap(&other->_unknown_fields_);
  1984. std::swap(_cached_size_, other->_cached_size_);
  1985. }
  1986. }
  1987. ::google::protobuf::Metadata packetw2c_req_recharge_rank_result::GetMetadata() const {
  1988. protobuf_AssignDescriptorsOnce();
  1989. ::google::protobuf::Metadata metadata;
  1990. metadata.descriptor = packetw2c_req_recharge_rank_result_descriptor_;
  1991. metadata.reflection = packetw2c_req_recharge_rank_result_reflection_;
  1992. return metadata;
  1993. }
  1994. // ===================================================================
  1995. #ifndef _MSC_VER
  1996. const int packetc2w_req_coin_growth::kPacketIdFieldNumber;
  1997. #endif // !_MSC_VER
  1998. packetc2w_req_coin_growth::packetc2w_req_coin_growth()
  1999. : ::google::protobuf::Message() {
  2000. SharedCtor();
  2001. }
  2002. void packetc2w_req_coin_growth::InitAsDefaultInstance() {
  2003. }
  2004. packetc2w_req_coin_growth::packetc2w_req_coin_growth(const packetc2w_req_coin_growth& from)
  2005. : ::google::protobuf::Message() {
  2006. SharedCtor();
  2007. MergeFrom(from);
  2008. }
  2009. void packetc2w_req_coin_growth::SharedCtor() {
  2010. _cached_size_ = 0;
  2011. packet_id_ = 5054;
  2012. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2013. }
  2014. packetc2w_req_coin_growth::~packetc2w_req_coin_growth() {
  2015. SharedDtor();
  2016. }
  2017. void packetc2w_req_coin_growth::SharedDtor() {
  2018. if (this != default_instance_) {
  2019. }
  2020. }
  2021. void packetc2w_req_coin_growth::SetCachedSize(int size) const {
  2022. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2023. _cached_size_ = size;
  2024. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2025. }
  2026. const ::google::protobuf::Descriptor* packetc2w_req_coin_growth::descriptor() {
  2027. protobuf_AssignDescriptorsOnce();
  2028. return packetc2w_req_coin_growth_descriptor_;
  2029. }
  2030. const packetc2w_req_coin_growth& packetc2w_req_coin_growth::default_instance() {
  2031. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5frank_2eproto();
  2032. return *default_instance_;
  2033. }
  2034. packetc2w_req_coin_growth* packetc2w_req_coin_growth::default_instance_ = NULL;
  2035. packetc2w_req_coin_growth* packetc2w_req_coin_growth::New() const {
  2036. return new packetc2w_req_coin_growth;
  2037. }
  2038. void packetc2w_req_coin_growth::Clear() {
  2039. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2040. packet_id_ = 5054;
  2041. }
  2042. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2043. mutable_unknown_fields()->Clear();
  2044. }
  2045. bool packetc2w_req_coin_growth::MergePartialFromCodedStream(
  2046. ::google::protobuf::io::CodedInputStream* input) {
  2047. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  2048. ::google::protobuf::uint32 tag;
  2049. while ((tag = input->ReadTag()) != 0) {
  2050. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2051. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_coin_growth];
  2052. case 1: {
  2053. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2054. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2055. int value;
  2056. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2057. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2058. input, &value)));
  2059. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  2060. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  2061. } else {
  2062. mutable_unknown_fields()->AddVarint(1, value);
  2063. }
  2064. } else {
  2065. goto handle_uninterpreted;
  2066. }
  2067. if (input->ExpectAtEnd()) return true;
  2068. break;
  2069. }
  2070. default: {
  2071. handle_uninterpreted:
  2072. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2073. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2074. return true;
  2075. }
  2076. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2077. input, tag, mutable_unknown_fields()));
  2078. break;
  2079. }
  2080. }
  2081. }
  2082. return true;
  2083. #undef DO_
  2084. }
  2085. void packetc2w_req_coin_growth::SerializeWithCachedSizes(
  2086. ::google::protobuf::io::CodedOutputStream* output) const {
  2087. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_coin_growth];
  2088. if (has_packet_id()) {
  2089. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2090. 1, this->packet_id(), output);
  2091. }
  2092. if (!unknown_fields().empty()) {
  2093. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2094. unknown_fields(), output);
  2095. }
  2096. }
  2097. ::google::protobuf::uint8* packetc2w_req_coin_growth::SerializeWithCachedSizesToArray(
  2098. ::google::protobuf::uint8* target) const {
  2099. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_coin_growth];
  2100. if (has_packet_id()) {
  2101. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2102. 1, this->packet_id(), target);
  2103. }
  2104. if (!unknown_fields().empty()) {
  2105. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2106. unknown_fields(), target);
  2107. }
  2108. return target;
  2109. }
  2110. int packetc2w_req_coin_growth::ByteSize() const {
  2111. int total_size = 0;
  2112. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2113. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_coin_growth];
  2114. if (has_packet_id()) {
  2115. total_size += 1 +
  2116. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  2117. }
  2118. }
  2119. if (!unknown_fields().empty()) {
  2120. total_size +=
  2121. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2122. unknown_fields());
  2123. }
  2124. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2125. _cached_size_ = total_size;
  2126. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2127. return total_size;
  2128. }
  2129. void packetc2w_req_coin_growth::MergeFrom(const ::google::protobuf::Message& from) {
  2130. GOOGLE_CHECK_NE(&from, this);
  2131. const packetc2w_req_coin_growth* source =
  2132. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2w_req_coin_growth*>(
  2133. &from);
  2134. if (source == NULL) {
  2135. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2136. } else {
  2137. MergeFrom(*source);
  2138. }
  2139. }
  2140. void packetc2w_req_coin_growth::MergeFrom(const packetc2w_req_coin_growth& from) {
  2141. GOOGLE_CHECK_NE(&from, this);
  2142. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2143. if (from.has_packet_id()) {
  2144. set_packet_id(from.packet_id());
  2145. }
  2146. }
  2147. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  2148. }
  2149. void packetc2w_req_coin_growth::CopyFrom(const ::google::protobuf::Message& from) {
  2150. if (&from == this) return;
  2151. Clear();
  2152. MergeFrom(from);
  2153. }
  2154. void packetc2w_req_coin_growth::CopyFrom(const packetc2w_req_coin_growth& from) {
  2155. if (&from == this) return;
  2156. Clear();
  2157. MergeFrom(from);
  2158. }
  2159. bool packetc2w_req_coin_growth::IsInitialized() const {
  2160. return true;
  2161. }
  2162. void packetc2w_req_coin_growth::Swap(packetc2w_req_coin_growth* other) {
  2163. if (other != this) {
  2164. std::swap(packet_id_, other->packet_id_);
  2165. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2166. _unknown_fields_.Swap(&other->_unknown_fields_);
  2167. std::swap(_cached_size_, other->_cached_size_);
  2168. }
  2169. }
  2170. ::google::protobuf::Metadata packetc2w_req_coin_growth::GetMetadata() const {
  2171. protobuf_AssignDescriptorsOnce();
  2172. ::google::protobuf::Metadata metadata;
  2173. metadata.descriptor = packetc2w_req_coin_growth_descriptor_;
  2174. metadata.reflection = packetc2w_req_coin_growth_reflection_;
  2175. return metadata;
  2176. }
  2177. // ===================================================================
  2178. #ifndef _MSC_VER
  2179. const int packetw2c_req_coin_growth_result::kPacketIdFieldNumber;
  2180. const int packetw2c_req_coin_growth_result::kRankListFieldNumber;
  2181. const int packetw2c_req_coin_growth_result::kSelfRankFieldNumber;
  2182. const int packetw2c_req_coin_growth_result::kSelfGoldFieldNumber;
  2183. #endif // !_MSC_VER
  2184. packetw2c_req_coin_growth_result::packetw2c_req_coin_growth_result()
  2185. : ::google::protobuf::Message() {
  2186. SharedCtor();
  2187. }
  2188. void packetw2c_req_coin_growth_result::InitAsDefaultInstance() {
  2189. }
  2190. packetw2c_req_coin_growth_result::packetw2c_req_coin_growth_result(const packetw2c_req_coin_growth_result& from)
  2191. : ::google::protobuf::Message() {
  2192. SharedCtor();
  2193. MergeFrom(from);
  2194. }
  2195. void packetw2c_req_coin_growth_result::SharedCtor() {
  2196. _cached_size_ = 0;
  2197. packet_id_ = 7557;
  2198. selfrank_ = 0;
  2199. selfgold_ = GOOGLE_LONGLONG(0);
  2200. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2201. }
  2202. packetw2c_req_coin_growth_result::~packetw2c_req_coin_growth_result() {
  2203. SharedDtor();
  2204. }
  2205. void packetw2c_req_coin_growth_result::SharedDtor() {
  2206. if (this != default_instance_) {
  2207. }
  2208. }
  2209. void packetw2c_req_coin_growth_result::SetCachedSize(int size) const {
  2210. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2211. _cached_size_ = size;
  2212. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2213. }
  2214. const ::google::protobuf::Descriptor* packetw2c_req_coin_growth_result::descriptor() {
  2215. protobuf_AssignDescriptorsOnce();
  2216. return packetw2c_req_coin_growth_result_descriptor_;
  2217. }
  2218. const packetw2c_req_coin_growth_result& packetw2c_req_coin_growth_result::default_instance() {
  2219. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5frank_2eproto();
  2220. return *default_instance_;
  2221. }
  2222. packetw2c_req_coin_growth_result* packetw2c_req_coin_growth_result::default_instance_ = NULL;
  2223. packetw2c_req_coin_growth_result* packetw2c_req_coin_growth_result::New() const {
  2224. return new packetw2c_req_coin_growth_result;
  2225. }
  2226. void packetw2c_req_coin_growth_result::Clear() {
  2227. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2228. packet_id_ = 7557;
  2229. selfrank_ = 0;
  2230. selfgold_ = GOOGLE_LONGLONG(0);
  2231. }
  2232. ranklist_.Clear();
  2233. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2234. mutable_unknown_fields()->Clear();
  2235. }
  2236. bool packetw2c_req_coin_growth_result::MergePartialFromCodedStream(
  2237. ::google::protobuf::io::CodedInputStream* input) {
  2238. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  2239. ::google::protobuf::uint32 tag;
  2240. while ((tag = input->ReadTag()) != 0) {
  2241. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2242. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_coin_growth_result];
  2243. case 1: {
  2244. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2245. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2246. int value;
  2247. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2248. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2249. input, &value)));
  2250. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  2251. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  2252. } else {
  2253. mutable_unknown_fields()->AddVarint(1, value);
  2254. }
  2255. } else {
  2256. goto handle_uninterpreted;
  2257. }
  2258. if (input->ExpectTag(18)) goto parse_rankList;
  2259. break;
  2260. }
  2261. // repeated .client2world_protocols.RankInfo rankList = 2;
  2262. case 2: {
  2263. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2264. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  2265. parse_rankList:
  2266. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2267. input, add_ranklist()));
  2268. } else {
  2269. goto handle_uninterpreted;
  2270. }
  2271. if (input->ExpectTag(18)) goto parse_rankList;
  2272. if (input->ExpectTag(24)) goto parse_selfRank;
  2273. break;
  2274. }
  2275. // optional int32 selfRank = 3;
  2276. case 3: {
  2277. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2278. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2279. parse_selfRank:
  2280. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2281. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2282. input, &selfrank_)));
  2283. set_has_selfrank();
  2284. } else {
  2285. goto handle_uninterpreted;
  2286. }
  2287. if (input->ExpectTag(32)) goto parse_selfGold;
  2288. break;
  2289. }
  2290. // optional int64 selfGold = 4;
  2291. case 4: {
  2292. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2293. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2294. parse_selfGold:
  2295. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2296. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  2297. input, &selfgold_)));
  2298. set_has_selfgold();
  2299. } else {
  2300. goto handle_uninterpreted;
  2301. }
  2302. if (input->ExpectAtEnd()) return true;
  2303. break;
  2304. }
  2305. default: {
  2306. handle_uninterpreted:
  2307. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2308. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2309. return true;
  2310. }
  2311. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2312. input, tag, mutable_unknown_fields()));
  2313. break;
  2314. }
  2315. }
  2316. }
  2317. return true;
  2318. #undef DO_
  2319. }
  2320. void packetw2c_req_coin_growth_result::SerializeWithCachedSizes(
  2321. ::google::protobuf::io::CodedOutputStream* output) const {
  2322. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_coin_growth_result];
  2323. if (has_packet_id()) {
  2324. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2325. 1, this->packet_id(), output);
  2326. }
  2327. // repeated .client2world_protocols.RankInfo rankList = 2;
  2328. for (int i = 0; i < this->ranklist_size(); i++) {
  2329. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2330. 2, this->ranklist(i), output);
  2331. }
  2332. // optional int32 selfRank = 3;
  2333. if (has_selfrank()) {
  2334. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->selfrank(), output);
  2335. }
  2336. // optional int64 selfGold = 4;
  2337. if (has_selfgold()) {
  2338. ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->selfgold(), output);
  2339. }
  2340. if (!unknown_fields().empty()) {
  2341. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2342. unknown_fields(), output);
  2343. }
  2344. }
  2345. ::google::protobuf::uint8* packetw2c_req_coin_growth_result::SerializeWithCachedSizesToArray(
  2346. ::google::protobuf::uint8* target) const {
  2347. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_coin_growth_result];
  2348. if (has_packet_id()) {
  2349. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2350. 1, this->packet_id(), target);
  2351. }
  2352. // repeated .client2world_protocols.RankInfo rankList = 2;
  2353. for (int i = 0; i < this->ranklist_size(); i++) {
  2354. target = ::google::protobuf::internal::WireFormatLite::
  2355. WriteMessageNoVirtualToArray(
  2356. 2, this->ranklist(i), target);
  2357. }
  2358. // optional int32 selfRank = 3;
  2359. if (has_selfrank()) {
  2360. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->selfrank(), target);
  2361. }
  2362. // optional int64 selfGold = 4;
  2363. if (has_selfgold()) {
  2364. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->selfgold(), target);
  2365. }
  2366. if (!unknown_fields().empty()) {
  2367. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2368. unknown_fields(), target);
  2369. }
  2370. return target;
  2371. }
  2372. int packetw2c_req_coin_growth_result::ByteSize() const {
  2373. int total_size = 0;
  2374. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2375. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_coin_growth_result];
  2376. if (has_packet_id()) {
  2377. total_size += 1 +
  2378. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  2379. }
  2380. // optional int32 selfRank = 3;
  2381. if (has_selfrank()) {
  2382. total_size += 1 +
  2383. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2384. this->selfrank());
  2385. }
  2386. // optional int64 selfGold = 4;
  2387. if (has_selfgold()) {
  2388. total_size += 1 +
  2389. ::google::protobuf::internal::WireFormatLite::Int64Size(
  2390. this->selfgold());
  2391. }
  2392. }
  2393. // repeated .client2world_protocols.RankInfo rankList = 2;
  2394. total_size += 1 * this->ranklist_size();
  2395. for (int i = 0; i < this->ranklist_size(); i++) {
  2396. total_size +=
  2397. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  2398. this->ranklist(i));
  2399. }
  2400. if (!unknown_fields().empty()) {
  2401. total_size +=
  2402. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2403. unknown_fields());
  2404. }
  2405. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2406. _cached_size_ = total_size;
  2407. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2408. return total_size;
  2409. }
  2410. void packetw2c_req_coin_growth_result::MergeFrom(const ::google::protobuf::Message& from) {
  2411. GOOGLE_CHECK_NE(&from, this);
  2412. const packetw2c_req_coin_growth_result* source =
  2413. ::google::protobuf::internal::dynamic_cast_if_available<const packetw2c_req_coin_growth_result*>(
  2414. &from);
  2415. if (source == NULL) {
  2416. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2417. } else {
  2418. MergeFrom(*source);
  2419. }
  2420. }
  2421. void packetw2c_req_coin_growth_result::MergeFrom(const packetw2c_req_coin_growth_result& from) {
  2422. GOOGLE_CHECK_NE(&from, this);
  2423. ranklist_.MergeFrom(from.ranklist_);
  2424. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2425. if (from.has_packet_id()) {
  2426. set_packet_id(from.packet_id());
  2427. }
  2428. if (from.has_selfrank()) {
  2429. set_selfrank(from.selfrank());
  2430. }
  2431. if (from.has_selfgold()) {
  2432. set_selfgold(from.selfgold());
  2433. }
  2434. }
  2435. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  2436. }
  2437. void packetw2c_req_coin_growth_result::CopyFrom(const ::google::protobuf::Message& from) {
  2438. if (&from == this) return;
  2439. Clear();
  2440. MergeFrom(from);
  2441. }
  2442. void packetw2c_req_coin_growth_result::CopyFrom(const packetw2c_req_coin_growth_result& from) {
  2443. if (&from == this) return;
  2444. Clear();
  2445. MergeFrom(from);
  2446. }
  2447. bool packetw2c_req_coin_growth_result::IsInitialized() const {
  2448. return true;
  2449. }
  2450. void packetw2c_req_coin_growth_result::Swap(packetw2c_req_coin_growth_result* other) {
  2451. if (other != this) {
  2452. std::swap(packet_id_, other->packet_id_);
  2453. ranklist_.Swap(&other->ranklist_);
  2454. std::swap(selfrank_, other->selfrank_);
  2455. std::swap(selfgold_, other->selfgold_);
  2456. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2457. _unknown_fields_.Swap(&other->_unknown_fields_);
  2458. std::swap(_cached_size_, other->_cached_size_);
  2459. }
  2460. }
  2461. ::google::protobuf::Metadata packetw2c_req_coin_growth_result::GetMetadata() const {
  2462. protobuf_AssignDescriptorsOnce();
  2463. ::google::protobuf::Metadata metadata;
  2464. metadata.descriptor = packetw2c_req_coin_growth_result_descriptor_;
  2465. metadata.reflection = packetw2c_req_coin_growth_result_reflection_;
  2466. return metadata;
  2467. }
  2468. // @@protoc_insertion_point(namespace_scope)
  2469. } // namespace client2world_protocols
  2470. // @@protoc_insertion_point(global_scope)