@Override
    protected int getEnumId(Class<?> clazz)
    {
        final RegisteredEnumIO reio = enumMapping.get(clazz);
        if (reio == null)
            throw new UnknownTypeException("enum: " + clazz);

        return (reio.id << 5) | CID_ENUM;
    }
Register a {@link Delegate} and assign an id.
<p>
Delegate ids start at 1.
protostuff-runtime-registry/src/main/java/io/protostuff/runtime/ExplicitIdStrategy.java