public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { Id = input.ReadInt32(); break; } case 18: { if (relativePosition_ == null) { relativePosition_ = new global::Apollo.Common.Point2D(); } input.ReadMessage(relativePosition_); break; } case 26: { if (relativeVelocity_ == null) { relativeVelocity_ = new global::Apollo.Common.Point2D(); } input.ReadMessage(relativeVelocity_); break; } case 33: { Rcs = input.ReadDouble(); break; } case 40: { movingStatus_ = (global::Apollo.Drivers.RadarObstacle.Types.MovingStatus)input.ReadEnum(); break; } case 49: { Width = input.ReadDouble(); break; } case 57: { Length = input.ReadDouble(); break; } case 65: { Height = input.ReadDouble(); break; } case 73: { Theta = input.ReadDouble(); break; } case 82: { if (absolutePosition_ == null) { absolutePosition_ = new global::Apollo.Common.Point2D(); } input.ReadMessage(absolutePosition_); break; } case 90: { if (absoluteVelocity_ == null) { absoluteVelocity_ = new global::Apollo.Common.Point2D(); } input.ReadMessage(absoluteVelocity_); break; } case 96: { Count = input.ReadInt32(); break; } case 104: { MovingFramesCount = input.ReadInt32(); break; } case 112: { status_ = (global::Apollo.Drivers.RadarObstacle.Types.Status)input.ReadEnum(); break; } } } }
public void MergeFrom(RadarObstacle other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.relativePosition_ != null) { if (relativePosition_ == null) { relativePosition_ = new global::Apollo.Common.Point2D(); } RelativePosition.MergeFrom(other.RelativePosition); } if (other.relativeVelocity_ != null) { if (relativeVelocity_ == null) { relativeVelocity_ = new global::Apollo.Common.Point2D(); } RelativeVelocity.MergeFrom(other.RelativeVelocity); } if (other.Rcs != 0D) { Rcs = other.Rcs; } if (other.MovingStatus != 0) { MovingStatus = other.MovingStatus; } if (other.Width != 0D) { Width = other.Width; } if (other.Length != 0D) { Length = other.Length; } if (other.Height != 0D) { Height = other.Height; } if (other.Theta != 0D) { Theta = other.Theta; } if (other.absolutePosition_ != null) { if (absolutePosition_ == null) { absolutePosition_ = new global::Apollo.Common.Point2D(); } AbsolutePosition.MergeFrom(other.AbsolutePosition); } if (other.absoluteVelocity_ != null) { if (absoluteVelocity_ == null) { absoluteVelocity_ = new global::Apollo.Common.Point2D(); } AbsoluteVelocity.MergeFrom(other.AbsoluteVelocity); } if (other.Count != 0) { Count = other.Count; } if (other.MovingFramesCount != 0) { MovingFramesCount = other.MovingFramesCount; } if (other.Status != 0) { Status = other.Status; } }