oprot.writeBitSet(optionals, 4);
if (struct.isSetMaxMemory()) {
oprot.writeI64(struct.maxMemory);
}
if (struct.isSetTimeoutMs()) {
oprot.writeI64(struct.timeoutMs);
}
if (struct.isSetThreads()) {
oprot.writeI32(struct.threads);
}
if (struct.isSetAuthorizations()) {