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

            if (ContinuousAnalysis != global::Grafeas.V1.DiscoveryOccurrence.Types.ContinuousAnalysis.Unspecified)
            {
                hash ^= ContinuousAnalysis.GetHashCode();
            }
            if (AnalysisStatus != global::Grafeas.V1.DiscoveryOccurrence.Types.AnalysisStatus.Unspecified)
            {
                hash ^= AnalysisStatus.GetHashCode();
            }
            if (analysisStatusError_ != null)
            {
                hash ^= AnalysisStatusError.GetHashCode();
            }
            if (Cpe.Length != 0)
            {
                hash ^= Cpe.GetHashCode();
            }
            if (lastScanTime_ != null)
            {
                hash ^= LastScanTime.GetHashCode();
            }
            if (archiveTime_ != null)
            {
                hash ^= ArchiveTime.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ContinuousAnalysis != 0)
            {
                hash ^= ContinuousAnalysis.GetHashCode();
            }
            if (AnalysisStatus != 0)
            {
                hash ^= AnalysisStatus.GetHashCode();
            }
            if (analysisStatusError_ != null)
            {
                hash ^= AnalysisStatusError.GetHashCode();
            }
            if (Cpe.Length != 0)
            {
                hash ^= Cpe.GetHashCode();
            }
            if (lastScanTime_ != null)
            {
                hash ^= LastScanTime.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }