@Override
    public void read(org.apache.thrift.protocol.TProtocol iprot, ArrayHeaders struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TField schemeField;
      iprot.readStructBegin();
      while (true)
      {
        schemeField = iprot.readFieldBegin();
        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
          break;
        }
        switch (schemeField.id) {
          case 1: // COL_HEADERS
            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
              {
                org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
                struct.colHeaders = new java.util.ArrayList<ColHeader>(_list0.size);
                @org.apache.thrift.annotation.Nullable ColHeader _elem1;
                for (int _i2 = 0; _i2 < _list0.size; ++_i2)
                {
                  _elem1 = new ColHeader();
                  _elem1.read(iprot);
                  struct.colHeaders.add(_elem1);
                }
                iprot.readListEnd();
              }
              struct.setColHeadersIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 2: // ROW_HEADERS
            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
              {
                org.apache.thrift.protocol.TList _list3 = iprot.readListBegin();
                struct.rowHeaders = new java.util.ArrayList<RowHeader>(_list3.size);
                @org.apache.thrift.annotation.Nullable RowHeader _elem4;
                for (int _i5 = 0; _i5 < _list3.size; ++_i5)
                {
                  _elem4 = new RowHeader();
                  _elem4.read(iprot);
                  struct.rowHeaders.add(_elem4);
                }
                iprot.readListEnd();
              }
              struct.setRowHeadersIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          default:
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
        }
        iprot.readFieldEnd();
      }
      iprot.readStructEnd();

      // check for required fields of primitive type, which can't be checked in the validate method
      struct.validate();
    }
@Override
    public void read(org.apache.thrift.protocol.TProtocol iprot, ArrayHeaders struct)