예제 #1
0
                public override int GetHashCode()
                {
                    int hash = 1;

                    if (Code != 0)
                    {
                        hash ^= Code.GetHashCode();
                    }
                    if (currentLimit_ != null)
                    {
                        hash ^= CurrentLimit.GetHashCode();
                    }
                    if (LimitRemaining != 0)
                    {
                        hash ^= LimitRemaining.GetHashCode();
                    }
                    if (_unknownFields != null)
                    {
                        hash ^= _unknownFields.GetHashCode();
                    }
                    return(hash);
                }
예제 #2
0
                public override int GetHashCode()
                {
                    int hash = 1;

                    if (Code != global::Envoy.Service.Ratelimit.V2.RateLimitResponse.Types.Code.Unknown)
                    {
                        hash ^= Code.GetHashCode();
                    }
                    if (currentLimit_ != null)
                    {
                        hash ^= CurrentLimit.GetHashCode();
                    }
                    if (LimitRemaining != 0)
                    {
                        hash ^= LimitRemaining.GetHashCode();
                    }
                    if (_unknownFields != null)
                    {
                        hash ^= _unknownFields.GetHashCode();
                    }
                    return(hash);
                }
예제 #3
0
 public void MergeFrom(DescriptorStatus other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Code != global::Envoy.Service.Ratelimit.V2.RateLimitResponse.Types.Code.Unknown)
     {
         Code = other.Code;
     }
     if (other.currentLimit_ != null)
     {
         if (currentLimit_ == null)
         {
             CurrentLimit = new global::Envoy.Service.Ratelimit.V2.RateLimitResponse.Types.RateLimit();
         }
         CurrentLimit.MergeFrom(other.CurrentLimit);
     }
     if (other.LimitRemaining != 0)
     {
         LimitRemaining = other.LimitRemaining;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
예제 #4
0
        public override bool IsHasChanges(BaseTestParametersAndNormatives oldParametersBase)
        {
            var oldParameters = oldParametersBase as TestParameters;

            if (oldParameters == null)
            {
                throw new InvalidCastException("oldParametersBase must be bvtOldParameters");
            }

            if (UseUdsmUrsm != oldParameters.UseUdsmUrsm)
            {
                return(true);
            }
            if (PulseFrequency != oldParameters.PulseFrequency)
            {
                return(true);
            }
            if (MeasurementMode != oldParameters.MeasurementMode)
            {
                return(true);
            }
            if (VoltageLimitD != oldParameters.VoltageLimitD)
            {
                return(true);
            }
            if (VoltageLimitR != oldParameters.VoltageLimitR)
            {
                return(true);
            }
            if (CurrentLimit.CompareTo(oldParameters.CurrentLimit) != 0)
            {
                return(true);
            }
            if (PlateTime != oldParameters.PlateTime)
            {
                return(true);
            }
            if (RampUpVoltage.CompareTo(oldParameters.RampUpVoltage) != 0)
            {
                return(true);
            }
            if (StartVoltage != oldParameters.StartVoltage)
            {
                return(true);
            }
            if (VoltageFrequency != oldParameters.VoltageFrequency)
            {
                return(true);
            }
            if (FrequencyDivisor != oldParameters.FrequencyDivisor)
            {
                return(true);
            }
            if (TestType != oldParameters.TestType)
            {
                return(true);
            }
            if (VDRM != oldParameters.VDRM)
            {
                return(true);
            }
            if (VRRM != oldParameters.VRRM)
            {
                return(true);
            }
            if (IDRM.CompareTo(oldParameters.IDRM) != 0)
            {
                return(true);
            }
            if (IRRM.CompareTo(oldParameters.IRRM) != 0)
            {
                return(true);
            }

            if (UdsmUrsmPulseFrequency != oldParameters.UdsmUrsmPulseFrequency)
            {
                return(true);
            }
            if (UdsmUrsmVoltageLimitD != oldParameters.VoltageLimitD)
            {
                return(true);
            }
            if (UdsmUrsmVoltageLimitR != oldParameters.VoltageLimitR)
            {
                return(true);
            }
            if (UdsmUrsmCurrentLimit.CompareTo(oldParameters.CurrentLimit) != 0)
            {
                return(true);
            }
            if (UdsmUrsmPlateTime != oldParameters.PlateTime)
            {
                return(true);
            }
            if (UdsmUrsmRampUpVoltage.CompareTo(oldParameters.RampUpVoltage) != 0)
            {
                return(true);
            }
            if (UdsmUrsmStartVoltage != oldParameters.StartVoltage)
            {
                return(true);
            }
            if (UdsmUrsmVoltageFrequency != oldParameters.VoltageFrequency)
            {
                return(true);
            }
            if (UdsmUrsmFrequencyDivisor != oldParameters.FrequencyDivisor)
            {
                return(true);
            }
            if (UdsmUrsmTestType != oldParameters.TestType)
            {
                return(true);
            }
            if (VDSM != oldParameters.VDSM)
            {
                return(true);
            }
            if (VRSM != oldParameters.VRSM)
            {
                return(true);
            }
            if (IDSM.CompareTo(oldParameters.IDSM) != 0)
            {
                return(true);
            }
            if (IRSM.CompareTo(oldParameters.IRSM) != 0)
            {
                return(true);
            }

            return(false);
        }