Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (concurrencyControllerConfigCase_ == ConcurrencyControllerConfigOneofCase.GradientControllerConfig)
            {
                hash ^= GradientControllerConfig.GetHashCode();
            }
            hash ^= (int)concurrencyControllerConfigCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
        public void MergeFrom(AdaptiveConcurrency other)
        {
            if (other == null)
            {
                return;
            }
            switch (other.ConcurrencyControllerConfigCase)
            {
            case ConcurrencyControllerConfigOneofCase.GradientControllerConfig:
                if (GradientControllerConfig == null)
                {
                    GradientControllerConfig = new global::Envoy.Config.Filter.Http.AdaptiveConcurrency.V2Alpha.GradientControllerConfig();
                }
                GradientControllerConfig.MergeFrom(other.GradientControllerConfig);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }