client2world_bind_phone.pb.cc 76 KB

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