private static class ValidatorResultTupleScheme extends TupleScheme<ValidatorResult> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, ValidatorResult struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
oprot.writeBool(struct.result);
BitSet optionals = new BitSet();
if (struct.isSetErrorDetails()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);