@Override
 public void write(org.apache.thrift.protocol.TProtocol prot, ClientRouteTableRequset struct)
     throws org.apache.thrift.TException {
   TTupleProtocol oprot = (TTupleProtocol) prot;
   BitSet optionals = new BitSet();
   if (struct.isSetTableName()) {
     optionals.set(0);
   }
   oprot.writeBitSet(optionals, 1);
   if (struct.isSetTableName()) {
     oprot.writeString(struct.tableName);
   }
 }
  public boolean equals(ClientRouteTableRequset that) {
    if (that == null) return false;

    boolean this_present_tableName = true && this.isSetTableName();
    boolean that_present_tableName = true && that.isSetTableName();
    if (this_present_tableName || that_present_tableName) {
      if (!(this_present_tableName && that_present_tableName)) return false;
      if (!this.tableName.equals(that.tableName)) return false;
    }

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

    int lastComparison = 0;

    lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetTableName()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    return 0;
  }
 /** Performs a deep copy on <i>other</i>. */
 public ClientRouteTableRequset(ClientRouteTableRequset other) {
   if (other.isSetTableName()) {
     this.tableName = other.tableName;
   }
 }