// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: client2center_protocol.proto

#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "client2center_protocol.pb.h"

#include <algorithm>

#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)

namespace client2center_protocols {

namespace {

const ::google::protobuf::Descriptor* packetc2center_player_connect_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
  packetc2center_player_connect_reflection_ = NULL;
const ::google::protobuf::Descriptor* packetcenter2c_player_connect_result_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
  packetcenter2c_player_connect_result_reflection_ = NULL;

}  // namespace


void protobuf_AssignDesc_client2center_5fprotocol_2eproto() {
  protobuf_AddDesc_client2center_5fprotocol_2eproto();
  const ::google::protobuf::FileDescriptor* file =
    ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
      "client2center_protocol.proto");
  GOOGLE_CHECK(file != NULL);
  packetc2center_player_connect_descriptor_ = file->message_type(0);
  static const int packetc2center_player_connect_offsets_[2] = {
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2center_player_connect, packet_id_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2center_player_connect, connectinfo_),
  };
  packetc2center_player_connect_reflection_ =
    new ::google::protobuf::internal::GeneratedMessageReflection(
      packetc2center_player_connect_descriptor_,
      packetc2center_player_connect::default_instance_,
      packetc2center_player_connect_offsets_,
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2center_player_connect, _has_bits_[0]),
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2center_player_connect, _unknown_fields_),
      -1,
      ::google::protobuf::DescriptorPool::generated_pool(),
      ::google::protobuf::MessageFactory::generated_factory(),
      sizeof(packetc2center_player_connect));
  packetcenter2c_player_connect_result_descriptor_ = file->message_type(1);
  static const int packetcenter2c_player_connect_result_offsets_[2] = {
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetcenter2c_player_connect_result, packet_id_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetcenter2c_player_connect_result, resultinfo_),
  };
  packetcenter2c_player_connect_result_reflection_ =
    new ::google::protobuf::internal::GeneratedMessageReflection(
      packetcenter2c_player_connect_result_descriptor_,
      packetcenter2c_player_connect_result::default_instance_,
      packetcenter2c_player_connect_result_offsets_,
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetcenter2c_player_connect_result, _has_bits_[0]),
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetcenter2c_player_connect_result, _unknown_fields_),
      -1,
      ::google::protobuf::DescriptorPool::generated_pool(),
      ::google::protobuf::MessageFactory::generated_factory(),
      sizeof(packetcenter2c_player_connect_result));
}

namespace {

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
inline void protobuf_AssignDescriptorsOnce() {
  ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
                 &protobuf_AssignDesc_client2center_5fprotocol_2eproto);
}

void protobuf_RegisterTypes(const ::std::string&) {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
    packetc2center_player_connect_descriptor_, &packetc2center_player_connect::default_instance());
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
    packetcenter2c_player_connect_result_descriptor_, &packetcenter2c_player_connect_result::default_instance());
}

}  // namespace

void protobuf_ShutdownFile_client2center_5fprotocol_2eproto() {
  delete packetc2center_player_connect::default_instance_;
  delete packetc2center_player_connect_reflection_;
  delete packetcenter2c_player_connect_result::default_instance_;
  delete packetcenter2c_player_connect_result_reflection_;
}

void protobuf_AddDesc_client2center_5fprotocol_2eproto() {
  static bool already_here = false;
  if (already_here) return;
  already_here = true;
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  ::client2center_protocols::protobuf_AddDesc_client2center_5fmsg_5ftype_2eproto();
  ::msg_type_def::protobuf_AddDesc_msg_5ftype_5fdef_2eproto();
  ::msg_info_def::protobuf_AddDesc_msg_5finfo_5fdef_2eproto();
  ::common_protocol::protobuf_AddDesc_common_5fprotocol_2eproto();
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
    "\n\034client2center_protocol.proto\022\027client2c"
    "enter_protocols\032\034client2center_msg_type."
    "proto\032\022msg_type_def.proto\032\022msg_info_def."
    "proto\032\025common_protocol.proto\"\262\001\n\035packetc"
    "2center_player_connect\022\\\n\tpacket_id\030\001 \001("
    "\0162*.client2center_protocols.e_server_msg"
    "_type:\035e_mst_c2center_player_connect\0223\n\013"
    "connectInfo\030\002 \001(\0132\036.common_protocol.Play"
    "erConnect\"\305\001\n$packetcenter2c_player_conn"
    "ect_result\022c\n\tpacket_id\030\001 \001(\0162*.client2c"
    "enter_protocols.e_server_msg_type:$e_mst"
    "_center2c_player_connect_result\0228\n\nresul"
    "tInfo\030\002 \001(\0132$.common_protocol.PlayerConn"
    "ectResult", 529);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "client2center_protocol.proto", &protobuf_RegisterTypes);
  packetc2center_player_connect::default_instance_ = new packetc2center_player_connect();
  packetcenter2c_player_connect_result::default_instance_ = new packetcenter2c_player_connect_result();
  packetc2center_player_connect::default_instance_->InitAsDefaultInstance();
  packetcenter2c_player_connect_result::default_instance_->InitAsDefaultInstance();
  ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_client2center_5fprotocol_2eproto);
}

// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_client2center_5fprotocol_2eproto {
  StaticDescriptorInitializer_client2center_5fprotocol_2eproto() {
    protobuf_AddDesc_client2center_5fprotocol_2eproto();
  }
} static_descriptor_initializer_client2center_5fprotocol_2eproto_;

// ===================================================================

#ifndef _MSC_VER
const int packetc2center_player_connect::kPacketIdFieldNumber;
const int packetc2center_player_connect::kConnectInfoFieldNumber;
#endif  // !_MSC_VER

packetc2center_player_connect::packetc2center_player_connect()
  : ::google::protobuf::Message() {
  SharedCtor();
}

void packetc2center_player_connect::InitAsDefaultInstance() {
  connectinfo_ = const_cast< ::common_protocol::PlayerConnect*>(&::common_protocol::PlayerConnect::default_instance());
}

packetc2center_player_connect::packetc2center_player_connect(const packetc2center_player_connect& from)
  : ::google::protobuf::Message() {
  SharedCtor();
  MergeFrom(from);
}

void packetc2center_player_connect::SharedCtor() {
  _cached_size_ = 0;
  packet_id_ = 30001;
  connectinfo_ = NULL;
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
}

packetc2center_player_connect::~packetc2center_player_connect() {
  SharedDtor();
}

void packetc2center_player_connect::SharedDtor() {
  if (this != default_instance_) {
    delete connectinfo_;
  }
}

void packetc2center_player_connect::SetCachedSize(int size) const {
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  _cached_size_ = size;
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* packetc2center_player_connect::descriptor() {
  protobuf_AssignDescriptorsOnce();
  return packetc2center_player_connect_descriptor_;
}

const packetc2center_player_connect& packetc2center_player_connect::default_instance() {
  if (default_instance_ == NULL) protobuf_AddDesc_client2center_5fprotocol_2eproto();
  return *default_instance_;
}

packetc2center_player_connect* packetc2center_player_connect::default_instance_ = NULL;

packetc2center_player_connect* packetc2center_player_connect::New() const {
  return new packetc2center_player_connect;
}

void packetc2center_player_connect::Clear() {
  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    packet_id_ = 30001;
    if (has_connectinfo()) {
      if (connectinfo_ != NULL) connectinfo_->::common_protocol::PlayerConnect::Clear();
    }
  }
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
  mutable_unknown_fields()->Clear();
}

bool packetc2center_player_connect::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 .client2center_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2center_player_connect];
      case 1: {
        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
          int value;
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
                 input, &value)));
          if (::client2center_protocols::e_server_msg_type_IsValid(value)) {
            set_packet_id(static_cast< ::client2center_protocols::e_server_msg_type >(value));
          } else {
            mutable_unknown_fields()->AddVarint(1, value);
          }
        } else {
          goto handle_uninterpreted;
        }
        if (input->ExpectTag(18)) goto parse_connectInfo;
        break;
      }

      // optional .common_protocol.PlayerConnect connectInfo = 2;
      case 2: {
        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
         parse_connectInfo:
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
               input, mutable_connectinfo()));
        } 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 packetc2center_player_connect::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // optional .client2center_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2center_player_connect];
  if (has_packet_id()) {
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
      1, this->packet_id(), output);
  }

  // optional .common_protocol.PlayerConnect connectInfo = 2;
  if (has_connectinfo()) {
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
      2, this->connectinfo(), output);
  }

  if (!unknown_fields().empty()) {
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
        unknown_fields(), output);
  }
}

::google::protobuf::uint8* packetc2center_player_connect::SerializeWithCachedSizesToArray(
    ::google::protobuf::uint8* target) const {
  // optional .client2center_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2center_player_connect];
  if (has_packet_id()) {
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
      1, this->packet_id(), target);
  }

  // optional .common_protocol.PlayerConnect connectInfo = 2;
  if (has_connectinfo()) {
    target = ::google::protobuf::internal::WireFormatLite::
      WriteMessageNoVirtualToArray(
        2, this->connectinfo(), target);
  }

  if (!unknown_fields().empty()) {
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
        unknown_fields(), target);
  }
  return target;
}

int packetc2center_player_connect::ByteSize() const {
  int total_size = 0;

  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    // optional .client2center_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2center_player_connect];
    if (has_packet_id()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
    }

    // optional .common_protocol.PlayerConnect connectInfo = 2;
    if (has_connectinfo()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
          this->connectinfo());
    }

  }
  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 packetc2center_player_connect::MergeFrom(const ::google::protobuf::Message& from) {
  GOOGLE_CHECK_NE(&from, this);
  const packetc2center_player_connect* source =
    ::google::protobuf::internal::dynamic_cast_if_available<const packetc2center_player_connect*>(
      &from);
  if (source == NULL) {
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  } else {
    MergeFrom(*source);
  }
}

void packetc2center_player_connect::MergeFrom(const packetc2center_player_connect& from) {
  GOOGLE_CHECK_NE(&from, this);
  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    if (from.has_packet_id()) {
      set_packet_id(from.packet_id());
    }
    if (from.has_connectinfo()) {
      mutable_connectinfo()->::common_protocol::PlayerConnect::MergeFrom(from.connectinfo());
    }
  }
  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}

void packetc2center_player_connect::CopyFrom(const ::google::protobuf::Message& from) {
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

void packetc2center_player_connect::CopyFrom(const packetc2center_player_connect& from) {
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool packetc2center_player_connect::IsInitialized() const {

  return true;
}

void packetc2center_player_connect::Swap(packetc2center_player_connect* other) {
  if (other != this) {
    std::swap(packet_id_, other->packet_id_);
    std::swap(connectinfo_, other->connectinfo_);
    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 packetc2center_player_connect::GetMetadata() const {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::Metadata metadata;
  metadata.descriptor = packetc2center_player_connect_descriptor_;
  metadata.reflection = packetc2center_player_connect_reflection_;
  return metadata;
}


// ===================================================================

#ifndef _MSC_VER
const int packetcenter2c_player_connect_result::kPacketIdFieldNumber;
const int packetcenter2c_player_connect_result::kResultInfoFieldNumber;
#endif  // !_MSC_VER

packetcenter2c_player_connect_result::packetcenter2c_player_connect_result()
  : ::google::protobuf::Message() {
  SharedCtor();
}

void packetcenter2c_player_connect_result::InitAsDefaultInstance() {
  resultinfo_ = const_cast< ::common_protocol::PlayerConnectResult*>(&::common_protocol::PlayerConnectResult::default_instance());
}

packetcenter2c_player_connect_result::packetcenter2c_player_connect_result(const packetcenter2c_player_connect_result& from)
  : ::google::protobuf::Message() {
  SharedCtor();
  MergeFrom(from);
}

void packetcenter2c_player_connect_result::SharedCtor() {
  _cached_size_ = 0;
  packet_id_ = 35001;
  resultinfo_ = NULL;
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
}

packetcenter2c_player_connect_result::~packetcenter2c_player_connect_result() {
  SharedDtor();
}

void packetcenter2c_player_connect_result::SharedDtor() {
  if (this != default_instance_) {
    delete resultinfo_;
  }
}

void packetcenter2c_player_connect_result::SetCachedSize(int size) const {
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  _cached_size_ = size;
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* packetcenter2c_player_connect_result::descriptor() {
  protobuf_AssignDescriptorsOnce();
  return packetcenter2c_player_connect_result_descriptor_;
}

const packetcenter2c_player_connect_result& packetcenter2c_player_connect_result::default_instance() {
  if (default_instance_ == NULL) protobuf_AddDesc_client2center_5fprotocol_2eproto();
  return *default_instance_;
}

packetcenter2c_player_connect_result* packetcenter2c_player_connect_result::default_instance_ = NULL;

packetcenter2c_player_connect_result* packetcenter2c_player_connect_result::New() const {
  return new packetcenter2c_player_connect_result;
}

void packetcenter2c_player_connect_result::Clear() {
  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    packet_id_ = 35001;
    if (has_resultinfo()) {
      if (resultinfo_ != NULL) resultinfo_->::common_protocol::PlayerConnectResult::Clear();
    }
  }
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
  mutable_unknown_fields()->Clear();
}

bool packetcenter2c_player_connect_result::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 .client2center_protocols.e_server_msg_type packet_id = 1 [default = e_mst_center2c_player_connect_result];
      case 1: {
        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
          int value;
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
                 input, &value)));
          if (::client2center_protocols::e_server_msg_type_IsValid(value)) {
            set_packet_id(static_cast< ::client2center_protocols::e_server_msg_type >(value));
          } else {
            mutable_unknown_fields()->AddVarint(1, value);
          }
        } else {
          goto handle_uninterpreted;
        }
        if (input->ExpectTag(18)) goto parse_resultInfo;
        break;
      }

      // optional .common_protocol.PlayerConnectResult resultInfo = 2;
      case 2: {
        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
         parse_resultInfo:
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
               input, mutable_resultinfo()));
        } 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 packetcenter2c_player_connect_result::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // optional .client2center_protocols.e_server_msg_type packet_id = 1 [default = e_mst_center2c_player_connect_result];
  if (has_packet_id()) {
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
      1, this->packet_id(), output);
  }

  // optional .common_protocol.PlayerConnectResult resultInfo = 2;
  if (has_resultinfo()) {
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
      2, this->resultinfo(), output);
  }

  if (!unknown_fields().empty()) {
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
        unknown_fields(), output);
  }
}

::google::protobuf::uint8* packetcenter2c_player_connect_result::SerializeWithCachedSizesToArray(
    ::google::protobuf::uint8* target) const {
  // optional .client2center_protocols.e_server_msg_type packet_id = 1 [default = e_mst_center2c_player_connect_result];
  if (has_packet_id()) {
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
      1, this->packet_id(), target);
  }

  // optional .common_protocol.PlayerConnectResult resultInfo = 2;
  if (has_resultinfo()) {
    target = ::google::protobuf::internal::WireFormatLite::
      WriteMessageNoVirtualToArray(
        2, this->resultinfo(), target);
  }

  if (!unknown_fields().empty()) {
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
        unknown_fields(), target);
  }
  return target;
}

int packetcenter2c_player_connect_result::ByteSize() const {
  int total_size = 0;

  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    // optional .client2center_protocols.e_server_msg_type packet_id = 1 [default = e_mst_center2c_player_connect_result];
    if (has_packet_id()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
    }

    // optional .common_protocol.PlayerConnectResult resultInfo = 2;
    if (has_resultinfo()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
          this->resultinfo());
    }

  }
  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 packetcenter2c_player_connect_result::MergeFrom(const ::google::protobuf::Message& from) {
  GOOGLE_CHECK_NE(&from, this);
  const packetcenter2c_player_connect_result* source =
    ::google::protobuf::internal::dynamic_cast_if_available<const packetcenter2c_player_connect_result*>(
      &from);
  if (source == NULL) {
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  } else {
    MergeFrom(*source);
  }
}

void packetcenter2c_player_connect_result::MergeFrom(const packetcenter2c_player_connect_result& from) {
  GOOGLE_CHECK_NE(&from, this);
  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    if (from.has_packet_id()) {
      set_packet_id(from.packet_id());
    }
    if (from.has_resultinfo()) {
      mutable_resultinfo()->::common_protocol::PlayerConnectResult::MergeFrom(from.resultinfo());
    }
  }
  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}

void packetcenter2c_player_connect_result::CopyFrom(const ::google::protobuf::Message& from) {
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

void packetcenter2c_player_connect_result::CopyFrom(const packetcenter2c_player_connect_result& from) {
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool packetcenter2c_player_connect_result::IsInitialized() const {

  return true;
}

void packetcenter2c_player_connect_result::Swap(packetcenter2c_player_connect_result* other) {
  if (other != this) {
    std::swap(packet_id_, other->packet_id_);
    std::swap(resultinfo_, other->resultinfo_);
    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 packetcenter2c_player_connect_result::GetMetadata() const {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::Metadata metadata;
  metadata.descriptor = packetcenter2c_player_connect_result_descriptor_;
  metadata.reflection = packetcenter2c_player_connect_result_reflection_;
  return metadata;
}


// @@protoc_insertion_point(namespace_scope)

}  // namespace client2center_protocols

// @@protoc_insertion_point(global_scope)
