@Override
    public void write(org.apache.thrift.protocol.TProtocol oprot, ArrayHeaders struct) throws org.apache.thrift.TException {
      struct.validate();

      oprot.writeStructBegin(STRUCT_DESC);
      if (struct.colHeaders != null) {
        oprot.writeFieldBegin(COL_HEADERS_FIELD_DESC);
        {
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.colHeaders.size()));
          for (ColHeader _iter6 : struct.colHeaders)
          {
            _iter6.write(oprot);
          }
          oprot.writeListEnd();
        }
        oprot.writeFieldEnd();
      }
      if (struct.rowHeaders != null) {
        oprot.writeFieldBegin(ROW_HEADERS_FIELD_DESC);
        {
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.rowHeaders.size()));
          for (RowHeader _iter7 : struct.rowHeaders)
          {
            _iter7.write(oprot);
          }
          oprot.writeListEnd();
        }
        oprot.writeFieldEnd();
      }
      oprot.writeFieldStop();
      oprot.writeStructEnd();
    }
@Override
    public void write(org.apache.thrift.protocol.TProtocol oprot, ArrayHeaders struct)