public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (header_ == null) { header_ = new global::Apollo.Common.Header(); } input.ReadMessage(header_); break; } case 16: { Id = input.ReadUInt32(); break; } case 26: { Label = input.ReadString(); break; } case 33: { Score = input.ReadDouble(); break; } case 42: { if (bbox_ == null) { bbox_ = new global::Apollo.Common.BoundingBox3D(); } input.ReadMessage(bbox_); break; } case 50: { if (velocity_ == null) { velocity_ = new global::Apollo.Common.Twist(); } input.ReadMessage(velocity_); break; } } } }
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); } }