@Override
    public void write(org.apache.thrift.protocol.TProtocol prot, ArrayHeaders 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.isSetColHeaders()) {
        optionals.set(0);
      }
      if (struct.isSetRowHeaders()) {
        optionals.set(1);
      }
      oprot.writeBitSet(optionals, 2);
      if (struct.isSetColHeaders()) {
        {
          oprot.writeI32(struct.colHeaders.size());
          for (ColHeader _iter8 : struct.colHeaders)
          {
            _iter8.write(oprot);
          }
        }
      }
      if (struct.isSetRowHeaders()) {
        {
          oprot.writeI32(struct.rowHeaders.size());
          for (RowHeader _iter9 : struct.rowHeaders)
          {
            _iter9.write(oprot);
          }
        }
      }
    }
@Override
    public void write(org.apache.thrift.protocol.TProtocol prot, ArrayHeaders struct)