// Generated by the protocol buffer compiler. DO NOT EDIT! // source: common_protocol.proto #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "common_protocol.pb.h" #include #include #include #include #include #include #include #include #include // @@protoc_insertion_point(includes) namespace common_protocol { namespace { const ::google::protobuf::Descriptor* PlayerConnect_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* PlayerConnect_reflection_ = NULL; const ::google::protobuf::Descriptor* PlayerConnectResult_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* PlayerConnectResult_reflection_ = NULL; } // namespace void protobuf_AssignDesc_common_5fprotocol_2eproto() { protobuf_AddDesc_common_5fprotocol_2eproto(); const ::google::protobuf::FileDescriptor* file = ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( "common_protocol.proto"); GOOGLE_CHECK(file != NULL); PlayerConnect_descriptor_ = file->message_type(0); static const int PlayerConnect_offsets_[6] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerConnect, account_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerConnect, token_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerConnect, sign_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerConnect, platform_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerConnect, pay_platform_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerConnect, channel_), }; PlayerConnect_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( PlayerConnect_descriptor_, PlayerConnect::default_instance_, PlayerConnect_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerConnect, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerConnect, _unknown_fields_), -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(PlayerConnect)); PlayerConnectResult_descriptor_ = file->message_type(1); static const int PlayerConnectResult_offsets_[4] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerConnectResult, servertime_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerConnectResult, gaming_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerConnectResult, ver_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerConnectResult, result_), }; PlayerConnectResult_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( PlayerConnectResult_descriptor_, PlayerConnectResult::default_instance_, PlayerConnectResult_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerConnectResult, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerConnectResult, _unknown_fields_), -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(PlayerConnectResult)); } namespace { GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); inline void protobuf_AssignDescriptorsOnce() { ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, &protobuf_AssignDesc_common_5fprotocol_2eproto); } void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( PlayerConnect_descriptor_, &PlayerConnect::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( PlayerConnectResult_descriptor_, &PlayerConnectResult::default_instance()); } } // namespace void protobuf_ShutdownFile_common_5fprotocol_2eproto() { delete PlayerConnect::default_instance_; delete PlayerConnect_reflection_; delete PlayerConnect::_default_platform_; delete PlayerConnect::_default_pay_platform_; delete PlayerConnect::_default_channel_; delete PlayerConnectResult::default_instance_; delete PlayerConnectResult_reflection_; } void protobuf_AddDesc_common_5fprotocol_2eproto() { static bool already_here = false; if (already_here) return; already_here = true; GOOGLE_PROTOBUF_VERIFY_VERSION; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( "\n\025common_protocol.proto\022\017common_protocol" "\"\213\001\n\rPlayerConnect\022\017\n\007account\030\001 \001(\t\022\r\n\005t" "oken\030\002 \001(\t\022\014\n\004sign\030\003 \001(\t\022\031\n\010platform\030\004 \001" "(\t:\007dwc_def\022\035\n\014pay_platform\030\005 \001(\t:\007dwc_d" "ef\022\022\n\007channel\030\006 \001(\t:\0010\"V\n\023PlayerConnectR" "esult\022\022\n\nservertime\030\001 \001(\005\022\016\n\006gaming\030\002 \001(" "\005\022\013\n\003ver\030\003 \001(\t\022\016\n\006result\030\004 \001(\005", 270); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "common_protocol.proto", &protobuf_RegisterTypes); PlayerConnect::_default_platform_ = new ::std::string("dwc_def", 7); PlayerConnect::_default_pay_platform_ = new ::std::string("dwc_def", 7); PlayerConnect::_default_channel_ = new ::std::string("0", 1); PlayerConnect::default_instance_ = new PlayerConnect(); PlayerConnectResult::default_instance_ = new PlayerConnectResult(); PlayerConnect::default_instance_->InitAsDefaultInstance(); PlayerConnectResult::default_instance_->InitAsDefaultInstance(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_common_5fprotocol_2eproto); } // Force AddDescriptors() to be called at static initialization time. struct StaticDescriptorInitializer_common_5fprotocol_2eproto { StaticDescriptorInitializer_common_5fprotocol_2eproto() { protobuf_AddDesc_common_5fprotocol_2eproto(); } } static_descriptor_initializer_common_5fprotocol_2eproto_; // =================================================================== ::std::string* PlayerConnect::_default_platform_ = NULL; ::std::string* PlayerConnect::_default_pay_platform_ = NULL; ::std::string* PlayerConnect::_default_channel_ = NULL; #ifndef _MSC_VER const int PlayerConnect::kAccountFieldNumber; const int PlayerConnect::kTokenFieldNumber; const int PlayerConnect::kSignFieldNumber; const int PlayerConnect::kPlatformFieldNumber; const int PlayerConnect::kPayPlatformFieldNumber; const int PlayerConnect::kChannelFieldNumber; #endif // !_MSC_VER PlayerConnect::PlayerConnect() : ::google::protobuf::Message() { SharedCtor(); } void PlayerConnect::InitAsDefaultInstance() { } PlayerConnect::PlayerConnect(const PlayerConnect& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } void PlayerConnect::SharedCtor() { _cached_size_ = 0; account_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); token_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); sign_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); platform_ = const_cast< ::std::string*>(_default_platform_); pay_platform_ = const_cast< ::std::string*>(_default_pay_platform_); channel_ = const_cast< ::std::string*>(_default_channel_); ::memset(_has_bits_, 0, sizeof(_has_bits_)); } PlayerConnect::~PlayerConnect() { SharedDtor(); } void PlayerConnect::SharedDtor() { if (account_ != &::google::protobuf::internal::kEmptyString) { delete account_; } if (token_ != &::google::protobuf::internal::kEmptyString) { delete token_; } if (sign_ != &::google::protobuf::internal::kEmptyString) { delete sign_; } if (platform_ != _default_platform_) { delete platform_; } if (pay_platform_ != _default_pay_platform_) { delete pay_platform_; } if (channel_ != _default_channel_) { delete channel_; } if (this != default_instance_) { } } void PlayerConnect::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* PlayerConnect::descriptor() { protobuf_AssignDescriptorsOnce(); return PlayerConnect_descriptor_; } const PlayerConnect& PlayerConnect::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_common_5fprotocol_2eproto(); return *default_instance_; } PlayerConnect* PlayerConnect::default_instance_ = NULL; PlayerConnect* PlayerConnect::New() const { return new PlayerConnect; } void PlayerConnect::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (has_account()) { if (account_ != &::google::protobuf::internal::kEmptyString) { account_->clear(); } } if (has_token()) { if (token_ != &::google::protobuf::internal::kEmptyString) { token_->clear(); } } if (has_sign()) { if (sign_ != &::google::protobuf::internal::kEmptyString) { sign_->clear(); } } if (has_platform()) { if (platform_ != _default_platform_) { platform_->assign(*_default_platform_); } } if (has_pay_platform()) { if (pay_platform_ != _default_pay_platform_) { pay_platform_->assign(*_default_pay_platform_); } } if (has_channel()) { if (channel_ != _default_channel_) { channel_->assign(*_default_channel_); } } } ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } bool PlayerConnect::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; while ((tag = input->ReadTag()) != 0) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional string account = 1; case 1: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_account())); ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->account().data(), this->account().length(), ::google::protobuf::internal::WireFormat::PARSE); } else { goto handle_uninterpreted; } if (input->ExpectTag(18)) goto parse_token; break; } // optional string token = 2; case 2: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { parse_token: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_token())); ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->token().data(), this->token().length(), ::google::protobuf::internal::WireFormat::PARSE); } else { goto handle_uninterpreted; } if (input->ExpectTag(26)) goto parse_sign; break; } // optional string sign = 3; case 3: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { parse_sign: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_sign())); ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->sign().data(), this->sign().length(), ::google::protobuf::internal::WireFormat::PARSE); } else { goto handle_uninterpreted; } if (input->ExpectTag(34)) goto parse_platform; break; } // optional string platform = 4 [default = "dwc_def"]; case 4: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { parse_platform: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_platform())); ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->platform().data(), this->platform().length(), ::google::protobuf::internal::WireFormat::PARSE); } else { goto handle_uninterpreted; } if (input->ExpectTag(42)) goto parse_pay_platform; break; } // optional string pay_platform = 5 [default = "dwc_def"]; case 5: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { parse_pay_platform: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_pay_platform())); ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->pay_platform().data(), this->pay_platform().length(), ::google::protobuf::internal::WireFormat::PARSE); } else { goto handle_uninterpreted; } if (input->ExpectTag(50)) goto parse_channel; break; } // optional string channel = 6 [default = "0"]; case 6: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { parse_channel: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_channel())); ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->channel().data(), this->channel().length(), ::google::protobuf::internal::WireFormat::PARSE); } else { goto handle_uninterpreted; } if (input->ExpectAtEnd()) return true; break; } default: { handle_uninterpreted: if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { return true; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; } } } return true; #undef DO_ } void PlayerConnect::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // optional string account = 1; if (has_account()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->account().data(), this->account().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); ::google::protobuf::internal::WireFormatLite::WriteString( 1, this->account(), output); } // optional string token = 2; if (has_token()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->token().data(), this->token().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); ::google::protobuf::internal::WireFormatLite::WriteString( 2, this->token(), output); } // optional string sign = 3; if (has_sign()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->sign().data(), this->sign().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); ::google::protobuf::internal::WireFormatLite::WriteString( 3, this->sign(), output); } // optional string platform = 4 [default = "dwc_def"]; if (has_platform()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->platform().data(), this->platform().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); ::google::protobuf::internal::WireFormatLite::WriteString( 4, this->platform(), output); } // optional string pay_platform = 5 [default = "dwc_def"]; if (has_pay_platform()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->pay_platform().data(), this->pay_platform().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); ::google::protobuf::internal::WireFormatLite::WriteString( 5, this->pay_platform(), output); } // optional string channel = 6 [default = "0"]; if (has_channel()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->channel().data(), this->channel().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); ::google::protobuf::internal::WireFormatLite::WriteString( 6, this->channel(), output); } if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } } ::google::protobuf::uint8* PlayerConnect::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // optional string account = 1; if (has_account()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->account().data(), this->account().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->account(), target); } // optional string token = 2; if (has_token()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->token().data(), this->token().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->token(), target); } // optional string sign = 3; if (has_sign()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->sign().data(), this->sign().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3, this->sign(), target); } // optional string platform = 4 [default = "dwc_def"]; if (has_platform()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->platform().data(), this->platform().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 4, this->platform(), target); } // optional string pay_platform = 5 [default = "dwc_def"]; if (has_pay_platform()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->pay_platform().data(), this->pay_platform().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 5, this->pay_platform(), target); } // optional string channel = 6 [default = "0"]; if (has_channel()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->channel().data(), this->channel().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 6, this->channel(), target); } if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } return target; } int PlayerConnect::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // optional string account = 1; if (has_account()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->account()); } // optional string token = 2; if (has_token()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->token()); } // optional string sign = 3; if (has_sign()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->sign()); } // optional string platform = 4 [default = "dwc_def"]; if (has_platform()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->platform()); } // optional string pay_platform = 5 [default = "dwc_def"]; if (has_pay_platform()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->pay_platform()); } // optional string channel = 6 [default = "0"]; if (has_channel()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->channel()); } } if (!unknown_fields().empty()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( unknown_fields()); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void PlayerConnect::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); const PlayerConnect* source = ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { MergeFrom(*source); } } void PlayerConnect::MergeFrom(const PlayerConnect& from) { GOOGLE_CHECK_NE(&from, this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_account()) { set_account(from.account()); } if (from.has_token()) { set_token(from.token()); } if (from.has_sign()) { set_sign(from.sign()); } if (from.has_platform()) { set_platform(from.platform()); } if (from.has_pay_platform()) { set_pay_platform(from.pay_platform()); } if (from.has_channel()) { set_channel(from.channel()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } void PlayerConnect::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } void PlayerConnect::CopyFrom(const PlayerConnect& from) { if (&from == this) return; Clear(); MergeFrom(from); } bool PlayerConnect::IsInitialized() const { return true; } void PlayerConnect::Swap(PlayerConnect* other) { if (other != this) { std::swap(account_, other->account_); std::swap(token_, other->token_); std::swap(sign_, other->sign_); std::swap(platform_, other->platform_); std::swap(pay_platform_, other->pay_platform_); std::swap(channel_, other->channel_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } ::google::protobuf::Metadata PlayerConnect::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = PlayerConnect_descriptor_; metadata.reflection = PlayerConnect_reflection_; return metadata; } // =================================================================== #ifndef _MSC_VER const int PlayerConnectResult::kServertimeFieldNumber; const int PlayerConnectResult::kGamingFieldNumber; const int PlayerConnectResult::kVerFieldNumber; const int PlayerConnectResult::kResultFieldNumber; #endif // !_MSC_VER PlayerConnectResult::PlayerConnectResult() : ::google::protobuf::Message() { SharedCtor(); } void PlayerConnectResult::InitAsDefaultInstance() { } PlayerConnectResult::PlayerConnectResult(const PlayerConnectResult& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } void PlayerConnectResult::SharedCtor() { _cached_size_ = 0; servertime_ = 0; gaming_ = 0; ver_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); result_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } PlayerConnectResult::~PlayerConnectResult() { SharedDtor(); } void PlayerConnectResult::SharedDtor() { if (ver_ != &::google::protobuf::internal::kEmptyString) { delete ver_; } if (this != default_instance_) { } } void PlayerConnectResult::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* PlayerConnectResult::descriptor() { protobuf_AssignDescriptorsOnce(); return PlayerConnectResult_descriptor_; } const PlayerConnectResult& PlayerConnectResult::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_common_5fprotocol_2eproto(); return *default_instance_; } PlayerConnectResult* PlayerConnectResult::default_instance_ = NULL; PlayerConnectResult* PlayerConnectResult::New() const { return new PlayerConnectResult; } void PlayerConnectResult::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { servertime_ = 0; gaming_ = 0; if (has_ver()) { if (ver_ != &::google::protobuf::internal::kEmptyString) { ver_->clear(); } } result_ = 0; } ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } bool PlayerConnectResult::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; while ((tag = input->ReadTag()) != 0) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional int32 servertime = 1; case 1: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &servertime_))); set_has_servertime(); } else { goto handle_uninterpreted; } if (input->ExpectTag(16)) goto parse_gaming; break; } // optional int32 gaming = 2; case 2: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { parse_gaming: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &gaming_))); set_has_gaming(); } else { goto handle_uninterpreted; } if (input->ExpectTag(26)) goto parse_ver; break; } // optional string ver = 3; case 3: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { parse_ver: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_ver())); ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->ver().data(), this->ver().length(), ::google::protobuf::internal::WireFormat::PARSE); } else { goto handle_uninterpreted; } if (input->ExpectTag(32)) goto parse_result; break; } // optional int32 result = 4; case 4: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { parse_result: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &result_))); set_has_result(); } else { goto handle_uninterpreted; } if (input->ExpectAtEnd()) return true; break; } default: { handle_uninterpreted: if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { return true; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; } } } return true; #undef DO_ } void PlayerConnectResult::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // optional int32 servertime = 1; if (has_servertime()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->servertime(), output); } // optional int32 gaming = 2; if (has_gaming()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->gaming(), output); } // optional string ver = 3; if (has_ver()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->ver().data(), this->ver().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); ::google::protobuf::internal::WireFormatLite::WriteString( 3, this->ver(), output); } // optional int32 result = 4; if (has_result()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->result(), output); } if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } } ::google::protobuf::uint8* PlayerConnectResult::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // optional int32 servertime = 1; if (has_servertime()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->servertime(), target); } // optional int32 gaming = 2; if (has_gaming()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->gaming(), target); } // optional string ver = 3; if (has_ver()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->ver().data(), this->ver().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3, this->ver(), target); } // optional int32 result = 4; if (has_result()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->result(), target); } if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } return target; } int PlayerConnectResult::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // optional int32 servertime = 1; if (has_servertime()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->servertime()); } // optional int32 gaming = 2; if (has_gaming()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->gaming()); } // optional string ver = 3; if (has_ver()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->ver()); } // optional int32 result = 4; if (has_result()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->result()); } } if (!unknown_fields().empty()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( unknown_fields()); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void PlayerConnectResult::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); const PlayerConnectResult* source = ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { MergeFrom(*source); } } void PlayerConnectResult::MergeFrom(const PlayerConnectResult& from) { GOOGLE_CHECK_NE(&from, this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_servertime()) { set_servertime(from.servertime()); } if (from.has_gaming()) { set_gaming(from.gaming()); } if (from.has_ver()) { set_ver(from.ver()); } if (from.has_result()) { set_result(from.result()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } void PlayerConnectResult::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } void PlayerConnectResult::CopyFrom(const PlayerConnectResult& from) { if (&from == this) return; Clear(); MergeFrom(from); } bool PlayerConnectResult::IsInitialized() const { return true; } void PlayerConnectResult::Swap(PlayerConnectResult* other) { if (other != this) { std::swap(servertime_, other->servertime_); std::swap(gaming_, other->gaming_); std::swap(ver_, other->ver_); std::swap(result_, other->result_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } ::google::protobuf::Metadata PlayerConnectResult::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = PlayerConnectResult_descriptor_; metadata.reflection = PlayerConnectResult_reflection_; return metadata; } // @@protoc_insertion_point(namespace_scope) } // namespace common_protocol // @@protoc_insertion_point(global_scope)