client2world_qq_platform.pb.cc 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: client2world_qq_platform.proto
  3. #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
  4. #include "client2world_qq_platform.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_receive_blue_diamond_reward_descriptor_ = NULL;
  18. const ::google::protobuf::internal::GeneratedMessageReflection*
  19. packetc2w_receive_blue_diamond_reward_reflection_ = NULL;
  20. const ::google::protobuf::Descriptor* packetw2c_receive_blue_diamond_reward_result_descriptor_ = NULL;
  21. const ::google::protobuf::internal::GeneratedMessageReflection*
  22. packetw2c_receive_blue_diamond_reward_result_reflection_ = NULL;
  23. } // namespace
  24. void protobuf_AssignDesc_client2world_5fqq_5fplatform_2eproto() {
  25. protobuf_AddDesc_client2world_5fqq_5fplatform_2eproto();
  26. const ::google::protobuf::FileDescriptor* file =
  27. ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
  28. "client2world_qq_platform.proto");
  29. GOOGLE_CHECK(file != NULL);
  30. packetc2w_receive_blue_diamond_reward_descriptor_ = file->message_type(0);
  31. static const int packetc2w_receive_blue_diamond_reward_offsets_[2] = {
  32. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_receive_blue_diamond_reward, packet_id_),
  33. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_receive_blue_diamond_reward, index_),
  34. };
  35. packetc2w_receive_blue_diamond_reward_reflection_ =
  36. new ::google::protobuf::internal::GeneratedMessageReflection(
  37. packetc2w_receive_blue_diamond_reward_descriptor_,
  38. packetc2w_receive_blue_diamond_reward::default_instance_,
  39. packetc2w_receive_blue_diamond_reward_offsets_,
  40. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_receive_blue_diamond_reward, _has_bits_[0]),
  41. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_receive_blue_diamond_reward, _unknown_fields_),
  42. -1,
  43. ::google::protobuf::DescriptorPool::generated_pool(),
  44. ::google::protobuf::MessageFactory::generated_factory(),
  45. sizeof(packetc2w_receive_blue_diamond_reward));
  46. packetw2c_receive_blue_diamond_reward_result_descriptor_ = file->message_type(1);
  47. static const int packetw2c_receive_blue_diamond_reward_result_offsets_[3] = {
  48. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_blue_diamond_reward_result, packet_id_),
  49. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_blue_diamond_reward_result, result_),
  50. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_blue_diamond_reward_result, index_),
  51. };
  52. packetw2c_receive_blue_diamond_reward_result_reflection_ =
  53. new ::google::protobuf::internal::GeneratedMessageReflection(
  54. packetw2c_receive_blue_diamond_reward_result_descriptor_,
  55. packetw2c_receive_blue_diamond_reward_result::default_instance_,
  56. packetw2c_receive_blue_diamond_reward_result_offsets_,
  57. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_blue_diamond_reward_result, _has_bits_[0]),
  58. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_blue_diamond_reward_result, _unknown_fields_),
  59. -1,
  60. ::google::protobuf::DescriptorPool::generated_pool(),
  61. ::google::protobuf::MessageFactory::generated_factory(),
  62. sizeof(packetw2c_receive_blue_diamond_reward_result));
  63. }
  64. namespace {
  65. GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
  66. inline void protobuf_AssignDescriptorsOnce() {
  67. ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
  68. &protobuf_AssignDesc_client2world_5fqq_5fplatform_2eproto);
  69. }
  70. void protobuf_RegisterTypes(const ::std::string&) {
  71. protobuf_AssignDescriptorsOnce();
  72. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  73. packetc2w_receive_blue_diamond_reward_descriptor_, &packetc2w_receive_blue_diamond_reward::default_instance());
  74. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  75. packetw2c_receive_blue_diamond_reward_result_descriptor_, &packetw2c_receive_blue_diamond_reward_result::default_instance());
  76. }
  77. } // namespace
  78. void protobuf_ShutdownFile_client2world_5fqq_5fplatform_2eproto() {
  79. delete packetc2w_receive_blue_diamond_reward::default_instance_;
  80. delete packetc2w_receive_blue_diamond_reward_reflection_;
  81. delete packetw2c_receive_blue_diamond_reward_result::default_instance_;
  82. delete packetw2c_receive_blue_diamond_reward_result_reflection_;
  83. }
  84. void protobuf_AddDesc_client2world_5fqq_5fplatform_2eproto() {
  85. static bool already_here = false;
  86. if (already_here) return;
  87. already_here = true;
  88. GOOGLE_PROTOBUF_VERIFY_VERSION;
  89. ::client2world_protocols::protobuf_AddDesc_client2world_5fmsg_5ftype_2eproto();
  90. ::msg_type_def::protobuf_AddDesc_msg_5ftype_5fdef_2eproto();
  91. ::msg_info_def::protobuf_AddDesc_msg_5finfo_5fdef_2eproto();
  92. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  93. "\n\036client2world_qq_platform.proto\022\026client"
  94. "2world_protocols\032\033client2world_msg_type."
  95. "proto\032\022msg_type_def.proto\032\022msg_info_def."
  96. "proto\"\233\001\n%packetc2w_receive_blue_diamond"
  97. "_reward\022c\n\tpacket_id\030\001 \001(\0162).client2worl"
  98. "d_protocols.e_server_msg_type:%e_mst_c2w"
  99. "_receive_blue_diamond_reward\022\r\n\005index\030\002 "
  100. "\001(\005\"\271\001\n,packetw2c_receive_blue_diamond_r"
  101. "eward_result\022j\n\tpacket_id\030\001 \001(\0162).client"
  102. "2world_protocols.e_server_msg_type:,e_ms"
  103. "t_w2c_receive_blue_diamond_reward_result"
  104. "\022\016\n\006result\030\002 \001(\005\022\r\n\005index\030\003 \001(\005", 471);
  105. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  106. "client2world_qq_platform.proto", &protobuf_RegisterTypes);
  107. packetc2w_receive_blue_diamond_reward::default_instance_ = new packetc2w_receive_blue_diamond_reward();
  108. packetw2c_receive_blue_diamond_reward_result::default_instance_ = new packetw2c_receive_blue_diamond_reward_result();
  109. packetc2w_receive_blue_diamond_reward::default_instance_->InitAsDefaultInstance();
  110. packetw2c_receive_blue_diamond_reward_result::default_instance_->InitAsDefaultInstance();
  111. ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_client2world_5fqq_5fplatform_2eproto);
  112. }
  113. // Force AddDescriptors() to be called at static initialization time.
  114. struct StaticDescriptorInitializer_client2world_5fqq_5fplatform_2eproto {
  115. StaticDescriptorInitializer_client2world_5fqq_5fplatform_2eproto() {
  116. protobuf_AddDesc_client2world_5fqq_5fplatform_2eproto();
  117. }
  118. } static_descriptor_initializer_client2world_5fqq_5fplatform_2eproto_;
  119. // ===================================================================
  120. #ifndef _MSC_VER
  121. const int packetc2w_receive_blue_diamond_reward::kPacketIdFieldNumber;
  122. const int packetc2w_receive_blue_diamond_reward::kIndexFieldNumber;
  123. #endif // !_MSC_VER
  124. packetc2w_receive_blue_diamond_reward::packetc2w_receive_blue_diamond_reward()
  125. : ::google::protobuf::Message() {
  126. SharedCtor();
  127. }
  128. void packetc2w_receive_blue_diamond_reward::InitAsDefaultInstance() {
  129. }
  130. packetc2w_receive_blue_diamond_reward::packetc2w_receive_blue_diamond_reward(const packetc2w_receive_blue_diamond_reward& from)
  131. : ::google::protobuf::Message() {
  132. SharedCtor();
  133. MergeFrom(from);
  134. }
  135. void packetc2w_receive_blue_diamond_reward::SharedCtor() {
  136. _cached_size_ = 0;
  137. packet_id_ = 5056;
  138. index_ = 0;
  139. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  140. }
  141. packetc2w_receive_blue_diamond_reward::~packetc2w_receive_blue_diamond_reward() {
  142. SharedDtor();
  143. }
  144. void packetc2w_receive_blue_diamond_reward::SharedDtor() {
  145. if (this != default_instance_) {
  146. }
  147. }
  148. void packetc2w_receive_blue_diamond_reward::SetCachedSize(int size) const {
  149. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  150. _cached_size_ = size;
  151. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  152. }
  153. const ::google::protobuf::Descriptor* packetc2w_receive_blue_diamond_reward::descriptor() {
  154. protobuf_AssignDescriptorsOnce();
  155. return packetc2w_receive_blue_diamond_reward_descriptor_;
  156. }
  157. const packetc2w_receive_blue_diamond_reward& packetc2w_receive_blue_diamond_reward::default_instance() {
  158. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fqq_5fplatform_2eproto();
  159. return *default_instance_;
  160. }
  161. packetc2w_receive_blue_diamond_reward* packetc2w_receive_blue_diamond_reward::default_instance_ = NULL;
  162. packetc2w_receive_blue_diamond_reward* packetc2w_receive_blue_diamond_reward::New() const {
  163. return new packetc2w_receive_blue_diamond_reward;
  164. }
  165. void packetc2w_receive_blue_diamond_reward::Clear() {
  166. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  167. packet_id_ = 5056;
  168. index_ = 0;
  169. }
  170. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  171. mutable_unknown_fields()->Clear();
  172. }
  173. bool packetc2w_receive_blue_diamond_reward::MergePartialFromCodedStream(
  174. ::google::protobuf::io::CodedInputStream* input) {
  175. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  176. ::google::protobuf::uint32 tag;
  177. while ((tag = input->ReadTag()) != 0) {
  178. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  179. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_receive_blue_diamond_reward];
  180. case 1: {
  181. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  182. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  183. int value;
  184. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  185. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  186. input, &value)));
  187. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  188. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  189. } else {
  190. mutable_unknown_fields()->AddVarint(1, value);
  191. }
  192. } else {
  193. goto handle_uninterpreted;
  194. }
  195. if (input->ExpectTag(16)) goto parse_index;
  196. break;
  197. }
  198. // optional int32 index = 2;
  199. case 2: {
  200. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  201. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  202. parse_index:
  203. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  204. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  205. input, &index_)));
  206. set_has_index();
  207. } else {
  208. goto handle_uninterpreted;
  209. }
  210. if (input->ExpectAtEnd()) return true;
  211. break;
  212. }
  213. default: {
  214. handle_uninterpreted:
  215. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  216. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  217. return true;
  218. }
  219. DO_(::google::protobuf::internal::WireFormat::SkipField(
  220. input, tag, mutable_unknown_fields()));
  221. break;
  222. }
  223. }
  224. }
  225. return true;
  226. #undef DO_
  227. }
  228. void packetc2w_receive_blue_diamond_reward::SerializeWithCachedSizes(
  229. ::google::protobuf::io::CodedOutputStream* output) const {
  230. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_receive_blue_diamond_reward];
  231. if (has_packet_id()) {
  232. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  233. 1, this->packet_id(), output);
  234. }
  235. // optional int32 index = 2;
  236. if (has_index()) {
  237. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->index(), output);
  238. }
  239. if (!unknown_fields().empty()) {
  240. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  241. unknown_fields(), output);
  242. }
  243. }
  244. ::google::protobuf::uint8* packetc2w_receive_blue_diamond_reward::SerializeWithCachedSizesToArray(
  245. ::google::protobuf::uint8* target) const {
  246. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_receive_blue_diamond_reward];
  247. if (has_packet_id()) {
  248. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  249. 1, this->packet_id(), target);
  250. }
  251. // optional int32 index = 2;
  252. if (has_index()) {
  253. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->index(), target);
  254. }
  255. if (!unknown_fields().empty()) {
  256. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  257. unknown_fields(), target);
  258. }
  259. return target;
  260. }
  261. int packetc2w_receive_blue_diamond_reward::ByteSize() const {
  262. int total_size = 0;
  263. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  264. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_receive_blue_diamond_reward];
  265. if (has_packet_id()) {
  266. total_size += 1 +
  267. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  268. }
  269. // optional int32 index = 2;
  270. if (has_index()) {
  271. total_size += 1 +
  272. ::google::protobuf::internal::WireFormatLite::Int32Size(
  273. this->index());
  274. }
  275. }
  276. if (!unknown_fields().empty()) {
  277. total_size +=
  278. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  279. unknown_fields());
  280. }
  281. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  282. _cached_size_ = total_size;
  283. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  284. return total_size;
  285. }
  286. void packetc2w_receive_blue_diamond_reward::MergeFrom(const ::google::protobuf::Message& from) {
  287. GOOGLE_CHECK_NE(&from, this);
  288. const packetc2w_receive_blue_diamond_reward* source =
  289. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2w_receive_blue_diamond_reward*>(
  290. &from);
  291. if (source == NULL) {
  292. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  293. } else {
  294. MergeFrom(*source);
  295. }
  296. }
  297. void packetc2w_receive_blue_diamond_reward::MergeFrom(const packetc2w_receive_blue_diamond_reward& from) {
  298. GOOGLE_CHECK_NE(&from, this);
  299. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  300. if (from.has_packet_id()) {
  301. set_packet_id(from.packet_id());
  302. }
  303. if (from.has_index()) {
  304. set_index(from.index());
  305. }
  306. }
  307. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  308. }
  309. void packetc2w_receive_blue_diamond_reward::CopyFrom(const ::google::protobuf::Message& from) {
  310. if (&from == this) return;
  311. Clear();
  312. MergeFrom(from);
  313. }
  314. void packetc2w_receive_blue_diamond_reward::CopyFrom(const packetc2w_receive_blue_diamond_reward& from) {
  315. if (&from == this) return;
  316. Clear();
  317. MergeFrom(from);
  318. }
  319. bool packetc2w_receive_blue_diamond_reward::IsInitialized() const {
  320. return true;
  321. }
  322. void packetc2w_receive_blue_diamond_reward::Swap(packetc2w_receive_blue_diamond_reward* other) {
  323. if (other != this) {
  324. std::swap(packet_id_, other->packet_id_);
  325. std::swap(index_, other->index_);
  326. std::swap(_has_bits_[0], other->_has_bits_[0]);
  327. _unknown_fields_.Swap(&other->_unknown_fields_);
  328. std::swap(_cached_size_, other->_cached_size_);
  329. }
  330. }
  331. ::google::protobuf::Metadata packetc2w_receive_blue_diamond_reward::GetMetadata() const {
  332. protobuf_AssignDescriptorsOnce();
  333. ::google::protobuf::Metadata metadata;
  334. metadata.descriptor = packetc2w_receive_blue_diamond_reward_descriptor_;
  335. metadata.reflection = packetc2w_receive_blue_diamond_reward_reflection_;
  336. return metadata;
  337. }
  338. // ===================================================================
  339. #ifndef _MSC_VER
  340. const int packetw2c_receive_blue_diamond_reward_result::kPacketIdFieldNumber;
  341. const int packetw2c_receive_blue_diamond_reward_result::kResultFieldNumber;
  342. const int packetw2c_receive_blue_diamond_reward_result::kIndexFieldNumber;
  343. #endif // !_MSC_VER
  344. packetw2c_receive_blue_diamond_reward_result::packetw2c_receive_blue_diamond_reward_result()
  345. : ::google::protobuf::Message() {
  346. SharedCtor();
  347. }
  348. void packetw2c_receive_blue_diamond_reward_result::InitAsDefaultInstance() {
  349. }
  350. packetw2c_receive_blue_diamond_reward_result::packetw2c_receive_blue_diamond_reward_result(const packetw2c_receive_blue_diamond_reward_result& from)
  351. : ::google::protobuf::Message() {
  352. SharedCtor();
  353. MergeFrom(from);
  354. }
  355. void packetw2c_receive_blue_diamond_reward_result::SharedCtor() {
  356. _cached_size_ = 0;
  357. packet_id_ = 7559;
  358. result_ = 0;
  359. index_ = 0;
  360. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  361. }
  362. packetw2c_receive_blue_diamond_reward_result::~packetw2c_receive_blue_diamond_reward_result() {
  363. SharedDtor();
  364. }
  365. void packetw2c_receive_blue_diamond_reward_result::SharedDtor() {
  366. if (this != default_instance_) {
  367. }
  368. }
  369. void packetw2c_receive_blue_diamond_reward_result::SetCachedSize(int size) const {
  370. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  371. _cached_size_ = size;
  372. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  373. }
  374. const ::google::protobuf::Descriptor* packetw2c_receive_blue_diamond_reward_result::descriptor() {
  375. protobuf_AssignDescriptorsOnce();
  376. return packetw2c_receive_blue_diamond_reward_result_descriptor_;
  377. }
  378. const packetw2c_receive_blue_diamond_reward_result& packetw2c_receive_blue_diamond_reward_result::default_instance() {
  379. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fqq_5fplatform_2eproto();
  380. return *default_instance_;
  381. }
  382. packetw2c_receive_blue_diamond_reward_result* packetw2c_receive_blue_diamond_reward_result::default_instance_ = NULL;
  383. packetw2c_receive_blue_diamond_reward_result* packetw2c_receive_blue_diamond_reward_result::New() const {
  384. return new packetw2c_receive_blue_diamond_reward_result;
  385. }
  386. void packetw2c_receive_blue_diamond_reward_result::Clear() {
  387. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  388. packet_id_ = 7559;
  389. result_ = 0;
  390. index_ = 0;
  391. }
  392. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  393. mutable_unknown_fields()->Clear();
  394. }
  395. bool packetw2c_receive_blue_diamond_reward_result::MergePartialFromCodedStream(
  396. ::google::protobuf::io::CodedInputStream* input) {
  397. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  398. ::google::protobuf::uint32 tag;
  399. while ((tag = input->ReadTag()) != 0) {
  400. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  401. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_receive_blue_diamond_reward_result];
  402. case 1: {
  403. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  404. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  405. int value;
  406. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  407. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  408. input, &value)));
  409. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  410. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  411. } else {
  412. mutable_unknown_fields()->AddVarint(1, value);
  413. }
  414. } else {
  415. goto handle_uninterpreted;
  416. }
  417. if (input->ExpectTag(16)) goto parse_result;
  418. break;
  419. }
  420. // optional int32 result = 2;
  421. case 2: {
  422. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  423. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  424. parse_result:
  425. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  426. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  427. input, &result_)));
  428. set_has_result();
  429. } else {
  430. goto handle_uninterpreted;
  431. }
  432. if (input->ExpectTag(24)) goto parse_index;
  433. break;
  434. }
  435. // optional int32 index = 3;
  436. case 3: {
  437. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  438. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  439. parse_index:
  440. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  441. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  442. input, &index_)));
  443. set_has_index();
  444. } else {
  445. goto handle_uninterpreted;
  446. }
  447. if (input->ExpectAtEnd()) return true;
  448. break;
  449. }
  450. default: {
  451. handle_uninterpreted:
  452. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  453. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  454. return true;
  455. }
  456. DO_(::google::protobuf::internal::WireFormat::SkipField(
  457. input, tag, mutable_unknown_fields()));
  458. break;
  459. }
  460. }
  461. }
  462. return true;
  463. #undef DO_
  464. }
  465. void packetw2c_receive_blue_diamond_reward_result::SerializeWithCachedSizes(
  466. ::google::protobuf::io::CodedOutputStream* output) const {
  467. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_receive_blue_diamond_reward_result];
  468. if (has_packet_id()) {
  469. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  470. 1, this->packet_id(), output);
  471. }
  472. // optional int32 result = 2;
  473. if (has_result()) {
  474. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->result(), output);
  475. }
  476. // optional int32 index = 3;
  477. if (has_index()) {
  478. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->index(), output);
  479. }
  480. if (!unknown_fields().empty()) {
  481. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  482. unknown_fields(), output);
  483. }
  484. }
  485. ::google::protobuf::uint8* packetw2c_receive_blue_diamond_reward_result::SerializeWithCachedSizesToArray(
  486. ::google::protobuf::uint8* target) const {
  487. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_receive_blue_diamond_reward_result];
  488. if (has_packet_id()) {
  489. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  490. 1, this->packet_id(), target);
  491. }
  492. // optional int32 result = 2;
  493. if (has_result()) {
  494. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->result(), target);
  495. }
  496. // optional int32 index = 3;
  497. if (has_index()) {
  498. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->index(), target);
  499. }
  500. if (!unknown_fields().empty()) {
  501. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  502. unknown_fields(), target);
  503. }
  504. return target;
  505. }
  506. int packetw2c_receive_blue_diamond_reward_result::ByteSize() const {
  507. int total_size = 0;
  508. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  509. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_receive_blue_diamond_reward_result];
  510. if (has_packet_id()) {
  511. total_size += 1 +
  512. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  513. }
  514. // optional int32 result = 2;
  515. if (has_result()) {
  516. total_size += 1 +
  517. ::google::protobuf::internal::WireFormatLite::Int32Size(
  518. this->result());
  519. }
  520. // optional int32 index = 3;
  521. if (has_index()) {
  522. total_size += 1 +
  523. ::google::protobuf::internal::WireFormatLite::Int32Size(
  524. this->index());
  525. }
  526. }
  527. if (!unknown_fields().empty()) {
  528. total_size +=
  529. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  530. unknown_fields());
  531. }
  532. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  533. _cached_size_ = total_size;
  534. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  535. return total_size;
  536. }
  537. void packetw2c_receive_blue_diamond_reward_result::MergeFrom(const ::google::protobuf::Message& from) {
  538. GOOGLE_CHECK_NE(&from, this);
  539. const packetw2c_receive_blue_diamond_reward_result* source =
  540. ::google::protobuf::internal::dynamic_cast_if_available<const packetw2c_receive_blue_diamond_reward_result*>(
  541. &from);
  542. if (source == NULL) {
  543. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  544. } else {
  545. MergeFrom(*source);
  546. }
  547. }
  548. void packetw2c_receive_blue_diamond_reward_result::MergeFrom(const packetw2c_receive_blue_diamond_reward_result& from) {
  549. GOOGLE_CHECK_NE(&from, this);
  550. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  551. if (from.has_packet_id()) {
  552. set_packet_id(from.packet_id());
  553. }
  554. if (from.has_result()) {
  555. set_result(from.result());
  556. }
  557. if (from.has_index()) {
  558. set_index(from.index());
  559. }
  560. }
  561. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  562. }
  563. void packetw2c_receive_blue_diamond_reward_result::CopyFrom(const ::google::protobuf::Message& from) {
  564. if (&from == this) return;
  565. Clear();
  566. MergeFrom(from);
  567. }
  568. void packetw2c_receive_blue_diamond_reward_result::CopyFrom(const packetw2c_receive_blue_diamond_reward_result& from) {
  569. if (&from == this) return;
  570. Clear();
  571. MergeFrom(from);
  572. }
  573. bool packetw2c_receive_blue_diamond_reward_result::IsInitialized() const {
  574. return true;
  575. }
  576. void packetw2c_receive_blue_diamond_reward_result::Swap(packetw2c_receive_blue_diamond_reward_result* other) {
  577. if (other != this) {
  578. std::swap(packet_id_, other->packet_id_);
  579. std::swap(result_, other->result_);
  580. std::swap(index_, other->index_);
  581. std::swap(_has_bits_[0], other->_has_bits_[0]);
  582. _unknown_fields_.Swap(&other->_unknown_fields_);
  583. std::swap(_cached_size_, other->_cached_size_);
  584. }
  585. }
  586. ::google::protobuf::Metadata packetw2c_receive_blue_diamond_reward_result::GetMetadata() const {
  587. protobuf_AssignDescriptorsOnce();
  588. ::google::protobuf::Metadata metadata;
  589. metadata.descriptor = packetw2c_receive_blue_diamond_reward_result_descriptor_;
  590. metadata.reflection = packetw2c_receive_blue_diamond_reward_result_reflection_;
  591. return metadata;
  592. }
  593. // @@protoc_insertion_point(namespace_scope)
  594. } // namespace client2world_protocols
  595. // @@protoc_insertion_point(global_scope)