public override int GetHashCode() { int hash = 1; if (consecutive5Xx_ != null) { hash ^= Consecutive5Xx.GetHashCode(); } if (interval_ != null) { hash ^= Interval.GetHashCode(); } if (baseEjectionTime_ != null) { hash ^= BaseEjectionTime.GetHashCode(); } if (maxEjectionPercent_ != null) { hash ^= MaxEjectionPercent.GetHashCode(); } if (enforcingConsecutive5Xx_ != null) { hash ^= EnforcingConsecutive5Xx.GetHashCode(); } if (enforcingSuccessRate_ != null) { hash ^= EnforcingSuccessRate.GetHashCode(); } if (successRateMinimumHosts_ != null) { hash ^= SuccessRateMinimumHosts.GetHashCode(); } if (successRateRequestVolume_ != null) { hash ^= SuccessRateRequestVolume.GetHashCode(); } if (successRateStdevFactor_ != null) { hash ^= SuccessRateStdevFactor.GetHashCode(); } if (consecutiveGatewayFailure_ != null) { hash ^= ConsecutiveGatewayFailure.GetHashCode(); } if (enforcingConsecutiveGatewayFailure_ != null) { hash ^= EnforcingConsecutiveGatewayFailure.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void MergeFrom(OutlierDetection other) { if (other == null) { return; } if (other.consecutive5Xx_ != null) { if (consecutive5Xx_ == null || other.Consecutive5Xx != 0) { Consecutive5Xx = other.Consecutive5Xx; } } if (other.interval_ != null) { if (interval_ == null) { interval_ = new global::Google.Protobuf.WellKnownTypes.Duration(); } Interval.MergeFrom(other.Interval); } if (other.baseEjectionTime_ != null) { if (baseEjectionTime_ == null) { baseEjectionTime_ = new global::Google.Protobuf.WellKnownTypes.Duration(); } BaseEjectionTime.MergeFrom(other.BaseEjectionTime); } if (other.maxEjectionPercent_ != null) { if (maxEjectionPercent_ == null || other.MaxEjectionPercent != 0) { MaxEjectionPercent = other.MaxEjectionPercent; } } if (other.enforcingConsecutive5Xx_ != null) { if (enforcingConsecutive5Xx_ == null || other.EnforcingConsecutive5Xx != 0) { EnforcingConsecutive5Xx = other.EnforcingConsecutive5Xx; } } if (other.enforcingSuccessRate_ != null) { if (enforcingSuccessRate_ == null || other.EnforcingSuccessRate != 0) { EnforcingSuccessRate = other.EnforcingSuccessRate; } } if (other.successRateMinimumHosts_ != null) { if (successRateMinimumHosts_ == null || other.SuccessRateMinimumHosts != 0) { SuccessRateMinimumHosts = other.SuccessRateMinimumHosts; } } if (other.successRateRequestVolume_ != null) { if (successRateRequestVolume_ == null || other.SuccessRateRequestVolume != 0) { SuccessRateRequestVolume = other.SuccessRateRequestVolume; } } if (other.successRateStdevFactor_ != null) { if (successRateStdevFactor_ == null || other.SuccessRateStdevFactor != 0) { SuccessRateStdevFactor = other.SuccessRateStdevFactor; } } if (other.consecutiveGatewayFailure_ != null) { if (consecutiveGatewayFailure_ == null || other.ConsecutiveGatewayFailure != 0) { ConsecutiveGatewayFailure = other.ConsecutiveGatewayFailure; } } if (other.enforcingConsecutiveGatewayFailure_ != null) { if (enforcingConsecutiveGatewayFailure_ == null || other.EnforcingConsecutiveGatewayFailure != 0) { EnforcingConsecutiveGatewayFailure = other.EnforcingConsecutiveGatewayFailure; } } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }