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); }
public void MergeFrom(DiscoveryOccurrence other) { if (other == null) { return; } if (other.ContinuousAnalysis != global::Grafeas.V1.DiscoveryOccurrence.Types.ContinuousAnalysis.Unspecified) { ContinuousAnalysis = other.ContinuousAnalysis; } if (other.AnalysisStatus != global::Grafeas.V1.DiscoveryOccurrence.Types.AnalysisStatus.Unspecified) { AnalysisStatus = other.AnalysisStatus; } if (other.analysisStatusError_ != null) { if (analysisStatusError_ == null) { AnalysisStatusError = new global::Google.Rpc.Status(); } AnalysisStatusError.MergeFrom(other.AnalysisStatusError); } if (other.Cpe.Length != 0) { Cpe = other.Cpe; } if (other.lastScanTime_ != null) { if (lastScanTime_ == null) { LastScanTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } LastScanTime.MergeFrom(other.LastScanTime); } if (other.archiveTime_ != null) { if (archiveTime_ == null) { ArchiveTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } ArchiveTime.MergeFrom(other.ArchiveTime); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }