client2world_exchange.pb.h 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: client2world_exchange.proto
  3. #ifndef PROTOBUF_client2world_5fexchange_2eproto__INCLUDED
  4. #define PROTOBUF_client2world_5fexchange_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_5fexchange_2eproto();
  29. void protobuf_AssignDesc_client2world_5fexchange_2eproto();
  30. void protobuf_ShutdownFile_client2world_5fexchange_2eproto();
  31. class packetc2w_exchange;
  32. class packetw2c_exchange_result;
  33. class packetc2w_get_exchange_state;
  34. class ExchangeInfo;
  35. class packetw2c_get_exchange_state_result;
  36. class packetc2w_req_exchange_count;
  37. class ExchangeCountInfo;
  38. class packetw2c_req_exchange_count_result;
  39. // ===================================================================
  40. class packetc2w_exchange : public ::google::protobuf::Message {
  41. public:
  42. packetc2w_exchange();
  43. virtual ~packetc2w_exchange();
  44. packetc2w_exchange(const packetc2w_exchange& from);
  45. inline packetc2w_exchange& operator=(const packetc2w_exchange& from) {
  46. CopyFrom(from);
  47. return *this;
  48. }
  49. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  50. return _unknown_fields_;
  51. }
  52. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  53. return &_unknown_fields_;
  54. }
  55. static const ::google::protobuf::Descriptor* descriptor();
  56. static const packetc2w_exchange& default_instance();
  57. void Swap(packetc2w_exchange* other);
  58. // implements Message ----------------------------------------------
  59. packetc2w_exchange* New() const;
  60. void CopyFrom(const ::google::protobuf::Message& from);
  61. void MergeFrom(const ::google::protobuf::Message& from);
  62. void CopyFrom(const packetc2w_exchange& from);
  63. void MergeFrom(const packetc2w_exchange& from);
  64. void Clear();
  65. bool IsInitialized() const;
  66. int ByteSize() const;
  67. bool MergePartialFromCodedStream(
  68. ::google::protobuf::io::CodedInputStream* input);
  69. void SerializeWithCachedSizes(
  70. ::google::protobuf::io::CodedOutputStream* output) const;
  71. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  72. int GetCachedSize() const { return _cached_size_; }
  73. private:
  74. void SharedCtor();
  75. void SharedDtor();
  76. void SetCachedSize(int size) const;
  77. public:
  78. ::google::protobuf::Metadata GetMetadata() const;
  79. // nested types ----------------------------------------------------
  80. // accessors -------------------------------------------------------
  81. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_exchange];
  82. inline bool has_packet_id() const;
  83. inline void clear_packet_id();
  84. static const int kPacketIdFieldNumber = 1;
  85. inline ::client2world_protocols::e_server_msg_type packet_id() const;
  86. inline void set_packet_id(::client2world_protocols::e_server_msg_type value);
  87. // optional int32 exchangeId = 2;
  88. inline bool has_exchangeid() const;
  89. inline void clear_exchangeid();
  90. static const int kExchangeIdFieldNumber = 2;
  91. inline ::google::protobuf::int32 exchangeid() const;
  92. inline void set_exchangeid(::google::protobuf::int32 value);
  93. // optional string phone = 3;
  94. inline bool has_phone() const;
  95. inline void clear_phone();
  96. static const int kPhoneFieldNumber = 3;
  97. inline const ::std::string& phone() const;
  98. inline void set_phone(const ::std::string& value);
  99. inline void set_phone(const char* value);
  100. inline void set_phone(const char* value, size_t size);
  101. inline ::std::string* mutable_phone();
  102. inline ::std::string* release_phone();
  103. inline void set_allocated_phone(::std::string* phone);
  104. // @@protoc_insertion_point(class_scope:client2world_protocols.packetc2w_exchange)
  105. private:
  106. inline void set_has_packet_id();
  107. inline void clear_has_packet_id();
  108. inline void set_has_exchangeid();
  109. inline void clear_has_exchangeid();
  110. inline void set_has_phone();
  111. inline void clear_has_phone();
  112. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  113. int packet_id_;
  114. ::google::protobuf::int32 exchangeid_;
  115. ::std::string* phone_;
  116. mutable int _cached_size_;
  117. ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
  118. friend void protobuf_AddDesc_client2world_5fexchange_2eproto();
  119. friend void protobuf_AssignDesc_client2world_5fexchange_2eproto();
  120. friend void protobuf_ShutdownFile_client2world_5fexchange_2eproto();
  121. void InitAsDefaultInstance();
  122. static packetc2w_exchange* default_instance_;
  123. };
  124. // -------------------------------------------------------------------
  125. class packetw2c_exchange_result : public ::google::protobuf::Message {
  126. public:
  127. packetw2c_exchange_result();
  128. virtual ~packetw2c_exchange_result();
  129. packetw2c_exchange_result(const packetw2c_exchange_result& from);
  130. inline packetw2c_exchange_result& operator=(const packetw2c_exchange_result& from) {
  131. CopyFrom(from);
  132. return *this;
  133. }
  134. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  135. return _unknown_fields_;
  136. }
  137. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  138. return &_unknown_fields_;
  139. }
  140. static const ::google::protobuf::Descriptor* descriptor();
  141. static const packetw2c_exchange_result& default_instance();
  142. void Swap(packetw2c_exchange_result* other);
  143. // implements Message ----------------------------------------------
  144. packetw2c_exchange_result* New() const;
  145. void CopyFrom(const ::google::protobuf::Message& from);
  146. void MergeFrom(const ::google::protobuf::Message& from);
  147. void CopyFrom(const packetw2c_exchange_result& from);
  148. void MergeFrom(const packetw2c_exchange_result& from);
  149. void Clear();
  150. bool IsInitialized() const;
  151. int ByteSize() const;
  152. bool MergePartialFromCodedStream(
  153. ::google::protobuf::io::CodedInputStream* input);
  154. void SerializeWithCachedSizes(
  155. ::google::protobuf::io::CodedOutputStream* output) const;
  156. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  157. int GetCachedSize() const { return _cached_size_; }
  158. private:
  159. void SharedCtor();
  160. void SharedDtor();
  161. void SetCachedSize(int size) const;
  162. public:
  163. ::google::protobuf::Metadata GetMetadata() const;
  164. // nested types ----------------------------------------------------
  165. // accessors -------------------------------------------------------
  166. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_exchange_result];
  167. inline bool has_packet_id() const;
  168. inline void clear_packet_id();
  169. static const int kPacketIdFieldNumber = 1;
  170. inline ::client2world_protocols::e_server_msg_type packet_id() const;
  171. inline void set_packet_id(::client2world_protocols::e_server_msg_type value);
  172. // optional int32 exchangeId = 2;
  173. inline bool has_exchangeid() const;
  174. inline void clear_exchangeid();
  175. static const int kExchangeIdFieldNumber = 2;
  176. inline ::google::protobuf::int32 exchangeid() const;
  177. inline void set_exchangeid(::google::protobuf::int32 value);
  178. // optional int32 result = 3;
  179. inline bool has_result() const;
  180. inline void clear_result();
  181. static const int kResultFieldNumber = 3;
  182. inline ::google::protobuf::int32 result() const;
  183. inline void set_result(::google::protobuf::int32 value);
  184. // @@protoc_insertion_point(class_scope:client2world_protocols.packetw2c_exchange_result)
  185. private:
  186. inline void set_has_packet_id();
  187. inline void clear_has_packet_id();
  188. inline void set_has_exchangeid();
  189. inline void clear_has_exchangeid();
  190. inline void set_has_result();
  191. inline void clear_has_result();
  192. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  193. int packet_id_;
  194. ::google::protobuf::int32 exchangeid_;
  195. ::google::protobuf::int32 result_;
  196. mutable int _cached_size_;
  197. ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
  198. friend void protobuf_AddDesc_client2world_5fexchange_2eproto();
  199. friend void protobuf_AssignDesc_client2world_5fexchange_2eproto();
  200. friend void protobuf_ShutdownFile_client2world_5fexchange_2eproto();
  201. void InitAsDefaultInstance();
  202. static packetw2c_exchange_result* default_instance_;
  203. };
  204. // -------------------------------------------------------------------
  205. class packetc2w_get_exchange_state : public ::google::protobuf::Message {
  206. public:
  207. packetc2w_get_exchange_state();
  208. virtual ~packetc2w_get_exchange_state();
  209. packetc2w_get_exchange_state(const packetc2w_get_exchange_state& from);
  210. inline packetc2w_get_exchange_state& operator=(const packetc2w_get_exchange_state& from) {
  211. CopyFrom(from);
  212. return *this;
  213. }
  214. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  215. return _unknown_fields_;
  216. }
  217. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  218. return &_unknown_fields_;
  219. }
  220. static const ::google::protobuf::Descriptor* descriptor();
  221. static const packetc2w_get_exchange_state& default_instance();
  222. void Swap(packetc2w_get_exchange_state* other);
  223. // implements Message ----------------------------------------------
  224. packetc2w_get_exchange_state* New() const;
  225. void CopyFrom(const ::google::protobuf::Message& from);
  226. void MergeFrom(const ::google::protobuf::Message& from);
  227. void CopyFrom(const packetc2w_get_exchange_state& from);
  228. void MergeFrom(const packetc2w_get_exchange_state& from);
  229. void Clear();
  230. bool IsInitialized() const;
  231. int ByteSize() const;
  232. bool MergePartialFromCodedStream(
  233. ::google::protobuf::io::CodedInputStream* input);
  234. void SerializeWithCachedSizes(
  235. ::google::protobuf::io::CodedOutputStream* output) const;
  236. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  237. int GetCachedSize() const { return _cached_size_; }
  238. private:
  239. void SharedCtor();
  240. void SharedDtor();
  241. void SetCachedSize(int size) const;
  242. public:
  243. ::google::protobuf::Metadata GetMetadata() const;
  244. // nested types ----------------------------------------------------
  245. // accessors -------------------------------------------------------
  246. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_get_exchange_state];
  247. inline bool has_packet_id() const;
  248. inline void clear_packet_id();
  249. static const int kPacketIdFieldNumber = 1;
  250. inline ::client2world_protocols::e_server_msg_type packet_id() const;
  251. inline void set_packet_id(::client2world_protocols::e_server_msg_type value);
  252. // @@protoc_insertion_point(class_scope:client2world_protocols.packetc2w_get_exchange_state)
  253. private:
  254. inline void set_has_packet_id();
  255. inline void clear_has_packet_id();
  256. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  257. int packet_id_;
  258. mutable int _cached_size_;
  259. ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
  260. friend void protobuf_AddDesc_client2world_5fexchange_2eproto();
  261. friend void protobuf_AssignDesc_client2world_5fexchange_2eproto();
  262. friend void protobuf_ShutdownFile_client2world_5fexchange_2eproto();
  263. void InitAsDefaultInstance();
  264. static packetc2w_get_exchange_state* default_instance_;
  265. };
  266. // -------------------------------------------------------------------
  267. class ExchangeInfo : public ::google::protobuf::Message {
  268. public:
  269. ExchangeInfo();
  270. virtual ~ExchangeInfo();
  271. ExchangeInfo(const ExchangeInfo& from);
  272. inline ExchangeInfo& operator=(const ExchangeInfo& from) {
  273. CopyFrom(from);
  274. return *this;
  275. }
  276. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  277. return _unknown_fields_;
  278. }
  279. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  280. return &_unknown_fields_;
  281. }
  282. static const ::google::protobuf::Descriptor* descriptor();
  283. static const ExchangeInfo& default_instance();
  284. void Swap(ExchangeInfo* other);
  285. // implements Message ----------------------------------------------
  286. ExchangeInfo* New() const;
  287. void CopyFrom(const ::google::protobuf::Message& from);
  288. void MergeFrom(const ::google::protobuf::Message& from);
  289. void CopyFrom(const ExchangeInfo& from);
  290. void MergeFrom(const ExchangeInfo& from);
  291. void Clear();
  292. bool IsInitialized() const;
  293. int ByteSize() const;
  294. bool MergePartialFromCodedStream(
  295. ::google::protobuf::io::CodedInputStream* input);
  296. void SerializeWithCachedSizes(
  297. ::google::protobuf::io::CodedOutputStream* output) const;
  298. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  299. int GetCachedSize() const { return _cached_size_; }
  300. private:
  301. void SharedCtor();
  302. void SharedDtor();
  303. void SetCachedSize(int size) const;
  304. public:
  305. ::google::protobuf::Metadata GetMetadata() const;
  306. // nested types ----------------------------------------------------
  307. // accessors -------------------------------------------------------
  308. // optional int32 time = 1;
  309. inline bool has_time() const;
  310. inline void clear_time();
  311. static const int kTimeFieldNumber = 1;
  312. inline ::google::protobuf::int32 time() const;
  313. inline void set_time(::google::protobuf::int32 value);
  314. // optional int32 chgId = 2;
  315. inline bool has_chgid() const;
  316. inline void clear_chgid();
  317. static const int kChgIdFieldNumber = 2;
  318. inline ::google::protobuf::int32 chgid() const;
  319. inline void set_chgid(::google::protobuf::int32 value);
  320. // optional int32 state = 3;
  321. inline bool has_state() const;
  322. inline void clear_state();
  323. static const int kStateFieldNumber = 3;
  324. inline ::google::protobuf::int32 state() const;
  325. inline void set_state(::google::protobuf::int32 value);
  326. // @@protoc_insertion_point(class_scope:client2world_protocols.ExchangeInfo)
  327. private:
  328. inline void set_has_time();
  329. inline void clear_has_time();
  330. inline void set_has_chgid();
  331. inline void clear_has_chgid();
  332. inline void set_has_state();
  333. inline void clear_has_state();
  334. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  335. ::google::protobuf::int32 time_;
  336. ::google::protobuf::int32 chgid_;
  337. ::google::protobuf::int32 state_;
  338. mutable int _cached_size_;
  339. ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
  340. friend void protobuf_AddDesc_client2world_5fexchange_2eproto();
  341. friend void protobuf_AssignDesc_client2world_5fexchange_2eproto();
  342. friend void protobuf_ShutdownFile_client2world_5fexchange_2eproto();
  343. void InitAsDefaultInstance();
  344. static ExchangeInfo* default_instance_;
  345. };
  346. // -------------------------------------------------------------------
  347. class packetw2c_get_exchange_state_result : public ::google::protobuf::Message {
  348. public:
  349. packetw2c_get_exchange_state_result();
  350. virtual ~packetw2c_get_exchange_state_result();
  351. packetw2c_get_exchange_state_result(const packetw2c_get_exchange_state_result& from);
  352. inline packetw2c_get_exchange_state_result& operator=(const packetw2c_get_exchange_state_result& from) {
  353. CopyFrom(from);
  354. return *this;
  355. }
  356. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  357. return _unknown_fields_;
  358. }
  359. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  360. return &_unknown_fields_;
  361. }
  362. static const ::google::protobuf::Descriptor* descriptor();
  363. static const packetw2c_get_exchange_state_result& default_instance();
  364. void Swap(packetw2c_get_exchange_state_result* other);
  365. // implements Message ----------------------------------------------
  366. packetw2c_get_exchange_state_result* New() const;
  367. void CopyFrom(const ::google::protobuf::Message& from);
  368. void MergeFrom(const ::google::protobuf::Message& from);
  369. void CopyFrom(const packetw2c_get_exchange_state_result& from);
  370. void MergeFrom(const packetw2c_get_exchange_state_result& from);
  371. void Clear();
  372. bool IsInitialized() const;
  373. int ByteSize() const;
  374. bool MergePartialFromCodedStream(
  375. ::google::protobuf::io::CodedInputStream* input);
  376. void SerializeWithCachedSizes(
  377. ::google::protobuf::io::CodedOutputStream* output) const;
  378. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  379. int GetCachedSize() const { return _cached_size_; }
  380. private:
  381. void SharedCtor();
  382. void SharedDtor();
  383. void SetCachedSize(int size) const;
  384. public:
  385. ::google::protobuf::Metadata GetMetadata() const;
  386. // nested types ----------------------------------------------------
  387. // accessors -------------------------------------------------------
  388. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_get_exchange_state_result];
  389. inline bool has_packet_id() const;
  390. inline void clear_packet_id();
  391. static const int kPacketIdFieldNumber = 1;
  392. inline ::client2world_protocols::e_server_msg_type packet_id() const;
  393. inline void set_packet_id(::client2world_protocols::e_server_msg_type value);
  394. // repeated .client2world_protocols.ExchangeInfo infoList = 2;
  395. inline int infolist_size() const;
  396. inline void clear_infolist();
  397. static const int kInfoListFieldNumber = 2;
  398. inline const ::client2world_protocols::ExchangeInfo& infolist(int index) const;
  399. inline ::client2world_protocols::ExchangeInfo* mutable_infolist(int index);
  400. inline ::client2world_protocols::ExchangeInfo* add_infolist();
  401. inline const ::google::protobuf::RepeatedPtrField< ::client2world_protocols::ExchangeInfo >&
  402. infolist() const;
  403. inline ::google::protobuf::RepeatedPtrField< ::client2world_protocols::ExchangeInfo >*
  404. mutable_infolist();
  405. // @@protoc_insertion_point(class_scope:client2world_protocols.packetw2c_get_exchange_state_result)
  406. private:
  407. inline void set_has_packet_id();
  408. inline void clear_has_packet_id();
  409. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  410. ::google::protobuf::RepeatedPtrField< ::client2world_protocols::ExchangeInfo > infolist_;
  411. int packet_id_;
  412. mutable int _cached_size_;
  413. ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
  414. friend void protobuf_AddDesc_client2world_5fexchange_2eproto();
  415. friend void protobuf_AssignDesc_client2world_5fexchange_2eproto();
  416. friend void protobuf_ShutdownFile_client2world_5fexchange_2eproto();
  417. void InitAsDefaultInstance();
  418. static packetw2c_get_exchange_state_result* default_instance_;
  419. };
  420. // -------------------------------------------------------------------
  421. class packetc2w_req_exchange_count : public ::google::protobuf::Message {
  422. public:
  423. packetc2w_req_exchange_count();
  424. virtual ~packetc2w_req_exchange_count();
  425. packetc2w_req_exchange_count(const packetc2w_req_exchange_count& from);
  426. inline packetc2w_req_exchange_count& operator=(const packetc2w_req_exchange_count& from) {
  427. CopyFrom(from);
  428. return *this;
  429. }
  430. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  431. return _unknown_fields_;
  432. }
  433. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  434. return &_unknown_fields_;
  435. }
  436. static const ::google::protobuf::Descriptor* descriptor();
  437. static const packetc2w_req_exchange_count& default_instance();
  438. void Swap(packetc2w_req_exchange_count* other);
  439. // implements Message ----------------------------------------------
  440. packetc2w_req_exchange_count* New() const;
  441. void CopyFrom(const ::google::protobuf::Message& from);
  442. void MergeFrom(const ::google::protobuf::Message& from);
  443. void CopyFrom(const packetc2w_req_exchange_count& from);
  444. void MergeFrom(const packetc2w_req_exchange_count& from);
  445. void Clear();
  446. bool IsInitialized() const;
  447. int ByteSize() const;
  448. bool MergePartialFromCodedStream(
  449. ::google::protobuf::io::CodedInputStream* input);
  450. void SerializeWithCachedSizes(
  451. ::google::protobuf::io::CodedOutputStream* output) const;
  452. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  453. int GetCachedSize() const { return _cached_size_; }
  454. private:
  455. void SharedCtor();
  456. void SharedDtor();
  457. void SetCachedSize(int size) const;
  458. public:
  459. ::google::protobuf::Metadata GetMetadata() const;
  460. // nested types ----------------------------------------------------
  461. // accessors -------------------------------------------------------
  462. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_exchange_count];
  463. inline bool has_packet_id() const;
  464. inline void clear_packet_id();
  465. static const int kPacketIdFieldNumber = 1;
  466. inline ::client2world_protocols::e_server_msg_type packet_id() const;
  467. inline void set_packet_id(::client2world_protocols::e_server_msg_type value);
  468. // @@protoc_insertion_point(class_scope:client2world_protocols.packetc2w_req_exchange_count)
  469. private:
  470. inline void set_has_packet_id();
  471. inline void clear_has_packet_id();
  472. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  473. int packet_id_;
  474. mutable int _cached_size_;
  475. ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
  476. friend void protobuf_AddDesc_client2world_5fexchange_2eproto();
  477. friend void protobuf_AssignDesc_client2world_5fexchange_2eproto();
  478. friend void protobuf_ShutdownFile_client2world_5fexchange_2eproto();
  479. void InitAsDefaultInstance();
  480. static packetc2w_req_exchange_count* default_instance_;
  481. };
  482. // -------------------------------------------------------------------
  483. class ExchangeCountInfo : public ::google::protobuf::Message {
  484. public:
  485. ExchangeCountInfo();
  486. virtual ~ExchangeCountInfo();
  487. ExchangeCountInfo(const ExchangeCountInfo& from);
  488. inline ExchangeCountInfo& operator=(const ExchangeCountInfo& from) {
  489. CopyFrom(from);
  490. return *this;
  491. }
  492. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  493. return _unknown_fields_;
  494. }
  495. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  496. return &_unknown_fields_;
  497. }
  498. static const ::google::protobuf::Descriptor* descriptor();
  499. static const ExchangeCountInfo& default_instance();
  500. void Swap(ExchangeCountInfo* other);
  501. // implements Message ----------------------------------------------
  502. ExchangeCountInfo* New() const;
  503. void CopyFrom(const ::google::protobuf::Message& from);
  504. void MergeFrom(const ::google::protobuf::Message& from);
  505. void CopyFrom(const ExchangeCountInfo& from);
  506. void MergeFrom(const ExchangeCountInfo& from);
  507. void Clear();
  508. bool IsInitialized() const;
  509. int ByteSize() const;
  510. bool MergePartialFromCodedStream(
  511. ::google::protobuf::io::CodedInputStream* input);
  512. void SerializeWithCachedSizes(
  513. ::google::protobuf::io::CodedOutputStream* output) const;
  514. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  515. int GetCachedSize() const { return _cached_size_; }
  516. private:
  517. void SharedCtor();
  518. void SharedDtor();
  519. void SetCachedSize(int size) const;
  520. public:
  521. ::google::protobuf::Metadata GetMetadata() const;
  522. // nested types ----------------------------------------------------
  523. // accessors -------------------------------------------------------
  524. // optional int32 chgId = 1;
  525. inline bool has_chgid() const;
  526. inline void clear_chgid();
  527. static const int kChgIdFieldNumber = 1;
  528. inline ::google::protobuf::int32 chgid() const;
  529. inline void set_chgid(::google::protobuf::int32 value);
  530. // optional int32 hasExchangeCount = 2;
  531. inline bool has_hasexchangecount() const;
  532. inline void clear_hasexchangecount();
  533. static const int kHasExchangeCountFieldNumber = 2;
  534. inline ::google::protobuf::int32 hasexchangecount() const;
  535. inline void set_hasexchangecount(::google::protobuf::int32 value);
  536. // @@protoc_insertion_point(class_scope:client2world_protocols.ExchangeCountInfo)
  537. private:
  538. inline void set_has_chgid();
  539. inline void clear_has_chgid();
  540. inline void set_has_hasexchangecount();
  541. inline void clear_has_hasexchangecount();
  542. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  543. ::google::protobuf::int32 chgid_;
  544. ::google::protobuf::int32 hasexchangecount_;
  545. mutable int _cached_size_;
  546. ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
  547. friend void protobuf_AddDesc_client2world_5fexchange_2eproto();
  548. friend void protobuf_AssignDesc_client2world_5fexchange_2eproto();
  549. friend void protobuf_ShutdownFile_client2world_5fexchange_2eproto();
  550. void InitAsDefaultInstance();
  551. static ExchangeCountInfo* default_instance_;
  552. };
  553. // -------------------------------------------------------------------
  554. class packetw2c_req_exchange_count_result : public ::google::protobuf::Message {
  555. public:
  556. packetw2c_req_exchange_count_result();
  557. virtual ~packetw2c_req_exchange_count_result();
  558. packetw2c_req_exchange_count_result(const packetw2c_req_exchange_count_result& from);
  559. inline packetw2c_req_exchange_count_result& operator=(const packetw2c_req_exchange_count_result& from) {
  560. CopyFrom(from);
  561. return *this;
  562. }
  563. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  564. return _unknown_fields_;
  565. }
  566. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  567. return &_unknown_fields_;
  568. }
  569. static const ::google::protobuf::Descriptor* descriptor();
  570. static const packetw2c_req_exchange_count_result& default_instance();
  571. void Swap(packetw2c_req_exchange_count_result* other);
  572. // implements Message ----------------------------------------------
  573. packetw2c_req_exchange_count_result* New() const;
  574. void CopyFrom(const ::google::protobuf::Message& from);
  575. void MergeFrom(const ::google::protobuf::Message& from);
  576. void CopyFrom(const packetw2c_req_exchange_count_result& from);
  577. void MergeFrom(const packetw2c_req_exchange_count_result& from);
  578. void Clear();
  579. bool IsInitialized() const;
  580. int ByteSize() const;
  581. bool MergePartialFromCodedStream(
  582. ::google::protobuf::io::CodedInputStream* input);
  583. void SerializeWithCachedSizes(
  584. ::google::protobuf::io::CodedOutputStream* output) const;
  585. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  586. int GetCachedSize() const { return _cached_size_; }
  587. private:
  588. void SharedCtor();
  589. void SharedDtor();
  590. void SetCachedSize(int size) const;
  591. public:
  592. ::google::protobuf::Metadata GetMetadata() const;
  593. // nested types ----------------------------------------------------
  594. // accessors -------------------------------------------------------
  595. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_exchange_count_result];
  596. inline bool has_packet_id() const;
  597. inline void clear_packet_id();
  598. static const int kPacketIdFieldNumber = 1;
  599. inline ::client2world_protocols::e_server_msg_type packet_id() const;
  600. inline void set_packet_id(::client2world_protocols::e_server_msg_type value);
  601. // repeated .client2world_protocols.ExchangeCountInfo G_InfoList = 2;
  602. inline int g_infolist_size() const;
  603. inline void clear_g_infolist();
  604. static const int kGInfoListFieldNumber = 2;
  605. inline const ::client2world_protocols::ExchangeCountInfo& g_infolist(int index) const;
  606. inline ::client2world_protocols::ExchangeCountInfo* mutable_g_infolist(int index);
  607. inline ::client2world_protocols::ExchangeCountInfo* add_g_infolist();
  608. inline const ::google::protobuf::RepeatedPtrField< ::client2world_protocols::ExchangeCountInfo >&
  609. g_infolist() const;
  610. inline ::google::protobuf::RepeatedPtrField< ::client2world_protocols::ExchangeCountInfo >*
  611. mutable_g_infolist();
  612. // repeated .client2world_protocols.ExchangeCountInfo P_InfoList = 3;
  613. inline int p_infolist_size() const;
  614. inline void clear_p_infolist();
  615. static const int kPInfoListFieldNumber = 3;
  616. inline const ::client2world_protocols::ExchangeCountInfo& p_infolist(int index) const;
  617. inline ::client2world_protocols::ExchangeCountInfo* mutable_p_infolist(int index);
  618. inline ::client2world_protocols::ExchangeCountInfo* add_p_infolist();
  619. inline const ::google::protobuf::RepeatedPtrField< ::client2world_protocols::ExchangeCountInfo >&
  620. p_infolist() const;
  621. inline ::google::protobuf::RepeatedPtrField< ::client2world_protocols::ExchangeCountInfo >*
  622. mutable_p_infolist();
  623. // @@protoc_insertion_point(class_scope:client2world_protocols.packetw2c_req_exchange_count_result)
  624. private:
  625. inline void set_has_packet_id();
  626. inline void clear_has_packet_id();
  627. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  628. ::google::protobuf::RepeatedPtrField< ::client2world_protocols::ExchangeCountInfo > g_infolist_;
  629. ::google::protobuf::RepeatedPtrField< ::client2world_protocols::ExchangeCountInfo > p_infolist_;
  630. int packet_id_;
  631. mutable int _cached_size_;
  632. ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
  633. friend void protobuf_AddDesc_client2world_5fexchange_2eproto();
  634. friend void protobuf_AssignDesc_client2world_5fexchange_2eproto();
  635. friend void protobuf_ShutdownFile_client2world_5fexchange_2eproto();
  636. void InitAsDefaultInstance();
  637. static packetw2c_req_exchange_count_result* default_instance_;
  638. };
  639. // ===================================================================
  640. // ===================================================================
  641. // packetc2w_exchange
  642. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_exchange];
  643. inline bool packetc2w_exchange::has_packet_id() const {
  644. return (_has_bits_[0] & 0x00000001u) != 0;
  645. }
  646. inline void packetc2w_exchange::set_has_packet_id() {
  647. _has_bits_[0] |= 0x00000001u;
  648. }
  649. inline void packetc2w_exchange::clear_has_packet_id() {
  650. _has_bits_[0] &= ~0x00000001u;
  651. }
  652. inline void packetc2w_exchange::clear_packet_id() {
  653. packet_id_ = 5022;
  654. clear_has_packet_id();
  655. }
  656. inline ::client2world_protocols::e_server_msg_type packetc2w_exchange::packet_id() const {
  657. return static_cast< ::client2world_protocols::e_server_msg_type >(packet_id_);
  658. }
  659. inline void packetc2w_exchange::set_packet_id(::client2world_protocols::e_server_msg_type value) {
  660. assert(::client2world_protocols::e_server_msg_type_IsValid(value));
  661. set_has_packet_id();
  662. packet_id_ = value;
  663. }
  664. // optional int32 exchangeId = 2;
  665. inline bool packetc2w_exchange::has_exchangeid() const {
  666. return (_has_bits_[0] & 0x00000002u) != 0;
  667. }
  668. inline void packetc2w_exchange::set_has_exchangeid() {
  669. _has_bits_[0] |= 0x00000002u;
  670. }
  671. inline void packetc2w_exchange::clear_has_exchangeid() {
  672. _has_bits_[0] &= ~0x00000002u;
  673. }
  674. inline void packetc2w_exchange::clear_exchangeid() {
  675. exchangeid_ = 0;
  676. clear_has_exchangeid();
  677. }
  678. inline ::google::protobuf::int32 packetc2w_exchange::exchangeid() const {
  679. return exchangeid_;
  680. }
  681. inline void packetc2w_exchange::set_exchangeid(::google::protobuf::int32 value) {
  682. set_has_exchangeid();
  683. exchangeid_ = value;
  684. }
  685. // optional string phone = 3;
  686. inline bool packetc2w_exchange::has_phone() const {
  687. return (_has_bits_[0] & 0x00000004u) != 0;
  688. }
  689. inline void packetc2w_exchange::set_has_phone() {
  690. _has_bits_[0] |= 0x00000004u;
  691. }
  692. inline void packetc2w_exchange::clear_has_phone() {
  693. _has_bits_[0] &= ~0x00000004u;
  694. }
  695. inline void packetc2w_exchange::clear_phone() {
  696. if (phone_ != &::google::protobuf::internal::kEmptyString) {
  697. phone_->clear();
  698. }
  699. clear_has_phone();
  700. }
  701. inline const ::std::string& packetc2w_exchange::phone() const {
  702. return *phone_;
  703. }
  704. inline void packetc2w_exchange::set_phone(const ::std::string& value) {
  705. set_has_phone();
  706. if (phone_ == &::google::protobuf::internal::kEmptyString) {
  707. phone_ = new ::std::string;
  708. }
  709. phone_->assign(value);
  710. }
  711. inline void packetc2w_exchange::set_phone(const char* value) {
  712. set_has_phone();
  713. if (phone_ == &::google::protobuf::internal::kEmptyString) {
  714. phone_ = new ::std::string;
  715. }
  716. phone_->assign(value);
  717. }
  718. inline void packetc2w_exchange::set_phone(const char* value, size_t size) {
  719. set_has_phone();
  720. if (phone_ == &::google::protobuf::internal::kEmptyString) {
  721. phone_ = new ::std::string;
  722. }
  723. phone_->assign(reinterpret_cast<const char*>(value), size);
  724. }
  725. inline ::std::string* packetc2w_exchange::mutable_phone() {
  726. set_has_phone();
  727. if (phone_ == &::google::protobuf::internal::kEmptyString) {
  728. phone_ = new ::std::string;
  729. }
  730. return phone_;
  731. }
  732. inline ::std::string* packetc2w_exchange::release_phone() {
  733. clear_has_phone();
  734. if (phone_ == &::google::protobuf::internal::kEmptyString) {
  735. return NULL;
  736. } else {
  737. ::std::string* temp = phone_;
  738. phone_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  739. return temp;
  740. }
  741. }
  742. inline void packetc2w_exchange::set_allocated_phone(::std::string* phone) {
  743. if (phone_ != &::google::protobuf::internal::kEmptyString) {
  744. delete phone_;
  745. }
  746. if (phone) {
  747. set_has_phone();
  748. phone_ = phone;
  749. } else {
  750. clear_has_phone();
  751. phone_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  752. }
  753. }
  754. // -------------------------------------------------------------------
  755. // packetw2c_exchange_result
  756. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_exchange_result];
  757. inline bool packetw2c_exchange_result::has_packet_id() const {
  758. return (_has_bits_[0] & 0x00000001u) != 0;
  759. }
  760. inline void packetw2c_exchange_result::set_has_packet_id() {
  761. _has_bits_[0] |= 0x00000001u;
  762. }
  763. inline void packetw2c_exchange_result::clear_has_packet_id() {
  764. _has_bits_[0] &= ~0x00000001u;
  765. }
  766. inline void packetw2c_exchange_result::clear_packet_id() {
  767. packet_id_ = 7524;
  768. clear_has_packet_id();
  769. }
  770. inline ::client2world_protocols::e_server_msg_type packetw2c_exchange_result::packet_id() const {
  771. return static_cast< ::client2world_protocols::e_server_msg_type >(packet_id_);
  772. }
  773. inline void packetw2c_exchange_result::set_packet_id(::client2world_protocols::e_server_msg_type value) {
  774. assert(::client2world_protocols::e_server_msg_type_IsValid(value));
  775. set_has_packet_id();
  776. packet_id_ = value;
  777. }
  778. // optional int32 exchangeId = 2;
  779. inline bool packetw2c_exchange_result::has_exchangeid() const {
  780. return (_has_bits_[0] & 0x00000002u) != 0;
  781. }
  782. inline void packetw2c_exchange_result::set_has_exchangeid() {
  783. _has_bits_[0] |= 0x00000002u;
  784. }
  785. inline void packetw2c_exchange_result::clear_has_exchangeid() {
  786. _has_bits_[0] &= ~0x00000002u;
  787. }
  788. inline void packetw2c_exchange_result::clear_exchangeid() {
  789. exchangeid_ = 0;
  790. clear_has_exchangeid();
  791. }
  792. inline ::google::protobuf::int32 packetw2c_exchange_result::exchangeid() const {
  793. return exchangeid_;
  794. }
  795. inline void packetw2c_exchange_result::set_exchangeid(::google::protobuf::int32 value) {
  796. set_has_exchangeid();
  797. exchangeid_ = value;
  798. }
  799. // optional int32 result = 3;
  800. inline bool packetw2c_exchange_result::has_result() const {
  801. return (_has_bits_[0] & 0x00000004u) != 0;
  802. }
  803. inline void packetw2c_exchange_result::set_has_result() {
  804. _has_bits_[0] |= 0x00000004u;
  805. }
  806. inline void packetw2c_exchange_result::clear_has_result() {
  807. _has_bits_[0] &= ~0x00000004u;
  808. }
  809. inline void packetw2c_exchange_result::clear_result() {
  810. result_ = 0;
  811. clear_has_result();
  812. }
  813. inline ::google::protobuf::int32 packetw2c_exchange_result::result() const {
  814. return result_;
  815. }
  816. inline void packetw2c_exchange_result::set_result(::google::protobuf::int32 value) {
  817. set_has_result();
  818. result_ = value;
  819. }
  820. // -------------------------------------------------------------------
  821. // packetc2w_get_exchange_state
  822. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_get_exchange_state];
  823. inline bool packetc2w_get_exchange_state::has_packet_id() const {
  824. return (_has_bits_[0] & 0x00000001u) != 0;
  825. }
  826. inline void packetc2w_get_exchange_state::set_has_packet_id() {
  827. _has_bits_[0] |= 0x00000001u;
  828. }
  829. inline void packetc2w_get_exchange_state::clear_has_packet_id() {
  830. _has_bits_[0] &= ~0x00000001u;
  831. }
  832. inline void packetc2w_get_exchange_state::clear_packet_id() {
  833. packet_id_ = 5047;
  834. clear_has_packet_id();
  835. }
  836. inline ::client2world_protocols::e_server_msg_type packetc2w_get_exchange_state::packet_id() const {
  837. return static_cast< ::client2world_protocols::e_server_msg_type >(packet_id_);
  838. }
  839. inline void packetc2w_get_exchange_state::set_packet_id(::client2world_protocols::e_server_msg_type value) {
  840. assert(::client2world_protocols::e_server_msg_type_IsValid(value));
  841. set_has_packet_id();
  842. packet_id_ = value;
  843. }
  844. // -------------------------------------------------------------------
  845. // ExchangeInfo
  846. // optional int32 time = 1;
  847. inline bool ExchangeInfo::has_time() const {
  848. return (_has_bits_[0] & 0x00000001u) != 0;
  849. }
  850. inline void ExchangeInfo::set_has_time() {
  851. _has_bits_[0] |= 0x00000001u;
  852. }
  853. inline void ExchangeInfo::clear_has_time() {
  854. _has_bits_[0] &= ~0x00000001u;
  855. }
  856. inline void ExchangeInfo::clear_time() {
  857. time_ = 0;
  858. clear_has_time();
  859. }
  860. inline ::google::protobuf::int32 ExchangeInfo::time() const {
  861. return time_;
  862. }
  863. inline void ExchangeInfo::set_time(::google::protobuf::int32 value) {
  864. set_has_time();
  865. time_ = value;
  866. }
  867. // optional int32 chgId = 2;
  868. inline bool ExchangeInfo::has_chgid() const {
  869. return (_has_bits_[0] & 0x00000002u) != 0;
  870. }
  871. inline void ExchangeInfo::set_has_chgid() {
  872. _has_bits_[0] |= 0x00000002u;
  873. }
  874. inline void ExchangeInfo::clear_has_chgid() {
  875. _has_bits_[0] &= ~0x00000002u;
  876. }
  877. inline void ExchangeInfo::clear_chgid() {
  878. chgid_ = 0;
  879. clear_has_chgid();
  880. }
  881. inline ::google::protobuf::int32 ExchangeInfo::chgid() const {
  882. return chgid_;
  883. }
  884. inline void ExchangeInfo::set_chgid(::google::protobuf::int32 value) {
  885. set_has_chgid();
  886. chgid_ = value;
  887. }
  888. // optional int32 state = 3;
  889. inline bool ExchangeInfo::has_state() const {
  890. return (_has_bits_[0] & 0x00000004u) != 0;
  891. }
  892. inline void ExchangeInfo::set_has_state() {
  893. _has_bits_[0] |= 0x00000004u;
  894. }
  895. inline void ExchangeInfo::clear_has_state() {
  896. _has_bits_[0] &= ~0x00000004u;
  897. }
  898. inline void ExchangeInfo::clear_state() {
  899. state_ = 0;
  900. clear_has_state();
  901. }
  902. inline ::google::protobuf::int32 ExchangeInfo::state() const {
  903. return state_;
  904. }
  905. inline void ExchangeInfo::set_state(::google::protobuf::int32 value) {
  906. set_has_state();
  907. state_ = value;
  908. }
  909. // -------------------------------------------------------------------
  910. // packetw2c_get_exchange_state_result
  911. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_get_exchange_state_result];
  912. inline bool packetw2c_get_exchange_state_result::has_packet_id() const {
  913. return (_has_bits_[0] & 0x00000001u) != 0;
  914. }
  915. inline void packetw2c_get_exchange_state_result::set_has_packet_id() {
  916. _has_bits_[0] |= 0x00000001u;
  917. }
  918. inline void packetw2c_get_exchange_state_result::clear_has_packet_id() {
  919. _has_bits_[0] &= ~0x00000001u;
  920. }
  921. inline void packetw2c_get_exchange_state_result::clear_packet_id() {
  922. packet_id_ = 7551;
  923. clear_has_packet_id();
  924. }
  925. inline ::client2world_protocols::e_server_msg_type packetw2c_get_exchange_state_result::packet_id() const {
  926. return static_cast< ::client2world_protocols::e_server_msg_type >(packet_id_);
  927. }
  928. inline void packetw2c_get_exchange_state_result::set_packet_id(::client2world_protocols::e_server_msg_type value) {
  929. assert(::client2world_protocols::e_server_msg_type_IsValid(value));
  930. set_has_packet_id();
  931. packet_id_ = value;
  932. }
  933. // repeated .client2world_protocols.ExchangeInfo infoList = 2;
  934. inline int packetw2c_get_exchange_state_result::infolist_size() const {
  935. return infolist_.size();
  936. }
  937. inline void packetw2c_get_exchange_state_result::clear_infolist() {
  938. infolist_.Clear();
  939. }
  940. inline const ::client2world_protocols::ExchangeInfo& packetw2c_get_exchange_state_result::infolist(int index) const {
  941. return infolist_.Get(index);
  942. }
  943. inline ::client2world_protocols::ExchangeInfo* packetw2c_get_exchange_state_result::mutable_infolist(int index) {
  944. return infolist_.Mutable(index);
  945. }
  946. inline ::client2world_protocols::ExchangeInfo* packetw2c_get_exchange_state_result::add_infolist() {
  947. return infolist_.Add();
  948. }
  949. inline const ::google::protobuf::RepeatedPtrField< ::client2world_protocols::ExchangeInfo >&
  950. packetw2c_get_exchange_state_result::infolist() const {
  951. return infolist_;
  952. }
  953. inline ::google::protobuf::RepeatedPtrField< ::client2world_protocols::ExchangeInfo >*
  954. packetw2c_get_exchange_state_result::mutable_infolist() {
  955. return &infolist_;
  956. }
  957. // -------------------------------------------------------------------
  958. // packetc2w_req_exchange_count
  959. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_exchange_count];
  960. inline bool packetc2w_req_exchange_count::has_packet_id() const {
  961. return (_has_bits_[0] & 0x00000001u) != 0;
  962. }
  963. inline void packetc2w_req_exchange_count::set_has_packet_id() {
  964. _has_bits_[0] |= 0x00000001u;
  965. }
  966. inline void packetc2w_req_exchange_count::clear_has_packet_id() {
  967. _has_bits_[0] &= ~0x00000001u;
  968. }
  969. inline void packetc2w_req_exchange_count::clear_packet_id() {
  970. packet_id_ = 5079;
  971. clear_has_packet_id();
  972. }
  973. inline ::client2world_protocols::e_server_msg_type packetc2w_req_exchange_count::packet_id() const {
  974. return static_cast< ::client2world_protocols::e_server_msg_type >(packet_id_);
  975. }
  976. inline void packetc2w_req_exchange_count::set_packet_id(::client2world_protocols::e_server_msg_type value) {
  977. assert(::client2world_protocols::e_server_msg_type_IsValid(value));
  978. set_has_packet_id();
  979. packet_id_ = value;
  980. }
  981. // -------------------------------------------------------------------
  982. // ExchangeCountInfo
  983. // optional int32 chgId = 1;
  984. inline bool ExchangeCountInfo::has_chgid() const {
  985. return (_has_bits_[0] & 0x00000001u) != 0;
  986. }
  987. inline void ExchangeCountInfo::set_has_chgid() {
  988. _has_bits_[0] |= 0x00000001u;
  989. }
  990. inline void ExchangeCountInfo::clear_has_chgid() {
  991. _has_bits_[0] &= ~0x00000001u;
  992. }
  993. inline void ExchangeCountInfo::clear_chgid() {
  994. chgid_ = 0;
  995. clear_has_chgid();
  996. }
  997. inline ::google::protobuf::int32 ExchangeCountInfo::chgid() const {
  998. return chgid_;
  999. }
  1000. inline void ExchangeCountInfo::set_chgid(::google::protobuf::int32 value) {
  1001. set_has_chgid();
  1002. chgid_ = value;
  1003. }
  1004. // optional int32 hasExchangeCount = 2;
  1005. inline bool ExchangeCountInfo::has_hasexchangecount() const {
  1006. return (_has_bits_[0] & 0x00000002u) != 0;
  1007. }
  1008. inline void ExchangeCountInfo::set_has_hasexchangecount() {
  1009. _has_bits_[0] |= 0x00000002u;
  1010. }
  1011. inline void ExchangeCountInfo::clear_has_hasexchangecount() {
  1012. _has_bits_[0] &= ~0x00000002u;
  1013. }
  1014. inline void ExchangeCountInfo::clear_hasexchangecount() {
  1015. hasexchangecount_ = 0;
  1016. clear_has_hasexchangecount();
  1017. }
  1018. inline ::google::protobuf::int32 ExchangeCountInfo::hasexchangecount() const {
  1019. return hasexchangecount_;
  1020. }
  1021. inline void ExchangeCountInfo::set_hasexchangecount(::google::protobuf::int32 value) {
  1022. set_has_hasexchangecount();
  1023. hasexchangecount_ = value;
  1024. }
  1025. // -------------------------------------------------------------------
  1026. // packetw2c_req_exchange_count_result
  1027. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_exchange_count_result];
  1028. inline bool packetw2c_req_exchange_count_result::has_packet_id() const {
  1029. return (_has_bits_[0] & 0x00000001u) != 0;
  1030. }
  1031. inline void packetw2c_req_exchange_count_result::set_has_packet_id() {
  1032. _has_bits_[0] |= 0x00000001u;
  1033. }
  1034. inline void packetw2c_req_exchange_count_result::clear_has_packet_id() {
  1035. _has_bits_[0] &= ~0x00000001u;
  1036. }
  1037. inline void packetw2c_req_exchange_count_result::clear_packet_id() {
  1038. packet_id_ = 7585;
  1039. clear_has_packet_id();
  1040. }
  1041. inline ::client2world_protocols::e_server_msg_type packetw2c_req_exchange_count_result::packet_id() const {
  1042. return static_cast< ::client2world_protocols::e_server_msg_type >(packet_id_);
  1043. }
  1044. inline void packetw2c_req_exchange_count_result::set_packet_id(::client2world_protocols::e_server_msg_type value) {
  1045. assert(::client2world_protocols::e_server_msg_type_IsValid(value));
  1046. set_has_packet_id();
  1047. packet_id_ = value;
  1048. }
  1049. // repeated .client2world_protocols.ExchangeCountInfo G_InfoList = 2;
  1050. inline int packetw2c_req_exchange_count_result::g_infolist_size() const {
  1051. return g_infolist_.size();
  1052. }
  1053. inline void packetw2c_req_exchange_count_result::clear_g_infolist() {
  1054. g_infolist_.Clear();
  1055. }
  1056. inline const ::client2world_protocols::ExchangeCountInfo& packetw2c_req_exchange_count_result::g_infolist(int index) const {
  1057. return g_infolist_.Get(index);
  1058. }
  1059. inline ::client2world_protocols::ExchangeCountInfo* packetw2c_req_exchange_count_result::mutable_g_infolist(int index) {
  1060. return g_infolist_.Mutable(index);
  1061. }
  1062. inline ::client2world_protocols::ExchangeCountInfo* packetw2c_req_exchange_count_result::add_g_infolist() {
  1063. return g_infolist_.Add();
  1064. }
  1065. inline const ::google::protobuf::RepeatedPtrField< ::client2world_protocols::ExchangeCountInfo >&
  1066. packetw2c_req_exchange_count_result::g_infolist() const {
  1067. return g_infolist_;
  1068. }
  1069. inline ::google::protobuf::RepeatedPtrField< ::client2world_protocols::ExchangeCountInfo >*
  1070. packetw2c_req_exchange_count_result::mutable_g_infolist() {
  1071. return &g_infolist_;
  1072. }
  1073. // repeated .client2world_protocols.ExchangeCountInfo P_InfoList = 3;
  1074. inline int packetw2c_req_exchange_count_result::p_infolist_size() const {
  1075. return p_infolist_.size();
  1076. }
  1077. inline void packetw2c_req_exchange_count_result::clear_p_infolist() {
  1078. p_infolist_.Clear();
  1079. }
  1080. inline const ::client2world_protocols::ExchangeCountInfo& packetw2c_req_exchange_count_result::p_infolist(int index) const {
  1081. return p_infolist_.Get(index);
  1082. }
  1083. inline ::client2world_protocols::ExchangeCountInfo* packetw2c_req_exchange_count_result::mutable_p_infolist(int index) {
  1084. return p_infolist_.Mutable(index);
  1085. }
  1086. inline ::client2world_protocols::ExchangeCountInfo* packetw2c_req_exchange_count_result::add_p_infolist() {
  1087. return p_infolist_.Add();
  1088. }
  1089. inline const ::google::protobuf::RepeatedPtrField< ::client2world_protocols::ExchangeCountInfo >&
  1090. packetw2c_req_exchange_count_result::p_infolist() const {
  1091. return p_infolist_;
  1092. }
  1093. inline ::google::protobuf::RepeatedPtrField< ::client2world_protocols::ExchangeCountInfo >*
  1094. packetw2c_req_exchange_count_result::mutable_p_infolist() {
  1095. return &p_infolist_;
  1096. }
  1097. // @@protoc_insertion_point(namespace_scope)
  1098. } // namespace client2world_protocols
  1099. #ifndef SWIG
  1100. namespace google {
  1101. namespace protobuf {
  1102. } // namespace google
  1103. } // namespace protobuf
  1104. #endif // SWIG
  1105. // @@protoc_insertion_point(global_scope)
  1106. #endif // PROTOBUF_client2world_5fexchange_2eproto__INCLUDED