public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (position_ == null) { position_ = new global::Point(); } input.ReadMessage(position_); break; } case 18: { if (orientation_ == null) { orientation_ = new global::Quaternion(); } input.ReadMessage(orientation_); break; } } } }
public void MergeFrom(Pose other) { if (other == null) { return; } if (other.position_ != null) { if (position_ == null) { position_ = new global::Point(); } Position.MergeFrom(other.Position); } if (other.orientation_ != null) { if (orientation_ == null) { orientation_ = new global::Quaternion(); } Orientation.MergeFrom(other.Orientation); } }