@Override
    public void deserialize(Buffer buf) {
        jobId = buf.readByte();
        if (jobId < 0)
            throw new RuntimeException("Forbidden value on jobId = " + jobId + ", it doesn't respect the following condition : jobId < 0");
        jobLevel = buf.readByte();
        if (jobLevel < 1 || jobLevel > 100)
            throw new RuntimeException("Forbidden value on jobLevel = " + jobLevel + ", it doesn't respect the following condition : jobLevel < 1 || jobLevel > 100");
        userDefinedParams = buf.readByte();
        if (userDefinedParams < 0)
            throw new RuntimeException("Forbidden value on userDefinedParams = " + userDefinedParams + ", it doesn't respect the following condition : userDefinedParams < 0");
        minSlots = buf.readByte();
        if (minSlots < 0 || minSlots > 9)
            throw new RuntimeException("Forbidden value on minSlots = " + minSlots + ", it doesn't respect the following condition : minSlots < 0 || minSlots > 9");
    }