{
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);
writer.writeDoubleField("aDouble", (short) 6, oneOfEverything.aDouble);
writer.writeStringField("aString", (short) 7, oneOfEverything.aString);