Subversion Repositories SmartDukaan

Rev

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

  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_FLIPKART_FIELD_DESC = new org.apache.thrift.protocol.TField("isListedOnFlipkart", org.apache.thrift.protocol.TType.BOOL, (short)4);
  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)5);
  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)6);
  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)7);
  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)8);
  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)9);
  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)10);
  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)11);
  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)12);
  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)13);
  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)14);
  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)15);
  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)16);
  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)17);
  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)18);
  private static final org.apache.thrift.protocol.TField SKU_AT_FLIPKART_FIELD_DESC = new org.apache.thrift.protocol.TField("skuAtFlipkart", org.apache.thrift.protocol.TType.STRING, (short)19);
  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)20);
  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)21);
  private static final org.apache.thrift.protocol.TField FLIPKART_SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("flipkartSerialNumber", org.apache.thrift.protocol.TType.STRING, (short)22);
  private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.I64, (short)23);
  private static final org.apache.thrift.protocol.TField IS_FA_LISTED_FIELD_DESC = new org.apache.thrift.protocol.TField("isFaListed", org.apache.thrift.protocol.TType.BOOL, (short)24);

  private long item_id; // required
  private long warehouseId; // required
  private double exceptionPrice; // required
  private boolean isListedOnFlipkart; // 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 skuAtFlipkart; // required
  private long lastUpdatedInventory; // required
  private long lastUpdatedInventoryTimestamp; // required
  private String flipkartSerialNumber; // required
  private long category; // required
  private boolean isFaListed; // 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_FLIPKART((short)4, "isListedOnFlipkart"),
    COMMISSION((short)5, "commission"),
    SERVICE_TAX((short)6, "serviceTax"),
    BRAND((short)7, "brand"),
    MODEL_NAME((short)8, "model_name"),
    MODEL_NUMBER((short)9, "model_number"),
    COLOR((short)10, "color"),
    RISKY((short)11, "risky"),
    /**
     * 
     * @see status
     */
    ITEM_STATUS((short)12, "itemStatus"),
    SUPPRESS_PRICE_FEED((short)13, "suppressPriceFeed"),
    SUPPRESS_INVENTORY_FEED((short)14, "suppressInventoryFeed"),
    WEIGHT((short)15, "weight"),
    MRP((short)16, "mrp"),
    WEBSITE_SELLING_PRICE((short)17, "websiteSellingPrice"),
    MAX_NLC((short)18, "maxNlc"),
    SKU_AT_FLIPKART((short)19, "skuAtFlipkart"),
    LAST_UPDATED_INVENTORY((short)20, "lastUpdatedInventory"),
    LAST_UPDATED_INVENTORY_TIMESTAMP((short)21, "lastUpdatedInventoryTimestamp"),
    FLIPKART_SERIAL_NUMBER((short)22, "flipkartSerialNumber"),
    CATEGORY((short)23, "category"),
    IS_FA_LISTED((short)24, "isFaListed");

    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_FLIPKART
          return IS_LISTED_ON_FLIPKART;
        case 5: // COMMISSION
          return COMMISSION;
        case 6: // SERVICE_TAX
          return SERVICE_TAX;
        case 7: // BRAND
          return BRAND;
        case 8: // MODEL_NAME
          return MODEL_NAME;
        case 9: // MODEL_NUMBER
          return MODEL_NUMBER;
        case 10: // COLOR
          return COLOR;
        case 11: // RISKY
          return RISKY;
        case 12: // ITEM_STATUS
          return ITEM_STATUS;
        case 13: // SUPPRESS_PRICE_FEED
          return SUPPRESS_PRICE_FEED;
        case 14: // SUPPRESS_INVENTORY_FEED
          return SUPPRESS_INVENTORY_FEED;
        case 15: // WEIGHT
          return WEIGHT;
        case 16: // MRP
          return MRP;
        case 17: // WEBSITE_SELLING_PRICE
          return WEBSITE_SELLING_PRICE;
        case 18: // MAX_NLC
          return MAX_NLC;
        case 19: // SKU_AT_FLIPKART
          return SKU_AT_FLIPKART;
        case 20: // LAST_UPDATED_INVENTORY
          return LAST_UPDATED_INVENTORY;
        case 21: // LAST_UPDATED_INVENTORY_TIMESTAMP
          return LAST_UPDATED_INVENTORY_TIMESTAMP;
        case 22: // FLIPKART_SERIAL_NUMBER
          return FLIPKART_SERIAL_NUMBER;
        case 23: // CATEGORY
          return CATEGORY;
        case 24: // IS_FA_LISTED
          return IS_FA_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 __ISLISTEDONFLIPKART_ISSET_ID = 3;
  private static final int __COMMISSION_ISSET_ID = 4;
  private static final int __SERVICETAX_ISSET_ID = 5;
  private static final int __RISKY_ISSET_ID = 6;
  private static final int __SUPPRESSPRICEFEED_ISSET_ID = 7;
  private static final int __SUPPRESSINVENTORYFEED_ISSET_ID = 8;
  private static final int __WEIGHT_ISSET_ID = 9;
  private static final int __MRP_ISSET_ID = 10;
  private static final int __WEBSITESELLINGPRICE_ISSET_ID = 11;
  private static final int __MAXNLC_ISSET_ID = 12;
  private static final int __LASTUPDATEDINVENTORY_ISSET_ID = 13;
  private static final int __LASTUPDATEDINVENTORYTIMESTAMP_ISSET_ID = 14;
  private static final int __CATEGORY_ISSET_ID = 15;
  private static final int __ISFALISTED_ISSET_ID = 16;
  private BitSet __isset_bit_vector = new BitSet(17);

  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_FLIPKART, new org.apache.thrift.meta_data.FieldMetaData("isListedOnFlipkart", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    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_FLIPKART, new org.apache.thrift.meta_data.FieldMetaData("skuAtFlipkart", 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.FLIPKART_SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("flipkartSerialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.IS_FA_LISTED, new org.apache.thrift.meta_data.FieldMetaData("isFaListed", 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(FlipkartItemDetails.class, metaDataMap);
  }

  public FlipkartItemDetails() {
  }

  public FlipkartItemDetails(
    long item_id,
    long warehouseId,
    double exceptionPrice,
    boolean isListedOnFlipkart,
    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 skuAtFlipkart,
    long lastUpdatedInventory,
    long lastUpdatedInventoryTimestamp,
    String flipkartSerialNumber,
    long category,
    boolean isFaListed)
  {
    this();
    this.item_id = item_id;
    setItem_idIsSet(true);
    this.warehouseId = warehouseId;
    setWarehouseIdIsSet(true);
    this.exceptionPrice = exceptionPrice;
    setExceptionPriceIsSet(true);
    this.isListedOnFlipkart = isListedOnFlipkart;
    setIsListedOnFlipkartIsSet(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.skuAtFlipkart = skuAtFlipkart;
    this.lastUpdatedInventory = lastUpdatedInventory;
    setLastUpdatedInventoryIsSet(true);
    this.lastUpdatedInventoryTimestamp = lastUpdatedInventoryTimestamp;
    setLastUpdatedInventoryTimestampIsSet(true);
    this.flipkartSerialNumber = flipkartSerialNumber;
    this.category = category;
    setCategoryIsSet(true);
    this.isFaListed = isFaListed;
    setIsFaListedIsSet(true);
  }

  /**
   * Performs a deep copy on <i>other</i>.
   */
  public FlipkartItemDetails(FlipkartItemDetails 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.isListedOnFlipkart = other.isListedOnFlipkart;
    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.isSetSkuAtFlipkart()) {
      this.skuAtFlipkart = other.skuAtFlipkart;
    }
    this.lastUpdatedInventory = other.lastUpdatedInventory;
    this.lastUpdatedInventoryTimestamp = other.lastUpdatedInventoryTimestamp;
    if (other.isSetFlipkartSerialNumber()) {
      this.flipkartSerialNumber = other.flipkartSerialNumber;
    }
    this.category = other.category;
    this.isFaListed = other.isFaListed;
  }

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

  @Override
  public void clear() {
    setItem_idIsSet(false);
    this.item_id = 0;
    setWarehouseIdIsSet(false);
    this.warehouseId = 0;
    setExceptionPriceIsSet(false);
    this.exceptionPrice = 0.0;
    setIsListedOnFlipkartIsSet(false);
    this.isListedOnFlipkart = false;
    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.skuAtFlipkart = null;
    setLastUpdatedInventoryIsSet(false);
    this.lastUpdatedInventory = 0;
    setLastUpdatedInventoryTimestampIsSet(false);
    this.lastUpdatedInventoryTimestamp = 0;
    this.flipkartSerialNumber = null;
    setCategoryIsSet(false);
    this.category = 0;
    setIsFaListedIsSet(false);
    this.isFaListed = 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 isIsListedOnFlipkart() {
    return this.isListedOnFlipkart;
  }

  public void setIsListedOnFlipkart(boolean isListedOnFlipkart) {
    this.isListedOnFlipkart = isListedOnFlipkart;
    setIsListedOnFlipkartIsSet(true);
  }

  public void unsetIsListedOnFlipkart() {
    __isset_bit_vector.clear(__ISLISTEDONFLIPKART_ISSET_ID);
  }

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

  public void setIsListedOnFlipkartIsSet(boolean value) {
    __isset_bit_vector.set(__ISLISTEDONFLIPKART_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 getSkuAtFlipkart() {
    return this.skuAtFlipkart;
  }

  public void setSkuAtFlipkart(String skuAtFlipkart) {
    this.skuAtFlipkart = skuAtFlipkart;
  }

  public void unsetSkuAtFlipkart() {
    this.skuAtFlipkart = null;
  }

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

  public void setSkuAtFlipkartIsSet(boolean value) {
    if (!value) {
      this.skuAtFlipkart = 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 String getFlipkartSerialNumber() {
    return this.flipkartSerialNumber;
  }

  public void setFlipkartSerialNumber(String flipkartSerialNumber) {
    this.flipkartSerialNumber = flipkartSerialNumber;
  }

  public void unsetFlipkartSerialNumber() {
    this.flipkartSerialNumber = null;
  }

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

  public void setFlipkartSerialNumberIsSet(boolean value) {
    if (!value) {
      this.flipkartSerialNumber = null;
    }
  }

  public long getCategory() {
    return this.category;
  }

  public void setCategory(long category) {
    this.category = category;
    setCategoryIsSet(true);
  }

  public void unsetCategory() {
    __isset_bit_vector.clear(__CATEGORY_ISSET_ID);
  }

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

  public void setCategoryIsSet(boolean value) {
    __isset_bit_vector.set(__CATEGORY_ISSET_ID, value);
  }

  public boolean isIsFaListed() {
    return this.isFaListed;
  }

  public void setIsFaListed(boolean isFaListed) {
    this.isFaListed = isFaListed;
    setIsFaListedIsSet(true);
  }

  public void unsetIsFaListed() {
    __isset_bit_vector.clear(__ISFALISTED_ISSET_ID);
  }

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

  public void setIsFaListedIsSet(boolean value) {
    __isset_bit_vector.set(__ISFALISTED_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_FLIPKART:
      if (value == null) {
        unsetIsListedOnFlipkart();
      } else {
        setIsListedOnFlipkart((Boolean)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_FLIPKART:
      if (value == null) {
        unsetSkuAtFlipkart();
      } else {
        setSkuAtFlipkart((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 FLIPKART_SERIAL_NUMBER:
      if (value == null) {
        unsetFlipkartSerialNumber();
      } else {
        setFlipkartSerialNumber((String)value);
      }
      break;

    case CATEGORY:
      if (value == null) {
        unsetCategory();
      } else {
        setCategory((Long)value);
      }
      break;

    case IS_FA_LISTED:
      if (value == null) {
        unsetIsFaListed();
      } else {
        setIsFaListed((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_FLIPKART:
      return Boolean.valueOf(isIsListedOnFlipkart());

    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_FLIPKART:
      return getSkuAtFlipkart();

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

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

    case FLIPKART_SERIAL_NUMBER:
      return getFlipkartSerialNumber();

    case CATEGORY:
      return Long.valueOf(getCategory());

    case IS_FA_LISTED:
      return Boolean.valueOf(isIsFaListed());

    }
    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_FLIPKART:
      return isSetIsListedOnFlipkart();
    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_FLIPKART:
      return isSetSkuAtFlipkart();
    case LAST_UPDATED_INVENTORY:
      return isSetLastUpdatedInventory();
    case LAST_UPDATED_INVENTORY_TIMESTAMP:
      return isSetLastUpdatedInventoryTimestamp();
    case FLIPKART_SERIAL_NUMBER:
      return isSetFlipkartSerialNumber();
    case CATEGORY:
      return isSetCategory();
    case IS_FA_LISTED:
      return isSetIsFaListed();
    }
    throw new IllegalStateException();
  }

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

  public boolean equals(FlipkartItemDetails 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_isListedOnFlipkart = true;
    boolean that_present_isListedOnFlipkart = true;
    if (this_present_isListedOnFlipkart || that_present_isListedOnFlipkart) {
      if (!(this_present_isListedOnFlipkart && that_present_isListedOnFlipkart))
        return false;
      if (this.isListedOnFlipkart != that.isListedOnFlipkart)
        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_skuAtFlipkart = true && this.isSetSkuAtFlipkart();
    boolean that_present_skuAtFlipkart = true && that.isSetSkuAtFlipkart();
    if (this_present_skuAtFlipkart || that_present_skuAtFlipkart) {
      if (!(this_present_skuAtFlipkart && that_present_skuAtFlipkart))
        return false;
      if (!this.skuAtFlipkart.equals(that.skuAtFlipkart))
        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_flipkartSerialNumber = true && this.isSetFlipkartSerialNumber();
    boolean that_present_flipkartSerialNumber = true && that.isSetFlipkartSerialNumber();
    if (this_present_flipkartSerialNumber || that_present_flipkartSerialNumber) {
      if (!(this_present_flipkartSerialNumber && that_present_flipkartSerialNumber))
        return false;
      if (!this.flipkartSerialNumber.equals(that.flipkartSerialNumber))
        return false;
    }

    boolean this_present_category = true;
    boolean that_present_category = true;
    if (this_present_category || that_present_category) {
      if (!(this_present_category && that_present_category))
        return false;
      if (this.category != that.category)
        return false;
    }

    boolean this_present_isFaListed = true;
    boolean that_present_isFaListed = true;
    if (this_present_isFaListed || that_present_isFaListed) {
      if (!(this_present_isFaListed && that_present_isFaListed))
        return false;
      if (this.isFaListed != that.isFaListed)
        return false;
    }

    return true;
  }

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

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

    int lastComparison = 0;
    FlipkartItemDetails typedOther = (FlipkartItemDetails)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(isSetIsListedOnFlipkart()).compareTo(typedOther.isSetIsListedOnFlipkart());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetIsListedOnFlipkart()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isListedOnFlipkart, typedOther.isListedOnFlipkart);
      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(isSetSkuAtFlipkart()).compareTo(typedOther.isSetSkuAtFlipkart());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetSkuAtFlipkart()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skuAtFlipkart, typedOther.skuAtFlipkart);
      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(isSetFlipkartSerialNumber()).compareTo(typedOther.isSetFlipkartSerialNumber());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetFlipkartSerialNumber()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.flipkartSerialNumber, typedOther.flipkartSerialNumber);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetCategory()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetIsFaListed()).compareTo(typedOther.isSetIsFaListed());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetIsFaListed()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isFaListed, typedOther.isFaListed);
      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_FLIPKART
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
            this.isListedOnFlipkart = iprot.readBool();
            setIsListedOnFlipkartIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 5: // 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 6: // 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 7: // 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 8: // 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 9: // 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 10: // 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 11: // 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 12: // 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 13: // 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 14: // 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 15: // 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 16: // 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 17: // 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 18: // 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 19: // SKU_AT_FLIPKART
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.skuAtFlipkart = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 20: // 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 21: // 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 22: // FLIPKART_SERIAL_NUMBER
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.flipkartSerialNumber = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 23: // CATEGORY
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.category = iprot.readI64();
            setCategoryIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 24: // IS_FA_LISTED
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
            this.isFaListed = iprot.readBool();
            setIsFaListedIsSet(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_FLIPKART_FIELD_DESC);
    oprot.writeBool(this.isListedOnFlipkart);
    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.skuAtFlipkart != null) {
      oprot.writeFieldBegin(SKU_AT_FLIPKART_FIELD_DESC);
      oprot.writeString(this.skuAtFlipkart);
      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();
    if (this.flipkartSerialNumber != null) {
      oprot.writeFieldBegin(FLIPKART_SERIAL_NUMBER_FIELD_DESC);
      oprot.writeString(this.flipkartSerialNumber);
      oprot.writeFieldEnd();
    }
    oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
    oprot.writeI64(this.category);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(IS_FA_LISTED_FIELD_DESC);
    oprot.writeBool(this.isFaListed);
    oprot.writeFieldEnd();
    oprot.writeFieldStop();
    oprot.writeStructEnd();
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder("FlipkartItemDetails(");
    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("isListedOnFlipkart:");
    sb.append(this.isListedOnFlipkart);
    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("skuAtFlipkart:");
    if (this.skuAtFlipkart == null) {
      sb.append("null");
    } else {
      sb.append(this.skuAtFlipkart);
    }
    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("flipkartSerialNumber:");
    if (this.flipkartSerialNumber == null) {
      sb.append("null");
    } else {
      sb.append(this.flipkartSerialNumber);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("category:");
    sb.append(this.category);
    first = false;
    if (!first) sb.append(", ");
    sb.append("isFaListed:");
    sb.append(this.isFaListed);
    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);
    }
  }

}