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

            if (samplerCase_ == SamplerOneofCase.ProbabilitySampler)
            {
                hash ^= ProbabilitySampler.GetHashCode();
            }
            if (samplerCase_ == SamplerOneofCase.ConstantSampler)
            {
                hash ^= ConstantSampler.GetHashCode();
            }
            if (samplerCase_ == SamplerOneofCase.RateLimitingSampler)
            {
                hash ^= RateLimitingSampler.GetHashCode();
            }
            if (MaxNumberOfAttributes != 0L)
            {
                hash ^= MaxNumberOfAttributes.GetHashCode();
            }
            if (MaxNumberOfAnnotations != 0L)
            {
                hash ^= MaxNumberOfAnnotations.GetHashCode();
            }
            if (MaxNumberOfMessageEvents != 0L)
            {
                hash ^= MaxNumberOfMessageEvents.GetHashCode();
            }
            if (MaxNumberOfLinks != 0L)
            {
                hash ^= MaxNumberOfLinks.GetHashCode();
            }
            hash ^= (int)samplerCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (samplerCase_ == SamplerOneofCase.ProbabilitySampler)
            {
                hash ^= ProbabilitySampler.GetHashCode();
            }
            if (samplerCase_ == SamplerOneofCase.ConstantSampler)
            {
                hash ^= ConstantSampler.GetHashCode();
            }
            if (samplerCase_ == SamplerOneofCase.RateLimitingSampler)
            {
                hash ^= RateLimitingSampler.GetHashCode();
            }
            hash ^= (int)samplerCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }