VertexManagerEventProto.parseFrom(eventBytes);
event = new VertexManagerEvent(vmProto.getTargetVertexName(),
vmProto.getUserPayload() != null ? vmProto.getUserPayload().toByteArray() : null);
break;
case INPUT_READ_ERROR_EVENT:
InputReadErrorEventProto ideProto =
InputReadErrorEventProto.parseFrom(eventBytes);
event = new InputReadErrorEvent(ideProto.getDiagnostics(),
ideProto.getIndex(), ideProto.getVersion());
break;
case TASK_ATTEMPT_FAILED_EVENT:
TaskAttemptFailedEventProto tfProto =
TaskAttemptFailedEventProto.parseFrom(eventBytes);
event = new TaskAttemptFailedEvent(tfProto.getDiagnostics());