public void MergeFrom(InputEvent other) { if (other == null) { return; } if (other.TimeSinceStartOfRecording != 0UL) { TimeSinceStartOfRecording = other.TimeSinceStartOfRecording; } switch (other.EventCase) { case EventOneofCase.KeyboardEvent: if (KeyboardEvent == null) { KeyboardEvent = new global::ProtobufGenerated.InputEvent.Types.KeyboardEventType(); } KeyboardEvent.MergeFrom(other.KeyboardEvent); break; case EventOneofCase.MouseEvent: if (MouseEvent == null) { MouseEvent = new global::ProtobufGenerated.InputEvent.Types.MouseEventType(); } MouseEvent.MergeFrom(other.MouseEvent); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }