oprot.writeBitSet(optionals, 14);
if (struct.isSetTaskID()) {
struct.taskID.write(oprot);
}
if (struct.isSetProgress()) {
oprot.writeDouble(struct.progress);
}
if (struct.isSetState()) {
oprot.writeI32(struct.state.getValue());
}
if (struct.isSetDiagnosticInfo()) {