public void write(OneOfEverything oneOfEverything, TProtocol protocol)
throws Exception
{
TProtocolWriter writer = new TProtocolWriter(protocol);
writer.writeStructBegin("OneOfEverything");
writer.writeBoolField("aBoolean", (short) 1, oneOfEverything.aBoolean);
writer.writeByteField("aByte", (short) 2, oneOfEverything.aByte);
writer.writeI16Field("aShort", (short) 3, oneOfEverything.aShort);
writer.writeI32Field("aInt", (short) 4, oneOfEverything.aInt);
writer.writeI64Field("aLong", (short) 5, oneOfEverything.aLong);