@Override
      public void write(org.apache.thrift.protocol.TProtocol prot, notifyFinished_args struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
        java.util.BitSet optionals = new java.util.BitSet();
        if (struct.isSetNeedsMoreInput()) {
          optionals.set(0);
        }
        if (struct.isSetExceptionOccurred()) {
          optionals.set(1);
        }
        oprot.writeBitSet(optionals, 2);
        if (struct.isSetNeedsMoreInput()) {
          oprot.writeBool(struct.needsMoreInput);
        }
        if (struct.isSetExceptionOccurred()) {
          oprot.writeBool(struct.exceptionOccurred);
        }
      }
@Override
      public void write(org.apache.thrift.protocol.TProtocol prot, notifyFinished_args struct)