public void MergeFrom(ObjectAnnotation other) { if (other == null) { return; } if (other.ClassId != 0) { ClassId = other.ClassId; } if (other.Score != 0F) { Score = other.Score; } if (other.bbox_ != null) { if (bbox_ == null) { bbox_ = new global::BBox(); } Bbox.MergeFrom(other.Bbox); } if (other.segm_ != null) { if (segm_ == null) { segm_ = new global::SegmObject(); } Segm.MergeFrom(other.Segm); } if (other.florplanpoint_ != null) { if (florplanpoint_ == null) { florplanpoint_ = new global::Point(); } Florplanpoint.MergeFrom(other.Florplanpoint); } if (other.Features.Length != 0) { Features = other.Features; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(Detection3D other) { if (other == null) { return; } if (other.header_ != null) { if (header_ == null) { header_ = new global::Apollo.Common.Header(); } Header.MergeFrom(other.Header); } if (other.Id != 0) { Id = other.Id; } if (other.Label.Length != 0) { Label = other.Label; } if (other.Score != 0D) { Score = other.Score; } if (other.bbox_ != null) { if (bbox_ == null) { bbox_ = new global::Apollo.Common.BoundingBox3D(); } Bbox.MergeFrom(other.Bbox); } if (other.velocity_ != null) { if (velocity_ == null) { velocity_ = new global::Apollo.Common.Twist(); } Velocity.MergeFrom(other.Velocity); } }