public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    Network = (global::V2Ray.Core.Common.Net.Network)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (address_ == null)
                    {
                        Address = new global::V2Ray.Core.Common.Net.IPOrDomain();
                    }
                    input.ReadMessage(Address);
                    break;
                }

                case 24: {
                    Port = input.ReadUInt32();
                    break;
                }
                }
            }
        }
Beispiel #2
0
 public void MergeFrom(ServerConfig other)
 {
     if (other == null)
     {
         return;
     }
     if (other.AuthType != 0)
     {
         AuthType = other.AuthType;
     }
     accounts_.Add(other.accounts_);
     if (other.address_ != null)
     {
         if (address_ == null)
         {
             address_ = new global::V2Ray.Core.Common.Net.IPOrDomain();
         }
         Address.MergeFrom(other.Address);
     }
     if (other.UdpEnabled != false)
     {
         UdpEnabled = other.UdpEnabled;
     }
     if (other.Timeout != 0)
     {
         Timeout = other.Timeout;
     }
     if (other.UserLevel != 0)
     {
         UserLevel = other.UserLevel;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (address_ == null)
                    {
                        Address = new global::V2Ray.Core.Common.Net.IPOrDomain();
                    }
                    input.ReadMessage(Address);
                    break;
                }

                case 16: {
                    Port = input.ReadUInt32();
                    break;
                }

                case 26: {
                    user_.AddEntriesFrom(input, _repeated_user_codec);
                    break;
                }
                }
            }
        }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (address_ == null)
                    {
                        address_ = new global::V2Ray.Core.Common.Net.IPOrDomain();
                    }
                    input.ReadMessage(address_);
                    break;
                }

                case 16: {
                    Port = input.ReadUInt32();
                    break;
                }

                case 26: {
                    if (networkList_ == null)
                    {
                        networkList_ = new global::V2Ray.Core.Common.Net.NetworkList();
                    }
                    input.ReadMessage(networkList_);
                    break;
                }

                case 32: {
                    Timeout = input.ReadUInt32();
                    break;
                }

                case 40: {
                    FollowRedirect = input.ReadBool();
                    break;
                }

                case 48: {
                    UserLevel = input.ReadUInt32();
                    break;
                }

                case 58:
                case 56: {
                    networks_.AddEntriesFrom(input, _repeated_networks_codec);
                    break;
                }
                }
            }
        }
Beispiel #5
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    authType_ = (global::V2Ray.Core.Proxy.Socks.AuthType)input.ReadEnum();
                    break;
                }

                case 18: {
                    accounts_.AddEntriesFrom(input, _map_accounts_codec);
                    break;
                }

                case 26: {
                    if (address_ == null)
                    {
                        address_ = new global::V2Ray.Core.Common.Net.IPOrDomain();
                    }
                    input.ReadMessage(address_);
                    break;
                }

                case 32: {
                    UdpEnabled = input.ReadBool();
                    break;
                }

                case 40: {
                    Timeout = input.ReadUInt32();
                    break;
                }

                case 48: {
                    UserLevel = input.ReadUInt32();
                    break;
                }
                }
            }
        }
 public void MergeFrom(Config other)
 {
     if (other == null)
     {
         return;
     }
     if (other.address_ != null)
     {
         if (address_ == null)
         {
             address_ = new global::V2Ray.Core.Common.Net.IPOrDomain();
         }
         Address.MergeFrom(other.Address);
     }
     if (other.Port != 0)
     {
         Port = other.Port;
     }
     if (other.networkList_ != null)
     {
         if (networkList_ == null)
         {
             networkList_ = new global::V2Ray.Core.Common.Net.NetworkList();
         }
         NetworkList.MergeFrom(other.NetworkList);
     }
     networks_.Add(other.networks_);
     if (other.Timeout != 0)
     {
         Timeout = other.Timeout;
     }
     if (other.FollowRedirect != false)
     {
         FollowRedirect = other.FollowRedirect;
     }
     if (other.UserLevel != 0)
     {
         UserLevel = other.UserLevel;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
 public void MergeFrom(ServerEndpoint other)
 {
     if (other == null)
     {
         return;
     }
     if (other.address_ != null)
     {
         if (address_ == null)
         {
             Address = new global::V2Ray.Core.Common.Net.IPOrDomain();
         }
         Address.MergeFrom(other.Address);
     }
     if (other.Port != 0)
     {
         Port = other.Port;
     }
     user_.Add(other.user_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
 public void MergeFrom(Endpoint other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Network != global::V2Ray.Core.Common.Net.Network.Unknown)
     {
         Network = other.Network;
     }
     if (other.address_ != null)
     {
         if (address_ == null)
         {
             Address = new global::V2Ray.Core.Common.Net.IPOrDomain();
         }
         Address.MergeFrom(other.Address);
     }
     if (other.Port != 0)
     {
         Port = other.Port;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }