client2world_friend.pb.h 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: client2world_friend.proto
  3. #ifndef PROTOBUF_client2world_5ffriend_2eproto__INCLUDED
  4. #define PROTOBUF_client2world_5ffriend_2eproto__INCLUDED
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 2005000
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/generated_message_util.h>
  18. #include <google/protobuf/message.h>
  19. #include <google/protobuf/repeated_field.h>
  20. #include <google/protobuf/extension_set.h>
  21. #include <google/protobuf/unknown_field_set.h>
  22. #include "client2world_msg_type.pb.h"
  23. #include "msg_type_def.pb.h"
  24. #include "msg_info_def.pb.h"
  25. // @@protoc_insertion_point(includes)
  26. namespace client2world_protocols {
  27. // Internal implementation detail -- do not call these.
  28. void protobuf_AddDesc_client2world_5ffriend_2eproto();
  29. void protobuf_AssignDesc_client2world_5ffriend_2eproto();
  30. void protobuf_ShutdownFile_client2world_5ffriend_2eproto();
  31. class FriendInfo;
  32. class packetc2w_req_friend_list;
  33. class packetw2c_req_friend_list_result;
  34. // ===================================================================
  35. class FriendInfo : public ::google::protobuf::Message {
  36. public:
  37. FriendInfo();
  38. virtual ~FriendInfo();
  39. FriendInfo(const FriendInfo& from);
  40. inline FriendInfo& operator=(const FriendInfo& from) {
  41. CopyFrom(from);
  42. return *this;
  43. }
  44. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  45. return _unknown_fields_;
  46. }
  47. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  48. return &_unknown_fields_;
  49. }
  50. static const ::google::protobuf::Descriptor* descriptor();
  51. static const FriendInfo& default_instance();
  52. void Swap(FriendInfo* other);
  53. // implements Message ----------------------------------------------
  54. FriendInfo* New() const;
  55. void CopyFrom(const ::google::protobuf::Message& from);
  56. void MergeFrom(const ::google::protobuf::Message& from);
  57. void CopyFrom(const FriendInfo& from);
  58. void MergeFrom(const FriendInfo& from);
  59. void Clear();
  60. bool IsInitialized() const;
  61. int ByteSize() const;
  62. bool MergePartialFromCodedStream(
  63. ::google::protobuf::io::CodedInputStream* input);
  64. void SerializeWithCachedSizes(
  65. ::google::protobuf::io::CodedOutputStream* output) const;
  66. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  67. int GetCachedSize() const { return _cached_size_; }
  68. private:
  69. void SharedCtor();
  70. void SharedDtor();
  71. void SetCachedSize(int size) const;
  72. public:
  73. ::google::protobuf::Metadata GetMetadata() const;
  74. // nested types ----------------------------------------------------
  75. // accessors -------------------------------------------------------
  76. // optional int32 friendId = 1;
  77. inline bool has_friendid() const;
  78. inline void clear_friendid();
  79. static const int kFriendIdFieldNumber = 1;
  80. inline ::google::protobuf::int32 friendid() const;
  81. inline void set_friendid(::google::protobuf::int32 value);
  82. // optional int32 sex = 2;
  83. inline bool has_sex() const;
  84. inline void clear_sex();
  85. static const int kSexFieldNumber = 2;
  86. inline ::google::protobuf::int32 sex() const;
  87. inline void set_sex(::google::protobuf::int32 value);
  88. // optional bool online = 3;
  89. inline bool has_online() const;
  90. inline void clear_online();
  91. static const int kOnlineFieldNumber = 3;
  92. inline bool online() const;
  93. inline void set_online(bool value);
  94. // optional int32 vipLevel = 4;
  95. inline bool has_viplevel() const;
  96. inline void clear_viplevel();
  97. static const int kVipLevelFieldNumber = 4;
  98. inline ::google::protobuf::int32 viplevel() const;
  99. inline void set_viplevel(::google::protobuf::int32 value);
  100. // optional string nickName = 5;
  101. inline bool has_nickname() const;
  102. inline void clear_nickname();
  103. static const int kNickNameFieldNumber = 5;
  104. inline const ::std::string& nickname() const;
  105. inline void set_nickname(const ::std::string& value);
  106. inline void set_nickname(const char* value);
  107. inline void set_nickname(const char* value, size_t size);
  108. inline ::std::string* mutable_nickname();
  109. inline ::std::string* release_nickname();
  110. inline void set_allocated_nickname(::std::string* nickname);
  111. // optional int32 iconCustom = 6;
  112. inline bool has_iconcustom() const;
  113. inline void clear_iconcustom();
  114. static const int kIconCustomFieldNumber = 6;
  115. inline ::google::protobuf::int32 iconcustom() const;
  116. inline void set_iconcustom(::google::protobuf::int32 value);
  117. // optional int32 photoFrameId = 7;
  118. inline bool has_photoframeid() const;
  119. inline void clear_photoframeid();
  120. static const int kPhotoFrameIdFieldNumber = 7;
  121. inline ::google::protobuf::int32 photoframeid() const;
  122. inline void set_photoframeid(::google::protobuf::int32 value);
  123. // optional string selfSignature = 8;
  124. inline bool has_selfsignature() const;
  125. inline void clear_selfsignature();
  126. static const int kSelfSignatureFieldNumber = 8;
  127. inline const ::std::string& selfsignature() const;
  128. inline void set_selfsignature(const ::std::string& value);
  129. inline void set_selfsignature(const char* value);
  130. inline void set_selfsignature(const char* value, size_t size);
  131. inline ::std::string* mutable_selfsignature();
  132. inline ::std::string* release_selfsignature();
  133. inline void set_allocated_selfsignature(::std::string* selfsignature);
  134. // repeated .msg_info_def.msg_gift giftList = 9;
  135. inline int giftlist_size() const;
  136. inline void clear_giftlist();
  137. static const int kGiftListFieldNumber = 9;
  138. inline const ::msg_info_def::msg_gift& giftlist(int index) const;
  139. inline ::msg_info_def::msg_gift* mutable_giftlist(int index);
  140. inline ::msg_info_def::msg_gift* add_giftlist();
  141. inline const ::google::protobuf::RepeatedPtrField< ::msg_info_def::msg_gift >&
  142. giftlist() const;
  143. inline ::google::protobuf::RepeatedPtrField< ::msg_info_def::msg_gift >*
  144. mutable_giftlist();
  145. // optional int32 giftCoinCount = 10;
  146. inline bool has_giftcoincount() const;
  147. inline void clear_giftcoincount();
  148. static const int kGiftCoinCountFieldNumber = 10;
  149. inline ::google::protobuf::int32 giftcoincount() const;
  150. inline void set_giftcoincount(::google::protobuf::int32 value);
  151. // optional int32 gold = 11;
  152. inline bool has_gold() const;
  153. inline void clear_gold();
  154. static const int kGoldFieldNumber = 11;
  155. inline ::google::protobuf::int32 gold() const;
  156. inline void set_gold(::google::protobuf::int32 value);
  157. // optional int32 fishLevel = 12;
  158. inline bool has_fishlevel() const;
  159. inline void clear_fishlevel();
  160. static const int kFishLevelFieldNumber = 12;
  161. inline ::google::protobuf::int32 fishlevel() const;
  162. inline void set_fishlevel(::google::protobuf::int32 value);
  163. // @@protoc_insertion_point(class_scope:client2world_protocols.FriendInfo)
  164. private:
  165. inline void set_has_friendid();
  166. inline void clear_has_friendid();
  167. inline void set_has_sex();
  168. inline void clear_has_sex();
  169. inline void set_has_online();
  170. inline void clear_has_online();
  171. inline void set_has_viplevel();
  172. inline void clear_has_viplevel();
  173. inline void set_has_nickname();
  174. inline void clear_has_nickname();
  175. inline void set_has_iconcustom();
  176. inline void clear_has_iconcustom();
  177. inline void set_has_photoframeid();
  178. inline void clear_has_photoframeid();
  179. inline void set_has_selfsignature();
  180. inline void clear_has_selfsignature();
  181. inline void set_has_giftcoincount();
  182. inline void clear_has_giftcoincount();
  183. inline void set_has_gold();
  184. inline void clear_has_gold();
  185. inline void set_has_fishlevel();
  186. inline void clear_has_fishlevel();
  187. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  188. ::google::protobuf::int32 friendid_;
  189. ::google::protobuf::int32 sex_;
  190. bool online_;
  191. ::google::protobuf::int32 viplevel_;
  192. ::std::string* nickname_;
  193. ::google::protobuf::int32 iconcustom_;
  194. ::google::protobuf::int32 photoframeid_;
  195. ::std::string* selfsignature_;
  196. ::google::protobuf::RepeatedPtrField< ::msg_info_def::msg_gift > giftlist_;
  197. ::google::protobuf::int32 giftcoincount_;
  198. ::google::protobuf::int32 gold_;
  199. ::google::protobuf::int32 fishlevel_;
  200. mutable int _cached_size_;
  201. ::google::protobuf::uint32 _has_bits_[(12 + 31) / 32];
  202. friend void protobuf_AddDesc_client2world_5ffriend_2eproto();
  203. friend void protobuf_AssignDesc_client2world_5ffriend_2eproto();
  204. friend void protobuf_ShutdownFile_client2world_5ffriend_2eproto();
  205. void InitAsDefaultInstance();
  206. static FriendInfo* default_instance_;
  207. };
  208. // -------------------------------------------------------------------
  209. class packetc2w_req_friend_list : public ::google::protobuf::Message {
  210. public:
  211. packetc2w_req_friend_list();
  212. virtual ~packetc2w_req_friend_list();
  213. packetc2w_req_friend_list(const packetc2w_req_friend_list& from);
  214. inline packetc2w_req_friend_list& operator=(const packetc2w_req_friend_list& from) {
  215. CopyFrom(from);
  216. return *this;
  217. }
  218. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  219. return _unknown_fields_;
  220. }
  221. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  222. return &_unknown_fields_;
  223. }
  224. static const ::google::protobuf::Descriptor* descriptor();
  225. static const packetc2w_req_friend_list& default_instance();
  226. void Swap(packetc2w_req_friend_list* other);
  227. // implements Message ----------------------------------------------
  228. packetc2w_req_friend_list* New() const;
  229. void CopyFrom(const ::google::protobuf::Message& from);
  230. void MergeFrom(const ::google::protobuf::Message& from);
  231. void CopyFrom(const packetc2w_req_friend_list& from);
  232. void MergeFrom(const packetc2w_req_friend_list& from);
  233. void Clear();
  234. bool IsInitialized() const;
  235. int ByteSize() const;
  236. bool MergePartialFromCodedStream(
  237. ::google::protobuf::io::CodedInputStream* input);
  238. void SerializeWithCachedSizes(
  239. ::google::protobuf::io::CodedOutputStream* output) const;
  240. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  241. int GetCachedSize() const { return _cached_size_; }
  242. private:
  243. void SharedCtor();
  244. void SharedDtor();
  245. void SetCachedSize(int size) const;
  246. public:
  247. ::google::protobuf::Metadata GetMetadata() const;
  248. // nested types ----------------------------------------------------
  249. // accessors -------------------------------------------------------
  250. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_friend_list];
  251. inline bool has_packet_id() const;
  252. inline void clear_packet_id();
  253. static const int kPacketIdFieldNumber = 1;
  254. inline ::client2world_protocols::e_server_msg_type packet_id() const;
  255. inline void set_packet_id(::client2world_protocols::e_server_msg_type value);
  256. // @@protoc_insertion_point(class_scope:client2world_protocols.packetc2w_req_friend_list)
  257. private:
  258. inline void set_has_packet_id();
  259. inline void clear_has_packet_id();
  260. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  261. int packet_id_;
  262. mutable int _cached_size_;
  263. ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
  264. friend void protobuf_AddDesc_client2world_5ffriend_2eproto();
  265. friend void protobuf_AssignDesc_client2world_5ffriend_2eproto();
  266. friend void protobuf_ShutdownFile_client2world_5ffriend_2eproto();
  267. void InitAsDefaultInstance();
  268. static packetc2w_req_friend_list* default_instance_;
  269. };
  270. // -------------------------------------------------------------------
  271. class packetw2c_req_friend_list_result : public ::google::protobuf::Message {
  272. public:
  273. packetw2c_req_friend_list_result();
  274. virtual ~packetw2c_req_friend_list_result();
  275. packetw2c_req_friend_list_result(const packetw2c_req_friend_list_result& from);
  276. inline packetw2c_req_friend_list_result& operator=(const packetw2c_req_friend_list_result& from) {
  277. CopyFrom(from);
  278. return *this;
  279. }
  280. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  281. return _unknown_fields_;
  282. }
  283. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  284. return &_unknown_fields_;
  285. }
  286. static const ::google::protobuf::Descriptor* descriptor();
  287. static const packetw2c_req_friend_list_result& default_instance();
  288. void Swap(packetw2c_req_friend_list_result* other);
  289. // implements Message ----------------------------------------------
  290. packetw2c_req_friend_list_result* New() const;
  291. void CopyFrom(const ::google::protobuf::Message& from);
  292. void MergeFrom(const ::google::protobuf::Message& from);
  293. void CopyFrom(const packetw2c_req_friend_list_result& from);
  294. void MergeFrom(const packetw2c_req_friend_list_result& from);
  295. void Clear();
  296. bool IsInitialized() const;
  297. int ByteSize() const;
  298. bool MergePartialFromCodedStream(
  299. ::google::protobuf::io::CodedInputStream* input);
  300. void SerializeWithCachedSizes(
  301. ::google::protobuf::io::CodedOutputStream* output) const;
  302. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  303. int GetCachedSize() const { return _cached_size_; }
  304. private:
  305. void SharedCtor();
  306. void SharedDtor();
  307. void SetCachedSize(int size) const;
  308. public:
  309. ::google::protobuf::Metadata GetMetadata() const;
  310. // nested types ----------------------------------------------------
  311. // accessors -------------------------------------------------------
  312. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_friend_list_result];
  313. inline bool has_packet_id() const;
  314. inline void clear_packet_id();
  315. static const int kPacketIdFieldNumber = 1;
  316. inline ::client2world_protocols::e_server_msg_type packet_id() const;
  317. inline void set_packet_id(::client2world_protocols::e_server_msg_type value);
  318. // repeated .client2world_protocols.FriendInfo friendList = 2;
  319. inline int friendlist_size() const;
  320. inline void clear_friendlist();
  321. static const int kFriendListFieldNumber = 2;
  322. inline const ::client2world_protocols::FriendInfo& friendlist(int index) const;
  323. inline ::client2world_protocols::FriendInfo* mutable_friendlist(int index);
  324. inline ::client2world_protocols::FriendInfo* add_friendlist();
  325. inline const ::google::protobuf::RepeatedPtrField< ::client2world_protocols::FriendInfo >&
  326. friendlist() const;
  327. inline ::google::protobuf::RepeatedPtrField< ::client2world_protocols::FriendInfo >*
  328. mutable_friendlist();
  329. // @@protoc_insertion_point(class_scope:client2world_protocols.packetw2c_req_friend_list_result)
  330. private:
  331. inline void set_has_packet_id();
  332. inline void clear_has_packet_id();
  333. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  334. ::google::protobuf::RepeatedPtrField< ::client2world_protocols::FriendInfo > friendlist_;
  335. int packet_id_;
  336. mutable int _cached_size_;
  337. ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
  338. friend void protobuf_AddDesc_client2world_5ffriend_2eproto();
  339. friend void protobuf_AssignDesc_client2world_5ffriend_2eproto();
  340. friend void protobuf_ShutdownFile_client2world_5ffriend_2eproto();
  341. void InitAsDefaultInstance();
  342. static packetw2c_req_friend_list_result* default_instance_;
  343. };
  344. // ===================================================================
  345. // ===================================================================
  346. // FriendInfo
  347. // optional int32 friendId = 1;
  348. inline bool FriendInfo::has_friendid() const {
  349. return (_has_bits_[0] & 0x00000001u) != 0;
  350. }
  351. inline void FriendInfo::set_has_friendid() {
  352. _has_bits_[0] |= 0x00000001u;
  353. }
  354. inline void FriendInfo::clear_has_friendid() {
  355. _has_bits_[0] &= ~0x00000001u;
  356. }
  357. inline void FriendInfo::clear_friendid() {
  358. friendid_ = 0;
  359. clear_has_friendid();
  360. }
  361. inline ::google::protobuf::int32 FriendInfo::friendid() const {
  362. return friendid_;
  363. }
  364. inline void FriendInfo::set_friendid(::google::protobuf::int32 value) {
  365. set_has_friendid();
  366. friendid_ = value;
  367. }
  368. // optional int32 sex = 2;
  369. inline bool FriendInfo::has_sex() const {
  370. return (_has_bits_[0] & 0x00000002u) != 0;
  371. }
  372. inline void FriendInfo::set_has_sex() {
  373. _has_bits_[0] |= 0x00000002u;
  374. }
  375. inline void FriendInfo::clear_has_sex() {
  376. _has_bits_[0] &= ~0x00000002u;
  377. }
  378. inline void FriendInfo::clear_sex() {
  379. sex_ = 0;
  380. clear_has_sex();
  381. }
  382. inline ::google::protobuf::int32 FriendInfo::sex() const {
  383. return sex_;
  384. }
  385. inline void FriendInfo::set_sex(::google::protobuf::int32 value) {
  386. set_has_sex();
  387. sex_ = value;
  388. }
  389. // optional bool online = 3;
  390. inline bool FriendInfo::has_online() const {
  391. return (_has_bits_[0] & 0x00000004u) != 0;
  392. }
  393. inline void FriendInfo::set_has_online() {
  394. _has_bits_[0] |= 0x00000004u;
  395. }
  396. inline void FriendInfo::clear_has_online() {
  397. _has_bits_[0] &= ~0x00000004u;
  398. }
  399. inline void FriendInfo::clear_online() {
  400. online_ = false;
  401. clear_has_online();
  402. }
  403. inline bool FriendInfo::online() const {
  404. return online_;
  405. }
  406. inline void FriendInfo::set_online(bool value) {
  407. set_has_online();
  408. online_ = value;
  409. }
  410. // optional int32 vipLevel = 4;
  411. inline bool FriendInfo::has_viplevel() const {
  412. return (_has_bits_[0] & 0x00000008u) != 0;
  413. }
  414. inline void FriendInfo::set_has_viplevel() {
  415. _has_bits_[0] |= 0x00000008u;
  416. }
  417. inline void FriendInfo::clear_has_viplevel() {
  418. _has_bits_[0] &= ~0x00000008u;
  419. }
  420. inline void FriendInfo::clear_viplevel() {
  421. viplevel_ = 0;
  422. clear_has_viplevel();
  423. }
  424. inline ::google::protobuf::int32 FriendInfo::viplevel() const {
  425. return viplevel_;
  426. }
  427. inline void FriendInfo::set_viplevel(::google::protobuf::int32 value) {
  428. set_has_viplevel();
  429. viplevel_ = value;
  430. }
  431. // optional string nickName = 5;
  432. inline bool FriendInfo::has_nickname() const {
  433. return (_has_bits_[0] & 0x00000010u) != 0;
  434. }
  435. inline void FriendInfo::set_has_nickname() {
  436. _has_bits_[0] |= 0x00000010u;
  437. }
  438. inline void FriendInfo::clear_has_nickname() {
  439. _has_bits_[0] &= ~0x00000010u;
  440. }
  441. inline void FriendInfo::clear_nickname() {
  442. if (nickname_ != &::google::protobuf::internal::kEmptyString) {
  443. nickname_->clear();
  444. }
  445. clear_has_nickname();
  446. }
  447. inline const ::std::string& FriendInfo::nickname() const {
  448. return *nickname_;
  449. }
  450. inline void FriendInfo::set_nickname(const ::std::string& value) {
  451. set_has_nickname();
  452. if (nickname_ == &::google::protobuf::internal::kEmptyString) {
  453. nickname_ = new ::std::string;
  454. }
  455. nickname_->assign(value);
  456. }
  457. inline void FriendInfo::set_nickname(const char* value) {
  458. set_has_nickname();
  459. if (nickname_ == &::google::protobuf::internal::kEmptyString) {
  460. nickname_ = new ::std::string;
  461. }
  462. nickname_->assign(value);
  463. }
  464. inline void FriendInfo::set_nickname(const char* value, size_t size) {
  465. set_has_nickname();
  466. if (nickname_ == &::google::protobuf::internal::kEmptyString) {
  467. nickname_ = new ::std::string;
  468. }
  469. nickname_->assign(reinterpret_cast<const char*>(value), size);
  470. }
  471. inline ::std::string* FriendInfo::mutable_nickname() {
  472. set_has_nickname();
  473. if (nickname_ == &::google::protobuf::internal::kEmptyString) {
  474. nickname_ = new ::std::string;
  475. }
  476. return nickname_;
  477. }
  478. inline ::std::string* FriendInfo::release_nickname() {
  479. clear_has_nickname();
  480. if (nickname_ == &::google::protobuf::internal::kEmptyString) {
  481. return NULL;
  482. } else {
  483. ::std::string* temp = nickname_;
  484. nickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  485. return temp;
  486. }
  487. }
  488. inline void FriendInfo::set_allocated_nickname(::std::string* nickname) {
  489. if (nickname_ != &::google::protobuf::internal::kEmptyString) {
  490. delete nickname_;
  491. }
  492. if (nickname) {
  493. set_has_nickname();
  494. nickname_ = nickname;
  495. } else {
  496. clear_has_nickname();
  497. nickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  498. }
  499. }
  500. // optional int32 iconCustom = 6;
  501. inline bool FriendInfo::has_iconcustom() const {
  502. return (_has_bits_[0] & 0x00000020u) != 0;
  503. }
  504. inline void FriendInfo::set_has_iconcustom() {
  505. _has_bits_[0] |= 0x00000020u;
  506. }
  507. inline void FriendInfo::clear_has_iconcustom() {
  508. _has_bits_[0] &= ~0x00000020u;
  509. }
  510. inline void FriendInfo::clear_iconcustom() {
  511. iconcustom_ = 0;
  512. clear_has_iconcustom();
  513. }
  514. inline ::google::protobuf::int32 FriendInfo::iconcustom() const {
  515. return iconcustom_;
  516. }
  517. inline void FriendInfo::set_iconcustom(::google::protobuf::int32 value) {
  518. set_has_iconcustom();
  519. iconcustom_ = value;
  520. }
  521. // optional int32 photoFrameId = 7;
  522. inline bool FriendInfo::has_photoframeid() const {
  523. return (_has_bits_[0] & 0x00000040u) != 0;
  524. }
  525. inline void FriendInfo::set_has_photoframeid() {
  526. _has_bits_[0] |= 0x00000040u;
  527. }
  528. inline void FriendInfo::clear_has_photoframeid() {
  529. _has_bits_[0] &= ~0x00000040u;
  530. }
  531. inline void FriendInfo::clear_photoframeid() {
  532. photoframeid_ = 0;
  533. clear_has_photoframeid();
  534. }
  535. inline ::google::protobuf::int32 FriendInfo::photoframeid() const {
  536. return photoframeid_;
  537. }
  538. inline void FriendInfo::set_photoframeid(::google::protobuf::int32 value) {
  539. set_has_photoframeid();
  540. photoframeid_ = value;
  541. }
  542. // optional string selfSignature = 8;
  543. inline bool FriendInfo::has_selfsignature() const {
  544. return (_has_bits_[0] & 0x00000080u) != 0;
  545. }
  546. inline void FriendInfo::set_has_selfsignature() {
  547. _has_bits_[0] |= 0x00000080u;
  548. }
  549. inline void FriendInfo::clear_has_selfsignature() {
  550. _has_bits_[0] &= ~0x00000080u;
  551. }
  552. inline void FriendInfo::clear_selfsignature() {
  553. if (selfsignature_ != &::google::protobuf::internal::kEmptyString) {
  554. selfsignature_->clear();
  555. }
  556. clear_has_selfsignature();
  557. }
  558. inline const ::std::string& FriendInfo::selfsignature() const {
  559. return *selfsignature_;
  560. }
  561. inline void FriendInfo::set_selfsignature(const ::std::string& value) {
  562. set_has_selfsignature();
  563. if (selfsignature_ == &::google::protobuf::internal::kEmptyString) {
  564. selfsignature_ = new ::std::string;
  565. }
  566. selfsignature_->assign(value);
  567. }
  568. inline void FriendInfo::set_selfsignature(const char* value) {
  569. set_has_selfsignature();
  570. if (selfsignature_ == &::google::protobuf::internal::kEmptyString) {
  571. selfsignature_ = new ::std::string;
  572. }
  573. selfsignature_->assign(value);
  574. }
  575. inline void FriendInfo::set_selfsignature(const char* value, size_t size) {
  576. set_has_selfsignature();
  577. if (selfsignature_ == &::google::protobuf::internal::kEmptyString) {
  578. selfsignature_ = new ::std::string;
  579. }
  580. selfsignature_->assign(reinterpret_cast<const char*>(value), size);
  581. }
  582. inline ::std::string* FriendInfo::mutable_selfsignature() {
  583. set_has_selfsignature();
  584. if (selfsignature_ == &::google::protobuf::internal::kEmptyString) {
  585. selfsignature_ = new ::std::string;
  586. }
  587. return selfsignature_;
  588. }
  589. inline ::std::string* FriendInfo::release_selfsignature() {
  590. clear_has_selfsignature();
  591. if (selfsignature_ == &::google::protobuf::internal::kEmptyString) {
  592. return NULL;
  593. } else {
  594. ::std::string* temp = selfsignature_;
  595. selfsignature_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  596. return temp;
  597. }
  598. }
  599. inline void FriendInfo::set_allocated_selfsignature(::std::string* selfsignature) {
  600. if (selfsignature_ != &::google::protobuf::internal::kEmptyString) {
  601. delete selfsignature_;
  602. }
  603. if (selfsignature) {
  604. set_has_selfsignature();
  605. selfsignature_ = selfsignature;
  606. } else {
  607. clear_has_selfsignature();
  608. selfsignature_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  609. }
  610. }
  611. // repeated .msg_info_def.msg_gift giftList = 9;
  612. inline int FriendInfo::giftlist_size() const {
  613. return giftlist_.size();
  614. }
  615. inline void FriendInfo::clear_giftlist() {
  616. giftlist_.Clear();
  617. }
  618. inline const ::msg_info_def::msg_gift& FriendInfo::giftlist(int index) const {
  619. return giftlist_.Get(index);
  620. }
  621. inline ::msg_info_def::msg_gift* FriendInfo::mutable_giftlist(int index) {
  622. return giftlist_.Mutable(index);
  623. }
  624. inline ::msg_info_def::msg_gift* FriendInfo::add_giftlist() {
  625. return giftlist_.Add();
  626. }
  627. inline const ::google::protobuf::RepeatedPtrField< ::msg_info_def::msg_gift >&
  628. FriendInfo::giftlist() const {
  629. return giftlist_;
  630. }
  631. inline ::google::protobuf::RepeatedPtrField< ::msg_info_def::msg_gift >*
  632. FriendInfo::mutable_giftlist() {
  633. return &giftlist_;
  634. }
  635. // optional int32 giftCoinCount = 10;
  636. inline bool FriendInfo::has_giftcoincount() const {
  637. return (_has_bits_[0] & 0x00000200u) != 0;
  638. }
  639. inline void FriendInfo::set_has_giftcoincount() {
  640. _has_bits_[0] |= 0x00000200u;
  641. }
  642. inline void FriendInfo::clear_has_giftcoincount() {
  643. _has_bits_[0] &= ~0x00000200u;
  644. }
  645. inline void FriendInfo::clear_giftcoincount() {
  646. giftcoincount_ = 0;
  647. clear_has_giftcoincount();
  648. }
  649. inline ::google::protobuf::int32 FriendInfo::giftcoincount() const {
  650. return giftcoincount_;
  651. }
  652. inline void FriendInfo::set_giftcoincount(::google::protobuf::int32 value) {
  653. set_has_giftcoincount();
  654. giftcoincount_ = value;
  655. }
  656. // optional int32 gold = 11;
  657. inline bool FriendInfo::has_gold() const {
  658. return (_has_bits_[0] & 0x00000400u) != 0;
  659. }
  660. inline void FriendInfo::set_has_gold() {
  661. _has_bits_[0] |= 0x00000400u;
  662. }
  663. inline void FriendInfo::clear_has_gold() {
  664. _has_bits_[0] &= ~0x00000400u;
  665. }
  666. inline void FriendInfo::clear_gold() {
  667. gold_ = 0;
  668. clear_has_gold();
  669. }
  670. inline ::google::protobuf::int32 FriendInfo::gold() const {
  671. return gold_;
  672. }
  673. inline void FriendInfo::set_gold(::google::protobuf::int32 value) {
  674. set_has_gold();
  675. gold_ = value;
  676. }
  677. // optional int32 fishLevel = 12;
  678. inline bool FriendInfo::has_fishlevel() const {
  679. return (_has_bits_[0] & 0x00000800u) != 0;
  680. }
  681. inline void FriendInfo::set_has_fishlevel() {
  682. _has_bits_[0] |= 0x00000800u;
  683. }
  684. inline void FriendInfo::clear_has_fishlevel() {
  685. _has_bits_[0] &= ~0x00000800u;
  686. }
  687. inline void FriendInfo::clear_fishlevel() {
  688. fishlevel_ = 0;
  689. clear_has_fishlevel();
  690. }
  691. inline ::google::protobuf::int32 FriendInfo::fishlevel() const {
  692. return fishlevel_;
  693. }
  694. inline void FriendInfo::set_fishlevel(::google::protobuf::int32 value) {
  695. set_has_fishlevel();
  696. fishlevel_ = value;
  697. }
  698. // -------------------------------------------------------------------
  699. // packetc2w_req_friend_list
  700. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_friend_list];
  701. inline bool packetc2w_req_friend_list::has_packet_id() const {
  702. return (_has_bits_[0] & 0x00000001u) != 0;
  703. }
  704. inline void packetc2w_req_friend_list::set_has_packet_id() {
  705. _has_bits_[0] |= 0x00000001u;
  706. }
  707. inline void packetc2w_req_friend_list::clear_has_packet_id() {
  708. _has_bits_[0] &= ~0x00000001u;
  709. }
  710. inline void packetc2w_req_friend_list::clear_packet_id() {
  711. packet_id_ = 5025;
  712. clear_has_packet_id();
  713. }
  714. inline ::client2world_protocols::e_server_msg_type packetc2w_req_friend_list::packet_id() const {
  715. return static_cast< ::client2world_protocols::e_server_msg_type >(packet_id_);
  716. }
  717. inline void packetc2w_req_friend_list::set_packet_id(::client2world_protocols::e_server_msg_type value) {
  718. assert(::client2world_protocols::e_server_msg_type_IsValid(value));
  719. set_has_packet_id();
  720. packet_id_ = value;
  721. }
  722. // -------------------------------------------------------------------
  723. // packetw2c_req_friend_list_result
  724. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_friend_list_result];
  725. inline bool packetw2c_req_friend_list_result::has_packet_id() const {
  726. return (_has_bits_[0] & 0x00000001u) != 0;
  727. }
  728. inline void packetw2c_req_friend_list_result::set_has_packet_id() {
  729. _has_bits_[0] |= 0x00000001u;
  730. }
  731. inline void packetw2c_req_friend_list_result::clear_has_packet_id() {
  732. _has_bits_[0] &= ~0x00000001u;
  733. }
  734. inline void packetw2c_req_friend_list_result::clear_packet_id() {
  735. packet_id_ = 7527;
  736. clear_has_packet_id();
  737. }
  738. inline ::client2world_protocols::e_server_msg_type packetw2c_req_friend_list_result::packet_id() const {
  739. return static_cast< ::client2world_protocols::e_server_msg_type >(packet_id_);
  740. }
  741. inline void packetw2c_req_friend_list_result::set_packet_id(::client2world_protocols::e_server_msg_type value) {
  742. assert(::client2world_protocols::e_server_msg_type_IsValid(value));
  743. set_has_packet_id();
  744. packet_id_ = value;
  745. }
  746. // repeated .client2world_protocols.FriendInfo friendList = 2;
  747. inline int packetw2c_req_friend_list_result::friendlist_size() const {
  748. return friendlist_.size();
  749. }
  750. inline void packetw2c_req_friend_list_result::clear_friendlist() {
  751. friendlist_.Clear();
  752. }
  753. inline const ::client2world_protocols::FriendInfo& packetw2c_req_friend_list_result::friendlist(int index) const {
  754. return friendlist_.Get(index);
  755. }
  756. inline ::client2world_protocols::FriendInfo* packetw2c_req_friend_list_result::mutable_friendlist(int index) {
  757. return friendlist_.Mutable(index);
  758. }
  759. inline ::client2world_protocols::FriendInfo* packetw2c_req_friend_list_result::add_friendlist() {
  760. return friendlist_.Add();
  761. }
  762. inline const ::google::protobuf::RepeatedPtrField< ::client2world_protocols::FriendInfo >&
  763. packetw2c_req_friend_list_result::friendlist() const {
  764. return friendlist_;
  765. }
  766. inline ::google::protobuf::RepeatedPtrField< ::client2world_protocols::FriendInfo >*
  767. packetw2c_req_friend_list_result::mutable_friendlist() {
  768. return &friendlist_;
  769. }
  770. // @@protoc_insertion_point(namespace_scope)
  771. } // namespace client2world_protocols
  772. #ifndef SWIG
  773. namespace google {
  774. namespace protobuf {
  775. } // namespace google
  776. } // namespace protobuf
  777. #endif // SWIG
  778. // @@protoc_insertion_point(global_scope)
  779. #endif // PROTOBUF_client2world_5ffriend_2eproto__INCLUDED