oprot.writeBitSet(optionals, 2);
if (struct.isSetKeyValue()) {
struct.keyValue.write(oprot);
}
if (struct.isSetHasNext()) {
oprot.writeBool(struct.hasNext);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, KeyValueAndPeek struct) throws org.apache.thrift.TException {