oprot.writeBitSet(optionals, 5);
if (struct.isSetQuery()) {
oprot.writeString(struct.query);
}
if (struct.isSetRowQuery()) {
oprot.writeBool(struct.rowQuery);
}
if (struct.isSetScoreType()) {
oprot.writeI32(struct.scoreType.getValue());
}
if (struct.isSetRowFilter()) {