oprot.writeBitSet(optionals, 2);
if (struct.isSetId()) {
oprot.writeString(struct.id);
}
if (struct.isSetX()) {
oprot.writeDouble(struct.x);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, Moved struct) throws org.apache.thrift.TException {