コード例 #1
0
 public void MergeFrom(GradientControllerConfig other)
 {
     if (other == null)
     {
         return;
     }
     if (other.sampleAggregatePercentile_ != null)
     {
         if (sampleAggregatePercentile_ == null)
         {
             SampleAggregatePercentile = new global::Envoy.Type.Percent();
         }
         SampleAggregatePercentile.MergeFrom(other.SampleAggregatePercentile);
     }
     if (other.concurrencyLimitParams_ != null)
     {
         if (concurrencyLimitParams_ == null)
         {
             ConcurrencyLimitParams = new global::Envoy.Config.Filter.Http.AdaptiveConcurrency.V2Alpha.GradientControllerConfig.Types.ConcurrencyLimitCalculationParams();
         }
         ConcurrencyLimitParams.MergeFrom(other.ConcurrencyLimitParams);
     }
     if (other.minRttCalcParams_ != null)
     {
         if (minRttCalcParams_ == null)
         {
             MinRttCalcParams = new global::Envoy.Config.Filter.Http.AdaptiveConcurrency.V2Alpha.GradientControllerConfig.Types.MinimumRTTCalculationParams();
         }
         MinRttCalcParams.MergeFrom(other.MinRttCalcParams);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (sampleAggregatePercentile_ != null)
            {
                hash ^= SampleAggregatePercentile.GetHashCode();
            }
            if (concurrencyLimitParams_ != null)
            {
                hash ^= ConcurrencyLimitParams.GetHashCode();
            }
            if (minRttCalcParams_ != null)
            {
                hash ^= MinRttCalcParams.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }