@Override
    public void writeTo(Output output, Bar message) throws IOException
    {
        if (message.someInt != 0)
            output.writeInt32(1, message.someInt, false);

        if (message.someString != null)
            output.writeString(2, message.someString, false);

        if (message.someBaz != null)
            output.writeObject(3, message.someBaz, Baz.getSchema(), false);

        if (message.someEnum != null)
            output.writeEnum(4, message.someEnum.number, false);

        if (message.someBytes != null)
            output.writeBytes(5, message.someBytes, false);

        if (message.someBoolean)
            output.writeBool(6, message.someBoolean, false);

        if (message.someFloat != 0f)
            output.writeFloat(7, message.someFloat, false);

        if (message.someDouble != 0d)
            output.writeDouble(8, message.someDouble, false);

        if (message.someLong != 0l)
            output.writeInt64(9, message.someLong, false);
    }
@param someLong
           the someLong to set
protostuff-core/src/test/java/io/protostuff/Bar.java