client2world_daily_box_lottery.pb.cc 77 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: client2world_daily_box_lottery.proto
  3. #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
  4. #include "client2world_daily_box_lottery.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* packetc2w_req_sign_descriptor_ = NULL;
  18. const ::google::protobuf::internal::GeneratedMessageReflection*
  19. packetc2w_req_sign_reflection_ = NULL;
  20. const ::google::protobuf::Descriptor* packetw2c_req_sign_result_descriptor_ = NULL;
  21. const ::google::protobuf::internal::GeneratedMessageReflection*
  22. packetw2c_req_sign_result_reflection_ = NULL;
  23. const ::google::protobuf::Descriptor* packetc2w_req_sign_info_descriptor_ = NULL;
  24. const ::google::protobuf::internal::GeneratedMessageReflection*
  25. packetc2w_req_sign_info_reflection_ = NULL;
  26. const ::google::protobuf::Descriptor* packetw2c_req_sign_info_result_descriptor_ = NULL;
  27. const ::google::protobuf::internal::GeneratedMessageReflection*
  28. packetw2c_req_sign_info_result_reflection_ = NULL;
  29. const ::google::protobuf::Descriptor* packetc2w_req_recv_sevenday_reward_descriptor_ = NULL;
  30. const ::google::protobuf::internal::GeneratedMessageReflection*
  31. packetc2w_req_recv_sevenday_reward_reflection_ = NULL;
  32. const ::google::protobuf::Descriptor* packetc2w_req_recv_sevenday_reward_result_descriptor_ = NULL;
  33. const ::google::protobuf::internal::GeneratedMessageReflection*
  34. packetc2w_req_recv_sevenday_reward_result_reflection_ = NULL;
  35. } // namespace
  36. void protobuf_AssignDesc_client2world_5fdaily_5fbox_5flottery_2eproto() {
  37. protobuf_AddDesc_client2world_5fdaily_5fbox_5flottery_2eproto();
  38. const ::google::protobuf::FileDescriptor* file =
  39. ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
  40. "client2world_daily_box_lottery.proto");
  41. GOOGLE_CHECK(file != NULL);
  42. packetc2w_req_sign_descriptor_ = file->message_type(0);
  43. static const int packetc2w_req_sign_offsets_[2] = {
  44. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_sign, packet_id_),
  45. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_sign, double__),
  46. };
  47. packetc2w_req_sign_reflection_ =
  48. new ::google::protobuf::internal::GeneratedMessageReflection(
  49. packetc2w_req_sign_descriptor_,
  50. packetc2w_req_sign::default_instance_,
  51. packetc2w_req_sign_offsets_,
  52. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_sign, _has_bits_[0]),
  53. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_sign, _unknown_fields_),
  54. -1,
  55. ::google::protobuf::DescriptorPool::generated_pool(),
  56. ::google::protobuf::MessageFactory::generated_factory(),
  57. sizeof(packetc2w_req_sign));
  58. packetw2c_req_sign_result_descriptor_ = file->message_type(1);
  59. static const int packetw2c_req_sign_result_offsets_[4] = {
  60. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_result, packet_id_),
  61. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_result, double__),
  62. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_result, result_),
  63. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_result, itemlist_),
  64. };
  65. packetw2c_req_sign_result_reflection_ =
  66. new ::google::protobuf::internal::GeneratedMessageReflection(
  67. packetw2c_req_sign_result_descriptor_,
  68. packetw2c_req_sign_result::default_instance_,
  69. packetw2c_req_sign_result_offsets_,
  70. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_result, _has_bits_[0]),
  71. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_result, _unknown_fields_),
  72. -1,
  73. ::google::protobuf::DescriptorPool::generated_pool(),
  74. ::google::protobuf::MessageFactory::generated_factory(),
  75. sizeof(packetw2c_req_sign_result));
  76. packetc2w_req_sign_info_descriptor_ = file->message_type(2);
  77. static const int packetc2w_req_sign_info_offsets_[2] = {
  78. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_sign_info, packet_id_),
  79. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_sign_info, signtype_),
  80. };
  81. packetc2w_req_sign_info_reflection_ =
  82. new ::google::protobuf::internal::GeneratedMessageReflection(
  83. packetc2w_req_sign_info_descriptor_,
  84. packetc2w_req_sign_info::default_instance_,
  85. packetc2w_req_sign_info_offsets_,
  86. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_sign_info, _has_bits_[0]),
  87. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_sign_info, _unknown_fields_),
  88. -1,
  89. ::google::protobuf::DescriptorPool::generated_pool(),
  90. ::google::protobuf::MessageFactory::generated_factory(),
  91. sizeof(packetc2w_req_sign_info));
  92. packetw2c_req_sign_info_result_descriptor_ = file->message_type(3);
  93. static const int packetw2c_req_sign_info_result_offsets_[8] = {
  94. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_info_result, packet_id_),
  95. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_info_result, signtype_),
  96. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_info_result, signcount_),
  97. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_info_result, keepsigncount_),
  98. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_info_result, signuplevel_),
  99. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_info_result, cansign_),
  100. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_info_result, hassigncount_),
  101. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_info_result, sevendaycansign_),
  102. };
  103. packetw2c_req_sign_info_result_reflection_ =
  104. new ::google::protobuf::internal::GeneratedMessageReflection(
  105. packetw2c_req_sign_info_result_descriptor_,
  106. packetw2c_req_sign_info_result::default_instance_,
  107. packetw2c_req_sign_info_result_offsets_,
  108. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_info_result, _has_bits_[0]),
  109. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_info_result, _unknown_fields_),
  110. -1,
  111. ::google::protobuf::DescriptorPool::generated_pool(),
  112. ::google::protobuf::MessageFactory::generated_factory(),
  113. sizeof(packetw2c_req_sign_info_result));
  114. packetc2w_req_recv_sevenday_reward_descriptor_ = file->message_type(4);
  115. static const int packetc2w_req_recv_sevenday_reward_offsets_[2] = {
  116. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_recv_sevenday_reward, packet_id_),
  117. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_recv_sevenday_reward, day_),
  118. };
  119. packetc2w_req_recv_sevenday_reward_reflection_ =
  120. new ::google::protobuf::internal::GeneratedMessageReflection(
  121. packetc2w_req_recv_sevenday_reward_descriptor_,
  122. packetc2w_req_recv_sevenday_reward::default_instance_,
  123. packetc2w_req_recv_sevenday_reward_offsets_,
  124. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_recv_sevenday_reward, _has_bits_[0]),
  125. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_recv_sevenday_reward, _unknown_fields_),
  126. -1,
  127. ::google::protobuf::DescriptorPool::generated_pool(),
  128. ::google::protobuf::MessageFactory::generated_factory(),
  129. sizeof(packetc2w_req_recv_sevenday_reward));
  130. packetc2w_req_recv_sevenday_reward_result_descriptor_ = file->message_type(5);
  131. static const int packetc2w_req_recv_sevenday_reward_result_offsets_[4] = {
  132. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_recv_sevenday_reward_result, packet_id_),
  133. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_recv_sevenday_reward_result, day_),
  134. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_recv_sevenday_reward_result, result_),
  135. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_recv_sevenday_reward_result, itemlist_),
  136. };
  137. packetc2w_req_recv_sevenday_reward_result_reflection_ =
  138. new ::google::protobuf::internal::GeneratedMessageReflection(
  139. packetc2w_req_recv_sevenday_reward_result_descriptor_,
  140. packetc2w_req_recv_sevenday_reward_result::default_instance_,
  141. packetc2w_req_recv_sevenday_reward_result_offsets_,
  142. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_recv_sevenday_reward_result, _has_bits_[0]),
  143. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_recv_sevenday_reward_result, _unknown_fields_),
  144. -1,
  145. ::google::protobuf::DescriptorPool::generated_pool(),
  146. ::google::protobuf::MessageFactory::generated_factory(),
  147. sizeof(packetc2w_req_recv_sevenday_reward_result));
  148. }
  149. namespace {
  150. GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
  151. inline void protobuf_AssignDescriptorsOnce() {
  152. ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
  153. &protobuf_AssignDesc_client2world_5fdaily_5fbox_5flottery_2eproto);
  154. }
  155. void protobuf_RegisterTypes(const ::std::string&) {
  156. protobuf_AssignDescriptorsOnce();
  157. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  158. packetc2w_req_sign_descriptor_, &packetc2w_req_sign::default_instance());
  159. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  160. packetw2c_req_sign_result_descriptor_, &packetw2c_req_sign_result::default_instance());
  161. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  162. packetc2w_req_sign_info_descriptor_, &packetc2w_req_sign_info::default_instance());
  163. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  164. packetw2c_req_sign_info_result_descriptor_, &packetw2c_req_sign_info_result::default_instance());
  165. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  166. packetc2w_req_recv_sevenday_reward_descriptor_, &packetc2w_req_recv_sevenday_reward::default_instance());
  167. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  168. packetc2w_req_recv_sevenday_reward_result_descriptor_, &packetc2w_req_recv_sevenday_reward_result::default_instance());
  169. }
  170. } // namespace
  171. void protobuf_ShutdownFile_client2world_5fdaily_5fbox_5flottery_2eproto() {
  172. delete packetc2w_req_sign::default_instance_;
  173. delete packetc2w_req_sign_reflection_;
  174. delete packetw2c_req_sign_result::default_instance_;
  175. delete packetw2c_req_sign_result_reflection_;
  176. delete packetc2w_req_sign_info::default_instance_;
  177. delete packetc2w_req_sign_info_reflection_;
  178. delete packetw2c_req_sign_info_result::default_instance_;
  179. delete packetw2c_req_sign_info_result_reflection_;
  180. delete packetc2w_req_recv_sevenday_reward::default_instance_;
  181. delete packetc2w_req_recv_sevenday_reward_reflection_;
  182. delete packetc2w_req_recv_sevenday_reward_result::default_instance_;
  183. delete packetc2w_req_recv_sevenday_reward_result_reflection_;
  184. }
  185. void protobuf_AddDesc_client2world_5fdaily_5fbox_5flottery_2eproto() {
  186. static bool already_here = false;
  187. if (already_here) return;
  188. already_here = true;
  189. GOOGLE_PROTOBUF_VERIFY_VERSION;
  190. ::client2world_protocols::protobuf_AddDesc_client2world_5fmsg_5ftype_2eproto();
  191. ::msg_type_def::protobuf_AddDesc_msg_5ftype_5fdef_2eproto();
  192. ::msg_info_def::protobuf_AddDesc_msg_5finfo_5fdef_2eproto();
  193. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  194. "\n$client2world_daily_box_lottery.proto\022\026"
  195. "client2world_protocols\032\033client2world_msg"
  196. "_type.proto\032\022msg_type_def.proto\032\022msg_inf"
  197. "o_def.proto\"v\n\022packetc2w_req_sign\022P\n\tpac"
  198. "ket_id\030\001 \001(\0162).client2world_protocols.e_"
  199. "server_msg_type:\022e_mst_c2w_req_sign\022\016\n\006d"
  200. "ouble\030\002 \001(\010\"\276\001\n\031packetw2c_req_sign_resul"
  201. "t\022W\n\tpacket_id\030\001 \001(\0162).client2world_prot"
  202. "ocols.e_server_msg_type:\031e_mst_w2c_req_s"
  203. "ign_result\022\016\n\006double\030\002 \001(\010\022\016\n\006result\030\003 \001"
  204. "(\005\022(\n\010itemList\030\004 \003(\0132\026.msg_info_def.Item"
  205. "Info\"\202\001\n\027packetc2w_req_sign_info\022U\n\tpack"
  206. "et_id\030\001 \001(\0162).client2world_protocols.e_s"
  207. "erver_msg_type:\027e_mst_c2w_req_sign_info\022"
  208. "\020\n\010signtype\030\002 \001(\005\"\217\002\n\036packetw2c_req_sign"
  209. "_info_result\022\\\n\tpacket_id\030\001 \001(\0162).client"
  210. "2world_protocols.e_server_msg_type:\036e_ms"
  211. "t_w2c_req_sign_info_result\022\020\n\010signtype\030\002"
  212. " \001(\005\022\021\n\tsignCount\030\003 \001(\005\022\025\n\rkeepSignCount"
  213. "\030\004 \001(\005\022\023\n\013signUpLevel\030\005 \001(\010\022\017\n\007canSign\030\006"
  214. " \001(\010\022\024\n\014hasSignCount\030\007 \001(\005\022\027\n\017sevenDayCa"
  215. "nSign\030\010 \001(\010\"\223\001\n\"packetc2w_req_recv_seven"
  216. "day_reward\022`\n\tpacket_id\030\001 \001(\0162).client2w"
  217. "orld_protocols.e_server_msg_type:\"e_mst_"
  218. "c2w_req_recv_sevenday_reward\022\013\n\003day\030\002 \001("
  219. "\005\"\333\001\n)packetc2w_req_recv_sevenday_reward"
  220. "_result\022g\n\tpacket_id\030\001 \001(\0162).client2worl"
  221. "d_protocols.e_server_msg_type:)e_mst_w2c"
  222. "_req_recv_sevenday_reward_result\022\013\n\003day\030"
  223. "\002 \001(\005\022\016\n\006result\030\003 \001(\005\022(\n\010itemList\030\004 \003(\0132"
  224. "\026.msg_info_def.ItemInfo", 1223);
  225. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  226. "client2world_daily_box_lottery.proto", &protobuf_RegisterTypes);
  227. packetc2w_req_sign::default_instance_ = new packetc2w_req_sign();
  228. packetw2c_req_sign_result::default_instance_ = new packetw2c_req_sign_result();
  229. packetc2w_req_sign_info::default_instance_ = new packetc2w_req_sign_info();
  230. packetw2c_req_sign_info_result::default_instance_ = new packetw2c_req_sign_info_result();
  231. packetc2w_req_recv_sevenday_reward::default_instance_ = new packetc2w_req_recv_sevenday_reward();
  232. packetc2w_req_recv_sevenday_reward_result::default_instance_ = new packetc2w_req_recv_sevenday_reward_result();
  233. packetc2w_req_sign::default_instance_->InitAsDefaultInstance();
  234. packetw2c_req_sign_result::default_instance_->InitAsDefaultInstance();
  235. packetc2w_req_sign_info::default_instance_->InitAsDefaultInstance();
  236. packetw2c_req_sign_info_result::default_instance_->InitAsDefaultInstance();
  237. packetc2w_req_recv_sevenday_reward::default_instance_->InitAsDefaultInstance();
  238. packetc2w_req_recv_sevenday_reward_result::default_instance_->InitAsDefaultInstance();
  239. ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_client2world_5fdaily_5fbox_5flottery_2eproto);
  240. }
  241. // Force AddDescriptors() to be called at static initialization time.
  242. struct StaticDescriptorInitializer_client2world_5fdaily_5fbox_5flottery_2eproto {
  243. StaticDescriptorInitializer_client2world_5fdaily_5fbox_5flottery_2eproto() {
  244. protobuf_AddDesc_client2world_5fdaily_5fbox_5flottery_2eproto();
  245. }
  246. } static_descriptor_initializer_client2world_5fdaily_5fbox_5flottery_2eproto_;
  247. // ===================================================================
  248. #ifndef _MSC_VER
  249. const int packetc2w_req_sign::kPacketIdFieldNumber;
  250. const int packetc2w_req_sign::kDoubleFieldNumber;
  251. #endif // !_MSC_VER
  252. packetc2w_req_sign::packetc2w_req_sign()
  253. : ::google::protobuf::Message() {
  254. SharedCtor();
  255. }
  256. void packetc2w_req_sign::InitAsDefaultInstance() {
  257. }
  258. packetc2w_req_sign::packetc2w_req_sign(const packetc2w_req_sign& from)
  259. : ::google::protobuf::Message() {
  260. SharedCtor();
  261. MergeFrom(from);
  262. }
  263. void packetc2w_req_sign::SharedCtor() {
  264. _cached_size_ = 0;
  265. packet_id_ = 5098;
  266. double__ = false;
  267. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  268. }
  269. packetc2w_req_sign::~packetc2w_req_sign() {
  270. SharedDtor();
  271. }
  272. void packetc2w_req_sign::SharedDtor() {
  273. if (this != default_instance_) {
  274. }
  275. }
  276. void packetc2w_req_sign::SetCachedSize(int size) const {
  277. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  278. _cached_size_ = size;
  279. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  280. }
  281. const ::google::protobuf::Descriptor* packetc2w_req_sign::descriptor() {
  282. protobuf_AssignDescriptorsOnce();
  283. return packetc2w_req_sign_descriptor_;
  284. }
  285. const packetc2w_req_sign& packetc2w_req_sign::default_instance() {
  286. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fdaily_5fbox_5flottery_2eproto();
  287. return *default_instance_;
  288. }
  289. packetc2w_req_sign* packetc2w_req_sign::default_instance_ = NULL;
  290. packetc2w_req_sign* packetc2w_req_sign::New() const {
  291. return new packetc2w_req_sign;
  292. }
  293. void packetc2w_req_sign::Clear() {
  294. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  295. packet_id_ = 5098;
  296. double__ = false;
  297. }
  298. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  299. mutable_unknown_fields()->Clear();
  300. }
  301. bool packetc2w_req_sign::MergePartialFromCodedStream(
  302. ::google::protobuf::io::CodedInputStream* input) {
  303. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  304. ::google::protobuf::uint32 tag;
  305. while ((tag = input->ReadTag()) != 0) {
  306. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  307. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_sign];
  308. case 1: {
  309. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  310. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  311. int value;
  312. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  313. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  314. input, &value)));
  315. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  316. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  317. } else {
  318. mutable_unknown_fields()->AddVarint(1, value);
  319. }
  320. } else {
  321. goto handle_uninterpreted;
  322. }
  323. if (input->ExpectTag(16)) goto parse_double;
  324. break;
  325. }
  326. // optional bool double = 2;
  327. case 2: {
  328. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  329. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  330. parse_double:
  331. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  332. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  333. input, &double__)));
  334. set_has_double_();
  335. } else {
  336. goto handle_uninterpreted;
  337. }
  338. if (input->ExpectAtEnd()) return true;
  339. break;
  340. }
  341. default: {
  342. handle_uninterpreted:
  343. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  344. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  345. return true;
  346. }
  347. DO_(::google::protobuf::internal::WireFormat::SkipField(
  348. input, tag, mutable_unknown_fields()));
  349. break;
  350. }
  351. }
  352. }
  353. return true;
  354. #undef DO_
  355. }
  356. void packetc2w_req_sign::SerializeWithCachedSizes(
  357. ::google::protobuf::io::CodedOutputStream* output) const {
  358. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_sign];
  359. if (has_packet_id()) {
  360. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  361. 1, this->packet_id(), output);
  362. }
  363. // optional bool double = 2;
  364. if (has_double_()) {
  365. ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->double_(), output);
  366. }
  367. if (!unknown_fields().empty()) {
  368. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  369. unknown_fields(), output);
  370. }
  371. }
  372. ::google::protobuf::uint8* packetc2w_req_sign::SerializeWithCachedSizesToArray(
  373. ::google::protobuf::uint8* target) const {
  374. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_sign];
  375. if (has_packet_id()) {
  376. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  377. 1, this->packet_id(), target);
  378. }
  379. // optional bool double = 2;
  380. if (has_double_()) {
  381. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->double_(), target);
  382. }
  383. if (!unknown_fields().empty()) {
  384. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  385. unknown_fields(), target);
  386. }
  387. return target;
  388. }
  389. int packetc2w_req_sign::ByteSize() const {
  390. int total_size = 0;
  391. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  392. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_sign];
  393. if (has_packet_id()) {
  394. total_size += 1 +
  395. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  396. }
  397. // optional bool double = 2;
  398. if (has_double_()) {
  399. total_size += 1 + 1;
  400. }
  401. }
  402. if (!unknown_fields().empty()) {
  403. total_size +=
  404. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  405. unknown_fields());
  406. }
  407. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  408. _cached_size_ = total_size;
  409. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  410. return total_size;
  411. }
  412. void packetc2w_req_sign::MergeFrom(const ::google::protobuf::Message& from) {
  413. GOOGLE_CHECK_NE(&from, this);
  414. const packetc2w_req_sign* source =
  415. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2w_req_sign*>(
  416. &from);
  417. if (source == NULL) {
  418. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  419. } else {
  420. MergeFrom(*source);
  421. }
  422. }
  423. void packetc2w_req_sign::MergeFrom(const packetc2w_req_sign& from) {
  424. GOOGLE_CHECK_NE(&from, this);
  425. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  426. if (from.has_packet_id()) {
  427. set_packet_id(from.packet_id());
  428. }
  429. if (from.has_double_()) {
  430. set_double_(from.double_());
  431. }
  432. }
  433. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  434. }
  435. void packetc2w_req_sign::CopyFrom(const ::google::protobuf::Message& from) {
  436. if (&from == this) return;
  437. Clear();
  438. MergeFrom(from);
  439. }
  440. void packetc2w_req_sign::CopyFrom(const packetc2w_req_sign& from) {
  441. if (&from == this) return;
  442. Clear();
  443. MergeFrom(from);
  444. }
  445. bool packetc2w_req_sign::IsInitialized() const {
  446. return true;
  447. }
  448. void packetc2w_req_sign::Swap(packetc2w_req_sign* other) {
  449. if (other != this) {
  450. std::swap(packet_id_, other->packet_id_);
  451. std::swap(double__, other->double__);
  452. std::swap(_has_bits_[0], other->_has_bits_[0]);
  453. _unknown_fields_.Swap(&other->_unknown_fields_);
  454. std::swap(_cached_size_, other->_cached_size_);
  455. }
  456. }
  457. ::google::protobuf::Metadata packetc2w_req_sign::GetMetadata() const {
  458. protobuf_AssignDescriptorsOnce();
  459. ::google::protobuf::Metadata metadata;
  460. metadata.descriptor = packetc2w_req_sign_descriptor_;
  461. metadata.reflection = packetc2w_req_sign_reflection_;
  462. return metadata;
  463. }
  464. // ===================================================================
  465. #ifndef _MSC_VER
  466. const int packetw2c_req_sign_result::kPacketIdFieldNumber;
  467. const int packetw2c_req_sign_result::kDoubleFieldNumber;
  468. const int packetw2c_req_sign_result::kResultFieldNumber;
  469. const int packetw2c_req_sign_result::kItemListFieldNumber;
  470. #endif // !_MSC_VER
  471. packetw2c_req_sign_result::packetw2c_req_sign_result()
  472. : ::google::protobuf::Message() {
  473. SharedCtor();
  474. }
  475. void packetw2c_req_sign_result::InitAsDefaultInstance() {
  476. }
  477. packetw2c_req_sign_result::packetw2c_req_sign_result(const packetw2c_req_sign_result& from)
  478. : ::google::protobuf::Message() {
  479. SharedCtor();
  480. MergeFrom(from);
  481. }
  482. void packetw2c_req_sign_result::SharedCtor() {
  483. _cached_size_ = 0;
  484. packet_id_ = 7605;
  485. double__ = false;
  486. result_ = 0;
  487. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  488. }
  489. packetw2c_req_sign_result::~packetw2c_req_sign_result() {
  490. SharedDtor();
  491. }
  492. void packetw2c_req_sign_result::SharedDtor() {
  493. if (this != default_instance_) {
  494. }
  495. }
  496. void packetw2c_req_sign_result::SetCachedSize(int size) const {
  497. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  498. _cached_size_ = size;
  499. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  500. }
  501. const ::google::protobuf::Descriptor* packetw2c_req_sign_result::descriptor() {
  502. protobuf_AssignDescriptorsOnce();
  503. return packetw2c_req_sign_result_descriptor_;
  504. }
  505. const packetw2c_req_sign_result& packetw2c_req_sign_result::default_instance() {
  506. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fdaily_5fbox_5flottery_2eproto();
  507. return *default_instance_;
  508. }
  509. packetw2c_req_sign_result* packetw2c_req_sign_result::default_instance_ = NULL;
  510. packetw2c_req_sign_result* packetw2c_req_sign_result::New() const {
  511. return new packetw2c_req_sign_result;
  512. }
  513. void packetw2c_req_sign_result::Clear() {
  514. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  515. packet_id_ = 7605;
  516. double__ = false;
  517. result_ = 0;
  518. }
  519. itemlist_.Clear();
  520. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  521. mutable_unknown_fields()->Clear();
  522. }
  523. bool packetw2c_req_sign_result::MergePartialFromCodedStream(
  524. ::google::protobuf::io::CodedInputStream* input) {
  525. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  526. ::google::protobuf::uint32 tag;
  527. while ((tag = input->ReadTag()) != 0) {
  528. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  529. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_sign_result];
  530. case 1: {
  531. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  532. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  533. int value;
  534. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  535. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  536. input, &value)));
  537. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  538. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  539. } else {
  540. mutable_unknown_fields()->AddVarint(1, value);
  541. }
  542. } else {
  543. goto handle_uninterpreted;
  544. }
  545. if (input->ExpectTag(16)) goto parse_double;
  546. break;
  547. }
  548. // optional bool double = 2;
  549. case 2: {
  550. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  551. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  552. parse_double:
  553. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  554. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  555. input, &double__)));
  556. set_has_double_();
  557. } else {
  558. goto handle_uninterpreted;
  559. }
  560. if (input->ExpectTag(24)) goto parse_result;
  561. break;
  562. }
  563. // optional int32 result = 3;
  564. case 3: {
  565. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  566. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  567. parse_result:
  568. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  569. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  570. input, &result_)));
  571. set_has_result();
  572. } else {
  573. goto handle_uninterpreted;
  574. }
  575. if (input->ExpectTag(34)) goto parse_itemList;
  576. break;
  577. }
  578. // repeated .msg_info_def.ItemInfo itemList = 4;
  579. case 4: {
  580. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  581. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  582. parse_itemList:
  583. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  584. input, add_itemlist()));
  585. } else {
  586. goto handle_uninterpreted;
  587. }
  588. if (input->ExpectTag(34)) goto parse_itemList;
  589. if (input->ExpectAtEnd()) return true;
  590. break;
  591. }
  592. default: {
  593. handle_uninterpreted:
  594. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  595. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  596. return true;
  597. }
  598. DO_(::google::protobuf::internal::WireFormat::SkipField(
  599. input, tag, mutable_unknown_fields()));
  600. break;
  601. }
  602. }
  603. }
  604. return true;
  605. #undef DO_
  606. }
  607. void packetw2c_req_sign_result::SerializeWithCachedSizes(
  608. ::google::protobuf::io::CodedOutputStream* output) const {
  609. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_sign_result];
  610. if (has_packet_id()) {
  611. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  612. 1, this->packet_id(), output);
  613. }
  614. // optional bool double = 2;
  615. if (has_double_()) {
  616. ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->double_(), output);
  617. }
  618. // optional int32 result = 3;
  619. if (has_result()) {
  620. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->result(), output);
  621. }
  622. // repeated .msg_info_def.ItemInfo itemList = 4;
  623. for (int i = 0; i < this->itemlist_size(); i++) {
  624. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  625. 4, this->itemlist(i), output);
  626. }
  627. if (!unknown_fields().empty()) {
  628. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  629. unknown_fields(), output);
  630. }
  631. }
  632. ::google::protobuf::uint8* packetw2c_req_sign_result::SerializeWithCachedSizesToArray(
  633. ::google::protobuf::uint8* target) const {
  634. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_sign_result];
  635. if (has_packet_id()) {
  636. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  637. 1, this->packet_id(), target);
  638. }
  639. // optional bool double = 2;
  640. if (has_double_()) {
  641. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->double_(), target);
  642. }
  643. // optional int32 result = 3;
  644. if (has_result()) {
  645. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->result(), target);
  646. }
  647. // repeated .msg_info_def.ItemInfo itemList = 4;
  648. for (int i = 0; i < this->itemlist_size(); i++) {
  649. target = ::google::protobuf::internal::WireFormatLite::
  650. WriteMessageNoVirtualToArray(
  651. 4, this->itemlist(i), target);
  652. }
  653. if (!unknown_fields().empty()) {
  654. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  655. unknown_fields(), target);
  656. }
  657. return target;
  658. }
  659. int packetw2c_req_sign_result::ByteSize() const {
  660. int total_size = 0;
  661. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  662. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_sign_result];
  663. if (has_packet_id()) {
  664. total_size += 1 +
  665. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  666. }
  667. // optional bool double = 2;
  668. if (has_double_()) {
  669. total_size += 1 + 1;
  670. }
  671. // optional int32 result = 3;
  672. if (has_result()) {
  673. total_size += 1 +
  674. ::google::protobuf::internal::WireFormatLite::Int32Size(
  675. this->result());
  676. }
  677. }
  678. // repeated .msg_info_def.ItemInfo itemList = 4;
  679. total_size += 1 * this->itemlist_size();
  680. for (int i = 0; i < this->itemlist_size(); i++) {
  681. total_size +=
  682. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  683. this->itemlist(i));
  684. }
  685. if (!unknown_fields().empty()) {
  686. total_size +=
  687. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  688. unknown_fields());
  689. }
  690. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  691. _cached_size_ = total_size;
  692. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  693. return total_size;
  694. }
  695. void packetw2c_req_sign_result::MergeFrom(const ::google::protobuf::Message& from) {
  696. GOOGLE_CHECK_NE(&from, this);
  697. const packetw2c_req_sign_result* source =
  698. ::google::protobuf::internal::dynamic_cast_if_available<const packetw2c_req_sign_result*>(
  699. &from);
  700. if (source == NULL) {
  701. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  702. } else {
  703. MergeFrom(*source);
  704. }
  705. }
  706. void packetw2c_req_sign_result::MergeFrom(const packetw2c_req_sign_result& from) {
  707. GOOGLE_CHECK_NE(&from, this);
  708. itemlist_.MergeFrom(from.itemlist_);
  709. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  710. if (from.has_packet_id()) {
  711. set_packet_id(from.packet_id());
  712. }
  713. if (from.has_double_()) {
  714. set_double_(from.double_());
  715. }
  716. if (from.has_result()) {
  717. set_result(from.result());
  718. }
  719. }
  720. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  721. }
  722. void packetw2c_req_sign_result::CopyFrom(const ::google::protobuf::Message& from) {
  723. if (&from == this) return;
  724. Clear();
  725. MergeFrom(from);
  726. }
  727. void packetw2c_req_sign_result::CopyFrom(const packetw2c_req_sign_result& from) {
  728. if (&from == this) return;
  729. Clear();
  730. MergeFrom(from);
  731. }
  732. bool packetw2c_req_sign_result::IsInitialized() const {
  733. return true;
  734. }
  735. void packetw2c_req_sign_result::Swap(packetw2c_req_sign_result* other) {
  736. if (other != this) {
  737. std::swap(packet_id_, other->packet_id_);
  738. std::swap(double__, other->double__);
  739. std::swap(result_, other->result_);
  740. itemlist_.Swap(&other->itemlist_);
  741. std::swap(_has_bits_[0], other->_has_bits_[0]);
  742. _unknown_fields_.Swap(&other->_unknown_fields_);
  743. std::swap(_cached_size_, other->_cached_size_);
  744. }
  745. }
  746. ::google::protobuf::Metadata packetw2c_req_sign_result::GetMetadata() const {
  747. protobuf_AssignDescriptorsOnce();
  748. ::google::protobuf::Metadata metadata;
  749. metadata.descriptor = packetw2c_req_sign_result_descriptor_;
  750. metadata.reflection = packetw2c_req_sign_result_reflection_;
  751. return metadata;
  752. }
  753. // ===================================================================
  754. #ifndef _MSC_VER
  755. const int packetc2w_req_sign_info::kPacketIdFieldNumber;
  756. const int packetc2w_req_sign_info::kSigntypeFieldNumber;
  757. #endif // !_MSC_VER
  758. packetc2w_req_sign_info::packetc2w_req_sign_info()
  759. : ::google::protobuf::Message() {
  760. SharedCtor();
  761. }
  762. void packetc2w_req_sign_info::InitAsDefaultInstance() {
  763. }
  764. packetc2w_req_sign_info::packetc2w_req_sign_info(const packetc2w_req_sign_info& from)
  765. : ::google::protobuf::Message() {
  766. SharedCtor();
  767. MergeFrom(from);
  768. }
  769. void packetc2w_req_sign_info::SharedCtor() {
  770. _cached_size_ = 0;
  771. packet_id_ = 5099;
  772. signtype_ = 0;
  773. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  774. }
  775. packetc2w_req_sign_info::~packetc2w_req_sign_info() {
  776. SharedDtor();
  777. }
  778. void packetc2w_req_sign_info::SharedDtor() {
  779. if (this != default_instance_) {
  780. }
  781. }
  782. void packetc2w_req_sign_info::SetCachedSize(int size) const {
  783. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  784. _cached_size_ = size;
  785. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  786. }
  787. const ::google::protobuf::Descriptor* packetc2w_req_sign_info::descriptor() {
  788. protobuf_AssignDescriptorsOnce();
  789. return packetc2w_req_sign_info_descriptor_;
  790. }
  791. const packetc2w_req_sign_info& packetc2w_req_sign_info::default_instance() {
  792. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fdaily_5fbox_5flottery_2eproto();
  793. return *default_instance_;
  794. }
  795. packetc2w_req_sign_info* packetc2w_req_sign_info::default_instance_ = NULL;
  796. packetc2w_req_sign_info* packetc2w_req_sign_info::New() const {
  797. return new packetc2w_req_sign_info;
  798. }
  799. void packetc2w_req_sign_info::Clear() {
  800. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  801. packet_id_ = 5099;
  802. signtype_ = 0;
  803. }
  804. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  805. mutable_unknown_fields()->Clear();
  806. }
  807. bool packetc2w_req_sign_info::MergePartialFromCodedStream(
  808. ::google::protobuf::io::CodedInputStream* input) {
  809. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  810. ::google::protobuf::uint32 tag;
  811. while ((tag = input->ReadTag()) != 0) {
  812. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  813. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_sign_info];
  814. case 1: {
  815. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  816. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  817. int value;
  818. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  819. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  820. input, &value)));
  821. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  822. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  823. } else {
  824. mutable_unknown_fields()->AddVarint(1, value);
  825. }
  826. } else {
  827. goto handle_uninterpreted;
  828. }
  829. if (input->ExpectTag(16)) goto parse_signtype;
  830. break;
  831. }
  832. // optional int32 signtype = 2;
  833. case 2: {
  834. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  835. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  836. parse_signtype:
  837. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  838. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  839. input, &signtype_)));
  840. set_has_signtype();
  841. } else {
  842. goto handle_uninterpreted;
  843. }
  844. if (input->ExpectAtEnd()) return true;
  845. break;
  846. }
  847. default: {
  848. handle_uninterpreted:
  849. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  850. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  851. return true;
  852. }
  853. DO_(::google::protobuf::internal::WireFormat::SkipField(
  854. input, tag, mutable_unknown_fields()));
  855. break;
  856. }
  857. }
  858. }
  859. return true;
  860. #undef DO_
  861. }
  862. void packetc2w_req_sign_info::SerializeWithCachedSizes(
  863. ::google::protobuf::io::CodedOutputStream* output) const {
  864. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_sign_info];
  865. if (has_packet_id()) {
  866. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  867. 1, this->packet_id(), output);
  868. }
  869. // optional int32 signtype = 2;
  870. if (has_signtype()) {
  871. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->signtype(), output);
  872. }
  873. if (!unknown_fields().empty()) {
  874. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  875. unknown_fields(), output);
  876. }
  877. }
  878. ::google::protobuf::uint8* packetc2w_req_sign_info::SerializeWithCachedSizesToArray(
  879. ::google::protobuf::uint8* target) const {
  880. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_sign_info];
  881. if (has_packet_id()) {
  882. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  883. 1, this->packet_id(), target);
  884. }
  885. // optional int32 signtype = 2;
  886. if (has_signtype()) {
  887. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->signtype(), target);
  888. }
  889. if (!unknown_fields().empty()) {
  890. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  891. unknown_fields(), target);
  892. }
  893. return target;
  894. }
  895. int packetc2w_req_sign_info::ByteSize() const {
  896. int total_size = 0;
  897. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  898. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_sign_info];
  899. if (has_packet_id()) {
  900. total_size += 1 +
  901. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  902. }
  903. // optional int32 signtype = 2;
  904. if (has_signtype()) {
  905. total_size += 1 +
  906. ::google::protobuf::internal::WireFormatLite::Int32Size(
  907. this->signtype());
  908. }
  909. }
  910. if (!unknown_fields().empty()) {
  911. total_size +=
  912. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  913. unknown_fields());
  914. }
  915. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  916. _cached_size_ = total_size;
  917. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  918. return total_size;
  919. }
  920. void packetc2w_req_sign_info::MergeFrom(const ::google::protobuf::Message& from) {
  921. GOOGLE_CHECK_NE(&from, this);
  922. const packetc2w_req_sign_info* source =
  923. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2w_req_sign_info*>(
  924. &from);
  925. if (source == NULL) {
  926. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  927. } else {
  928. MergeFrom(*source);
  929. }
  930. }
  931. void packetc2w_req_sign_info::MergeFrom(const packetc2w_req_sign_info& from) {
  932. GOOGLE_CHECK_NE(&from, this);
  933. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  934. if (from.has_packet_id()) {
  935. set_packet_id(from.packet_id());
  936. }
  937. if (from.has_signtype()) {
  938. set_signtype(from.signtype());
  939. }
  940. }
  941. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  942. }
  943. void packetc2w_req_sign_info::CopyFrom(const ::google::protobuf::Message& from) {
  944. if (&from == this) return;
  945. Clear();
  946. MergeFrom(from);
  947. }
  948. void packetc2w_req_sign_info::CopyFrom(const packetc2w_req_sign_info& from) {
  949. if (&from == this) return;
  950. Clear();
  951. MergeFrom(from);
  952. }
  953. bool packetc2w_req_sign_info::IsInitialized() const {
  954. return true;
  955. }
  956. void packetc2w_req_sign_info::Swap(packetc2w_req_sign_info* other) {
  957. if (other != this) {
  958. std::swap(packet_id_, other->packet_id_);
  959. std::swap(signtype_, other->signtype_);
  960. std::swap(_has_bits_[0], other->_has_bits_[0]);
  961. _unknown_fields_.Swap(&other->_unknown_fields_);
  962. std::swap(_cached_size_, other->_cached_size_);
  963. }
  964. }
  965. ::google::protobuf::Metadata packetc2w_req_sign_info::GetMetadata() const {
  966. protobuf_AssignDescriptorsOnce();
  967. ::google::protobuf::Metadata metadata;
  968. metadata.descriptor = packetc2w_req_sign_info_descriptor_;
  969. metadata.reflection = packetc2w_req_sign_info_reflection_;
  970. return metadata;
  971. }
  972. // ===================================================================
  973. #ifndef _MSC_VER
  974. const int packetw2c_req_sign_info_result::kPacketIdFieldNumber;
  975. const int packetw2c_req_sign_info_result::kSigntypeFieldNumber;
  976. const int packetw2c_req_sign_info_result::kSignCountFieldNumber;
  977. const int packetw2c_req_sign_info_result::kKeepSignCountFieldNumber;
  978. const int packetw2c_req_sign_info_result::kSignUpLevelFieldNumber;
  979. const int packetw2c_req_sign_info_result::kCanSignFieldNumber;
  980. const int packetw2c_req_sign_info_result::kHasSignCountFieldNumber;
  981. const int packetw2c_req_sign_info_result::kSevenDayCanSignFieldNumber;
  982. #endif // !_MSC_VER
  983. packetw2c_req_sign_info_result::packetw2c_req_sign_info_result()
  984. : ::google::protobuf::Message() {
  985. SharedCtor();
  986. }
  987. void packetw2c_req_sign_info_result::InitAsDefaultInstance() {
  988. }
  989. packetw2c_req_sign_info_result::packetw2c_req_sign_info_result(const packetw2c_req_sign_info_result& from)
  990. : ::google::protobuf::Message() {
  991. SharedCtor();
  992. MergeFrom(from);
  993. }
  994. void packetw2c_req_sign_info_result::SharedCtor() {
  995. _cached_size_ = 0;
  996. packet_id_ = 7606;
  997. signtype_ = 0;
  998. signcount_ = 0;
  999. keepsigncount_ = 0;
  1000. signuplevel_ = false;
  1001. cansign_ = false;
  1002. hassigncount_ = 0;
  1003. sevendaycansign_ = false;
  1004. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1005. }
  1006. packetw2c_req_sign_info_result::~packetw2c_req_sign_info_result() {
  1007. SharedDtor();
  1008. }
  1009. void packetw2c_req_sign_info_result::SharedDtor() {
  1010. if (this != default_instance_) {
  1011. }
  1012. }
  1013. void packetw2c_req_sign_info_result::SetCachedSize(int size) const {
  1014. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1015. _cached_size_ = size;
  1016. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1017. }
  1018. const ::google::protobuf::Descriptor* packetw2c_req_sign_info_result::descriptor() {
  1019. protobuf_AssignDescriptorsOnce();
  1020. return packetw2c_req_sign_info_result_descriptor_;
  1021. }
  1022. const packetw2c_req_sign_info_result& packetw2c_req_sign_info_result::default_instance() {
  1023. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fdaily_5fbox_5flottery_2eproto();
  1024. return *default_instance_;
  1025. }
  1026. packetw2c_req_sign_info_result* packetw2c_req_sign_info_result::default_instance_ = NULL;
  1027. packetw2c_req_sign_info_result* packetw2c_req_sign_info_result::New() const {
  1028. return new packetw2c_req_sign_info_result;
  1029. }
  1030. void packetw2c_req_sign_info_result::Clear() {
  1031. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1032. packet_id_ = 7606;
  1033. signtype_ = 0;
  1034. signcount_ = 0;
  1035. keepsigncount_ = 0;
  1036. signuplevel_ = false;
  1037. cansign_ = false;
  1038. hassigncount_ = 0;
  1039. sevendaycansign_ = false;
  1040. }
  1041. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1042. mutable_unknown_fields()->Clear();
  1043. }
  1044. bool packetw2c_req_sign_info_result::MergePartialFromCodedStream(
  1045. ::google::protobuf::io::CodedInputStream* input) {
  1046. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  1047. ::google::protobuf::uint32 tag;
  1048. while ((tag = input->ReadTag()) != 0) {
  1049. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1050. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_sign_info_result];
  1051. case 1: {
  1052. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1053. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1054. int value;
  1055. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1056. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1057. input, &value)));
  1058. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  1059. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  1060. } else {
  1061. mutable_unknown_fields()->AddVarint(1, value);
  1062. }
  1063. } else {
  1064. goto handle_uninterpreted;
  1065. }
  1066. if (input->ExpectTag(16)) goto parse_signtype;
  1067. break;
  1068. }
  1069. // optional int32 signtype = 2;
  1070. case 2: {
  1071. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1072. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1073. parse_signtype:
  1074. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1075. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1076. input, &signtype_)));
  1077. set_has_signtype();
  1078. } else {
  1079. goto handle_uninterpreted;
  1080. }
  1081. if (input->ExpectTag(24)) goto parse_signCount;
  1082. break;
  1083. }
  1084. // optional int32 signCount = 3;
  1085. case 3: {
  1086. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1087. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1088. parse_signCount:
  1089. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1090. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1091. input, &signcount_)));
  1092. set_has_signcount();
  1093. } else {
  1094. goto handle_uninterpreted;
  1095. }
  1096. if (input->ExpectTag(32)) goto parse_keepSignCount;
  1097. break;
  1098. }
  1099. // optional int32 keepSignCount = 4;
  1100. case 4: {
  1101. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1102. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1103. parse_keepSignCount:
  1104. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1105. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1106. input, &keepsigncount_)));
  1107. set_has_keepsigncount();
  1108. } else {
  1109. goto handle_uninterpreted;
  1110. }
  1111. if (input->ExpectTag(40)) goto parse_signUpLevel;
  1112. break;
  1113. }
  1114. // optional bool signUpLevel = 5;
  1115. case 5: {
  1116. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1117. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1118. parse_signUpLevel:
  1119. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1120. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  1121. input, &signuplevel_)));
  1122. set_has_signuplevel();
  1123. } else {
  1124. goto handle_uninterpreted;
  1125. }
  1126. if (input->ExpectTag(48)) goto parse_canSign;
  1127. break;
  1128. }
  1129. // optional bool canSign = 6;
  1130. case 6: {
  1131. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1132. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1133. parse_canSign:
  1134. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1135. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  1136. input, &cansign_)));
  1137. set_has_cansign();
  1138. } else {
  1139. goto handle_uninterpreted;
  1140. }
  1141. if (input->ExpectTag(56)) goto parse_hasSignCount;
  1142. break;
  1143. }
  1144. // optional int32 hasSignCount = 7;
  1145. case 7: {
  1146. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1147. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1148. parse_hasSignCount:
  1149. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1150. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1151. input, &hassigncount_)));
  1152. set_has_hassigncount();
  1153. } else {
  1154. goto handle_uninterpreted;
  1155. }
  1156. if (input->ExpectTag(64)) goto parse_sevenDayCanSign;
  1157. break;
  1158. }
  1159. // optional bool sevenDayCanSign = 8;
  1160. case 8: {
  1161. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1162. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1163. parse_sevenDayCanSign:
  1164. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1165. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  1166. input, &sevendaycansign_)));
  1167. set_has_sevendaycansign();
  1168. } else {
  1169. goto handle_uninterpreted;
  1170. }
  1171. if (input->ExpectAtEnd()) return true;
  1172. break;
  1173. }
  1174. default: {
  1175. handle_uninterpreted:
  1176. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1177. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1178. return true;
  1179. }
  1180. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1181. input, tag, mutable_unknown_fields()));
  1182. break;
  1183. }
  1184. }
  1185. }
  1186. return true;
  1187. #undef DO_
  1188. }
  1189. void packetw2c_req_sign_info_result::SerializeWithCachedSizes(
  1190. ::google::protobuf::io::CodedOutputStream* output) const {
  1191. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_sign_info_result];
  1192. if (has_packet_id()) {
  1193. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1194. 1, this->packet_id(), output);
  1195. }
  1196. // optional int32 signtype = 2;
  1197. if (has_signtype()) {
  1198. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->signtype(), output);
  1199. }
  1200. // optional int32 signCount = 3;
  1201. if (has_signcount()) {
  1202. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->signcount(), output);
  1203. }
  1204. // optional int32 keepSignCount = 4;
  1205. if (has_keepsigncount()) {
  1206. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->keepsigncount(), output);
  1207. }
  1208. // optional bool signUpLevel = 5;
  1209. if (has_signuplevel()) {
  1210. ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->signuplevel(), output);
  1211. }
  1212. // optional bool canSign = 6;
  1213. if (has_cansign()) {
  1214. ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->cansign(), output);
  1215. }
  1216. // optional int32 hasSignCount = 7;
  1217. if (has_hassigncount()) {
  1218. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->hassigncount(), output);
  1219. }
  1220. // optional bool sevenDayCanSign = 8;
  1221. if (has_sevendaycansign()) {
  1222. ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->sevendaycansign(), output);
  1223. }
  1224. if (!unknown_fields().empty()) {
  1225. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1226. unknown_fields(), output);
  1227. }
  1228. }
  1229. ::google::protobuf::uint8* packetw2c_req_sign_info_result::SerializeWithCachedSizesToArray(
  1230. ::google::protobuf::uint8* target) const {
  1231. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_sign_info_result];
  1232. if (has_packet_id()) {
  1233. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1234. 1, this->packet_id(), target);
  1235. }
  1236. // optional int32 signtype = 2;
  1237. if (has_signtype()) {
  1238. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->signtype(), target);
  1239. }
  1240. // optional int32 signCount = 3;
  1241. if (has_signcount()) {
  1242. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->signcount(), target);
  1243. }
  1244. // optional int32 keepSignCount = 4;
  1245. if (has_keepsigncount()) {
  1246. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->keepsigncount(), target);
  1247. }
  1248. // optional bool signUpLevel = 5;
  1249. if (has_signuplevel()) {
  1250. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->signuplevel(), target);
  1251. }
  1252. // optional bool canSign = 6;
  1253. if (has_cansign()) {
  1254. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->cansign(), target);
  1255. }
  1256. // optional int32 hasSignCount = 7;
  1257. if (has_hassigncount()) {
  1258. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->hassigncount(), target);
  1259. }
  1260. // optional bool sevenDayCanSign = 8;
  1261. if (has_sevendaycansign()) {
  1262. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->sevendaycansign(), target);
  1263. }
  1264. if (!unknown_fields().empty()) {
  1265. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1266. unknown_fields(), target);
  1267. }
  1268. return target;
  1269. }
  1270. int packetw2c_req_sign_info_result::ByteSize() const {
  1271. int total_size = 0;
  1272. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1273. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_sign_info_result];
  1274. if (has_packet_id()) {
  1275. total_size += 1 +
  1276. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  1277. }
  1278. // optional int32 signtype = 2;
  1279. if (has_signtype()) {
  1280. total_size += 1 +
  1281. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1282. this->signtype());
  1283. }
  1284. // optional int32 signCount = 3;
  1285. if (has_signcount()) {
  1286. total_size += 1 +
  1287. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1288. this->signcount());
  1289. }
  1290. // optional int32 keepSignCount = 4;
  1291. if (has_keepsigncount()) {
  1292. total_size += 1 +
  1293. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1294. this->keepsigncount());
  1295. }
  1296. // optional bool signUpLevel = 5;
  1297. if (has_signuplevel()) {
  1298. total_size += 1 + 1;
  1299. }
  1300. // optional bool canSign = 6;
  1301. if (has_cansign()) {
  1302. total_size += 1 + 1;
  1303. }
  1304. // optional int32 hasSignCount = 7;
  1305. if (has_hassigncount()) {
  1306. total_size += 1 +
  1307. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1308. this->hassigncount());
  1309. }
  1310. // optional bool sevenDayCanSign = 8;
  1311. if (has_sevendaycansign()) {
  1312. total_size += 1 + 1;
  1313. }
  1314. }
  1315. if (!unknown_fields().empty()) {
  1316. total_size +=
  1317. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1318. unknown_fields());
  1319. }
  1320. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1321. _cached_size_ = total_size;
  1322. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1323. return total_size;
  1324. }
  1325. void packetw2c_req_sign_info_result::MergeFrom(const ::google::protobuf::Message& from) {
  1326. GOOGLE_CHECK_NE(&from, this);
  1327. const packetw2c_req_sign_info_result* source =
  1328. ::google::protobuf::internal::dynamic_cast_if_available<const packetw2c_req_sign_info_result*>(
  1329. &from);
  1330. if (source == NULL) {
  1331. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1332. } else {
  1333. MergeFrom(*source);
  1334. }
  1335. }
  1336. void packetw2c_req_sign_info_result::MergeFrom(const packetw2c_req_sign_info_result& from) {
  1337. GOOGLE_CHECK_NE(&from, this);
  1338. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1339. if (from.has_packet_id()) {
  1340. set_packet_id(from.packet_id());
  1341. }
  1342. if (from.has_signtype()) {
  1343. set_signtype(from.signtype());
  1344. }
  1345. if (from.has_signcount()) {
  1346. set_signcount(from.signcount());
  1347. }
  1348. if (from.has_keepsigncount()) {
  1349. set_keepsigncount(from.keepsigncount());
  1350. }
  1351. if (from.has_signuplevel()) {
  1352. set_signuplevel(from.signuplevel());
  1353. }
  1354. if (from.has_cansign()) {
  1355. set_cansign(from.cansign());
  1356. }
  1357. if (from.has_hassigncount()) {
  1358. set_hassigncount(from.hassigncount());
  1359. }
  1360. if (from.has_sevendaycansign()) {
  1361. set_sevendaycansign(from.sevendaycansign());
  1362. }
  1363. }
  1364. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1365. }
  1366. void packetw2c_req_sign_info_result::CopyFrom(const ::google::protobuf::Message& from) {
  1367. if (&from == this) return;
  1368. Clear();
  1369. MergeFrom(from);
  1370. }
  1371. void packetw2c_req_sign_info_result::CopyFrom(const packetw2c_req_sign_info_result& from) {
  1372. if (&from == this) return;
  1373. Clear();
  1374. MergeFrom(from);
  1375. }
  1376. bool packetw2c_req_sign_info_result::IsInitialized() const {
  1377. return true;
  1378. }
  1379. void packetw2c_req_sign_info_result::Swap(packetw2c_req_sign_info_result* other) {
  1380. if (other != this) {
  1381. std::swap(packet_id_, other->packet_id_);
  1382. std::swap(signtype_, other->signtype_);
  1383. std::swap(signcount_, other->signcount_);
  1384. std::swap(keepsigncount_, other->keepsigncount_);
  1385. std::swap(signuplevel_, other->signuplevel_);
  1386. std::swap(cansign_, other->cansign_);
  1387. std::swap(hassigncount_, other->hassigncount_);
  1388. std::swap(sevendaycansign_, other->sevendaycansign_);
  1389. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1390. _unknown_fields_.Swap(&other->_unknown_fields_);
  1391. std::swap(_cached_size_, other->_cached_size_);
  1392. }
  1393. }
  1394. ::google::protobuf::Metadata packetw2c_req_sign_info_result::GetMetadata() const {
  1395. protobuf_AssignDescriptorsOnce();
  1396. ::google::protobuf::Metadata metadata;
  1397. metadata.descriptor = packetw2c_req_sign_info_result_descriptor_;
  1398. metadata.reflection = packetw2c_req_sign_info_result_reflection_;
  1399. return metadata;
  1400. }
  1401. // ===================================================================
  1402. #ifndef _MSC_VER
  1403. const int packetc2w_req_recv_sevenday_reward::kPacketIdFieldNumber;
  1404. const int packetc2w_req_recv_sevenday_reward::kDayFieldNumber;
  1405. #endif // !_MSC_VER
  1406. packetc2w_req_recv_sevenday_reward::packetc2w_req_recv_sevenday_reward()
  1407. : ::google::protobuf::Message() {
  1408. SharedCtor();
  1409. }
  1410. void packetc2w_req_recv_sevenday_reward::InitAsDefaultInstance() {
  1411. }
  1412. packetc2w_req_recv_sevenday_reward::packetc2w_req_recv_sevenday_reward(const packetc2w_req_recv_sevenday_reward& from)
  1413. : ::google::protobuf::Message() {
  1414. SharedCtor();
  1415. MergeFrom(from);
  1416. }
  1417. void packetc2w_req_recv_sevenday_reward::SharedCtor() {
  1418. _cached_size_ = 0;
  1419. packet_id_ = 5147;
  1420. day_ = 0;
  1421. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1422. }
  1423. packetc2w_req_recv_sevenday_reward::~packetc2w_req_recv_sevenday_reward() {
  1424. SharedDtor();
  1425. }
  1426. void packetc2w_req_recv_sevenday_reward::SharedDtor() {
  1427. if (this != default_instance_) {
  1428. }
  1429. }
  1430. void packetc2w_req_recv_sevenday_reward::SetCachedSize(int size) const {
  1431. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1432. _cached_size_ = size;
  1433. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1434. }
  1435. const ::google::protobuf::Descriptor* packetc2w_req_recv_sevenday_reward::descriptor() {
  1436. protobuf_AssignDescriptorsOnce();
  1437. return packetc2w_req_recv_sevenday_reward_descriptor_;
  1438. }
  1439. const packetc2w_req_recv_sevenday_reward& packetc2w_req_recv_sevenday_reward::default_instance() {
  1440. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fdaily_5fbox_5flottery_2eproto();
  1441. return *default_instance_;
  1442. }
  1443. packetc2w_req_recv_sevenday_reward* packetc2w_req_recv_sevenday_reward::default_instance_ = NULL;
  1444. packetc2w_req_recv_sevenday_reward* packetc2w_req_recv_sevenday_reward::New() const {
  1445. return new packetc2w_req_recv_sevenday_reward;
  1446. }
  1447. void packetc2w_req_recv_sevenday_reward::Clear() {
  1448. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1449. packet_id_ = 5147;
  1450. day_ = 0;
  1451. }
  1452. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1453. mutable_unknown_fields()->Clear();
  1454. }
  1455. bool packetc2w_req_recv_sevenday_reward::MergePartialFromCodedStream(
  1456. ::google::protobuf::io::CodedInputStream* input) {
  1457. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  1458. ::google::protobuf::uint32 tag;
  1459. while ((tag = input->ReadTag()) != 0) {
  1460. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1461. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_recv_sevenday_reward];
  1462. case 1: {
  1463. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1464. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1465. int value;
  1466. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1467. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1468. input, &value)));
  1469. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  1470. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  1471. } else {
  1472. mutable_unknown_fields()->AddVarint(1, value);
  1473. }
  1474. } else {
  1475. goto handle_uninterpreted;
  1476. }
  1477. if (input->ExpectTag(16)) goto parse_day;
  1478. break;
  1479. }
  1480. // optional int32 day = 2;
  1481. case 2: {
  1482. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1483. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1484. parse_day:
  1485. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1486. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1487. input, &day_)));
  1488. set_has_day();
  1489. } else {
  1490. goto handle_uninterpreted;
  1491. }
  1492. if (input->ExpectAtEnd()) return true;
  1493. break;
  1494. }
  1495. default: {
  1496. handle_uninterpreted:
  1497. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1498. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1499. return true;
  1500. }
  1501. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1502. input, tag, mutable_unknown_fields()));
  1503. break;
  1504. }
  1505. }
  1506. }
  1507. return true;
  1508. #undef DO_
  1509. }
  1510. void packetc2w_req_recv_sevenday_reward::SerializeWithCachedSizes(
  1511. ::google::protobuf::io::CodedOutputStream* output) const {
  1512. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_recv_sevenday_reward];
  1513. if (has_packet_id()) {
  1514. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1515. 1, this->packet_id(), output);
  1516. }
  1517. // optional int32 day = 2;
  1518. if (has_day()) {
  1519. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->day(), output);
  1520. }
  1521. if (!unknown_fields().empty()) {
  1522. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1523. unknown_fields(), output);
  1524. }
  1525. }
  1526. ::google::protobuf::uint8* packetc2w_req_recv_sevenday_reward::SerializeWithCachedSizesToArray(
  1527. ::google::protobuf::uint8* target) const {
  1528. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_recv_sevenday_reward];
  1529. if (has_packet_id()) {
  1530. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1531. 1, this->packet_id(), target);
  1532. }
  1533. // optional int32 day = 2;
  1534. if (has_day()) {
  1535. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->day(), target);
  1536. }
  1537. if (!unknown_fields().empty()) {
  1538. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1539. unknown_fields(), target);
  1540. }
  1541. return target;
  1542. }
  1543. int packetc2w_req_recv_sevenday_reward::ByteSize() const {
  1544. int total_size = 0;
  1545. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1546. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_recv_sevenday_reward];
  1547. if (has_packet_id()) {
  1548. total_size += 1 +
  1549. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  1550. }
  1551. // optional int32 day = 2;
  1552. if (has_day()) {
  1553. total_size += 1 +
  1554. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1555. this->day());
  1556. }
  1557. }
  1558. if (!unknown_fields().empty()) {
  1559. total_size +=
  1560. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1561. unknown_fields());
  1562. }
  1563. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1564. _cached_size_ = total_size;
  1565. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1566. return total_size;
  1567. }
  1568. void packetc2w_req_recv_sevenday_reward::MergeFrom(const ::google::protobuf::Message& from) {
  1569. GOOGLE_CHECK_NE(&from, this);
  1570. const packetc2w_req_recv_sevenday_reward* source =
  1571. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2w_req_recv_sevenday_reward*>(
  1572. &from);
  1573. if (source == NULL) {
  1574. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1575. } else {
  1576. MergeFrom(*source);
  1577. }
  1578. }
  1579. void packetc2w_req_recv_sevenday_reward::MergeFrom(const packetc2w_req_recv_sevenday_reward& from) {
  1580. GOOGLE_CHECK_NE(&from, this);
  1581. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1582. if (from.has_packet_id()) {
  1583. set_packet_id(from.packet_id());
  1584. }
  1585. if (from.has_day()) {
  1586. set_day(from.day());
  1587. }
  1588. }
  1589. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1590. }
  1591. void packetc2w_req_recv_sevenday_reward::CopyFrom(const ::google::protobuf::Message& from) {
  1592. if (&from == this) return;
  1593. Clear();
  1594. MergeFrom(from);
  1595. }
  1596. void packetc2w_req_recv_sevenday_reward::CopyFrom(const packetc2w_req_recv_sevenday_reward& from) {
  1597. if (&from == this) return;
  1598. Clear();
  1599. MergeFrom(from);
  1600. }
  1601. bool packetc2w_req_recv_sevenday_reward::IsInitialized() const {
  1602. return true;
  1603. }
  1604. void packetc2w_req_recv_sevenday_reward::Swap(packetc2w_req_recv_sevenday_reward* other) {
  1605. if (other != this) {
  1606. std::swap(packet_id_, other->packet_id_);
  1607. std::swap(day_, other->day_);
  1608. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1609. _unknown_fields_.Swap(&other->_unknown_fields_);
  1610. std::swap(_cached_size_, other->_cached_size_);
  1611. }
  1612. }
  1613. ::google::protobuf::Metadata packetc2w_req_recv_sevenday_reward::GetMetadata() const {
  1614. protobuf_AssignDescriptorsOnce();
  1615. ::google::protobuf::Metadata metadata;
  1616. metadata.descriptor = packetc2w_req_recv_sevenday_reward_descriptor_;
  1617. metadata.reflection = packetc2w_req_recv_sevenday_reward_reflection_;
  1618. return metadata;
  1619. }
  1620. // ===================================================================
  1621. #ifndef _MSC_VER
  1622. const int packetc2w_req_recv_sevenday_reward_result::kPacketIdFieldNumber;
  1623. const int packetc2w_req_recv_sevenday_reward_result::kDayFieldNumber;
  1624. const int packetc2w_req_recv_sevenday_reward_result::kResultFieldNumber;
  1625. const int packetc2w_req_recv_sevenday_reward_result::kItemListFieldNumber;
  1626. #endif // !_MSC_VER
  1627. packetc2w_req_recv_sevenday_reward_result::packetc2w_req_recv_sevenday_reward_result()
  1628. : ::google::protobuf::Message() {
  1629. SharedCtor();
  1630. }
  1631. void packetc2w_req_recv_sevenday_reward_result::InitAsDefaultInstance() {
  1632. }
  1633. packetc2w_req_recv_sevenday_reward_result::packetc2w_req_recv_sevenday_reward_result(const packetc2w_req_recv_sevenday_reward_result& from)
  1634. : ::google::protobuf::Message() {
  1635. SharedCtor();
  1636. MergeFrom(from);
  1637. }
  1638. void packetc2w_req_recv_sevenday_reward_result::SharedCtor() {
  1639. _cached_size_ = 0;
  1640. packet_id_ = 7659;
  1641. day_ = 0;
  1642. result_ = 0;
  1643. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1644. }
  1645. packetc2w_req_recv_sevenday_reward_result::~packetc2w_req_recv_sevenday_reward_result() {
  1646. SharedDtor();
  1647. }
  1648. void packetc2w_req_recv_sevenday_reward_result::SharedDtor() {
  1649. if (this != default_instance_) {
  1650. }
  1651. }
  1652. void packetc2w_req_recv_sevenday_reward_result::SetCachedSize(int size) const {
  1653. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1654. _cached_size_ = size;
  1655. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1656. }
  1657. const ::google::protobuf::Descriptor* packetc2w_req_recv_sevenday_reward_result::descriptor() {
  1658. protobuf_AssignDescriptorsOnce();
  1659. return packetc2w_req_recv_sevenday_reward_result_descriptor_;
  1660. }
  1661. const packetc2w_req_recv_sevenday_reward_result& packetc2w_req_recv_sevenday_reward_result::default_instance() {
  1662. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fdaily_5fbox_5flottery_2eproto();
  1663. return *default_instance_;
  1664. }
  1665. packetc2w_req_recv_sevenday_reward_result* packetc2w_req_recv_sevenday_reward_result::default_instance_ = NULL;
  1666. packetc2w_req_recv_sevenday_reward_result* packetc2w_req_recv_sevenday_reward_result::New() const {
  1667. return new packetc2w_req_recv_sevenday_reward_result;
  1668. }
  1669. void packetc2w_req_recv_sevenday_reward_result::Clear() {
  1670. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1671. packet_id_ = 7659;
  1672. day_ = 0;
  1673. result_ = 0;
  1674. }
  1675. itemlist_.Clear();
  1676. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1677. mutable_unknown_fields()->Clear();
  1678. }
  1679. bool packetc2w_req_recv_sevenday_reward_result::MergePartialFromCodedStream(
  1680. ::google::protobuf::io::CodedInputStream* input) {
  1681. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  1682. ::google::protobuf::uint32 tag;
  1683. while ((tag = input->ReadTag()) != 0) {
  1684. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1685. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_recv_sevenday_reward_result];
  1686. case 1: {
  1687. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1688. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1689. int value;
  1690. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1691. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1692. input, &value)));
  1693. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  1694. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  1695. } else {
  1696. mutable_unknown_fields()->AddVarint(1, value);
  1697. }
  1698. } else {
  1699. goto handle_uninterpreted;
  1700. }
  1701. if (input->ExpectTag(16)) goto parse_day;
  1702. break;
  1703. }
  1704. // optional int32 day = 2;
  1705. case 2: {
  1706. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1707. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1708. parse_day:
  1709. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1710. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1711. input, &day_)));
  1712. set_has_day();
  1713. } else {
  1714. goto handle_uninterpreted;
  1715. }
  1716. if (input->ExpectTag(24)) goto parse_result;
  1717. break;
  1718. }
  1719. // optional int32 result = 3;
  1720. case 3: {
  1721. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1722. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1723. parse_result:
  1724. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1725. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1726. input, &result_)));
  1727. set_has_result();
  1728. } else {
  1729. goto handle_uninterpreted;
  1730. }
  1731. if (input->ExpectTag(34)) goto parse_itemList;
  1732. break;
  1733. }
  1734. // repeated .msg_info_def.ItemInfo itemList = 4;
  1735. case 4: {
  1736. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1737. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1738. parse_itemList:
  1739. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1740. input, add_itemlist()));
  1741. } else {
  1742. goto handle_uninterpreted;
  1743. }
  1744. if (input->ExpectTag(34)) goto parse_itemList;
  1745. if (input->ExpectAtEnd()) return true;
  1746. break;
  1747. }
  1748. default: {
  1749. handle_uninterpreted:
  1750. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1751. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1752. return true;
  1753. }
  1754. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1755. input, tag, mutable_unknown_fields()));
  1756. break;
  1757. }
  1758. }
  1759. }
  1760. return true;
  1761. #undef DO_
  1762. }
  1763. void packetc2w_req_recv_sevenday_reward_result::SerializeWithCachedSizes(
  1764. ::google::protobuf::io::CodedOutputStream* output) const {
  1765. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_recv_sevenday_reward_result];
  1766. if (has_packet_id()) {
  1767. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1768. 1, this->packet_id(), output);
  1769. }
  1770. // optional int32 day = 2;
  1771. if (has_day()) {
  1772. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->day(), output);
  1773. }
  1774. // optional int32 result = 3;
  1775. if (has_result()) {
  1776. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->result(), output);
  1777. }
  1778. // repeated .msg_info_def.ItemInfo itemList = 4;
  1779. for (int i = 0; i < this->itemlist_size(); i++) {
  1780. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1781. 4, this->itemlist(i), output);
  1782. }
  1783. if (!unknown_fields().empty()) {
  1784. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1785. unknown_fields(), output);
  1786. }
  1787. }
  1788. ::google::protobuf::uint8* packetc2w_req_recv_sevenday_reward_result::SerializeWithCachedSizesToArray(
  1789. ::google::protobuf::uint8* target) const {
  1790. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_recv_sevenday_reward_result];
  1791. if (has_packet_id()) {
  1792. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1793. 1, this->packet_id(), target);
  1794. }
  1795. // optional int32 day = 2;
  1796. if (has_day()) {
  1797. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->day(), target);
  1798. }
  1799. // optional int32 result = 3;
  1800. if (has_result()) {
  1801. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->result(), target);
  1802. }
  1803. // repeated .msg_info_def.ItemInfo itemList = 4;
  1804. for (int i = 0; i < this->itemlist_size(); i++) {
  1805. target = ::google::protobuf::internal::WireFormatLite::
  1806. WriteMessageNoVirtualToArray(
  1807. 4, this->itemlist(i), target);
  1808. }
  1809. if (!unknown_fields().empty()) {
  1810. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1811. unknown_fields(), target);
  1812. }
  1813. return target;
  1814. }
  1815. int packetc2w_req_recv_sevenday_reward_result::ByteSize() const {
  1816. int total_size = 0;
  1817. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1818. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_recv_sevenday_reward_result];
  1819. if (has_packet_id()) {
  1820. total_size += 1 +
  1821. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  1822. }
  1823. // optional int32 day = 2;
  1824. if (has_day()) {
  1825. total_size += 1 +
  1826. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1827. this->day());
  1828. }
  1829. // optional int32 result = 3;
  1830. if (has_result()) {
  1831. total_size += 1 +
  1832. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1833. this->result());
  1834. }
  1835. }
  1836. // repeated .msg_info_def.ItemInfo itemList = 4;
  1837. total_size += 1 * this->itemlist_size();
  1838. for (int i = 0; i < this->itemlist_size(); i++) {
  1839. total_size +=
  1840. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1841. this->itemlist(i));
  1842. }
  1843. if (!unknown_fields().empty()) {
  1844. total_size +=
  1845. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1846. unknown_fields());
  1847. }
  1848. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1849. _cached_size_ = total_size;
  1850. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1851. return total_size;
  1852. }
  1853. void packetc2w_req_recv_sevenday_reward_result::MergeFrom(const ::google::protobuf::Message& from) {
  1854. GOOGLE_CHECK_NE(&from, this);
  1855. const packetc2w_req_recv_sevenday_reward_result* source =
  1856. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2w_req_recv_sevenday_reward_result*>(
  1857. &from);
  1858. if (source == NULL) {
  1859. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1860. } else {
  1861. MergeFrom(*source);
  1862. }
  1863. }
  1864. void packetc2w_req_recv_sevenday_reward_result::MergeFrom(const packetc2w_req_recv_sevenday_reward_result& from) {
  1865. GOOGLE_CHECK_NE(&from, this);
  1866. itemlist_.MergeFrom(from.itemlist_);
  1867. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1868. if (from.has_packet_id()) {
  1869. set_packet_id(from.packet_id());
  1870. }
  1871. if (from.has_day()) {
  1872. set_day(from.day());
  1873. }
  1874. if (from.has_result()) {
  1875. set_result(from.result());
  1876. }
  1877. }
  1878. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1879. }
  1880. void packetc2w_req_recv_sevenday_reward_result::CopyFrom(const ::google::protobuf::Message& from) {
  1881. if (&from == this) return;
  1882. Clear();
  1883. MergeFrom(from);
  1884. }
  1885. void packetc2w_req_recv_sevenday_reward_result::CopyFrom(const packetc2w_req_recv_sevenday_reward_result& from) {
  1886. if (&from == this) return;
  1887. Clear();
  1888. MergeFrom(from);
  1889. }
  1890. bool packetc2w_req_recv_sevenday_reward_result::IsInitialized() const {
  1891. return true;
  1892. }
  1893. void packetc2w_req_recv_sevenday_reward_result::Swap(packetc2w_req_recv_sevenday_reward_result* other) {
  1894. if (other != this) {
  1895. std::swap(packet_id_, other->packet_id_);
  1896. std::swap(day_, other->day_);
  1897. std::swap(result_, other->result_);
  1898. itemlist_.Swap(&other->itemlist_);
  1899. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1900. _unknown_fields_.Swap(&other->_unknown_fields_);
  1901. std::swap(_cached_size_, other->_cached_size_);
  1902. }
  1903. }
  1904. ::google::protobuf::Metadata packetc2w_req_recv_sevenday_reward_result::GetMetadata() const {
  1905. protobuf_AssignDescriptorsOnce();
  1906. ::google::protobuf::Metadata metadata;
  1907. metadata.descriptor = packetc2w_req_recv_sevenday_reward_result_descriptor_;
  1908. metadata.reflection = packetc2w_req_recv_sevenday_reward_result_reflection_;
  1909. return metadata;
  1910. }
  1911. // @@protoc_insertion_point(namespace_scope)
  1912. } // namespace client2world_protocols
  1913. // @@protoc_insertion_point(global_scope)