@Override
    public void writeTo(Output output, Foo message) throws IOException
    {
        if (message.someInt != null)
        {
            for (int value : message.someInt)
                output.writeInt32(1, value, true);
        }
        if (message.someString != null)
        {
            for (String value : message.someString)
                output.writeString(2, value, true);
        }
        if (message.someBar != null)
        {
            for (Bar value : message.someBar)
                output.writeObject(3, value, Bar.getSchema(), true);
        }
        if (message.someEnum != null)
        {
            for (EnumSample value : message.someEnum)
                output.writeEnum(4, value.number, true);
        }
        if (message.someBytes != null)
        {
            for (ByteString value : message.someBytes)
                output.writeBytes(5, value, true);
        }
        if (message.someBoolean != null)
        {
            for (boolean value : message.someBoolean)
                output.writeBool(6, value, true);
        }
        if (message.someFloat != null)
        {
            for (Float value : message.someFloat)
                output.writeFloat(7, value, true);
        }
        if (message.someDouble != null)
        {
            for (Double value : message.someDouble)
                output.writeDouble(8, value, true);
        }
        if (message.someLong != null)
        {
            for (Long value : message.someLong)
                output.writeInt64(9, value, true);
        }
    }
@param someLong
           the someLong to set
protostuff-core/src/test/java/io/protostuff/Foo.java