oprot.writeBitSet(optionals, 4);
if (struct.isSetLocationId()) {
oprot.writeString(struct.locationId);
}
if (struct.isSetScore()) {
oprot.writeDouble(struct.score);
}
if (struct.isSetFetchResult()) {
struct.fetchResult.write(oprot);
}
if (struct.isSetSortFieldResults()) {