oprot.writeBitSet(optionals, 20);
if (struct.isSetMy_bool()) {
oprot.writeBool(struct.my_bool);
}
if (struct.isSetMy_byte()) {
oprot.writeByte(struct.my_byte);
}
if (struct.isSetMy_16bit_int()) {
oprot.writeI16(struct.my_16bit_int);
}
if (struct.isSetMy_32bit_int()) {