@Override
    public void writeTo(Output output, HasHasBar message) throws IOException
    {
        if (message.name != null)
            output.writeString(1, message.name, false);
        writeHasBar(output, 2, message.hasBar, false);
    }
@param hasBar
           the hasBar to set
protostuff-core/src/test/java/io/protostuff/HasHasBar.java