optionals.set(0);
}
if (struct.isSetRecord()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetRecordMutationType()) {
oprot.writeI32(struct.recordMutationType.getValue());
}
if (struct.isSetRecord()) {
struct.record.write(oprot);