public void MergeFrom(Detection other) { if (other == null) { return; } label_.Add(other.label_); labelId_.Add(other.labelId_); score_.Add(other.score_); if (other.locationData_ != null) { if (locationData_ == null) { LocationData = new global::Mediapipe.LocationData(); } LocationData.MergeFrom(other.LocationData); } if (other.HasFeatureTag) { FeatureTag = other.FeatureTag; } if (other.HasTrackId) { TrackId = other.TrackId; } if (other.HasDetectionId) { DetectionId = other.DetectionId; } associatedDetections_.Add(other.associatedDetections_); displayName_.Add(other.displayName_); if (other.HasTimestampUsec) { TimestampUsec = other.TimestampUsec; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }