// Generated by the protocol buffer compiler. DO NOT EDIT! // source: Pb_RecordPacket.proto #include "Pb_RecordPacket.pb.h" #include #include #include #include #include #include #include #include // @@protoc_insertion_point(includes) #include extern PROTOBUF_INTERNAL_EXPORT_Pb_5fRecordPacket_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_pb_ChairRecord_Pb_5fRecordPacket_2eproto; extern PROTOBUF_INTERNAL_EXPORT_Pb_5fRecordPacket_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_pb_GameConfig_Pb_5fRecordPacket_2eproto; extern PROTOBUF_INTERNAL_EXPORT_Pb_5fRecordPacket_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_pb_GameRecordPacket_Pb_5fRecordPacket_2eproto; namespace RecordPacket { class pb_GameRecordPacketDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _pb_GameRecordPacket_default_instance_; class pb_GameConfigDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _pb_GameConfig_default_instance_; class pb_ChairRecordDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _pb_ChairRecord_default_instance_; class PB_CS_S_ReplayRecordRespDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _PB_CS_S_ReplayRecordResp_default_instance_; } // namespace RecordPacket static void InitDefaultsscc_info_PB_CS_S_ReplayRecordResp_Pb_5fRecordPacket_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::RecordPacket::_PB_CS_S_ReplayRecordResp_default_instance_; new (ptr) ::RecordPacket::PB_CS_S_ReplayRecordResp(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::RecordPacket::PB_CS_S_ReplayRecordResp::InitAsDefaultInstance(); } ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_PB_CS_S_ReplayRecordResp_Pb_5fRecordPacket_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, 0, InitDefaultsscc_info_PB_CS_S_ReplayRecordResp_Pb_5fRecordPacket_2eproto}, { &scc_info_pb_GameConfig_Pb_5fRecordPacket_2eproto.base, &scc_info_pb_ChairRecord_Pb_5fRecordPacket_2eproto.base, &scc_info_pb_GameRecordPacket_Pb_5fRecordPacket_2eproto.base,}}; static void InitDefaultsscc_info_pb_ChairRecord_Pb_5fRecordPacket_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::RecordPacket::_pb_ChairRecord_default_instance_; new (ptr) ::RecordPacket::pb_ChairRecord(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::RecordPacket::pb_ChairRecord::InitAsDefaultInstance(); } ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_pb_ChairRecord_Pb_5fRecordPacket_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_pb_ChairRecord_Pb_5fRecordPacket_2eproto}, {}}; static void InitDefaultsscc_info_pb_GameConfig_Pb_5fRecordPacket_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::RecordPacket::_pb_GameConfig_default_instance_; new (ptr) ::RecordPacket::pb_GameConfig(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::RecordPacket::pb_GameConfig::InitAsDefaultInstance(); } ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_pb_GameConfig_Pb_5fRecordPacket_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_pb_GameConfig_Pb_5fRecordPacket_2eproto}, {}}; static void InitDefaultsscc_info_pb_GameRecordPacket_Pb_5fRecordPacket_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::RecordPacket::_pb_GameRecordPacket_default_instance_; new (ptr) ::RecordPacket::pb_GameRecordPacket(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::RecordPacket::pb_GameRecordPacket::InitAsDefaultInstance(); } ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_pb_GameRecordPacket_Pb_5fRecordPacket_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_pb_GameRecordPacket_Pb_5fRecordPacket_2eproto}, {}}; static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_Pb_5fRecordPacket_2eproto[4]; static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_Pb_5fRecordPacket_2eproto = nullptr; static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_Pb_5fRecordPacket_2eproto = nullptr; const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_Pb_5fRecordPacket_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameRecordPacket, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameRecordPacket, wchairid_), PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameRecordPacket, wmaincmdid_), PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameRecordPacket, wsubcmdid_), PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameRecordPacket, pdata_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, wsubgameid_), PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, wdiscore_), PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, wfanfei_), PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, wiplimit_), PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, wplaycountrule_), PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, roomid_), PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, isowner_), PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, whadplaycount_), PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, sprivatetableid_), PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, bduolai_), PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, wfengding_), PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, tmp1_), PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_GameConfig, tmp2_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_ChairRecord, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_ChairRecord, wchairid_), PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_ChairRecord, dwuserid_), PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_ChairRecord, username_), PROTOBUF_FIELD_OFFSET(::RecordPacket::pb_ChairRecord, headurl_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::RecordPacket::PB_CS_S_ReplayRecordResp, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::RecordPacket::PB_CS_S_ReplayRecordResp, m_uuid_), PROTOBUF_FIELD_OFFSET(::RecordPacket::PB_CS_S_ReplayRecordResp, m_starttime_), PROTOBUF_FIELD_OFFSET(::RecordPacket::PB_CS_S_ReplayRecordResp, m_endtime_), PROTOBUF_FIELD_OFFSET(::RecordPacket::PB_CS_S_ReplayRecordResp, m_userid_), PROTOBUF_FIELD_OFFSET(::RecordPacket::PB_CS_S_ReplayRecordResp, m_gameconfig_), PROTOBUF_FIELD_OFFSET(::RecordPacket::PB_CS_S_ReplayRecordResp, m_chairlist_), PROTOBUF_FIELD_OFFSET(::RecordPacket::PB_CS_S_ReplayRecordResp, precordpacket_), }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::RecordPacket::pb_GameRecordPacket)}, { 9, -1, sizeof(::RecordPacket::pb_GameConfig)}, { 27, -1, sizeof(::RecordPacket::pb_ChairRecord)}, { 36, -1, sizeof(::RecordPacket::PB_CS_S_ReplayRecordResp)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { reinterpret_cast(&::RecordPacket::_pb_GameRecordPacket_default_instance_), reinterpret_cast(&::RecordPacket::_pb_GameConfig_default_instance_), reinterpret_cast(&::RecordPacket::_pb_ChairRecord_default_instance_), reinterpret_cast(&::RecordPacket::_PB_CS_S_ReplayRecordResp_default_instance_), }; const char descriptor_table_protodef_Pb_5fRecordPacket_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\025Pb_RecordPacket.proto\022\014RecordPacket\"]\n" "\023pb_GameRecordPacket\022\020\n\010wChairID\030\001 \001(\r\022\022" "\n\nwMainCmdID\030\002 \001(\r\022\021\n\twSubCmdID\030\003 \001(\r\022\r\n" "\005pData\030\004 \001(\014\"\201\002\n\rpb_GameConfig\022\022\n\nwSubGa" "meID\030\001 \001(\r\022\020\n\010wDiScore\030\002 \001(\r\022\017\n\007wFanFei\030" "\003 \001(\r\022\020\n\010wIpLimit\030\004 \001(\r\022\026\n\016wPlayCountRul" "e\030\005 \001(\r\022\016\n\006RoomId\030\006 \001(\r\022\017\n\007IsOwner\030\007 \001(\r" "\022\025\n\rwHadPlayCount\030\010 \001(\r\022\027\n\017sPrivateTable" "ID\030\t \001(\t\022\017\n\007bDuoLai\030\n \001(\r\022\021\n\twFengDing\030\013" " \001(\r\022\014\n\004tmp1\030\014 \001(\r\022\014\n\004tmp2\030\r \001(\r\"W\n\016pb_C" "hairRecord\022\020\n\010wChairId\030\001 \001(\r\022\020\n\010dwUserId" "\030\002 \001(\r\022\020\n\010userName\030\003 \001(\t\022\017\n\007headUrl\030\004 \001(" "\t\"\204\002\n\030PB_CS_S_ReplayRecordResp\022\016\n\006m_UUID" "\030\001 \001(\r\022\023\n\013m_startTime\030\003 \001(\r\022\021\n\tm_endTime" "\030\004 \001(\r\022\020\n\010m_UserId\030\005 \001(\r\0221\n\014m_gameconfig" "\030\006 \001(\0132\033.RecordPacket.pb_GameConfig\0221\n\013m" "_chairList\030\007 \003(\0132\034.RecordPacket.pb_Chair" "Record\0228\n\rpRecordPacket\030\010 \003(\0132!.RecordPa" "cket.pb_GameRecordPacketb\006proto3" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_Pb_5fRecordPacket_2eproto_deps[1] = { }; static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_Pb_5fRecordPacket_2eproto_sccs[4] = { &scc_info_PB_CS_S_ReplayRecordResp_Pb_5fRecordPacket_2eproto.base, &scc_info_pb_ChairRecord_Pb_5fRecordPacket_2eproto.base, &scc_info_pb_GameConfig_Pb_5fRecordPacket_2eproto.base, &scc_info_pb_GameRecordPacket_Pb_5fRecordPacket_2eproto.base, }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_Pb_5fRecordPacket_2eproto_once; static bool descriptor_table_Pb_5fRecordPacket_2eproto_initialized = false; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Pb_5fRecordPacket_2eproto = { &descriptor_table_Pb_5fRecordPacket_2eproto_initialized, descriptor_table_protodef_Pb_5fRecordPacket_2eproto, "Pb_RecordPacket.proto", 752, &descriptor_table_Pb_5fRecordPacket_2eproto_once, descriptor_table_Pb_5fRecordPacket_2eproto_sccs, descriptor_table_Pb_5fRecordPacket_2eproto_deps, 4, 0, schemas, file_default_instances, TableStruct_Pb_5fRecordPacket_2eproto::offsets, file_level_metadata_Pb_5fRecordPacket_2eproto, 4, file_level_enum_descriptors_Pb_5fRecordPacket_2eproto, file_level_service_descriptors_Pb_5fRecordPacket_2eproto, }; // Force running AddDescriptors() at dynamic initialization time. static bool dynamic_init_dummy_Pb_5fRecordPacket_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_Pb_5fRecordPacket_2eproto), true); namespace RecordPacket { // =================================================================== void pb_GameRecordPacket::InitAsDefaultInstance() { } class pb_GameRecordPacket::_Internal { public: }; pb_GameRecordPacket::pb_GameRecordPacket() : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:RecordPacket.pb_GameRecordPacket) } pb_GameRecordPacket::pb_GameRecordPacket(const pb_GameRecordPacket& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); pdata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_pdata().empty()) { pdata_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.pdata_); } ::memcpy(&wchairid_, &from.wchairid_, static_cast(reinterpret_cast(&wsubcmdid_) - reinterpret_cast(&wchairid_)) + sizeof(wsubcmdid_)); // @@protoc_insertion_point(copy_constructor:RecordPacket.pb_GameRecordPacket) } void pb_GameRecordPacket::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_pb_GameRecordPacket_Pb_5fRecordPacket_2eproto.base); pdata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(&wchairid_, 0, static_cast( reinterpret_cast(&wsubcmdid_) - reinterpret_cast(&wchairid_)) + sizeof(wsubcmdid_)); } pb_GameRecordPacket::~pb_GameRecordPacket() { // @@protoc_insertion_point(destructor:RecordPacket.pb_GameRecordPacket) SharedDtor(); } void pb_GameRecordPacket::SharedDtor() { pdata_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void pb_GameRecordPacket::SetCachedSize(int size) const { _cached_size_.Set(size); } const pb_GameRecordPacket& pb_GameRecordPacket::default_instance() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_pb_GameRecordPacket_Pb_5fRecordPacket_2eproto.base); return *internal_default_instance(); } void pb_GameRecordPacket::Clear() { // @@protoc_insertion_point(message_clear_start:RecordPacket.pb_GameRecordPacket) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; pdata_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(&wchairid_, 0, static_cast( reinterpret_cast(&wsubcmdid_) - reinterpret_cast(&wchairid_)) + sizeof(wsubcmdid_)); _internal_metadata_.Clear(); } const char* pb_GameRecordPacket::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // uint32 wChairID = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { wchairid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 wMainCmdID = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { wmaincmdid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 wSubCmdID = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { wsubcmdid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // bytes pData = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(_internal_mutable_pdata(), ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* pb_GameRecordPacket::InternalSerializeWithCachedSizesToArray( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:RecordPacket.pb_GameRecordPacket) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // uint32 wChairID = 1; if (this->wchairid() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_wchairid(), target); } // uint32 wMainCmdID = 2; if (this->wmaincmdid() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_wmaincmdid(), target); } // uint32 wSubCmdID = 3; if (this->wsubcmdid() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_wsubcmdid(), target); } // bytes pData = 4; if (this->pdata().size() > 0) { target = stream->WriteBytesMaybeAliased( 4, this->_internal_pdata(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:RecordPacket.pb_GameRecordPacket) return target; } size_t pb_GameRecordPacket::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:RecordPacket.pb_GameRecordPacket) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bytes pData = 4; if (this->pdata().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_pdata()); } // uint32 wChairID = 1; if (this->wchairid() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_wchairid()); } // uint32 wMainCmdID = 2; if (this->wmaincmdid() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_wmaincmdid()); } // uint32 wSubCmdID = 3; if (this->wsubcmdid() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_wsubcmdid()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void pb_GameRecordPacket::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:RecordPacket.pb_GameRecordPacket) GOOGLE_DCHECK_NE(&from, this); const pb_GameRecordPacket* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:RecordPacket.pb_GameRecordPacket) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:RecordPacket.pb_GameRecordPacket) MergeFrom(*source); } } void pb_GameRecordPacket::MergeFrom(const pb_GameRecordPacket& from) { // @@protoc_insertion_point(class_specific_merge_from_start:RecordPacket.pb_GameRecordPacket) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.pdata().size() > 0) { pdata_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.pdata_); } if (from.wchairid() != 0) { _internal_set_wchairid(from._internal_wchairid()); } if (from.wmaincmdid() != 0) { _internal_set_wmaincmdid(from._internal_wmaincmdid()); } if (from.wsubcmdid() != 0) { _internal_set_wsubcmdid(from._internal_wsubcmdid()); } } void pb_GameRecordPacket::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:RecordPacket.pb_GameRecordPacket) if (&from == this) return; Clear(); MergeFrom(from); } void pb_GameRecordPacket::CopyFrom(const pb_GameRecordPacket& from) { // @@protoc_insertion_point(class_specific_copy_from_start:RecordPacket.pb_GameRecordPacket) if (&from == this) return; Clear(); MergeFrom(from); } bool pb_GameRecordPacket::IsInitialized() const { return true; } void pb_GameRecordPacket::InternalSwap(pb_GameRecordPacket* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); pdata_.Swap(&other->pdata_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); swap(wchairid_, other->wchairid_); swap(wmaincmdid_, other->wmaincmdid_); swap(wsubcmdid_, other->wsubcmdid_); } ::PROTOBUF_NAMESPACE_ID::Metadata pb_GameRecordPacket::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== void pb_GameConfig::InitAsDefaultInstance() { } class pb_GameConfig::_Internal { public: }; pb_GameConfig::pb_GameConfig() : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:RecordPacket.pb_GameConfig) } pb_GameConfig::pb_GameConfig(const pb_GameConfig& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); sprivatetableid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_sprivatetableid().empty()) { sprivatetableid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.sprivatetableid_); } ::memcpy(&wsubgameid_, &from.wsubgameid_, static_cast(reinterpret_cast(&tmp2_) - reinterpret_cast(&wsubgameid_)) + sizeof(tmp2_)); // @@protoc_insertion_point(copy_constructor:RecordPacket.pb_GameConfig) } void pb_GameConfig::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_pb_GameConfig_Pb_5fRecordPacket_2eproto.base); sprivatetableid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(&wsubgameid_, 0, static_cast( reinterpret_cast(&tmp2_) - reinterpret_cast(&wsubgameid_)) + sizeof(tmp2_)); } pb_GameConfig::~pb_GameConfig() { // @@protoc_insertion_point(destructor:RecordPacket.pb_GameConfig) SharedDtor(); } void pb_GameConfig::SharedDtor() { sprivatetableid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void pb_GameConfig::SetCachedSize(int size) const { _cached_size_.Set(size); } const pb_GameConfig& pb_GameConfig::default_instance() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_pb_GameConfig_Pb_5fRecordPacket_2eproto.base); return *internal_default_instance(); } void pb_GameConfig::Clear() { // @@protoc_insertion_point(message_clear_start:RecordPacket.pb_GameConfig) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; sprivatetableid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(&wsubgameid_, 0, static_cast( reinterpret_cast(&tmp2_) - reinterpret_cast(&wsubgameid_)) + sizeof(tmp2_)); _internal_metadata_.Clear(); } const char* pb_GameConfig::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // uint32 wSubGameID = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { wsubgameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 wDiScore = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { wdiscore_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 wFanFei = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { wfanfei_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 wIpLimit = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { wiplimit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 wPlayCountRule = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { wplaycountrule_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 RoomId = 6; case 6: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { roomid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 IsOwner = 7; case 7: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { isowner_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 wHadPlayCount = 8; case 8: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { whadplaycount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // string sPrivateTableID = 9; case 9: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(_internal_mutable_sprivatetableid(), ptr, ctx, "RecordPacket.pb_GameConfig.sPrivateTableID"); CHK_(ptr); } else goto handle_unusual; continue; // uint32 bDuoLai = 10; case 10: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { bduolai_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 wFengDing = 11; case 11: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) { wfengding_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 tmp1 = 12; case 12: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) { tmp1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 tmp2 = 13; case 13: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 104)) { tmp2_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* pb_GameConfig::InternalSerializeWithCachedSizesToArray( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:RecordPacket.pb_GameConfig) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // uint32 wSubGameID = 1; if (this->wsubgameid() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_wsubgameid(), target); } // uint32 wDiScore = 2; if (this->wdiscore() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_wdiscore(), target); } // uint32 wFanFei = 3; if (this->wfanfei() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_wfanfei(), target); } // uint32 wIpLimit = 4; if (this->wiplimit() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_wiplimit(), target); } // uint32 wPlayCountRule = 5; if (this->wplaycountrule() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_wplaycountrule(), target); } // uint32 RoomId = 6; if (this->roomid() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(6, this->_internal_roomid(), target); } // uint32 IsOwner = 7; if (this->isowner() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(7, this->_internal_isowner(), target); } // uint32 wHadPlayCount = 8; if (this->whadplaycount() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(8, this->_internal_whadplaycount(), target); } // string sPrivateTableID = 9; if (this->sprivatetableid().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_sprivatetableid().data(), static_cast(this->_internal_sprivatetableid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "RecordPacket.pb_GameConfig.sPrivateTableID"); target = stream->WriteStringMaybeAliased( 9, this->_internal_sprivatetableid(), target); } // uint32 bDuoLai = 10; if (this->bduolai() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(10, this->_internal_bduolai(), target); } // uint32 wFengDing = 11; if (this->wfengding() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(11, this->_internal_wfengding(), target); } // uint32 tmp1 = 12; if (this->tmp1() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(12, this->_internal_tmp1(), target); } // uint32 tmp2 = 13; if (this->tmp2() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(13, this->_internal_tmp2(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:RecordPacket.pb_GameConfig) return target; } size_t pb_GameConfig::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:RecordPacket.pb_GameConfig) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string sPrivateTableID = 9; if (this->sprivatetableid().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_sprivatetableid()); } // uint32 wSubGameID = 1; if (this->wsubgameid() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_wsubgameid()); } // uint32 wDiScore = 2; if (this->wdiscore() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_wdiscore()); } // uint32 wFanFei = 3; if (this->wfanfei() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_wfanfei()); } // uint32 wIpLimit = 4; if (this->wiplimit() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_wiplimit()); } // uint32 wPlayCountRule = 5; if (this->wplaycountrule() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_wplaycountrule()); } // uint32 RoomId = 6; if (this->roomid() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_roomid()); } // uint32 IsOwner = 7; if (this->isowner() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_isowner()); } // uint32 wHadPlayCount = 8; if (this->whadplaycount() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_whadplaycount()); } // uint32 bDuoLai = 10; if (this->bduolai() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_bduolai()); } // uint32 wFengDing = 11; if (this->wfengding() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_wfengding()); } // uint32 tmp1 = 12; if (this->tmp1() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_tmp1()); } // uint32 tmp2 = 13; if (this->tmp2() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_tmp2()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void pb_GameConfig::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:RecordPacket.pb_GameConfig) GOOGLE_DCHECK_NE(&from, this); const pb_GameConfig* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:RecordPacket.pb_GameConfig) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:RecordPacket.pb_GameConfig) MergeFrom(*source); } } void pb_GameConfig::MergeFrom(const pb_GameConfig& from) { // @@protoc_insertion_point(class_specific_merge_from_start:RecordPacket.pb_GameConfig) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.sprivatetableid().size() > 0) { sprivatetableid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.sprivatetableid_); } if (from.wsubgameid() != 0) { _internal_set_wsubgameid(from._internal_wsubgameid()); } if (from.wdiscore() != 0) { _internal_set_wdiscore(from._internal_wdiscore()); } if (from.wfanfei() != 0) { _internal_set_wfanfei(from._internal_wfanfei()); } if (from.wiplimit() != 0) { _internal_set_wiplimit(from._internal_wiplimit()); } if (from.wplaycountrule() != 0) { _internal_set_wplaycountrule(from._internal_wplaycountrule()); } if (from.roomid() != 0) { _internal_set_roomid(from._internal_roomid()); } if (from.isowner() != 0) { _internal_set_isowner(from._internal_isowner()); } if (from.whadplaycount() != 0) { _internal_set_whadplaycount(from._internal_whadplaycount()); } if (from.bduolai() != 0) { _internal_set_bduolai(from._internal_bduolai()); } if (from.wfengding() != 0) { _internal_set_wfengding(from._internal_wfengding()); } if (from.tmp1() != 0) { _internal_set_tmp1(from._internal_tmp1()); } if (from.tmp2() != 0) { _internal_set_tmp2(from._internal_tmp2()); } } void pb_GameConfig::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:RecordPacket.pb_GameConfig) if (&from == this) return; Clear(); MergeFrom(from); } void pb_GameConfig::CopyFrom(const pb_GameConfig& from) { // @@protoc_insertion_point(class_specific_copy_from_start:RecordPacket.pb_GameConfig) if (&from == this) return; Clear(); MergeFrom(from); } bool pb_GameConfig::IsInitialized() const { return true; } void pb_GameConfig::InternalSwap(pb_GameConfig* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); sprivatetableid_.Swap(&other->sprivatetableid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); swap(wsubgameid_, other->wsubgameid_); swap(wdiscore_, other->wdiscore_); swap(wfanfei_, other->wfanfei_); swap(wiplimit_, other->wiplimit_); swap(wplaycountrule_, other->wplaycountrule_); swap(roomid_, other->roomid_); swap(isowner_, other->isowner_); swap(whadplaycount_, other->whadplaycount_); swap(bduolai_, other->bduolai_); swap(wfengding_, other->wfengding_); swap(tmp1_, other->tmp1_); swap(tmp2_, other->tmp2_); } ::PROTOBUF_NAMESPACE_ID::Metadata pb_GameConfig::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== void pb_ChairRecord::InitAsDefaultInstance() { } class pb_ChairRecord::_Internal { public: }; pb_ChairRecord::pb_ChairRecord() : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:RecordPacket.pb_ChairRecord) } pb_ChairRecord::pb_ChairRecord(const pb_ChairRecord& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); username_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_username().empty()) { username_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.username_); } headurl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_headurl().empty()) { headurl_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.headurl_); } ::memcpy(&wchairid_, &from.wchairid_, static_cast(reinterpret_cast(&dwuserid_) - reinterpret_cast(&wchairid_)) + sizeof(dwuserid_)); // @@protoc_insertion_point(copy_constructor:RecordPacket.pb_ChairRecord) } void pb_ChairRecord::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_pb_ChairRecord_Pb_5fRecordPacket_2eproto.base); username_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); headurl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(&wchairid_, 0, static_cast( reinterpret_cast(&dwuserid_) - reinterpret_cast(&wchairid_)) + sizeof(dwuserid_)); } pb_ChairRecord::~pb_ChairRecord() { // @@protoc_insertion_point(destructor:RecordPacket.pb_ChairRecord) SharedDtor(); } void pb_ChairRecord::SharedDtor() { username_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); headurl_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void pb_ChairRecord::SetCachedSize(int size) const { _cached_size_.Set(size); } const pb_ChairRecord& pb_ChairRecord::default_instance() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_pb_ChairRecord_Pb_5fRecordPacket_2eproto.base); return *internal_default_instance(); } void pb_ChairRecord::Clear() { // @@protoc_insertion_point(message_clear_start:RecordPacket.pb_ChairRecord) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; username_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); headurl_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(&wchairid_, 0, static_cast( reinterpret_cast(&dwuserid_) - reinterpret_cast(&wchairid_)) + sizeof(dwuserid_)); _internal_metadata_.Clear(); } const char* pb_ChairRecord::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // uint32 wChairId = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { wchairid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 dwUserId = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { dwuserid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // string userName = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(_internal_mutable_username(), ptr, ctx, "RecordPacket.pb_ChairRecord.userName"); CHK_(ptr); } else goto handle_unusual; continue; // string headUrl = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(_internal_mutable_headurl(), ptr, ctx, "RecordPacket.pb_ChairRecord.headUrl"); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* pb_ChairRecord::InternalSerializeWithCachedSizesToArray( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:RecordPacket.pb_ChairRecord) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // uint32 wChairId = 1; if (this->wchairid() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_wchairid(), target); } // uint32 dwUserId = 2; if (this->dwuserid() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_dwuserid(), target); } // string userName = 3; if (this->username().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_username().data(), static_cast(this->_internal_username().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "RecordPacket.pb_ChairRecord.userName"); target = stream->WriteStringMaybeAliased( 3, this->_internal_username(), target); } // string headUrl = 4; if (this->headurl().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_headurl().data(), static_cast(this->_internal_headurl().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "RecordPacket.pb_ChairRecord.headUrl"); target = stream->WriteStringMaybeAliased( 4, this->_internal_headurl(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:RecordPacket.pb_ChairRecord) return target; } size_t pb_ChairRecord::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:RecordPacket.pb_ChairRecord) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string userName = 3; if (this->username().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_username()); } // string headUrl = 4; if (this->headurl().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_headurl()); } // uint32 wChairId = 1; if (this->wchairid() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_wchairid()); } // uint32 dwUserId = 2; if (this->dwuserid() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_dwuserid()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void pb_ChairRecord::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:RecordPacket.pb_ChairRecord) GOOGLE_DCHECK_NE(&from, this); const pb_ChairRecord* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:RecordPacket.pb_ChairRecord) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:RecordPacket.pb_ChairRecord) MergeFrom(*source); } } void pb_ChairRecord::MergeFrom(const pb_ChairRecord& from) { // @@protoc_insertion_point(class_specific_merge_from_start:RecordPacket.pb_ChairRecord) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.username().size() > 0) { username_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.username_); } if (from.headurl().size() > 0) { headurl_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.headurl_); } if (from.wchairid() != 0) { _internal_set_wchairid(from._internal_wchairid()); } if (from.dwuserid() != 0) { _internal_set_dwuserid(from._internal_dwuserid()); } } void pb_ChairRecord::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:RecordPacket.pb_ChairRecord) if (&from == this) return; Clear(); MergeFrom(from); } void pb_ChairRecord::CopyFrom(const pb_ChairRecord& from) { // @@protoc_insertion_point(class_specific_copy_from_start:RecordPacket.pb_ChairRecord) if (&from == this) return; Clear(); MergeFrom(from); } bool pb_ChairRecord::IsInitialized() const { return true; } void pb_ChairRecord::InternalSwap(pb_ChairRecord* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); username_.Swap(&other->username_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); headurl_.Swap(&other->headurl_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); swap(wchairid_, other->wchairid_); swap(dwuserid_, other->dwuserid_); } ::PROTOBUF_NAMESPACE_ID::Metadata pb_ChairRecord::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== void PB_CS_S_ReplayRecordResp::InitAsDefaultInstance() { ::RecordPacket::_PB_CS_S_ReplayRecordResp_default_instance_._instance.get_mutable()->m_gameconfig_ = const_cast< ::RecordPacket::pb_GameConfig*>( ::RecordPacket::pb_GameConfig::internal_default_instance()); } class PB_CS_S_ReplayRecordResp::_Internal { public: static const ::RecordPacket::pb_GameConfig& m_gameconfig(const PB_CS_S_ReplayRecordResp* msg); }; const ::RecordPacket::pb_GameConfig& PB_CS_S_ReplayRecordResp::_Internal::m_gameconfig(const PB_CS_S_ReplayRecordResp* msg) { return *msg->m_gameconfig_; } PB_CS_S_ReplayRecordResp::PB_CS_S_ReplayRecordResp() : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:RecordPacket.PB_CS_S_ReplayRecordResp) } PB_CS_S_ReplayRecordResp::PB_CS_S_ReplayRecordResp(const PB_CS_S_ReplayRecordResp& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr), m_chairlist_(from.m_chairlist_), precordpacket_(from.precordpacket_) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from._internal_has_m_gameconfig()) { m_gameconfig_ = new ::RecordPacket::pb_GameConfig(*from.m_gameconfig_); } else { m_gameconfig_ = nullptr; } ::memcpy(&m_uuid_, &from.m_uuid_, static_cast(reinterpret_cast(&m_userid_) - reinterpret_cast(&m_uuid_)) + sizeof(m_userid_)); // @@protoc_insertion_point(copy_constructor:RecordPacket.PB_CS_S_ReplayRecordResp) } void PB_CS_S_ReplayRecordResp::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PB_CS_S_ReplayRecordResp_Pb_5fRecordPacket_2eproto.base); ::memset(&m_gameconfig_, 0, static_cast( reinterpret_cast(&m_userid_) - reinterpret_cast(&m_gameconfig_)) + sizeof(m_userid_)); } PB_CS_S_ReplayRecordResp::~PB_CS_S_ReplayRecordResp() { // @@protoc_insertion_point(destructor:RecordPacket.PB_CS_S_ReplayRecordResp) SharedDtor(); } void PB_CS_S_ReplayRecordResp::SharedDtor() { if (this != internal_default_instance()) delete m_gameconfig_; } void PB_CS_S_ReplayRecordResp::SetCachedSize(int size) const { _cached_size_.Set(size); } const PB_CS_S_ReplayRecordResp& PB_CS_S_ReplayRecordResp::default_instance() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PB_CS_S_ReplayRecordResp_Pb_5fRecordPacket_2eproto.base); return *internal_default_instance(); } void PB_CS_S_ReplayRecordResp::Clear() { // @@protoc_insertion_point(message_clear_start:RecordPacket.PB_CS_S_ReplayRecordResp) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; m_chairlist_.Clear(); precordpacket_.Clear(); if (GetArenaNoVirtual() == nullptr && m_gameconfig_ != nullptr) { delete m_gameconfig_; } m_gameconfig_ = nullptr; ::memset(&m_uuid_, 0, static_cast( reinterpret_cast(&m_userid_) - reinterpret_cast(&m_uuid_)) + sizeof(m_userid_)); _internal_metadata_.Clear(); } const char* PB_CS_S_ReplayRecordResp::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // uint32 m_UUID = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { m_uuid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 m_startTime = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { m_starttime_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 m_endTime = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { m_endtime_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // uint32 m_UserId = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { m_userid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // .RecordPacket.pb_GameConfig m_gameconfig = 6; case 6: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { ptr = ctx->ParseMessage(_internal_mutable_m_gameconfig(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // repeated .RecordPacket.pb_ChairRecord m_chairList = 7; case 7: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { ptr -= 1; do { ptr += 1; ptr = ctx->ParseMessage(_internal_add_m_chairlist(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr)); } else goto handle_unusual; continue; // repeated .RecordPacket.pb_GameRecordPacket pRecordPacket = 8; case 8: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { ptr -= 1; do { ptr += 1; ptr = ctx->ParseMessage(_internal_add_precordpacket(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr)); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* PB_CS_S_ReplayRecordResp::InternalSerializeWithCachedSizesToArray( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:RecordPacket.PB_CS_S_ReplayRecordResp) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // uint32 m_UUID = 1; if (this->m_uuid() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_m_uuid(), target); } // uint32 m_startTime = 3; if (this->m_starttime() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_m_starttime(), target); } // uint32 m_endTime = 4; if (this->m_endtime() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_m_endtime(), target); } // uint32 m_UserId = 5; if (this->m_userid() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_m_userid(), target); } // .RecordPacket.pb_GameConfig m_gameconfig = 6; if (this->has_m_gameconfig()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessageToArray( 6, _Internal::m_gameconfig(this), target, stream); } // repeated .RecordPacket.pb_ChairRecord m_chairList = 7; for (unsigned int i = 0, n = static_cast(this->_internal_m_chairlist_size()); i < n; i++) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessageToArray(7, this->_internal_m_chairlist(i), target, stream); } // repeated .RecordPacket.pb_GameRecordPacket pRecordPacket = 8; for (unsigned int i = 0, n = static_cast(this->_internal_precordpacket_size()); i < n; i++) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessageToArray(8, this->_internal_precordpacket(i), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:RecordPacket.PB_CS_S_ReplayRecordResp) return target; } size_t PB_CS_S_ReplayRecordResp::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:RecordPacket.PB_CS_S_ReplayRecordResp) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .RecordPacket.pb_ChairRecord m_chairList = 7; total_size += 1UL * this->_internal_m_chairlist_size(); for (const auto& msg : this->m_chairlist_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } // repeated .RecordPacket.pb_GameRecordPacket pRecordPacket = 8; total_size += 1UL * this->_internal_precordpacket_size(); for (const auto& msg : this->precordpacket_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } // .RecordPacket.pb_GameConfig m_gameconfig = 6; if (this->has_m_gameconfig()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *m_gameconfig_); } // uint32 m_UUID = 1; if (this->m_uuid() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_m_uuid()); } // uint32 m_startTime = 3; if (this->m_starttime() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_m_starttime()); } // uint32 m_endTime = 4; if (this->m_endtime() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_m_endtime()); } // uint32 m_UserId = 5; if (this->m_userid() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_m_userid()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void PB_CS_S_ReplayRecordResp::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:RecordPacket.PB_CS_S_ReplayRecordResp) GOOGLE_DCHECK_NE(&from, this); const PB_CS_S_ReplayRecordResp* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:RecordPacket.PB_CS_S_ReplayRecordResp) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:RecordPacket.PB_CS_S_ReplayRecordResp) MergeFrom(*source); } } void PB_CS_S_ReplayRecordResp::MergeFrom(const PB_CS_S_ReplayRecordResp& from) { // @@protoc_insertion_point(class_specific_merge_from_start:RecordPacket.PB_CS_S_ReplayRecordResp) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; m_chairlist_.MergeFrom(from.m_chairlist_); precordpacket_.MergeFrom(from.precordpacket_); if (from.has_m_gameconfig()) { _internal_mutable_m_gameconfig()->::RecordPacket::pb_GameConfig::MergeFrom(from._internal_m_gameconfig()); } if (from.m_uuid() != 0) { _internal_set_m_uuid(from._internal_m_uuid()); } if (from.m_starttime() != 0) { _internal_set_m_starttime(from._internal_m_starttime()); } if (from.m_endtime() != 0) { _internal_set_m_endtime(from._internal_m_endtime()); } if (from.m_userid() != 0) { _internal_set_m_userid(from._internal_m_userid()); } } void PB_CS_S_ReplayRecordResp::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:RecordPacket.PB_CS_S_ReplayRecordResp) if (&from == this) return; Clear(); MergeFrom(from); } void PB_CS_S_ReplayRecordResp::CopyFrom(const PB_CS_S_ReplayRecordResp& from) { // @@protoc_insertion_point(class_specific_copy_from_start:RecordPacket.PB_CS_S_ReplayRecordResp) if (&from == this) return; Clear(); MergeFrom(from); } bool PB_CS_S_ReplayRecordResp::IsInitialized() const { return true; } void PB_CS_S_ReplayRecordResp::InternalSwap(PB_CS_S_ReplayRecordResp* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); m_chairlist_.InternalSwap(&other->m_chairlist_); precordpacket_.InternalSwap(&other->precordpacket_); swap(m_gameconfig_, other->m_gameconfig_); swap(m_uuid_, other->m_uuid_); swap(m_starttime_, other->m_starttime_); swap(m_endtime_, other->m_endtime_); swap(m_userid_, other->m_userid_); } ::PROTOBUF_NAMESPACE_ID::Metadata PB_CS_S_ReplayRecordResp::GetMetadata() const { return GetMetadataStatic(); } // @@protoc_insertion_point(namespace_scope) } // namespace RecordPacket PROTOBUF_NAMESPACE_OPEN template<> PROTOBUF_NOINLINE ::RecordPacket::pb_GameRecordPacket* Arena::CreateMaybeMessage< ::RecordPacket::pb_GameRecordPacket >(Arena* arena) { return Arena::CreateInternal< ::RecordPacket::pb_GameRecordPacket >(arena); } template<> PROTOBUF_NOINLINE ::RecordPacket::pb_GameConfig* Arena::CreateMaybeMessage< ::RecordPacket::pb_GameConfig >(Arena* arena) { return Arena::CreateInternal< ::RecordPacket::pb_GameConfig >(arena); } template<> PROTOBUF_NOINLINE ::RecordPacket::pb_ChairRecord* Arena::CreateMaybeMessage< ::RecordPacket::pb_ChairRecord >(Arena* arena) { return Arena::CreateInternal< ::RecordPacket::pb_ChairRecord >(arena); } template<> PROTOBUF_NOINLINE ::RecordPacket::PB_CS_S_ReplayRecordResp* Arena::CreateMaybeMessage< ::RecordPacket::PB_CS_S_ReplayRecordResp >(Arena* arena) { return Arena::CreateInternal< ::RecordPacket::PB_CS_S_ReplayRecordResp >(arena); } PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include