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

            hash ^= label_.GetHashCode();
            hash ^= labelId_.GetHashCode();
            hash ^= score_.GetHashCode();
            if (locationData_ != null)
            {
                hash ^= LocationData.GetHashCode();
            }
            if (HasFeatureTag)
            {
                hash ^= FeatureTag.GetHashCode();
            }
            if (HasTrackId)
            {
                hash ^= TrackId.GetHashCode();
            }
            if (HasDetectionId)
            {
                hash ^= DetectionId.GetHashCode();
            }
            hash ^= associatedDetections_.GetHashCode();
            hash ^= displayName_.GetHashCode();
            if (HasTimestampUsec)
            {
                hash ^= TimestampUsec.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }