Beispiel #1
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 10: {
                    Id = input.ReadString();
                    break;
                }

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

                case 26: {
                    if (securitySettings_ == null)
                    {
                        securitySettings_ = new global::V2Ray.Core.Common.Protocol.SecurityConfig();
                    }
                    input.ReadMessage(securitySettings_);
                    break;
                }
                }
            }
        }
 public void MergeFrom(Config other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Key.Length != 0)
     {
         Key = other.Key;
     }
     if (other.security_ != null)
     {
         if (security_ == null)
         {
             security_ = new global::V2Ray.Core.Common.Protocol.SecurityConfig();
         }
         Security.MergeFrom(other.Security);
     }
     if (other.header_ != null)
     {
         if (header_ == null)
         {
             header_ = new global::V2Ray.Core.Common.Serial.TypedMessage();
         }
         Header.MergeFrom(other.Header);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Beispiel #3
0
 public void MergeFrom(Account other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.AlterId != 0)
     {
         AlterId = other.AlterId;
     }
     if (other.securitySettings_ != null)
     {
         if (securitySettings_ == null)
         {
             SecuritySettings = new global::V2Ray.Core.Common.Protocol.SecurityConfig();
         }
         SecuritySettings.MergeFrom(other.SecuritySettings);
     }
     if (other.TestsEnabled.Length != 0)
     {
         TestsEnabled = other.TestsEnabled;
     }
     _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: {
                    Key = input.ReadString();
                    break;
                }

                case 18: {
                    if (security_ == null)
                    {
                        security_ = new global::V2Ray.Core.Common.Protocol.SecurityConfig();
                    }
                    input.ReadMessage(security_);
                    break;
                }

                case 26: {
                    if (header_ == null)
                    {
                        header_ = new global::V2Ray.Core.Common.Serial.TypedMessage();
                    }
                    input.ReadMessage(header_);
                    break;
                }
                }
            }
        }