public override int GetHashCode() { int hash = 1; if (DomainStrategy != 0) { hash ^= DomainStrategy.GetHashCode(); } if (Timeout != 0) { hash ^= Timeout.GetHashCode(); } if (destinationOverride_ != null) { hash ^= DestinationOverride.GetHashCode(); } if (UserLevel != 0) { hash ^= UserLevel.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void MergeFrom(Config other) { if (other == null) { return; } if (other.DomainStrategy != 0) { DomainStrategy = other.DomainStrategy; } if (other.Timeout != 0) { Timeout = other.Timeout; } if (other.destinationOverride_ != null) { if (destinationOverride_ == null) { destinationOverride_ = new global::V2Ray.Core.Proxy.Freedom.DestinationOverride(); } DestinationOverride.MergeFrom(other.DestinationOverride); } if (other.UserLevel != 0) { UserLevel = other.UserLevel; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (DomainStrategy != global::V2Ray.Core.Proxy.Freedom.Config.Types.DomainStrategy.AsIs) { hash ^= DomainStrategy.GetHashCode(); } if (Timeout != 0) { hash ^= Timeout.GetHashCode(); } if (destinationOverride_ != null) { hash ^= DestinationOverride.GetHashCode(); } if (UserLevel != 0) { hash ^= UserLevel.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }