event = new DataMovementEvent(dmProto.getSourceIndex(),
dmProto.getTargetIndex(),
dmProto.getUserPayload().toByteArray());
break;
case VERTEX_MANAGER_EVENT:
VertexManagerEventProto vmProto =
VertexManagerEventProto.parseFrom(eventBytes);
event = new VertexManagerEvent(vmProto.getTargetVertexName(),
vmProto.getUserPayload().toByteArray());
break;
case INPUT_READ_ERROR_EVENT:
InputReadErrorEventProto ideProto =
InputReadErrorEventProto.parseFrom(eventBytes);
event = new InputReadErrorEvent(ideProto.getDiagnostics(),