诸暨麻将添加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.
 
 
 
 
 
 

4883 regels
185 KiB

  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: Pb_GameInfo.proto
  3. #include "Pb_GameInfo.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_5fGameInfo_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PB_CS_C_tagGameConfig_Pb_5fGameInfo_2eproto;
  15. extern PROTOBUF_INTERNAL_EXPORT_Pb_5fGameInfo_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_pb_WeaveItem_Pb_5fGameInfo_2eproto;
  16. extern PROTOBUF_INTERNAL_EXPORT_Pb_5fGameInfo_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_pb_WeaveItemArray_Pb_5fGameInfo_2eproto;
  17. extern PROTOBUF_INTERNAL_EXPORT_Pb_5fGameInfo_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_pb_cbDiscardCard_Pb_5fGameInfo_2eproto;
  18. extern PROTOBUF_INTERNAL_EXPORT_Pb_5fGameInfo_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_pb_dwUserName_Pb_5fGameInfo_2eproto;
  19. namespace GameInfo {
  20. class PB_CS_USER_READYDefaultTypeInternal {
  21. public:
  22. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PB_CS_USER_READY> _instance;
  23. } _PB_CS_USER_READY_default_instance_;
  24. class pb_dwUserNameDefaultTypeInternal {
  25. public:
  26. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<pb_dwUserName> _instance;
  27. } _pb_dwUserName_default_instance_;
  28. class PB_CS_S_SHUFFLE_ALL_ACKDefaultTypeInternal {
  29. public:
  30. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PB_CS_S_SHUFFLE_ALL_ACK> _instance;
  31. } _PB_CS_S_SHUFFLE_ALL_ACK_default_instance_;
  32. class PB_CS_UserChatDefaultTypeInternal {
  33. public:
  34. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PB_CS_UserChat> _instance;
  35. } _PB_CS_UserChat_default_instance_;
  36. class PB_CS_UserExpressionDefaultTypeInternal {
  37. public:
  38. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PB_CS_UserExpression> _instance;
  39. } _PB_CS_UserExpression_default_instance_;
  40. class PB_CS_GameStatusDefaultTypeInternal {
  41. public:
  42. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PB_CS_GameStatus> _instance;
  43. } _PB_CS_GameStatus_default_instance_;
  44. class PB_CS_C_tagGameConfigDefaultTypeInternal {
  45. public:
  46. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PB_CS_C_tagGameConfig> _instance;
  47. } _PB_CS_C_tagGameConfig_default_instance_;
  48. class PB_CS_S_StatusFreeDefaultTypeInternal {
  49. public:
  50. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PB_CS_S_StatusFree> _instance;
  51. } _PB_CS_S_StatusFree_default_instance_;
  52. class pb_WeaveItemDefaultTypeInternal {
  53. public:
  54. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<pb_WeaveItem> _instance;
  55. } _pb_WeaveItem_default_instance_;
  56. class pb_WeaveItemArrayDefaultTypeInternal {
  57. public:
  58. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<pb_WeaveItemArray> _instance;
  59. } _pb_WeaveItemArray_default_instance_;
  60. class pb_cbDiscardCardDefaultTypeInternal {
  61. public:
  62. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<pb_cbDiscardCard> _instance;
  63. } _pb_cbDiscardCard_default_instance_;
  64. class PB_CS_S_StatusPlayDefaultTypeInternal {
  65. public:
  66. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PB_CS_S_StatusPlay> _instance;
  67. } _PB_CS_S_StatusPlay_default_instance_;
  68. class PB_CS_S_UserDistanceDefaultTypeInternal {
  69. public:
  70. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PB_CS_S_UserDistance> _instance;
  71. } _PB_CS_S_UserDistance_default_instance_;
  72. class PB_CS_S_SystemMessageDefaultTypeInternal {
  73. public:
  74. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PB_CS_S_SystemMessage> _instance;
  75. } _PB_CS_S_SystemMessage_default_instance_;
  76. } // namespace GameInfo
  77. static void InitDefaultsscc_info_PB_CS_C_tagGameConfig_Pb_5fGameInfo_2eproto() {
  78. GOOGLE_PROTOBUF_VERIFY_VERSION;
  79. {
  80. void* ptr = &::GameInfo::_PB_CS_C_tagGameConfig_default_instance_;
  81. new (ptr) ::GameInfo::PB_CS_C_tagGameConfig();
  82. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  83. }
  84. ::GameInfo::PB_CS_C_tagGameConfig::InitAsDefaultInstance();
  85. }
  86. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PB_CS_C_tagGameConfig_Pb_5fGameInfo_2eproto =
  87. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PB_CS_C_tagGameConfig_Pb_5fGameInfo_2eproto}, {}};
  88. static void InitDefaultsscc_info_PB_CS_GameStatus_Pb_5fGameInfo_2eproto() {
  89. GOOGLE_PROTOBUF_VERIFY_VERSION;
  90. {
  91. void* ptr = &::GameInfo::_PB_CS_GameStatus_default_instance_;
  92. new (ptr) ::GameInfo::PB_CS_GameStatus();
  93. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  94. }
  95. ::GameInfo::PB_CS_GameStatus::InitAsDefaultInstance();
  96. }
  97. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PB_CS_GameStatus_Pb_5fGameInfo_2eproto =
  98. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PB_CS_GameStatus_Pb_5fGameInfo_2eproto}, {}};
  99. static void InitDefaultsscc_info_PB_CS_S_SHUFFLE_ALL_ACK_Pb_5fGameInfo_2eproto() {
  100. GOOGLE_PROTOBUF_VERIFY_VERSION;
  101. {
  102. void* ptr = &::GameInfo::_PB_CS_S_SHUFFLE_ALL_ACK_default_instance_;
  103. new (ptr) ::GameInfo::PB_CS_S_SHUFFLE_ALL_ACK();
  104. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  105. }
  106. ::GameInfo::PB_CS_S_SHUFFLE_ALL_ACK::InitAsDefaultInstance();
  107. }
  108. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PB_CS_S_SHUFFLE_ALL_ACK_Pb_5fGameInfo_2eproto =
  109. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PB_CS_S_SHUFFLE_ALL_ACK_Pb_5fGameInfo_2eproto}, {
  110. &scc_info_pb_dwUserName_Pb_5fGameInfo_2eproto.base,}};
  111. static void InitDefaultsscc_info_PB_CS_S_StatusFree_Pb_5fGameInfo_2eproto() {
  112. GOOGLE_PROTOBUF_VERIFY_VERSION;
  113. {
  114. void* ptr = &::GameInfo::_PB_CS_S_StatusFree_default_instance_;
  115. new (ptr) ::GameInfo::PB_CS_S_StatusFree();
  116. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  117. }
  118. ::GameInfo::PB_CS_S_StatusFree::InitAsDefaultInstance();
  119. }
  120. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PB_CS_S_StatusFree_Pb_5fGameInfo_2eproto =
  121. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PB_CS_S_StatusFree_Pb_5fGameInfo_2eproto}, {
  122. &scc_info_PB_CS_C_tagGameConfig_Pb_5fGameInfo_2eproto.base,}};
  123. static void InitDefaultsscc_info_PB_CS_S_StatusPlay_Pb_5fGameInfo_2eproto() {
  124. GOOGLE_PROTOBUF_VERIFY_VERSION;
  125. {
  126. void* ptr = &::GameInfo::_PB_CS_S_StatusPlay_default_instance_;
  127. new (ptr) ::GameInfo::PB_CS_S_StatusPlay();
  128. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  129. }
  130. ::GameInfo::PB_CS_S_StatusPlay::InitAsDefaultInstance();
  131. }
  132. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_PB_CS_S_StatusPlay_Pb_5fGameInfo_2eproto =
  133. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, 0, InitDefaultsscc_info_PB_CS_S_StatusPlay_Pb_5fGameInfo_2eproto}, {
  134. &scc_info_PB_CS_C_tagGameConfig_Pb_5fGameInfo_2eproto.base,
  135. &scc_info_pb_cbDiscardCard_Pb_5fGameInfo_2eproto.base,
  136. &scc_info_pb_WeaveItemArray_Pb_5fGameInfo_2eproto.base,}};
  137. static void InitDefaultsscc_info_PB_CS_S_SystemMessage_Pb_5fGameInfo_2eproto() {
  138. GOOGLE_PROTOBUF_VERIFY_VERSION;
  139. {
  140. void* ptr = &::GameInfo::_PB_CS_S_SystemMessage_default_instance_;
  141. new (ptr) ::GameInfo::PB_CS_S_SystemMessage();
  142. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  143. }
  144. ::GameInfo::PB_CS_S_SystemMessage::InitAsDefaultInstance();
  145. }
  146. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PB_CS_S_SystemMessage_Pb_5fGameInfo_2eproto =
  147. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PB_CS_S_SystemMessage_Pb_5fGameInfo_2eproto}, {}};
  148. static void InitDefaultsscc_info_PB_CS_S_UserDistance_Pb_5fGameInfo_2eproto() {
  149. GOOGLE_PROTOBUF_VERIFY_VERSION;
  150. {
  151. void* ptr = &::GameInfo::_PB_CS_S_UserDistance_default_instance_;
  152. new (ptr) ::GameInfo::PB_CS_S_UserDistance();
  153. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  154. }
  155. ::GameInfo::PB_CS_S_UserDistance::InitAsDefaultInstance();
  156. }
  157. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PB_CS_S_UserDistance_Pb_5fGameInfo_2eproto =
  158. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PB_CS_S_UserDistance_Pb_5fGameInfo_2eproto}, {}};
  159. static void InitDefaultsscc_info_PB_CS_USER_READY_Pb_5fGameInfo_2eproto() {
  160. GOOGLE_PROTOBUF_VERIFY_VERSION;
  161. {
  162. void* ptr = &::GameInfo::_PB_CS_USER_READY_default_instance_;
  163. new (ptr) ::GameInfo::PB_CS_USER_READY();
  164. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  165. }
  166. ::GameInfo::PB_CS_USER_READY::InitAsDefaultInstance();
  167. }
  168. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PB_CS_USER_READY_Pb_5fGameInfo_2eproto =
  169. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PB_CS_USER_READY_Pb_5fGameInfo_2eproto}, {}};
  170. static void InitDefaultsscc_info_PB_CS_UserChat_Pb_5fGameInfo_2eproto() {
  171. GOOGLE_PROTOBUF_VERIFY_VERSION;
  172. {
  173. void* ptr = &::GameInfo::_PB_CS_UserChat_default_instance_;
  174. new (ptr) ::GameInfo::PB_CS_UserChat();
  175. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  176. }
  177. ::GameInfo::PB_CS_UserChat::InitAsDefaultInstance();
  178. }
  179. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PB_CS_UserChat_Pb_5fGameInfo_2eproto =
  180. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PB_CS_UserChat_Pb_5fGameInfo_2eproto}, {}};
  181. static void InitDefaultsscc_info_PB_CS_UserExpression_Pb_5fGameInfo_2eproto() {
  182. GOOGLE_PROTOBUF_VERIFY_VERSION;
  183. {
  184. void* ptr = &::GameInfo::_PB_CS_UserExpression_default_instance_;
  185. new (ptr) ::GameInfo::PB_CS_UserExpression();
  186. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  187. }
  188. ::GameInfo::PB_CS_UserExpression::InitAsDefaultInstance();
  189. }
  190. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PB_CS_UserExpression_Pb_5fGameInfo_2eproto =
  191. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PB_CS_UserExpression_Pb_5fGameInfo_2eproto}, {}};
  192. static void InitDefaultsscc_info_pb_WeaveItem_Pb_5fGameInfo_2eproto() {
  193. GOOGLE_PROTOBUF_VERIFY_VERSION;
  194. {
  195. void* ptr = &::GameInfo::_pb_WeaveItem_default_instance_;
  196. new (ptr) ::GameInfo::pb_WeaveItem();
  197. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  198. }
  199. ::GameInfo::pb_WeaveItem::InitAsDefaultInstance();
  200. }
  201. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_pb_WeaveItem_Pb_5fGameInfo_2eproto =
  202. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_pb_WeaveItem_Pb_5fGameInfo_2eproto}, {}};
  203. static void InitDefaultsscc_info_pb_WeaveItemArray_Pb_5fGameInfo_2eproto() {
  204. GOOGLE_PROTOBUF_VERIFY_VERSION;
  205. {
  206. void* ptr = &::GameInfo::_pb_WeaveItemArray_default_instance_;
  207. new (ptr) ::GameInfo::pb_WeaveItemArray();
  208. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  209. }
  210. ::GameInfo::pb_WeaveItemArray::InitAsDefaultInstance();
  211. }
  212. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_pb_WeaveItemArray_Pb_5fGameInfo_2eproto =
  213. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_pb_WeaveItemArray_Pb_5fGameInfo_2eproto}, {
  214. &scc_info_pb_WeaveItem_Pb_5fGameInfo_2eproto.base,}};
  215. static void InitDefaultsscc_info_pb_cbDiscardCard_Pb_5fGameInfo_2eproto() {
  216. GOOGLE_PROTOBUF_VERIFY_VERSION;
  217. {
  218. void* ptr = &::GameInfo::_pb_cbDiscardCard_default_instance_;
  219. new (ptr) ::GameInfo::pb_cbDiscardCard();
  220. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  221. }
  222. ::GameInfo::pb_cbDiscardCard::InitAsDefaultInstance();
  223. }
  224. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_pb_cbDiscardCard_Pb_5fGameInfo_2eproto =
  225. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_pb_cbDiscardCard_Pb_5fGameInfo_2eproto}, {}};
  226. static void InitDefaultsscc_info_pb_dwUserName_Pb_5fGameInfo_2eproto() {
  227. GOOGLE_PROTOBUF_VERIFY_VERSION;
  228. {
  229. void* ptr = &::GameInfo::_pb_dwUserName_default_instance_;
  230. new (ptr) ::GameInfo::pb_dwUserName();
  231. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  232. }
  233. ::GameInfo::pb_dwUserName::InitAsDefaultInstance();
  234. }
  235. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_pb_dwUserName_Pb_5fGameInfo_2eproto =
  236. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_pb_dwUserName_Pb_5fGameInfo_2eproto}, {}};
  237. static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_Pb_5fGameInfo_2eproto[14];
  238. static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_Pb_5fGameInfo_2eproto = nullptr;
  239. static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_Pb_5fGameInfo_2eproto = nullptr;
  240. const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_Pb_5fGameInfo_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  241. ~0u, // no _has_bits_
  242. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_USER_READY, _internal_metadata_),
  243. ~0u, // no _extensions_
  244. ~0u, // no _oneof_case_
  245. ~0u, // no _weak_field_map_
  246. ~0u, // no _has_bits_
  247. PROTOBUF_FIELD_OFFSET(::GameInfo::pb_dwUserName, _internal_metadata_),
  248. ~0u, // no _extensions_
  249. ~0u, // no _oneof_case_
  250. ~0u, // no _weak_field_map_
  251. PROTOBUF_FIELD_OFFSET(::GameInfo::pb_dwUserName, dwusername_),
  252. ~0u, // no _has_bits_
  253. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_SHUFFLE_ALL_ACK, _internal_metadata_),
  254. ~0u, // no _extensions_
  255. ~0u, // no _oneof_case_
  256. ~0u, // no _weak_field_map_
  257. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_SHUFFLE_ALL_ACK, cbcount_),
  258. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_SHUFFLE_ALL_ACK, dwusername_),
  259. ~0u, // no _has_bits_
  260. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_UserChat, _internal_metadata_),
  261. ~0u, // no _extensions_
  262. ~0u, // no _oneof_case_
  263. ~0u, // no _weak_field_map_
  264. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_UserChat, wchatlength_),
  265. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_UserChat, dwchatcolor_),
  266. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_UserChat, dwtargetuserid_),
  267. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_UserChat, dwsenduserid_),
  268. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_UserChat, szchatstring_),
  269. ~0u, // no _has_bits_
  270. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_UserExpression, _internal_metadata_),
  271. ~0u, // no _extensions_
  272. ~0u, // no _oneof_case_
  273. ~0u, // no _weak_field_map_
  274. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_UserExpression, witemindex_),
  275. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_UserExpression, dwsenduserid_),
  276. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_UserExpression, dwtargetuserid_),
  277. ~0u, // no _has_bits_
  278. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_GameStatus, _internal_metadata_),
  279. ~0u, // no _extensions_
  280. ~0u, // no _oneof_case_
  281. ~0u, // no _weak_field_map_
  282. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_GameStatus, cbgamestatus_),
  283. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_GameStatus, cballowlookon_),
  284. ~0u, // no _has_bits_
  285. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_C_tagGameConfig, _internal_metadata_),
  286. ~0u, // no _extensions_
  287. ~0u, // no _oneof_case_
  288. ~0u, // no _weak_field_map_
  289. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_C_tagGameConfig, wsubgameid_),
  290. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_C_tagGameConfig, wplayrule_),
  291. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_C_tagGameConfig, wmaxfanrule_),
  292. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_C_tagGameConfig, wmaxscore_),
  293. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_C_tagGameConfig, wplaycountrule_),
  294. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_C_tagGameConfig, whadplaycount_),
  295. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_C_tagGameConfig, zmextrarule_),
  296. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_C_tagGameConfig, dghrule_),
  297. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_C_tagGameConfig, sprivatetableid_),
  298. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_C_tagGameConfig, bduolai_),
  299. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_C_tagGameConfig, wfengding_),
  300. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_C_tagGameConfig, tmp1_),
  301. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_C_tagGameConfig, tmp2_),
  302. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_C_tagGameConfig, tmp3_),
  303. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_C_tagGameConfig, tmp4_),
  304. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_C_tagGameConfig, tmp5_),
  305. ~0u, // no _has_bits_
  306. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusFree, _internal_metadata_),
  307. ~0u, // no _extensions_
  308. ~0u, // no _oneof_case_
  309. ~0u, // no _weak_field_map_
  310. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusFree, gameconfig_),
  311. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusFree, lusertmpscore_),
  312. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusFree, lefttime_),
  313. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusFree, wchairid_),
  314. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusFree, options_),
  315. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusFree, userstat_),
  316. ~0u, // no _has_bits_
  317. PROTOBUF_FIELD_OFFSET(::GameInfo::pb_WeaveItem, _internal_metadata_),
  318. ~0u, // no _extensions_
  319. ~0u, // no _oneof_case_
  320. ~0u, // no _weak_field_map_
  321. PROTOBUF_FIELD_OFFSET(::GameInfo::pb_WeaveItem, cbweavekind_),
  322. PROTOBUF_FIELD_OFFSET(::GameInfo::pb_WeaveItem, cbcentercard_),
  323. PROTOBUF_FIELD_OFFSET(::GameInfo::pb_WeaveItem, cbpubliccard_),
  324. PROTOBUF_FIELD_OFFSET(::GameInfo::pb_WeaveItem, wprovideuser_),
  325. PROTOBUF_FIELD_OFFSET(::GameInfo::pb_WeaveItem, cbmargicoffset_),
  326. ~0u, // no _has_bits_
  327. PROTOBUF_FIELD_OFFSET(::GameInfo::pb_WeaveItemArray, _internal_metadata_),
  328. ~0u, // no _extensions_
  329. ~0u, // no _oneof_case_
  330. ~0u, // no _weak_field_map_
  331. PROTOBUF_FIELD_OFFSET(::GameInfo::pb_WeaveItemArray, weaveitem_),
  332. ~0u, // no _has_bits_
  333. PROTOBUF_FIELD_OFFSET(::GameInfo::pb_cbDiscardCard, _internal_metadata_),
  334. ~0u, // no _extensions_
  335. ~0u, // no _oneof_case_
  336. ~0u, // no _weak_field_map_
  337. PROTOBUF_FIELD_OFFSET(::GameInfo::pb_cbDiscardCard, cbdiscardcard_),
  338. ~0u, // no _has_bits_
  339. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusPlay, _internal_metadata_),
  340. ~0u, // no _extensions_
  341. ~0u, // no _oneof_case_
  342. ~0u, // no _weak_field_map_
  343. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusPlay, gameconfig_),
  344. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusPlay, lusertmpscore_),
  345. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusPlay, lefttime_),
  346. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusPlay, wchairid_),
  347. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusPlay, options_),
  348. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusPlay, cbtotalcardcount_),
  349. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusPlay, cbleftcardcount_),
  350. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusPlay, wbankeruser_),
  351. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusPlay, lsizi_),
  352. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusPlay, dwownerid_),
  353. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusPlay, wcurrentuser_),
  354. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusPlay, bputcarddata_),
  355. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusPlay, totalopttime_),
  356. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusPlay, leftopttime_),
  357. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusPlay, cbdiscardcount_),
  358. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusPlay, cbdiscardcard_),
  359. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusPlay, cbcardcount_),
  360. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusPlay, cbweavecount_),
  361. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusPlay, weaveitemarray_),
  362. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusPlay, cbcarddata_),
  363. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusPlay, cbactionmask_),
  364. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_StatusPlay, gangcards_),
  365. ~0u, // no _has_bits_
  366. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_UserDistance, _internal_metadata_),
  367. ~0u, // no _extensions_
  368. ~0u, // no _oneof_case_
  369. ~0u, // no _weak_field_map_
  370. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_UserDistance, cboperlocation_),
  371. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_UserDistance, dwuserdistance_),
  372. ~0u, // no _has_bits_
  373. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_SystemMessage, _internal_metadata_),
  374. ~0u, // no _extensions_
  375. ~0u, // no _oneof_case_
  376. ~0u, // no _weak_field_map_
  377. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_SystemMessage, wtype_),
  378. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_SystemMessage, wlength_),
  379. PROTOBUF_FIELD_OFFSET(::GameInfo::PB_CS_S_SystemMessage, szstring_),
  380. };
  381. static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  382. { 0, -1, sizeof(::GameInfo::PB_CS_USER_READY)},
  383. { 5, -1, sizeof(::GameInfo::pb_dwUserName)},
  384. { 11, -1, sizeof(::GameInfo::PB_CS_S_SHUFFLE_ALL_ACK)},
  385. { 18, -1, sizeof(::GameInfo::PB_CS_UserChat)},
  386. { 28, -1, sizeof(::GameInfo::PB_CS_UserExpression)},
  387. { 36, -1, sizeof(::GameInfo::PB_CS_GameStatus)},
  388. { 43, -1, sizeof(::GameInfo::PB_CS_C_tagGameConfig)},
  389. { 64, -1, sizeof(::GameInfo::PB_CS_S_StatusFree)},
  390. { 75, -1, sizeof(::GameInfo::pb_WeaveItem)},
  391. { 85, -1, sizeof(::GameInfo::pb_WeaveItemArray)},
  392. { 91, -1, sizeof(::GameInfo::pb_cbDiscardCard)},
  393. { 97, -1, sizeof(::GameInfo::PB_CS_S_StatusPlay)},
  394. { 124, -1, sizeof(::GameInfo::PB_CS_S_UserDistance)},
  395. { 131, -1, sizeof(::GameInfo::PB_CS_S_SystemMessage)},
  396. };
  397. static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  398. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::GameInfo::_PB_CS_USER_READY_default_instance_),
  399. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::GameInfo::_pb_dwUserName_default_instance_),
  400. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::GameInfo::_PB_CS_S_SHUFFLE_ALL_ACK_default_instance_),
  401. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::GameInfo::_PB_CS_UserChat_default_instance_),
  402. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::GameInfo::_PB_CS_UserExpression_default_instance_),
  403. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::GameInfo::_PB_CS_GameStatus_default_instance_),
  404. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::GameInfo::_PB_CS_C_tagGameConfig_default_instance_),
  405. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::GameInfo::_PB_CS_S_StatusFree_default_instance_),
  406. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::GameInfo::_pb_WeaveItem_default_instance_),
  407. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::GameInfo::_pb_WeaveItemArray_default_instance_),
  408. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::GameInfo::_pb_cbDiscardCard_default_instance_),
  409. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::GameInfo::_PB_CS_S_StatusPlay_default_instance_),
  410. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::GameInfo::_PB_CS_S_UserDistance_default_instance_),
  411. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::GameInfo::_PB_CS_S_SystemMessage_default_instance_),
  412. };
  413. const char descriptor_table_protodef_Pb_5fGameInfo_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  414. "\n\021Pb_GameInfo.proto\022\010GameInfo\"\022\n\020PB_CS_U"
  415. "SER_READY\"#\n\rpb_dwUserName\022\022\n\ndwUserName"
  416. "\030\001 \001(\t\"W\n\027PB_CS_S_SHUFFLE_ALL_ACK\022\017\n\007cbC"
  417. "ount\030\001 \001(\r\022+\n\ndwUserName\030\002 \003(\0132\027.GameInf"
  418. "o.pb_dwUserName\"~\n\016PB_CS_UserChat\022\023\n\013wCh"
  419. "atLength\030\001 \001(\r\022\023\n\013dwChatColor\030\002 \001(\r\022\026\n\016d"
  420. "wTargetUserID\030\003 \001(\r\022\024\n\014dwSendUserID\030\004 \001("
  421. "\r\022\024\n\014szChatString\030\005 \001(\t\"X\n\024PB_CS_UserExp"
  422. "ression\022\022\n\nwItemIndex\030\001 \001(\r\022\024\n\014dwSendUse"
  423. "rID\030\002 \001(\r\022\026\n\016dwTargetUserID\030\003 \001(\r\"\?\n\020PB_"
  424. "CS_GameStatus\022\024\n\014cbGameStatus\030\001 \001(\r\022\025\n\rc"
  425. "bAllowLookon\030\002 \001(\r\"\276\002\n\025PB_CS_C_tagGameCo"
  426. "nfig\022\022\n\nwSubGameID\030\001 \001(\r\022\021\n\twPlayRule\030\002 "
  427. "\001(\r\022\023\n\013wMaxFanRule\030\003 \001(\r\022\021\n\twMaxScore\030\004 "
  428. "\001(\r\022\026\n\016wPlayCountRule\030\005 \001(\r\022\025\n\rwHadPlayC"
  429. "ount\030\006 \001(\r\022\023\n\013zmExtraRule\030\007 \001(\r\022\017\n\007dghRu"
  430. "le\030\010 \001(\r\022\027\n\017sPrivateTableID\030\t \001(\t\022\017\n\007bDu"
  431. "oLai\030\n \001(\r\022\021\n\twFengDing\030\013 \001(\r\022\014\n\004tmp1\030\014 "
  432. "\001(\r\022\014\n\004tmp2\030\r \001(\r\022\014\n\004tmp3\030\016 \001(\r\022\014\n\004tmp4\030"
  433. "\017 \001(\r\022\014\n\004tmp5\030\020 \001(\r\"\247\001\n\022PB_CS_S_StatusFr"
  434. "ee\0223\n\ngameConfig\030\001 \001(\0132\037.GameInfo.PB_CS_"
  435. "C_tagGameConfig\022\025\n\rlUserTmpScore\030\002 \003(\022\022\020"
  436. "\n\010leftTime\030\003 \001(\r\022\020\n\010wchairId\030\004 \001(\r\022\017\n\007op"
  437. "tions\030\005 \003(\r\022\020\n\010UserStat\030\006 \001(\r\"}\n\014pb_Weav"
  438. "eItem\022\023\n\013cbWeaveKind\030\001 \001(\r\022\024\n\014cbCenterCa"
  439. "rd\030\002 \001(\r\022\024\n\014cbPublicCard\030\003 \001(\r\022\024\n\014wProvi"
  440. "deUser\030\004 \001(\r\022\026\n\016cbMargicOffset\030\005 \003(\r\">\n\021"
  441. "pb_WeaveItemArray\022)\n\tWeaveItem\030\002 \003(\0132\026.G"
  442. "ameInfo.pb_WeaveItem\")\n\020pb_cbDiscardCard"
  443. "\022\025\n\rcbDiscardCard\030\001 \003(\r\"\276\004\n\022PB_CS_S_Stat"
  444. "usPlay\0223\n\ngameConfig\030\001 \001(\0132\037.GameInfo.PB"
  445. "_CS_C_tagGameConfig\022\025\n\rlUserTmpScore\030\002 \003"
  446. "(\004\022\020\n\010leftTime\030\003 \001(\r\022\020\n\010wchairId\030\004 \001(\r\022\017"
  447. "\n\007options\030\005 \003(\r\022\030\n\020cbTotalCardCount\030\006 \001("
  448. "\r\022\027\n\017cbLeftCardCount\030\007 \001(\r\022\023\n\013wBankerUse"
  449. "r\030\010 \001(\r\022\r\n\005lSiZi\030\t \003(\r\022\021\n\tdwOwnerID\030\n \001("
  450. "\r\022\024\n\014wCurrentUser\030\013 \001(\r\022\024\n\014bPutCardData\030"
  451. "\014 \003(\r\022\024\n\014totalOptTime\030\r \001(\r\022\023\n\013leftOptTi"
  452. "me\030\016 \001(\r\022\026\n\016cbDiscardCount\030\017 \003(\r\0221\n\rcbDi"
  453. "scardCard\030\020 \003(\0132\032.GameInfo.pb_cbDiscardC"
  454. "ard\022\023\n\013cbCardCount\030\021 \003(\r\022\024\n\014cbWeaveCount"
  455. "\030\022 \003(\r\0223\n\016WeaveItemArray\030\023 \003(\0132\033.GameInf"
  456. "o.pb_WeaveItemArray\022\022\n\ncbCardData\030\024 \003(\r\022"
  457. "\024\n\014cbActionMask\030\025 \001(\004\022\021\n\tgangCards\030\026 \003(\r"
  458. "\"F\n\024PB_CS_S_UserDistance\022\026\n\016cbOperLocati"
  459. "on\030\001 \003(\r\022\026\n\016dwUserDistance\030\002 \003(\022\"I\n\025PB_C"
  460. "S_S_SystemMessage\022\r\n\005wType\030\001 \001(\r\022\017\n\007wLen"
  461. "gth\030\002 \001(\r\022\020\n\010szString\030\003 \001(\tb\006proto3"
  462. ;
  463. static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_Pb_5fGameInfo_2eproto_deps[1] = {
  464. };
  465. static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_Pb_5fGameInfo_2eproto_sccs[14] = {
  466. &scc_info_PB_CS_C_tagGameConfig_Pb_5fGameInfo_2eproto.base,
  467. &scc_info_PB_CS_GameStatus_Pb_5fGameInfo_2eproto.base,
  468. &scc_info_PB_CS_S_SHUFFLE_ALL_ACK_Pb_5fGameInfo_2eproto.base,
  469. &scc_info_PB_CS_S_StatusFree_Pb_5fGameInfo_2eproto.base,
  470. &scc_info_PB_CS_S_StatusPlay_Pb_5fGameInfo_2eproto.base,
  471. &scc_info_PB_CS_S_SystemMessage_Pb_5fGameInfo_2eproto.base,
  472. &scc_info_PB_CS_S_UserDistance_Pb_5fGameInfo_2eproto.base,
  473. &scc_info_PB_CS_USER_READY_Pb_5fGameInfo_2eproto.base,
  474. &scc_info_PB_CS_UserChat_Pb_5fGameInfo_2eproto.base,
  475. &scc_info_PB_CS_UserExpression_Pb_5fGameInfo_2eproto.base,
  476. &scc_info_pb_WeaveItem_Pb_5fGameInfo_2eproto.base,
  477. &scc_info_pb_WeaveItemArray_Pb_5fGameInfo_2eproto.base,
  478. &scc_info_pb_cbDiscardCard_Pb_5fGameInfo_2eproto.base,
  479. &scc_info_pb_dwUserName_Pb_5fGameInfo_2eproto.base,
  480. };
  481. static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_Pb_5fGameInfo_2eproto_once;
  482. static bool descriptor_table_Pb_5fGameInfo_2eproto_initialized = false;
  483. const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Pb_5fGameInfo_2eproto = {
  484. &descriptor_table_Pb_5fGameInfo_2eproto_initialized, descriptor_table_protodef_Pb_5fGameInfo_2eproto, "Pb_GameInfo.proto", 1915,
  485. &descriptor_table_Pb_5fGameInfo_2eproto_once, descriptor_table_Pb_5fGameInfo_2eproto_sccs, descriptor_table_Pb_5fGameInfo_2eproto_deps, 14, 0,
  486. schemas, file_default_instances, TableStruct_Pb_5fGameInfo_2eproto::offsets,
  487. file_level_metadata_Pb_5fGameInfo_2eproto, 14, file_level_enum_descriptors_Pb_5fGameInfo_2eproto, file_level_service_descriptors_Pb_5fGameInfo_2eproto,
  488. };
  489. // Force running AddDescriptors() at dynamic initialization time.
  490. static bool dynamic_init_dummy_Pb_5fGameInfo_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_Pb_5fGameInfo_2eproto), true);
  491. namespace GameInfo {
  492. // ===================================================================
  493. void PB_CS_USER_READY::InitAsDefaultInstance() {
  494. }
  495. class PB_CS_USER_READY::_Internal {
  496. public:
  497. };
  498. PB_CS_USER_READY::PB_CS_USER_READY()
  499. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  500. SharedCtor();
  501. // @@protoc_insertion_point(constructor:GameInfo.PB_CS_USER_READY)
  502. }
  503. PB_CS_USER_READY::PB_CS_USER_READY(const PB_CS_USER_READY& from)
  504. : ::PROTOBUF_NAMESPACE_ID::Message(),
  505. _internal_metadata_(nullptr) {
  506. _internal_metadata_.MergeFrom(from._internal_metadata_);
  507. // @@protoc_insertion_point(copy_constructor:GameInfo.PB_CS_USER_READY)
  508. }
  509. void PB_CS_USER_READY::SharedCtor() {
  510. }
  511. PB_CS_USER_READY::~PB_CS_USER_READY() {
  512. // @@protoc_insertion_point(destructor:GameInfo.PB_CS_USER_READY)
  513. SharedDtor();
  514. }
  515. void PB_CS_USER_READY::SharedDtor() {
  516. }
  517. void PB_CS_USER_READY::SetCachedSize(int size) const {
  518. _cached_size_.Set(size);
  519. }
  520. const PB_CS_USER_READY& PB_CS_USER_READY::default_instance() {
  521. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PB_CS_USER_READY_Pb_5fGameInfo_2eproto.base);
  522. return *internal_default_instance();
  523. }
  524. void PB_CS_USER_READY::Clear() {
  525. // @@protoc_insertion_point(message_clear_start:GameInfo.PB_CS_USER_READY)
  526. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  527. // Prevent compiler warnings about cached_has_bits being unused
  528. (void) cached_has_bits;
  529. _internal_metadata_.Clear();
  530. }
  531. const char* PB_CS_USER_READY::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  532. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  533. while (!ctx->Done(&ptr)) {
  534. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  535. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  536. CHK_(ptr);
  537. switch (tag >> 3) {
  538. default: {
  539. if ((tag & 7) == 4 || tag == 0) {
  540. ctx->SetLastTag(tag);
  541. goto success;
  542. }
  543. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  544. CHK_(ptr != nullptr);
  545. continue;
  546. }
  547. } // switch
  548. } // while
  549. success:
  550. return ptr;
  551. failure:
  552. ptr = nullptr;
  553. goto success;
  554. #undef CHK_
  555. }
  556. ::PROTOBUF_NAMESPACE_ID::uint8* PB_CS_USER_READY::InternalSerializeWithCachedSizesToArray(
  557. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  558. // @@protoc_insertion_point(serialize_to_array_start:GameInfo.PB_CS_USER_READY)
  559. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  560. (void) cached_has_bits;
  561. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  562. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  563. _internal_metadata_.unknown_fields(), target, stream);
  564. }
  565. // @@protoc_insertion_point(serialize_to_array_end:GameInfo.PB_CS_USER_READY)
  566. return target;
  567. }
  568. size_t PB_CS_USER_READY::ByteSizeLong() const {
  569. // @@protoc_insertion_point(message_byte_size_start:GameInfo.PB_CS_USER_READY)
  570. size_t total_size = 0;
  571. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  572. // Prevent compiler warnings about cached_has_bits being unused
  573. (void) cached_has_bits;
  574. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  575. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  576. _internal_metadata_, total_size, &_cached_size_);
  577. }
  578. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  579. SetCachedSize(cached_size);
  580. return total_size;
  581. }
  582. void PB_CS_USER_READY::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  583. // @@protoc_insertion_point(generalized_merge_from_start:GameInfo.PB_CS_USER_READY)
  584. GOOGLE_DCHECK_NE(&from, this);
  585. const PB_CS_USER_READY* source =
  586. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PB_CS_USER_READY>(
  587. &from);
  588. if (source == nullptr) {
  589. // @@protoc_insertion_point(generalized_merge_from_cast_fail:GameInfo.PB_CS_USER_READY)
  590. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  591. } else {
  592. // @@protoc_insertion_point(generalized_merge_from_cast_success:GameInfo.PB_CS_USER_READY)
  593. MergeFrom(*source);
  594. }
  595. }
  596. void PB_CS_USER_READY::MergeFrom(const PB_CS_USER_READY& from) {
  597. // @@protoc_insertion_point(class_specific_merge_from_start:GameInfo.PB_CS_USER_READY)
  598. GOOGLE_DCHECK_NE(&from, this);
  599. _internal_metadata_.MergeFrom(from._internal_metadata_);
  600. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  601. (void) cached_has_bits;
  602. }
  603. void PB_CS_USER_READY::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  604. // @@protoc_insertion_point(generalized_copy_from_start:GameInfo.PB_CS_USER_READY)
  605. if (&from == this) return;
  606. Clear();
  607. MergeFrom(from);
  608. }
  609. void PB_CS_USER_READY::CopyFrom(const PB_CS_USER_READY& from) {
  610. // @@protoc_insertion_point(class_specific_copy_from_start:GameInfo.PB_CS_USER_READY)
  611. if (&from == this) return;
  612. Clear();
  613. MergeFrom(from);
  614. }
  615. bool PB_CS_USER_READY::IsInitialized() const {
  616. return true;
  617. }
  618. void PB_CS_USER_READY::InternalSwap(PB_CS_USER_READY* other) {
  619. using std::swap;
  620. _internal_metadata_.Swap(&other->_internal_metadata_);
  621. }
  622. ::PROTOBUF_NAMESPACE_ID::Metadata PB_CS_USER_READY::GetMetadata() const {
  623. return GetMetadataStatic();
  624. }
  625. // ===================================================================
  626. void pb_dwUserName::InitAsDefaultInstance() {
  627. }
  628. class pb_dwUserName::_Internal {
  629. public:
  630. };
  631. pb_dwUserName::pb_dwUserName()
  632. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  633. SharedCtor();
  634. // @@protoc_insertion_point(constructor:GameInfo.pb_dwUserName)
  635. }
  636. pb_dwUserName::pb_dwUserName(const pb_dwUserName& from)
  637. : ::PROTOBUF_NAMESPACE_ID::Message(),
  638. _internal_metadata_(nullptr) {
  639. _internal_metadata_.MergeFrom(from._internal_metadata_);
  640. dwusername_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  641. if (!from._internal_dwusername().empty()) {
  642. dwusername_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.dwusername_);
  643. }
  644. // @@protoc_insertion_point(copy_constructor:GameInfo.pb_dwUserName)
  645. }
  646. void pb_dwUserName::SharedCtor() {
  647. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_pb_dwUserName_Pb_5fGameInfo_2eproto.base);
  648. dwusername_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  649. }
  650. pb_dwUserName::~pb_dwUserName() {
  651. // @@protoc_insertion_point(destructor:GameInfo.pb_dwUserName)
  652. SharedDtor();
  653. }
  654. void pb_dwUserName::SharedDtor() {
  655. dwusername_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  656. }
  657. void pb_dwUserName::SetCachedSize(int size) const {
  658. _cached_size_.Set(size);
  659. }
  660. const pb_dwUserName& pb_dwUserName::default_instance() {
  661. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_pb_dwUserName_Pb_5fGameInfo_2eproto.base);
  662. return *internal_default_instance();
  663. }
  664. void pb_dwUserName::Clear() {
  665. // @@protoc_insertion_point(message_clear_start:GameInfo.pb_dwUserName)
  666. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  667. // Prevent compiler warnings about cached_has_bits being unused
  668. (void) cached_has_bits;
  669. dwusername_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  670. _internal_metadata_.Clear();
  671. }
  672. const char* pb_dwUserName::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  673. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  674. while (!ctx->Done(&ptr)) {
  675. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  676. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  677. CHK_(ptr);
  678. switch (tag >> 3) {
  679. // string dwUserName = 1;
  680. case 1:
  681. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
  682. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(_internal_mutable_dwusername(), ptr, ctx, "GameInfo.pb_dwUserName.dwUserName");
  683. CHK_(ptr);
  684. } else goto handle_unusual;
  685. continue;
  686. default: {
  687. handle_unusual:
  688. if ((tag & 7) == 4 || tag == 0) {
  689. ctx->SetLastTag(tag);
  690. goto success;
  691. }
  692. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  693. CHK_(ptr != nullptr);
  694. continue;
  695. }
  696. } // switch
  697. } // while
  698. success:
  699. return ptr;
  700. failure:
  701. ptr = nullptr;
  702. goto success;
  703. #undef CHK_
  704. }
  705. ::PROTOBUF_NAMESPACE_ID::uint8* pb_dwUserName::InternalSerializeWithCachedSizesToArray(
  706. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  707. // @@protoc_insertion_point(serialize_to_array_start:GameInfo.pb_dwUserName)
  708. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  709. (void) cached_has_bits;
  710. // string dwUserName = 1;
  711. if (this->dwusername().size() > 0) {
  712. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  713. this->_internal_dwusername().data(), static_cast<int>(this->_internal_dwusername().length()),
  714. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  715. "GameInfo.pb_dwUserName.dwUserName");
  716. target = stream->WriteStringMaybeAliased(
  717. 1, this->_internal_dwusername(), target);
  718. }
  719. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  720. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  721. _internal_metadata_.unknown_fields(), target, stream);
  722. }
  723. // @@protoc_insertion_point(serialize_to_array_end:GameInfo.pb_dwUserName)
  724. return target;
  725. }
  726. size_t pb_dwUserName::ByteSizeLong() const {
  727. // @@protoc_insertion_point(message_byte_size_start:GameInfo.pb_dwUserName)
  728. size_t total_size = 0;
  729. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  730. // Prevent compiler warnings about cached_has_bits being unused
  731. (void) cached_has_bits;
  732. // string dwUserName = 1;
  733. if (this->dwusername().size() > 0) {
  734. total_size += 1 +
  735. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  736. this->_internal_dwusername());
  737. }
  738. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  739. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  740. _internal_metadata_, total_size, &_cached_size_);
  741. }
  742. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  743. SetCachedSize(cached_size);
  744. return total_size;
  745. }
  746. void pb_dwUserName::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  747. // @@protoc_insertion_point(generalized_merge_from_start:GameInfo.pb_dwUserName)
  748. GOOGLE_DCHECK_NE(&from, this);
  749. const pb_dwUserName* source =
  750. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<pb_dwUserName>(
  751. &from);
  752. if (source == nullptr) {
  753. // @@protoc_insertion_point(generalized_merge_from_cast_fail:GameInfo.pb_dwUserName)
  754. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  755. } else {
  756. // @@protoc_insertion_point(generalized_merge_from_cast_success:GameInfo.pb_dwUserName)
  757. MergeFrom(*source);
  758. }
  759. }
  760. void pb_dwUserName::MergeFrom(const pb_dwUserName& from) {
  761. // @@protoc_insertion_point(class_specific_merge_from_start:GameInfo.pb_dwUserName)
  762. GOOGLE_DCHECK_NE(&from, this);
  763. _internal_metadata_.MergeFrom(from._internal_metadata_);
  764. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  765. (void) cached_has_bits;
  766. if (from.dwusername().size() > 0) {
  767. dwusername_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.dwusername_);
  768. }
  769. }
  770. void pb_dwUserName::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  771. // @@protoc_insertion_point(generalized_copy_from_start:GameInfo.pb_dwUserName)
  772. if (&from == this) return;
  773. Clear();
  774. MergeFrom(from);
  775. }
  776. void pb_dwUserName::CopyFrom(const pb_dwUserName& from) {
  777. // @@protoc_insertion_point(class_specific_copy_from_start:GameInfo.pb_dwUserName)
  778. if (&from == this) return;
  779. Clear();
  780. MergeFrom(from);
  781. }
  782. bool pb_dwUserName::IsInitialized() const {
  783. return true;
  784. }
  785. void pb_dwUserName::InternalSwap(pb_dwUserName* other) {
  786. using std::swap;
  787. _internal_metadata_.Swap(&other->_internal_metadata_);
  788. dwusername_.Swap(&other->dwusername_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  789. GetArenaNoVirtual());
  790. }
  791. ::PROTOBUF_NAMESPACE_ID::Metadata pb_dwUserName::GetMetadata() const {
  792. return GetMetadataStatic();
  793. }
  794. // ===================================================================
  795. void PB_CS_S_SHUFFLE_ALL_ACK::InitAsDefaultInstance() {
  796. }
  797. class PB_CS_S_SHUFFLE_ALL_ACK::_Internal {
  798. public:
  799. };
  800. PB_CS_S_SHUFFLE_ALL_ACK::PB_CS_S_SHUFFLE_ALL_ACK()
  801. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  802. SharedCtor();
  803. // @@protoc_insertion_point(constructor:GameInfo.PB_CS_S_SHUFFLE_ALL_ACK)
  804. }
  805. PB_CS_S_SHUFFLE_ALL_ACK::PB_CS_S_SHUFFLE_ALL_ACK(const PB_CS_S_SHUFFLE_ALL_ACK& from)
  806. : ::PROTOBUF_NAMESPACE_ID::Message(),
  807. _internal_metadata_(nullptr),
  808. dwusername_(from.dwusername_) {
  809. _internal_metadata_.MergeFrom(from._internal_metadata_);
  810. cbcount_ = from.cbcount_;
  811. // @@protoc_insertion_point(copy_constructor:GameInfo.PB_CS_S_SHUFFLE_ALL_ACK)
  812. }
  813. void PB_CS_S_SHUFFLE_ALL_ACK::SharedCtor() {
  814. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PB_CS_S_SHUFFLE_ALL_ACK_Pb_5fGameInfo_2eproto.base);
  815. cbcount_ = 0u;
  816. }
  817. PB_CS_S_SHUFFLE_ALL_ACK::~PB_CS_S_SHUFFLE_ALL_ACK() {
  818. // @@protoc_insertion_point(destructor:GameInfo.PB_CS_S_SHUFFLE_ALL_ACK)
  819. SharedDtor();
  820. }
  821. void PB_CS_S_SHUFFLE_ALL_ACK::SharedDtor() {
  822. }
  823. void PB_CS_S_SHUFFLE_ALL_ACK::SetCachedSize(int size) const {
  824. _cached_size_.Set(size);
  825. }
  826. const PB_CS_S_SHUFFLE_ALL_ACK& PB_CS_S_SHUFFLE_ALL_ACK::default_instance() {
  827. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PB_CS_S_SHUFFLE_ALL_ACK_Pb_5fGameInfo_2eproto.base);
  828. return *internal_default_instance();
  829. }
  830. void PB_CS_S_SHUFFLE_ALL_ACK::Clear() {
  831. // @@protoc_insertion_point(message_clear_start:GameInfo.PB_CS_S_SHUFFLE_ALL_ACK)
  832. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  833. // Prevent compiler warnings about cached_has_bits being unused
  834. (void) cached_has_bits;
  835. dwusername_.Clear();
  836. cbcount_ = 0u;
  837. _internal_metadata_.Clear();
  838. }
  839. const char* PB_CS_S_SHUFFLE_ALL_ACK::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  840. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  841. while (!ctx->Done(&ptr)) {
  842. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  843. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  844. CHK_(ptr);
  845. switch (tag >> 3) {
  846. // uint32 cbCount = 1;
  847. case 1:
  848. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
  849. cbcount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  850. CHK_(ptr);
  851. } else goto handle_unusual;
  852. continue;
  853. // repeated .GameInfo.pb_dwUserName dwUserName = 2;
  854. case 2:
  855. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
  856. ptr -= 1;
  857. do {
  858. ptr += 1;
  859. ptr = ctx->ParseMessage(_internal_add_dwusername(), ptr);
  860. CHK_(ptr);
  861. if (!ctx->DataAvailable(ptr)) break;
  862. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
  863. } else goto handle_unusual;
  864. continue;
  865. default: {
  866. handle_unusual:
  867. if ((tag & 7) == 4 || tag == 0) {
  868. ctx->SetLastTag(tag);
  869. goto success;
  870. }
  871. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  872. CHK_(ptr != nullptr);
  873. continue;
  874. }
  875. } // switch
  876. } // while
  877. success:
  878. return ptr;
  879. failure:
  880. ptr = nullptr;
  881. goto success;
  882. #undef CHK_
  883. }
  884. ::PROTOBUF_NAMESPACE_ID::uint8* PB_CS_S_SHUFFLE_ALL_ACK::InternalSerializeWithCachedSizesToArray(
  885. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  886. // @@protoc_insertion_point(serialize_to_array_start:GameInfo.PB_CS_S_SHUFFLE_ALL_ACK)
  887. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  888. (void) cached_has_bits;
  889. // uint32 cbCount = 1;
  890. if (this->cbcount() != 0) {
  891. target = stream->EnsureSpace(target);
  892. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_cbcount(), target);
  893. }
  894. // repeated .GameInfo.pb_dwUserName dwUserName = 2;
  895. for (unsigned int i = 0,
  896. n = static_cast<unsigned int>(this->_internal_dwusername_size()); i < n; i++) {
  897. target = stream->EnsureSpace(target);
  898. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  899. InternalWriteMessageToArray(2, this->_internal_dwusername(i), target, stream);
  900. }
  901. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  902. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  903. _internal_metadata_.unknown_fields(), target, stream);
  904. }
  905. // @@protoc_insertion_point(serialize_to_array_end:GameInfo.PB_CS_S_SHUFFLE_ALL_ACK)
  906. return target;
  907. }
  908. size_t PB_CS_S_SHUFFLE_ALL_ACK::ByteSizeLong() const {
  909. // @@protoc_insertion_point(message_byte_size_start:GameInfo.PB_CS_S_SHUFFLE_ALL_ACK)
  910. size_t total_size = 0;
  911. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  912. // Prevent compiler warnings about cached_has_bits being unused
  913. (void) cached_has_bits;
  914. // repeated .GameInfo.pb_dwUserName dwUserName = 2;
  915. total_size += 1UL * this->_internal_dwusername_size();
  916. for (const auto& msg : this->dwusername_) {
  917. total_size +=
  918. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  919. }
  920. // uint32 cbCount = 1;
  921. if (this->cbcount() != 0) {
  922. total_size += 1 +
  923. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  924. this->_internal_cbcount());
  925. }
  926. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  927. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  928. _internal_metadata_, total_size, &_cached_size_);
  929. }
  930. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  931. SetCachedSize(cached_size);
  932. return total_size;
  933. }
  934. void PB_CS_S_SHUFFLE_ALL_ACK::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  935. // @@protoc_insertion_point(generalized_merge_from_start:GameInfo.PB_CS_S_SHUFFLE_ALL_ACK)
  936. GOOGLE_DCHECK_NE(&from, this);
  937. const PB_CS_S_SHUFFLE_ALL_ACK* source =
  938. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PB_CS_S_SHUFFLE_ALL_ACK>(
  939. &from);
  940. if (source == nullptr) {
  941. // @@protoc_insertion_point(generalized_merge_from_cast_fail:GameInfo.PB_CS_S_SHUFFLE_ALL_ACK)
  942. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  943. } else {
  944. // @@protoc_insertion_point(generalized_merge_from_cast_success:GameInfo.PB_CS_S_SHUFFLE_ALL_ACK)
  945. MergeFrom(*source);
  946. }
  947. }
  948. void PB_CS_S_SHUFFLE_ALL_ACK::MergeFrom(const PB_CS_S_SHUFFLE_ALL_ACK& from) {
  949. // @@protoc_insertion_point(class_specific_merge_from_start:GameInfo.PB_CS_S_SHUFFLE_ALL_ACK)
  950. GOOGLE_DCHECK_NE(&from, this);
  951. _internal_metadata_.MergeFrom(from._internal_metadata_);
  952. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  953. (void) cached_has_bits;
  954. dwusername_.MergeFrom(from.dwusername_);
  955. if (from.cbcount() != 0) {
  956. _internal_set_cbcount(from._internal_cbcount());
  957. }
  958. }
  959. void PB_CS_S_SHUFFLE_ALL_ACK::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  960. // @@protoc_insertion_point(generalized_copy_from_start:GameInfo.PB_CS_S_SHUFFLE_ALL_ACK)
  961. if (&from == this) return;
  962. Clear();
  963. MergeFrom(from);
  964. }
  965. void PB_CS_S_SHUFFLE_ALL_ACK::CopyFrom(const PB_CS_S_SHUFFLE_ALL_ACK& from) {
  966. // @@protoc_insertion_point(class_specific_copy_from_start:GameInfo.PB_CS_S_SHUFFLE_ALL_ACK)
  967. if (&from == this) return;
  968. Clear();
  969. MergeFrom(from);
  970. }
  971. bool PB_CS_S_SHUFFLE_ALL_ACK::IsInitialized() const {
  972. return true;
  973. }
  974. void PB_CS_S_SHUFFLE_ALL_ACK::InternalSwap(PB_CS_S_SHUFFLE_ALL_ACK* other) {
  975. using std::swap;
  976. _internal_metadata_.Swap(&other->_internal_metadata_);
  977. dwusername_.InternalSwap(&other->dwusername_);
  978. swap(cbcount_, other->cbcount_);
  979. }
  980. ::PROTOBUF_NAMESPACE_ID::Metadata PB_CS_S_SHUFFLE_ALL_ACK::GetMetadata() const {
  981. return GetMetadataStatic();
  982. }
  983. // ===================================================================
  984. void PB_CS_UserChat::InitAsDefaultInstance() {
  985. }
  986. class PB_CS_UserChat::_Internal {
  987. public:
  988. };
  989. PB_CS_UserChat::PB_CS_UserChat()
  990. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  991. SharedCtor();
  992. // @@protoc_insertion_point(constructor:GameInfo.PB_CS_UserChat)
  993. }
  994. PB_CS_UserChat::PB_CS_UserChat(const PB_CS_UserChat& from)
  995. : ::PROTOBUF_NAMESPACE_ID::Message(),
  996. _internal_metadata_(nullptr) {
  997. _internal_metadata_.MergeFrom(from._internal_metadata_);
  998. szchatstring_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  999. if (!from._internal_szchatstring().empty()) {
  1000. szchatstring_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.szchatstring_);
  1001. }
  1002. ::memcpy(&wchatlength_, &from.wchatlength_,
  1003. static_cast<size_t>(reinterpret_cast<char*>(&dwsenduserid_) -
  1004. reinterpret_cast<char*>(&wchatlength_)) + sizeof(dwsenduserid_));
  1005. // @@protoc_insertion_point(copy_constructor:GameInfo.PB_CS_UserChat)
  1006. }
  1007. void PB_CS_UserChat::SharedCtor() {
  1008. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PB_CS_UserChat_Pb_5fGameInfo_2eproto.base);
  1009. szchatstring_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1010. ::memset(&wchatlength_, 0, static_cast<size_t>(
  1011. reinterpret_cast<char*>(&dwsenduserid_) -
  1012. reinterpret_cast<char*>(&wchatlength_)) + sizeof(dwsenduserid_));
  1013. }
  1014. PB_CS_UserChat::~PB_CS_UserChat() {
  1015. // @@protoc_insertion_point(destructor:GameInfo.PB_CS_UserChat)
  1016. SharedDtor();
  1017. }
  1018. void PB_CS_UserChat::SharedDtor() {
  1019. szchatstring_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1020. }
  1021. void PB_CS_UserChat::SetCachedSize(int size) const {
  1022. _cached_size_.Set(size);
  1023. }
  1024. const PB_CS_UserChat& PB_CS_UserChat::default_instance() {
  1025. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PB_CS_UserChat_Pb_5fGameInfo_2eproto.base);
  1026. return *internal_default_instance();
  1027. }
  1028. void PB_CS_UserChat::Clear() {
  1029. // @@protoc_insertion_point(message_clear_start:GameInfo.PB_CS_UserChat)
  1030. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1031. // Prevent compiler warnings about cached_has_bits being unused
  1032. (void) cached_has_bits;
  1033. szchatstring_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1034. ::memset(&wchatlength_, 0, static_cast<size_t>(
  1035. reinterpret_cast<char*>(&dwsenduserid_) -
  1036. reinterpret_cast<char*>(&wchatlength_)) + sizeof(dwsenduserid_));
  1037. _internal_metadata_.Clear();
  1038. }
  1039. const char* PB_CS_UserChat::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1040. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1041. while (!ctx->Done(&ptr)) {
  1042. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  1043. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1044. CHK_(ptr);
  1045. switch (tag >> 3) {
  1046. // uint32 wChatLength = 1;
  1047. case 1:
  1048. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
  1049. wchatlength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1050. CHK_(ptr);
  1051. } else goto handle_unusual;
  1052. continue;
  1053. // uint32 dwChatColor = 2;
  1054. case 2:
  1055. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
  1056. dwchatcolor_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1057. CHK_(ptr);
  1058. } else goto handle_unusual;
  1059. continue;
  1060. // uint32 dwTargetUserID = 3;
  1061. case 3:
  1062. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
  1063. dwtargetuserid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1064. CHK_(ptr);
  1065. } else goto handle_unusual;
  1066. continue;
  1067. // uint32 dwSendUserID = 4;
  1068. case 4:
  1069. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
  1070. dwsenduserid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1071. CHK_(ptr);
  1072. } else goto handle_unusual;
  1073. continue;
  1074. // string szChatString = 5;
  1075. case 5:
  1076. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
  1077. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(_internal_mutable_szchatstring(), ptr, ctx, "GameInfo.PB_CS_UserChat.szChatString");
  1078. CHK_(ptr);
  1079. } else goto handle_unusual;
  1080. continue;
  1081. default: {
  1082. handle_unusual:
  1083. if ((tag & 7) == 4 || tag == 0) {
  1084. ctx->SetLastTag(tag);
  1085. goto success;
  1086. }
  1087. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  1088. CHK_(ptr != nullptr);
  1089. continue;
  1090. }
  1091. } // switch
  1092. } // while
  1093. success:
  1094. return ptr;
  1095. failure:
  1096. ptr = nullptr;
  1097. goto success;
  1098. #undef CHK_
  1099. }
  1100. ::PROTOBUF_NAMESPACE_ID::uint8* PB_CS_UserChat::InternalSerializeWithCachedSizesToArray(
  1101. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1102. // @@protoc_insertion_point(serialize_to_array_start:GameInfo.PB_CS_UserChat)
  1103. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1104. (void) cached_has_bits;
  1105. // uint32 wChatLength = 1;
  1106. if (this->wchatlength() != 0) {
  1107. target = stream->EnsureSpace(target);
  1108. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_wchatlength(), target);
  1109. }
  1110. // uint32 dwChatColor = 2;
  1111. if (this->dwchatcolor() != 0) {
  1112. target = stream->EnsureSpace(target);
  1113. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_dwchatcolor(), target);
  1114. }
  1115. // uint32 dwTargetUserID = 3;
  1116. if (this->dwtargetuserid() != 0) {
  1117. target = stream->EnsureSpace(target);
  1118. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_dwtargetuserid(), target);
  1119. }
  1120. // uint32 dwSendUserID = 4;
  1121. if (this->dwsenduserid() != 0) {
  1122. target = stream->EnsureSpace(target);
  1123. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_dwsenduserid(), target);
  1124. }
  1125. // string szChatString = 5;
  1126. if (this->szchatstring().size() > 0) {
  1127. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1128. this->_internal_szchatstring().data(), static_cast<int>(this->_internal_szchatstring().length()),
  1129. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  1130. "GameInfo.PB_CS_UserChat.szChatString");
  1131. target = stream->WriteStringMaybeAliased(
  1132. 5, this->_internal_szchatstring(), target);
  1133. }
  1134. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1135. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1136. _internal_metadata_.unknown_fields(), target, stream);
  1137. }
  1138. // @@protoc_insertion_point(serialize_to_array_end:GameInfo.PB_CS_UserChat)
  1139. return target;
  1140. }
  1141. size_t PB_CS_UserChat::ByteSizeLong() const {
  1142. // @@protoc_insertion_point(message_byte_size_start:GameInfo.PB_CS_UserChat)
  1143. size_t total_size = 0;
  1144. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1145. // Prevent compiler warnings about cached_has_bits being unused
  1146. (void) cached_has_bits;
  1147. // string szChatString = 5;
  1148. if (this->szchatstring().size() > 0) {
  1149. total_size += 1 +
  1150. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1151. this->_internal_szchatstring());
  1152. }
  1153. // uint32 wChatLength = 1;
  1154. if (this->wchatlength() != 0) {
  1155. total_size += 1 +
  1156. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  1157. this->_internal_wchatlength());
  1158. }
  1159. // uint32 dwChatColor = 2;
  1160. if (this->dwchatcolor() != 0) {
  1161. total_size += 1 +
  1162. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  1163. this->_internal_dwchatcolor());
  1164. }
  1165. // uint32 dwTargetUserID = 3;
  1166. if (this->dwtargetuserid() != 0) {
  1167. total_size += 1 +
  1168. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  1169. this->_internal_dwtargetuserid());
  1170. }
  1171. // uint32 dwSendUserID = 4;
  1172. if (this->dwsenduserid() != 0) {
  1173. total_size += 1 +
  1174. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  1175. this->_internal_dwsenduserid());
  1176. }
  1177. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1178. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  1179. _internal_metadata_, total_size, &_cached_size_);
  1180. }
  1181. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  1182. SetCachedSize(cached_size);
  1183. return total_size;
  1184. }
  1185. void PB_CS_UserChat::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1186. // @@protoc_insertion_point(generalized_merge_from_start:GameInfo.PB_CS_UserChat)
  1187. GOOGLE_DCHECK_NE(&from, this);
  1188. const PB_CS_UserChat* source =
  1189. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PB_CS_UserChat>(
  1190. &from);
  1191. if (source == nullptr) {
  1192. // @@protoc_insertion_point(generalized_merge_from_cast_fail:GameInfo.PB_CS_UserChat)
  1193. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  1194. } else {
  1195. // @@protoc_insertion_point(generalized_merge_from_cast_success:GameInfo.PB_CS_UserChat)
  1196. MergeFrom(*source);
  1197. }
  1198. }
  1199. void PB_CS_UserChat::MergeFrom(const PB_CS_UserChat& from) {
  1200. // @@protoc_insertion_point(class_specific_merge_from_start:GameInfo.PB_CS_UserChat)
  1201. GOOGLE_DCHECK_NE(&from, this);
  1202. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1203. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1204. (void) cached_has_bits;
  1205. if (from.szchatstring().size() > 0) {
  1206. szchatstring_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.szchatstring_);
  1207. }
  1208. if (from.wchatlength() != 0) {
  1209. _internal_set_wchatlength(from._internal_wchatlength());
  1210. }
  1211. if (from.dwchatcolor() != 0) {
  1212. _internal_set_dwchatcolor(from._internal_dwchatcolor());
  1213. }
  1214. if (from.dwtargetuserid() != 0) {
  1215. _internal_set_dwtargetuserid(from._internal_dwtargetuserid());
  1216. }
  1217. if (from.dwsenduserid() != 0) {
  1218. _internal_set_dwsenduserid(from._internal_dwsenduserid());
  1219. }
  1220. }
  1221. void PB_CS_UserChat::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1222. // @@protoc_insertion_point(generalized_copy_from_start:GameInfo.PB_CS_UserChat)
  1223. if (&from == this) return;
  1224. Clear();
  1225. MergeFrom(from);
  1226. }
  1227. void PB_CS_UserChat::CopyFrom(const PB_CS_UserChat& from) {
  1228. // @@protoc_insertion_point(class_specific_copy_from_start:GameInfo.PB_CS_UserChat)
  1229. if (&from == this) return;
  1230. Clear();
  1231. MergeFrom(from);
  1232. }
  1233. bool PB_CS_UserChat::IsInitialized() const {
  1234. return true;
  1235. }
  1236. void PB_CS_UserChat::InternalSwap(PB_CS_UserChat* other) {
  1237. using std::swap;
  1238. _internal_metadata_.Swap(&other->_internal_metadata_);
  1239. szchatstring_.Swap(&other->szchatstring_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1240. GetArenaNoVirtual());
  1241. swap(wchatlength_, other->wchatlength_);
  1242. swap(dwchatcolor_, other->dwchatcolor_);
  1243. swap(dwtargetuserid_, other->dwtargetuserid_);
  1244. swap(dwsenduserid_, other->dwsenduserid_);
  1245. }
  1246. ::PROTOBUF_NAMESPACE_ID::Metadata PB_CS_UserChat::GetMetadata() const {
  1247. return GetMetadataStatic();
  1248. }
  1249. // ===================================================================
  1250. void PB_CS_UserExpression::InitAsDefaultInstance() {
  1251. }
  1252. class PB_CS_UserExpression::_Internal {
  1253. public:
  1254. };
  1255. PB_CS_UserExpression::PB_CS_UserExpression()
  1256. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  1257. SharedCtor();
  1258. // @@protoc_insertion_point(constructor:GameInfo.PB_CS_UserExpression)
  1259. }
  1260. PB_CS_UserExpression::PB_CS_UserExpression(const PB_CS_UserExpression& from)
  1261. : ::PROTOBUF_NAMESPACE_ID::Message(),
  1262. _internal_metadata_(nullptr) {
  1263. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1264. ::memcpy(&witemindex_, &from.witemindex_,
  1265. static_cast<size_t>(reinterpret_cast<char*>(&dwtargetuserid_) -
  1266. reinterpret_cast<char*>(&witemindex_)) + sizeof(dwtargetuserid_));
  1267. // @@protoc_insertion_point(copy_constructor:GameInfo.PB_CS_UserExpression)
  1268. }
  1269. void PB_CS_UserExpression::SharedCtor() {
  1270. ::memset(&witemindex_, 0, static_cast<size_t>(
  1271. reinterpret_cast<char*>(&dwtargetuserid_) -
  1272. reinterpret_cast<char*>(&witemindex_)) + sizeof(dwtargetuserid_));
  1273. }
  1274. PB_CS_UserExpression::~PB_CS_UserExpression() {
  1275. // @@protoc_insertion_point(destructor:GameInfo.PB_CS_UserExpression)
  1276. SharedDtor();
  1277. }
  1278. void PB_CS_UserExpression::SharedDtor() {
  1279. }
  1280. void PB_CS_UserExpression::SetCachedSize(int size) const {
  1281. _cached_size_.Set(size);
  1282. }
  1283. const PB_CS_UserExpression& PB_CS_UserExpression::default_instance() {
  1284. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PB_CS_UserExpression_Pb_5fGameInfo_2eproto.base);
  1285. return *internal_default_instance();
  1286. }
  1287. void PB_CS_UserExpression::Clear() {
  1288. // @@protoc_insertion_point(message_clear_start:GameInfo.PB_CS_UserExpression)
  1289. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1290. // Prevent compiler warnings about cached_has_bits being unused
  1291. (void) cached_has_bits;
  1292. ::memset(&witemindex_, 0, static_cast<size_t>(
  1293. reinterpret_cast<char*>(&dwtargetuserid_) -
  1294. reinterpret_cast<char*>(&witemindex_)) + sizeof(dwtargetuserid_));
  1295. _internal_metadata_.Clear();
  1296. }
  1297. const char* PB_CS_UserExpression::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1298. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1299. while (!ctx->Done(&ptr)) {
  1300. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  1301. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1302. CHK_(ptr);
  1303. switch (tag >> 3) {
  1304. // uint32 wItemIndex = 1;
  1305. case 1:
  1306. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
  1307. witemindex_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1308. CHK_(ptr);
  1309. } else goto handle_unusual;
  1310. continue;
  1311. // uint32 dwSendUserID = 2;
  1312. case 2:
  1313. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
  1314. dwsenduserid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1315. CHK_(ptr);
  1316. } else goto handle_unusual;
  1317. continue;
  1318. // uint32 dwTargetUserID = 3;
  1319. case 3:
  1320. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
  1321. dwtargetuserid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1322. CHK_(ptr);
  1323. } else goto handle_unusual;
  1324. continue;
  1325. default: {
  1326. handle_unusual:
  1327. if ((tag & 7) == 4 || tag == 0) {
  1328. ctx->SetLastTag(tag);
  1329. goto success;
  1330. }
  1331. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  1332. CHK_(ptr != nullptr);
  1333. continue;
  1334. }
  1335. } // switch
  1336. } // while
  1337. success:
  1338. return ptr;
  1339. failure:
  1340. ptr = nullptr;
  1341. goto success;
  1342. #undef CHK_
  1343. }
  1344. ::PROTOBUF_NAMESPACE_ID::uint8* PB_CS_UserExpression::InternalSerializeWithCachedSizesToArray(
  1345. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1346. // @@protoc_insertion_point(serialize_to_array_start:GameInfo.PB_CS_UserExpression)
  1347. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1348. (void) cached_has_bits;
  1349. // uint32 wItemIndex = 1;
  1350. if (this->witemindex() != 0) {
  1351. target = stream->EnsureSpace(target);
  1352. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_witemindex(), target);
  1353. }
  1354. // uint32 dwSendUserID = 2;
  1355. if (this->dwsenduserid() != 0) {
  1356. target = stream->EnsureSpace(target);
  1357. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_dwsenduserid(), target);
  1358. }
  1359. // uint32 dwTargetUserID = 3;
  1360. if (this->dwtargetuserid() != 0) {
  1361. target = stream->EnsureSpace(target);
  1362. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_dwtargetuserid(), target);
  1363. }
  1364. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1365. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1366. _internal_metadata_.unknown_fields(), target, stream);
  1367. }
  1368. // @@protoc_insertion_point(serialize_to_array_end:GameInfo.PB_CS_UserExpression)
  1369. return target;
  1370. }
  1371. size_t PB_CS_UserExpression::ByteSizeLong() const {
  1372. // @@protoc_insertion_point(message_byte_size_start:GameInfo.PB_CS_UserExpression)
  1373. size_t total_size = 0;
  1374. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1375. // Prevent compiler warnings about cached_has_bits being unused
  1376. (void) cached_has_bits;
  1377. // uint32 wItemIndex = 1;
  1378. if (this->witemindex() != 0) {
  1379. total_size += 1 +
  1380. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  1381. this->_internal_witemindex());
  1382. }
  1383. // uint32 dwSendUserID = 2;
  1384. if (this->dwsenduserid() != 0) {
  1385. total_size += 1 +
  1386. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  1387. this->_internal_dwsenduserid());
  1388. }
  1389. // uint32 dwTargetUserID = 3;
  1390. if (this->dwtargetuserid() != 0) {
  1391. total_size += 1 +
  1392. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  1393. this->_internal_dwtargetuserid());
  1394. }
  1395. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1396. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  1397. _internal_metadata_, total_size, &_cached_size_);
  1398. }
  1399. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  1400. SetCachedSize(cached_size);
  1401. return total_size;
  1402. }
  1403. void PB_CS_UserExpression::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1404. // @@protoc_insertion_point(generalized_merge_from_start:GameInfo.PB_CS_UserExpression)
  1405. GOOGLE_DCHECK_NE(&from, this);
  1406. const PB_CS_UserExpression* source =
  1407. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PB_CS_UserExpression>(
  1408. &from);
  1409. if (source == nullptr) {
  1410. // @@protoc_insertion_point(generalized_merge_from_cast_fail:GameInfo.PB_CS_UserExpression)
  1411. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  1412. } else {
  1413. // @@protoc_insertion_point(generalized_merge_from_cast_success:GameInfo.PB_CS_UserExpression)
  1414. MergeFrom(*source);
  1415. }
  1416. }
  1417. void PB_CS_UserExpression::MergeFrom(const PB_CS_UserExpression& from) {
  1418. // @@protoc_insertion_point(class_specific_merge_from_start:GameInfo.PB_CS_UserExpression)
  1419. GOOGLE_DCHECK_NE(&from, this);
  1420. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1421. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1422. (void) cached_has_bits;
  1423. if (from.witemindex() != 0) {
  1424. _internal_set_witemindex(from._internal_witemindex());
  1425. }
  1426. if (from.dwsenduserid() != 0) {
  1427. _internal_set_dwsenduserid(from._internal_dwsenduserid());
  1428. }
  1429. if (from.dwtargetuserid() != 0) {
  1430. _internal_set_dwtargetuserid(from._internal_dwtargetuserid());
  1431. }
  1432. }
  1433. void PB_CS_UserExpression::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1434. // @@protoc_insertion_point(generalized_copy_from_start:GameInfo.PB_CS_UserExpression)
  1435. if (&from == this) return;
  1436. Clear();
  1437. MergeFrom(from);
  1438. }
  1439. void PB_CS_UserExpression::CopyFrom(const PB_CS_UserExpression& from) {
  1440. // @@protoc_insertion_point(class_specific_copy_from_start:GameInfo.PB_CS_UserExpression)
  1441. if (&from == this) return;
  1442. Clear();
  1443. MergeFrom(from);
  1444. }
  1445. bool PB_CS_UserExpression::IsInitialized() const {
  1446. return true;
  1447. }
  1448. void PB_CS_UserExpression::InternalSwap(PB_CS_UserExpression* other) {
  1449. using std::swap;
  1450. _internal_metadata_.Swap(&other->_internal_metadata_);
  1451. swap(witemindex_, other->witemindex_);
  1452. swap(dwsenduserid_, other->dwsenduserid_);
  1453. swap(dwtargetuserid_, other->dwtargetuserid_);
  1454. }
  1455. ::PROTOBUF_NAMESPACE_ID::Metadata PB_CS_UserExpression::GetMetadata() const {
  1456. return GetMetadataStatic();
  1457. }
  1458. // ===================================================================
  1459. void PB_CS_GameStatus::InitAsDefaultInstance() {
  1460. }
  1461. class PB_CS_GameStatus::_Internal {
  1462. public:
  1463. };
  1464. PB_CS_GameStatus::PB_CS_GameStatus()
  1465. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  1466. SharedCtor();
  1467. // @@protoc_insertion_point(constructor:GameInfo.PB_CS_GameStatus)
  1468. }
  1469. PB_CS_GameStatus::PB_CS_GameStatus(const PB_CS_GameStatus& from)
  1470. : ::PROTOBUF_NAMESPACE_ID::Message(),
  1471. _internal_metadata_(nullptr) {
  1472. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1473. ::memcpy(&cbgamestatus_, &from.cbgamestatus_,
  1474. static_cast<size_t>(reinterpret_cast<char*>(&cballowlookon_) -
  1475. reinterpret_cast<char*>(&cbgamestatus_)) + sizeof(cballowlookon_));
  1476. // @@protoc_insertion_point(copy_constructor:GameInfo.PB_CS_GameStatus)
  1477. }
  1478. void PB_CS_GameStatus::SharedCtor() {
  1479. ::memset(&cbgamestatus_, 0, static_cast<size_t>(
  1480. reinterpret_cast<char*>(&cballowlookon_) -
  1481. reinterpret_cast<char*>(&cbgamestatus_)) + sizeof(cballowlookon_));
  1482. }
  1483. PB_CS_GameStatus::~PB_CS_GameStatus() {
  1484. // @@protoc_insertion_point(destructor:GameInfo.PB_CS_GameStatus)
  1485. SharedDtor();
  1486. }
  1487. void PB_CS_GameStatus::SharedDtor() {
  1488. }
  1489. void PB_CS_GameStatus::SetCachedSize(int size) const {
  1490. _cached_size_.Set(size);
  1491. }
  1492. const PB_CS_GameStatus& PB_CS_GameStatus::default_instance() {
  1493. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PB_CS_GameStatus_Pb_5fGameInfo_2eproto.base);
  1494. return *internal_default_instance();
  1495. }
  1496. void PB_CS_GameStatus::Clear() {
  1497. // @@protoc_insertion_point(message_clear_start:GameInfo.PB_CS_GameStatus)
  1498. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1499. // Prevent compiler warnings about cached_has_bits being unused
  1500. (void) cached_has_bits;
  1501. ::memset(&cbgamestatus_, 0, static_cast<size_t>(
  1502. reinterpret_cast<char*>(&cballowlookon_) -
  1503. reinterpret_cast<char*>(&cbgamestatus_)) + sizeof(cballowlookon_));
  1504. _internal_metadata_.Clear();
  1505. }
  1506. const char* PB_CS_GameStatus::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1507. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1508. while (!ctx->Done(&ptr)) {
  1509. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  1510. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1511. CHK_(ptr);
  1512. switch (tag >> 3) {
  1513. // uint32 cbGameStatus = 1;
  1514. case 1:
  1515. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
  1516. cbgamestatus_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1517. CHK_(ptr);
  1518. } else goto handle_unusual;
  1519. continue;
  1520. // uint32 cbAllowLookon = 2;
  1521. case 2:
  1522. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
  1523. cballowlookon_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1524. CHK_(ptr);
  1525. } else goto handle_unusual;
  1526. continue;
  1527. default: {
  1528. handle_unusual:
  1529. if ((tag & 7) == 4 || tag == 0) {
  1530. ctx->SetLastTag(tag);
  1531. goto success;
  1532. }
  1533. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  1534. CHK_(ptr != nullptr);
  1535. continue;
  1536. }
  1537. } // switch
  1538. } // while
  1539. success:
  1540. return ptr;
  1541. failure:
  1542. ptr = nullptr;
  1543. goto success;
  1544. #undef CHK_
  1545. }
  1546. ::PROTOBUF_NAMESPACE_ID::uint8* PB_CS_GameStatus::InternalSerializeWithCachedSizesToArray(
  1547. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1548. // @@protoc_insertion_point(serialize_to_array_start:GameInfo.PB_CS_GameStatus)
  1549. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1550. (void) cached_has_bits;
  1551. // uint32 cbGameStatus = 1;
  1552. if (this->cbgamestatus() != 0) {
  1553. target = stream->EnsureSpace(target);
  1554. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_cbgamestatus(), target);
  1555. }
  1556. // uint32 cbAllowLookon = 2;
  1557. if (this->cballowlookon() != 0) {
  1558. target = stream->EnsureSpace(target);
  1559. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_cballowlookon(), target);
  1560. }
  1561. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1562. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1563. _internal_metadata_.unknown_fields(), target, stream);
  1564. }
  1565. // @@protoc_insertion_point(serialize_to_array_end:GameInfo.PB_CS_GameStatus)
  1566. return target;
  1567. }
  1568. size_t PB_CS_GameStatus::ByteSizeLong() const {
  1569. // @@protoc_insertion_point(message_byte_size_start:GameInfo.PB_CS_GameStatus)
  1570. size_t total_size = 0;
  1571. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1572. // Prevent compiler warnings about cached_has_bits being unused
  1573. (void) cached_has_bits;
  1574. // uint32 cbGameStatus = 1;
  1575. if (this->cbgamestatus() != 0) {
  1576. total_size += 1 +
  1577. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  1578. this->_internal_cbgamestatus());
  1579. }
  1580. // uint32 cbAllowLookon = 2;
  1581. if (this->cballowlookon() != 0) {
  1582. total_size += 1 +
  1583. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  1584. this->_internal_cballowlookon());
  1585. }
  1586. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1587. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  1588. _internal_metadata_, total_size, &_cached_size_);
  1589. }
  1590. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  1591. SetCachedSize(cached_size);
  1592. return total_size;
  1593. }
  1594. void PB_CS_GameStatus::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1595. // @@protoc_insertion_point(generalized_merge_from_start:GameInfo.PB_CS_GameStatus)
  1596. GOOGLE_DCHECK_NE(&from, this);
  1597. const PB_CS_GameStatus* source =
  1598. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PB_CS_GameStatus>(
  1599. &from);
  1600. if (source == nullptr) {
  1601. // @@protoc_insertion_point(generalized_merge_from_cast_fail:GameInfo.PB_CS_GameStatus)
  1602. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  1603. } else {
  1604. // @@protoc_insertion_point(generalized_merge_from_cast_success:GameInfo.PB_CS_GameStatus)
  1605. MergeFrom(*source);
  1606. }
  1607. }
  1608. void PB_CS_GameStatus::MergeFrom(const PB_CS_GameStatus& from) {
  1609. // @@protoc_insertion_point(class_specific_merge_from_start:GameInfo.PB_CS_GameStatus)
  1610. GOOGLE_DCHECK_NE(&from, this);
  1611. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1612. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1613. (void) cached_has_bits;
  1614. if (from.cbgamestatus() != 0) {
  1615. _internal_set_cbgamestatus(from._internal_cbgamestatus());
  1616. }
  1617. if (from.cballowlookon() != 0) {
  1618. _internal_set_cballowlookon(from._internal_cballowlookon());
  1619. }
  1620. }
  1621. void PB_CS_GameStatus::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1622. // @@protoc_insertion_point(generalized_copy_from_start:GameInfo.PB_CS_GameStatus)
  1623. if (&from == this) return;
  1624. Clear();
  1625. MergeFrom(from);
  1626. }
  1627. void PB_CS_GameStatus::CopyFrom(const PB_CS_GameStatus& from) {
  1628. // @@protoc_insertion_point(class_specific_copy_from_start:GameInfo.PB_CS_GameStatus)
  1629. if (&from == this) return;
  1630. Clear();
  1631. MergeFrom(from);
  1632. }
  1633. bool PB_CS_GameStatus::IsInitialized() const {
  1634. return true;
  1635. }
  1636. void PB_CS_GameStatus::InternalSwap(PB_CS_GameStatus* other) {
  1637. using std::swap;
  1638. _internal_metadata_.Swap(&other->_internal_metadata_);
  1639. swap(cbgamestatus_, other->cbgamestatus_);
  1640. swap(cballowlookon_, other->cballowlookon_);
  1641. }
  1642. ::PROTOBUF_NAMESPACE_ID::Metadata PB_CS_GameStatus::GetMetadata() const {
  1643. return GetMetadataStatic();
  1644. }
  1645. // ===================================================================
  1646. void PB_CS_C_tagGameConfig::InitAsDefaultInstance() {
  1647. }
  1648. class PB_CS_C_tagGameConfig::_Internal {
  1649. public:
  1650. };
  1651. PB_CS_C_tagGameConfig::PB_CS_C_tagGameConfig()
  1652. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  1653. SharedCtor();
  1654. // @@protoc_insertion_point(constructor:GameInfo.PB_CS_C_tagGameConfig)
  1655. }
  1656. PB_CS_C_tagGameConfig::PB_CS_C_tagGameConfig(const PB_CS_C_tagGameConfig& from)
  1657. : ::PROTOBUF_NAMESPACE_ID::Message(),
  1658. _internal_metadata_(nullptr) {
  1659. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1660. sprivatetableid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1661. if (!from._internal_sprivatetableid().empty()) {
  1662. sprivatetableid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.sprivatetableid_);
  1663. }
  1664. ::memcpy(&wsubgameid_, &from.wsubgameid_,
  1665. static_cast<size_t>(reinterpret_cast<char*>(&tmp5_) -
  1666. reinterpret_cast<char*>(&wsubgameid_)) + sizeof(tmp5_));
  1667. // @@protoc_insertion_point(copy_constructor:GameInfo.PB_CS_C_tagGameConfig)
  1668. }
  1669. void PB_CS_C_tagGameConfig::SharedCtor() {
  1670. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PB_CS_C_tagGameConfig_Pb_5fGameInfo_2eproto.base);
  1671. sprivatetableid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1672. ::memset(&wsubgameid_, 0, static_cast<size_t>(
  1673. reinterpret_cast<char*>(&tmp5_) -
  1674. reinterpret_cast<char*>(&wsubgameid_)) + sizeof(tmp5_));
  1675. }
  1676. PB_CS_C_tagGameConfig::~PB_CS_C_tagGameConfig() {
  1677. // @@protoc_insertion_point(destructor:GameInfo.PB_CS_C_tagGameConfig)
  1678. SharedDtor();
  1679. }
  1680. void PB_CS_C_tagGameConfig::SharedDtor() {
  1681. sprivatetableid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1682. }
  1683. void PB_CS_C_tagGameConfig::SetCachedSize(int size) const {
  1684. _cached_size_.Set(size);
  1685. }
  1686. const PB_CS_C_tagGameConfig& PB_CS_C_tagGameConfig::default_instance() {
  1687. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PB_CS_C_tagGameConfig_Pb_5fGameInfo_2eproto.base);
  1688. return *internal_default_instance();
  1689. }
  1690. void PB_CS_C_tagGameConfig::Clear() {
  1691. // @@protoc_insertion_point(message_clear_start:GameInfo.PB_CS_C_tagGameConfig)
  1692. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1693. // Prevent compiler warnings about cached_has_bits being unused
  1694. (void) cached_has_bits;
  1695. sprivatetableid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1696. ::memset(&wsubgameid_, 0, static_cast<size_t>(
  1697. reinterpret_cast<char*>(&tmp5_) -
  1698. reinterpret_cast<char*>(&wsubgameid_)) + sizeof(tmp5_));
  1699. _internal_metadata_.Clear();
  1700. }
  1701. const char* PB_CS_C_tagGameConfig::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1702. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1703. while (!ctx->Done(&ptr)) {
  1704. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  1705. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1706. CHK_(ptr);
  1707. switch (tag >> 3) {
  1708. // uint32 wSubGameID = 1;
  1709. case 1:
  1710. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
  1711. wsubgameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1712. CHK_(ptr);
  1713. } else goto handle_unusual;
  1714. continue;
  1715. // uint32 wPlayRule = 2;
  1716. case 2:
  1717. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
  1718. wplayrule_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1719. CHK_(ptr);
  1720. } else goto handle_unusual;
  1721. continue;
  1722. // uint32 wMaxFanRule = 3;
  1723. case 3:
  1724. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
  1725. wmaxfanrule_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1726. CHK_(ptr);
  1727. } else goto handle_unusual;
  1728. continue;
  1729. // uint32 wMaxScore = 4;
  1730. case 4:
  1731. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
  1732. wmaxscore_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1733. CHK_(ptr);
  1734. } else goto handle_unusual;
  1735. continue;
  1736. // uint32 wPlayCountRule = 5;
  1737. case 5:
  1738. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
  1739. wplaycountrule_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1740. CHK_(ptr);
  1741. } else goto handle_unusual;
  1742. continue;
  1743. // uint32 wHadPlayCount = 6;
  1744. case 6:
  1745. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
  1746. whadplaycount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1747. CHK_(ptr);
  1748. } else goto handle_unusual;
  1749. continue;
  1750. // uint32 zmExtraRule = 7;
  1751. case 7:
  1752. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
  1753. zmextrarule_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1754. CHK_(ptr);
  1755. } else goto handle_unusual;
  1756. continue;
  1757. // uint32 dghRule = 8;
  1758. case 8:
  1759. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) {
  1760. dghrule_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1761. CHK_(ptr);
  1762. } else goto handle_unusual;
  1763. continue;
  1764. // string sPrivateTableID = 9;
  1765. case 9:
  1766. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) {
  1767. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(_internal_mutable_sprivatetableid(), ptr, ctx, "GameInfo.PB_CS_C_tagGameConfig.sPrivateTableID");
  1768. CHK_(ptr);
  1769. } else goto handle_unusual;
  1770. continue;
  1771. // uint32 bDuoLai = 10;
  1772. case 10:
  1773. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) {
  1774. bduolai_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1775. CHK_(ptr);
  1776. } else goto handle_unusual;
  1777. continue;
  1778. // uint32 wFengDing = 11;
  1779. case 11:
  1780. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) {
  1781. wfengding_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1782. CHK_(ptr);
  1783. } else goto handle_unusual;
  1784. continue;
  1785. // uint32 tmp1 = 12;
  1786. case 12:
  1787. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) {
  1788. tmp1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1789. CHK_(ptr);
  1790. } else goto handle_unusual;
  1791. continue;
  1792. // uint32 tmp2 = 13;
  1793. case 13:
  1794. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 104)) {
  1795. tmp2_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1796. CHK_(ptr);
  1797. } else goto handle_unusual;
  1798. continue;
  1799. // uint32 tmp3 = 14;
  1800. case 14:
  1801. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 112)) {
  1802. tmp3_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1803. CHK_(ptr);
  1804. } else goto handle_unusual;
  1805. continue;
  1806. // uint32 tmp4 = 15;
  1807. case 15:
  1808. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 120)) {
  1809. tmp4_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1810. CHK_(ptr);
  1811. } else goto handle_unusual;
  1812. continue;
  1813. // uint32 tmp5 = 16;
  1814. case 16:
  1815. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 128)) {
  1816. tmp5_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  1817. CHK_(ptr);
  1818. } else goto handle_unusual;
  1819. continue;
  1820. default: {
  1821. handle_unusual:
  1822. if ((tag & 7) == 4 || tag == 0) {
  1823. ctx->SetLastTag(tag);
  1824. goto success;
  1825. }
  1826. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  1827. CHK_(ptr != nullptr);
  1828. continue;
  1829. }
  1830. } // switch
  1831. } // while
  1832. success:
  1833. return ptr;
  1834. failure:
  1835. ptr = nullptr;
  1836. goto success;
  1837. #undef CHK_
  1838. }
  1839. ::PROTOBUF_NAMESPACE_ID::uint8* PB_CS_C_tagGameConfig::InternalSerializeWithCachedSizesToArray(
  1840. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1841. // @@protoc_insertion_point(serialize_to_array_start:GameInfo.PB_CS_C_tagGameConfig)
  1842. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1843. (void) cached_has_bits;
  1844. // uint32 wSubGameID = 1;
  1845. if (this->wsubgameid() != 0) {
  1846. target = stream->EnsureSpace(target);
  1847. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_wsubgameid(), target);
  1848. }
  1849. // uint32 wPlayRule = 2;
  1850. if (this->wplayrule() != 0) {
  1851. target = stream->EnsureSpace(target);
  1852. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_wplayrule(), target);
  1853. }
  1854. // uint32 wMaxFanRule = 3;
  1855. if (this->wmaxfanrule() != 0) {
  1856. target = stream->EnsureSpace(target);
  1857. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_wmaxfanrule(), target);
  1858. }
  1859. // uint32 wMaxScore = 4;
  1860. if (this->wmaxscore() != 0) {
  1861. target = stream->EnsureSpace(target);
  1862. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_wmaxscore(), target);
  1863. }
  1864. // uint32 wPlayCountRule = 5;
  1865. if (this->wplaycountrule() != 0) {
  1866. target = stream->EnsureSpace(target);
  1867. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_wplaycountrule(), target);
  1868. }
  1869. // uint32 wHadPlayCount = 6;
  1870. if (this->whadplaycount() != 0) {
  1871. target = stream->EnsureSpace(target);
  1872. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(6, this->_internal_whadplaycount(), target);
  1873. }
  1874. // uint32 zmExtraRule = 7;
  1875. if (this->zmextrarule() != 0) {
  1876. target = stream->EnsureSpace(target);
  1877. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(7, this->_internal_zmextrarule(), target);
  1878. }
  1879. // uint32 dghRule = 8;
  1880. if (this->dghrule() != 0) {
  1881. target = stream->EnsureSpace(target);
  1882. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(8, this->_internal_dghrule(), target);
  1883. }
  1884. // string sPrivateTableID = 9;
  1885. if (this->sprivatetableid().size() > 0) {
  1886. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1887. this->_internal_sprivatetableid().data(), static_cast<int>(this->_internal_sprivatetableid().length()),
  1888. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  1889. "GameInfo.PB_CS_C_tagGameConfig.sPrivateTableID");
  1890. target = stream->WriteStringMaybeAliased(
  1891. 9, this->_internal_sprivatetableid(), target);
  1892. }
  1893. // uint32 bDuoLai = 10;
  1894. if (this->bduolai() != 0) {
  1895. target = stream->EnsureSpace(target);
  1896. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(10, this->_internal_bduolai(), target);
  1897. }
  1898. // uint32 wFengDing = 11;
  1899. if (this->wfengding() != 0) {
  1900. target = stream->EnsureSpace(target);
  1901. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(11, this->_internal_wfengding(), target);
  1902. }
  1903. // uint32 tmp1 = 12;
  1904. if (this->tmp1() != 0) {
  1905. target = stream->EnsureSpace(target);
  1906. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(12, this->_internal_tmp1(), target);
  1907. }
  1908. // uint32 tmp2 = 13;
  1909. if (this->tmp2() != 0) {
  1910. target = stream->EnsureSpace(target);
  1911. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(13, this->_internal_tmp2(), target);
  1912. }
  1913. // uint32 tmp3 = 14;
  1914. if (this->tmp3() != 0) {
  1915. target = stream->EnsureSpace(target);
  1916. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(14, this->_internal_tmp3(), target);
  1917. }
  1918. // uint32 tmp4 = 15;
  1919. if (this->tmp4() != 0) {
  1920. target = stream->EnsureSpace(target);
  1921. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(15, this->_internal_tmp4(), target);
  1922. }
  1923. // uint32 tmp5 = 16;
  1924. if (this->tmp5() != 0) {
  1925. target = stream->EnsureSpace(target);
  1926. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(16, this->_internal_tmp5(), target);
  1927. }
  1928. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1929. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1930. _internal_metadata_.unknown_fields(), target, stream);
  1931. }
  1932. // @@protoc_insertion_point(serialize_to_array_end:GameInfo.PB_CS_C_tagGameConfig)
  1933. return target;
  1934. }
  1935. size_t PB_CS_C_tagGameConfig::ByteSizeLong() const {
  1936. // @@protoc_insertion_point(message_byte_size_start:GameInfo.PB_CS_C_tagGameConfig)
  1937. size_t total_size = 0;
  1938. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1939. // Prevent compiler warnings about cached_has_bits being unused
  1940. (void) cached_has_bits;
  1941. // string sPrivateTableID = 9;
  1942. if (this->sprivatetableid().size() > 0) {
  1943. total_size += 1 +
  1944. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1945. this->_internal_sprivatetableid());
  1946. }
  1947. // uint32 wSubGameID = 1;
  1948. if (this->wsubgameid() != 0) {
  1949. total_size += 1 +
  1950. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  1951. this->_internal_wsubgameid());
  1952. }
  1953. // uint32 wPlayRule = 2;
  1954. if (this->wplayrule() != 0) {
  1955. total_size += 1 +
  1956. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  1957. this->_internal_wplayrule());
  1958. }
  1959. // uint32 wMaxFanRule = 3;
  1960. if (this->wmaxfanrule() != 0) {
  1961. total_size += 1 +
  1962. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  1963. this->_internal_wmaxfanrule());
  1964. }
  1965. // uint32 wMaxScore = 4;
  1966. if (this->wmaxscore() != 0) {
  1967. total_size += 1 +
  1968. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  1969. this->_internal_wmaxscore());
  1970. }
  1971. // uint32 wPlayCountRule = 5;
  1972. if (this->wplaycountrule() != 0) {
  1973. total_size += 1 +
  1974. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  1975. this->_internal_wplaycountrule());
  1976. }
  1977. // uint32 wHadPlayCount = 6;
  1978. if (this->whadplaycount() != 0) {
  1979. total_size += 1 +
  1980. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  1981. this->_internal_whadplaycount());
  1982. }
  1983. // uint32 zmExtraRule = 7;
  1984. if (this->zmextrarule() != 0) {
  1985. total_size += 1 +
  1986. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  1987. this->_internal_zmextrarule());
  1988. }
  1989. // uint32 dghRule = 8;
  1990. if (this->dghrule() != 0) {
  1991. total_size += 1 +
  1992. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  1993. this->_internal_dghrule());
  1994. }
  1995. // uint32 bDuoLai = 10;
  1996. if (this->bduolai() != 0) {
  1997. total_size += 1 +
  1998. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  1999. this->_internal_bduolai());
  2000. }
  2001. // uint32 wFengDing = 11;
  2002. if (this->wfengding() != 0) {
  2003. total_size += 1 +
  2004. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  2005. this->_internal_wfengding());
  2006. }
  2007. // uint32 tmp1 = 12;
  2008. if (this->tmp1() != 0) {
  2009. total_size += 1 +
  2010. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  2011. this->_internal_tmp1());
  2012. }
  2013. // uint32 tmp2 = 13;
  2014. if (this->tmp2() != 0) {
  2015. total_size += 1 +
  2016. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  2017. this->_internal_tmp2());
  2018. }
  2019. // uint32 tmp3 = 14;
  2020. if (this->tmp3() != 0) {
  2021. total_size += 1 +
  2022. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  2023. this->_internal_tmp3());
  2024. }
  2025. // uint32 tmp4 = 15;
  2026. if (this->tmp4() != 0) {
  2027. total_size += 1 +
  2028. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  2029. this->_internal_tmp4());
  2030. }
  2031. // uint32 tmp5 = 16;
  2032. if (this->tmp5() != 0) {
  2033. total_size += 2 +
  2034. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  2035. this->_internal_tmp5());
  2036. }
  2037. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2038. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  2039. _internal_metadata_, total_size, &_cached_size_);
  2040. }
  2041. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  2042. SetCachedSize(cached_size);
  2043. return total_size;
  2044. }
  2045. void PB_CS_C_tagGameConfig::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2046. // @@protoc_insertion_point(generalized_merge_from_start:GameInfo.PB_CS_C_tagGameConfig)
  2047. GOOGLE_DCHECK_NE(&from, this);
  2048. const PB_CS_C_tagGameConfig* source =
  2049. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PB_CS_C_tagGameConfig>(
  2050. &from);
  2051. if (source == nullptr) {
  2052. // @@protoc_insertion_point(generalized_merge_from_cast_fail:GameInfo.PB_CS_C_tagGameConfig)
  2053. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  2054. } else {
  2055. // @@protoc_insertion_point(generalized_merge_from_cast_success:GameInfo.PB_CS_C_tagGameConfig)
  2056. MergeFrom(*source);
  2057. }
  2058. }
  2059. void PB_CS_C_tagGameConfig::MergeFrom(const PB_CS_C_tagGameConfig& from) {
  2060. // @@protoc_insertion_point(class_specific_merge_from_start:GameInfo.PB_CS_C_tagGameConfig)
  2061. GOOGLE_DCHECK_NE(&from, this);
  2062. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2063. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  2064. (void) cached_has_bits;
  2065. if (from.sprivatetableid().size() > 0) {
  2066. sprivatetableid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.sprivatetableid_);
  2067. }
  2068. if (from.wsubgameid() != 0) {
  2069. _internal_set_wsubgameid(from._internal_wsubgameid());
  2070. }
  2071. if (from.wplayrule() != 0) {
  2072. _internal_set_wplayrule(from._internal_wplayrule());
  2073. }
  2074. if (from.wmaxfanrule() != 0) {
  2075. _internal_set_wmaxfanrule(from._internal_wmaxfanrule());
  2076. }
  2077. if (from.wmaxscore() != 0) {
  2078. _internal_set_wmaxscore(from._internal_wmaxscore());
  2079. }
  2080. if (from.wplaycountrule() != 0) {
  2081. _internal_set_wplaycountrule(from._internal_wplaycountrule());
  2082. }
  2083. if (from.whadplaycount() != 0) {
  2084. _internal_set_whadplaycount(from._internal_whadplaycount());
  2085. }
  2086. if (from.zmextrarule() != 0) {
  2087. _internal_set_zmextrarule(from._internal_zmextrarule());
  2088. }
  2089. if (from.dghrule() != 0) {
  2090. _internal_set_dghrule(from._internal_dghrule());
  2091. }
  2092. if (from.bduolai() != 0) {
  2093. _internal_set_bduolai(from._internal_bduolai());
  2094. }
  2095. if (from.wfengding() != 0) {
  2096. _internal_set_wfengding(from._internal_wfengding());
  2097. }
  2098. if (from.tmp1() != 0) {
  2099. _internal_set_tmp1(from._internal_tmp1());
  2100. }
  2101. if (from.tmp2() != 0) {
  2102. _internal_set_tmp2(from._internal_tmp2());
  2103. }
  2104. if (from.tmp3() != 0) {
  2105. _internal_set_tmp3(from._internal_tmp3());
  2106. }
  2107. if (from.tmp4() != 0) {
  2108. _internal_set_tmp4(from._internal_tmp4());
  2109. }
  2110. if (from.tmp5() != 0) {
  2111. _internal_set_tmp5(from._internal_tmp5());
  2112. }
  2113. }
  2114. void PB_CS_C_tagGameConfig::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2115. // @@protoc_insertion_point(generalized_copy_from_start:GameInfo.PB_CS_C_tagGameConfig)
  2116. if (&from == this) return;
  2117. Clear();
  2118. MergeFrom(from);
  2119. }
  2120. void PB_CS_C_tagGameConfig::CopyFrom(const PB_CS_C_tagGameConfig& from) {
  2121. // @@protoc_insertion_point(class_specific_copy_from_start:GameInfo.PB_CS_C_tagGameConfig)
  2122. if (&from == this) return;
  2123. Clear();
  2124. MergeFrom(from);
  2125. }
  2126. bool PB_CS_C_tagGameConfig::IsInitialized() const {
  2127. return true;
  2128. }
  2129. void PB_CS_C_tagGameConfig::InternalSwap(PB_CS_C_tagGameConfig* other) {
  2130. using std::swap;
  2131. _internal_metadata_.Swap(&other->_internal_metadata_);
  2132. sprivatetableid_.Swap(&other->sprivatetableid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  2133. GetArenaNoVirtual());
  2134. swap(wsubgameid_, other->wsubgameid_);
  2135. swap(wplayrule_, other->wplayrule_);
  2136. swap(wmaxfanrule_, other->wmaxfanrule_);
  2137. swap(wmaxscore_, other->wmaxscore_);
  2138. swap(wplaycountrule_, other->wplaycountrule_);
  2139. swap(whadplaycount_, other->whadplaycount_);
  2140. swap(zmextrarule_, other->zmextrarule_);
  2141. swap(dghrule_, other->dghrule_);
  2142. swap(bduolai_, other->bduolai_);
  2143. swap(wfengding_, other->wfengding_);
  2144. swap(tmp1_, other->tmp1_);
  2145. swap(tmp2_, other->tmp2_);
  2146. swap(tmp3_, other->tmp3_);
  2147. swap(tmp4_, other->tmp4_);
  2148. swap(tmp5_, other->tmp5_);
  2149. }
  2150. ::PROTOBUF_NAMESPACE_ID::Metadata PB_CS_C_tagGameConfig::GetMetadata() const {
  2151. return GetMetadataStatic();
  2152. }
  2153. // ===================================================================
  2154. void PB_CS_S_StatusFree::InitAsDefaultInstance() {
  2155. ::GameInfo::_PB_CS_S_StatusFree_default_instance_._instance.get_mutable()->gameconfig_ = const_cast< ::GameInfo::PB_CS_C_tagGameConfig*>(
  2156. ::GameInfo::PB_CS_C_tagGameConfig::internal_default_instance());
  2157. }
  2158. class PB_CS_S_StatusFree::_Internal {
  2159. public:
  2160. static const ::GameInfo::PB_CS_C_tagGameConfig& gameconfig(const PB_CS_S_StatusFree* msg);
  2161. };
  2162. const ::GameInfo::PB_CS_C_tagGameConfig&
  2163. PB_CS_S_StatusFree::_Internal::gameconfig(const PB_CS_S_StatusFree* msg) {
  2164. return *msg->gameconfig_;
  2165. }
  2166. PB_CS_S_StatusFree::PB_CS_S_StatusFree()
  2167. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  2168. SharedCtor();
  2169. // @@protoc_insertion_point(constructor:GameInfo.PB_CS_S_StatusFree)
  2170. }
  2171. PB_CS_S_StatusFree::PB_CS_S_StatusFree(const PB_CS_S_StatusFree& from)
  2172. : ::PROTOBUF_NAMESPACE_ID::Message(),
  2173. _internal_metadata_(nullptr),
  2174. lusertmpscore_(from.lusertmpscore_),
  2175. options_(from.options_) {
  2176. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2177. if (from._internal_has_gameconfig()) {
  2178. gameconfig_ = new ::GameInfo::PB_CS_C_tagGameConfig(*from.gameconfig_);
  2179. } else {
  2180. gameconfig_ = nullptr;
  2181. }
  2182. ::memcpy(&lefttime_, &from.lefttime_,
  2183. static_cast<size_t>(reinterpret_cast<char*>(&userstat_) -
  2184. reinterpret_cast<char*>(&lefttime_)) + sizeof(userstat_));
  2185. // @@protoc_insertion_point(copy_constructor:GameInfo.PB_CS_S_StatusFree)
  2186. }
  2187. void PB_CS_S_StatusFree::SharedCtor() {
  2188. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PB_CS_S_StatusFree_Pb_5fGameInfo_2eproto.base);
  2189. ::memset(&gameconfig_, 0, static_cast<size_t>(
  2190. reinterpret_cast<char*>(&userstat_) -
  2191. reinterpret_cast<char*>(&gameconfig_)) + sizeof(userstat_));
  2192. }
  2193. PB_CS_S_StatusFree::~PB_CS_S_StatusFree() {
  2194. // @@protoc_insertion_point(destructor:GameInfo.PB_CS_S_StatusFree)
  2195. SharedDtor();
  2196. }
  2197. void PB_CS_S_StatusFree::SharedDtor() {
  2198. if (this != internal_default_instance()) delete gameconfig_;
  2199. }
  2200. void PB_CS_S_StatusFree::SetCachedSize(int size) const {
  2201. _cached_size_.Set(size);
  2202. }
  2203. const PB_CS_S_StatusFree& PB_CS_S_StatusFree::default_instance() {
  2204. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PB_CS_S_StatusFree_Pb_5fGameInfo_2eproto.base);
  2205. return *internal_default_instance();
  2206. }
  2207. void PB_CS_S_StatusFree::Clear() {
  2208. // @@protoc_insertion_point(message_clear_start:GameInfo.PB_CS_S_StatusFree)
  2209. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  2210. // Prevent compiler warnings about cached_has_bits being unused
  2211. (void) cached_has_bits;
  2212. lusertmpscore_.Clear();
  2213. options_.Clear();
  2214. if (GetArenaNoVirtual() == nullptr && gameconfig_ != nullptr) {
  2215. delete gameconfig_;
  2216. }
  2217. gameconfig_ = nullptr;
  2218. ::memset(&lefttime_, 0, static_cast<size_t>(
  2219. reinterpret_cast<char*>(&userstat_) -
  2220. reinterpret_cast<char*>(&lefttime_)) + sizeof(userstat_));
  2221. _internal_metadata_.Clear();
  2222. }
  2223. const char* PB_CS_S_StatusFree::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2224. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2225. while (!ctx->Done(&ptr)) {
  2226. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  2227. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2228. CHK_(ptr);
  2229. switch (tag >> 3) {
  2230. // .GameInfo.PB_CS_C_tagGameConfig gameConfig = 1;
  2231. case 1:
  2232. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
  2233. ptr = ctx->ParseMessage(_internal_mutable_gameconfig(), ptr);
  2234. CHK_(ptr);
  2235. } else goto handle_unusual;
  2236. continue;
  2237. // repeated sint64 lUserTmpScore = 2;
  2238. case 2:
  2239. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
  2240. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedSInt64Parser(_internal_mutable_lusertmpscore(), ptr, ctx);
  2241. CHK_(ptr);
  2242. } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) {
  2243. _internal_add_lusertmpscore(::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr));
  2244. CHK_(ptr);
  2245. } else goto handle_unusual;
  2246. continue;
  2247. // uint32 leftTime = 3;
  2248. case 3:
  2249. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
  2250. lefttime_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  2251. CHK_(ptr);
  2252. } else goto handle_unusual;
  2253. continue;
  2254. // uint32 wchairId = 4;
  2255. case 4:
  2256. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
  2257. wchairid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  2258. CHK_(ptr);
  2259. } else goto handle_unusual;
  2260. continue;
  2261. // repeated uint32 options = 5;
  2262. case 5:
  2263. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
  2264. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_options(), ptr, ctx);
  2265. CHK_(ptr);
  2266. } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40) {
  2267. _internal_add_options(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
  2268. CHK_(ptr);
  2269. } else goto handle_unusual;
  2270. continue;
  2271. // uint32 UserStat = 6;
  2272. case 6:
  2273. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
  2274. userstat_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  2275. CHK_(ptr);
  2276. } else goto handle_unusual;
  2277. continue;
  2278. default: {
  2279. handle_unusual:
  2280. if ((tag & 7) == 4 || tag == 0) {
  2281. ctx->SetLastTag(tag);
  2282. goto success;
  2283. }
  2284. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  2285. CHK_(ptr != nullptr);
  2286. continue;
  2287. }
  2288. } // switch
  2289. } // while
  2290. success:
  2291. return ptr;
  2292. failure:
  2293. ptr = nullptr;
  2294. goto success;
  2295. #undef CHK_
  2296. }
  2297. ::PROTOBUF_NAMESPACE_ID::uint8* PB_CS_S_StatusFree::InternalSerializeWithCachedSizesToArray(
  2298. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2299. // @@protoc_insertion_point(serialize_to_array_start:GameInfo.PB_CS_S_StatusFree)
  2300. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  2301. (void) cached_has_bits;
  2302. // .GameInfo.PB_CS_C_tagGameConfig gameConfig = 1;
  2303. if (this->has_gameconfig()) {
  2304. target = stream->EnsureSpace(target);
  2305. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2306. InternalWriteMessageToArray(
  2307. 1, _Internal::gameconfig(this), target, stream);
  2308. }
  2309. // repeated sint64 lUserTmpScore = 2;
  2310. {
  2311. int byte_size = _lusertmpscore_cached_byte_size_.load(std::memory_order_relaxed);
  2312. if (byte_size > 0) {
  2313. target = stream->WriteSInt64Packed(
  2314. 2, _internal_lusertmpscore(), byte_size, target);
  2315. }
  2316. }
  2317. // uint32 leftTime = 3;
  2318. if (this->lefttime() != 0) {
  2319. target = stream->EnsureSpace(target);
  2320. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_lefttime(), target);
  2321. }
  2322. // uint32 wchairId = 4;
  2323. if (this->wchairid() != 0) {
  2324. target = stream->EnsureSpace(target);
  2325. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_wchairid(), target);
  2326. }
  2327. // repeated uint32 options = 5;
  2328. {
  2329. int byte_size = _options_cached_byte_size_.load(std::memory_order_relaxed);
  2330. if (byte_size > 0) {
  2331. target = stream->WriteUInt32Packed(
  2332. 5, _internal_options(), byte_size, target);
  2333. }
  2334. }
  2335. // uint32 UserStat = 6;
  2336. if (this->userstat() != 0) {
  2337. target = stream->EnsureSpace(target);
  2338. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(6, this->_internal_userstat(), target);
  2339. }
  2340. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2341. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2342. _internal_metadata_.unknown_fields(), target, stream);
  2343. }
  2344. // @@protoc_insertion_point(serialize_to_array_end:GameInfo.PB_CS_S_StatusFree)
  2345. return target;
  2346. }
  2347. size_t PB_CS_S_StatusFree::ByteSizeLong() const {
  2348. // @@protoc_insertion_point(message_byte_size_start:GameInfo.PB_CS_S_StatusFree)
  2349. size_t total_size = 0;
  2350. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  2351. // Prevent compiler warnings about cached_has_bits being unused
  2352. (void) cached_has_bits;
  2353. // repeated sint64 lUserTmpScore = 2;
  2354. {
  2355. size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2356. SInt64Size(this->lusertmpscore_);
  2357. if (data_size > 0) {
  2358. total_size += 1 +
  2359. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  2360. static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
  2361. }
  2362. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
  2363. _lusertmpscore_cached_byte_size_.store(cached_size,
  2364. std::memory_order_relaxed);
  2365. total_size += data_size;
  2366. }
  2367. // repeated uint32 options = 5;
  2368. {
  2369. size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2370. UInt32Size(this->options_);
  2371. if (data_size > 0) {
  2372. total_size += 1 +
  2373. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  2374. static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
  2375. }
  2376. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
  2377. _options_cached_byte_size_.store(cached_size,
  2378. std::memory_order_relaxed);
  2379. total_size += data_size;
  2380. }
  2381. // .GameInfo.PB_CS_C_tagGameConfig gameConfig = 1;
  2382. if (this->has_gameconfig()) {
  2383. total_size += 1 +
  2384. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  2385. *gameconfig_);
  2386. }
  2387. // uint32 leftTime = 3;
  2388. if (this->lefttime() != 0) {
  2389. total_size += 1 +
  2390. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  2391. this->_internal_lefttime());
  2392. }
  2393. // uint32 wchairId = 4;
  2394. if (this->wchairid() != 0) {
  2395. total_size += 1 +
  2396. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  2397. this->_internal_wchairid());
  2398. }
  2399. // uint32 UserStat = 6;
  2400. if (this->userstat() != 0) {
  2401. total_size += 1 +
  2402. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  2403. this->_internal_userstat());
  2404. }
  2405. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2406. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  2407. _internal_metadata_, total_size, &_cached_size_);
  2408. }
  2409. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  2410. SetCachedSize(cached_size);
  2411. return total_size;
  2412. }
  2413. void PB_CS_S_StatusFree::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2414. // @@protoc_insertion_point(generalized_merge_from_start:GameInfo.PB_CS_S_StatusFree)
  2415. GOOGLE_DCHECK_NE(&from, this);
  2416. const PB_CS_S_StatusFree* source =
  2417. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PB_CS_S_StatusFree>(
  2418. &from);
  2419. if (source == nullptr) {
  2420. // @@protoc_insertion_point(generalized_merge_from_cast_fail:GameInfo.PB_CS_S_StatusFree)
  2421. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  2422. } else {
  2423. // @@protoc_insertion_point(generalized_merge_from_cast_success:GameInfo.PB_CS_S_StatusFree)
  2424. MergeFrom(*source);
  2425. }
  2426. }
  2427. void PB_CS_S_StatusFree::MergeFrom(const PB_CS_S_StatusFree& from) {
  2428. // @@protoc_insertion_point(class_specific_merge_from_start:GameInfo.PB_CS_S_StatusFree)
  2429. GOOGLE_DCHECK_NE(&from, this);
  2430. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2431. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  2432. (void) cached_has_bits;
  2433. lusertmpscore_.MergeFrom(from.lusertmpscore_);
  2434. options_.MergeFrom(from.options_);
  2435. if (from.has_gameconfig()) {
  2436. _internal_mutable_gameconfig()->::GameInfo::PB_CS_C_tagGameConfig::MergeFrom(from._internal_gameconfig());
  2437. }
  2438. if (from.lefttime() != 0) {
  2439. _internal_set_lefttime(from._internal_lefttime());
  2440. }
  2441. if (from.wchairid() != 0) {
  2442. _internal_set_wchairid(from._internal_wchairid());
  2443. }
  2444. if (from.userstat() != 0) {
  2445. _internal_set_userstat(from._internal_userstat());
  2446. }
  2447. }
  2448. void PB_CS_S_StatusFree::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2449. // @@protoc_insertion_point(generalized_copy_from_start:GameInfo.PB_CS_S_StatusFree)
  2450. if (&from == this) return;
  2451. Clear();
  2452. MergeFrom(from);
  2453. }
  2454. void PB_CS_S_StatusFree::CopyFrom(const PB_CS_S_StatusFree& from) {
  2455. // @@protoc_insertion_point(class_specific_copy_from_start:GameInfo.PB_CS_S_StatusFree)
  2456. if (&from == this) return;
  2457. Clear();
  2458. MergeFrom(from);
  2459. }
  2460. bool PB_CS_S_StatusFree::IsInitialized() const {
  2461. return true;
  2462. }
  2463. void PB_CS_S_StatusFree::InternalSwap(PB_CS_S_StatusFree* other) {
  2464. using std::swap;
  2465. _internal_metadata_.Swap(&other->_internal_metadata_);
  2466. lusertmpscore_.InternalSwap(&other->lusertmpscore_);
  2467. options_.InternalSwap(&other->options_);
  2468. swap(gameconfig_, other->gameconfig_);
  2469. swap(lefttime_, other->lefttime_);
  2470. swap(wchairid_, other->wchairid_);
  2471. swap(userstat_, other->userstat_);
  2472. }
  2473. ::PROTOBUF_NAMESPACE_ID::Metadata PB_CS_S_StatusFree::GetMetadata() const {
  2474. return GetMetadataStatic();
  2475. }
  2476. // ===================================================================
  2477. void pb_WeaveItem::InitAsDefaultInstance() {
  2478. }
  2479. class pb_WeaveItem::_Internal {
  2480. public:
  2481. };
  2482. pb_WeaveItem::pb_WeaveItem()
  2483. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  2484. SharedCtor();
  2485. // @@protoc_insertion_point(constructor:GameInfo.pb_WeaveItem)
  2486. }
  2487. pb_WeaveItem::pb_WeaveItem(const pb_WeaveItem& from)
  2488. : ::PROTOBUF_NAMESPACE_ID::Message(),
  2489. _internal_metadata_(nullptr),
  2490. cbmargicoffset_(from.cbmargicoffset_) {
  2491. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2492. ::memcpy(&cbweavekind_, &from.cbweavekind_,
  2493. static_cast<size_t>(reinterpret_cast<char*>(&wprovideuser_) -
  2494. reinterpret_cast<char*>(&cbweavekind_)) + sizeof(wprovideuser_));
  2495. // @@protoc_insertion_point(copy_constructor:GameInfo.pb_WeaveItem)
  2496. }
  2497. void pb_WeaveItem::SharedCtor() {
  2498. ::memset(&cbweavekind_, 0, static_cast<size_t>(
  2499. reinterpret_cast<char*>(&wprovideuser_) -
  2500. reinterpret_cast<char*>(&cbweavekind_)) + sizeof(wprovideuser_));
  2501. }
  2502. pb_WeaveItem::~pb_WeaveItem() {
  2503. // @@protoc_insertion_point(destructor:GameInfo.pb_WeaveItem)
  2504. SharedDtor();
  2505. }
  2506. void pb_WeaveItem::SharedDtor() {
  2507. }
  2508. void pb_WeaveItem::SetCachedSize(int size) const {
  2509. _cached_size_.Set(size);
  2510. }
  2511. const pb_WeaveItem& pb_WeaveItem::default_instance() {
  2512. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_pb_WeaveItem_Pb_5fGameInfo_2eproto.base);
  2513. return *internal_default_instance();
  2514. }
  2515. void pb_WeaveItem::Clear() {
  2516. // @@protoc_insertion_point(message_clear_start:GameInfo.pb_WeaveItem)
  2517. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  2518. // Prevent compiler warnings about cached_has_bits being unused
  2519. (void) cached_has_bits;
  2520. cbmargicoffset_.Clear();
  2521. ::memset(&cbweavekind_, 0, static_cast<size_t>(
  2522. reinterpret_cast<char*>(&wprovideuser_) -
  2523. reinterpret_cast<char*>(&cbweavekind_)) + sizeof(wprovideuser_));
  2524. _internal_metadata_.Clear();
  2525. }
  2526. const char* pb_WeaveItem::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2527. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2528. while (!ctx->Done(&ptr)) {
  2529. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  2530. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2531. CHK_(ptr);
  2532. switch (tag >> 3) {
  2533. // uint32 cbWeaveKind = 1;
  2534. case 1:
  2535. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
  2536. cbweavekind_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  2537. CHK_(ptr);
  2538. } else goto handle_unusual;
  2539. continue;
  2540. // uint32 cbCenterCard = 2;
  2541. case 2:
  2542. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
  2543. cbcentercard_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  2544. CHK_(ptr);
  2545. } else goto handle_unusual;
  2546. continue;
  2547. // uint32 cbPublicCard = 3;
  2548. case 3:
  2549. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
  2550. cbpubliccard_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  2551. CHK_(ptr);
  2552. } else goto handle_unusual;
  2553. continue;
  2554. // uint32 wProvideUser = 4;
  2555. case 4:
  2556. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
  2557. wprovideuser_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  2558. CHK_(ptr);
  2559. } else goto handle_unusual;
  2560. continue;
  2561. // repeated uint32 cbMargicOffset = 5;
  2562. case 5:
  2563. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
  2564. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_cbmargicoffset(), ptr, ctx);
  2565. CHK_(ptr);
  2566. } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40) {
  2567. _internal_add_cbmargicoffset(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
  2568. CHK_(ptr);
  2569. } else goto handle_unusual;
  2570. continue;
  2571. default: {
  2572. handle_unusual:
  2573. if ((tag & 7) == 4 || tag == 0) {
  2574. ctx->SetLastTag(tag);
  2575. goto success;
  2576. }
  2577. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  2578. CHK_(ptr != nullptr);
  2579. continue;
  2580. }
  2581. } // switch
  2582. } // while
  2583. success:
  2584. return ptr;
  2585. failure:
  2586. ptr = nullptr;
  2587. goto success;
  2588. #undef CHK_
  2589. }
  2590. ::PROTOBUF_NAMESPACE_ID::uint8* pb_WeaveItem::InternalSerializeWithCachedSizesToArray(
  2591. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2592. // @@protoc_insertion_point(serialize_to_array_start:GameInfo.pb_WeaveItem)
  2593. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  2594. (void) cached_has_bits;
  2595. // uint32 cbWeaveKind = 1;
  2596. if (this->cbweavekind() != 0) {
  2597. target = stream->EnsureSpace(target);
  2598. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_cbweavekind(), target);
  2599. }
  2600. // uint32 cbCenterCard = 2;
  2601. if (this->cbcentercard() != 0) {
  2602. target = stream->EnsureSpace(target);
  2603. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_cbcentercard(), target);
  2604. }
  2605. // uint32 cbPublicCard = 3;
  2606. if (this->cbpubliccard() != 0) {
  2607. target = stream->EnsureSpace(target);
  2608. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_cbpubliccard(), target);
  2609. }
  2610. // uint32 wProvideUser = 4;
  2611. if (this->wprovideuser() != 0) {
  2612. target = stream->EnsureSpace(target);
  2613. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_wprovideuser(), target);
  2614. }
  2615. // repeated uint32 cbMargicOffset = 5;
  2616. {
  2617. int byte_size = _cbmargicoffset_cached_byte_size_.load(std::memory_order_relaxed);
  2618. if (byte_size > 0) {
  2619. target = stream->WriteUInt32Packed(
  2620. 5, _internal_cbmargicoffset(), byte_size, target);
  2621. }
  2622. }
  2623. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2624. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2625. _internal_metadata_.unknown_fields(), target, stream);
  2626. }
  2627. // @@protoc_insertion_point(serialize_to_array_end:GameInfo.pb_WeaveItem)
  2628. return target;
  2629. }
  2630. size_t pb_WeaveItem::ByteSizeLong() const {
  2631. // @@protoc_insertion_point(message_byte_size_start:GameInfo.pb_WeaveItem)
  2632. size_t total_size = 0;
  2633. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  2634. // Prevent compiler warnings about cached_has_bits being unused
  2635. (void) cached_has_bits;
  2636. // repeated uint32 cbMargicOffset = 5;
  2637. {
  2638. size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2639. UInt32Size(this->cbmargicoffset_);
  2640. if (data_size > 0) {
  2641. total_size += 1 +
  2642. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  2643. static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
  2644. }
  2645. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
  2646. _cbmargicoffset_cached_byte_size_.store(cached_size,
  2647. std::memory_order_relaxed);
  2648. total_size += data_size;
  2649. }
  2650. // uint32 cbWeaveKind = 1;
  2651. if (this->cbweavekind() != 0) {
  2652. total_size += 1 +
  2653. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  2654. this->_internal_cbweavekind());
  2655. }
  2656. // uint32 cbCenterCard = 2;
  2657. if (this->cbcentercard() != 0) {
  2658. total_size += 1 +
  2659. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  2660. this->_internal_cbcentercard());
  2661. }
  2662. // uint32 cbPublicCard = 3;
  2663. if (this->cbpubliccard() != 0) {
  2664. total_size += 1 +
  2665. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  2666. this->_internal_cbpubliccard());
  2667. }
  2668. // uint32 wProvideUser = 4;
  2669. if (this->wprovideuser() != 0) {
  2670. total_size += 1 +
  2671. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  2672. this->_internal_wprovideuser());
  2673. }
  2674. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2675. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  2676. _internal_metadata_, total_size, &_cached_size_);
  2677. }
  2678. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  2679. SetCachedSize(cached_size);
  2680. return total_size;
  2681. }
  2682. void pb_WeaveItem::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2683. // @@protoc_insertion_point(generalized_merge_from_start:GameInfo.pb_WeaveItem)
  2684. GOOGLE_DCHECK_NE(&from, this);
  2685. const pb_WeaveItem* source =
  2686. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<pb_WeaveItem>(
  2687. &from);
  2688. if (source == nullptr) {
  2689. // @@protoc_insertion_point(generalized_merge_from_cast_fail:GameInfo.pb_WeaveItem)
  2690. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  2691. } else {
  2692. // @@protoc_insertion_point(generalized_merge_from_cast_success:GameInfo.pb_WeaveItem)
  2693. MergeFrom(*source);
  2694. }
  2695. }
  2696. void pb_WeaveItem::MergeFrom(const pb_WeaveItem& from) {
  2697. // @@protoc_insertion_point(class_specific_merge_from_start:GameInfo.pb_WeaveItem)
  2698. GOOGLE_DCHECK_NE(&from, this);
  2699. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2700. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  2701. (void) cached_has_bits;
  2702. cbmargicoffset_.MergeFrom(from.cbmargicoffset_);
  2703. if (from.cbweavekind() != 0) {
  2704. _internal_set_cbweavekind(from._internal_cbweavekind());
  2705. }
  2706. if (from.cbcentercard() != 0) {
  2707. _internal_set_cbcentercard(from._internal_cbcentercard());
  2708. }
  2709. if (from.cbpubliccard() != 0) {
  2710. _internal_set_cbpubliccard(from._internal_cbpubliccard());
  2711. }
  2712. if (from.wprovideuser() != 0) {
  2713. _internal_set_wprovideuser(from._internal_wprovideuser());
  2714. }
  2715. }
  2716. void pb_WeaveItem::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2717. // @@protoc_insertion_point(generalized_copy_from_start:GameInfo.pb_WeaveItem)
  2718. if (&from == this) return;
  2719. Clear();
  2720. MergeFrom(from);
  2721. }
  2722. void pb_WeaveItem::CopyFrom(const pb_WeaveItem& from) {
  2723. // @@protoc_insertion_point(class_specific_copy_from_start:GameInfo.pb_WeaveItem)
  2724. if (&from == this) return;
  2725. Clear();
  2726. MergeFrom(from);
  2727. }
  2728. bool pb_WeaveItem::IsInitialized() const {
  2729. return true;
  2730. }
  2731. void pb_WeaveItem::InternalSwap(pb_WeaveItem* other) {
  2732. using std::swap;
  2733. _internal_metadata_.Swap(&other->_internal_metadata_);
  2734. cbmargicoffset_.InternalSwap(&other->cbmargicoffset_);
  2735. swap(cbweavekind_, other->cbweavekind_);
  2736. swap(cbcentercard_, other->cbcentercard_);
  2737. swap(cbpubliccard_, other->cbpubliccard_);
  2738. swap(wprovideuser_, other->wprovideuser_);
  2739. }
  2740. ::PROTOBUF_NAMESPACE_ID::Metadata pb_WeaveItem::GetMetadata() const {
  2741. return GetMetadataStatic();
  2742. }
  2743. // ===================================================================
  2744. void pb_WeaveItemArray::InitAsDefaultInstance() {
  2745. }
  2746. class pb_WeaveItemArray::_Internal {
  2747. public:
  2748. };
  2749. pb_WeaveItemArray::pb_WeaveItemArray()
  2750. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  2751. SharedCtor();
  2752. // @@protoc_insertion_point(constructor:GameInfo.pb_WeaveItemArray)
  2753. }
  2754. pb_WeaveItemArray::pb_WeaveItemArray(const pb_WeaveItemArray& from)
  2755. : ::PROTOBUF_NAMESPACE_ID::Message(),
  2756. _internal_metadata_(nullptr),
  2757. weaveitem_(from.weaveitem_) {
  2758. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2759. // @@protoc_insertion_point(copy_constructor:GameInfo.pb_WeaveItemArray)
  2760. }
  2761. void pb_WeaveItemArray::SharedCtor() {
  2762. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_pb_WeaveItemArray_Pb_5fGameInfo_2eproto.base);
  2763. }
  2764. pb_WeaveItemArray::~pb_WeaveItemArray() {
  2765. // @@protoc_insertion_point(destructor:GameInfo.pb_WeaveItemArray)
  2766. SharedDtor();
  2767. }
  2768. void pb_WeaveItemArray::SharedDtor() {
  2769. }
  2770. void pb_WeaveItemArray::SetCachedSize(int size) const {
  2771. _cached_size_.Set(size);
  2772. }
  2773. const pb_WeaveItemArray& pb_WeaveItemArray::default_instance() {
  2774. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_pb_WeaveItemArray_Pb_5fGameInfo_2eproto.base);
  2775. return *internal_default_instance();
  2776. }
  2777. void pb_WeaveItemArray::Clear() {
  2778. // @@protoc_insertion_point(message_clear_start:GameInfo.pb_WeaveItemArray)
  2779. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  2780. // Prevent compiler warnings about cached_has_bits being unused
  2781. (void) cached_has_bits;
  2782. weaveitem_.Clear();
  2783. _internal_metadata_.Clear();
  2784. }
  2785. const char* pb_WeaveItemArray::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2786. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2787. while (!ctx->Done(&ptr)) {
  2788. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  2789. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2790. CHK_(ptr);
  2791. switch (tag >> 3) {
  2792. // repeated .GameInfo.pb_WeaveItem WeaveItem = 2;
  2793. case 2:
  2794. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
  2795. ptr -= 1;
  2796. do {
  2797. ptr += 1;
  2798. ptr = ctx->ParseMessage(_internal_add_weaveitem(), ptr);
  2799. CHK_(ptr);
  2800. if (!ctx->DataAvailable(ptr)) break;
  2801. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
  2802. } else goto handle_unusual;
  2803. continue;
  2804. default: {
  2805. handle_unusual:
  2806. if ((tag & 7) == 4 || tag == 0) {
  2807. ctx->SetLastTag(tag);
  2808. goto success;
  2809. }
  2810. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  2811. CHK_(ptr != nullptr);
  2812. continue;
  2813. }
  2814. } // switch
  2815. } // while
  2816. success:
  2817. return ptr;
  2818. failure:
  2819. ptr = nullptr;
  2820. goto success;
  2821. #undef CHK_
  2822. }
  2823. ::PROTOBUF_NAMESPACE_ID::uint8* pb_WeaveItemArray::InternalSerializeWithCachedSizesToArray(
  2824. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2825. // @@protoc_insertion_point(serialize_to_array_start:GameInfo.pb_WeaveItemArray)
  2826. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  2827. (void) cached_has_bits;
  2828. // repeated .GameInfo.pb_WeaveItem WeaveItem = 2;
  2829. for (unsigned int i = 0,
  2830. n = static_cast<unsigned int>(this->_internal_weaveitem_size()); i < n; i++) {
  2831. target = stream->EnsureSpace(target);
  2832. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2833. InternalWriteMessageToArray(2, this->_internal_weaveitem(i), target, stream);
  2834. }
  2835. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2836. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2837. _internal_metadata_.unknown_fields(), target, stream);
  2838. }
  2839. // @@protoc_insertion_point(serialize_to_array_end:GameInfo.pb_WeaveItemArray)
  2840. return target;
  2841. }
  2842. size_t pb_WeaveItemArray::ByteSizeLong() const {
  2843. // @@protoc_insertion_point(message_byte_size_start:GameInfo.pb_WeaveItemArray)
  2844. size_t total_size = 0;
  2845. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  2846. // Prevent compiler warnings about cached_has_bits being unused
  2847. (void) cached_has_bits;
  2848. // repeated .GameInfo.pb_WeaveItem WeaveItem = 2;
  2849. total_size += 1UL * this->_internal_weaveitem_size();
  2850. for (const auto& msg : this->weaveitem_) {
  2851. total_size +=
  2852. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  2853. }
  2854. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2855. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  2856. _internal_metadata_, total_size, &_cached_size_);
  2857. }
  2858. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  2859. SetCachedSize(cached_size);
  2860. return total_size;
  2861. }
  2862. void pb_WeaveItemArray::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2863. // @@protoc_insertion_point(generalized_merge_from_start:GameInfo.pb_WeaveItemArray)
  2864. GOOGLE_DCHECK_NE(&from, this);
  2865. const pb_WeaveItemArray* source =
  2866. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<pb_WeaveItemArray>(
  2867. &from);
  2868. if (source == nullptr) {
  2869. // @@protoc_insertion_point(generalized_merge_from_cast_fail:GameInfo.pb_WeaveItemArray)
  2870. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  2871. } else {
  2872. // @@protoc_insertion_point(generalized_merge_from_cast_success:GameInfo.pb_WeaveItemArray)
  2873. MergeFrom(*source);
  2874. }
  2875. }
  2876. void pb_WeaveItemArray::MergeFrom(const pb_WeaveItemArray& from) {
  2877. // @@protoc_insertion_point(class_specific_merge_from_start:GameInfo.pb_WeaveItemArray)
  2878. GOOGLE_DCHECK_NE(&from, this);
  2879. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2880. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  2881. (void) cached_has_bits;
  2882. weaveitem_.MergeFrom(from.weaveitem_);
  2883. }
  2884. void pb_WeaveItemArray::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2885. // @@protoc_insertion_point(generalized_copy_from_start:GameInfo.pb_WeaveItemArray)
  2886. if (&from == this) return;
  2887. Clear();
  2888. MergeFrom(from);
  2889. }
  2890. void pb_WeaveItemArray::CopyFrom(const pb_WeaveItemArray& from) {
  2891. // @@protoc_insertion_point(class_specific_copy_from_start:GameInfo.pb_WeaveItemArray)
  2892. if (&from == this) return;
  2893. Clear();
  2894. MergeFrom(from);
  2895. }
  2896. bool pb_WeaveItemArray::IsInitialized() const {
  2897. return true;
  2898. }
  2899. void pb_WeaveItemArray::InternalSwap(pb_WeaveItemArray* other) {
  2900. using std::swap;
  2901. _internal_metadata_.Swap(&other->_internal_metadata_);
  2902. weaveitem_.InternalSwap(&other->weaveitem_);
  2903. }
  2904. ::PROTOBUF_NAMESPACE_ID::Metadata pb_WeaveItemArray::GetMetadata() const {
  2905. return GetMetadataStatic();
  2906. }
  2907. // ===================================================================
  2908. void pb_cbDiscardCard::InitAsDefaultInstance() {
  2909. }
  2910. class pb_cbDiscardCard::_Internal {
  2911. public:
  2912. };
  2913. pb_cbDiscardCard::pb_cbDiscardCard()
  2914. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  2915. SharedCtor();
  2916. // @@protoc_insertion_point(constructor:GameInfo.pb_cbDiscardCard)
  2917. }
  2918. pb_cbDiscardCard::pb_cbDiscardCard(const pb_cbDiscardCard& from)
  2919. : ::PROTOBUF_NAMESPACE_ID::Message(),
  2920. _internal_metadata_(nullptr),
  2921. cbdiscardcard_(from.cbdiscardcard_) {
  2922. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2923. // @@protoc_insertion_point(copy_constructor:GameInfo.pb_cbDiscardCard)
  2924. }
  2925. void pb_cbDiscardCard::SharedCtor() {
  2926. }
  2927. pb_cbDiscardCard::~pb_cbDiscardCard() {
  2928. // @@protoc_insertion_point(destructor:GameInfo.pb_cbDiscardCard)
  2929. SharedDtor();
  2930. }
  2931. void pb_cbDiscardCard::SharedDtor() {
  2932. }
  2933. void pb_cbDiscardCard::SetCachedSize(int size) const {
  2934. _cached_size_.Set(size);
  2935. }
  2936. const pb_cbDiscardCard& pb_cbDiscardCard::default_instance() {
  2937. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_pb_cbDiscardCard_Pb_5fGameInfo_2eproto.base);
  2938. return *internal_default_instance();
  2939. }
  2940. void pb_cbDiscardCard::Clear() {
  2941. // @@protoc_insertion_point(message_clear_start:GameInfo.pb_cbDiscardCard)
  2942. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  2943. // Prevent compiler warnings about cached_has_bits being unused
  2944. (void) cached_has_bits;
  2945. cbdiscardcard_.Clear();
  2946. _internal_metadata_.Clear();
  2947. }
  2948. const char* pb_cbDiscardCard::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2949. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2950. while (!ctx->Done(&ptr)) {
  2951. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  2952. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2953. CHK_(ptr);
  2954. switch (tag >> 3) {
  2955. // repeated uint32 cbDiscardCard = 1;
  2956. case 1:
  2957. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
  2958. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_cbdiscardcard(), ptr, ctx);
  2959. CHK_(ptr);
  2960. } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) {
  2961. _internal_add_cbdiscardcard(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
  2962. CHK_(ptr);
  2963. } else goto handle_unusual;
  2964. continue;
  2965. default: {
  2966. handle_unusual:
  2967. if ((tag & 7) == 4 || tag == 0) {
  2968. ctx->SetLastTag(tag);
  2969. goto success;
  2970. }
  2971. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  2972. CHK_(ptr != nullptr);
  2973. continue;
  2974. }
  2975. } // switch
  2976. } // while
  2977. success:
  2978. return ptr;
  2979. failure:
  2980. ptr = nullptr;
  2981. goto success;
  2982. #undef CHK_
  2983. }
  2984. ::PROTOBUF_NAMESPACE_ID::uint8* pb_cbDiscardCard::InternalSerializeWithCachedSizesToArray(
  2985. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2986. // @@protoc_insertion_point(serialize_to_array_start:GameInfo.pb_cbDiscardCard)
  2987. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  2988. (void) cached_has_bits;
  2989. // repeated uint32 cbDiscardCard = 1;
  2990. {
  2991. int byte_size = _cbdiscardcard_cached_byte_size_.load(std::memory_order_relaxed);
  2992. if (byte_size > 0) {
  2993. target = stream->WriteUInt32Packed(
  2994. 1, _internal_cbdiscardcard(), byte_size, target);
  2995. }
  2996. }
  2997. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2998. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2999. _internal_metadata_.unknown_fields(), target, stream);
  3000. }
  3001. // @@protoc_insertion_point(serialize_to_array_end:GameInfo.pb_cbDiscardCard)
  3002. return target;
  3003. }
  3004. size_t pb_cbDiscardCard::ByteSizeLong() const {
  3005. // @@protoc_insertion_point(message_byte_size_start:GameInfo.pb_cbDiscardCard)
  3006. size_t total_size = 0;
  3007. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  3008. // Prevent compiler warnings about cached_has_bits being unused
  3009. (void) cached_has_bits;
  3010. // repeated uint32 cbDiscardCard = 1;
  3011. {
  3012. size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3013. UInt32Size(this->cbdiscardcard_);
  3014. if (data_size > 0) {
  3015. total_size += 1 +
  3016. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  3017. static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
  3018. }
  3019. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
  3020. _cbdiscardcard_cached_byte_size_.store(cached_size,
  3021. std::memory_order_relaxed);
  3022. total_size += data_size;
  3023. }
  3024. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3025. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  3026. _internal_metadata_, total_size, &_cached_size_);
  3027. }
  3028. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  3029. SetCachedSize(cached_size);
  3030. return total_size;
  3031. }
  3032. void pb_cbDiscardCard::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3033. // @@protoc_insertion_point(generalized_merge_from_start:GameInfo.pb_cbDiscardCard)
  3034. GOOGLE_DCHECK_NE(&from, this);
  3035. const pb_cbDiscardCard* source =
  3036. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<pb_cbDiscardCard>(
  3037. &from);
  3038. if (source == nullptr) {
  3039. // @@protoc_insertion_point(generalized_merge_from_cast_fail:GameInfo.pb_cbDiscardCard)
  3040. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  3041. } else {
  3042. // @@protoc_insertion_point(generalized_merge_from_cast_success:GameInfo.pb_cbDiscardCard)
  3043. MergeFrom(*source);
  3044. }
  3045. }
  3046. void pb_cbDiscardCard::MergeFrom(const pb_cbDiscardCard& from) {
  3047. // @@protoc_insertion_point(class_specific_merge_from_start:GameInfo.pb_cbDiscardCard)
  3048. GOOGLE_DCHECK_NE(&from, this);
  3049. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3050. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  3051. (void) cached_has_bits;
  3052. cbdiscardcard_.MergeFrom(from.cbdiscardcard_);
  3053. }
  3054. void pb_cbDiscardCard::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3055. // @@protoc_insertion_point(generalized_copy_from_start:GameInfo.pb_cbDiscardCard)
  3056. if (&from == this) return;
  3057. Clear();
  3058. MergeFrom(from);
  3059. }
  3060. void pb_cbDiscardCard::CopyFrom(const pb_cbDiscardCard& from) {
  3061. // @@protoc_insertion_point(class_specific_copy_from_start:GameInfo.pb_cbDiscardCard)
  3062. if (&from == this) return;
  3063. Clear();
  3064. MergeFrom(from);
  3065. }
  3066. bool pb_cbDiscardCard::IsInitialized() const {
  3067. return true;
  3068. }
  3069. void pb_cbDiscardCard::InternalSwap(pb_cbDiscardCard* other) {
  3070. using std::swap;
  3071. _internal_metadata_.Swap(&other->_internal_metadata_);
  3072. cbdiscardcard_.InternalSwap(&other->cbdiscardcard_);
  3073. }
  3074. ::PROTOBUF_NAMESPACE_ID::Metadata pb_cbDiscardCard::GetMetadata() const {
  3075. return GetMetadataStatic();
  3076. }
  3077. // ===================================================================
  3078. void PB_CS_S_StatusPlay::InitAsDefaultInstance() {
  3079. ::GameInfo::_PB_CS_S_StatusPlay_default_instance_._instance.get_mutable()->gameconfig_ = const_cast< ::GameInfo::PB_CS_C_tagGameConfig*>(
  3080. ::GameInfo::PB_CS_C_tagGameConfig::internal_default_instance());
  3081. }
  3082. class PB_CS_S_StatusPlay::_Internal {
  3083. public:
  3084. static const ::GameInfo::PB_CS_C_tagGameConfig& gameconfig(const PB_CS_S_StatusPlay* msg);
  3085. };
  3086. const ::GameInfo::PB_CS_C_tagGameConfig&
  3087. PB_CS_S_StatusPlay::_Internal::gameconfig(const PB_CS_S_StatusPlay* msg) {
  3088. return *msg->gameconfig_;
  3089. }
  3090. PB_CS_S_StatusPlay::PB_CS_S_StatusPlay()
  3091. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  3092. SharedCtor();
  3093. // @@protoc_insertion_point(constructor:GameInfo.PB_CS_S_StatusPlay)
  3094. }
  3095. PB_CS_S_StatusPlay::PB_CS_S_StatusPlay(const PB_CS_S_StatusPlay& from)
  3096. : ::PROTOBUF_NAMESPACE_ID::Message(),
  3097. _internal_metadata_(nullptr),
  3098. lusertmpscore_(from.lusertmpscore_),
  3099. options_(from.options_),
  3100. lsizi_(from.lsizi_),
  3101. bputcarddata_(from.bputcarddata_),
  3102. cbdiscardcount_(from.cbdiscardcount_),
  3103. cbdiscardcard_(from.cbdiscardcard_),
  3104. cbcardcount_(from.cbcardcount_),
  3105. cbweavecount_(from.cbweavecount_),
  3106. weaveitemarray_(from.weaveitemarray_),
  3107. cbcarddata_(from.cbcarddata_),
  3108. gangcards_(from.gangcards_) {
  3109. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3110. if (from._internal_has_gameconfig()) {
  3111. gameconfig_ = new ::GameInfo::PB_CS_C_tagGameConfig(*from.gameconfig_);
  3112. } else {
  3113. gameconfig_ = nullptr;
  3114. }
  3115. ::memcpy(&lefttime_, &from.lefttime_,
  3116. static_cast<size_t>(reinterpret_cast<char*>(&leftopttime_) -
  3117. reinterpret_cast<char*>(&lefttime_)) + sizeof(leftopttime_));
  3118. // @@protoc_insertion_point(copy_constructor:GameInfo.PB_CS_S_StatusPlay)
  3119. }
  3120. void PB_CS_S_StatusPlay::SharedCtor() {
  3121. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PB_CS_S_StatusPlay_Pb_5fGameInfo_2eproto.base);
  3122. ::memset(&gameconfig_, 0, static_cast<size_t>(
  3123. reinterpret_cast<char*>(&leftopttime_) -
  3124. reinterpret_cast<char*>(&gameconfig_)) + sizeof(leftopttime_));
  3125. }
  3126. PB_CS_S_StatusPlay::~PB_CS_S_StatusPlay() {
  3127. // @@protoc_insertion_point(destructor:GameInfo.PB_CS_S_StatusPlay)
  3128. SharedDtor();
  3129. }
  3130. void PB_CS_S_StatusPlay::SharedDtor() {
  3131. if (this != internal_default_instance()) delete gameconfig_;
  3132. }
  3133. void PB_CS_S_StatusPlay::SetCachedSize(int size) const {
  3134. _cached_size_.Set(size);
  3135. }
  3136. const PB_CS_S_StatusPlay& PB_CS_S_StatusPlay::default_instance() {
  3137. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PB_CS_S_StatusPlay_Pb_5fGameInfo_2eproto.base);
  3138. return *internal_default_instance();
  3139. }
  3140. void PB_CS_S_StatusPlay::Clear() {
  3141. // @@protoc_insertion_point(message_clear_start:GameInfo.PB_CS_S_StatusPlay)
  3142. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  3143. // Prevent compiler warnings about cached_has_bits being unused
  3144. (void) cached_has_bits;
  3145. lusertmpscore_.Clear();
  3146. options_.Clear();
  3147. lsizi_.Clear();
  3148. bputcarddata_.Clear();
  3149. cbdiscardcount_.Clear();
  3150. cbdiscardcard_.Clear();
  3151. cbcardcount_.Clear();
  3152. cbweavecount_.Clear();
  3153. weaveitemarray_.Clear();
  3154. cbcarddata_.Clear();
  3155. gangcards_.Clear();
  3156. if (GetArenaNoVirtual() == nullptr && gameconfig_ != nullptr) {
  3157. delete gameconfig_;
  3158. }
  3159. gameconfig_ = nullptr;
  3160. ::memset(&lefttime_, 0, static_cast<size_t>(
  3161. reinterpret_cast<char*>(&leftopttime_) -
  3162. reinterpret_cast<char*>(&lefttime_)) + sizeof(leftopttime_));
  3163. _internal_metadata_.Clear();
  3164. }
  3165. const char* PB_CS_S_StatusPlay::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3166. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3167. while (!ctx->Done(&ptr)) {
  3168. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  3169. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3170. CHK_(ptr);
  3171. switch (tag >> 3) {
  3172. // .GameInfo.PB_CS_C_tagGameConfig gameConfig = 1;
  3173. case 1:
  3174. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
  3175. ptr = ctx->ParseMessage(_internal_mutable_gameconfig(), ptr);
  3176. CHK_(ptr);
  3177. } else goto handle_unusual;
  3178. continue;
  3179. // repeated uint64 lUserTmpScore = 2;
  3180. case 2:
  3181. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
  3182. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt64Parser(_internal_mutable_lusertmpscore(), ptr, ctx);
  3183. CHK_(ptr);
  3184. } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) {
  3185. _internal_add_lusertmpscore(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
  3186. CHK_(ptr);
  3187. } else goto handle_unusual;
  3188. continue;
  3189. // uint32 leftTime = 3;
  3190. case 3:
  3191. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
  3192. lefttime_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  3193. CHK_(ptr);
  3194. } else goto handle_unusual;
  3195. continue;
  3196. // uint32 wchairId = 4;
  3197. case 4:
  3198. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
  3199. wchairid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  3200. CHK_(ptr);
  3201. } else goto handle_unusual;
  3202. continue;
  3203. // repeated uint32 options = 5;
  3204. case 5:
  3205. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
  3206. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_options(), ptr, ctx);
  3207. CHK_(ptr);
  3208. } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40) {
  3209. _internal_add_options(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
  3210. CHK_(ptr);
  3211. } else goto handle_unusual;
  3212. continue;
  3213. // uint32 cbTotalCardCount = 6;
  3214. case 6:
  3215. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
  3216. cbtotalcardcount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  3217. CHK_(ptr);
  3218. } else goto handle_unusual;
  3219. continue;
  3220. // uint32 cbLeftCardCount = 7;
  3221. case 7:
  3222. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
  3223. cbleftcardcount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  3224. CHK_(ptr);
  3225. } else goto handle_unusual;
  3226. continue;
  3227. // uint32 wBankerUser = 8;
  3228. case 8:
  3229. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) {
  3230. wbankeruser_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  3231. CHK_(ptr);
  3232. } else goto handle_unusual;
  3233. continue;
  3234. // repeated uint32 lSiZi = 9;
  3235. case 9:
  3236. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) {
  3237. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_lsizi(), ptr, ctx);
  3238. CHK_(ptr);
  3239. } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72) {
  3240. _internal_add_lsizi(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
  3241. CHK_(ptr);
  3242. } else goto handle_unusual;
  3243. continue;
  3244. // uint32 dwOwnerID = 10;
  3245. case 10:
  3246. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) {
  3247. dwownerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  3248. CHK_(ptr);
  3249. } else goto handle_unusual;
  3250. continue;
  3251. // uint32 wCurrentUser = 11;
  3252. case 11:
  3253. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) {
  3254. wcurrentuser_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  3255. CHK_(ptr);
  3256. } else goto handle_unusual;
  3257. continue;
  3258. // repeated uint32 bPutCardData = 12;
  3259. case 12:
  3260. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) {
  3261. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_bputcarddata(), ptr, ctx);
  3262. CHK_(ptr);
  3263. } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96) {
  3264. _internal_add_bputcarddata(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
  3265. CHK_(ptr);
  3266. } else goto handle_unusual;
  3267. continue;
  3268. // uint32 totalOptTime = 13;
  3269. case 13:
  3270. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 104)) {
  3271. totalopttime_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  3272. CHK_(ptr);
  3273. } else goto handle_unusual;
  3274. continue;
  3275. // uint32 leftOptTime = 14;
  3276. case 14:
  3277. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 112)) {
  3278. leftopttime_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  3279. CHK_(ptr);
  3280. } else goto handle_unusual;
  3281. continue;
  3282. // repeated uint32 cbDiscardCount = 15;
  3283. case 15:
  3284. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) {
  3285. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_cbdiscardcount(), ptr, ctx);
  3286. CHK_(ptr);
  3287. } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 120) {
  3288. _internal_add_cbdiscardcount(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
  3289. CHK_(ptr);
  3290. } else goto handle_unusual;
  3291. continue;
  3292. // repeated .GameInfo.pb_cbDiscardCard cbDiscardCard = 16;
  3293. case 16:
  3294. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 130)) {
  3295. ptr -= 2;
  3296. do {
  3297. ptr += 2;
  3298. ptr = ctx->ParseMessage(_internal_add_cbdiscardcard(), ptr);
  3299. CHK_(ptr);
  3300. if (!ctx->DataAvailable(ptr)) break;
  3301. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<130>(ptr));
  3302. } else goto handle_unusual;
  3303. continue;
  3304. // repeated uint32 cbCardCount = 17;
  3305. case 17:
  3306. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 138)) {
  3307. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_cbcardcount(), ptr, ctx);
  3308. CHK_(ptr);
  3309. } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 136) {
  3310. _internal_add_cbcardcount(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
  3311. CHK_(ptr);
  3312. } else goto handle_unusual;
  3313. continue;
  3314. // repeated uint32 cbWeaveCount = 18;
  3315. case 18:
  3316. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 146)) {
  3317. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_cbweavecount(), ptr, ctx);
  3318. CHK_(ptr);
  3319. } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 144) {
  3320. _internal_add_cbweavecount(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
  3321. CHK_(ptr);
  3322. } else goto handle_unusual;
  3323. continue;
  3324. // repeated .GameInfo.pb_WeaveItemArray WeaveItemArray = 19;
  3325. case 19:
  3326. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 154)) {
  3327. ptr -= 2;
  3328. do {
  3329. ptr += 2;
  3330. ptr = ctx->ParseMessage(_internal_add_weaveitemarray(), ptr);
  3331. CHK_(ptr);
  3332. if (!ctx->DataAvailable(ptr)) break;
  3333. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<154>(ptr));
  3334. } else goto handle_unusual;
  3335. continue;
  3336. // repeated uint32 cbCardData = 20;
  3337. case 20:
  3338. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 162)) {
  3339. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_cbcarddata(), ptr, ctx);
  3340. CHK_(ptr);
  3341. } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 160) {
  3342. _internal_add_cbcarddata(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
  3343. CHK_(ptr);
  3344. } else goto handle_unusual;
  3345. continue;
  3346. // uint64 cbActionMask = 21;
  3347. case 21:
  3348. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 168)) {
  3349. cbactionmask_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  3350. CHK_(ptr);
  3351. } else goto handle_unusual;
  3352. continue;
  3353. // repeated uint32 gangCards = 22;
  3354. case 22:
  3355. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 178)) {
  3356. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_gangcards(), ptr, ctx);
  3357. CHK_(ptr);
  3358. } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 176) {
  3359. _internal_add_gangcards(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
  3360. CHK_(ptr);
  3361. } else goto handle_unusual;
  3362. continue;
  3363. default: {
  3364. handle_unusual:
  3365. if ((tag & 7) == 4 || tag == 0) {
  3366. ctx->SetLastTag(tag);
  3367. goto success;
  3368. }
  3369. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  3370. CHK_(ptr != nullptr);
  3371. continue;
  3372. }
  3373. } // switch
  3374. } // while
  3375. success:
  3376. return ptr;
  3377. failure:
  3378. ptr = nullptr;
  3379. goto success;
  3380. #undef CHK_
  3381. }
  3382. ::PROTOBUF_NAMESPACE_ID::uint8* PB_CS_S_StatusPlay::InternalSerializeWithCachedSizesToArray(
  3383. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3384. // @@protoc_insertion_point(serialize_to_array_start:GameInfo.PB_CS_S_StatusPlay)
  3385. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  3386. (void) cached_has_bits;
  3387. // .GameInfo.PB_CS_C_tagGameConfig gameConfig = 1;
  3388. if (this->has_gameconfig()) {
  3389. target = stream->EnsureSpace(target);
  3390. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3391. InternalWriteMessageToArray(
  3392. 1, _Internal::gameconfig(this), target, stream);
  3393. }
  3394. // repeated uint64 lUserTmpScore = 2;
  3395. {
  3396. int byte_size = _lusertmpscore_cached_byte_size_.load(std::memory_order_relaxed);
  3397. if (byte_size > 0) {
  3398. target = stream->WriteUInt64Packed(
  3399. 2, _internal_lusertmpscore(), byte_size, target);
  3400. }
  3401. }
  3402. // uint32 leftTime = 3;
  3403. if (this->lefttime() != 0) {
  3404. target = stream->EnsureSpace(target);
  3405. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_lefttime(), target);
  3406. }
  3407. // uint32 wchairId = 4;
  3408. if (this->wchairid() != 0) {
  3409. target = stream->EnsureSpace(target);
  3410. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_wchairid(), target);
  3411. }
  3412. // repeated uint32 options = 5;
  3413. {
  3414. int byte_size = _options_cached_byte_size_.load(std::memory_order_relaxed);
  3415. if (byte_size > 0) {
  3416. target = stream->WriteUInt32Packed(
  3417. 5, _internal_options(), byte_size, target);
  3418. }
  3419. }
  3420. // uint32 cbTotalCardCount = 6;
  3421. if (this->cbtotalcardcount() != 0) {
  3422. target = stream->EnsureSpace(target);
  3423. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(6, this->_internal_cbtotalcardcount(), target);
  3424. }
  3425. // uint32 cbLeftCardCount = 7;
  3426. if (this->cbleftcardcount() != 0) {
  3427. target = stream->EnsureSpace(target);
  3428. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(7, this->_internal_cbleftcardcount(), target);
  3429. }
  3430. // uint32 wBankerUser = 8;
  3431. if (this->wbankeruser() != 0) {
  3432. target = stream->EnsureSpace(target);
  3433. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(8, this->_internal_wbankeruser(), target);
  3434. }
  3435. // repeated uint32 lSiZi = 9;
  3436. {
  3437. int byte_size = _lsizi_cached_byte_size_.load(std::memory_order_relaxed);
  3438. if (byte_size > 0) {
  3439. target = stream->WriteUInt32Packed(
  3440. 9, _internal_lsizi(), byte_size, target);
  3441. }
  3442. }
  3443. // uint32 dwOwnerID = 10;
  3444. if (this->dwownerid() != 0) {
  3445. target = stream->EnsureSpace(target);
  3446. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(10, this->_internal_dwownerid(), target);
  3447. }
  3448. // uint32 wCurrentUser = 11;
  3449. if (this->wcurrentuser() != 0) {
  3450. target = stream->EnsureSpace(target);
  3451. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(11, this->_internal_wcurrentuser(), target);
  3452. }
  3453. // repeated uint32 bPutCardData = 12;
  3454. {
  3455. int byte_size = _bputcarddata_cached_byte_size_.load(std::memory_order_relaxed);
  3456. if (byte_size > 0) {
  3457. target = stream->WriteUInt32Packed(
  3458. 12, _internal_bputcarddata(), byte_size, target);
  3459. }
  3460. }
  3461. // uint32 totalOptTime = 13;
  3462. if (this->totalopttime() != 0) {
  3463. target = stream->EnsureSpace(target);
  3464. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(13, this->_internal_totalopttime(), target);
  3465. }
  3466. // uint32 leftOptTime = 14;
  3467. if (this->leftopttime() != 0) {
  3468. target = stream->EnsureSpace(target);
  3469. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(14, this->_internal_leftopttime(), target);
  3470. }
  3471. // repeated uint32 cbDiscardCount = 15;
  3472. {
  3473. int byte_size = _cbdiscardcount_cached_byte_size_.load(std::memory_order_relaxed);
  3474. if (byte_size > 0) {
  3475. target = stream->WriteUInt32Packed(
  3476. 15, _internal_cbdiscardcount(), byte_size, target);
  3477. }
  3478. }
  3479. // repeated .GameInfo.pb_cbDiscardCard cbDiscardCard = 16;
  3480. for (unsigned int i = 0,
  3481. n = static_cast<unsigned int>(this->_internal_cbdiscardcard_size()); i < n; i++) {
  3482. target = stream->EnsureSpace(target);
  3483. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3484. InternalWriteMessageToArray(16, this->_internal_cbdiscardcard(i), target, stream);
  3485. }
  3486. // repeated uint32 cbCardCount = 17;
  3487. {
  3488. int byte_size = _cbcardcount_cached_byte_size_.load(std::memory_order_relaxed);
  3489. if (byte_size > 0) {
  3490. target = stream->WriteUInt32Packed(
  3491. 17, _internal_cbcardcount(), byte_size, target);
  3492. }
  3493. }
  3494. // repeated uint32 cbWeaveCount = 18;
  3495. {
  3496. int byte_size = _cbweavecount_cached_byte_size_.load(std::memory_order_relaxed);
  3497. if (byte_size > 0) {
  3498. target = stream->WriteUInt32Packed(
  3499. 18, _internal_cbweavecount(), byte_size, target);
  3500. }
  3501. }
  3502. // repeated .GameInfo.pb_WeaveItemArray WeaveItemArray = 19;
  3503. for (unsigned int i = 0,
  3504. n = static_cast<unsigned int>(this->_internal_weaveitemarray_size()); i < n; i++) {
  3505. target = stream->EnsureSpace(target);
  3506. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3507. InternalWriteMessageToArray(19, this->_internal_weaveitemarray(i), target, stream);
  3508. }
  3509. // repeated uint32 cbCardData = 20;
  3510. {
  3511. int byte_size = _cbcarddata_cached_byte_size_.load(std::memory_order_relaxed);
  3512. if (byte_size > 0) {
  3513. target = stream->WriteUInt32Packed(
  3514. 20, _internal_cbcarddata(), byte_size, target);
  3515. }
  3516. }
  3517. // uint64 cbActionMask = 21;
  3518. if (this->cbactionmask() != 0) {
  3519. target = stream->EnsureSpace(target);
  3520. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(21, this->_internal_cbactionmask(), target);
  3521. }
  3522. // repeated uint32 gangCards = 22;
  3523. {
  3524. int byte_size = _gangcards_cached_byte_size_.load(std::memory_order_relaxed);
  3525. if (byte_size > 0) {
  3526. target = stream->WriteUInt32Packed(
  3527. 22, _internal_gangcards(), byte_size, target);
  3528. }
  3529. }
  3530. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3531. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3532. _internal_metadata_.unknown_fields(), target, stream);
  3533. }
  3534. // @@protoc_insertion_point(serialize_to_array_end:GameInfo.PB_CS_S_StatusPlay)
  3535. return target;
  3536. }
  3537. size_t PB_CS_S_StatusPlay::ByteSizeLong() const {
  3538. // @@protoc_insertion_point(message_byte_size_start:GameInfo.PB_CS_S_StatusPlay)
  3539. size_t total_size = 0;
  3540. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  3541. // Prevent compiler warnings about cached_has_bits being unused
  3542. (void) cached_has_bits;
  3543. // repeated uint64 lUserTmpScore = 2;
  3544. {
  3545. size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3546. UInt64Size(this->lusertmpscore_);
  3547. if (data_size > 0) {
  3548. total_size += 1 +
  3549. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  3550. static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
  3551. }
  3552. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
  3553. _lusertmpscore_cached_byte_size_.store(cached_size,
  3554. std::memory_order_relaxed);
  3555. total_size += data_size;
  3556. }
  3557. // repeated uint32 options = 5;
  3558. {
  3559. size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3560. UInt32Size(this->options_);
  3561. if (data_size > 0) {
  3562. total_size += 1 +
  3563. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  3564. static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
  3565. }
  3566. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
  3567. _options_cached_byte_size_.store(cached_size,
  3568. std::memory_order_relaxed);
  3569. total_size += data_size;
  3570. }
  3571. // repeated uint32 lSiZi = 9;
  3572. {
  3573. size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3574. UInt32Size(this->lsizi_);
  3575. if (data_size > 0) {
  3576. total_size += 1 +
  3577. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  3578. static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
  3579. }
  3580. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
  3581. _lsizi_cached_byte_size_.store(cached_size,
  3582. std::memory_order_relaxed);
  3583. total_size += data_size;
  3584. }
  3585. // repeated uint32 bPutCardData = 12;
  3586. {
  3587. size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3588. UInt32Size(this->bputcarddata_);
  3589. if (data_size > 0) {
  3590. total_size += 1 +
  3591. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  3592. static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
  3593. }
  3594. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
  3595. _bputcarddata_cached_byte_size_.store(cached_size,
  3596. std::memory_order_relaxed);
  3597. total_size += data_size;
  3598. }
  3599. // repeated uint32 cbDiscardCount = 15;
  3600. {
  3601. size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3602. UInt32Size(this->cbdiscardcount_);
  3603. if (data_size > 0) {
  3604. total_size += 1 +
  3605. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  3606. static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
  3607. }
  3608. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
  3609. _cbdiscardcount_cached_byte_size_.store(cached_size,
  3610. std::memory_order_relaxed);
  3611. total_size += data_size;
  3612. }
  3613. // repeated .GameInfo.pb_cbDiscardCard cbDiscardCard = 16;
  3614. total_size += 2UL * this->_internal_cbdiscardcard_size();
  3615. for (const auto& msg : this->cbdiscardcard_) {
  3616. total_size +=
  3617. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  3618. }
  3619. // repeated uint32 cbCardCount = 17;
  3620. {
  3621. size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3622. UInt32Size(this->cbcardcount_);
  3623. if (data_size > 0) {
  3624. total_size += 2 +
  3625. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  3626. static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
  3627. }
  3628. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
  3629. _cbcardcount_cached_byte_size_.store(cached_size,
  3630. std::memory_order_relaxed);
  3631. total_size += data_size;
  3632. }
  3633. // repeated uint32 cbWeaveCount = 18;
  3634. {
  3635. size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3636. UInt32Size(this->cbweavecount_);
  3637. if (data_size > 0) {
  3638. total_size += 2 +
  3639. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  3640. static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
  3641. }
  3642. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
  3643. _cbweavecount_cached_byte_size_.store(cached_size,
  3644. std::memory_order_relaxed);
  3645. total_size += data_size;
  3646. }
  3647. // repeated .GameInfo.pb_WeaveItemArray WeaveItemArray = 19;
  3648. total_size += 2UL * this->_internal_weaveitemarray_size();
  3649. for (const auto& msg : this->weaveitemarray_) {
  3650. total_size +=
  3651. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  3652. }
  3653. // repeated uint32 cbCardData = 20;
  3654. {
  3655. size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3656. UInt32Size(this->cbcarddata_);
  3657. if (data_size > 0) {
  3658. total_size += 2 +
  3659. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  3660. static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
  3661. }
  3662. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
  3663. _cbcarddata_cached_byte_size_.store(cached_size,
  3664. std::memory_order_relaxed);
  3665. total_size += data_size;
  3666. }
  3667. // repeated uint32 gangCards = 22;
  3668. {
  3669. size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3670. UInt32Size(this->gangcards_);
  3671. if (data_size > 0) {
  3672. total_size += 2 +
  3673. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  3674. static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
  3675. }
  3676. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
  3677. _gangcards_cached_byte_size_.store(cached_size,
  3678. std::memory_order_relaxed);
  3679. total_size += data_size;
  3680. }
  3681. // .GameInfo.PB_CS_C_tagGameConfig gameConfig = 1;
  3682. if (this->has_gameconfig()) {
  3683. total_size += 1 +
  3684. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  3685. *gameconfig_);
  3686. }
  3687. // uint32 leftTime = 3;
  3688. if (this->lefttime() != 0) {
  3689. total_size += 1 +
  3690. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  3691. this->_internal_lefttime());
  3692. }
  3693. // uint32 wchairId = 4;
  3694. if (this->wchairid() != 0) {
  3695. total_size += 1 +
  3696. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  3697. this->_internal_wchairid());
  3698. }
  3699. // uint32 cbTotalCardCount = 6;
  3700. if (this->cbtotalcardcount() != 0) {
  3701. total_size += 1 +
  3702. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  3703. this->_internal_cbtotalcardcount());
  3704. }
  3705. // uint32 cbLeftCardCount = 7;
  3706. if (this->cbleftcardcount() != 0) {
  3707. total_size += 1 +
  3708. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  3709. this->_internal_cbleftcardcount());
  3710. }
  3711. // uint32 wBankerUser = 8;
  3712. if (this->wbankeruser() != 0) {
  3713. total_size += 1 +
  3714. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  3715. this->_internal_wbankeruser());
  3716. }
  3717. // uint32 dwOwnerID = 10;
  3718. if (this->dwownerid() != 0) {
  3719. total_size += 1 +
  3720. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  3721. this->_internal_dwownerid());
  3722. }
  3723. // uint32 wCurrentUser = 11;
  3724. if (this->wcurrentuser() != 0) {
  3725. total_size += 1 +
  3726. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  3727. this->_internal_wcurrentuser());
  3728. }
  3729. // uint32 totalOptTime = 13;
  3730. if (this->totalopttime() != 0) {
  3731. total_size += 1 +
  3732. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  3733. this->_internal_totalopttime());
  3734. }
  3735. // uint64 cbActionMask = 21;
  3736. if (this->cbactionmask() != 0) {
  3737. total_size += 2 +
  3738. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
  3739. this->_internal_cbactionmask());
  3740. }
  3741. // uint32 leftOptTime = 14;
  3742. if (this->leftopttime() != 0) {
  3743. total_size += 1 +
  3744. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  3745. this->_internal_leftopttime());
  3746. }
  3747. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3748. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  3749. _internal_metadata_, total_size, &_cached_size_);
  3750. }
  3751. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  3752. SetCachedSize(cached_size);
  3753. return total_size;
  3754. }
  3755. void PB_CS_S_StatusPlay::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3756. // @@protoc_insertion_point(generalized_merge_from_start:GameInfo.PB_CS_S_StatusPlay)
  3757. GOOGLE_DCHECK_NE(&from, this);
  3758. const PB_CS_S_StatusPlay* source =
  3759. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PB_CS_S_StatusPlay>(
  3760. &from);
  3761. if (source == nullptr) {
  3762. // @@protoc_insertion_point(generalized_merge_from_cast_fail:GameInfo.PB_CS_S_StatusPlay)
  3763. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  3764. } else {
  3765. // @@protoc_insertion_point(generalized_merge_from_cast_success:GameInfo.PB_CS_S_StatusPlay)
  3766. MergeFrom(*source);
  3767. }
  3768. }
  3769. void PB_CS_S_StatusPlay::MergeFrom(const PB_CS_S_StatusPlay& from) {
  3770. // @@protoc_insertion_point(class_specific_merge_from_start:GameInfo.PB_CS_S_StatusPlay)
  3771. GOOGLE_DCHECK_NE(&from, this);
  3772. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3773. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  3774. (void) cached_has_bits;
  3775. lusertmpscore_.MergeFrom(from.lusertmpscore_);
  3776. options_.MergeFrom(from.options_);
  3777. lsizi_.MergeFrom(from.lsizi_);
  3778. bputcarddata_.MergeFrom(from.bputcarddata_);
  3779. cbdiscardcount_.MergeFrom(from.cbdiscardcount_);
  3780. cbdiscardcard_.MergeFrom(from.cbdiscardcard_);
  3781. cbcardcount_.MergeFrom(from.cbcardcount_);
  3782. cbweavecount_.MergeFrom(from.cbweavecount_);
  3783. weaveitemarray_.MergeFrom(from.weaveitemarray_);
  3784. cbcarddata_.MergeFrom(from.cbcarddata_);
  3785. gangcards_.MergeFrom(from.gangcards_);
  3786. if (from.has_gameconfig()) {
  3787. _internal_mutable_gameconfig()->::GameInfo::PB_CS_C_tagGameConfig::MergeFrom(from._internal_gameconfig());
  3788. }
  3789. if (from.lefttime() != 0) {
  3790. _internal_set_lefttime(from._internal_lefttime());
  3791. }
  3792. if (from.wchairid() != 0) {
  3793. _internal_set_wchairid(from._internal_wchairid());
  3794. }
  3795. if (from.cbtotalcardcount() != 0) {
  3796. _internal_set_cbtotalcardcount(from._internal_cbtotalcardcount());
  3797. }
  3798. if (from.cbleftcardcount() != 0) {
  3799. _internal_set_cbleftcardcount(from._internal_cbleftcardcount());
  3800. }
  3801. if (from.wbankeruser() != 0) {
  3802. _internal_set_wbankeruser(from._internal_wbankeruser());
  3803. }
  3804. if (from.dwownerid() != 0) {
  3805. _internal_set_dwownerid(from._internal_dwownerid());
  3806. }
  3807. if (from.wcurrentuser() != 0) {
  3808. _internal_set_wcurrentuser(from._internal_wcurrentuser());
  3809. }
  3810. if (from.totalopttime() != 0) {
  3811. _internal_set_totalopttime(from._internal_totalopttime());
  3812. }
  3813. if (from.cbactionmask() != 0) {
  3814. _internal_set_cbactionmask(from._internal_cbactionmask());
  3815. }
  3816. if (from.leftopttime() != 0) {
  3817. _internal_set_leftopttime(from._internal_leftopttime());
  3818. }
  3819. }
  3820. void PB_CS_S_StatusPlay::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3821. // @@protoc_insertion_point(generalized_copy_from_start:GameInfo.PB_CS_S_StatusPlay)
  3822. if (&from == this) return;
  3823. Clear();
  3824. MergeFrom(from);
  3825. }
  3826. void PB_CS_S_StatusPlay::CopyFrom(const PB_CS_S_StatusPlay& from) {
  3827. // @@protoc_insertion_point(class_specific_copy_from_start:GameInfo.PB_CS_S_StatusPlay)
  3828. if (&from == this) return;
  3829. Clear();
  3830. MergeFrom(from);
  3831. }
  3832. bool PB_CS_S_StatusPlay::IsInitialized() const {
  3833. return true;
  3834. }
  3835. void PB_CS_S_StatusPlay::InternalSwap(PB_CS_S_StatusPlay* other) {
  3836. using std::swap;
  3837. _internal_metadata_.Swap(&other->_internal_metadata_);
  3838. lusertmpscore_.InternalSwap(&other->lusertmpscore_);
  3839. options_.InternalSwap(&other->options_);
  3840. lsizi_.InternalSwap(&other->lsizi_);
  3841. bputcarddata_.InternalSwap(&other->bputcarddata_);
  3842. cbdiscardcount_.InternalSwap(&other->cbdiscardcount_);
  3843. cbdiscardcard_.InternalSwap(&other->cbdiscardcard_);
  3844. cbcardcount_.InternalSwap(&other->cbcardcount_);
  3845. cbweavecount_.InternalSwap(&other->cbweavecount_);
  3846. weaveitemarray_.InternalSwap(&other->weaveitemarray_);
  3847. cbcarddata_.InternalSwap(&other->cbcarddata_);
  3848. gangcards_.InternalSwap(&other->gangcards_);
  3849. swap(gameconfig_, other->gameconfig_);
  3850. swap(lefttime_, other->lefttime_);
  3851. swap(wchairid_, other->wchairid_);
  3852. swap(cbtotalcardcount_, other->cbtotalcardcount_);
  3853. swap(cbleftcardcount_, other->cbleftcardcount_);
  3854. swap(wbankeruser_, other->wbankeruser_);
  3855. swap(dwownerid_, other->dwownerid_);
  3856. swap(wcurrentuser_, other->wcurrentuser_);
  3857. swap(totalopttime_, other->totalopttime_);
  3858. swap(cbactionmask_, other->cbactionmask_);
  3859. swap(leftopttime_, other->leftopttime_);
  3860. }
  3861. ::PROTOBUF_NAMESPACE_ID::Metadata PB_CS_S_StatusPlay::GetMetadata() const {
  3862. return GetMetadataStatic();
  3863. }
  3864. // ===================================================================
  3865. void PB_CS_S_UserDistance::InitAsDefaultInstance() {
  3866. }
  3867. class PB_CS_S_UserDistance::_Internal {
  3868. public:
  3869. };
  3870. PB_CS_S_UserDistance::PB_CS_S_UserDistance()
  3871. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  3872. SharedCtor();
  3873. // @@protoc_insertion_point(constructor:GameInfo.PB_CS_S_UserDistance)
  3874. }
  3875. PB_CS_S_UserDistance::PB_CS_S_UserDistance(const PB_CS_S_UserDistance& from)
  3876. : ::PROTOBUF_NAMESPACE_ID::Message(),
  3877. _internal_metadata_(nullptr),
  3878. cboperlocation_(from.cboperlocation_),
  3879. dwuserdistance_(from.dwuserdistance_) {
  3880. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3881. // @@protoc_insertion_point(copy_constructor:GameInfo.PB_CS_S_UserDistance)
  3882. }
  3883. void PB_CS_S_UserDistance::SharedCtor() {
  3884. }
  3885. PB_CS_S_UserDistance::~PB_CS_S_UserDistance() {
  3886. // @@protoc_insertion_point(destructor:GameInfo.PB_CS_S_UserDistance)
  3887. SharedDtor();
  3888. }
  3889. void PB_CS_S_UserDistance::SharedDtor() {
  3890. }
  3891. void PB_CS_S_UserDistance::SetCachedSize(int size) const {
  3892. _cached_size_.Set(size);
  3893. }
  3894. const PB_CS_S_UserDistance& PB_CS_S_UserDistance::default_instance() {
  3895. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PB_CS_S_UserDistance_Pb_5fGameInfo_2eproto.base);
  3896. return *internal_default_instance();
  3897. }
  3898. void PB_CS_S_UserDistance::Clear() {
  3899. // @@protoc_insertion_point(message_clear_start:GameInfo.PB_CS_S_UserDistance)
  3900. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  3901. // Prevent compiler warnings about cached_has_bits being unused
  3902. (void) cached_has_bits;
  3903. cboperlocation_.Clear();
  3904. dwuserdistance_.Clear();
  3905. _internal_metadata_.Clear();
  3906. }
  3907. const char* PB_CS_S_UserDistance::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3908. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3909. while (!ctx->Done(&ptr)) {
  3910. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  3911. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3912. CHK_(ptr);
  3913. switch (tag >> 3) {
  3914. // repeated uint32 cbOperLocation = 1;
  3915. case 1:
  3916. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
  3917. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_cboperlocation(), ptr, ctx);
  3918. CHK_(ptr);
  3919. } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) {
  3920. _internal_add_cboperlocation(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
  3921. CHK_(ptr);
  3922. } else goto handle_unusual;
  3923. continue;
  3924. // repeated sint64 dwUserDistance = 2;
  3925. case 2:
  3926. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
  3927. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedSInt64Parser(_internal_mutable_dwuserdistance(), ptr, ctx);
  3928. CHK_(ptr);
  3929. } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) {
  3930. _internal_add_dwuserdistance(::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr));
  3931. CHK_(ptr);
  3932. } else goto handle_unusual;
  3933. continue;
  3934. default: {
  3935. handle_unusual:
  3936. if ((tag & 7) == 4 || tag == 0) {
  3937. ctx->SetLastTag(tag);
  3938. goto success;
  3939. }
  3940. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  3941. CHK_(ptr != nullptr);
  3942. continue;
  3943. }
  3944. } // switch
  3945. } // while
  3946. success:
  3947. return ptr;
  3948. failure:
  3949. ptr = nullptr;
  3950. goto success;
  3951. #undef CHK_
  3952. }
  3953. ::PROTOBUF_NAMESPACE_ID::uint8* PB_CS_S_UserDistance::InternalSerializeWithCachedSizesToArray(
  3954. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3955. // @@protoc_insertion_point(serialize_to_array_start:GameInfo.PB_CS_S_UserDistance)
  3956. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  3957. (void) cached_has_bits;
  3958. // repeated uint32 cbOperLocation = 1;
  3959. {
  3960. int byte_size = _cboperlocation_cached_byte_size_.load(std::memory_order_relaxed);
  3961. if (byte_size > 0) {
  3962. target = stream->WriteUInt32Packed(
  3963. 1, _internal_cboperlocation(), byte_size, target);
  3964. }
  3965. }
  3966. // repeated sint64 dwUserDistance = 2;
  3967. {
  3968. int byte_size = _dwuserdistance_cached_byte_size_.load(std::memory_order_relaxed);
  3969. if (byte_size > 0) {
  3970. target = stream->WriteSInt64Packed(
  3971. 2, _internal_dwuserdistance(), byte_size, target);
  3972. }
  3973. }
  3974. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3975. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3976. _internal_metadata_.unknown_fields(), target, stream);
  3977. }
  3978. // @@protoc_insertion_point(serialize_to_array_end:GameInfo.PB_CS_S_UserDistance)
  3979. return target;
  3980. }
  3981. size_t PB_CS_S_UserDistance::ByteSizeLong() const {
  3982. // @@protoc_insertion_point(message_byte_size_start:GameInfo.PB_CS_S_UserDistance)
  3983. size_t total_size = 0;
  3984. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  3985. // Prevent compiler warnings about cached_has_bits being unused
  3986. (void) cached_has_bits;
  3987. // repeated uint32 cbOperLocation = 1;
  3988. {
  3989. size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3990. UInt32Size(this->cboperlocation_);
  3991. if (data_size > 0) {
  3992. total_size += 1 +
  3993. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  3994. static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
  3995. }
  3996. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
  3997. _cboperlocation_cached_byte_size_.store(cached_size,
  3998. std::memory_order_relaxed);
  3999. total_size += data_size;
  4000. }
  4001. // repeated sint64 dwUserDistance = 2;
  4002. {
  4003. size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  4004. SInt64Size(this->dwuserdistance_);
  4005. if (data_size > 0) {
  4006. total_size += 1 +
  4007. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  4008. static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
  4009. }
  4010. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
  4011. _dwuserdistance_cached_byte_size_.store(cached_size,
  4012. std::memory_order_relaxed);
  4013. total_size += data_size;
  4014. }
  4015. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4016. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  4017. _internal_metadata_, total_size, &_cached_size_);
  4018. }
  4019. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  4020. SetCachedSize(cached_size);
  4021. return total_size;
  4022. }
  4023. void PB_CS_S_UserDistance::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4024. // @@protoc_insertion_point(generalized_merge_from_start:GameInfo.PB_CS_S_UserDistance)
  4025. GOOGLE_DCHECK_NE(&from, this);
  4026. const PB_CS_S_UserDistance* source =
  4027. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PB_CS_S_UserDistance>(
  4028. &from);
  4029. if (source == nullptr) {
  4030. // @@protoc_insertion_point(generalized_merge_from_cast_fail:GameInfo.PB_CS_S_UserDistance)
  4031. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  4032. } else {
  4033. // @@protoc_insertion_point(generalized_merge_from_cast_success:GameInfo.PB_CS_S_UserDistance)
  4034. MergeFrom(*source);
  4035. }
  4036. }
  4037. void PB_CS_S_UserDistance::MergeFrom(const PB_CS_S_UserDistance& from) {
  4038. // @@protoc_insertion_point(class_specific_merge_from_start:GameInfo.PB_CS_S_UserDistance)
  4039. GOOGLE_DCHECK_NE(&from, this);
  4040. _internal_metadata_.MergeFrom(from._internal_metadata_);
  4041. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  4042. (void) cached_has_bits;
  4043. cboperlocation_.MergeFrom(from.cboperlocation_);
  4044. dwuserdistance_.MergeFrom(from.dwuserdistance_);
  4045. }
  4046. void PB_CS_S_UserDistance::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4047. // @@protoc_insertion_point(generalized_copy_from_start:GameInfo.PB_CS_S_UserDistance)
  4048. if (&from == this) return;
  4049. Clear();
  4050. MergeFrom(from);
  4051. }
  4052. void PB_CS_S_UserDistance::CopyFrom(const PB_CS_S_UserDistance& from) {
  4053. // @@protoc_insertion_point(class_specific_copy_from_start:GameInfo.PB_CS_S_UserDistance)
  4054. if (&from == this) return;
  4055. Clear();
  4056. MergeFrom(from);
  4057. }
  4058. bool PB_CS_S_UserDistance::IsInitialized() const {
  4059. return true;
  4060. }
  4061. void PB_CS_S_UserDistance::InternalSwap(PB_CS_S_UserDistance* other) {
  4062. using std::swap;
  4063. _internal_metadata_.Swap(&other->_internal_metadata_);
  4064. cboperlocation_.InternalSwap(&other->cboperlocation_);
  4065. dwuserdistance_.InternalSwap(&other->dwuserdistance_);
  4066. }
  4067. ::PROTOBUF_NAMESPACE_ID::Metadata PB_CS_S_UserDistance::GetMetadata() const {
  4068. return GetMetadataStatic();
  4069. }
  4070. // ===================================================================
  4071. void PB_CS_S_SystemMessage::InitAsDefaultInstance() {
  4072. }
  4073. class PB_CS_S_SystemMessage::_Internal {
  4074. public:
  4075. };
  4076. PB_CS_S_SystemMessage::PB_CS_S_SystemMessage()
  4077. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  4078. SharedCtor();
  4079. // @@protoc_insertion_point(constructor:GameInfo.PB_CS_S_SystemMessage)
  4080. }
  4081. PB_CS_S_SystemMessage::PB_CS_S_SystemMessage(const PB_CS_S_SystemMessage& from)
  4082. : ::PROTOBUF_NAMESPACE_ID::Message(),
  4083. _internal_metadata_(nullptr) {
  4084. _internal_metadata_.MergeFrom(from._internal_metadata_);
  4085. szstring_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4086. if (!from._internal_szstring().empty()) {
  4087. szstring_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.szstring_);
  4088. }
  4089. ::memcpy(&wtype_, &from.wtype_,
  4090. static_cast<size_t>(reinterpret_cast<char*>(&wlength_) -
  4091. reinterpret_cast<char*>(&wtype_)) + sizeof(wlength_));
  4092. // @@protoc_insertion_point(copy_constructor:GameInfo.PB_CS_S_SystemMessage)
  4093. }
  4094. void PB_CS_S_SystemMessage::SharedCtor() {
  4095. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PB_CS_S_SystemMessage_Pb_5fGameInfo_2eproto.base);
  4096. szstring_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4097. ::memset(&wtype_, 0, static_cast<size_t>(
  4098. reinterpret_cast<char*>(&wlength_) -
  4099. reinterpret_cast<char*>(&wtype_)) + sizeof(wlength_));
  4100. }
  4101. PB_CS_S_SystemMessage::~PB_CS_S_SystemMessage() {
  4102. // @@protoc_insertion_point(destructor:GameInfo.PB_CS_S_SystemMessage)
  4103. SharedDtor();
  4104. }
  4105. void PB_CS_S_SystemMessage::SharedDtor() {
  4106. szstring_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4107. }
  4108. void PB_CS_S_SystemMessage::SetCachedSize(int size) const {
  4109. _cached_size_.Set(size);
  4110. }
  4111. const PB_CS_S_SystemMessage& PB_CS_S_SystemMessage::default_instance() {
  4112. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PB_CS_S_SystemMessage_Pb_5fGameInfo_2eproto.base);
  4113. return *internal_default_instance();
  4114. }
  4115. void PB_CS_S_SystemMessage::Clear() {
  4116. // @@protoc_insertion_point(message_clear_start:GameInfo.PB_CS_S_SystemMessage)
  4117. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  4118. // Prevent compiler warnings about cached_has_bits being unused
  4119. (void) cached_has_bits;
  4120. szstring_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4121. ::memset(&wtype_, 0, static_cast<size_t>(
  4122. reinterpret_cast<char*>(&wlength_) -
  4123. reinterpret_cast<char*>(&wtype_)) + sizeof(wlength_));
  4124. _internal_metadata_.Clear();
  4125. }
  4126. const char* PB_CS_S_SystemMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4127. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4128. while (!ctx->Done(&ptr)) {
  4129. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  4130. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4131. CHK_(ptr);
  4132. switch (tag >> 3) {
  4133. // uint32 wType = 1;
  4134. case 1:
  4135. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
  4136. wtype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  4137. CHK_(ptr);
  4138. } else goto handle_unusual;
  4139. continue;
  4140. // uint32 wLength = 2;
  4141. case 2:
  4142. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
  4143. wlength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  4144. CHK_(ptr);
  4145. } else goto handle_unusual;
  4146. continue;
  4147. // string szString = 3;
  4148. case 3:
  4149. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
  4150. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(_internal_mutable_szstring(), ptr, ctx, "GameInfo.PB_CS_S_SystemMessage.szString");
  4151. CHK_(ptr);
  4152. } else goto handle_unusual;
  4153. continue;
  4154. default: {
  4155. handle_unusual:
  4156. if ((tag & 7) == 4 || tag == 0) {
  4157. ctx->SetLastTag(tag);
  4158. goto success;
  4159. }
  4160. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  4161. CHK_(ptr != nullptr);
  4162. continue;
  4163. }
  4164. } // switch
  4165. } // while
  4166. success:
  4167. return ptr;
  4168. failure:
  4169. ptr = nullptr;
  4170. goto success;
  4171. #undef CHK_
  4172. }
  4173. ::PROTOBUF_NAMESPACE_ID::uint8* PB_CS_S_SystemMessage::InternalSerializeWithCachedSizesToArray(
  4174. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4175. // @@protoc_insertion_point(serialize_to_array_start:GameInfo.PB_CS_S_SystemMessage)
  4176. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  4177. (void) cached_has_bits;
  4178. // uint32 wType = 1;
  4179. if (this->wtype() != 0) {
  4180. target = stream->EnsureSpace(target);
  4181. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_wtype(), target);
  4182. }
  4183. // uint32 wLength = 2;
  4184. if (this->wlength() != 0) {
  4185. target = stream->EnsureSpace(target);
  4186. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_wlength(), target);
  4187. }
  4188. // string szString = 3;
  4189. if (this->szstring().size() > 0) {
  4190. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4191. this->_internal_szstring().data(), static_cast<int>(this->_internal_szstring().length()),
  4192. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4193. "GameInfo.PB_CS_S_SystemMessage.szString");
  4194. target = stream->WriteStringMaybeAliased(
  4195. 3, this->_internal_szstring(), target);
  4196. }
  4197. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4198. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4199. _internal_metadata_.unknown_fields(), target, stream);
  4200. }
  4201. // @@protoc_insertion_point(serialize_to_array_end:GameInfo.PB_CS_S_SystemMessage)
  4202. return target;
  4203. }
  4204. size_t PB_CS_S_SystemMessage::ByteSizeLong() const {
  4205. // @@protoc_insertion_point(message_byte_size_start:GameInfo.PB_CS_S_SystemMessage)
  4206. size_t total_size = 0;
  4207. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  4208. // Prevent compiler warnings about cached_has_bits being unused
  4209. (void) cached_has_bits;
  4210. // string szString = 3;
  4211. if (this->szstring().size() > 0) {
  4212. total_size += 1 +
  4213. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4214. this->_internal_szstring());
  4215. }
  4216. // uint32 wType = 1;
  4217. if (this->wtype() != 0) {
  4218. total_size += 1 +
  4219. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  4220. this->_internal_wtype());
  4221. }
  4222. // uint32 wLength = 2;
  4223. if (this->wlength() != 0) {
  4224. total_size += 1 +
  4225. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
  4226. this->_internal_wlength());
  4227. }
  4228. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4229. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  4230. _internal_metadata_, total_size, &_cached_size_);
  4231. }
  4232. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  4233. SetCachedSize(cached_size);
  4234. return total_size;
  4235. }
  4236. void PB_CS_S_SystemMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4237. // @@protoc_insertion_point(generalized_merge_from_start:GameInfo.PB_CS_S_SystemMessage)
  4238. GOOGLE_DCHECK_NE(&from, this);
  4239. const PB_CS_S_SystemMessage* source =
  4240. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PB_CS_S_SystemMessage>(
  4241. &from);
  4242. if (source == nullptr) {
  4243. // @@protoc_insertion_point(generalized_merge_from_cast_fail:GameInfo.PB_CS_S_SystemMessage)
  4244. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  4245. } else {
  4246. // @@protoc_insertion_point(generalized_merge_from_cast_success:GameInfo.PB_CS_S_SystemMessage)
  4247. MergeFrom(*source);
  4248. }
  4249. }
  4250. void PB_CS_S_SystemMessage::MergeFrom(const PB_CS_S_SystemMessage& from) {
  4251. // @@protoc_insertion_point(class_specific_merge_from_start:GameInfo.PB_CS_S_SystemMessage)
  4252. GOOGLE_DCHECK_NE(&from, this);
  4253. _internal_metadata_.MergeFrom(from._internal_metadata_);
  4254. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  4255. (void) cached_has_bits;
  4256. if (from.szstring().size() > 0) {
  4257. szstring_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.szstring_);
  4258. }
  4259. if (from.wtype() != 0) {
  4260. _internal_set_wtype(from._internal_wtype());
  4261. }
  4262. if (from.wlength() != 0) {
  4263. _internal_set_wlength(from._internal_wlength());
  4264. }
  4265. }
  4266. void PB_CS_S_SystemMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4267. // @@protoc_insertion_point(generalized_copy_from_start:GameInfo.PB_CS_S_SystemMessage)
  4268. if (&from == this) return;
  4269. Clear();
  4270. MergeFrom(from);
  4271. }
  4272. void PB_CS_S_SystemMessage::CopyFrom(const PB_CS_S_SystemMessage& from) {
  4273. // @@protoc_insertion_point(class_specific_copy_from_start:GameInfo.PB_CS_S_SystemMessage)
  4274. if (&from == this) return;
  4275. Clear();
  4276. MergeFrom(from);
  4277. }
  4278. bool PB_CS_S_SystemMessage::IsInitialized() const {
  4279. return true;
  4280. }
  4281. void PB_CS_S_SystemMessage::InternalSwap(PB_CS_S_SystemMessage* other) {
  4282. using std::swap;
  4283. _internal_metadata_.Swap(&other->_internal_metadata_);
  4284. szstring_.Swap(&other->szstring_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4285. GetArenaNoVirtual());
  4286. swap(wtype_, other->wtype_);
  4287. swap(wlength_, other->wlength_);
  4288. }
  4289. ::PROTOBUF_NAMESPACE_ID::Metadata PB_CS_S_SystemMessage::GetMetadata() const {
  4290. return GetMetadataStatic();
  4291. }
  4292. // @@protoc_insertion_point(namespace_scope)
  4293. } // namespace GameInfo
  4294. PROTOBUF_NAMESPACE_OPEN
  4295. template<> PROTOBUF_NOINLINE ::GameInfo::PB_CS_USER_READY* Arena::CreateMaybeMessage< ::GameInfo::PB_CS_USER_READY >(Arena* arena) {
  4296. return Arena::CreateInternal< ::GameInfo::PB_CS_USER_READY >(arena);
  4297. }
  4298. template<> PROTOBUF_NOINLINE ::GameInfo::pb_dwUserName* Arena::CreateMaybeMessage< ::GameInfo::pb_dwUserName >(Arena* arena) {
  4299. return Arena::CreateInternal< ::GameInfo::pb_dwUserName >(arena);
  4300. }
  4301. template<> PROTOBUF_NOINLINE ::GameInfo::PB_CS_S_SHUFFLE_ALL_ACK* Arena::CreateMaybeMessage< ::GameInfo::PB_CS_S_SHUFFLE_ALL_ACK >(Arena* arena) {
  4302. return Arena::CreateInternal< ::GameInfo::PB_CS_S_SHUFFLE_ALL_ACK >(arena);
  4303. }
  4304. template<> PROTOBUF_NOINLINE ::GameInfo::PB_CS_UserChat* Arena::CreateMaybeMessage< ::GameInfo::PB_CS_UserChat >(Arena* arena) {
  4305. return Arena::CreateInternal< ::GameInfo::PB_CS_UserChat >(arena);
  4306. }
  4307. template<> PROTOBUF_NOINLINE ::GameInfo::PB_CS_UserExpression* Arena::CreateMaybeMessage< ::GameInfo::PB_CS_UserExpression >(Arena* arena) {
  4308. return Arena::CreateInternal< ::GameInfo::PB_CS_UserExpression >(arena);
  4309. }
  4310. template<> PROTOBUF_NOINLINE ::GameInfo::PB_CS_GameStatus* Arena::CreateMaybeMessage< ::GameInfo::PB_CS_GameStatus >(Arena* arena) {
  4311. return Arena::CreateInternal< ::GameInfo::PB_CS_GameStatus >(arena);
  4312. }
  4313. template<> PROTOBUF_NOINLINE ::GameInfo::PB_CS_C_tagGameConfig* Arena::CreateMaybeMessage< ::GameInfo::PB_CS_C_tagGameConfig >(Arena* arena) {
  4314. return Arena::CreateInternal< ::GameInfo::PB_CS_C_tagGameConfig >(arena);
  4315. }
  4316. template<> PROTOBUF_NOINLINE ::GameInfo::PB_CS_S_StatusFree* Arena::CreateMaybeMessage< ::GameInfo::PB_CS_S_StatusFree >(Arena* arena) {
  4317. return Arena::CreateInternal< ::GameInfo::PB_CS_S_StatusFree >(arena);
  4318. }
  4319. template<> PROTOBUF_NOINLINE ::GameInfo::pb_WeaveItem* Arena::CreateMaybeMessage< ::GameInfo::pb_WeaveItem >(Arena* arena) {
  4320. return Arena::CreateInternal< ::GameInfo::pb_WeaveItem >(arena);
  4321. }
  4322. template<> PROTOBUF_NOINLINE ::GameInfo::pb_WeaveItemArray* Arena::CreateMaybeMessage< ::GameInfo::pb_WeaveItemArray >(Arena* arena) {
  4323. return Arena::CreateInternal< ::GameInfo::pb_WeaveItemArray >(arena);
  4324. }
  4325. template<> PROTOBUF_NOINLINE ::GameInfo::pb_cbDiscardCard* Arena::CreateMaybeMessage< ::GameInfo::pb_cbDiscardCard >(Arena* arena) {
  4326. return Arena::CreateInternal< ::GameInfo::pb_cbDiscardCard >(arena);
  4327. }
  4328. template<> PROTOBUF_NOINLINE ::GameInfo::PB_CS_S_StatusPlay* Arena::CreateMaybeMessage< ::GameInfo::PB_CS_S_StatusPlay >(Arena* arena) {
  4329. return Arena::CreateInternal< ::GameInfo::PB_CS_S_StatusPlay >(arena);
  4330. }
  4331. template<> PROTOBUF_NOINLINE ::GameInfo::PB_CS_S_UserDistance* Arena::CreateMaybeMessage< ::GameInfo::PB_CS_S_UserDistance >(Arena* arena) {
  4332. return Arena::CreateInternal< ::GameInfo::PB_CS_S_UserDistance >(arena);
  4333. }
  4334. template<> PROTOBUF_NOINLINE ::GameInfo::PB_CS_S_SystemMessage* Arena::CreateMaybeMessage< ::GameInfo::PB_CS_S_SystemMessage >(Arena* arena) {
  4335. return Arena::CreateInternal< ::GameInfo::PB_CS_S_SystemMessage >(arena);
  4336. }
  4337. PROTOBUF_NAMESPACE_CLOSE
  4338. // @@protoc_insertion_point(global_scope)
  4339. #include <google/protobuf/port_undef.inc>