client2world_friend.pb.cc 46 KB

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