Subversion Repositories SmartDukaan

Rev

Rev 11096 | 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 SnapdealItemDetails implements org.apache.thrift.TBase<SnapdealItemDetails, SnapdealItemDetails._Fields>, java.io.Serializable, Cloneable {
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SnapdealItemDetails");

  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 WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
  private static final org.apache.thrift.protocol.TField EXCEPTION_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("exceptionPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
  private static final org.apache.thrift.protocol.TField IS_LISTED_ON_SNAPDEAL_FIELD_DESC = new org.apache.thrift.protocol.TField("isListedOnSnapdeal", org.apache.thrift.protocol.TType.BOOL, (short)4);
  private static final org.apache.thrift.protocol.TField TRANSFER_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("transferPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
  private static final org.apache.thrift.protocol.TField SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("sellingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
  private static final org.apache.thrift.protocol.TField COURIER_COST_FIELD_DESC = new org.apache.thrift.protocol.TField("courierCost", org.apache.thrift.protocol.TType.DOUBLE, (short)7);
  private static final org.apache.thrift.protocol.TField COMMISSION_FIELD_DESC = new org.apache.thrift.protocol.TField("commission", org.apache.thrift.protocol.TType.DOUBLE, (short)8);
  private static final org.apache.thrift.protocol.TField SERVICE_TAX_FIELD_DESC = new org.apache.thrift.protocol.TField("serviceTax", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
  private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)10);
  private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("model_name", org.apache.thrift.protocol.TType.STRING, (short)11);
  private static final org.apache.thrift.protocol.TField MODEL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("model_number", org.apache.thrift.protocol.TType.STRING, (short)12);
  private static final org.apache.thrift.protocol.TField COLOR_FIELD_DESC = new org.apache.thrift.protocol.TField("color", org.apache.thrift.protocol.TType.STRING, (short)13);
  private static final org.apache.thrift.protocol.TField RISKY_FIELD_DESC = new org.apache.thrift.protocol.TField("risky", org.apache.thrift.protocol.TType.BOOL, (short)14);
  private static final org.apache.thrift.protocol.TField ITEM_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemStatus", org.apache.thrift.protocol.TType.I32, (short)15);
  private static final org.apache.thrift.protocol.TField SUPPRESS_PRICE_FEED_FIELD_DESC = new org.apache.thrift.protocol.TField("suppressPriceFeed", org.apache.thrift.protocol.TType.BOOL, (short)16);
  private static final org.apache.thrift.protocol.TField SUPPRESS_INVENTORY_FEED_FIELD_DESC = new org.apache.thrift.protocol.TField("suppressInventoryFeed", org.apache.thrift.protocol.TType.BOOL, (short)17);
  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)18);
  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)19);
  private static final org.apache.thrift.protocol.TField WEBSITE_SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("websiteSellingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)20);
  private static final org.apache.thrift.protocol.TField MAX_NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("maxNlc", org.apache.thrift.protocol.TType.DOUBLE, (short)21);
  private static final org.apache.thrift.protocol.TField SKU_AT_SNAPDEAL_FIELD_DESC = new org.apache.thrift.protocol.TField("skuAtSnapdeal", org.apache.thrift.protocol.TType.STRING, (short)22);
  private static final org.apache.thrift.protocol.TField SUPC_FIELD_DESC = new org.apache.thrift.protocol.TField("supc", org.apache.thrift.protocol.TType.STRING, (short)23);
  private static final org.apache.thrift.protocol.TField LAST_UPDATED_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("lastUpdatedInventory", org.apache.thrift.protocol.TType.I64, (short)24);
  private static final org.apache.thrift.protocol.TField LAST_UPDATED_INVENTORY_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("lastUpdatedInventoryTimestamp", org.apache.thrift.protocol.TType.I64, (short)25);
  private static final org.apache.thrift.protocol.TField SHIPPING_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("shippingTime", org.apache.thrift.protocol.TType.I64, (short)26);
  private static final org.apache.thrift.protocol.TField COURIER_COST_MARKETPLACE_FIELD_DESC = new org.apache.thrift.protocol.TField("courierCostMarketplace", org.apache.thrift.protocol.TType.DOUBLE, (short)27);
  private static final org.apache.thrift.protocol.TField IS_VOI_LISTED_FIELD_DESC = new org.apache.thrift.protocol.TField("isVoiListed", org.apache.thrift.protocol.TType.BOOL, (short)28);

  private long item_id; // required
  private long warehouseId; // required
  private double exceptionPrice; // required
  private boolean isListedOnSnapdeal; // required
  private double transferPrice; // required
  private double sellingPrice; // required
  private double courierCost; // required
  private double commission; // required
  private double serviceTax; // required
  private String brand; // required
  private String model_name; // required
  private String model_number; // required
  private String color; // required
  private boolean risky; // required
  private status itemStatus; // required
  private boolean suppressPriceFeed; // required
  private boolean suppressInventoryFeed; // required
  private double weight; // required
  private double mrp; // required
  private double websiteSellingPrice; // required
  private double maxNlc; // required
  private String skuAtSnapdeal; // required
  private String supc; // required
  private long lastUpdatedInventory; // required
  private long lastUpdatedInventoryTimestamp; // required
  private long shippingTime; // required
  private double courierCostMarketplace; // required
  private boolean isVoiListed; // 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"),
    WAREHOUSE_ID((short)2, "warehouseId"),
    EXCEPTION_PRICE((short)3, "exceptionPrice"),
    IS_LISTED_ON_SNAPDEAL((short)4, "isListedOnSnapdeal"),
    TRANSFER_PRICE((short)5, "transferPrice"),
    SELLING_PRICE((short)6, "sellingPrice"),
    COURIER_COST((short)7, "courierCost"),
    COMMISSION((short)8, "commission"),
    SERVICE_TAX((short)9, "serviceTax"),
    BRAND((short)10, "brand"),
    MODEL_NAME((short)11, "model_name"),
    MODEL_NUMBER((short)12, "model_number"),
    COLOR((short)13, "color"),
    RISKY((short)14, "risky"),
    /**
     * 
     * @see status
     */
    ITEM_STATUS((short)15, "itemStatus"),
    SUPPRESS_PRICE_FEED((short)16, "suppressPriceFeed"),
    SUPPRESS_INVENTORY_FEED((short)17, "suppressInventoryFeed"),
    WEIGHT((short)18, "weight"),
    MRP((short)19, "mrp"),
    WEBSITE_SELLING_PRICE((short)20, "websiteSellingPrice"),
    MAX_NLC((short)21, "maxNlc"),
    SKU_AT_SNAPDEAL((short)22, "skuAtSnapdeal"),
    SUPC((short)23, "supc"),
    LAST_UPDATED_INVENTORY((short)24, "lastUpdatedInventory"),
    LAST_UPDATED_INVENTORY_TIMESTAMP((short)25, "lastUpdatedInventoryTimestamp"),
    SHIPPING_TIME((short)26, "shippingTime"),
    COURIER_COST_MARKETPLACE((short)27, "courierCostMarketplace"),
    IS_VOI_LISTED((short)28, "isVoiListed");

    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: // WAREHOUSE_ID
          return WAREHOUSE_ID;
        case 3: // EXCEPTION_PRICE
          return EXCEPTION_PRICE;
        case 4: // IS_LISTED_ON_SNAPDEAL
          return IS_LISTED_ON_SNAPDEAL;
        case 5: // TRANSFER_PRICE
          return TRANSFER_PRICE;
        case 6: // SELLING_PRICE
          return SELLING_PRICE;
        case 7: // COURIER_COST
          return COURIER_COST;
        case 8: // COMMISSION
          return COMMISSION;
        case 9: // SERVICE_TAX
          return SERVICE_TAX;
        case 10: // BRAND
          return BRAND;
        case 11: // MODEL_NAME
          return MODEL_NAME;
        case 12: // MODEL_NUMBER
          return MODEL_NUMBER;
        case 13: // COLOR
          return COLOR;
        case 14: // RISKY
          return RISKY;
        case 15: // ITEM_STATUS
          return ITEM_STATUS;
        case 16: // SUPPRESS_PRICE_FEED
          return SUPPRESS_PRICE_FEED;
        case 17: // SUPPRESS_INVENTORY_FEED
          return SUPPRESS_INVENTORY_FEED;
        case 18: // WEIGHT
          return WEIGHT;
        case 19: // MRP
          return MRP;
        case 20: // WEBSITE_SELLING_PRICE
          return WEBSITE_SELLING_PRICE;
        case 21: // MAX_NLC
          return MAX_NLC;
        case 22: // SKU_AT_SNAPDEAL
          return SKU_AT_SNAPDEAL;
        case 23: // SUPC
          return SUPC;
        case 24: // LAST_UPDATED_INVENTORY
          return LAST_UPDATED_INVENTORY;
        case 25: // LAST_UPDATED_INVENTORY_TIMESTAMP
          return LAST_UPDATED_INVENTORY_TIMESTAMP;
        case 26: // SHIPPING_TIME
          return SHIPPING_TIME;
        case 27: // COURIER_COST_MARKETPLACE
          return COURIER_COST_MARKETPLACE;
        case 28: // IS_VOI_LISTED
          return IS_VOI_LISTED;
        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 __WAREHOUSEID_ISSET_ID = 1;
  private static final int __EXCEPTIONPRICE_ISSET_ID = 2;
  private static final int __ISLISTEDONSNAPDEAL_ISSET_ID = 3;
  private static final int __TRANSFERPRICE_ISSET_ID = 4;
  private static final int __SELLINGPRICE_ISSET_ID = 5;
  private static final int __COURIERCOST_ISSET_ID = 6;
  private static final int __COMMISSION_ISSET_ID = 7;
  private static final int __SERVICETAX_ISSET_ID = 8;
  private static final int __RISKY_ISSET_ID = 9;
  private static final int __SUPPRESSPRICEFEED_ISSET_ID = 10;
  private static final int __SUPPRESSINVENTORYFEED_ISSET_ID = 11;
  private static final int __WEIGHT_ISSET_ID = 12;
  private static final int __MRP_ISSET_ID = 13;
  private static final int __WEBSITESELLINGPRICE_ISSET_ID = 14;
  private static final int __MAXNLC_ISSET_ID = 15;
  private static final int __LASTUPDATEDINVENTORY_ISSET_ID = 16;
  private static final int __LASTUPDATEDINVENTORYTIMESTAMP_ISSET_ID = 17;
  private static final int __SHIPPINGTIME_ISSET_ID = 18;
  private static final int __COURIERCOSTMARKETPLACE_ISSET_ID = 19;
  private static final int __ISVOILISTED_ISSET_ID = 20;
  private BitSet __isset_bit_vector = new BitSet(21);

  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.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.EXCEPTION_PRICE, new org.apache.thrift.meta_data.FieldMetaData("exceptionPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.IS_LISTED_ON_SNAPDEAL, new org.apache.thrift.meta_data.FieldMetaData("isListedOnSnapdeal", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    tmpMap.put(_Fields.TRANSFER_PRICE, new org.apache.thrift.meta_data.FieldMetaData("transferPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("sellingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.COURIER_COST, new org.apache.thrift.meta_data.FieldMetaData("courierCost", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.COMMISSION, new org.apache.thrift.meta_data.FieldMetaData("commission", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.SERVICE_TAX, new org.apache.thrift.meta_data.FieldMetaData("serviceTax", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("model_name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("model_number", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.RISKY, new org.apache.thrift.meta_data.FieldMetaData("risky", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    tmpMap.put(_Fields.ITEM_STATUS, new org.apache.thrift.meta_data.FieldMetaData("itemStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, status.class)));
    tmpMap.put(_Fields.SUPPRESS_PRICE_FEED, new org.apache.thrift.meta_data.FieldMetaData("suppressPriceFeed", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    tmpMap.put(_Fields.SUPPRESS_INVENTORY_FEED, new org.apache.thrift.meta_data.FieldMetaData("suppressInventoryFeed", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    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)));
    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.WEBSITE_SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("websiteSellingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.MAX_NLC, new org.apache.thrift.meta_data.FieldMetaData("maxNlc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.SKU_AT_SNAPDEAL, new org.apache.thrift.meta_data.FieldMetaData("skuAtSnapdeal", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.SUPC, new org.apache.thrift.meta_data.FieldMetaData("supc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.LAST_UPDATED_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("lastUpdatedInventory", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.LAST_UPDATED_INVENTORY_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("lastUpdatedInventoryTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.SHIPPING_TIME, new org.apache.thrift.meta_data.FieldMetaData("shippingTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.COURIER_COST_MARKETPLACE, new org.apache.thrift.meta_data.FieldMetaData("courierCostMarketplace", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.IS_VOI_LISTED, new org.apache.thrift.meta_data.FieldMetaData("isVoiListed", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SnapdealItemDetails.class, metaDataMap);
  }

  public SnapdealItemDetails() {
  }

  public SnapdealItemDetails(
    long item_id,
    long warehouseId,
    double exceptionPrice,
    boolean isListedOnSnapdeal,
    double transferPrice,
    double sellingPrice,
    double courierCost,
    double commission,
    double serviceTax,
    String brand,
    String model_name,
    String model_number,
    String color,
    boolean risky,
    status itemStatus,
    boolean suppressPriceFeed,
    boolean suppressInventoryFeed,
    double weight,
    double mrp,
    double websiteSellingPrice,
    double maxNlc,
    String skuAtSnapdeal,
    String supc,
    long lastUpdatedInventory,
    long lastUpdatedInventoryTimestamp,
    long shippingTime,
    double courierCostMarketplace,
    boolean isVoiListed)
  {
    this();
    this.item_id = item_id;
    setItem_idIsSet(true);
    this.warehouseId = warehouseId;
    setWarehouseIdIsSet(true);
    this.exceptionPrice = exceptionPrice;
    setExceptionPriceIsSet(true);
    this.isListedOnSnapdeal = isListedOnSnapdeal;
    setIsListedOnSnapdealIsSet(true);
    this.transferPrice = transferPrice;
    setTransferPriceIsSet(true);
    this.sellingPrice = sellingPrice;
    setSellingPriceIsSet(true);
    this.courierCost = courierCost;
    setCourierCostIsSet(true);
    this.commission = commission;
    setCommissionIsSet(true);
    this.serviceTax = serviceTax;
    setServiceTaxIsSet(true);
    this.brand = brand;
    this.model_name = model_name;
    this.model_number = model_number;
    this.color = color;
    this.risky = risky;
    setRiskyIsSet(true);
    this.itemStatus = itemStatus;
    this.suppressPriceFeed = suppressPriceFeed;
    setSuppressPriceFeedIsSet(true);
    this.suppressInventoryFeed = suppressInventoryFeed;
    setSuppressInventoryFeedIsSet(true);
    this.weight = weight;
    setWeightIsSet(true);
    this.mrp = mrp;
    setMrpIsSet(true);
    this.websiteSellingPrice = websiteSellingPrice;
    setWebsiteSellingPriceIsSet(true);
    this.maxNlc = maxNlc;
    setMaxNlcIsSet(true);
    this.skuAtSnapdeal = skuAtSnapdeal;
    this.supc = supc;
    this.lastUpdatedInventory = lastUpdatedInventory;
    setLastUpdatedInventoryIsSet(true);
    this.lastUpdatedInventoryTimestamp = lastUpdatedInventoryTimestamp;
    setLastUpdatedInventoryTimestampIsSet(true);
    this.shippingTime = shippingTime;
    setShippingTimeIsSet(true);
    this.courierCostMarketplace = courierCostMarketplace;
    setCourierCostMarketplaceIsSet(true);
    this.isVoiListed = isVoiListed;
    setIsVoiListedIsSet(true);
  }

  /**
   * Performs a deep copy on <i>other</i>.
   */
  public SnapdealItemDetails(SnapdealItemDetails other) {
    __isset_bit_vector.clear();
    __isset_bit_vector.or(other.__isset_bit_vector);
    this.item_id = other.item_id;
    this.warehouseId = other.warehouseId;
    this.exceptionPrice = other.exceptionPrice;
    this.isListedOnSnapdeal = other.isListedOnSnapdeal;
    this.transferPrice = other.transferPrice;
    this.sellingPrice = other.sellingPrice;
    this.courierCost = other.courierCost;
    this.commission = other.commission;
    this.serviceTax = other.serviceTax;
    if (other.isSetBrand()) {
      this.brand = other.brand;
    }
    if (other.isSetModel_name()) {
      this.model_name = other.model_name;
    }
    if (other.isSetModel_number()) {
      this.model_number = other.model_number;
    }
    if (other.isSetColor()) {
      this.color = other.color;
    }
    this.risky = other.risky;
    if (other.isSetItemStatus()) {
      this.itemStatus = other.itemStatus;
    }
    this.suppressPriceFeed = other.suppressPriceFeed;
    this.suppressInventoryFeed = other.suppressInventoryFeed;
    this.weight = other.weight;
    this.mrp = other.mrp;
    this.websiteSellingPrice = other.websiteSellingPrice;
    this.maxNlc = other.maxNlc;
    if (other.isSetSkuAtSnapdeal()) {
      this.skuAtSnapdeal = other.skuAtSnapdeal;
    }
    if (other.isSetSupc()) {
      this.supc = other.supc;
    }
    this.lastUpdatedInventory = other.lastUpdatedInventory;
    this.lastUpdatedInventoryTimestamp = other.lastUpdatedInventoryTimestamp;
    this.shippingTime = other.shippingTime;
    this.courierCostMarketplace = other.courierCostMarketplace;
    this.isVoiListed = other.isVoiListed;
  }

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

  @Override
  public void clear() {
    setItem_idIsSet(false);
    this.item_id = 0;
    setWarehouseIdIsSet(false);
    this.warehouseId = 0;
    setExceptionPriceIsSet(false);
    this.exceptionPrice = 0.0;
    setIsListedOnSnapdealIsSet(false);
    this.isListedOnSnapdeal = false;
    setTransferPriceIsSet(false);
    this.transferPrice = 0.0;
    setSellingPriceIsSet(false);
    this.sellingPrice = 0.0;
    setCourierCostIsSet(false);
    this.courierCost = 0.0;
    setCommissionIsSet(false);
    this.commission = 0.0;
    setServiceTaxIsSet(false);
    this.serviceTax = 0.0;
    this.brand = null;
    this.model_name = null;
    this.model_number = null;
    this.color = null;
    setRiskyIsSet(false);
    this.risky = false;
    this.itemStatus = null;
    setSuppressPriceFeedIsSet(false);
    this.suppressPriceFeed = false;
    setSuppressInventoryFeedIsSet(false);
    this.suppressInventoryFeed = false;
    setWeightIsSet(false);
    this.weight = 0.0;
    setMrpIsSet(false);
    this.mrp = 0.0;
    setWebsiteSellingPriceIsSet(false);
    this.websiteSellingPrice = 0.0;
    setMaxNlcIsSet(false);
    this.maxNlc = 0.0;
    this.skuAtSnapdeal = null;
    this.supc = null;
    setLastUpdatedInventoryIsSet(false);
    this.lastUpdatedInventory = 0;
    setLastUpdatedInventoryTimestampIsSet(false);
    this.lastUpdatedInventoryTimestamp = 0;
    setShippingTimeIsSet(false);
    this.shippingTime = 0;
    setCourierCostMarketplaceIsSet(false);
    this.courierCostMarketplace = 0.0;
    setIsVoiListedIsSet(false);
    this.isVoiListed = false;
  }

  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 long getWarehouseId() {
    return this.warehouseId;
  }

  public void setWarehouseId(long warehouseId) {
    this.warehouseId = warehouseId;
    setWarehouseIdIsSet(true);
  }

  public void unsetWarehouseId() {
    __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
  }

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

  public void setWarehouseIdIsSet(boolean value) {
    __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
  }

  public double getExceptionPrice() {
    return this.exceptionPrice;
  }

  public void setExceptionPrice(double exceptionPrice) {
    this.exceptionPrice = exceptionPrice;
    setExceptionPriceIsSet(true);
  }

  public void unsetExceptionPrice() {
    __isset_bit_vector.clear(__EXCEPTIONPRICE_ISSET_ID);
  }

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

  public void setExceptionPriceIsSet(boolean value) {
    __isset_bit_vector.set(__EXCEPTIONPRICE_ISSET_ID, value);
  }

  public boolean isIsListedOnSnapdeal() {
    return this.isListedOnSnapdeal;
  }

  public void setIsListedOnSnapdeal(boolean isListedOnSnapdeal) {
    this.isListedOnSnapdeal = isListedOnSnapdeal;
    setIsListedOnSnapdealIsSet(true);
  }

  public void unsetIsListedOnSnapdeal() {
    __isset_bit_vector.clear(__ISLISTEDONSNAPDEAL_ISSET_ID);
  }

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

  public void setIsListedOnSnapdealIsSet(boolean value) {
    __isset_bit_vector.set(__ISLISTEDONSNAPDEAL_ISSET_ID, value);
  }

  public double getTransferPrice() {
    return this.transferPrice;
  }

  public void setTransferPrice(double transferPrice) {
    this.transferPrice = transferPrice;
    setTransferPriceIsSet(true);
  }

  public void unsetTransferPrice() {
    __isset_bit_vector.clear(__TRANSFERPRICE_ISSET_ID);
  }

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

  public void setTransferPriceIsSet(boolean value) {
    __isset_bit_vector.set(__TRANSFERPRICE_ISSET_ID, value);
  }

  public double getSellingPrice() {
    return this.sellingPrice;
  }

  public void setSellingPrice(double sellingPrice) {
    this.sellingPrice = sellingPrice;
    setSellingPriceIsSet(true);
  }

  public void unsetSellingPrice() {
    __isset_bit_vector.clear(__SELLINGPRICE_ISSET_ID);
  }

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

  public void setSellingPriceIsSet(boolean value) {
    __isset_bit_vector.set(__SELLINGPRICE_ISSET_ID, value);
  }

  public double getCourierCost() {
    return this.courierCost;
  }

  public void setCourierCost(double courierCost) {
    this.courierCost = courierCost;
    setCourierCostIsSet(true);
  }

  public void unsetCourierCost() {
    __isset_bit_vector.clear(__COURIERCOST_ISSET_ID);
  }

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

  public void setCourierCostIsSet(boolean value) {
    __isset_bit_vector.set(__COURIERCOST_ISSET_ID, value);
  }

  public double getCommission() {
    return this.commission;
  }

  public void setCommission(double commission) {
    this.commission = commission;
    setCommissionIsSet(true);
  }

  public void unsetCommission() {
    __isset_bit_vector.clear(__COMMISSION_ISSET_ID);
  }

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

  public void setCommissionIsSet(boolean value) {
    __isset_bit_vector.set(__COMMISSION_ISSET_ID, value);
  }

  public double getServiceTax() {
    return this.serviceTax;
  }

  public void setServiceTax(double serviceTax) {
    this.serviceTax = serviceTax;
    setServiceTaxIsSet(true);
  }

  public void unsetServiceTax() {
    __isset_bit_vector.clear(__SERVICETAX_ISSET_ID);
  }

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

  public void setServiceTaxIsSet(boolean value) {
    __isset_bit_vector.set(__SERVICETAX_ISSET_ID, value);
  }

  public String getBrand() {
    return this.brand;
  }

  public void setBrand(String brand) {
    this.brand = brand;
  }

  public void unsetBrand() {
    this.brand = null;
  }

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

  public void setBrandIsSet(boolean value) {
    if (!value) {
      this.brand = null;
    }
  }

  public String getModel_name() {
    return this.model_name;
  }

  public void setModel_name(String model_name) {
    this.model_name = model_name;
  }

  public void unsetModel_name() {
    this.model_name = null;
  }

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

  public void setModel_nameIsSet(boolean value) {
    if (!value) {
      this.model_name = null;
    }
  }

  public String getModel_number() {
    return this.model_number;
  }

  public void setModel_number(String model_number) {
    this.model_number = model_number;
  }

  public void unsetModel_number() {
    this.model_number = null;
  }

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

  public void setModel_numberIsSet(boolean value) {
    if (!value) {
      this.model_number = null;
    }
  }

  public String getColor() {
    return this.color;
  }

  public void setColor(String color) {
    this.color = color;
  }

  public void unsetColor() {
    this.color = null;
  }

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

  public void setColorIsSet(boolean value) {
    if (!value) {
      this.color = null;
    }
  }

  public boolean isRisky() {
    return this.risky;
  }

  public void setRisky(boolean risky) {
    this.risky = risky;
    setRiskyIsSet(true);
  }

  public void unsetRisky() {
    __isset_bit_vector.clear(__RISKY_ISSET_ID);
  }

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

  public void setRiskyIsSet(boolean value) {
    __isset_bit_vector.set(__RISKY_ISSET_ID, value);
  }

  /**
   * 
   * @see status
   */
  public status getItemStatus() {
    return this.itemStatus;
  }

  /**
   * 
   * @see status
   */
  public void setItemStatus(status itemStatus) {
    this.itemStatus = itemStatus;
  }

  public void unsetItemStatus() {
    this.itemStatus = null;
  }

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

  public void setItemStatusIsSet(boolean value) {
    if (!value) {
      this.itemStatus = null;
    }
  }

  public boolean isSuppressPriceFeed() {
    return this.suppressPriceFeed;
  }

  public void setSuppressPriceFeed(boolean suppressPriceFeed) {
    this.suppressPriceFeed = suppressPriceFeed;
    setSuppressPriceFeedIsSet(true);
  }

  public void unsetSuppressPriceFeed() {
    __isset_bit_vector.clear(__SUPPRESSPRICEFEED_ISSET_ID);
  }

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

  public void setSuppressPriceFeedIsSet(boolean value) {
    __isset_bit_vector.set(__SUPPRESSPRICEFEED_ISSET_ID, value);
  }

  public boolean isSuppressInventoryFeed() {
    return this.suppressInventoryFeed;
  }

  public void setSuppressInventoryFeed(boolean suppressInventoryFeed) {
    this.suppressInventoryFeed = suppressInventoryFeed;
    setSuppressInventoryFeedIsSet(true);
  }

  public void unsetSuppressInventoryFeed() {
    __isset_bit_vector.clear(__SUPPRESSINVENTORYFEED_ISSET_ID);
  }

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

  public void setSuppressInventoryFeedIsSet(boolean value) {
    __isset_bit_vector.set(__SUPPRESSINVENTORYFEED_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 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 double getWebsiteSellingPrice() {
    return this.websiteSellingPrice;
  }

  public void setWebsiteSellingPrice(double websiteSellingPrice) {
    this.websiteSellingPrice = websiteSellingPrice;
    setWebsiteSellingPriceIsSet(true);
  }

  public void unsetWebsiteSellingPrice() {
    __isset_bit_vector.clear(__WEBSITESELLINGPRICE_ISSET_ID);
  }

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

  public void setWebsiteSellingPriceIsSet(boolean value) {
    __isset_bit_vector.set(__WEBSITESELLINGPRICE_ISSET_ID, value);
  }

  public double getMaxNlc() {
    return this.maxNlc;
  }

  public void setMaxNlc(double maxNlc) {
    this.maxNlc = maxNlc;
    setMaxNlcIsSet(true);
  }

  public void unsetMaxNlc() {
    __isset_bit_vector.clear(__MAXNLC_ISSET_ID);
  }

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

  public void setMaxNlcIsSet(boolean value) {
    __isset_bit_vector.set(__MAXNLC_ISSET_ID, value);
  }

  public String getSkuAtSnapdeal() {
    return this.skuAtSnapdeal;
  }

  public void setSkuAtSnapdeal(String skuAtSnapdeal) {
    this.skuAtSnapdeal = skuAtSnapdeal;
  }

  public void unsetSkuAtSnapdeal() {
    this.skuAtSnapdeal = null;
  }

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

  public void setSkuAtSnapdealIsSet(boolean value) {
    if (!value) {
      this.skuAtSnapdeal = null;
    }
  }

  public String getSupc() {
    return this.supc;
  }

  public void setSupc(String supc) {
    this.supc = supc;
  }

  public void unsetSupc() {
    this.supc = null;
  }

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

  public void setSupcIsSet(boolean value) {
    if (!value) {
      this.supc = null;
    }
  }

  public long getLastUpdatedInventory() {
    return this.lastUpdatedInventory;
  }

  public void setLastUpdatedInventory(long lastUpdatedInventory) {
    this.lastUpdatedInventory = lastUpdatedInventory;
    setLastUpdatedInventoryIsSet(true);
  }

  public void unsetLastUpdatedInventory() {
    __isset_bit_vector.clear(__LASTUPDATEDINVENTORY_ISSET_ID);
  }

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

  public void setLastUpdatedInventoryIsSet(boolean value) {
    __isset_bit_vector.set(__LASTUPDATEDINVENTORY_ISSET_ID, value);
  }

  public long getLastUpdatedInventoryTimestamp() {
    return this.lastUpdatedInventoryTimestamp;
  }

  public void setLastUpdatedInventoryTimestamp(long lastUpdatedInventoryTimestamp) {
    this.lastUpdatedInventoryTimestamp = lastUpdatedInventoryTimestamp;
    setLastUpdatedInventoryTimestampIsSet(true);
  }

  public void unsetLastUpdatedInventoryTimestamp() {
    __isset_bit_vector.clear(__LASTUPDATEDINVENTORYTIMESTAMP_ISSET_ID);
  }

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

  public void setLastUpdatedInventoryTimestampIsSet(boolean value) {
    __isset_bit_vector.set(__LASTUPDATEDINVENTORYTIMESTAMP_ISSET_ID, value);
  }

  public long getShippingTime() {
    return this.shippingTime;
  }

  public void setShippingTime(long shippingTime) {
    this.shippingTime = shippingTime;
    setShippingTimeIsSet(true);
  }

  public void unsetShippingTime() {
    __isset_bit_vector.clear(__SHIPPINGTIME_ISSET_ID);
  }

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

  public void setShippingTimeIsSet(boolean value) {
    __isset_bit_vector.set(__SHIPPINGTIME_ISSET_ID, value);
  }

  public double getCourierCostMarketplace() {
    return this.courierCostMarketplace;
  }

  public void setCourierCostMarketplace(double courierCostMarketplace) {
    this.courierCostMarketplace = courierCostMarketplace;
    setCourierCostMarketplaceIsSet(true);
  }

  public void unsetCourierCostMarketplace() {
    __isset_bit_vector.clear(__COURIERCOSTMARKETPLACE_ISSET_ID);
  }

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

  public void setCourierCostMarketplaceIsSet(boolean value) {
    __isset_bit_vector.set(__COURIERCOSTMARKETPLACE_ISSET_ID, value);
  }

  public boolean isIsVoiListed() {
    return this.isVoiListed;
  }

  public void setIsVoiListed(boolean isVoiListed) {
    this.isVoiListed = isVoiListed;
    setIsVoiListedIsSet(true);
  }

  public void unsetIsVoiListed() {
    __isset_bit_vector.clear(__ISVOILISTED_ISSET_ID);
  }

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

  public void setIsVoiListedIsSet(boolean value) {
    __isset_bit_vector.set(__ISVOILISTED_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 WAREHOUSE_ID:
      if (value == null) {
        unsetWarehouseId();
      } else {
        setWarehouseId((Long)value);
      }
      break;

    case EXCEPTION_PRICE:
      if (value == null) {
        unsetExceptionPrice();
      } else {
        setExceptionPrice((Double)value);
      }
      break;

    case IS_LISTED_ON_SNAPDEAL:
      if (value == null) {
        unsetIsListedOnSnapdeal();
      } else {
        setIsListedOnSnapdeal((Boolean)value);
      }
      break;

    case TRANSFER_PRICE:
      if (value == null) {
        unsetTransferPrice();
      } else {
        setTransferPrice((Double)value);
      }
      break;

    case SELLING_PRICE:
      if (value == null) {
        unsetSellingPrice();
      } else {
        setSellingPrice((Double)value);
      }
      break;

    case COURIER_COST:
      if (value == null) {
        unsetCourierCost();
      } else {
        setCourierCost((Double)value);
      }
      break;

    case COMMISSION:
      if (value == null) {
        unsetCommission();
      } else {
        setCommission((Double)value);
      }
      break;

    case SERVICE_TAX:
      if (value == null) {
        unsetServiceTax();
      } else {
        setServiceTax((Double)value);
      }
      break;

    case BRAND:
      if (value == null) {
        unsetBrand();
      } else {
        setBrand((String)value);
      }
      break;

    case MODEL_NAME:
      if (value == null) {
        unsetModel_name();
      } else {
        setModel_name((String)value);
      }
      break;

    case MODEL_NUMBER:
      if (value == null) {
        unsetModel_number();
      } else {
        setModel_number((String)value);
      }
      break;

    case COLOR:
      if (value == null) {
        unsetColor();
      } else {
        setColor((String)value);
      }
      break;

    case RISKY:
      if (value == null) {
        unsetRisky();
      } else {
        setRisky((Boolean)value);
      }
      break;

    case ITEM_STATUS:
      if (value == null) {
        unsetItemStatus();
      } else {
        setItemStatus((status)value);
      }
      break;

    case SUPPRESS_PRICE_FEED:
      if (value == null) {
        unsetSuppressPriceFeed();
      } else {
        setSuppressPriceFeed((Boolean)value);
      }
      break;

    case SUPPRESS_INVENTORY_FEED:
      if (value == null) {
        unsetSuppressInventoryFeed();
      } else {
        setSuppressInventoryFeed((Boolean)value);
      }
      break;

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

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

    case WEBSITE_SELLING_PRICE:
      if (value == null) {
        unsetWebsiteSellingPrice();
      } else {
        setWebsiteSellingPrice((Double)value);
      }
      break;

    case MAX_NLC:
      if (value == null) {
        unsetMaxNlc();
      } else {
        setMaxNlc((Double)value);
      }
      break;

    case SKU_AT_SNAPDEAL:
      if (value == null) {
        unsetSkuAtSnapdeal();
      } else {
        setSkuAtSnapdeal((String)value);
      }
      break;

    case SUPC:
      if (value == null) {
        unsetSupc();
      } else {
        setSupc((String)value);
      }
      break;

    case LAST_UPDATED_INVENTORY:
      if (value == null) {
        unsetLastUpdatedInventory();
      } else {
        setLastUpdatedInventory((Long)value);
      }
      break;

    case LAST_UPDATED_INVENTORY_TIMESTAMP:
      if (value == null) {
        unsetLastUpdatedInventoryTimestamp();
      } else {
        setLastUpdatedInventoryTimestamp((Long)value);
      }
      break;

    case SHIPPING_TIME:
      if (value == null) {
        unsetShippingTime();
      } else {
        setShippingTime((Long)value);
      }
      break;

    case COURIER_COST_MARKETPLACE:
      if (value == null) {
        unsetCourierCostMarketplace();
      } else {
        setCourierCostMarketplace((Double)value);
      }
      break;

    case IS_VOI_LISTED:
      if (value == null) {
        unsetIsVoiListed();
      } else {
        setIsVoiListed((Boolean)value);
      }
      break;

    }
  }

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

    case WAREHOUSE_ID:
      return Long.valueOf(getWarehouseId());

    case EXCEPTION_PRICE:
      return Double.valueOf(getExceptionPrice());

    case IS_LISTED_ON_SNAPDEAL:
      return Boolean.valueOf(isIsListedOnSnapdeal());

    case TRANSFER_PRICE:
      return Double.valueOf(getTransferPrice());

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

    case COURIER_COST:
      return Double.valueOf(getCourierCost());

    case COMMISSION:
      return Double.valueOf(getCommission());

    case SERVICE_TAX:
      return Double.valueOf(getServiceTax());

    case BRAND:
      return getBrand();

    case MODEL_NAME:
      return getModel_name();

    case MODEL_NUMBER:
      return getModel_number();

    case COLOR:
      return getColor();

    case RISKY:
      return Boolean.valueOf(isRisky());

    case ITEM_STATUS:
      return getItemStatus();

    case SUPPRESS_PRICE_FEED:
      return Boolean.valueOf(isSuppressPriceFeed());

    case SUPPRESS_INVENTORY_FEED:
      return Boolean.valueOf(isSuppressInventoryFeed());

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

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

    case WEBSITE_SELLING_PRICE:
      return Double.valueOf(getWebsiteSellingPrice());

    case MAX_NLC:
      return Double.valueOf(getMaxNlc());

    case SKU_AT_SNAPDEAL:
      return getSkuAtSnapdeal();

    case SUPC:
      return getSupc();

    case LAST_UPDATED_INVENTORY:
      return Long.valueOf(getLastUpdatedInventory());

    case LAST_UPDATED_INVENTORY_TIMESTAMP:
      return Long.valueOf(getLastUpdatedInventoryTimestamp());

    case SHIPPING_TIME:
      return Long.valueOf(getShippingTime());

    case COURIER_COST_MARKETPLACE:
      return Double.valueOf(getCourierCostMarketplace());

    case IS_VOI_LISTED:
      return Boolean.valueOf(isIsVoiListed());

    }
    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 WAREHOUSE_ID:
      return isSetWarehouseId();
    case EXCEPTION_PRICE:
      return isSetExceptionPrice();
    case IS_LISTED_ON_SNAPDEAL:
      return isSetIsListedOnSnapdeal();
    case TRANSFER_PRICE:
      return isSetTransferPrice();
    case SELLING_PRICE:
      return isSetSellingPrice();
    case COURIER_COST:
      return isSetCourierCost();
    case COMMISSION:
      return isSetCommission();
    case SERVICE_TAX:
      return isSetServiceTax();
    case BRAND:
      return isSetBrand();
    case MODEL_NAME:
      return isSetModel_name();
    case MODEL_NUMBER:
      return isSetModel_number();
    case COLOR:
      return isSetColor();
    case RISKY:
      return isSetRisky();
    case ITEM_STATUS:
      return isSetItemStatus();
    case SUPPRESS_PRICE_FEED:
      return isSetSuppressPriceFeed();
    case SUPPRESS_INVENTORY_FEED:
      return isSetSuppressInventoryFeed();
    case WEIGHT:
      return isSetWeight();
    case MRP:
      return isSetMrp();
    case WEBSITE_SELLING_PRICE:
      return isSetWebsiteSellingPrice();
    case MAX_NLC:
      return isSetMaxNlc();
    case SKU_AT_SNAPDEAL:
      return isSetSkuAtSnapdeal();
    case SUPC:
      return isSetSupc();
    case LAST_UPDATED_INVENTORY:
      return isSetLastUpdatedInventory();
    case LAST_UPDATED_INVENTORY_TIMESTAMP:
      return isSetLastUpdatedInventoryTimestamp();
    case SHIPPING_TIME:
      return isSetShippingTime();
    case COURIER_COST_MARKETPLACE:
      return isSetCourierCostMarketplace();
    case IS_VOI_LISTED:
      return isSetIsVoiListed();
    }
    throw new IllegalStateException();
  }

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

  public boolean equals(SnapdealItemDetails 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_warehouseId = true;
    boolean that_present_warehouseId = true;
    if (this_present_warehouseId || that_present_warehouseId) {
      if (!(this_present_warehouseId && that_present_warehouseId))
        return false;
      if (this.warehouseId != that.warehouseId)
        return false;
    }

    boolean this_present_exceptionPrice = true;
    boolean that_present_exceptionPrice = true;
    if (this_present_exceptionPrice || that_present_exceptionPrice) {
      if (!(this_present_exceptionPrice && that_present_exceptionPrice))
        return false;
      if (this.exceptionPrice != that.exceptionPrice)
        return false;
    }

    boolean this_present_isListedOnSnapdeal = true;
    boolean that_present_isListedOnSnapdeal = true;
    if (this_present_isListedOnSnapdeal || that_present_isListedOnSnapdeal) {
      if (!(this_present_isListedOnSnapdeal && that_present_isListedOnSnapdeal))
        return false;
      if (this.isListedOnSnapdeal != that.isListedOnSnapdeal)
        return false;
    }

    boolean this_present_transferPrice = true;
    boolean that_present_transferPrice = true;
    if (this_present_transferPrice || that_present_transferPrice) {
      if (!(this_present_transferPrice && that_present_transferPrice))
        return false;
      if (this.transferPrice != that.transferPrice)
        return false;
    }

    boolean this_present_sellingPrice = true;
    boolean that_present_sellingPrice = true;
    if (this_present_sellingPrice || that_present_sellingPrice) {
      if (!(this_present_sellingPrice && that_present_sellingPrice))
        return false;
      if (this.sellingPrice != that.sellingPrice)
        return false;
    }

    boolean this_present_courierCost = true;
    boolean that_present_courierCost = true;
    if (this_present_courierCost || that_present_courierCost) {
      if (!(this_present_courierCost && that_present_courierCost))
        return false;
      if (this.courierCost != that.courierCost)
        return false;
    }

    boolean this_present_commission = true;
    boolean that_present_commission = true;
    if (this_present_commission || that_present_commission) {
      if (!(this_present_commission && that_present_commission))
        return false;
      if (this.commission != that.commission)
        return false;
    }

    boolean this_present_serviceTax = true;
    boolean that_present_serviceTax = true;
    if (this_present_serviceTax || that_present_serviceTax) {
      if (!(this_present_serviceTax && that_present_serviceTax))
        return false;
      if (this.serviceTax != that.serviceTax)
        return false;
    }

    boolean this_present_brand = true && this.isSetBrand();
    boolean that_present_brand = true && that.isSetBrand();
    if (this_present_brand || that_present_brand) {
      if (!(this_present_brand && that_present_brand))
        return false;
      if (!this.brand.equals(that.brand))
        return false;
    }

    boolean this_present_model_name = true && this.isSetModel_name();
    boolean that_present_model_name = true && that.isSetModel_name();
    if (this_present_model_name || that_present_model_name) {
      if (!(this_present_model_name && that_present_model_name))
        return false;
      if (!this.model_name.equals(that.model_name))
        return false;
    }

    boolean this_present_model_number = true && this.isSetModel_number();
    boolean that_present_model_number = true && that.isSetModel_number();
    if (this_present_model_number || that_present_model_number) {
      if (!(this_present_model_number && that_present_model_number))
        return false;
      if (!this.model_number.equals(that.model_number))
        return false;
    }

    boolean this_present_color = true && this.isSetColor();
    boolean that_present_color = true && that.isSetColor();
    if (this_present_color || that_present_color) {
      if (!(this_present_color && that_present_color))
        return false;
      if (!this.color.equals(that.color))
        return false;
    }

    boolean this_present_risky = true;
    boolean that_present_risky = true;
    if (this_present_risky || that_present_risky) {
      if (!(this_present_risky && that_present_risky))
        return false;
      if (this.risky != that.risky)
        return false;
    }

    boolean this_present_itemStatus = true && this.isSetItemStatus();
    boolean that_present_itemStatus = true && that.isSetItemStatus();
    if (this_present_itemStatus || that_present_itemStatus) {
      if (!(this_present_itemStatus && that_present_itemStatus))
        return false;
      if (!this.itemStatus.equals(that.itemStatus))
        return false;
    }

    boolean this_present_suppressPriceFeed = true;
    boolean that_present_suppressPriceFeed = true;
    if (this_present_suppressPriceFeed || that_present_suppressPriceFeed) {
      if (!(this_present_suppressPriceFeed && that_present_suppressPriceFeed))
        return false;
      if (this.suppressPriceFeed != that.suppressPriceFeed)
        return false;
    }

    boolean this_present_suppressInventoryFeed = true;
    boolean that_present_suppressInventoryFeed = true;
    if (this_present_suppressInventoryFeed || that_present_suppressInventoryFeed) {
      if (!(this_present_suppressInventoryFeed && that_present_suppressInventoryFeed))
        return false;
      if (this.suppressInventoryFeed != that.suppressInventoryFeed)
        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;
    }

    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_websiteSellingPrice = true;
    boolean that_present_websiteSellingPrice = true;
    if (this_present_websiteSellingPrice || that_present_websiteSellingPrice) {
      if (!(this_present_websiteSellingPrice && that_present_websiteSellingPrice))
        return false;
      if (this.websiteSellingPrice != that.websiteSellingPrice)
        return false;
    }

    boolean this_present_maxNlc = true;
    boolean that_present_maxNlc = true;
    if (this_present_maxNlc || that_present_maxNlc) {
      if (!(this_present_maxNlc && that_present_maxNlc))
        return false;
      if (this.maxNlc != that.maxNlc)
        return false;
    }

    boolean this_present_skuAtSnapdeal = true && this.isSetSkuAtSnapdeal();
    boolean that_present_skuAtSnapdeal = true && that.isSetSkuAtSnapdeal();
    if (this_present_skuAtSnapdeal || that_present_skuAtSnapdeal) {
      if (!(this_present_skuAtSnapdeal && that_present_skuAtSnapdeal))
        return false;
      if (!this.skuAtSnapdeal.equals(that.skuAtSnapdeal))
        return false;
    }

    boolean this_present_supc = true && this.isSetSupc();
    boolean that_present_supc = true && that.isSetSupc();
    if (this_present_supc || that_present_supc) {
      if (!(this_present_supc && that_present_supc))
        return false;
      if (!this.supc.equals(that.supc))
        return false;
    }

    boolean this_present_lastUpdatedInventory = true;
    boolean that_present_lastUpdatedInventory = true;
    if (this_present_lastUpdatedInventory || that_present_lastUpdatedInventory) {
      if (!(this_present_lastUpdatedInventory && that_present_lastUpdatedInventory))
        return false;
      if (this.lastUpdatedInventory != that.lastUpdatedInventory)
        return false;
    }

    boolean this_present_lastUpdatedInventoryTimestamp = true;
    boolean that_present_lastUpdatedInventoryTimestamp = true;
    if (this_present_lastUpdatedInventoryTimestamp || that_present_lastUpdatedInventoryTimestamp) {
      if (!(this_present_lastUpdatedInventoryTimestamp && that_present_lastUpdatedInventoryTimestamp))
        return false;
      if (this.lastUpdatedInventoryTimestamp != that.lastUpdatedInventoryTimestamp)
        return false;
    }

    boolean this_present_shippingTime = true;
    boolean that_present_shippingTime = true;
    if (this_present_shippingTime || that_present_shippingTime) {
      if (!(this_present_shippingTime && that_present_shippingTime))
        return false;
      if (this.shippingTime != that.shippingTime)
        return false;
    }

    boolean this_present_courierCostMarketplace = true;
    boolean that_present_courierCostMarketplace = true;
    if (this_present_courierCostMarketplace || that_present_courierCostMarketplace) {
      if (!(this_present_courierCostMarketplace && that_present_courierCostMarketplace))
        return false;
      if (this.courierCostMarketplace != that.courierCostMarketplace)
        return false;
    }

    boolean this_present_isVoiListed = true;
    boolean that_present_isVoiListed = true;
    if (this_present_isVoiListed || that_present_isVoiListed) {
      if (!(this_present_isVoiListed && that_present_isVoiListed))
        return false;
      if (this.isVoiListed != that.isVoiListed)
        return false;
    }

    return true;
  }

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

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

    int lastComparison = 0;
    SnapdealItemDetails typedOther = (SnapdealItemDetails)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(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetWarehouseId()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetExceptionPrice()).compareTo(typedOther.isSetExceptionPrice());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetExceptionPrice()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exceptionPrice, typedOther.exceptionPrice);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetIsListedOnSnapdeal()).compareTo(typedOther.isSetIsListedOnSnapdeal());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetIsListedOnSnapdeal()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isListedOnSnapdeal, typedOther.isListedOnSnapdeal);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetTransferPrice()).compareTo(typedOther.isSetTransferPrice());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetTransferPrice()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferPrice, typedOther.transferPrice);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetSellingPrice()).compareTo(typedOther.isSetSellingPrice());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetSellingPrice()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sellingPrice, typedOther.sellingPrice);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetCourierCost()).compareTo(typedOther.isSetCourierCost());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetCourierCost()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.courierCost, typedOther.courierCost);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetCommission()).compareTo(typedOther.isSetCommission());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetCommission()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.commission, typedOther.commission);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetServiceTax()).compareTo(typedOther.isSetServiceTax());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetServiceTax()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceTax, typedOther.serviceTax);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetBrand()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetModel_name()).compareTo(typedOther.isSetModel_name());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetModel_name()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.model_name, typedOther.model_name);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetModel_number()).compareTo(typedOther.isSetModel_number());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetModel_number()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.model_number, typedOther.model_number);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetColor()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetRisky()).compareTo(typedOther.isSetRisky());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetRisky()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.risky, typedOther.risky);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetItemStatus()).compareTo(typedOther.isSetItemStatus());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetItemStatus()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemStatus, typedOther.itemStatus);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetSuppressPriceFeed()).compareTo(typedOther.isSetSuppressPriceFeed());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetSuppressPriceFeed()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suppressPriceFeed, typedOther.suppressPriceFeed);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetSuppressInventoryFeed()).compareTo(typedOther.isSetSuppressInventoryFeed());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetSuppressInventoryFeed()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suppressInventoryFeed, typedOther.suppressInventoryFeed);
      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;
      }
    }
    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(isSetWebsiteSellingPrice()).compareTo(typedOther.isSetWebsiteSellingPrice());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetWebsiteSellingPrice()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.websiteSellingPrice, typedOther.websiteSellingPrice);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetMaxNlc()).compareTo(typedOther.isSetMaxNlc());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetMaxNlc()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxNlc, typedOther.maxNlc);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetSkuAtSnapdeal()).compareTo(typedOther.isSetSkuAtSnapdeal());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetSkuAtSnapdeal()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skuAtSnapdeal, typedOther.skuAtSnapdeal);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetSupc()).compareTo(typedOther.isSetSupc());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetSupc()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.supc, typedOther.supc);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetLastUpdatedInventory()).compareTo(typedOther.isSetLastUpdatedInventory());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetLastUpdatedInventory()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastUpdatedInventory, typedOther.lastUpdatedInventory);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetLastUpdatedInventoryTimestamp()).compareTo(typedOther.isSetLastUpdatedInventoryTimestamp());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetLastUpdatedInventoryTimestamp()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastUpdatedInventoryTimestamp, typedOther.lastUpdatedInventoryTimestamp);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetShippingTime()).compareTo(typedOther.isSetShippingTime());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetShippingTime()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shippingTime, typedOther.shippingTime);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetCourierCostMarketplace()).compareTo(typedOther.isSetCourierCostMarketplace());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetCourierCostMarketplace()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.courierCostMarketplace, typedOther.courierCostMarketplace);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetIsVoiListed()).compareTo(typedOther.isSetIsVoiListed());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetIsVoiListed()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isVoiListed, typedOther.isVoiListed);
      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: // WAREHOUSE_ID
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.warehouseId = iprot.readI64();
            setWarehouseIdIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 3: // EXCEPTION_PRICE
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.exceptionPrice = iprot.readDouble();
            setExceptionPriceIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 4: // IS_LISTED_ON_SNAPDEAL
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
            this.isListedOnSnapdeal = iprot.readBool();
            setIsListedOnSnapdealIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 5: // TRANSFER_PRICE
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.transferPrice = iprot.readDouble();
            setTransferPriceIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 6: // SELLING_PRICE
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.sellingPrice = iprot.readDouble();
            setSellingPriceIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 7: // COURIER_COST
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.courierCost = iprot.readDouble();
            setCourierCostIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 8: // COMMISSION
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.commission = iprot.readDouble();
            setCommissionIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 9: // SERVICE_TAX
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.serviceTax = iprot.readDouble();
            setServiceTaxIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 10: // BRAND
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.brand = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 11: // MODEL_NAME
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.model_name = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 12: // MODEL_NUMBER
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.model_number = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 13: // COLOR
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.color = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 14: // RISKY
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
            this.risky = iprot.readBool();
            setRiskyIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 15: // ITEM_STATUS
          if (field.type == org.apache.thrift.protocol.TType.I32) {
            this.itemStatus = status.findByValue(iprot.readI32());
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 16: // SUPPRESS_PRICE_FEED
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
            this.suppressPriceFeed = iprot.readBool();
            setSuppressPriceFeedIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 17: // SUPPRESS_INVENTORY_FEED
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
            this.suppressInventoryFeed = iprot.readBool();
            setSuppressInventoryFeedIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 18: // 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;
        case 19: // 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 20: // WEBSITE_SELLING_PRICE
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.websiteSellingPrice = iprot.readDouble();
            setWebsiteSellingPriceIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 21: // MAX_NLC
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.maxNlc = iprot.readDouble();
            setMaxNlcIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 22: // SKU_AT_SNAPDEAL
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.skuAtSnapdeal = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 23: // SUPC
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.supc = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 24: // LAST_UPDATED_INVENTORY
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.lastUpdatedInventory = iprot.readI64();
            setLastUpdatedInventoryIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 25: // LAST_UPDATED_INVENTORY_TIMESTAMP
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.lastUpdatedInventoryTimestamp = iprot.readI64();
            setLastUpdatedInventoryTimestampIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 26: // SHIPPING_TIME
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.shippingTime = iprot.readI64();
            setShippingTimeIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 27: // COURIER_COST_MARKETPLACE
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.courierCostMarketplace = iprot.readDouble();
            setCourierCostMarketplaceIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 28: // IS_VOI_LISTED
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
            this.isVoiListed = iprot.readBool();
            setIsVoiListedIsSet(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(WAREHOUSE_ID_FIELD_DESC);
    oprot.writeI64(this.warehouseId);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(EXCEPTION_PRICE_FIELD_DESC);
    oprot.writeDouble(this.exceptionPrice);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(IS_LISTED_ON_SNAPDEAL_FIELD_DESC);
    oprot.writeBool(this.isListedOnSnapdeal);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(TRANSFER_PRICE_FIELD_DESC);
    oprot.writeDouble(this.transferPrice);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(SELLING_PRICE_FIELD_DESC);
    oprot.writeDouble(this.sellingPrice);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(COURIER_COST_FIELD_DESC);
    oprot.writeDouble(this.courierCost);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(COMMISSION_FIELD_DESC);
    oprot.writeDouble(this.commission);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(SERVICE_TAX_FIELD_DESC);
    oprot.writeDouble(this.serviceTax);
    oprot.writeFieldEnd();
    if (this.brand != null) {
      oprot.writeFieldBegin(BRAND_FIELD_DESC);
      oprot.writeString(this.brand);
      oprot.writeFieldEnd();
    }
    if (this.model_name != null) {
      oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);
      oprot.writeString(this.model_name);
      oprot.writeFieldEnd();
    }
    if (this.model_number != null) {
      oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
      oprot.writeString(this.model_number);
      oprot.writeFieldEnd();
    }
    if (this.color != null) {
      oprot.writeFieldBegin(COLOR_FIELD_DESC);
      oprot.writeString(this.color);
      oprot.writeFieldEnd();
    }
    oprot.writeFieldBegin(RISKY_FIELD_DESC);
    oprot.writeBool(this.risky);
    oprot.writeFieldEnd();
    if (this.itemStatus != null) {
      oprot.writeFieldBegin(ITEM_STATUS_FIELD_DESC);
      oprot.writeI32(this.itemStatus.getValue());
      oprot.writeFieldEnd();
    }
    oprot.writeFieldBegin(SUPPRESS_PRICE_FEED_FIELD_DESC);
    oprot.writeBool(this.suppressPriceFeed);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(SUPPRESS_INVENTORY_FEED_FIELD_DESC);
    oprot.writeBool(this.suppressInventoryFeed);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(WEIGHT_FIELD_DESC);
    oprot.writeDouble(this.weight);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(MRP_FIELD_DESC);
    oprot.writeDouble(this.mrp);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(WEBSITE_SELLING_PRICE_FIELD_DESC);
    oprot.writeDouble(this.websiteSellingPrice);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(MAX_NLC_FIELD_DESC);
    oprot.writeDouble(this.maxNlc);
    oprot.writeFieldEnd();
    if (this.skuAtSnapdeal != null) {
      oprot.writeFieldBegin(SKU_AT_SNAPDEAL_FIELD_DESC);
      oprot.writeString(this.skuAtSnapdeal);
      oprot.writeFieldEnd();
    }
    if (this.supc != null) {
      oprot.writeFieldBegin(SUPC_FIELD_DESC);
      oprot.writeString(this.supc);
      oprot.writeFieldEnd();
    }
    oprot.writeFieldBegin(LAST_UPDATED_INVENTORY_FIELD_DESC);
    oprot.writeI64(this.lastUpdatedInventory);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(LAST_UPDATED_INVENTORY_TIMESTAMP_FIELD_DESC);
    oprot.writeI64(this.lastUpdatedInventoryTimestamp);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(SHIPPING_TIME_FIELD_DESC);
    oprot.writeI64(this.shippingTime);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(COURIER_COST_MARKETPLACE_FIELD_DESC);
    oprot.writeDouble(this.courierCostMarketplace);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(IS_VOI_LISTED_FIELD_DESC);
    oprot.writeBool(this.isVoiListed);
    oprot.writeFieldEnd();
    oprot.writeFieldStop();
    oprot.writeStructEnd();
  }

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

    sb.append("item_id:");
    sb.append(this.item_id);
    first = false;
    if (!first) sb.append(", ");
    sb.append("warehouseId:");
    sb.append(this.warehouseId);
    first = false;
    if (!first) sb.append(", ");
    sb.append("exceptionPrice:");
    sb.append(this.exceptionPrice);
    first = false;
    if (!first) sb.append(", ");
    sb.append("isListedOnSnapdeal:");
    sb.append(this.isListedOnSnapdeal);
    first = false;
    if (!first) sb.append(", ");
    sb.append("transferPrice:");
    sb.append(this.transferPrice);
    first = false;
    if (!first) sb.append(", ");
    sb.append("sellingPrice:");
    sb.append(this.sellingPrice);
    first = false;
    if (!first) sb.append(", ");
    sb.append("courierCost:");
    sb.append(this.courierCost);
    first = false;
    if (!first) sb.append(", ");
    sb.append("commission:");
    sb.append(this.commission);
    first = false;
    if (!first) sb.append(", ");
    sb.append("serviceTax:");
    sb.append(this.serviceTax);
    first = false;
    if (!first) sb.append(", ");
    sb.append("brand:");
    if (this.brand == null) {
      sb.append("null");
    } else {
      sb.append(this.brand);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("model_name:");
    if (this.model_name == null) {
      sb.append("null");
    } else {
      sb.append(this.model_name);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("model_number:");
    if (this.model_number == null) {
      sb.append("null");
    } else {
      sb.append(this.model_number);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("color:");
    if (this.color == null) {
      sb.append("null");
    } else {
      sb.append(this.color);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("risky:");
    sb.append(this.risky);
    first = false;
    if (!first) sb.append(", ");
    sb.append("itemStatus:");
    if (this.itemStatus == null) {
      sb.append("null");
    } else {
      sb.append(this.itemStatus);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("suppressPriceFeed:");
    sb.append(this.suppressPriceFeed);
    first = false;
    if (!first) sb.append(", ");
    sb.append("suppressInventoryFeed:");
    sb.append(this.suppressInventoryFeed);
    first = false;
    if (!first) sb.append(", ");
    sb.append("weight:");
    sb.append(this.weight);
    first = false;
    if (!first) sb.append(", ");
    sb.append("mrp:");
    sb.append(this.mrp);
    first = false;
    if (!first) sb.append(", ");
    sb.append("websiteSellingPrice:");
    sb.append(this.websiteSellingPrice);
    first = false;
    if (!first) sb.append(", ");
    sb.append("maxNlc:");
    sb.append(this.maxNlc);
    first = false;
    if (!first) sb.append(", ");
    sb.append("skuAtSnapdeal:");
    if (this.skuAtSnapdeal == null) {
      sb.append("null");
    } else {
      sb.append(this.skuAtSnapdeal);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("supc:");
    if (this.supc == null) {
      sb.append("null");
    } else {
      sb.append(this.supc);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("lastUpdatedInventory:");
    sb.append(this.lastUpdatedInventory);
    first = false;
    if (!first) sb.append(", ");
    sb.append("lastUpdatedInventoryTimestamp:");
    sb.append(this.lastUpdatedInventoryTimestamp);
    first = false;
    if (!first) sb.append(", ");
    sb.append("shippingTime:");
    sb.append(this.shippingTime);
    first = false;
    if (!first) sb.append(", ");
    sb.append("courierCostMarketplace:");
    sb.append(this.courierCostMarketplace);
    first = false;
    if (!first) sb.append(", ");
    sb.append("isVoiListed:");
    sb.append(this.isVoiListed);
    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);
    }
  }

}