public void MergeFrom(MyoEvent other) { if (other == null) { return; } if (other.emg_ != null) { if (emg_ == null) { Emg = new global::Ubii.DataStructure.Vector8(); } Emg.MergeFrom(other.Emg); } if (other.orientation_ != null) { if (orientation_ == null) { Orientation = new global::Ubii.DataStructure.Quaternion(); } Orientation.MergeFrom(other.Orientation); } if (other.gyroscope_ != null) { if (gyroscope_ == null) { Gyroscope = new global::Ubii.DataStructure.Vector3(); } Gyroscope.MergeFrom(other.Gyroscope); } if (other.accelerometer_ != null) { if (accelerometer_ == null) { Accelerometer = new global::Ubii.DataStructure.Vector3(); } Accelerometer.MergeFrom(other.Accelerometer); } if (other.Gesture != global::Ubii.DataStructure.HandGestureType.Rest) { Gesture = other.Gesture; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }