if (struct.isSetQuery()) {
optionals.set(5);
}
oprot.writeBitSet(optionals, 6);
if (struct.isSetTotalResults()) {
oprot.writeI64(struct.totalResults);
}
if (struct.isSetShardInfo()) {
{
oprot.writeI32(struct.shardInfo.size());
for (Map.Entry<String, Long> _iter67 : struct.shardInfo.entrySet())