TGetMetaDBMeta.java

/**
 * Autogenerated by Thrift Compiler (0.16.0)
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated
 */
package org.apache.doris.thrift;

@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.16.0)", date = "2026-05-14")
public class TGetMetaDBMeta implements org.apache.thrift.TBase<TGetMetaDBMeta, TGetMetaDBMeta._Fields>, java.io.Serializable, Cloneable, Comparable<TGetMetaDBMeta> {
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetMetaDBMeta");

  private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
  private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2);
  private static final org.apache.thrift.protocol.TField TABLES_FIELD_DESC = new org.apache.thrift.protocol.TField("tables", org.apache.thrift.protocol.TType.LIST, (short)3);
  private static final org.apache.thrift.protocol.TField DROPPED_PARTITIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("dropped_partitions", org.apache.thrift.protocol.TType.LIST, (short)4);
  private static final org.apache.thrift.protocol.TField DROPPED_TABLES_FIELD_DESC = new org.apache.thrift.protocol.TField("dropped_tables", org.apache.thrift.protocol.TType.LIST, (short)5);
  private static final org.apache.thrift.protocol.TField DROPPED_INDEXES_FIELD_DESC = new org.apache.thrift.protocol.TField("dropped_indexes", org.apache.thrift.protocol.TType.LIST, (short)6);
  private static final org.apache.thrift.protocol.TField DROPPED_PARTITION_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("dropped_partition_map", org.apache.thrift.protocol.TType.MAP, (short)7);
  private static final org.apache.thrift.protocol.TField DROPPED_TABLE_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("dropped_table_map", org.apache.thrift.protocol.TType.MAP, (short)8);
  private static final org.apache.thrift.protocol.TField DROPPED_INDEX_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("dropped_index_map", org.apache.thrift.protocol.TType.MAP, (short)9);

  private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TGetMetaDBMetaStandardSchemeFactory();
  private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TGetMetaDBMetaTupleSchemeFactory();

  public long id; // optional
  public @org.apache.thrift.annotation.Nullable java.lang.String name; // optional
  public @org.apache.thrift.annotation.Nullable java.util.List<TGetMetaTableMeta> tables; // optional
  public @org.apache.thrift.annotation.Nullable java.util.List<java.lang.Long> dropped_partitions; // optional
  public @org.apache.thrift.annotation.Nullable java.util.List<java.lang.Long> dropped_tables; // optional
  public @org.apache.thrift.annotation.Nullable java.util.List<java.lang.Long> dropped_indexes; // optional
  public @org.apache.thrift.annotation.Nullable java.util.Map<java.lang.Long,java.lang.Long> dropped_partition_map; // optional
  public @org.apache.thrift.annotation.Nullable java.util.Map<java.lang.Long,java.lang.Long> dropped_table_map; // optional
  public @org.apache.thrift.annotation.Nullable java.util.Map<java.lang.Long,java.lang.Long> dropped_index_map; // optional

  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    ID((short)1, "id"),
    NAME((short)2, "name"),
    TABLES((short)3, "tables"),
    DROPPED_PARTITIONS((short)4, "dropped_partitions"),
    DROPPED_TABLES((short)5, "dropped_tables"),
    DROPPED_INDEXES((short)6, "dropped_indexes"),
    DROPPED_PARTITION_MAP((short)7, "dropped_partition_map"),
    DROPPED_TABLE_MAP((short)8, "dropped_table_map"),
    DROPPED_INDEX_MAP((short)9, "dropped_index_map");

    private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();

    static {
      for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
        byName.put(field.getFieldName(), field);
      }
    }

    /**
     * Find the _Fields constant that matches fieldId, or null if its not found.
     */
    @org.apache.thrift.annotation.Nullable
    public static _Fields findByThriftId(int fieldId) {
      switch(fieldId) {
        case 1: // ID
          return ID;
        case 2: // NAME
          return NAME;
        case 3: // TABLES
          return TABLES;
        case 4: // DROPPED_PARTITIONS
          return DROPPED_PARTITIONS;
        case 5: // DROPPED_TABLES
          return DROPPED_TABLES;
        case 6: // DROPPED_INDEXES
          return DROPPED_INDEXES;
        case 7: // DROPPED_PARTITION_MAP
          return DROPPED_PARTITION_MAP;
        case 8: // DROPPED_TABLE_MAP
          return DROPPED_TABLE_MAP;
        case 9: // DROPPED_INDEX_MAP
          return DROPPED_INDEX_MAP;
        default:
          return null;
      }
    }

    /**
     * Find the _Fields constant that matches fieldId, throwing an exception
     * if it is not found.
     */
    public static _Fields findByThriftIdOrThrow(int fieldId) {
      _Fields fields = findByThriftId(fieldId);
      if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
      return fields;
    }

    /**
     * Find the _Fields constant that matches name, or null if its not found.
     */
    @org.apache.thrift.annotation.Nullable
    public static _Fields findByName(java.lang.String name) {
      return byName.get(name);
    }

    private final short _thriftId;
    private final java.lang.String _fieldName;

    _Fields(short thriftId, java.lang.String fieldName) {
      _thriftId = thriftId;
      _fieldName = fieldName;
    }

    public short getThriftFieldId() {
      return _thriftId;
    }

    public java.lang.String getFieldName() {
      return _fieldName;
    }
  }

  // isset id assignments
  private static final int __ID_ISSET_ID = 0;
  private byte __isset_bitfield = 0;
  private static final _Fields optionals[] = {_Fields.ID,_Fields.NAME,_Fields.TABLES,_Fields.DROPPED_PARTITIONS,_Fields.DROPPED_TABLES,_Fields.DROPPED_INDEXES,_Fields.DROPPED_PARTITION_MAP,_Fields.DROPPED_TABLE_MAP,_Fields.DROPPED_INDEX_MAP};
  public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
  static {
    java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.TABLES, new org.apache.thrift.meta_data.FieldMetaData("tables", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TGetMetaTableMeta.class))));
    tmpMap.put(_Fields.DROPPED_PARTITIONS, new org.apache.thrift.meta_data.FieldMetaData("dropped_partitions", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
    tmpMap.put(_Fields.DROPPED_TABLES, new org.apache.thrift.meta_data.FieldMetaData("dropped_tables", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
    tmpMap.put(_Fields.DROPPED_INDEXES, new org.apache.thrift.meta_data.FieldMetaData("dropped_indexes", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
    tmpMap.put(_Fields.DROPPED_PARTITION_MAP, new org.apache.thrift.meta_data.FieldMetaData("dropped_partition_map", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
    tmpMap.put(_Fields.DROPPED_TABLE_MAP, new org.apache.thrift.meta_data.FieldMetaData("dropped_table_map", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
    tmpMap.put(_Fields.DROPPED_INDEX_MAP, new org.apache.thrift.meta_data.FieldMetaData("dropped_index_map", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
    metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TGetMetaDBMeta.class, metaDataMap);
  }

  public TGetMetaDBMeta() {
  }

  /**
   * Performs a deep copy on <i>other</i>.
   */
  public TGetMetaDBMeta(TGetMetaDBMeta other) {
    __isset_bitfield = other.__isset_bitfield;
    this.id = other.id;
    if (other.isSetName()) {
      this.name = other.name;
    }
    if (other.isSetTables()) {
      java.util.List<TGetMetaTableMeta> __this__tables = new java.util.ArrayList<TGetMetaTableMeta>(other.tables.size());
      for (TGetMetaTableMeta other_element : other.tables) {
        __this__tables.add(new TGetMetaTableMeta(other_element));
      }
      this.tables = __this__tables;
    }
    if (other.isSetDroppedPartitions()) {
      java.util.List<java.lang.Long> __this__dropped_partitions = new java.util.ArrayList<java.lang.Long>(other.dropped_partitions);
      this.dropped_partitions = __this__dropped_partitions;
    }
    if (other.isSetDroppedTables()) {
      java.util.List<java.lang.Long> __this__dropped_tables = new java.util.ArrayList<java.lang.Long>(other.dropped_tables);
      this.dropped_tables = __this__dropped_tables;
    }
    if (other.isSetDroppedIndexes()) {
      java.util.List<java.lang.Long> __this__dropped_indexes = new java.util.ArrayList<java.lang.Long>(other.dropped_indexes);
      this.dropped_indexes = __this__dropped_indexes;
    }
    if (other.isSetDroppedPartitionMap()) {
      java.util.Map<java.lang.Long,java.lang.Long> __this__dropped_partition_map = new java.util.HashMap<java.lang.Long,java.lang.Long>(other.dropped_partition_map);
      this.dropped_partition_map = __this__dropped_partition_map;
    }
    if (other.isSetDroppedTableMap()) {
      java.util.Map<java.lang.Long,java.lang.Long> __this__dropped_table_map = new java.util.HashMap<java.lang.Long,java.lang.Long>(other.dropped_table_map);
      this.dropped_table_map = __this__dropped_table_map;
    }
    if (other.isSetDroppedIndexMap()) {
      java.util.Map<java.lang.Long,java.lang.Long> __this__dropped_index_map = new java.util.HashMap<java.lang.Long,java.lang.Long>(other.dropped_index_map);
      this.dropped_index_map = __this__dropped_index_map;
    }
  }

  public TGetMetaDBMeta deepCopy() {
    return new TGetMetaDBMeta(this);
  }

  @Override
  public void clear() {
    setIdIsSet(false);
    this.id = 0;
    this.name = null;
    this.tables = null;
    this.dropped_partitions = null;
    this.dropped_tables = null;
    this.dropped_indexes = null;
    this.dropped_partition_map = null;
    this.dropped_table_map = null;
    this.dropped_index_map = null;
  }

  public long getId() {
    return this.id;
  }

  public TGetMetaDBMeta setId(long id) {
    this.id = id;
    setIdIsSet(true);
    return this;
  }

  public void unsetId() {
    __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __ID_ISSET_ID);
  }

  /** Returns true if field id is set (has been assigned a value) and false otherwise */
  public boolean isSetId() {
    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID);
  }

  public void setIdIsSet(boolean value) {
    __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ID_ISSET_ID, value);
  }

  @org.apache.thrift.annotation.Nullable
  public java.lang.String getName() {
    return this.name;
  }

  public TGetMetaDBMeta setName(@org.apache.thrift.annotation.Nullable java.lang.String name) {
    this.name = name;
    return this;
  }

  public void unsetName() {
    this.name = null;
  }

  /** Returns true if field name is set (has been assigned a value) and false otherwise */
  public boolean isSetName() {
    return this.name != null;
  }

  public void setNameIsSet(boolean value) {
    if (!value) {
      this.name = null;
    }
  }

  public int getTablesSize() {
    return (this.tables == null) ? 0 : this.tables.size();
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Iterator<TGetMetaTableMeta> getTablesIterator() {
    return (this.tables == null) ? null : this.tables.iterator();
  }

  public void addToTables(TGetMetaTableMeta elem) {
    if (this.tables == null) {
      this.tables = new java.util.ArrayList<TGetMetaTableMeta>();
    }
    this.tables.add(elem);
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.List<TGetMetaTableMeta> getTables() {
    return this.tables;
  }

  public TGetMetaDBMeta setTables(@org.apache.thrift.annotation.Nullable java.util.List<TGetMetaTableMeta> tables) {
    this.tables = tables;
    return this;
  }

  public void unsetTables() {
    this.tables = null;
  }

  /** Returns true if field tables is set (has been assigned a value) and false otherwise */
  public boolean isSetTables() {
    return this.tables != null;
  }

  public void setTablesIsSet(boolean value) {
    if (!value) {
      this.tables = null;
    }
  }

  public int getDroppedPartitionsSize() {
    return (this.dropped_partitions == null) ? 0 : this.dropped_partitions.size();
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Iterator<java.lang.Long> getDroppedPartitionsIterator() {
    return (this.dropped_partitions == null) ? null : this.dropped_partitions.iterator();
  }

  public void addToDroppedPartitions(long elem) {
    if (this.dropped_partitions == null) {
      this.dropped_partitions = new java.util.ArrayList<java.lang.Long>();
    }
    this.dropped_partitions.add(elem);
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.List<java.lang.Long> getDroppedPartitions() {
    return this.dropped_partitions;
  }

  public TGetMetaDBMeta setDroppedPartitions(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.Long> dropped_partitions) {
    this.dropped_partitions = dropped_partitions;
    return this;
  }

  public void unsetDroppedPartitions() {
    this.dropped_partitions = null;
  }

  /** Returns true if field dropped_partitions is set (has been assigned a value) and false otherwise */
  public boolean isSetDroppedPartitions() {
    return this.dropped_partitions != null;
  }

  public void setDroppedPartitionsIsSet(boolean value) {
    if (!value) {
      this.dropped_partitions = null;
    }
  }

  public int getDroppedTablesSize() {
    return (this.dropped_tables == null) ? 0 : this.dropped_tables.size();
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Iterator<java.lang.Long> getDroppedTablesIterator() {
    return (this.dropped_tables == null) ? null : this.dropped_tables.iterator();
  }

  public void addToDroppedTables(long elem) {
    if (this.dropped_tables == null) {
      this.dropped_tables = new java.util.ArrayList<java.lang.Long>();
    }
    this.dropped_tables.add(elem);
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.List<java.lang.Long> getDroppedTables() {
    return this.dropped_tables;
  }

  public TGetMetaDBMeta setDroppedTables(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.Long> dropped_tables) {
    this.dropped_tables = dropped_tables;
    return this;
  }

  public void unsetDroppedTables() {
    this.dropped_tables = null;
  }

  /** Returns true if field dropped_tables is set (has been assigned a value) and false otherwise */
  public boolean isSetDroppedTables() {
    return this.dropped_tables != null;
  }

  public void setDroppedTablesIsSet(boolean value) {
    if (!value) {
      this.dropped_tables = null;
    }
  }

  public int getDroppedIndexesSize() {
    return (this.dropped_indexes == null) ? 0 : this.dropped_indexes.size();
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Iterator<java.lang.Long> getDroppedIndexesIterator() {
    return (this.dropped_indexes == null) ? null : this.dropped_indexes.iterator();
  }

  public void addToDroppedIndexes(long elem) {
    if (this.dropped_indexes == null) {
      this.dropped_indexes = new java.util.ArrayList<java.lang.Long>();
    }
    this.dropped_indexes.add(elem);
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.List<java.lang.Long> getDroppedIndexes() {
    return this.dropped_indexes;
  }

  public TGetMetaDBMeta setDroppedIndexes(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.Long> dropped_indexes) {
    this.dropped_indexes = dropped_indexes;
    return this;
  }

  public void unsetDroppedIndexes() {
    this.dropped_indexes = null;
  }

  /** Returns true if field dropped_indexes is set (has been assigned a value) and false otherwise */
  public boolean isSetDroppedIndexes() {
    return this.dropped_indexes != null;
  }

  public void setDroppedIndexesIsSet(boolean value) {
    if (!value) {
      this.dropped_indexes = null;
    }
  }

  public int getDroppedPartitionMapSize() {
    return (this.dropped_partition_map == null) ? 0 : this.dropped_partition_map.size();
  }

  public void putToDroppedPartitionMap(long key, long val) {
    if (this.dropped_partition_map == null) {
      this.dropped_partition_map = new java.util.HashMap<java.lang.Long,java.lang.Long>();
    }
    this.dropped_partition_map.put(key, val);
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Map<java.lang.Long,java.lang.Long> getDroppedPartitionMap() {
    return this.dropped_partition_map;
  }

  public TGetMetaDBMeta setDroppedPartitionMap(@org.apache.thrift.annotation.Nullable java.util.Map<java.lang.Long,java.lang.Long> dropped_partition_map) {
    this.dropped_partition_map = dropped_partition_map;
    return this;
  }

  public void unsetDroppedPartitionMap() {
    this.dropped_partition_map = null;
  }

  /** Returns true if field dropped_partition_map is set (has been assigned a value) and false otherwise */
  public boolean isSetDroppedPartitionMap() {
    return this.dropped_partition_map != null;
  }

  public void setDroppedPartitionMapIsSet(boolean value) {
    if (!value) {
      this.dropped_partition_map = null;
    }
  }

  public int getDroppedTableMapSize() {
    return (this.dropped_table_map == null) ? 0 : this.dropped_table_map.size();
  }

  public void putToDroppedTableMap(long key, long val) {
    if (this.dropped_table_map == null) {
      this.dropped_table_map = new java.util.HashMap<java.lang.Long,java.lang.Long>();
    }
    this.dropped_table_map.put(key, val);
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Map<java.lang.Long,java.lang.Long> getDroppedTableMap() {
    return this.dropped_table_map;
  }

  public TGetMetaDBMeta setDroppedTableMap(@org.apache.thrift.annotation.Nullable java.util.Map<java.lang.Long,java.lang.Long> dropped_table_map) {
    this.dropped_table_map = dropped_table_map;
    return this;
  }

  public void unsetDroppedTableMap() {
    this.dropped_table_map = null;
  }

  /** Returns true if field dropped_table_map is set (has been assigned a value) and false otherwise */
  public boolean isSetDroppedTableMap() {
    return this.dropped_table_map != null;
  }

  public void setDroppedTableMapIsSet(boolean value) {
    if (!value) {
      this.dropped_table_map = null;
    }
  }

  public int getDroppedIndexMapSize() {
    return (this.dropped_index_map == null) ? 0 : this.dropped_index_map.size();
  }

  public void putToDroppedIndexMap(long key, long val) {
    if (this.dropped_index_map == null) {
      this.dropped_index_map = new java.util.HashMap<java.lang.Long,java.lang.Long>();
    }
    this.dropped_index_map.put(key, val);
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Map<java.lang.Long,java.lang.Long> getDroppedIndexMap() {
    return this.dropped_index_map;
  }

  public TGetMetaDBMeta setDroppedIndexMap(@org.apache.thrift.annotation.Nullable java.util.Map<java.lang.Long,java.lang.Long> dropped_index_map) {
    this.dropped_index_map = dropped_index_map;
    return this;
  }

  public void unsetDroppedIndexMap() {
    this.dropped_index_map = null;
  }

  /** Returns true if field dropped_index_map is set (has been assigned a value) and false otherwise */
  public boolean isSetDroppedIndexMap() {
    return this.dropped_index_map != null;
  }

  public void setDroppedIndexMapIsSet(boolean value) {
    if (!value) {
      this.dropped_index_map = null;
    }
  }

  public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
    switch (field) {
    case ID:
      if (value == null) {
        unsetId();
      } else {
        setId((java.lang.Long)value);
      }
      break;

    case NAME:
      if (value == null) {
        unsetName();
      } else {
        setName((java.lang.String)value);
      }
      break;

    case TABLES:
      if (value == null) {
        unsetTables();
      } else {
        setTables((java.util.List<TGetMetaTableMeta>)value);
      }
      break;

    case DROPPED_PARTITIONS:
      if (value == null) {
        unsetDroppedPartitions();
      } else {
        setDroppedPartitions((java.util.List<java.lang.Long>)value);
      }
      break;

    case DROPPED_TABLES:
      if (value == null) {
        unsetDroppedTables();
      } else {
        setDroppedTables((java.util.List<java.lang.Long>)value);
      }
      break;

    case DROPPED_INDEXES:
      if (value == null) {
        unsetDroppedIndexes();
      } else {
        setDroppedIndexes((java.util.List<java.lang.Long>)value);
      }
      break;

    case DROPPED_PARTITION_MAP:
      if (value == null) {
        unsetDroppedPartitionMap();
      } else {
        setDroppedPartitionMap((java.util.Map<java.lang.Long,java.lang.Long>)value);
      }
      break;

    case DROPPED_TABLE_MAP:
      if (value == null) {
        unsetDroppedTableMap();
      } else {
        setDroppedTableMap((java.util.Map<java.lang.Long,java.lang.Long>)value);
      }
      break;

    case DROPPED_INDEX_MAP:
      if (value == null) {
        unsetDroppedIndexMap();
      } else {
        setDroppedIndexMap((java.util.Map<java.lang.Long,java.lang.Long>)value);
      }
      break;

    }
  }

  @org.apache.thrift.annotation.Nullable
  public java.lang.Object getFieldValue(_Fields field) {
    switch (field) {
    case ID:
      return getId();

    case NAME:
      return getName();

    case TABLES:
      return getTables();

    case DROPPED_PARTITIONS:
      return getDroppedPartitions();

    case DROPPED_TABLES:
      return getDroppedTables();

    case DROPPED_INDEXES:
      return getDroppedIndexes();

    case DROPPED_PARTITION_MAP:
      return getDroppedPartitionMap();

    case DROPPED_TABLE_MAP:
      return getDroppedTableMap();

    case DROPPED_INDEX_MAP:
      return getDroppedIndexMap();

    }
    throw new java.lang.IllegalStateException();
  }

  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
  public boolean isSet(_Fields field) {
    if (field == null) {
      throw new java.lang.IllegalArgumentException();
    }

    switch (field) {
    case ID:
      return isSetId();
    case NAME:
      return isSetName();
    case TABLES:
      return isSetTables();
    case DROPPED_PARTITIONS:
      return isSetDroppedPartitions();
    case DROPPED_TABLES:
      return isSetDroppedTables();
    case DROPPED_INDEXES:
      return isSetDroppedIndexes();
    case DROPPED_PARTITION_MAP:
      return isSetDroppedPartitionMap();
    case DROPPED_TABLE_MAP:
      return isSetDroppedTableMap();
    case DROPPED_INDEX_MAP:
      return isSetDroppedIndexMap();
    }
    throw new java.lang.IllegalStateException();
  }

  @Override
  public boolean equals(java.lang.Object that) {
    if (that instanceof TGetMetaDBMeta)
      return this.equals((TGetMetaDBMeta)that);
    return false;
  }

  public boolean equals(TGetMetaDBMeta that) {
    if (that == null)
      return false;
    if (this == that)
      return true;

    boolean this_present_id = true && this.isSetId();
    boolean that_present_id = true && that.isSetId();
    if (this_present_id || that_present_id) {
      if (!(this_present_id && that_present_id))
        return false;
      if (this.id != that.id)
        return false;
    }

    boolean this_present_name = true && this.isSetName();
    boolean that_present_name = true && that.isSetName();
    if (this_present_name || that_present_name) {
      if (!(this_present_name && that_present_name))
        return false;
      if (!this.name.equals(that.name))
        return false;
    }

    boolean this_present_tables = true && this.isSetTables();
    boolean that_present_tables = true && that.isSetTables();
    if (this_present_tables || that_present_tables) {
      if (!(this_present_tables && that_present_tables))
        return false;
      if (!this.tables.equals(that.tables))
        return false;
    }

    boolean this_present_dropped_partitions = true && this.isSetDroppedPartitions();
    boolean that_present_dropped_partitions = true && that.isSetDroppedPartitions();
    if (this_present_dropped_partitions || that_present_dropped_partitions) {
      if (!(this_present_dropped_partitions && that_present_dropped_partitions))
        return false;
      if (!this.dropped_partitions.equals(that.dropped_partitions))
        return false;
    }

    boolean this_present_dropped_tables = true && this.isSetDroppedTables();
    boolean that_present_dropped_tables = true && that.isSetDroppedTables();
    if (this_present_dropped_tables || that_present_dropped_tables) {
      if (!(this_present_dropped_tables && that_present_dropped_tables))
        return false;
      if (!this.dropped_tables.equals(that.dropped_tables))
        return false;
    }

    boolean this_present_dropped_indexes = true && this.isSetDroppedIndexes();
    boolean that_present_dropped_indexes = true && that.isSetDroppedIndexes();
    if (this_present_dropped_indexes || that_present_dropped_indexes) {
      if (!(this_present_dropped_indexes && that_present_dropped_indexes))
        return false;
      if (!this.dropped_indexes.equals(that.dropped_indexes))
        return false;
    }

    boolean this_present_dropped_partition_map = true && this.isSetDroppedPartitionMap();
    boolean that_present_dropped_partition_map = true && that.isSetDroppedPartitionMap();
    if (this_present_dropped_partition_map || that_present_dropped_partition_map) {
      if (!(this_present_dropped_partition_map && that_present_dropped_partition_map))
        return false;
      if (!this.dropped_partition_map.equals(that.dropped_partition_map))
        return false;
    }

    boolean this_present_dropped_table_map = true && this.isSetDroppedTableMap();
    boolean that_present_dropped_table_map = true && that.isSetDroppedTableMap();
    if (this_present_dropped_table_map || that_present_dropped_table_map) {
      if (!(this_present_dropped_table_map && that_present_dropped_table_map))
        return false;
      if (!this.dropped_table_map.equals(that.dropped_table_map))
        return false;
    }

    boolean this_present_dropped_index_map = true && this.isSetDroppedIndexMap();
    boolean that_present_dropped_index_map = true && that.isSetDroppedIndexMap();
    if (this_present_dropped_index_map || that_present_dropped_index_map) {
      if (!(this_present_dropped_index_map && that_present_dropped_index_map))
        return false;
      if (!this.dropped_index_map.equals(that.dropped_index_map))
        return false;
    }

    return true;
  }

  @Override
  public int hashCode() {
    int hashCode = 1;

    hashCode = hashCode * 8191 + ((isSetId()) ? 131071 : 524287);
    if (isSetId())
      hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(id);

    hashCode = hashCode * 8191 + ((isSetName()) ? 131071 : 524287);
    if (isSetName())
      hashCode = hashCode * 8191 + name.hashCode();

    hashCode = hashCode * 8191 + ((isSetTables()) ? 131071 : 524287);
    if (isSetTables())
      hashCode = hashCode * 8191 + tables.hashCode();

    hashCode = hashCode * 8191 + ((isSetDroppedPartitions()) ? 131071 : 524287);
    if (isSetDroppedPartitions())
      hashCode = hashCode * 8191 + dropped_partitions.hashCode();

    hashCode = hashCode * 8191 + ((isSetDroppedTables()) ? 131071 : 524287);
    if (isSetDroppedTables())
      hashCode = hashCode * 8191 + dropped_tables.hashCode();

    hashCode = hashCode * 8191 + ((isSetDroppedIndexes()) ? 131071 : 524287);
    if (isSetDroppedIndexes())
      hashCode = hashCode * 8191 + dropped_indexes.hashCode();

    hashCode = hashCode * 8191 + ((isSetDroppedPartitionMap()) ? 131071 : 524287);
    if (isSetDroppedPartitionMap())
      hashCode = hashCode * 8191 + dropped_partition_map.hashCode();

    hashCode = hashCode * 8191 + ((isSetDroppedTableMap()) ? 131071 : 524287);
    if (isSetDroppedTableMap())
      hashCode = hashCode * 8191 + dropped_table_map.hashCode();

    hashCode = hashCode * 8191 + ((isSetDroppedIndexMap()) ? 131071 : 524287);
    if (isSetDroppedIndexMap())
      hashCode = hashCode * 8191 + dropped_index_map.hashCode();

    return hashCode;
  }

  @Override
  public int compareTo(TGetMetaDBMeta other) {
    if (!getClass().equals(other.getClass())) {
      return getClass().getName().compareTo(other.getClass().getName());
    }

    int lastComparison = 0;

    lastComparison = java.lang.Boolean.compare(isSetId(), other.isSetId());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetId()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetName(), other.isSetName());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetName()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetTables(), other.isSetTables());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetTables()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tables, other.tables);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetDroppedPartitions(), other.isSetDroppedPartitions());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetDroppedPartitions()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dropped_partitions, other.dropped_partitions);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetDroppedTables(), other.isSetDroppedTables());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetDroppedTables()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dropped_tables, other.dropped_tables);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetDroppedIndexes(), other.isSetDroppedIndexes());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetDroppedIndexes()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dropped_indexes, other.dropped_indexes);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetDroppedPartitionMap(), other.isSetDroppedPartitionMap());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetDroppedPartitionMap()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dropped_partition_map, other.dropped_partition_map);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetDroppedTableMap(), other.isSetDroppedTableMap());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetDroppedTableMap()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dropped_table_map, other.dropped_table_map);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetDroppedIndexMap(), other.isSetDroppedIndexMap());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetDroppedIndexMap()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dropped_index_map, other.dropped_index_map);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    return 0;
  }

  @org.apache.thrift.annotation.Nullable
  public _Fields fieldForId(int fieldId) {
    return _Fields.findByThriftId(fieldId);
  }

  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    scheme(iprot).read(iprot, this);
  }

  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    scheme(oprot).write(oprot, this);
  }

  @Override
  public java.lang.String toString() {
    java.lang.StringBuilder sb = new java.lang.StringBuilder("TGetMetaDBMeta(");
    boolean first = true;

    if (isSetId()) {
      sb.append("id:");
      sb.append(this.id);
      first = false;
    }
    if (isSetName()) {
      if (!first) sb.append(", ");
      sb.append("name:");
      if (this.name == null) {
        sb.append("null");
      } else {
        sb.append(this.name);
      }
      first = false;
    }
    if (isSetTables()) {
      if (!first) sb.append(", ");
      sb.append("tables:");
      if (this.tables == null) {
        sb.append("null");
      } else {
        sb.append(this.tables);
      }
      first = false;
    }
    if (isSetDroppedPartitions()) {
      if (!first) sb.append(", ");
      sb.append("dropped_partitions:");
      if (this.dropped_partitions == null) {
        sb.append("null");
      } else {
        sb.append(this.dropped_partitions);
      }
      first = false;
    }
    if (isSetDroppedTables()) {
      if (!first) sb.append(", ");
      sb.append("dropped_tables:");
      if (this.dropped_tables == null) {
        sb.append("null");
      } else {
        sb.append(this.dropped_tables);
      }
      first = false;
    }
    if (isSetDroppedIndexes()) {
      if (!first) sb.append(", ");
      sb.append("dropped_indexes:");
      if (this.dropped_indexes == null) {
        sb.append("null");
      } else {
        sb.append(this.dropped_indexes);
      }
      first = false;
    }
    if (isSetDroppedPartitionMap()) {
      if (!first) sb.append(", ");
      sb.append("dropped_partition_map:");
      if (this.dropped_partition_map == null) {
        sb.append("null");
      } else {
        sb.append(this.dropped_partition_map);
      }
      first = false;
    }
    if (isSetDroppedTableMap()) {
      if (!first) sb.append(", ");
      sb.append("dropped_table_map:");
      if (this.dropped_table_map == null) {
        sb.append("null");
      } else {
        sb.append(this.dropped_table_map);
      }
      first = false;
    }
    if (isSetDroppedIndexMap()) {
      if (!first) sb.append(", ");
      sb.append("dropped_index_map:");
      if (this.dropped_index_map == null) {
        sb.append("null");
      } else {
        sb.append(this.dropped_index_map);
      }
      first = false;
    }
    sb.append(")");
    return sb.toString();
  }

  public void validate() throws org.apache.thrift.TException {
    // check for required fields
    // check for sub-struct validity
  }

  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    try {
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    } catch (org.apache.thrift.TException te) {
      throw new java.io.IOException(te);
    }
  }

  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
    try {
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
      __isset_bitfield = 0;
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    } catch (org.apache.thrift.TException te) {
      throw new java.io.IOException(te);
    }
  }

  private static class TGetMetaDBMetaStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
    public TGetMetaDBMetaStandardScheme getScheme() {
      return new TGetMetaDBMetaStandardScheme();
    }
  }

  private static class TGetMetaDBMetaStandardScheme extends org.apache.thrift.scheme.StandardScheme<TGetMetaDBMeta> {

    public void read(org.apache.thrift.protocol.TProtocol iprot, TGetMetaDBMeta 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: // ID
            if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
              struct.id = iprot.readI64();
              struct.setIdIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 2: // NAME
            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
              struct.name = iprot.readString();
              struct.setNameIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 3: // TABLES
            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
              {
                org.apache.thrift.protocol.TList _list794 = iprot.readListBegin();
                struct.tables = new java.util.ArrayList<TGetMetaTableMeta>(_list794.size);
                @org.apache.thrift.annotation.Nullable TGetMetaTableMeta _elem795;
                for (int _i796 = 0; _i796 < _list794.size; ++_i796)
                {
                  _elem795 = new TGetMetaTableMeta();
                  _elem795.read(iprot);
                  struct.tables.add(_elem795);
                }
                iprot.readListEnd();
              }
              struct.setTablesIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 4: // DROPPED_PARTITIONS
            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
              {
                org.apache.thrift.protocol.TList _list797 = iprot.readListBegin();
                struct.dropped_partitions = new java.util.ArrayList<java.lang.Long>(_list797.size);
                long _elem798;
                for (int _i799 = 0; _i799 < _list797.size; ++_i799)
                {
                  _elem798 = iprot.readI64();
                  struct.dropped_partitions.add(_elem798);
                }
                iprot.readListEnd();
              }
              struct.setDroppedPartitionsIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 5: // DROPPED_TABLES
            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
              {
                org.apache.thrift.protocol.TList _list800 = iprot.readListBegin();
                struct.dropped_tables = new java.util.ArrayList<java.lang.Long>(_list800.size);
                long _elem801;
                for (int _i802 = 0; _i802 < _list800.size; ++_i802)
                {
                  _elem801 = iprot.readI64();
                  struct.dropped_tables.add(_elem801);
                }
                iprot.readListEnd();
              }
              struct.setDroppedTablesIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 6: // DROPPED_INDEXES
            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
              {
                org.apache.thrift.protocol.TList _list803 = iprot.readListBegin();
                struct.dropped_indexes = new java.util.ArrayList<java.lang.Long>(_list803.size);
                long _elem804;
                for (int _i805 = 0; _i805 < _list803.size; ++_i805)
                {
                  _elem804 = iprot.readI64();
                  struct.dropped_indexes.add(_elem804);
                }
                iprot.readListEnd();
              }
              struct.setDroppedIndexesIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 7: // DROPPED_PARTITION_MAP
            if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
              {
                org.apache.thrift.protocol.TMap _map806 = iprot.readMapBegin();
                struct.dropped_partition_map = new java.util.HashMap<java.lang.Long,java.lang.Long>(2*_map806.size);
                long _key807;
                long _val808;
                for (int _i809 = 0; _i809 < _map806.size; ++_i809)
                {
                  _key807 = iprot.readI64();
                  _val808 = iprot.readI64();
                  struct.dropped_partition_map.put(_key807, _val808);
                }
                iprot.readMapEnd();
              }
              struct.setDroppedPartitionMapIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 8: // DROPPED_TABLE_MAP
            if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
              {
                org.apache.thrift.protocol.TMap _map810 = iprot.readMapBegin();
                struct.dropped_table_map = new java.util.HashMap<java.lang.Long,java.lang.Long>(2*_map810.size);
                long _key811;
                long _val812;
                for (int _i813 = 0; _i813 < _map810.size; ++_i813)
                {
                  _key811 = iprot.readI64();
                  _val812 = iprot.readI64();
                  struct.dropped_table_map.put(_key811, _val812);
                }
                iprot.readMapEnd();
              }
              struct.setDroppedTableMapIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 9: // DROPPED_INDEX_MAP
            if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
              {
                org.apache.thrift.protocol.TMap _map814 = iprot.readMapBegin();
                struct.dropped_index_map = new java.util.HashMap<java.lang.Long,java.lang.Long>(2*_map814.size);
                long _key815;
                long _val816;
                for (int _i817 = 0; _i817 < _map814.size; ++_i817)
                {
                  _key815 = iprot.readI64();
                  _val816 = iprot.readI64();
                  struct.dropped_index_map.put(_key815, _val816);
                }
                iprot.readMapEnd();
              }
              struct.setDroppedIndexMapIsSet(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();
    }

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

      oprot.writeStructBegin(STRUCT_DESC);
      if (struct.isSetId()) {
        oprot.writeFieldBegin(ID_FIELD_DESC);
        oprot.writeI64(struct.id);
        oprot.writeFieldEnd();
      }
      if (struct.name != null) {
        if (struct.isSetName()) {
          oprot.writeFieldBegin(NAME_FIELD_DESC);
          oprot.writeString(struct.name);
          oprot.writeFieldEnd();
        }
      }
      if (struct.tables != null) {
        if (struct.isSetTables()) {
          oprot.writeFieldBegin(TABLES_FIELD_DESC);
          {
            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tables.size()));
            for (TGetMetaTableMeta _iter818 : struct.tables)
            {
              _iter818.write(oprot);
            }
            oprot.writeListEnd();
          }
          oprot.writeFieldEnd();
        }
      }
      if (struct.dropped_partitions != null) {
        if (struct.isSetDroppedPartitions()) {
          oprot.writeFieldBegin(DROPPED_PARTITIONS_FIELD_DESC);
          {
            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.dropped_partitions.size()));
            for (long _iter819 : struct.dropped_partitions)
            {
              oprot.writeI64(_iter819);
            }
            oprot.writeListEnd();
          }
          oprot.writeFieldEnd();
        }
      }
      if (struct.dropped_tables != null) {
        if (struct.isSetDroppedTables()) {
          oprot.writeFieldBegin(DROPPED_TABLES_FIELD_DESC);
          {
            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.dropped_tables.size()));
            for (long _iter820 : struct.dropped_tables)
            {
              oprot.writeI64(_iter820);
            }
            oprot.writeListEnd();
          }
          oprot.writeFieldEnd();
        }
      }
      if (struct.dropped_indexes != null) {
        if (struct.isSetDroppedIndexes()) {
          oprot.writeFieldBegin(DROPPED_INDEXES_FIELD_DESC);
          {
            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.dropped_indexes.size()));
            for (long _iter821 : struct.dropped_indexes)
            {
              oprot.writeI64(_iter821);
            }
            oprot.writeListEnd();
          }
          oprot.writeFieldEnd();
        }
      }
      if (struct.dropped_partition_map != null) {
        if (struct.isSetDroppedPartitionMap()) {
          oprot.writeFieldBegin(DROPPED_PARTITION_MAP_FIELD_DESC);
          {
            oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, struct.dropped_partition_map.size()));
            for (java.util.Map.Entry<java.lang.Long, java.lang.Long> _iter822 : struct.dropped_partition_map.entrySet())
            {
              oprot.writeI64(_iter822.getKey());
              oprot.writeI64(_iter822.getValue());
            }
            oprot.writeMapEnd();
          }
          oprot.writeFieldEnd();
        }
      }
      if (struct.dropped_table_map != null) {
        if (struct.isSetDroppedTableMap()) {
          oprot.writeFieldBegin(DROPPED_TABLE_MAP_FIELD_DESC);
          {
            oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, struct.dropped_table_map.size()));
            for (java.util.Map.Entry<java.lang.Long, java.lang.Long> _iter823 : struct.dropped_table_map.entrySet())
            {
              oprot.writeI64(_iter823.getKey());
              oprot.writeI64(_iter823.getValue());
            }
            oprot.writeMapEnd();
          }
          oprot.writeFieldEnd();
        }
      }
      if (struct.dropped_index_map != null) {
        if (struct.isSetDroppedIndexMap()) {
          oprot.writeFieldBegin(DROPPED_INDEX_MAP_FIELD_DESC);
          {
            oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, struct.dropped_index_map.size()));
            for (java.util.Map.Entry<java.lang.Long, java.lang.Long> _iter824 : struct.dropped_index_map.entrySet())
            {
              oprot.writeI64(_iter824.getKey());
              oprot.writeI64(_iter824.getValue());
            }
            oprot.writeMapEnd();
          }
          oprot.writeFieldEnd();
        }
      }
      oprot.writeFieldStop();
      oprot.writeStructEnd();
    }

  }

  private static class TGetMetaDBMetaTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
    public TGetMetaDBMetaTupleScheme getScheme() {
      return new TGetMetaDBMetaTupleScheme();
    }
  }

  private static class TGetMetaDBMetaTupleScheme extends org.apache.thrift.scheme.TupleScheme<TGetMetaDBMeta> {

    @Override
    public void write(org.apache.thrift.protocol.TProtocol prot, TGetMetaDBMeta 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.isSetId()) {
        optionals.set(0);
      }
      if (struct.isSetName()) {
        optionals.set(1);
      }
      if (struct.isSetTables()) {
        optionals.set(2);
      }
      if (struct.isSetDroppedPartitions()) {
        optionals.set(3);
      }
      if (struct.isSetDroppedTables()) {
        optionals.set(4);
      }
      if (struct.isSetDroppedIndexes()) {
        optionals.set(5);
      }
      if (struct.isSetDroppedPartitionMap()) {
        optionals.set(6);
      }
      if (struct.isSetDroppedTableMap()) {
        optionals.set(7);
      }
      if (struct.isSetDroppedIndexMap()) {
        optionals.set(8);
      }
      oprot.writeBitSet(optionals, 9);
      if (struct.isSetId()) {
        oprot.writeI64(struct.id);
      }
      if (struct.isSetName()) {
        oprot.writeString(struct.name);
      }
      if (struct.isSetTables()) {
        {
          oprot.writeI32(struct.tables.size());
          for (TGetMetaTableMeta _iter825 : struct.tables)
          {
            _iter825.write(oprot);
          }
        }
      }
      if (struct.isSetDroppedPartitions()) {
        {
          oprot.writeI32(struct.dropped_partitions.size());
          for (long _iter826 : struct.dropped_partitions)
          {
            oprot.writeI64(_iter826);
          }
        }
      }
      if (struct.isSetDroppedTables()) {
        {
          oprot.writeI32(struct.dropped_tables.size());
          for (long _iter827 : struct.dropped_tables)
          {
            oprot.writeI64(_iter827);
          }
        }
      }
      if (struct.isSetDroppedIndexes()) {
        {
          oprot.writeI32(struct.dropped_indexes.size());
          for (long _iter828 : struct.dropped_indexes)
          {
            oprot.writeI64(_iter828);
          }
        }
      }
      if (struct.isSetDroppedPartitionMap()) {
        {
          oprot.writeI32(struct.dropped_partition_map.size());
          for (java.util.Map.Entry<java.lang.Long, java.lang.Long> _iter829 : struct.dropped_partition_map.entrySet())
          {
            oprot.writeI64(_iter829.getKey());
            oprot.writeI64(_iter829.getValue());
          }
        }
      }
      if (struct.isSetDroppedTableMap()) {
        {
          oprot.writeI32(struct.dropped_table_map.size());
          for (java.util.Map.Entry<java.lang.Long, java.lang.Long> _iter830 : struct.dropped_table_map.entrySet())
          {
            oprot.writeI64(_iter830.getKey());
            oprot.writeI64(_iter830.getValue());
          }
        }
      }
      if (struct.isSetDroppedIndexMap()) {
        {
          oprot.writeI32(struct.dropped_index_map.size());
          for (java.util.Map.Entry<java.lang.Long, java.lang.Long> _iter831 : struct.dropped_index_map.entrySet())
          {
            oprot.writeI64(_iter831.getKey());
            oprot.writeI64(_iter831.getValue());
          }
        }
      }
    }

    @Override
    public void read(org.apache.thrift.protocol.TProtocol prot, TGetMetaDBMeta struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      java.util.BitSet incoming = iprot.readBitSet(9);
      if (incoming.get(0)) {
        struct.id = iprot.readI64();
        struct.setIdIsSet(true);
      }
      if (incoming.get(1)) {
        struct.name = iprot.readString();
        struct.setNameIsSet(true);
      }
      if (incoming.get(2)) {
        {
          org.apache.thrift.protocol.TList _list832 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
          struct.tables = new java.util.ArrayList<TGetMetaTableMeta>(_list832.size);
          @org.apache.thrift.annotation.Nullable TGetMetaTableMeta _elem833;
          for (int _i834 = 0; _i834 < _list832.size; ++_i834)
          {
            _elem833 = new TGetMetaTableMeta();
            _elem833.read(iprot);
            struct.tables.add(_elem833);
          }
        }
        struct.setTablesIsSet(true);
      }
      if (incoming.get(3)) {
        {
          org.apache.thrift.protocol.TList _list835 = iprot.readListBegin(org.apache.thrift.protocol.TType.I64);
          struct.dropped_partitions = new java.util.ArrayList<java.lang.Long>(_list835.size);
          long _elem836;
          for (int _i837 = 0; _i837 < _list835.size; ++_i837)
          {
            _elem836 = iprot.readI64();
            struct.dropped_partitions.add(_elem836);
          }
        }
        struct.setDroppedPartitionsIsSet(true);
      }
      if (incoming.get(4)) {
        {
          org.apache.thrift.protocol.TList _list838 = iprot.readListBegin(org.apache.thrift.protocol.TType.I64);
          struct.dropped_tables = new java.util.ArrayList<java.lang.Long>(_list838.size);
          long _elem839;
          for (int _i840 = 0; _i840 < _list838.size; ++_i840)
          {
            _elem839 = iprot.readI64();
            struct.dropped_tables.add(_elem839);
          }
        }
        struct.setDroppedTablesIsSet(true);
      }
      if (incoming.get(5)) {
        {
          org.apache.thrift.protocol.TList _list841 = iprot.readListBegin(org.apache.thrift.protocol.TType.I64);
          struct.dropped_indexes = new java.util.ArrayList<java.lang.Long>(_list841.size);
          long _elem842;
          for (int _i843 = 0; _i843 < _list841.size; ++_i843)
          {
            _elem842 = iprot.readI64();
            struct.dropped_indexes.add(_elem842);
          }
        }
        struct.setDroppedIndexesIsSet(true);
      }
      if (incoming.get(6)) {
        {
          org.apache.thrift.protocol.TMap _map844 = iprot.readMapBegin(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64); 
          struct.dropped_partition_map = new java.util.HashMap<java.lang.Long,java.lang.Long>(2*_map844.size);
          long _key845;
          long _val846;
          for (int _i847 = 0; _i847 < _map844.size; ++_i847)
          {
            _key845 = iprot.readI64();
            _val846 = iprot.readI64();
            struct.dropped_partition_map.put(_key845, _val846);
          }
        }
        struct.setDroppedPartitionMapIsSet(true);
      }
      if (incoming.get(7)) {
        {
          org.apache.thrift.protocol.TMap _map848 = iprot.readMapBegin(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64); 
          struct.dropped_table_map = new java.util.HashMap<java.lang.Long,java.lang.Long>(2*_map848.size);
          long _key849;
          long _val850;
          for (int _i851 = 0; _i851 < _map848.size; ++_i851)
          {
            _key849 = iprot.readI64();
            _val850 = iprot.readI64();
            struct.dropped_table_map.put(_key849, _val850);
          }
        }
        struct.setDroppedTableMapIsSet(true);
      }
      if (incoming.get(8)) {
        {
          org.apache.thrift.protocol.TMap _map852 = iprot.readMapBegin(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64); 
          struct.dropped_index_map = new java.util.HashMap<java.lang.Long,java.lang.Long>(2*_map852.size);
          long _key853;
          long _val854;
          for (int _i855 = 0; _i855 < _map852.size; ++_i855)
          {
            _key853 = iprot.readI64();
            _val854 = iprot.readI64();
            struct.dropped_index_map.put(_key853, _val854);
          }
        }
        struct.setDroppedIndexMapIsSet(true);
      }
    }
  }

  private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
    return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
  }
}