诸暨麻将添加redis
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1655 lines
64 KiB

  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: Pb_RecordPacket.proto
  3. #include "Pb_RecordPacket.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/io/coded_stream.h>
  6. #include <google/protobuf/extension_set.h>
  7. #include <google/protobuf/wire_format_lite.h>
  8. #include <google/protobuf/descriptor.h>
  9. #include <google/protobuf/generated_message_reflection.h>
  10. #include <google/protobuf/reflection_ops.h>
  11. #include <google/protobuf/wire_format.h>
  12. // @@protoc_insertion_point(includes)
  13. #include <google/protobuf/port_def.inc>
  14. extern PROTOBUF_INTERNAL_EXPORT_Pb_5fRecordPacket_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_pb_ChairRecord_Pb_5fRecordPacket_2eproto;
  15. extern PROTOBUF_INTERNAL_EXPORT_Pb_5fRecordPacket_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_pb_GameConfig_Pb_5fRecordPacket_2eproto;
  16. extern PROTOBUF_INTERNAL_EXPORT_Pb_5fRecordPacket_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_pb_GameRecordPacket_Pb_5fRecordPacket_2eproto;
  17. namespace RecordPacket {
  18. class pb_GameRecordPacketDefaultTypeInternal {
  19. public:
  20. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<pb_GameRecordPacket> _instance;
  21. } _pb_GameRecordPacket_default_instance_;
  22. class pb_GameConfigDefaultTypeInternal {
  23. public:
  24. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<pb_GameConfig> _instance;
  25. } _pb_GameConfig_default_instance_;
  26. class pb_ChairRecordDefaultTypeInternal {
  27. public:
  28. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<pb_ChairRecord> _instance;
  29. } _pb_ChairRecord_default_instance_;
  30. class PB_CS_S_ReplayRecordRespDefaultTypeInternal {
  31. public:
  32. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PB_CS_S_ReplayRecordResp> _instance;
  33. } _PB_CS_S_ReplayRecordResp_default_instance_;
  34. } // namespace RecordPacket
  35. static void InitDefaultsscc_info_PB_CS_S_ReplayRecordResp_Pb_5fRecordPacket_2eproto() {
  36. GOOGLE_PROTOBUF_VERIFY_VERSION;
  37. {
  38. void* ptr = &::RecordPacket::_PB_CS_S_ReplayRecordResp_default_instance_;
  39. new (ptr) ::RecordPacket::PB_CS_S_ReplayRecordResp();
  40. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  41. }
  42. ::RecordPacket::PB_CS_S_ReplayRecordResp::InitAsDefaultInstance();
  43. }
  44. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_PB_CS_S_ReplayRecordResp_Pb_5fRecordPacket_2eproto =
  45. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, 0, InitDefaultsscc_info_PB_CS_S_ReplayRecordResp_Pb_5fRecordPacket_2eproto}, {
  46. &scc_info_pb_GameConfig_Pb_5fRecordPacket_2eproto.base,
  47. &scc_info_pb_ChairRecord_Pb_5fRecordPacket_2eproto.base,
  48. &scc_info_pb_GameRecordPacket_Pb_5fRecordPacket_2eproto.base,}};
  49. static void InitDefaultsscc_info_pb_ChairRecord_Pb_5fRecordPacket_2eproto() {
  50. GOOGLE_PROTOBUF_VERIFY_VERSION;
  51. {
  52. void* ptr = &::RecordPacket::_pb_ChairRecord_default_instance_;
  53. new (ptr) ::RecordPacket::pb_ChairRecord();
  54. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  55. }
  56. ::RecordPacket::pb_ChairRecord::InitAsDefaultInstance();
  57. }
  58. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_pb_ChairRecord_Pb_5fRecordPacket_2eproto =
  59. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_pb_ChairRecord_Pb_5fRecordPacket_2eproto}, {}};
  60. static void InitDefaultsscc_info_pb_GameConfig_Pb_5fRecordPacket_2eproto() {
  61. GOOGLE_PROTOBUF_VERIFY_VERSION;
  62. {
  63. void* ptr = &::RecordPacket::_pb_GameConfig_default_instance_;
  64. new (ptr) ::RecordPacket::pb_GameConfig();
  65. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  66. }
  67. ::RecordPacket::pb_GameConfig::InitAsDefaultInstance();
  68. }
  69. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_pb_GameConfig_Pb_5fRecordPacket_2eproto =
  70. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_pb_GameConfig_Pb_5fRecordPacket_2eproto}, {}};
  71. static void InitDefaultsscc_info_pb_GameRecordPacket_Pb_5fRecordPacket_2eproto() {
  72. GOOGLE_PROTOBUF_VERIFY_VERSION;
  73. {
  74. void* ptr = &::RecordPacket::_pb_GameRecordPacket_default_instance_;
  75. new (ptr) ::RecordPacket::pb_GameRecordPacket();
  76. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  77. }
  78. ::RecordPacket::pb_GameRecordPacket::InitAsDefaultInstance();
  79. }
  80. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_pb_GameRecordPacket_Pb_5fRecordPacket_2eproto =
  81. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_pb_GameRecordPacket_Pb_5fRecordPacket_2eproto}, {}};
  82. static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_Pb_5fRecordPacket_2eproto[4];
  83. static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_Pb_5fRecordPacket_2eproto = nullptr;
  84. static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_Pb_5fRecordPacket_2eproto = nullptr;
  85. const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_Pb_5fRecordPacket_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  86. ~0u, // no _has_bits_
  87. PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameRecordPacket, _internal_metadata_),
  88. ~0u, // no _extensions_
  89. ~0u, // no _oneof_case_
  90. ~0u, // no _weak_field_map_
  91. PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameRecordPacket, wchairid_),
  92. PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameRecordPacket, wmaincmdid_),
  93. PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameRecordPacket, wsubcmdid_),
  94. PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameRecordPacket, pdata_),
  95. ~0u, // no _has_bits_
  96. PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, _internal_metadata_),
  97. ~0u, // no _extensions_
  98. ~0u, // no _oneof_case_
  99. ~0u, // no _weak_field_map_
  100. PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, wsubgameid_),
  101. PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, wdiscore_),
  102. PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, wfanfei_),
  103. PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, wiplimit_),
  104. PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, wplaycountrule_),
  105. PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, roomid_),
  106. PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, isowner_),
  107. PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, whadplaycount_),
  108. PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, sprivatetableid_),
  109. PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, bduolai_),
  110. PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, wfengding_),
  111. PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, tmp1_),
  112. PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, tmp2_),
  113. ~0u, // no _has_bits_
  114. PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_ChairRecord, _internal_metadata_),
  115. ~0u, // no _extensions_
  116. ~0u, // no _oneof_case_
  117. ~0u, // no _weak_field_map_
  118. PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_ChairRecord, wchairid_),
  119. PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_ChairRecord, dwuserid_),
  120. PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_ChairRecord, username_),
  121. PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_ChairRecord, headurl_),
  122. ~0u, // no _has_bits_
  123. PROTOBUF_FIELD_OFFSET(::RecordPacket::PB_CS_S_ReplayRecordResp, _internal_metadata_),
  124. ~0u, // no _extensions_
  125. ~0u, // no _oneof_case_
  126. ~0u, // no _weak_field_map_
  127. PROTOBUF_FIELD_OFFSET(::RecordPacket::PB_CS_S_ReplayRecordResp, m_uuid_),
  128. PROTOBUF_FIELD_OFFSET(::RecordPacket::PB_CS_S_ReplayRecordResp, m_starttime_),
  129. PROTOBUF_FIELD_OFFSET(::RecordPacket::PB_CS_S_ReplayRecordResp, m_endtime_),
  130. PROTOBUF_FIELD_OFFSET(::RecordPacket::PB_CS_S_ReplayRecordResp, m_userid_),
  131. PROTOBUF_FIELD_OFFSET(::RecordPacket::PB_CS_S_ReplayRecordResp, m_gameconfig_),
  132. PROTOBUF_FIELD_OFFSET(::RecordPacket::PB_CS_S_ReplayRecordResp, m_chairlist_),
  133. PROTOBUF_FIELD_OFFSET(::RecordPacket::PB_CS_S_ReplayRecordResp, precordpacket_),
  134. };
  135. static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  136. { 0, -1, sizeof(::RecordPacket::pb_GameRecordPacket)},
  137. { 9, -1, sizeof(::RecordPacket::pb_GameConfig)},
  138. { 27, -1, sizeof(::RecordPacket::pb_ChairRecord)},
  139. { 36, -1, sizeof(::RecordPacket::PB_CS_S_ReplayRecordResp)},
  140. };
  141. static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  142. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RecordPacket::_pb_GameRecordPacket_default_instance_),
  143. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RecordPacket::_pb_GameConfig_default_instance_),
  144. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RecordPacket::_pb_ChairRecord_default_instance_),
  145. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RecordPacket::_PB_CS_S_ReplayRecordResp_default_instance_),
  146. };
  147. const char descriptor_table_protodef_Pb_5fRecordPacket_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  148. "\n\025Pb_RecordPacket.proto\022\014RecordPacket\"]\n"
  149. "\023pb_GameRecordPacket\022\020\n\010wChairID\030\001 \001(\r\022\022"
  150. "\n\nwMainCmdID\030\002 \001(\r\022\021\n\twSubCmdID\030\003 \001(\r\022\r\n"
  151. "\005pData\030\004 \001(\014\"\201\002\n\rpb_GameConfig\022\022\n\nwSubGa"
  152. "meID\030\001 \001(\r\022\020\n\010wDiScore\030\002 \001(\r\022\017\n\007wFanFei\030"
  153. "\003 \001(\r\022\020\n\010wIpLimit\030\004 \001(\r\022\026\n\016wPlayCountRul"
  154. "e\030\005 \001(\r\022\016\n\006RoomId\030\006 \001(\r\022\017\n\007IsOwner\030\007 \001(\r"
  155. "\022\025\n\rwHadPlayCount\030\010 \001(\r\022\027\n\017sPrivateTable"
  156. "ID\030\t \001(\t\022\017\n\007bDuoLai\030\n \001(\r\022\021\n\twFengDing\030\013"
  157. " \001(\r\022\014\n\004tmp1\030\014 \001(\r\022\014\n\004tmp2\030\r \001(\r\"W\n\016pb_C"
  158. "hairRecord\022\020\n\010wChairId\030\001 \001(\r\022\020\n\010dwUserId"
  159. "\030\002 \001(\r\022\020\n\010userName\030\003 \001(\t\022\017\n\007headUrl\030\004 \001("
  160. "\t\"\204\002\n\030PB_CS_S_ReplayRecordResp\022\016\n\006m_UUID"
  161. "\030\001 \001(\r\022\023\n\013m_startTime\030\003 \001(\r\022\021\n\tm_endTime"
  162. "\030\004 \001(\r\022\020\n\010m_UserId\030\005 \001(\r\0221\n\014m_gameconfig"
  163. "\030\006 \001(\0132\033.RecordPacket.pb_GameConfig\0221\n\013m"
  164. "_chairList\030\007 \003(\0132\034.RecordPacket.pb_Chair"
  165. "Record\0228\n\rpRecordPacket\030\010 \003(\0132!.RecordPa"
  166. "cket.pb_GameRecordPacketb\006proto3"
  167. ;
  168. static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_Pb_5fRecordPacket_2eproto_deps[1] = {
  169. };
  170. static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_Pb_5fRecordPacket_2eproto_sccs[4] = {
  171. &scc_info_PB_CS_S_ReplayRecordResp_Pb_5fRecordPacket_2eproto.base,
  172. &scc_info_pb_ChairRecord_Pb_5fRecordPacket_2eproto.base,
  173. &scc_info_pb_GameConfig_Pb_5fRecordPacket_2eproto.base,
  174. &scc_info_pb_GameRecordPacket_Pb_5fRecordPacket_2eproto.base,
  175. };
  176. static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_Pb_5fRecordPacket_2eproto_once;
  177. static bool descriptor_table_Pb_5fRecordPacket_2eproto_initialized = false;
  178. const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Pb_5fRecordPacket_2eproto = {
  179. &descriptor_table_Pb_5fRecordPacket_2eproto_initialized, descriptor_table_protodef_Pb_5fRecordPacket_2eproto, "Pb_RecordPacket.proto", 752,
  180. &descriptor_table_Pb_5fRecordPacket_2eproto_once, descriptor_table_Pb_5fRecordPacket_2eproto_sccs, descriptor_table_Pb_5fRecordPacket_2eproto_deps, 4, 0,
  181. schemas, file_default_instances, TableStruct_Pb_5fRecordPacket_2eproto::offsets,
  182. file_level_metadata_Pb_5fRecordPacket_2eproto, 4, file_level_enum_descriptors_Pb_5fRecordPacket_2eproto, file_level_service_descriptors_Pb_5fRecordPacket_2eproto,
  183. };
  184. // Force running AddDescriptors() at dynamic initialization time.
  185. static bool dynamic_init_dummy_Pb_5fRecordPacket_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_Pb_5fRecordPacket_2eproto), true);
  186. namespace RecordPacket {
  187. // ===================================================================
  188. void pb_GameRecordPacket::InitAsDefaultInstance() {
  189. }
  190. class pb_GameRecordPacket::_Internal {
  191. public:
  192. };
  193. pb_GameRecordPacket::pb_GameRecordPacket()
  194. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  195. SharedCtor();
  196. // @@protoc_insertion_point(constructor:RecordPacket.pb_GameRecordPacket)
  197. }
  198. pb_GameRecordPacket::pb_GameRecordPacket(const pb_GameRecordPacket& from)
  199. : ::PROTOBUF_NAMESPACE_ID::Message(),
  200. _internal_metadata_(nullptr) {
  201. _internal_metadata_.MergeFrom(from._internal_metadata_);
  202. pdata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  203. if (!from._internal_pdata().empty()) {
  204. pdata_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.pdata_);
  205. }
  206. ::memcpy(&wchairid_, &from.wchairid_,
  207. static_cast<size_t>(reinterpret_cast<char*>(&wsubcmdid_) -
  208. reinterpret_cast<char*>(&wchairid_)) + sizeof(wsubcmdid_));
  209. // @@protoc_insertion_point(copy_constructor:RecordPacket.pb_GameRecordPacket)
  210. }
  211. void pb_GameRecordPacket::SharedCtor() {
  212. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_pb_GameRecordPacket_Pb_5fRecordPacket_2eproto.base);
  213. pdata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  214. ::memset(&wchairid_, 0, static_cast<size_t>(
  215. reinterpret_cast<char*>(&wsubcmdid_) -
  216. reinterpret_cast<char*>(&wchairid_)) + sizeof(wsubcmdid_));
  217. }
  218. pb_GameRecordPacket::~pb_GameRecordPacket() {
  219. // @@protoc_insertion_point(destructor:RecordPacket.pb_GameRecordPacket)
  220. SharedDtor();
  221. }
  222. void pb_GameRecordPacket::SharedDtor() {
  223. pdata_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  224. }
  225. void pb_GameRecordPacket::SetCachedSize(int size) const {
  226. _cached_size_.Set(size);
  227. }
  228. const pb_GameRecordPacket& pb_GameRecordPacket::default_instance() {
  229. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_pb_GameRecordPacket_Pb_5fRecordPacket_2eproto.base);
  230. return *internal_default_instance();
  231. }
  232. void pb_GameRecordPacket::Clear() {
  233. // @@protoc_insertion_point(message_clear_start:RecordPacket.pb_GameRecordPacket)
  234. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  235. // Prevent compiler warnings about cached_has_bits being unused
  236. (void) cached_has_bits;
  237. pdata_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  238. ::memset(&wchairid_, 0, static_cast<size_t>(
  239. reinterpret_cast<char*>(&wsubcmdid_) -
  240. reinterpret_cast<char*>(&wchairid_)) + sizeof(wsubcmdid_));
  241. _internal_metadata_.Clear();
  242. }
  243. const char* pb_GameRecordPacket::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  244. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  245. while (!ctx->Done(&ptr)) {
  246. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  247. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  248. CHK_(ptr);
  249. switch (tag >> 3) {
  250. // uint32 wChairID = 1;
  251. case 1:
  252. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
  253. wchairid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  254. CHK_(ptr);
  255. } else goto handle_unusual;
  256. continue;
  257. // uint32 wMainCmdID = 2;
  258. case 2:
  259. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
  260. wmaincmdid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  261. CHK_(ptr);
  262. } else goto handle_unusual;
  263. continue;
  264. // uint32 wSubCmdID = 3;
  265. case 3:
  266. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
  267. wsubcmdid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  268. CHK_(ptr);
  269. } else goto handle_unusual;
  270. continue;
  271. // bytes pData = 4;
  272. case 4:
  273. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
  274. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(_internal_mutable_pdata(), ptr, ctx);
  275. CHK_(ptr);
  276. } else goto handle_unusual;
  277. continue;
  278. default: {
  279. handle_unusual:
  280. if ((tag & 7) == 4 || tag == 0) {
  281. ctx->SetLastTag(tag);
  282. goto success;
  283. }
  284. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  285. CHK_(ptr != nullptr);
  286. continue;
  287. }
  288. } // switch
  289. } // while
  290. success:
  291. return ptr;
  292. failure:
  293. ptr = nullptr;
  294. goto success;
  295. #undef CHK_
  296. }
  297. ::PROTOBUF_NAMESPACE_ID::uint8* pb_GameRecordPacket::InternalSerializeWithCachedSizesToArray(
  298. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  299. // @@protoc_insertion_point(serialize_to_array_start:RecordPacket.pb_GameRecordPacket)
  300. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  301. (void) cached_has_bits;
  302. // uint32 wChairID = 1;
  303. if (this->wchairid() != 0) {
  304. target = stream->EnsureSpace(target);
  305. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_wchairid(), target);
  306. }
  307. // uint32 wMainCmdID = 2;
  308. if (this->wmaincmdid() != 0) {
  309. target = stream->EnsureSpace(target);
  310. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_wmaincmdid(), target);
  311. }
  312. // uint32 wSubCmdID = 3;
  313. if (this->wsubcmdid() != 0) {
  314. target = stream->EnsureSpace(target);
  315. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_wsubcmdid(), target);
  316. }
  317. // bytes pData = 4;
  318. if (this->pdata().size() > 0) {
  319. target = stream->WriteBytesMaybeAliased(
  320. 4, this->_internal_pdata(), target);
  321. }
  322. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  323. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  324. _internal_metadata_.unknown_fields(), target, stream);
  325. }
  326. // @@protoc_insertion_point(serialize_to_array_end:RecordPacket.pb_GameRecordPacket)
  327. return target;
  328. }
  329. size_t pb_GameRecordPacket::ByteSizeLong() const {
  330. // @@protoc_insertion_point(message_byte_size_start:RecordPacket.pb_GameRecordPacket)
  331. size_t total_size = 0;
  332. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  333. // Prevent compiler warnings about cached_has_bits being unused
  334. (void) cached_has_bits;
  335. // bytes pData = 4;
  336. if (this->pdata().size() > 0) {
  337. total_size += 1 +
  338. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  339. this->_internal_pdata());
  340. }
  341. // uint32 wChairID = 1;
  342. if (this->wchairid() != 0) {
  343. total_size += 1 +
  344. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  345. this->_internal_wchairid());
  346. }
  347. // uint32 wMainCmdID = 2;
  348. if (this->wmaincmdid() != 0) {
  349. total_size += 1 +
  350. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  351. this->_internal_wmaincmdid());
  352. }
  353. // uint32 wSubCmdID = 3;
  354. if (this->wsubcmdid() != 0) {
  355. total_size += 1 +
  356. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  357. this->_internal_wsubcmdid());
  358. }
  359. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  360. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  361. _internal_metadata_, total_size, &_cached_size_);
  362. }
  363. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  364. SetCachedSize(cached_size);
  365. return total_size;
  366. }
  367. void pb_GameRecordPacket::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  368. // @@protoc_insertion_point(generalized_merge_from_start:RecordPacket.pb_GameRecordPacket)
  369. GOOGLE_DCHECK_NE(&from, this);
  370. const pb_GameRecordPacket* source =
  371. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<pb_GameRecordPacket>(
  372. &from);
  373. if (source == nullptr) {
  374. // @@protoc_insertion_point(generalized_merge_from_cast_fail:RecordPacket.pb_GameRecordPacket)
  375. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  376. } else {
  377. // @@protoc_insertion_point(generalized_merge_from_cast_success:RecordPacket.pb_GameRecordPacket)
  378. MergeFrom(*source);
  379. }
  380. }
  381. void pb_GameRecordPacket::MergeFrom(const pb_GameRecordPacket& from) {
  382. // @@protoc_insertion_point(class_specific_merge_from_start:RecordPacket.pb_GameRecordPacket)
  383. GOOGLE_DCHECK_NE(&from, this);
  384. _internal_metadata_.MergeFrom(from._internal_metadata_);
  385. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  386. (void) cached_has_bits;
  387. if (from.pdata().size() > 0) {
  388. pdata_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.pdata_);
  389. }
  390. if (from.wchairid() != 0) {
  391. _internal_set_wchairid(from._internal_wchairid());
  392. }
  393. if (from.wmaincmdid() != 0) {
  394. _internal_set_wmaincmdid(from._internal_wmaincmdid());
  395. }
  396. if (from.wsubcmdid() != 0) {
  397. _internal_set_wsubcmdid(from._internal_wsubcmdid());
  398. }
  399. }
  400. void pb_GameRecordPacket::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  401. // @@protoc_insertion_point(generalized_copy_from_start:RecordPacket.pb_GameRecordPacket)
  402. if (&from == this) return;
  403. Clear();
  404. MergeFrom(from);
  405. }
  406. void pb_GameRecordPacket::CopyFrom(const pb_GameRecordPacket& from) {
  407. // @@protoc_insertion_point(class_specific_copy_from_start:RecordPacket.pb_GameRecordPacket)
  408. if (&from == this) return;
  409. Clear();
  410. MergeFrom(from);
  411. }
  412. bool pb_GameRecordPacket::IsInitialized() const {
  413. return true;
  414. }
  415. void pb_GameRecordPacket::InternalSwap(pb_GameRecordPacket* other) {
  416. using std::swap;
  417. _internal_metadata_.Swap(&other->_internal_metadata_);
  418. pdata_.Swap(&other->pdata_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  419. GetArenaNoVirtual());
  420. swap(wchairid_, other->wchairid_);
  421. swap(wmaincmdid_, other->wmaincmdid_);
  422. swap(wsubcmdid_, other->wsubcmdid_);
  423. }
  424. ::PROTOBUF_NAMESPACE_ID::Metadata pb_GameRecordPacket::GetMetadata() const {
  425. return GetMetadataStatic();
  426. }
  427. // ===================================================================
  428. void pb_GameConfig::InitAsDefaultInstance() {
  429. }
  430. class pb_GameConfig::_Internal {
  431. public:
  432. };
  433. pb_GameConfig::pb_GameConfig()
  434. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  435. SharedCtor();
  436. // @@protoc_insertion_point(constructor:RecordPacket.pb_GameConfig)
  437. }
  438. pb_GameConfig::pb_GameConfig(const pb_GameConfig& from)
  439. : ::PROTOBUF_NAMESPACE_ID::Message(),
  440. _internal_metadata_(nullptr) {
  441. _internal_metadata_.MergeFrom(from._internal_metadata_);
  442. sprivatetableid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  443. if (!from._internal_sprivatetableid().empty()) {
  444. sprivatetableid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.sprivatetableid_);
  445. }
  446. ::memcpy(&wsubgameid_, &from.wsubgameid_,
  447. static_cast<size_t>(reinterpret_cast<char*>(&tmp2_) -
  448. reinterpret_cast<char*>(&wsubgameid_)) + sizeof(tmp2_));
  449. // @@protoc_insertion_point(copy_constructor:RecordPacket.pb_GameConfig)
  450. }
  451. void pb_GameConfig::SharedCtor() {
  452. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_pb_GameConfig_Pb_5fRecordPacket_2eproto.base);
  453. sprivatetableid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  454. ::memset(&wsubgameid_, 0, static_cast<size_t>(
  455. reinterpret_cast<char*>(&tmp2_) -
  456. reinterpret_cast<char*>(&wsubgameid_)) + sizeof(tmp2_));
  457. }
  458. pb_GameConfig::~pb_GameConfig() {
  459. // @@protoc_insertion_point(destructor:RecordPacket.pb_GameConfig)
  460. SharedDtor();
  461. }
  462. void pb_GameConfig::SharedDtor() {
  463. sprivatetableid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  464. }
  465. void pb_GameConfig::SetCachedSize(int size) const {
  466. _cached_size_.Set(size);
  467. }
  468. const pb_GameConfig& pb_GameConfig::default_instance() {
  469. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_pb_GameConfig_Pb_5fRecordPacket_2eproto.base);
  470. return *internal_default_instance();
  471. }
  472. void pb_GameConfig::Clear() {
  473. // @@protoc_insertion_point(message_clear_start:RecordPacket.pb_GameConfig)
  474. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  475. // Prevent compiler warnings about cached_has_bits being unused
  476. (void) cached_has_bits;
  477. sprivatetableid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  478. ::memset(&wsubgameid_, 0, static_cast<size_t>(
  479. reinterpret_cast<char*>(&tmp2_) -
  480. reinterpret_cast<char*>(&wsubgameid_)) + sizeof(tmp2_));
  481. _internal_metadata_.Clear();
  482. }
  483. const char* pb_GameConfig::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  484. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  485. while (!ctx->Done(&ptr)) {
  486. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  487. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  488. CHK_(ptr);
  489. switch (tag >> 3) {
  490. // uint32 wSubGameID = 1;
  491. case 1:
  492. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
  493. wsubgameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  494. CHK_(ptr);
  495. } else goto handle_unusual;
  496. continue;
  497. // uint32 wDiScore = 2;
  498. case 2:
  499. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
  500. wdiscore_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  501. CHK_(ptr);
  502. } else goto handle_unusual;
  503. continue;
  504. // uint32 wFanFei = 3;
  505. case 3:
  506. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
  507. wfanfei_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  508. CHK_(ptr);
  509. } else goto handle_unusual;
  510. continue;
  511. // uint32 wIpLimit = 4;
  512. case 4:
  513. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
  514. wiplimit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  515. CHK_(ptr);
  516. } else goto handle_unusual;
  517. continue;
  518. // uint32 wPlayCountRule = 5;
  519. case 5:
  520. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
  521. wplaycountrule_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  522. CHK_(ptr);
  523. } else goto handle_unusual;
  524. continue;
  525. // uint32 RoomId = 6;
  526. case 6:
  527. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
  528. roomid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  529. CHK_(ptr);
  530. } else goto handle_unusual;
  531. continue;
  532. // uint32 IsOwner = 7;
  533. case 7:
  534. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
  535. isowner_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  536. CHK_(ptr);
  537. } else goto handle_unusual;
  538. continue;
  539. // uint32 wHadPlayCount = 8;
  540. case 8:
  541. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) {
  542. whadplaycount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  543. CHK_(ptr);
  544. } else goto handle_unusual;
  545. continue;
  546. // string sPrivateTableID = 9;
  547. case 9:
  548. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) {
  549. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(_internal_mutable_sprivatetableid(), ptr, ctx, "RecordPacket.pb_GameConfig.sPrivateTableID");
  550. CHK_(ptr);
  551. } else goto handle_unusual;
  552. continue;
  553. // uint32 bDuoLai = 10;
  554. case 10:
  555. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) {
  556. bduolai_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  557. CHK_(ptr);
  558. } else goto handle_unusual;
  559. continue;
  560. // uint32 wFengDing = 11;
  561. case 11:
  562. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) {
  563. wfengding_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  564. CHK_(ptr);
  565. } else goto handle_unusual;
  566. continue;
  567. // uint32 tmp1 = 12;
  568. case 12:
  569. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) {
  570. tmp1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  571. CHK_(ptr);
  572. } else goto handle_unusual;
  573. continue;
  574. // uint32 tmp2 = 13;
  575. case 13:
  576. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 104)) {
  577. tmp2_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  578. CHK_(ptr);
  579. } else goto handle_unusual;
  580. continue;
  581. default: {
  582. handle_unusual:
  583. if ((tag & 7) == 4 || tag == 0) {
  584. ctx->SetLastTag(tag);
  585. goto success;
  586. }
  587. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  588. CHK_(ptr != nullptr);
  589. continue;
  590. }
  591. } // switch
  592. } // while
  593. success:
  594. return ptr;
  595. failure:
  596. ptr = nullptr;
  597. goto success;
  598. #undef CHK_
  599. }
  600. ::PROTOBUF_NAMESPACE_ID::uint8* pb_GameConfig::InternalSerializeWithCachedSizesToArray(
  601. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  602. // @@protoc_insertion_point(serialize_to_array_start:RecordPacket.pb_GameConfig)
  603. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  604. (void) cached_has_bits;
  605. // uint32 wSubGameID = 1;
  606. if (this->wsubgameid() != 0) {
  607. target = stream->EnsureSpace(target);
  608. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_wsubgameid(), target);
  609. }
  610. // uint32 wDiScore = 2;
  611. if (this->wdiscore() != 0) {
  612. target = stream->EnsureSpace(target);
  613. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_wdiscore(), target);
  614. }
  615. // uint32 wFanFei = 3;
  616. if (this->wfanfei() != 0) {
  617. target = stream->EnsureSpace(target);
  618. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_wfanfei(), target);
  619. }
  620. // uint32 wIpLimit = 4;
  621. if (this->wiplimit() != 0) {
  622. target = stream->EnsureSpace(target);
  623. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_wiplimit(), target);
  624. }
  625. // uint32 wPlayCountRule = 5;
  626. if (this->wplaycountrule() != 0) {
  627. target = stream->EnsureSpace(target);
  628. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_wplaycountrule(), target);
  629. }
  630. // uint32 RoomId = 6;
  631. if (this->roomid() != 0) {
  632. target = stream->EnsureSpace(target);
  633. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(6, this->_internal_roomid(), target);
  634. }
  635. // uint32 IsOwner = 7;
  636. if (this->isowner() != 0) {
  637. target = stream->EnsureSpace(target);
  638. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(7, this->_internal_isowner(), target);
  639. }
  640. // uint32 wHadPlayCount = 8;
  641. if (this->whadplaycount() != 0) {
  642. target = stream->EnsureSpace(target);
  643. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(8, this->_internal_whadplaycount(), target);
  644. }
  645. // string sPrivateTableID = 9;
  646. if (this->sprivatetableid().size() > 0) {
  647. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  648. this->_internal_sprivatetableid().data(), static_cast<int>(this->_internal_sprivatetableid().length()),
  649. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  650. "RecordPacket.pb_GameConfig.sPrivateTableID");
  651. target = stream->WriteStringMaybeAliased(
  652. 9, this->_internal_sprivatetableid(), target);
  653. }
  654. // uint32 bDuoLai = 10;
  655. if (this->bduolai() != 0) {
  656. target = stream->EnsureSpace(target);
  657. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(10, this->_internal_bduolai(), target);
  658. }
  659. // uint32 wFengDing = 11;
  660. if (this->wfengding() != 0) {
  661. target = stream->EnsureSpace(target);
  662. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(11, this->_internal_wfengding(), target);
  663. }
  664. // uint32 tmp1 = 12;
  665. if (this->tmp1() != 0) {
  666. target = stream->EnsureSpace(target);
  667. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(12, this->_internal_tmp1(), target);
  668. }
  669. // uint32 tmp2 = 13;
  670. if (this->tmp2() != 0) {
  671. target = stream->EnsureSpace(target);
  672. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(13, this->_internal_tmp2(), target);
  673. }
  674. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  675. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  676. _internal_metadata_.unknown_fields(), target, stream);
  677. }
  678. // @@protoc_insertion_point(serialize_to_array_end:RecordPacket.pb_GameConfig)
  679. return target;
  680. }
  681. size_t pb_GameConfig::ByteSizeLong() const {
  682. // @@protoc_insertion_point(message_byte_size_start:RecordPacket.pb_GameConfig)
  683. size_t total_size = 0;
  684. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  685. // Prevent compiler warnings about cached_has_bits being unused
  686. (void) cached_has_bits;
  687. // string sPrivateTableID = 9;
  688. if (this->sprivatetableid().size() > 0) {
  689. total_size += 1 +
  690. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  691. this->_internal_sprivatetableid());
  692. }
  693. // uint32 wSubGameID = 1;
  694. if (this->wsubgameid() != 0) {
  695. total_size += 1 +
  696. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  697. this->_internal_wsubgameid());
  698. }
  699. // uint32 wDiScore = 2;
  700. if (this->wdiscore() != 0) {
  701. total_size += 1 +
  702. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  703. this->_internal_wdiscore());
  704. }
  705. // uint32 wFanFei = 3;
  706. if (this->wfanfei() != 0) {
  707. total_size += 1 +
  708. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  709. this->_internal_wfanfei());
  710. }
  711. // uint32 wIpLimit = 4;
  712. if (this->wiplimit() != 0) {
  713. total_size += 1 +
  714. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  715. this->_internal_wiplimit());
  716. }
  717. // uint32 wPlayCountRule = 5;
  718. if (this->wplaycountrule() != 0) {
  719. total_size += 1 +
  720. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  721. this->_internal_wplaycountrule());
  722. }
  723. // uint32 RoomId = 6;
  724. if (this->roomid() != 0) {
  725. total_size += 1 +
  726. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  727. this->_internal_roomid());
  728. }
  729. // uint32 IsOwner = 7;
  730. if (this->isowner() != 0) {
  731. total_size += 1 +
  732. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  733. this->_internal_isowner());
  734. }
  735. // uint32 wHadPlayCount = 8;
  736. if (this->whadplaycount() != 0) {
  737. total_size += 1 +
  738. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  739. this->_internal_whadplaycount());
  740. }
  741. // uint32 bDuoLai = 10;
  742. if (this->bduolai() != 0) {
  743. total_size += 1 +
  744. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  745. this->_internal_bduolai());
  746. }
  747. // uint32 wFengDing = 11;
  748. if (this->wfengding() != 0) {
  749. total_size += 1 +
  750. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  751. this->_internal_wfengding());
  752. }
  753. // uint32 tmp1 = 12;
  754. if (this->tmp1() != 0) {
  755. total_size += 1 +
  756. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  757. this->_internal_tmp1());
  758. }
  759. // uint32 tmp2 = 13;
  760. if (this->tmp2() != 0) {
  761. total_size += 1 +
  762. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  763. this->_internal_tmp2());
  764. }
  765. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  766. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  767. _internal_metadata_, total_size, &_cached_size_);
  768. }
  769. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  770. SetCachedSize(cached_size);
  771. return total_size;
  772. }
  773. void pb_GameConfig::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  774. // @@protoc_insertion_point(generalized_merge_from_start:RecordPacket.pb_GameConfig)
  775. GOOGLE_DCHECK_NE(&from, this);
  776. const pb_GameConfig* source =
  777. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<pb_GameConfig>(
  778. &from);
  779. if (source == nullptr) {
  780. // @@protoc_insertion_point(generalized_merge_from_cast_fail:RecordPacket.pb_GameConfig)
  781. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  782. } else {
  783. // @@protoc_insertion_point(generalized_merge_from_cast_success:RecordPacket.pb_GameConfig)
  784. MergeFrom(*source);
  785. }
  786. }
  787. void pb_GameConfig::MergeFrom(const pb_GameConfig& from) {
  788. // @@protoc_insertion_point(class_specific_merge_from_start:RecordPacket.pb_GameConfig)
  789. GOOGLE_DCHECK_NE(&from, this);
  790. _internal_metadata_.MergeFrom(from._internal_metadata_);
  791. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  792. (void) cached_has_bits;
  793. if (from.sprivatetableid().size() > 0) {
  794. sprivatetableid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.sprivatetableid_);
  795. }
  796. if (from.wsubgameid() != 0) {
  797. _internal_set_wsubgameid(from._internal_wsubgameid());
  798. }
  799. if (from.wdiscore() != 0) {
  800. _internal_set_wdiscore(from._internal_wdiscore());
  801. }
  802. if (from.wfanfei() != 0) {
  803. _internal_set_wfanfei(from._internal_wfanfei());
  804. }
  805. if (from.wiplimit() != 0) {
  806. _internal_set_wiplimit(from._internal_wiplimit());
  807. }
  808. if (from.wplaycountrule() != 0) {
  809. _internal_set_wplaycountrule(from._internal_wplaycountrule());
  810. }
  811. if (from.roomid() != 0) {
  812. _internal_set_roomid(from._internal_roomid());
  813. }
  814. if (from.isowner() != 0) {
  815. _internal_set_isowner(from._internal_isowner());
  816. }
  817. if (from.whadplaycount() != 0) {
  818. _internal_set_whadplaycount(from._internal_whadplaycount());
  819. }
  820. if (from.bduolai() != 0) {
  821. _internal_set_bduolai(from._internal_bduolai());
  822. }
  823. if (from.wfengding() != 0) {
  824. _internal_set_wfengding(from._internal_wfengding());
  825. }
  826. if (from.tmp1() != 0) {
  827. _internal_set_tmp1(from._internal_tmp1());
  828. }
  829. if (from.tmp2() != 0) {
  830. _internal_set_tmp2(from._internal_tmp2());
  831. }
  832. }
  833. void pb_GameConfig::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  834. // @@protoc_insertion_point(generalized_copy_from_start:RecordPacket.pb_GameConfig)
  835. if (&from == this) return;
  836. Clear();
  837. MergeFrom(from);
  838. }
  839. void pb_GameConfig::CopyFrom(const pb_GameConfig& from) {
  840. // @@protoc_insertion_point(class_specific_copy_from_start:RecordPacket.pb_GameConfig)
  841. if (&from == this) return;
  842. Clear();
  843. MergeFrom(from);
  844. }
  845. bool pb_GameConfig::IsInitialized() const {
  846. return true;
  847. }
  848. void pb_GameConfig::InternalSwap(pb_GameConfig* other) {
  849. using std::swap;
  850. _internal_metadata_.Swap(&other->_internal_metadata_);
  851. sprivatetableid_.Swap(&other->sprivatetableid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  852. GetArenaNoVirtual());
  853. swap(wsubgameid_, other->wsubgameid_);
  854. swap(wdiscore_, other->wdiscore_);
  855. swap(wfanfei_, other->wfanfei_);
  856. swap(wiplimit_, other->wiplimit_);
  857. swap(wplaycountrule_, other->wplaycountrule_);
  858. swap(roomid_, other->roomid_);
  859. swap(isowner_, other->isowner_);
  860. swap(whadplaycount_, other->whadplaycount_);
  861. swap(bduolai_, other->bduolai_);
  862. swap(wfengding_, other->wfengding_);
  863. swap(tmp1_, other->tmp1_);
  864. swap(tmp2_, other->tmp2_);
  865. }
  866. ::PROTOBUF_NAMESPACE_ID::Metadata pb_GameConfig::GetMetadata() const {
  867. return GetMetadataStatic();
  868. }
  869. // ===================================================================
  870. void pb_ChairRecord::InitAsDefaultInstance() {
  871. }
  872. class pb_ChairRecord::_Internal {
  873. public:
  874. };
  875. pb_ChairRecord::pb_ChairRecord()
  876. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  877. SharedCtor();
  878. // @@protoc_insertion_point(constructor:RecordPacket.pb_ChairRecord)
  879. }
  880. pb_ChairRecord::pb_ChairRecord(const pb_ChairRecord& from)
  881. : ::PROTOBUF_NAMESPACE_ID::Message(),
  882. _internal_metadata_(nullptr) {
  883. _internal_metadata_.MergeFrom(from._internal_metadata_);
  884. username_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  885. if (!from._internal_username().empty()) {
  886. username_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.username_);
  887. }
  888. headurl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  889. if (!from._internal_headurl().empty()) {
  890. headurl_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.headurl_);
  891. }
  892. ::memcpy(&wchairid_, &from.wchairid_,
  893. static_cast<size_t>(reinterpret_cast<char*>(&dwuserid_) -
  894. reinterpret_cast<char*>(&wchairid_)) + sizeof(dwuserid_));
  895. // @@protoc_insertion_point(copy_constructor:RecordPacket.pb_ChairRecord)
  896. }
  897. void pb_ChairRecord::SharedCtor() {
  898. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_pb_ChairRecord_Pb_5fRecordPacket_2eproto.base);
  899. username_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  900. headurl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  901. ::memset(&wchairid_, 0, static_cast<size_t>(
  902. reinterpret_cast<char*>(&dwuserid_) -
  903. reinterpret_cast<char*>(&wchairid_)) + sizeof(dwuserid_));
  904. }
  905. pb_ChairRecord::~pb_ChairRecord() {
  906. // @@protoc_insertion_point(destructor:RecordPacket.pb_ChairRecord)
  907. SharedDtor();
  908. }
  909. void pb_ChairRecord::SharedDtor() {
  910. username_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  911. headurl_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  912. }
  913. void pb_ChairRecord::SetCachedSize(int size) const {
  914. _cached_size_.Set(size);
  915. }
  916. const pb_ChairRecord& pb_ChairRecord::default_instance() {
  917. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_pb_ChairRecord_Pb_5fRecordPacket_2eproto.base);
  918. return *internal_default_instance();
  919. }
  920. void pb_ChairRecord::Clear() {
  921. // @@protoc_insertion_point(message_clear_start:RecordPacket.pb_ChairRecord)
  922. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  923. // Prevent compiler warnings about cached_has_bits being unused
  924. (void) cached_has_bits;
  925. username_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  926. headurl_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  927. ::memset(&wchairid_, 0, static_cast<size_t>(
  928. reinterpret_cast<char*>(&dwuserid_) -
  929. reinterpret_cast<char*>(&wchairid_)) + sizeof(dwuserid_));
  930. _internal_metadata_.Clear();
  931. }
  932. const char* pb_ChairRecord::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  933. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  934. while (!ctx->Done(&ptr)) {
  935. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  936. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  937. CHK_(ptr);
  938. switch (tag >> 3) {
  939. // uint32 wChairId = 1;
  940. case 1:
  941. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
  942. wchairid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  943. CHK_(ptr);
  944. } else goto handle_unusual;
  945. continue;
  946. // uint32 dwUserId = 2;
  947. case 2:
  948. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
  949. dwuserid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  950. CHK_(ptr);
  951. } else goto handle_unusual;
  952. continue;
  953. // string userName = 3;
  954. case 3:
  955. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
  956. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(_internal_mutable_username(), ptr, ctx, "RecordPacket.pb_ChairRecord.userName");
  957. CHK_(ptr);
  958. } else goto handle_unusual;
  959. continue;
  960. // string headUrl = 4;
  961. case 4:
  962. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
  963. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(_internal_mutable_headurl(), ptr, ctx, "RecordPacket.pb_ChairRecord.headUrl");
  964. CHK_(ptr);
  965. } else goto handle_unusual;
  966. continue;
  967. default: {
  968. handle_unusual:
  969. if ((tag & 7) == 4 || tag == 0) {
  970. ctx->SetLastTag(tag);
  971. goto success;
  972. }
  973. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  974. CHK_(ptr != nullptr);
  975. continue;
  976. }
  977. } // switch
  978. } // while
  979. success:
  980. return ptr;
  981. failure:
  982. ptr = nullptr;
  983. goto success;
  984. #undef CHK_
  985. }
  986. ::PROTOBUF_NAMESPACE_ID::uint8* pb_ChairRecord::InternalSerializeWithCachedSizesToArray(
  987. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  988. // @@protoc_insertion_point(serialize_to_array_start:RecordPacket.pb_ChairRecord)
  989. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  990. (void) cached_has_bits;
  991. // uint32 wChairId = 1;
  992. if (this->wchairid() != 0) {
  993. target = stream->EnsureSpace(target);
  994. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_wchairid(), target);
  995. }
  996. // uint32 dwUserId = 2;
  997. if (this->dwuserid() != 0) {
  998. target = stream->EnsureSpace(target);
  999. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_dwuserid(), target);
  1000. }
  1001. // string userName = 3;
  1002. if (this->username().size() > 0) {
  1003. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1004. this->_internal_username().data(), static_cast<int>(this->_internal_username().length()),
  1005. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  1006. "RecordPacket.pb_ChairRecord.userName");
  1007. target = stream->WriteStringMaybeAliased(
  1008. 3, this->_internal_username(), target);
  1009. }
  1010. // string headUrl = 4;
  1011. if (this->headurl().size() > 0) {
  1012. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1013. this->_internal_headurl().data(), static_cast<int>(this->_internal_headurl().length()),
  1014. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  1015. "RecordPacket.pb_ChairRecord.headUrl");
  1016. target = stream->WriteStringMaybeAliased(
  1017. 4, this->_internal_headurl(), target);
  1018. }
  1019. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1020. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1021. _internal_metadata_.unknown_fields(), target, stream);
  1022. }
  1023. // @@protoc_insertion_point(serialize_to_array_end:RecordPacket.pb_ChairRecord)
  1024. return target;
  1025. }
  1026. size_t pb_ChairRecord::ByteSizeLong() const {
  1027. // @@protoc_insertion_point(message_byte_size_start:RecordPacket.pb_ChairRecord)
  1028. size_t total_size = 0;
  1029. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1030. // Prevent compiler warnings about cached_has_bits being unused
  1031. (void) cached_has_bits;
  1032. // string userName = 3;
  1033. if (this->username().size() > 0) {
  1034. total_size += 1 +
  1035. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1036. this->_internal_username());
  1037. }
  1038. // string headUrl = 4;
  1039. if (this->headurl().size() > 0) {
  1040. total_size += 1 +
  1041. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1042. this->_internal_headurl());
  1043. }
  1044. // uint32 wChairId = 1;
  1045. if (this->wchairid() != 0) {
  1046. total_size += 1 +
  1047. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  1048. this->_internal_wchairid());
  1049. }
  1050. // uint32 dwUserId = 2;
  1051. if (this->dwuserid() != 0) {
  1052. total_size += 1 +
  1053. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  1054. this->_internal_dwuserid());
  1055. }
  1056. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1057. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  1058. _internal_metadata_, total_size, &_cached_size_);
  1059. }
  1060. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  1061. SetCachedSize(cached_size);
  1062. return total_size;
  1063. }
  1064. void pb_ChairRecord::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1065. // @@protoc_insertion_point(generalized_merge_from_start:RecordPacket.pb_ChairRecord)
  1066. GOOGLE_DCHECK_NE(&from, this);
  1067. const pb_ChairRecord* source =
  1068. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<pb_ChairRecord>(
  1069. &from);
  1070. if (source == nullptr) {
  1071. // @@protoc_insertion_point(generalized_merge_from_cast_fail:RecordPacket.pb_ChairRecord)
  1072. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  1073. } else {
  1074. // @@protoc_insertion_point(generalized_merge_from_cast_success:RecordPacket.pb_ChairRecord)
  1075. MergeFrom(*source);
  1076. }
  1077. }
  1078. void pb_ChairRecord::MergeFrom(const pb_ChairRecord& from) {
  1079. // @@protoc_insertion_point(class_specific_merge_from_start:RecordPacket.pb_ChairRecord)
  1080. GOOGLE_DCHECK_NE(&from, this);
  1081. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1082. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1083. (void) cached_has_bits;
  1084. if (from.username().size() > 0) {
  1085. username_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.username_);
  1086. }
  1087. if (from.headurl().size() > 0) {
  1088. headurl_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.headurl_);
  1089. }
  1090. if (from.wchairid() != 0) {
  1091. _internal_set_wchairid(from._internal_wchairid());
  1092. }
  1093. if (from.dwuserid() != 0) {
  1094. _internal_set_dwuserid(from._internal_dwuserid());
  1095. }
  1096. }
  1097. void pb_ChairRecord::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1098. // @@protoc_insertion_point(generalized_copy_from_start:RecordPacket.pb_ChairRecord)
  1099. if (&from == this) return;
  1100. Clear();
  1101. MergeFrom(from);
  1102. }
  1103. void pb_ChairRecord::CopyFrom(const pb_ChairRecord& from) {
  1104. // @@protoc_insertion_point(class_specific_copy_from_start:RecordPacket.pb_ChairRecord)
  1105. if (&from == this) return;
  1106. Clear();
  1107. MergeFrom(from);
  1108. }
  1109. bool pb_ChairRecord::IsInitialized() const {
  1110. return true;
  1111. }
  1112. void pb_ChairRecord::InternalSwap(pb_ChairRecord* other) {
  1113. using std::swap;
  1114. _internal_metadata_.Swap(&other->_internal_metadata_);
  1115. username_.Swap(&other->username_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1116. GetArenaNoVirtual());
  1117. headurl_.Swap(&other->headurl_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1118. GetArenaNoVirtual());
  1119. swap(wchairid_, other->wchairid_);
  1120. swap(dwuserid_, other->dwuserid_);
  1121. }
  1122. ::PROTOBUF_NAMESPACE_ID::Metadata pb_ChairRecord::GetMetadata() const {
  1123. return GetMetadataStatic();
  1124. }
  1125. // ===================================================================
  1126. void PB_CS_S_ReplayRecordResp::InitAsDefaultInstance() {
  1127. ::RecordPacket::_PB_CS_S_ReplayRecordResp_default_instance_._instance.get_mutable()->m_gameconfig_ = const_cast< ::RecordPacket::pb_GameConfig*>(
  1128. ::RecordPacket::pb_GameConfig::internal_default_instance());
  1129. }
  1130. class PB_CS_S_ReplayRecordResp::_Internal {
  1131. public:
  1132. static const ::RecordPacket::pb_GameConfig& m_gameconfig(const PB_CS_S_ReplayRecordResp* msg);
  1133. };
  1134. const ::RecordPacket::pb_GameConfig&
  1135. PB_CS_S_ReplayRecordResp::_Internal::m_gameconfig(const PB_CS_S_ReplayRecordResp* msg) {
  1136. return *msg->m_gameconfig_;
  1137. }
  1138. PB_CS_S_ReplayRecordResp::PB_CS_S_ReplayRecordResp()
  1139. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  1140. SharedCtor();
  1141. // @@protoc_insertion_point(constructor:RecordPacket.PB_CS_S_ReplayRecordResp)
  1142. }
  1143. PB_CS_S_ReplayRecordResp::PB_CS_S_ReplayRecordResp(const PB_CS_S_ReplayRecordResp& from)
  1144. : ::PROTOBUF_NAMESPACE_ID::Message(),
  1145. _internal_metadata_(nullptr),
  1146. m_chairlist_(from.m_chairlist_),
  1147. precordpacket_(from.precordpacket_) {
  1148. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1149. if (from._internal_has_m_gameconfig()) {
  1150. m_gameconfig_ = new ::RecordPacket::pb_GameConfig(*from.m_gameconfig_);
  1151. } else {
  1152. m_gameconfig_ = nullptr;
  1153. }
  1154. ::memcpy(&m_uuid_, &from.m_uuid_,
  1155. static_cast<size_t>(reinterpret_cast<char*>(&m_userid_) -
  1156. reinterpret_cast<char*>(&m_uuid_)) + sizeof(m_userid_));
  1157. // @@protoc_insertion_point(copy_constructor:RecordPacket.PB_CS_S_ReplayRecordResp)
  1158. }
  1159. void PB_CS_S_ReplayRecordResp::SharedCtor() {
  1160. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PB_CS_S_ReplayRecordResp_Pb_5fRecordPacket_2eproto.base);
  1161. ::memset(&m_gameconfig_, 0, static_cast<size_t>(
  1162. reinterpret_cast<char*>(&m_userid_) -
  1163. reinterpret_cast<char*>(&m_gameconfig_)) + sizeof(m_userid_));
  1164. }
  1165. PB_CS_S_ReplayRecordResp::~PB_CS_S_ReplayRecordResp() {
  1166. // @@protoc_insertion_point(destructor:RecordPacket.PB_CS_S_ReplayRecordResp)
  1167. SharedDtor();
  1168. }
  1169. void PB_CS_S_ReplayRecordResp::SharedDtor() {
  1170. if (this != internal_default_instance()) delete m_gameconfig_;
  1171. }
  1172. void PB_CS_S_ReplayRecordResp::SetCachedSize(int size) const {
  1173. _cached_size_.Set(size);
  1174. }
  1175. const PB_CS_S_ReplayRecordResp& PB_CS_S_ReplayRecordResp::default_instance() {
  1176. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PB_CS_S_ReplayRecordResp_Pb_5fRecordPacket_2eproto.base);
  1177. return *internal_default_instance();
  1178. }
  1179. void PB_CS_S_ReplayRecordResp::Clear() {
  1180. // @@protoc_insertion_point(message_clear_start:RecordPacket.PB_CS_S_ReplayRecordResp)
  1181. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1182. // Prevent compiler warnings about cached_has_bits being unused
  1183. (void) cached_has_bits;
  1184. m_chairlist_.Clear();
  1185. precordpacket_.Clear();
  1186. if (GetArenaNoVirtual() == nullptr && m_gameconfig_ != nullptr) {
  1187. delete m_gameconfig_;
  1188. }
  1189. m_gameconfig_ = nullptr;
  1190. ::memset(&m_uuid_, 0, static_cast<size_t>(
  1191. reinterpret_cast<char*>(&m_userid_) -
  1192. reinterpret_cast<char*>(&m_uuid_)) + sizeof(m_userid_));
  1193. _internal_metadata_.Clear();
  1194. }
  1195. const char* PB_CS_S_ReplayRecordResp::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1196. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1197. while (!ctx->Done(&ptr)) {
  1198. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  1199. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1200. CHK_(ptr);
  1201. switch (tag >> 3) {
  1202. // uint32 m_UUID = 1;
  1203. case 1:
  1204. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
  1205. m_uuid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1206. CHK_(ptr);
  1207. } else goto handle_unusual;
  1208. continue;
  1209. // uint32 m_startTime = 3;
  1210. case 3:
  1211. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
  1212. m_starttime_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1213. CHK_(ptr);
  1214. } else goto handle_unusual;
  1215. continue;
  1216. // uint32 m_endTime = 4;
  1217. case 4:
  1218. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
  1219. m_endtime_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1220. CHK_(ptr);
  1221. } else goto handle_unusual;
  1222. continue;
  1223. // uint32 m_UserId = 5;
  1224. case 5:
  1225. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
  1226. m_userid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1227. CHK_(ptr);
  1228. } else goto handle_unusual;
  1229. continue;
  1230. // .RecordPacket.pb_GameConfig m_gameconfig = 6;
  1231. case 6:
  1232. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
  1233. ptr = ctx->ParseMessage(_internal_mutable_m_gameconfig(), ptr);
  1234. CHK_(ptr);
  1235. } else goto handle_unusual;
  1236. continue;
  1237. // repeated .RecordPacket.pb_ChairRecord m_chairList = 7;
  1238. case 7:
  1239. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
  1240. ptr -= 1;
  1241. do {
  1242. ptr += 1;
  1243. ptr = ctx->ParseMessage(_internal_add_m_chairlist(), ptr);
  1244. CHK_(ptr);
  1245. if (!ctx->DataAvailable(ptr)) break;
  1246. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr));
  1247. } else goto handle_unusual;
  1248. continue;
  1249. // repeated .RecordPacket.pb_GameRecordPacket pRecordPacket = 8;
  1250. case 8:
  1251. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
  1252. ptr -= 1;
  1253. do {
  1254. ptr += 1;
  1255. ptr = ctx->ParseMessage(_internal_add_precordpacket(), ptr);
  1256. CHK_(ptr);
  1257. if (!ctx->DataAvailable(ptr)) break;
  1258. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr));
  1259. } else goto handle_unusual;
  1260. continue;
  1261. default: {
  1262. handle_unusual:
  1263. if ((tag & 7) == 4 || tag == 0) {
  1264. ctx->SetLastTag(tag);
  1265. goto success;
  1266. }
  1267. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  1268. CHK_(ptr != nullptr);
  1269. continue;
  1270. }
  1271. } // switch
  1272. } // while
  1273. success:
  1274. return ptr;
  1275. failure:
  1276. ptr = nullptr;
  1277. goto success;
  1278. #undef CHK_
  1279. }
  1280. ::PROTOBUF_NAMESPACE_ID::uint8* PB_CS_S_ReplayRecordResp::InternalSerializeWithCachedSizesToArray(
  1281. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1282. // @@protoc_insertion_point(serialize_to_array_start:RecordPacket.PB_CS_S_ReplayRecordResp)
  1283. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1284. (void) cached_has_bits;
  1285. // uint32 m_UUID = 1;
  1286. if (this->m_uuid() != 0) {
  1287. target = stream->EnsureSpace(target);
  1288. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_m_uuid(), target);
  1289. }
  1290. // uint32 m_startTime = 3;
  1291. if (this->m_starttime() != 0) {
  1292. target = stream->EnsureSpace(target);
  1293. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_m_starttime(), target);
  1294. }
  1295. // uint32 m_endTime = 4;
  1296. if (this->m_endtime() != 0) {
  1297. target = stream->EnsureSpace(target);
  1298. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_m_endtime(), target);
  1299. }
  1300. // uint32 m_UserId = 5;
  1301. if (this->m_userid() != 0) {
  1302. target = stream->EnsureSpace(target);
  1303. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_m_userid(), target);
  1304. }
  1305. // .RecordPacket.pb_GameConfig m_gameconfig = 6;
  1306. if (this->has_m_gameconfig()) {
  1307. target = stream->EnsureSpace(target);
  1308. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1309. InternalWriteMessageToArray(
  1310. 6, _Internal::m_gameconfig(this), target, stream);
  1311. }
  1312. // repeated .RecordPacket.pb_ChairRecord m_chairList = 7;
  1313. for (unsigned int i = 0,
  1314. n = static_cast<unsigned int>(this->_internal_m_chairlist_size()); i < n; i++) {
  1315. target = stream->EnsureSpace(target);
  1316. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1317. InternalWriteMessageToArray(7, this->_internal_m_chairlist(i), target, stream);
  1318. }
  1319. // repeated .RecordPacket.pb_GameRecordPacket pRecordPacket = 8;
  1320. for (unsigned int i = 0,
  1321. n = static_cast<unsigned int>(this->_internal_precordpacket_size()); i < n; i++) {
  1322. target = stream->EnsureSpace(target);
  1323. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1324. InternalWriteMessageToArray(8, this->_internal_precordpacket(i), target, stream);
  1325. }
  1326. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1327. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1328. _internal_metadata_.unknown_fields(), target, stream);
  1329. }
  1330. // @@protoc_insertion_point(serialize_to_array_end:RecordPacket.PB_CS_S_ReplayRecordResp)
  1331. return target;
  1332. }
  1333. size_t PB_CS_S_ReplayRecordResp::ByteSizeLong() const {
  1334. // @@protoc_insertion_point(message_byte_size_start:RecordPacket.PB_CS_S_ReplayRecordResp)
  1335. size_t total_size = 0;
  1336. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1337. // Prevent compiler warnings about cached_has_bits being unused
  1338. (void) cached_has_bits;
  1339. // repeated .RecordPacket.pb_ChairRecord m_chairList = 7;
  1340. total_size += 1UL * this->_internal_m_chairlist_size();
  1341. for (const auto& msg : this->m_chairlist_) {
  1342. total_size +=
  1343. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  1344. }
  1345. // repeated .RecordPacket.pb_GameRecordPacket pRecordPacket = 8;
  1346. total_size += 1UL * this->_internal_precordpacket_size();
  1347. for (const auto& msg : this->precordpacket_) {
  1348. total_size +=
  1349. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  1350. }
  1351. // .RecordPacket.pb_GameConfig m_gameconfig = 6;
  1352. if (this->has_m_gameconfig()) {
  1353. total_size += 1 +
  1354. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  1355. *m_gameconfig_);
  1356. }
  1357. // uint32 m_UUID = 1;
  1358. if (this->m_uuid() != 0) {
  1359. total_size += 1 +
  1360. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  1361. this->_internal_m_uuid());
  1362. }
  1363. // uint32 m_startTime = 3;
  1364. if (this->m_starttime() != 0) {
  1365. total_size += 1 +
  1366. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  1367. this->_internal_m_starttime());
  1368. }
  1369. // uint32 m_endTime = 4;
  1370. if (this->m_endtime() != 0) {
  1371. total_size += 1 +
  1372. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  1373. this->_internal_m_endtime());
  1374. }
  1375. // uint32 m_UserId = 5;
  1376. if (this->m_userid() != 0) {
  1377. total_size += 1 +
  1378. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  1379. this->_internal_m_userid());
  1380. }
  1381. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1382. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  1383. _internal_metadata_, total_size, &_cached_size_);
  1384. }
  1385. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  1386. SetCachedSize(cached_size);
  1387. return total_size;
  1388. }
  1389. void PB_CS_S_ReplayRecordResp::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1390. // @@protoc_insertion_point(generalized_merge_from_start:RecordPacket.PB_CS_S_ReplayRecordResp)
  1391. GOOGLE_DCHECK_NE(&from, this);
  1392. const PB_CS_S_ReplayRecordResp* source =
  1393. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PB_CS_S_ReplayRecordResp>(
  1394. &from);
  1395. if (source == nullptr) {
  1396. // @@protoc_insertion_point(generalized_merge_from_cast_fail:RecordPacket.PB_CS_S_ReplayRecordResp)
  1397. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  1398. } else {
  1399. // @@protoc_insertion_point(generalized_merge_from_cast_success:RecordPacket.PB_CS_S_ReplayRecordResp)
  1400. MergeFrom(*source);
  1401. }
  1402. }
  1403. void PB_CS_S_ReplayRecordResp::MergeFrom(const PB_CS_S_ReplayRecordResp& from) {
  1404. // @@protoc_insertion_point(class_specific_merge_from_start:RecordPacket.PB_CS_S_ReplayRecordResp)
  1405. GOOGLE_DCHECK_NE(&from, this);
  1406. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1407. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1408. (void) cached_has_bits;
  1409. m_chairlist_.MergeFrom(from.m_chairlist_);
  1410. precordpacket_.MergeFrom(from.precordpacket_);
  1411. if (from.has_m_gameconfig()) {
  1412. _internal_mutable_m_gameconfig()->::RecordPacket::pb_GameConfig::MergeFrom(from._internal_m_gameconfig());
  1413. }
  1414. if (from.m_uuid() != 0) {
  1415. _internal_set_m_uuid(from._internal_m_uuid());
  1416. }
  1417. if (from.m_starttime() != 0) {
  1418. _internal_set_m_starttime(from._internal_m_starttime());
  1419. }
  1420. if (from.m_endtime() != 0) {
  1421. _internal_set_m_endtime(from._internal_m_endtime());
  1422. }
  1423. if (from.m_userid() != 0) {
  1424. _internal_set_m_userid(from._internal_m_userid());
  1425. }
  1426. }
  1427. void PB_CS_S_ReplayRecordResp::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1428. // @@protoc_insertion_point(generalized_copy_from_start:RecordPacket.PB_CS_S_ReplayRecordResp)
  1429. if (&from == this) return;
  1430. Clear();
  1431. MergeFrom(from);
  1432. }
  1433. void PB_CS_S_ReplayRecordResp::CopyFrom(const PB_CS_S_ReplayRecordResp& from) {
  1434. // @@protoc_insertion_point(class_specific_copy_from_start:RecordPacket.PB_CS_S_ReplayRecordResp)
  1435. if (&from == this) return;
  1436. Clear();
  1437. MergeFrom(from);
  1438. }
  1439. bool PB_CS_S_ReplayRecordResp::IsInitialized() const {
  1440. return true;
  1441. }
  1442. void PB_CS_S_ReplayRecordResp::InternalSwap(PB_CS_S_ReplayRecordResp* other) {
  1443. using std::swap;
  1444. _internal_metadata_.Swap(&other->_internal_metadata_);
  1445. m_chairlist_.InternalSwap(&other->m_chairlist_);
  1446. precordpacket_.InternalSwap(&other->precordpacket_);
  1447. swap(m_gameconfig_, other->m_gameconfig_);
  1448. swap(m_uuid_, other->m_uuid_);
  1449. swap(m_starttime_, other->m_starttime_);
  1450. swap(m_endtime_, other->m_endtime_);
  1451. swap(m_userid_, other->m_userid_);
  1452. }
  1453. ::PROTOBUF_NAMESPACE_ID::Metadata PB_CS_S_ReplayRecordResp::GetMetadata() const {
  1454. return GetMetadataStatic();
  1455. }
  1456. // @@protoc_insertion_point(namespace_scope)
  1457. } // namespace RecordPacket
  1458. PROTOBUF_NAMESPACE_OPEN
  1459. template<> PROTOBUF_NOINLINE ::RecordPacket::pb_GameRecordPacket* Arena::CreateMaybeMessage< ::RecordPacket::pb_GameRecordPacket >(Arena* arena) {
  1460. return Arena::CreateInternal< ::RecordPacket::pb_GameRecordPacket >(arena);
  1461. }
  1462. template<> PROTOBUF_NOINLINE ::RecordPacket::pb_GameConfig* Arena::CreateMaybeMessage< ::RecordPacket::pb_GameConfig >(Arena* arena) {
  1463. return Arena::CreateInternal< ::RecordPacket::pb_GameConfig >(arena);
  1464. }
  1465. template<> PROTOBUF_NOINLINE ::RecordPacket::pb_ChairRecord* Arena::CreateMaybeMessage< ::RecordPacket::pb_ChairRecord >(Arena* arena) {
  1466. return Arena::CreateInternal< ::RecordPacket::pb_ChairRecord >(arena);
  1467. }
  1468. template<> PROTOBUF_NOINLINE ::RecordPacket::PB_CS_S_ReplayRecordResp* Arena::CreateMaybeMessage< ::RecordPacket::PB_CS_S_ReplayRecordResp >(Arena* arena) {
  1469. return Arena::CreateInternal< ::RecordPacket::PB_CS_S_ReplayRecordResp >(arena);
  1470. }
  1471. PROTOBUF_NAMESPACE_CLOSE
  1472. // @@protoc_insertion_point(global_scope)
  1473. #include <google/protobuf/port_undef.inc>