public void MergeFrom(MainPack other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Requestcode != global::SocketGameProtocol.RequestCode.RequestNone)
     {
         Requestcode = other.Requestcode;
     }
     if (other.Actioncode != global::SocketGameProtocol.ActionCode.ActionNone)
     {
         Actioncode = other.Actioncode;
     }
     if (other.Returncode != global::SocketGameProtocol.ReturnCode.ReturnNone)
     {
         Returncode = other.Returncode;
     }
     if (other.loginpack_ != null)
     {
         if (loginpack_ == null)
         {
             Loginpack = new global::SocketGameProtocol.LoginPack();
         }
         Loginpack.MergeFrom(other.Loginpack);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
            input.ReadRawMessage(this);
    #else
            uint tag;
            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 8: {
                    Requestcode = (global::SocketGameProtocol.RequestCode)input.ReadEnum();
                    break;
                }

                case 16: {
                    Actioncode = (global::SocketGameProtocol.ActionCode)input.ReadEnum();
                    break;
                }

                case 24: {
                    Returncode = (global::SocketGameProtocol.ReturnCode)input.ReadEnum();
                    break;
                }

                case 34: {
                    if (loginpack_ == null)
                    {
                        Loginpack = new global::SocketGameProtocol.LoginPack();
                    }
                    input.ReadMessage(Loginpack);
                    break;
                }
                }
            }
    #endif
        }
        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
                    break;

                case 8: {
                    Requestcode = (global::SocketGameProtocol.RequestCode)input.ReadEnum();
                    break;
                }

                case 16: {
                    Actioncode = (global::SocketGameProtocol.ActionCode)input.ReadEnum();
                    break;
                }

                case 24: {
                    Returncode = (global::SocketGameProtocol.ReturnCode)input.ReadEnum();
                    break;
                }

                case 34: {
                    if (loginpack_ == null)
                    {
                        Loginpack = new global::SocketGameProtocol.LoginPack();
                    }
                    input.ReadMessage(Loginpack);
                    break;
                }
                }
            }
        }