コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (memoryLevel_ != null)
            {
                hash ^= MemoryLevel.GetHashCode();
            }
            if (contentLength_ != null)
            {
                hash ^= ContentLength.GetHashCode();
            }
            if (CompressionLevel != global::Envoy.Config.Filter.Http.Gzip.V3Alpha.Gzip.Types.CompressionLevel.Types.Enum.Default)
            {
                hash ^= CompressionLevel.GetHashCode();
            }
            if (CompressionStrategy != global::Envoy.Config.Filter.Http.Gzip.V3Alpha.Gzip.Types.CompressionStrategy.Default)
            {
                hash ^= CompressionStrategy.GetHashCode();
            }
            hash ^= contentType_.GetHashCode();
            if (DisableOnEtagHeader != false)
            {
                hash ^= DisableOnEtagHeader.GetHashCode();
            }
            if (RemoveAcceptEncodingHeader != false)
            {
                hash ^= RemoveAcceptEncodingHeader.GetHashCode();
            }
            if (windowBits_ != null)
            {
                hash ^= WindowBits.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (memoryLevel_ != null)
            {
                hash ^= MemoryLevel.GetHashCode();
            }
            if (contentLength_ != null)
            {
                hash ^= ContentLength.GetHashCode();
            }
            if (CompressionLevel != 0)
            {
                hash ^= CompressionLevel.GetHashCode();
            }
            if (CompressionStrategy != 0)
            {
                hash ^= CompressionStrategy.GetHashCode();
            }
            hash ^= contentType_.GetHashCode();
            if (DisableOnEtagHeader != false)
            {
                hash ^= DisableOnEtagHeader.GetHashCode();
            }
            if (RemoveAcceptEncodingHeader != false)
            {
                hash ^= RemoveAcceptEncodingHeader.GetHashCode();
            }
            if (windowBits_ != null)
            {
                hash ^= WindowBits.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }