public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 9: { TimeStamp = input.ReadDouble(); break; } case 18: { if (position_ == null) { Position = new global::Navigation.Vec3(); } input.ReadMessage(Position); break; } case 26: { if (orientation_ == null) { Orientation = new global::Navigation.Quaternion(); } input.ReadMessage(Orientation); break; } case 34: { if (linearVelocity_ == null) { LinearVelocity = new global::Navigation.Vec3(); } input.ReadMessage(LinearVelocity); break; } case 42: { if (angularVelocity_ == null) { AngularVelocity = new global::Navigation.Vec3(); } input.ReadMessage(AngularVelocity); break; } case 50: { VesselName = input.ReadString(); break; } } } }
public void MergeFrom(NavigationRequest other) { if (other == null) { return; } if (other.TimeStamp != 0D) { TimeStamp = other.TimeStamp; } if (other.position_ != null) { if (position_ == null) { Position = new global::Navigation.Vec3(); } Position.MergeFrom(other.Position); } if (other.orientation_ != null) { if (orientation_ == null) { Orientation = new global::Navigation.Quaternion(); } Orientation.MergeFrom(other.Orientation); } if (other.linearVelocity_ != null) { if (linearVelocity_ == null) { LinearVelocity = new global::Navigation.Vec3(); } LinearVelocity.MergeFrom(other.LinearVelocity); } if (other.angularVelocity_ != null) { if (angularVelocity_ == null) { AngularVelocity = new global::Navigation.Vec3(); } AngularVelocity.MergeFrom(other.AngularVelocity); } if (other.VesselName.Length != 0) { VesselName = other.VesselName; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }