client2world_benefits.pb.cc 47 KB

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