Subversion Repositories SmartDukaan

Rev

Rev 19247 | Blame | Compare with Previous | Last modification | View Log | RSS feed

/**
 * Autogenerated by Thrift Compiler (0.7.0)
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 */
package in.shop2020.model.v1.catalog;

import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.EnumMap;
import java.util.Set;
import java.util.HashSet;
import java.util.EnumSet;
import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ItemPricing implements org.apache.thrift.TBase<ItemPricing, ItemPricing._Fields>, java.io.Serializable, Cloneable {
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ItemPricing");

  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
  private static final org.apache.thrift.protocol.TField SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("selling_price", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
  private static final org.apache.thrift.protocol.TField MRP_FIELD_DESC = new org.apache.thrift.protocol.TField("mrp", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
  private static final org.apache.thrift.protocol.TField PREFERRED_VENDOR_FIELD_DESC = new org.apache.thrift.protocol.TField("preferred_vendor", org.apache.thrift.protocol.TType.I64, (short)4);
  private static final org.apache.thrift.protocol.TField PRIVATE_DEAL_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("private_deal_price", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
  private static final org.apache.thrift.protocol.TField WEIGHT_FIELD_DESC = new org.apache.thrift.protocol.TField("weight", org.apache.thrift.protocol.TType.DOUBLE, (short)6);

  private long item_id; // required
  private double selling_price; // required
  private double mrp; // required
  private long preferred_vendor; // required
  private double private_deal_price; // required
  private double weight; // required

  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    ITEM_ID((short)1, "item_id"),
    SELLING_PRICE((short)2, "selling_price"),
    MRP((short)3, "mrp"),
    PREFERRED_VENDOR((short)4, "preferred_vendor"),
    PRIVATE_DEAL_PRICE((short)5, "private_deal_price"),
    WEIGHT((short)6, "weight");

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

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

    /**
     * Find the _Fields constant that matches fieldId, or null if its not found.
     */
    public static _Fields findByThriftId(int fieldId) {
      switch(fieldId) {
        case 1: // ITEM_ID
          return ITEM_ID;
        case 2: // SELLING_PRICE
          return SELLING_PRICE;
        case 3: // MRP
          return MRP;
        case 4: // PREFERRED_VENDOR
          return PREFERRED_VENDOR;
        case 5: // PRIVATE_DEAL_PRICE
          return PRIVATE_DEAL_PRICE;
        case 6: // WEIGHT
          return WEIGHT;
        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 IllegalArgumentException("Field " + fieldId + " doesn't exist!");
      return fields;
    }

    /**
     * Find the _Fields constant that matches name, or null if its not found.
     */
    public static _Fields findByName(String name) {
      return byName.get(name);
    }

    private final short _thriftId;
    private final String _fieldName;

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

    public short getThriftFieldId() {
      return _thriftId;
    }

    public String getFieldName() {
      return _fieldName;
    }
  }

  // isset id assignments
  private static final int __ITEM_ID_ISSET_ID = 0;
  private static final int __SELLING_PRICE_ISSET_ID = 1;
  private static final int __MRP_ISSET_ID = 2;
  private static final int __PREFERRED_VENDOR_ISSET_ID = 3;
  private static final int __PRIVATE_DEAL_PRICE_ISSET_ID = 4;
  private static final int __WEIGHT_ISSET_ID = 5;
  private BitSet __isset_bit_vector = new BitSet(6);

  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
  static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("selling_price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.MRP, new org.apache.thrift.meta_data.FieldMetaData("mrp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.PREFERRED_VENDOR, new org.apache.thrift.meta_data.FieldMetaData("preferred_vendor", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.PRIVATE_DEAL_PRICE, new org.apache.thrift.meta_data.FieldMetaData("private_deal_price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("weight", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ItemPricing.class, metaDataMap);
  }

  public ItemPricing() {
  }

  public ItemPricing(
    long item_id,
    double selling_price,
    double mrp,
    long preferred_vendor,
    double private_deal_price,
    double weight)
  {
    this();
    this.item_id = item_id;
    setItem_idIsSet(true);
    this.selling_price = selling_price;
    setSelling_priceIsSet(true);
    this.mrp = mrp;
    setMrpIsSet(true);
    this.preferred_vendor = preferred_vendor;
    setPreferred_vendorIsSet(true);
    this.private_deal_price = private_deal_price;
    setPrivate_deal_priceIsSet(true);
    this.weight = weight;
    setWeightIsSet(true);
  }

  /**
   * Performs a deep copy on <i>other</i>.
   */
  public ItemPricing(ItemPricing other) {
    __isset_bit_vector.clear();
    __isset_bit_vector.or(other.__isset_bit_vector);
    this.item_id = other.item_id;
    this.selling_price = other.selling_price;
    this.mrp = other.mrp;
    this.preferred_vendor = other.preferred_vendor;
    this.private_deal_price = other.private_deal_price;
    this.weight = other.weight;
  }

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

  @Override
  public void clear() {
    setItem_idIsSet(false);
    this.item_id = 0;
    setSelling_priceIsSet(false);
    this.selling_price = 0.0;
    setMrpIsSet(false);
    this.mrp = 0.0;
    setPreferred_vendorIsSet(false);
    this.preferred_vendor = 0;
    setPrivate_deal_priceIsSet(false);
    this.private_deal_price = 0.0;
    setWeightIsSet(false);
    this.weight = 0.0;
  }

  public long getItem_id() {
    return this.item_id;
  }

  public void setItem_id(long item_id) {
    this.item_id = item_id;
    setItem_idIsSet(true);
  }

  public void unsetItem_id() {
    __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
  }

  /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
  public boolean isSetItem_id() {
    return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
  }

  public void setItem_idIsSet(boolean value) {
    __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
  }

  public double getSelling_price() {
    return this.selling_price;
  }

  public void setSelling_price(double selling_price) {
    this.selling_price = selling_price;
    setSelling_priceIsSet(true);
  }

  public void unsetSelling_price() {
    __isset_bit_vector.clear(__SELLING_PRICE_ISSET_ID);
  }

  /** Returns true if field selling_price is set (has been assigned a value) and false otherwise */
  public boolean isSetSelling_price() {
    return __isset_bit_vector.get(__SELLING_PRICE_ISSET_ID);
  }

  public void setSelling_priceIsSet(boolean value) {
    __isset_bit_vector.set(__SELLING_PRICE_ISSET_ID, value);
  }

  public double getMrp() {
    return this.mrp;
  }

  public void setMrp(double mrp) {
    this.mrp = mrp;
    setMrpIsSet(true);
  }

  public void unsetMrp() {
    __isset_bit_vector.clear(__MRP_ISSET_ID);
  }

  /** Returns true if field mrp is set (has been assigned a value) and false otherwise */
  public boolean isSetMrp() {
    return __isset_bit_vector.get(__MRP_ISSET_ID);
  }

  public void setMrpIsSet(boolean value) {
    __isset_bit_vector.set(__MRP_ISSET_ID, value);
  }

  public long getPreferred_vendor() {
    return this.preferred_vendor;
  }

  public void setPreferred_vendor(long preferred_vendor) {
    this.preferred_vendor = preferred_vendor;
    setPreferred_vendorIsSet(true);
  }

  public void unsetPreferred_vendor() {
    __isset_bit_vector.clear(__PREFERRED_VENDOR_ISSET_ID);
  }

  /** Returns true if field preferred_vendor is set (has been assigned a value) and false otherwise */
  public boolean isSetPreferred_vendor() {
    return __isset_bit_vector.get(__PREFERRED_VENDOR_ISSET_ID);
  }

  public void setPreferred_vendorIsSet(boolean value) {
    __isset_bit_vector.set(__PREFERRED_VENDOR_ISSET_ID, value);
  }

  public double getPrivate_deal_price() {
    return this.private_deal_price;
  }

  public void setPrivate_deal_price(double private_deal_price) {
    this.private_deal_price = private_deal_price;
    setPrivate_deal_priceIsSet(true);
  }

  public void unsetPrivate_deal_price() {
    __isset_bit_vector.clear(__PRIVATE_DEAL_PRICE_ISSET_ID);
  }

  /** Returns true if field private_deal_price is set (has been assigned a value) and false otherwise */
  public boolean isSetPrivate_deal_price() {
    return __isset_bit_vector.get(__PRIVATE_DEAL_PRICE_ISSET_ID);
  }

  public void setPrivate_deal_priceIsSet(boolean value) {
    __isset_bit_vector.set(__PRIVATE_DEAL_PRICE_ISSET_ID, value);
  }

  public double getWeight() {
    return this.weight;
  }

  public void setWeight(double weight) {
    this.weight = weight;
    setWeightIsSet(true);
  }

  public void unsetWeight() {
    __isset_bit_vector.clear(__WEIGHT_ISSET_ID);
  }

  /** Returns true if field weight is set (has been assigned a value) and false otherwise */
  public boolean isSetWeight() {
    return __isset_bit_vector.get(__WEIGHT_ISSET_ID);
  }

  public void setWeightIsSet(boolean value) {
    __isset_bit_vector.set(__WEIGHT_ISSET_ID, value);
  }

  public void setFieldValue(_Fields field, Object value) {
    switch (field) {
    case ITEM_ID:
      if (value == null) {
        unsetItem_id();
      } else {
        setItem_id((Long)value);
      }
      break;

    case SELLING_PRICE:
      if (value == null) {
        unsetSelling_price();
      } else {
        setSelling_price((Double)value);
      }
      break;

    case MRP:
      if (value == null) {
        unsetMrp();
      } else {
        setMrp((Double)value);
      }
      break;

    case PREFERRED_VENDOR:
      if (value == null) {
        unsetPreferred_vendor();
      } else {
        setPreferred_vendor((Long)value);
      }
      break;

    case PRIVATE_DEAL_PRICE:
      if (value == null) {
        unsetPrivate_deal_price();
      } else {
        setPrivate_deal_price((Double)value);
      }
      break;

    case WEIGHT:
      if (value == null) {
        unsetWeight();
      } else {
        setWeight((Double)value);
      }
      break;

    }
  }

  public Object getFieldValue(_Fields field) {
    switch (field) {
    case ITEM_ID:
      return Long.valueOf(getItem_id());

    case SELLING_PRICE:
      return Double.valueOf(getSelling_price());

    case MRP:
      return Double.valueOf(getMrp());

    case PREFERRED_VENDOR:
      return Long.valueOf(getPreferred_vendor());

    case PRIVATE_DEAL_PRICE:
      return Double.valueOf(getPrivate_deal_price());

    case WEIGHT:
      return Double.valueOf(getWeight());

    }
    throw new 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 IllegalArgumentException();
    }

    switch (field) {
    case ITEM_ID:
      return isSetItem_id();
    case SELLING_PRICE:
      return isSetSelling_price();
    case MRP:
      return isSetMrp();
    case PREFERRED_VENDOR:
      return isSetPreferred_vendor();
    case PRIVATE_DEAL_PRICE:
      return isSetPrivate_deal_price();
    case WEIGHT:
      return isSetWeight();
    }
    throw new IllegalStateException();
  }

  @Override
  public boolean equals(Object that) {
    if (that == null)
      return false;
    if (that instanceof ItemPricing)
      return this.equals((ItemPricing)that);
    return false;
  }

  public boolean equals(ItemPricing that) {
    if (that == null)
      return false;

    boolean this_present_item_id = true;
    boolean that_present_item_id = true;
    if (this_present_item_id || that_present_item_id) {
      if (!(this_present_item_id && that_present_item_id))
        return false;
      if (this.item_id != that.item_id)
        return false;
    }

    boolean this_present_selling_price = true;
    boolean that_present_selling_price = true;
    if (this_present_selling_price || that_present_selling_price) {
      if (!(this_present_selling_price && that_present_selling_price))
        return false;
      if (this.selling_price != that.selling_price)
        return false;
    }

    boolean this_present_mrp = true;
    boolean that_present_mrp = true;
    if (this_present_mrp || that_present_mrp) {
      if (!(this_present_mrp && that_present_mrp))
        return false;
      if (this.mrp != that.mrp)
        return false;
    }

    boolean this_present_preferred_vendor = true;
    boolean that_present_preferred_vendor = true;
    if (this_present_preferred_vendor || that_present_preferred_vendor) {
      if (!(this_present_preferred_vendor && that_present_preferred_vendor))
        return false;
      if (this.preferred_vendor != that.preferred_vendor)
        return false;
    }

    boolean this_present_private_deal_price = true;
    boolean that_present_private_deal_price = true;
    if (this_present_private_deal_price || that_present_private_deal_price) {
      if (!(this_present_private_deal_price && that_present_private_deal_price))
        return false;
      if (this.private_deal_price != that.private_deal_price)
        return false;
    }

    boolean this_present_weight = true;
    boolean that_present_weight = true;
    if (this_present_weight || that_present_weight) {
      if (!(this_present_weight && that_present_weight))
        return false;
      if (this.weight != that.weight)
        return false;
    }

    return true;
  }

  @Override
  public int hashCode() {
    return 0;
  }

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

    int lastComparison = 0;
    ItemPricing typedOther = (ItemPricing)other;

    lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetItem_id()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetSelling_price()).compareTo(typedOther.isSetSelling_price());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetSelling_price()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.selling_price, typedOther.selling_price);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetMrp()).compareTo(typedOther.isSetMrp());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetMrp()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mrp, typedOther.mrp);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetPreferred_vendor()).compareTo(typedOther.isSetPreferred_vendor());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetPreferred_vendor()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.preferred_vendor, typedOther.preferred_vendor);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetPrivate_deal_price()).compareTo(typedOther.isSetPrivate_deal_price());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetPrivate_deal_price()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.private_deal_price, typedOther.private_deal_price);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetWeight()).compareTo(typedOther.isSetWeight());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetWeight()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.weight, typedOther.weight);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    return 0;
  }

  public _Fields fieldForId(int fieldId) {
    return _Fields.findByThriftId(fieldId);
  }

  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    org.apache.thrift.protocol.TField field;
    iprot.readStructBegin();
    while (true)
    {
      field = iprot.readFieldBegin();
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
        break;
      }
      switch (field.id) {
        case 1: // ITEM_ID
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.item_id = iprot.readI64();
            setItem_idIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 2: // SELLING_PRICE
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.selling_price = iprot.readDouble();
            setSelling_priceIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 3: // MRP
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.mrp = iprot.readDouble();
            setMrpIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 4: // PREFERRED_VENDOR
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.preferred_vendor = iprot.readI64();
            setPreferred_vendorIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 5: // PRIVATE_DEAL_PRICE
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.private_deal_price = iprot.readDouble();
            setPrivate_deal_priceIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 6: // WEIGHT
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.weight = iprot.readDouble();
            setWeightIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        default:
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
      }
      iprot.readFieldEnd();
    }
    iprot.readStructEnd();
    validate();
  }

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

    oprot.writeStructBegin(STRUCT_DESC);
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
    oprot.writeI64(this.item_id);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(SELLING_PRICE_FIELD_DESC);
    oprot.writeDouble(this.selling_price);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(MRP_FIELD_DESC);
    oprot.writeDouble(this.mrp);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(PREFERRED_VENDOR_FIELD_DESC);
    oprot.writeI64(this.preferred_vendor);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(PRIVATE_DEAL_PRICE_FIELD_DESC);
    oprot.writeDouble(this.private_deal_price);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(WEIGHT_FIELD_DESC);
    oprot.writeDouble(this.weight);
    oprot.writeFieldEnd();
    oprot.writeFieldStop();
    oprot.writeStructEnd();
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder("ItemPricing(");
    boolean first = true;

    sb.append("item_id:");
    sb.append(this.item_id);
    first = false;
    if (!first) sb.append(", ");
    sb.append("selling_price:");
    sb.append(this.selling_price);
    first = false;
    if (!first) sb.append(", ");
    sb.append("mrp:");
    sb.append(this.mrp);
    first = false;
    if (!first) sb.append(", ");
    sb.append("preferred_vendor:");
    sb.append(this.preferred_vendor);
    first = false;
    if (!first) sb.append(", ");
    sb.append("private_deal_price:");
    sb.append(this.private_deal_price);
    first = false;
    if (!first) sb.append(", ");
    sb.append("weight:");
    sb.append(this.weight);
    first = false;
    sb.append(")");
    return sb.toString();
  }

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

  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, 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_bit_vector = new BitSet(1);
      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);
    }
  }

}