Subversion Repositories SmartDukaan

Rev

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

  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
  private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)2);
  private static final org.apache.thrift.protocol.TField EMI_FEE_FIELD_DESC = new org.apache.thrift.protocol.TField("emiFee", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
  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)4);
  private static final org.apache.thrift.protocol.TField CLOSING_FEE_FIELD_DESC = new org.apache.thrift.protocol.TField("closingFee", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
  private static final org.apache.thrift.protocol.TField RETURN_PROVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("returnProvision", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
  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)7);
  private static final org.apache.thrift.protocol.TField VAT_FIELD_DESC = new org.apache.thrift.protocol.TField("vat", org.apache.thrift.protocol.TType.DOUBLE, (short)8);
  private static final org.apache.thrift.protocol.TField PACKAGING_COST_FIELD_DESC = new org.apache.thrift.protocol.TField("packagingCost", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
  private static final org.apache.thrift.protocol.TField OTHER_COST_FIELD_DESC = new org.apache.thrift.protocol.TField("otherCost", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
  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)11);
  private static final org.apache.thrift.protocol.TField AUTO_INCREMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("autoIncrement", org.apache.thrift.protocol.TType.BOOL, (short)12);
  private static final org.apache.thrift.protocol.TField AUTO_DECREMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("autoDecrement", org.apache.thrift.protocol.TType.BOOL, (short)13);
  private static final org.apache.thrift.protocol.TField MANUAL_FAVOURITE_FIELD_DESC = new org.apache.thrift.protocol.TField("manualFavourite", org.apache.thrift.protocol.TType.BOOL, (short)14);
  private static final org.apache.thrift.protocol.TField AUTO_FAVOURITE_FIELD_DESC = new org.apache.thrift.protocol.TField("autoFavourite", org.apache.thrift.protocol.TType.BOOL, (short)15);
  private static final org.apache.thrift.protocol.TField CURRENT_SP_FIELD_DESC = new org.apache.thrift.protocol.TField("currentSp", org.apache.thrift.protocol.TType.DOUBLE, (short)16);
  private static final org.apache.thrift.protocol.TField CURRENT_TP_FIELD_DESC = new org.apache.thrift.protocol.TField("currentTp", org.apache.thrift.protocol.TType.DOUBLE, (short)17);
  private static final org.apache.thrift.protocol.TField MINIMUM_POSSIBLE_SP_FIELD_DESC = new org.apache.thrift.protocol.TField("minimumPossibleSp", org.apache.thrift.protocol.TType.DOUBLE, (short)18);
  private static final org.apache.thrift.protocol.TField MINIMUM_POSSIBLE_TP_FIELD_DESC = new org.apache.thrift.protocol.TField("minimumPossibleTp", org.apache.thrift.protocol.TType.DOUBLE, (short)19);
  private static final org.apache.thrift.protocol.TField LAST_CHECKED_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("lastCheckedTimestamp", org.apache.thrift.protocol.TType.I64, (short)20);
  private static final org.apache.thrift.protocol.TField MAXIMUM_SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("maximumSellingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)21);
  private static final org.apache.thrift.protocol.TField PG_FEE_FIELD_DESC = new org.apache.thrift.protocol.TField("pgFee", org.apache.thrift.protocol.TType.DOUBLE, (short)22);
  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)23);

  private long itemId; // required
  private long source; // required
  private double emiFee; // required
  private double courierCost; // required
  private double closingFee; // required
  private double returnProvision; // required
  private double commission; // required
  private double vat; // required
  private double packagingCost; // required
  private double otherCost; // required
  private double serviceTax; // required
  private boolean autoIncrement; // required
  private boolean autoDecrement; // required
  private boolean manualFavourite; // required
  private boolean autoFavourite; // required
  private double currentSp; // required
  private double currentTp; // required
  private double minimumPossibleSp; // required
  private double minimumPossibleTp; // required
  private long lastCheckedTimestamp; // required
  private double maximumSellingPrice; // required
  private double pgFee; // required
  private double courierCostMarketplace; // 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, "itemId"),
    SOURCE((short)2, "source"),
    EMI_FEE((short)3, "emiFee"),
    COURIER_COST((short)4, "courierCost"),
    CLOSING_FEE((short)5, "closingFee"),
    RETURN_PROVISION((short)6, "returnProvision"),
    COMMISSION((short)7, "commission"),
    VAT((short)8, "vat"),
    PACKAGING_COST((short)9, "packagingCost"),
    OTHER_COST((short)10, "otherCost"),
    SERVICE_TAX((short)11, "serviceTax"),
    AUTO_INCREMENT((short)12, "autoIncrement"),
    AUTO_DECREMENT((short)13, "autoDecrement"),
    MANUAL_FAVOURITE((short)14, "manualFavourite"),
    AUTO_FAVOURITE((short)15, "autoFavourite"),
    CURRENT_SP((short)16, "currentSp"),
    CURRENT_TP((short)17, "currentTp"),
    MINIMUM_POSSIBLE_SP((short)18, "minimumPossibleSp"),
    MINIMUM_POSSIBLE_TP((short)19, "minimumPossibleTp"),
    LAST_CHECKED_TIMESTAMP((short)20, "lastCheckedTimestamp"),
    MAXIMUM_SELLING_PRICE((short)21, "maximumSellingPrice"),
    PG_FEE((short)22, "pgFee"),
    COURIER_COST_MARKETPLACE((short)23, "courierCostMarketplace");

    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: // SOURCE
          return SOURCE;
        case 3: // EMI_FEE
          return EMI_FEE;
        case 4: // COURIER_COST
          return COURIER_COST;
        case 5: // CLOSING_FEE
          return CLOSING_FEE;
        case 6: // RETURN_PROVISION
          return RETURN_PROVISION;
        case 7: // COMMISSION
          return COMMISSION;
        case 8: // VAT
          return VAT;
        case 9: // PACKAGING_COST
          return PACKAGING_COST;
        case 10: // OTHER_COST
          return OTHER_COST;
        case 11: // SERVICE_TAX
          return SERVICE_TAX;
        case 12: // AUTO_INCREMENT
          return AUTO_INCREMENT;
        case 13: // AUTO_DECREMENT
          return AUTO_DECREMENT;
        case 14: // MANUAL_FAVOURITE
          return MANUAL_FAVOURITE;
        case 15: // AUTO_FAVOURITE
          return AUTO_FAVOURITE;
        case 16: // CURRENT_SP
          return CURRENT_SP;
        case 17: // CURRENT_TP
          return CURRENT_TP;
        case 18: // MINIMUM_POSSIBLE_SP
          return MINIMUM_POSSIBLE_SP;
        case 19: // MINIMUM_POSSIBLE_TP
          return MINIMUM_POSSIBLE_TP;
        case 20: // LAST_CHECKED_TIMESTAMP
          return LAST_CHECKED_TIMESTAMP;
        case 21: // MAXIMUM_SELLING_PRICE
          return MAXIMUM_SELLING_PRICE;
        case 22: // PG_FEE
          return PG_FEE;
        case 23: // COURIER_COST_MARKETPLACE
          return COURIER_COST_MARKETPLACE;
        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 __ITEMID_ISSET_ID = 0;
  private static final int __SOURCE_ISSET_ID = 1;
  private static final int __EMIFEE_ISSET_ID = 2;
  private static final int __COURIERCOST_ISSET_ID = 3;
  private static final int __CLOSINGFEE_ISSET_ID = 4;
  private static final int __RETURNPROVISION_ISSET_ID = 5;
  private static final int __COMMISSION_ISSET_ID = 6;
  private static final int __VAT_ISSET_ID = 7;
  private static final int __PACKAGINGCOST_ISSET_ID = 8;
  private static final int __OTHERCOST_ISSET_ID = 9;
  private static final int __SERVICETAX_ISSET_ID = 10;
  private static final int __AUTOINCREMENT_ISSET_ID = 11;
  private static final int __AUTODECREMENT_ISSET_ID = 12;
  private static final int __MANUALFAVOURITE_ISSET_ID = 13;
  private static final int __AUTOFAVOURITE_ISSET_ID = 14;
  private static final int __CURRENTSP_ISSET_ID = 15;
  private static final int __CURRENTTP_ISSET_ID = 16;
  private static final int __MINIMUMPOSSIBLESP_ISSET_ID = 17;
  private static final int __MINIMUMPOSSIBLETP_ISSET_ID = 18;
  private static final int __LASTCHECKEDTIMESTAMP_ISSET_ID = 19;
  private static final int __MAXIMUMSELLINGPRICE_ISSET_ID = 20;
  private static final int __PGFEE_ISSET_ID = 21;
  private static final int __COURIERCOSTMARKETPLACE_ISSET_ID = 22;
  private BitSet __isset_bit_vector = new BitSet(23);

  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("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.EMI_FEE, new org.apache.thrift.meta_data.FieldMetaData("emiFee", 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.CLOSING_FEE, new org.apache.thrift.meta_data.FieldMetaData("closingFee", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.RETURN_PROVISION, new org.apache.thrift.meta_data.FieldMetaData("returnProvision", 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.VAT, new org.apache.thrift.meta_data.FieldMetaData("vat", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.PACKAGING_COST, new org.apache.thrift.meta_data.FieldMetaData("packagingCost", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.OTHER_COST, new org.apache.thrift.meta_data.FieldMetaData("otherCost", 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.AUTO_INCREMENT, new org.apache.thrift.meta_data.FieldMetaData("autoIncrement", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    tmpMap.put(_Fields.AUTO_DECREMENT, new org.apache.thrift.meta_data.FieldMetaData("autoDecrement", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    tmpMap.put(_Fields.MANUAL_FAVOURITE, new org.apache.thrift.meta_data.FieldMetaData("manualFavourite", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    tmpMap.put(_Fields.AUTO_FAVOURITE, new org.apache.thrift.meta_data.FieldMetaData("autoFavourite", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    tmpMap.put(_Fields.CURRENT_SP, new org.apache.thrift.meta_data.FieldMetaData("currentSp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.CURRENT_TP, new org.apache.thrift.meta_data.FieldMetaData("currentTp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.MINIMUM_POSSIBLE_SP, new org.apache.thrift.meta_data.FieldMetaData("minimumPossibleSp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.MINIMUM_POSSIBLE_TP, new org.apache.thrift.meta_data.FieldMetaData("minimumPossibleTp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.LAST_CHECKED_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("lastCheckedTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.MAXIMUM_SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("maximumSellingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.PG_FEE, new org.apache.thrift.meta_data.FieldMetaData("pgFee", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    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)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(MarketplaceItems.class, metaDataMap);
  }

  public MarketplaceItems() {
  }

  public MarketplaceItems(
    long itemId,
    long source,
    double emiFee,
    double courierCost,
    double closingFee,
    double returnProvision,
    double commission,
    double vat,
    double packagingCost,
    double otherCost,
    double serviceTax,
    boolean autoIncrement,
    boolean autoDecrement,
    boolean manualFavourite,
    boolean autoFavourite,
    double currentSp,
    double currentTp,
    double minimumPossibleSp,
    double minimumPossibleTp,
    long lastCheckedTimestamp,
    double maximumSellingPrice,
    double pgFee,
    double courierCostMarketplace)
  {
    this();
    this.itemId = itemId;
    setItemIdIsSet(true);
    this.source = source;
    setSourceIsSet(true);
    this.emiFee = emiFee;
    setEmiFeeIsSet(true);
    this.courierCost = courierCost;
    setCourierCostIsSet(true);
    this.closingFee = closingFee;
    setClosingFeeIsSet(true);
    this.returnProvision = returnProvision;
    setReturnProvisionIsSet(true);
    this.commission = commission;
    setCommissionIsSet(true);
    this.vat = vat;
    setVatIsSet(true);
    this.packagingCost = packagingCost;
    setPackagingCostIsSet(true);
    this.otherCost = otherCost;
    setOtherCostIsSet(true);
    this.serviceTax = serviceTax;
    setServiceTaxIsSet(true);
    this.autoIncrement = autoIncrement;
    setAutoIncrementIsSet(true);
    this.autoDecrement = autoDecrement;
    setAutoDecrementIsSet(true);
    this.manualFavourite = manualFavourite;
    setManualFavouriteIsSet(true);
    this.autoFavourite = autoFavourite;
    setAutoFavouriteIsSet(true);
    this.currentSp = currentSp;
    setCurrentSpIsSet(true);
    this.currentTp = currentTp;
    setCurrentTpIsSet(true);
    this.minimumPossibleSp = minimumPossibleSp;
    setMinimumPossibleSpIsSet(true);
    this.minimumPossibleTp = minimumPossibleTp;
    setMinimumPossibleTpIsSet(true);
    this.lastCheckedTimestamp = lastCheckedTimestamp;
    setLastCheckedTimestampIsSet(true);
    this.maximumSellingPrice = maximumSellingPrice;
    setMaximumSellingPriceIsSet(true);
    this.pgFee = pgFee;
    setPgFeeIsSet(true);
    this.courierCostMarketplace = courierCostMarketplace;
    setCourierCostMarketplaceIsSet(true);
  }

  /**
   * Performs a deep copy on <i>other</i>.
   */
  public MarketplaceItems(MarketplaceItems other) {
    __isset_bit_vector.clear();
    __isset_bit_vector.or(other.__isset_bit_vector);
    this.itemId = other.itemId;
    this.source = other.source;
    this.emiFee = other.emiFee;
    this.courierCost = other.courierCost;
    this.closingFee = other.closingFee;
    this.returnProvision = other.returnProvision;
    this.commission = other.commission;
    this.vat = other.vat;
    this.packagingCost = other.packagingCost;
    this.otherCost = other.otherCost;
    this.serviceTax = other.serviceTax;
    this.autoIncrement = other.autoIncrement;
    this.autoDecrement = other.autoDecrement;
    this.manualFavourite = other.manualFavourite;
    this.autoFavourite = other.autoFavourite;
    this.currentSp = other.currentSp;
    this.currentTp = other.currentTp;
    this.minimumPossibleSp = other.minimumPossibleSp;
    this.minimumPossibleTp = other.minimumPossibleTp;
    this.lastCheckedTimestamp = other.lastCheckedTimestamp;
    this.maximumSellingPrice = other.maximumSellingPrice;
    this.pgFee = other.pgFee;
    this.courierCostMarketplace = other.courierCostMarketplace;
  }

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

  @Override
  public void clear() {
    setItemIdIsSet(false);
    this.itemId = 0;
    setSourceIsSet(false);
    this.source = 0;
    setEmiFeeIsSet(false);
    this.emiFee = 0.0;
    setCourierCostIsSet(false);
    this.courierCost = 0.0;
    setClosingFeeIsSet(false);
    this.closingFee = 0.0;
    setReturnProvisionIsSet(false);
    this.returnProvision = 0.0;
    setCommissionIsSet(false);
    this.commission = 0.0;
    setVatIsSet(false);
    this.vat = 0.0;
    setPackagingCostIsSet(false);
    this.packagingCost = 0.0;
    setOtherCostIsSet(false);
    this.otherCost = 0.0;
    setServiceTaxIsSet(false);
    this.serviceTax = 0.0;
    setAutoIncrementIsSet(false);
    this.autoIncrement = false;
    setAutoDecrementIsSet(false);
    this.autoDecrement = false;
    setManualFavouriteIsSet(false);
    this.manualFavourite = false;
    setAutoFavouriteIsSet(false);
    this.autoFavourite = false;
    setCurrentSpIsSet(false);
    this.currentSp = 0.0;
    setCurrentTpIsSet(false);
    this.currentTp = 0.0;
    setMinimumPossibleSpIsSet(false);
    this.minimumPossibleSp = 0.0;
    setMinimumPossibleTpIsSet(false);
    this.minimumPossibleTp = 0.0;
    setLastCheckedTimestampIsSet(false);
    this.lastCheckedTimestamp = 0;
    setMaximumSellingPriceIsSet(false);
    this.maximumSellingPrice = 0.0;
    setPgFeeIsSet(false);
    this.pgFee = 0.0;
    setCourierCostMarketplaceIsSet(false);
    this.courierCostMarketplace = 0.0;
  }

  public long getItemId() {
    return this.itemId;
  }

  public void setItemId(long itemId) {
    this.itemId = itemId;
    setItemIdIsSet(true);
  }

  public void unsetItemId() {
    __isset_bit_vector.clear(__ITEMID_ISSET_ID);
  }

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

  public void setItemIdIsSet(boolean value) {
    __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
  }

  public long getSource() {
    return this.source;
  }

  public void setSource(long source) {
    this.source = source;
    setSourceIsSet(true);
  }

  public void unsetSource() {
    __isset_bit_vector.clear(__SOURCE_ISSET_ID);
  }

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

  public void setSourceIsSet(boolean value) {
    __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
  }

  public double getEmiFee() {
    return this.emiFee;
  }

  public void setEmiFee(double emiFee) {
    this.emiFee = emiFee;
    setEmiFeeIsSet(true);
  }

  public void unsetEmiFee() {
    __isset_bit_vector.clear(__EMIFEE_ISSET_ID);
  }

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

  public void setEmiFeeIsSet(boolean value) {
    __isset_bit_vector.set(__EMIFEE_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 getClosingFee() {
    return this.closingFee;
  }

  public void setClosingFee(double closingFee) {
    this.closingFee = closingFee;
    setClosingFeeIsSet(true);
  }

  public void unsetClosingFee() {
    __isset_bit_vector.clear(__CLOSINGFEE_ISSET_ID);
  }

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

  public void setClosingFeeIsSet(boolean value) {
    __isset_bit_vector.set(__CLOSINGFEE_ISSET_ID, value);
  }

  public double getReturnProvision() {
    return this.returnProvision;
  }

  public void setReturnProvision(double returnProvision) {
    this.returnProvision = returnProvision;
    setReturnProvisionIsSet(true);
  }

  public void unsetReturnProvision() {
    __isset_bit_vector.clear(__RETURNPROVISION_ISSET_ID);
  }

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

  public void setReturnProvisionIsSet(boolean value) {
    __isset_bit_vector.set(__RETURNPROVISION_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 getVat() {
    return this.vat;
  }

  public void setVat(double vat) {
    this.vat = vat;
    setVatIsSet(true);
  }

  public void unsetVat() {
    __isset_bit_vector.clear(__VAT_ISSET_ID);
  }

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

  public void setVatIsSet(boolean value) {
    __isset_bit_vector.set(__VAT_ISSET_ID, value);
  }

  public double getPackagingCost() {
    return this.packagingCost;
  }

  public void setPackagingCost(double packagingCost) {
    this.packagingCost = packagingCost;
    setPackagingCostIsSet(true);
  }

  public void unsetPackagingCost() {
    __isset_bit_vector.clear(__PACKAGINGCOST_ISSET_ID);
  }

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

  public void setPackagingCostIsSet(boolean value) {
    __isset_bit_vector.set(__PACKAGINGCOST_ISSET_ID, value);
  }

  public double getOtherCost() {
    return this.otherCost;
  }

  public void setOtherCost(double otherCost) {
    this.otherCost = otherCost;
    setOtherCostIsSet(true);
  }

  public void unsetOtherCost() {
    __isset_bit_vector.clear(__OTHERCOST_ISSET_ID);
  }

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

  public void setOtherCostIsSet(boolean value) {
    __isset_bit_vector.set(__OTHERCOST_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 boolean isAutoIncrement() {
    return this.autoIncrement;
  }

  public void setAutoIncrement(boolean autoIncrement) {
    this.autoIncrement = autoIncrement;
    setAutoIncrementIsSet(true);
  }

  public void unsetAutoIncrement() {
    __isset_bit_vector.clear(__AUTOINCREMENT_ISSET_ID);
  }

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

  public void setAutoIncrementIsSet(boolean value) {
    __isset_bit_vector.set(__AUTOINCREMENT_ISSET_ID, value);
  }

  public boolean isAutoDecrement() {
    return this.autoDecrement;
  }

  public void setAutoDecrement(boolean autoDecrement) {
    this.autoDecrement = autoDecrement;
    setAutoDecrementIsSet(true);
  }

  public void unsetAutoDecrement() {
    __isset_bit_vector.clear(__AUTODECREMENT_ISSET_ID);
  }

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

  public void setAutoDecrementIsSet(boolean value) {
    __isset_bit_vector.set(__AUTODECREMENT_ISSET_ID, value);
  }

  public boolean isManualFavourite() {
    return this.manualFavourite;
  }

  public void setManualFavourite(boolean manualFavourite) {
    this.manualFavourite = manualFavourite;
    setManualFavouriteIsSet(true);
  }

  public void unsetManualFavourite() {
    __isset_bit_vector.clear(__MANUALFAVOURITE_ISSET_ID);
  }

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

  public void setManualFavouriteIsSet(boolean value) {
    __isset_bit_vector.set(__MANUALFAVOURITE_ISSET_ID, value);
  }

  public boolean isAutoFavourite() {
    return this.autoFavourite;
  }

  public void setAutoFavourite(boolean autoFavourite) {
    this.autoFavourite = autoFavourite;
    setAutoFavouriteIsSet(true);
  }

  public void unsetAutoFavourite() {
    __isset_bit_vector.clear(__AUTOFAVOURITE_ISSET_ID);
  }

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

  public void setAutoFavouriteIsSet(boolean value) {
    __isset_bit_vector.set(__AUTOFAVOURITE_ISSET_ID, value);
  }

  public double getCurrentSp() {
    return this.currentSp;
  }

  public void setCurrentSp(double currentSp) {
    this.currentSp = currentSp;
    setCurrentSpIsSet(true);
  }

  public void unsetCurrentSp() {
    __isset_bit_vector.clear(__CURRENTSP_ISSET_ID);
  }

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

  public void setCurrentSpIsSet(boolean value) {
    __isset_bit_vector.set(__CURRENTSP_ISSET_ID, value);
  }

  public double getCurrentTp() {
    return this.currentTp;
  }

  public void setCurrentTp(double currentTp) {
    this.currentTp = currentTp;
    setCurrentTpIsSet(true);
  }

  public void unsetCurrentTp() {
    __isset_bit_vector.clear(__CURRENTTP_ISSET_ID);
  }

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

  public void setCurrentTpIsSet(boolean value) {
    __isset_bit_vector.set(__CURRENTTP_ISSET_ID, value);
  }

  public double getMinimumPossibleSp() {
    return this.minimumPossibleSp;
  }

  public void setMinimumPossibleSp(double minimumPossibleSp) {
    this.minimumPossibleSp = minimumPossibleSp;
    setMinimumPossibleSpIsSet(true);
  }

  public void unsetMinimumPossibleSp() {
    __isset_bit_vector.clear(__MINIMUMPOSSIBLESP_ISSET_ID);
  }

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

  public void setMinimumPossibleSpIsSet(boolean value) {
    __isset_bit_vector.set(__MINIMUMPOSSIBLESP_ISSET_ID, value);
  }

  public double getMinimumPossibleTp() {
    return this.minimumPossibleTp;
  }

  public void setMinimumPossibleTp(double minimumPossibleTp) {
    this.minimumPossibleTp = minimumPossibleTp;
    setMinimumPossibleTpIsSet(true);
  }

  public void unsetMinimumPossibleTp() {
    __isset_bit_vector.clear(__MINIMUMPOSSIBLETP_ISSET_ID);
  }

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

  public void setMinimumPossibleTpIsSet(boolean value) {
    __isset_bit_vector.set(__MINIMUMPOSSIBLETP_ISSET_ID, value);
  }

  public long getLastCheckedTimestamp() {
    return this.lastCheckedTimestamp;
  }

  public void setLastCheckedTimestamp(long lastCheckedTimestamp) {
    this.lastCheckedTimestamp = lastCheckedTimestamp;
    setLastCheckedTimestampIsSet(true);
  }

  public void unsetLastCheckedTimestamp() {
    __isset_bit_vector.clear(__LASTCHECKEDTIMESTAMP_ISSET_ID);
  }

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

  public void setLastCheckedTimestampIsSet(boolean value) {
    __isset_bit_vector.set(__LASTCHECKEDTIMESTAMP_ISSET_ID, value);
  }

  public double getMaximumSellingPrice() {
    return this.maximumSellingPrice;
  }

  public void setMaximumSellingPrice(double maximumSellingPrice) {
    this.maximumSellingPrice = maximumSellingPrice;
    setMaximumSellingPriceIsSet(true);
  }

  public void unsetMaximumSellingPrice() {
    __isset_bit_vector.clear(__MAXIMUMSELLINGPRICE_ISSET_ID);
  }

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

  public void setMaximumSellingPriceIsSet(boolean value) {
    __isset_bit_vector.set(__MAXIMUMSELLINGPRICE_ISSET_ID, value);
  }

  public double getPgFee() {
    return this.pgFee;
  }

  public void setPgFee(double pgFee) {
    this.pgFee = pgFee;
    setPgFeeIsSet(true);
  }

  public void unsetPgFee() {
    __isset_bit_vector.clear(__PGFEE_ISSET_ID);
  }

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

  public void setPgFeeIsSet(boolean value) {
    __isset_bit_vector.set(__PGFEE_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 void setFieldValue(_Fields field, Object value) {
    switch (field) {
    case ITEM_ID:
      if (value == null) {
        unsetItemId();
      } else {
        setItemId((Long)value);
      }
      break;

    case SOURCE:
      if (value == null) {
        unsetSource();
      } else {
        setSource((Long)value);
      }
      break;

    case EMI_FEE:
      if (value == null) {
        unsetEmiFee();
      } else {
        setEmiFee((Double)value);
      }
      break;

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

    case CLOSING_FEE:
      if (value == null) {
        unsetClosingFee();
      } else {
        setClosingFee((Double)value);
      }
      break;

    case RETURN_PROVISION:
      if (value == null) {
        unsetReturnProvision();
      } else {
        setReturnProvision((Double)value);
      }
      break;

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

    case VAT:
      if (value == null) {
        unsetVat();
      } else {
        setVat((Double)value);
      }
      break;

    case PACKAGING_COST:
      if (value == null) {
        unsetPackagingCost();
      } else {
        setPackagingCost((Double)value);
      }
      break;

    case OTHER_COST:
      if (value == null) {
        unsetOtherCost();
      } else {
        setOtherCost((Double)value);
      }
      break;

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

    case AUTO_INCREMENT:
      if (value == null) {
        unsetAutoIncrement();
      } else {
        setAutoIncrement((Boolean)value);
      }
      break;

    case AUTO_DECREMENT:
      if (value == null) {
        unsetAutoDecrement();
      } else {
        setAutoDecrement((Boolean)value);
      }
      break;

    case MANUAL_FAVOURITE:
      if (value == null) {
        unsetManualFavourite();
      } else {
        setManualFavourite((Boolean)value);
      }
      break;

    case AUTO_FAVOURITE:
      if (value == null) {
        unsetAutoFavourite();
      } else {
        setAutoFavourite((Boolean)value);
      }
      break;

    case CURRENT_SP:
      if (value == null) {
        unsetCurrentSp();
      } else {
        setCurrentSp((Double)value);
      }
      break;

    case CURRENT_TP:
      if (value == null) {
        unsetCurrentTp();
      } else {
        setCurrentTp((Double)value);
      }
      break;

    case MINIMUM_POSSIBLE_SP:
      if (value == null) {
        unsetMinimumPossibleSp();
      } else {
        setMinimumPossibleSp((Double)value);
      }
      break;

    case MINIMUM_POSSIBLE_TP:
      if (value == null) {
        unsetMinimumPossibleTp();
      } else {
        setMinimumPossibleTp((Double)value);
      }
      break;

    case LAST_CHECKED_TIMESTAMP:
      if (value == null) {
        unsetLastCheckedTimestamp();
      } else {
        setLastCheckedTimestamp((Long)value);
      }
      break;

    case MAXIMUM_SELLING_PRICE:
      if (value == null) {
        unsetMaximumSellingPrice();
      } else {
        setMaximumSellingPrice((Double)value);
      }
      break;

    case PG_FEE:
      if (value == null) {
        unsetPgFee();
      } else {
        setPgFee((Double)value);
      }
      break;

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

    }
  }

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

    case SOURCE:
      return Long.valueOf(getSource());

    case EMI_FEE:
      return Double.valueOf(getEmiFee());

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

    case CLOSING_FEE:
      return Double.valueOf(getClosingFee());

    case RETURN_PROVISION:
      return Double.valueOf(getReturnProvision());

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

    case VAT:
      return Double.valueOf(getVat());

    case PACKAGING_COST:
      return Double.valueOf(getPackagingCost());

    case OTHER_COST:
      return Double.valueOf(getOtherCost());

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

    case AUTO_INCREMENT:
      return Boolean.valueOf(isAutoIncrement());

    case AUTO_DECREMENT:
      return Boolean.valueOf(isAutoDecrement());

    case MANUAL_FAVOURITE:
      return Boolean.valueOf(isManualFavourite());

    case AUTO_FAVOURITE:
      return Boolean.valueOf(isAutoFavourite());

    case CURRENT_SP:
      return Double.valueOf(getCurrentSp());

    case CURRENT_TP:
      return Double.valueOf(getCurrentTp());

    case MINIMUM_POSSIBLE_SP:
      return Double.valueOf(getMinimumPossibleSp());

    case MINIMUM_POSSIBLE_TP:
      return Double.valueOf(getMinimumPossibleTp());

    case LAST_CHECKED_TIMESTAMP:
      return Long.valueOf(getLastCheckedTimestamp());

    case MAXIMUM_SELLING_PRICE:
      return Double.valueOf(getMaximumSellingPrice());

    case PG_FEE:
      return Double.valueOf(getPgFee());

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

    }
    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 isSetItemId();
    case SOURCE:
      return isSetSource();
    case EMI_FEE:
      return isSetEmiFee();
    case COURIER_COST:
      return isSetCourierCost();
    case CLOSING_FEE:
      return isSetClosingFee();
    case RETURN_PROVISION:
      return isSetReturnProvision();
    case COMMISSION:
      return isSetCommission();
    case VAT:
      return isSetVat();
    case PACKAGING_COST:
      return isSetPackagingCost();
    case OTHER_COST:
      return isSetOtherCost();
    case SERVICE_TAX:
      return isSetServiceTax();
    case AUTO_INCREMENT:
      return isSetAutoIncrement();
    case AUTO_DECREMENT:
      return isSetAutoDecrement();
    case MANUAL_FAVOURITE:
      return isSetManualFavourite();
    case AUTO_FAVOURITE:
      return isSetAutoFavourite();
    case CURRENT_SP:
      return isSetCurrentSp();
    case CURRENT_TP:
      return isSetCurrentTp();
    case MINIMUM_POSSIBLE_SP:
      return isSetMinimumPossibleSp();
    case MINIMUM_POSSIBLE_TP:
      return isSetMinimumPossibleTp();
    case LAST_CHECKED_TIMESTAMP:
      return isSetLastCheckedTimestamp();
    case MAXIMUM_SELLING_PRICE:
      return isSetMaximumSellingPrice();
    case PG_FEE:
      return isSetPgFee();
    case COURIER_COST_MARKETPLACE:
      return isSetCourierCostMarketplace();
    }
    throw new IllegalStateException();
  }

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

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

    boolean this_present_itemId = true;
    boolean that_present_itemId = true;
    if (this_present_itemId || that_present_itemId) {
      if (!(this_present_itemId && that_present_itemId))
        return false;
      if (this.itemId != that.itemId)
        return false;
    }

    boolean this_present_source = true;
    boolean that_present_source = true;
    if (this_present_source || that_present_source) {
      if (!(this_present_source && that_present_source))
        return false;
      if (this.source != that.source)
        return false;
    }

    boolean this_present_emiFee = true;
    boolean that_present_emiFee = true;
    if (this_present_emiFee || that_present_emiFee) {
      if (!(this_present_emiFee && that_present_emiFee))
        return false;
      if (this.emiFee != that.emiFee)
        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_closingFee = true;
    boolean that_present_closingFee = true;
    if (this_present_closingFee || that_present_closingFee) {
      if (!(this_present_closingFee && that_present_closingFee))
        return false;
      if (this.closingFee != that.closingFee)
        return false;
    }

    boolean this_present_returnProvision = true;
    boolean that_present_returnProvision = true;
    if (this_present_returnProvision || that_present_returnProvision) {
      if (!(this_present_returnProvision && that_present_returnProvision))
        return false;
      if (this.returnProvision != that.returnProvision)
        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_vat = true;
    boolean that_present_vat = true;
    if (this_present_vat || that_present_vat) {
      if (!(this_present_vat && that_present_vat))
        return false;
      if (this.vat != that.vat)
        return false;
    }

    boolean this_present_packagingCost = true;
    boolean that_present_packagingCost = true;
    if (this_present_packagingCost || that_present_packagingCost) {
      if (!(this_present_packagingCost && that_present_packagingCost))
        return false;
      if (this.packagingCost != that.packagingCost)
        return false;
    }

    boolean this_present_otherCost = true;
    boolean that_present_otherCost = true;
    if (this_present_otherCost || that_present_otherCost) {
      if (!(this_present_otherCost && that_present_otherCost))
        return false;
      if (this.otherCost != that.otherCost)
        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_autoIncrement = true;
    boolean that_present_autoIncrement = true;
    if (this_present_autoIncrement || that_present_autoIncrement) {
      if (!(this_present_autoIncrement && that_present_autoIncrement))
        return false;
      if (this.autoIncrement != that.autoIncrement)
        return false;
    }

    boolean this_present_autoDecrement = true;
    boolean that_present_autoDecrement = true;
    if (this_present_autoDecrement || that_present_autoDecrement) {
      if (!(this_present_autoDecrement && that_present_autoDecrement))
        return false;
      if (this.autoDecrement != that.autoDecrement)
        return false;
    }

    boolean this_present_manualFavourite = true;
    boolean that_present_manualFavourite = true;
    if (this_present_manualFavourite || that_present_manualFavourite) {
      if (!(this_present_manualFavourite && that_present_manualFavourite))
        return false;
      if (this.manualFavourite != that.manualFavourite)
        return false;
    }

    boolean this_present_autoFavourite = true;
    boolean that_present_autoFavourite = true;
    if (this_present_autoFavourite || that_present_autoFavourite) {
      if (!(this_present_autoFavourite && that_present_autoFavourite))
        return false;
      if (this.autoFavourite != that.autoFavourite)
        return false;
    }

    boolean this_present_currentSp = true;
    boolean that_present_currentSp = true;
    if (this_present_currentSp || that_present_currentSp) {
      if (!(this_present_currentSp && that_present_currentSp))
        return false;
      if (this.currentSp != that.currentSp)
        return false;
    }

    boolean this_present_currentTp = true;
    boolean that_present_currentTp = true;
    if (this_present_currentTp || that_present_currentTp) {
      if (!(this_present_currentTp && that_present_currentTp))
        return false;
      if (this.currentTp != that.currentTp)
        return false;
    }

    boolean this_present_minimumPossibleSp = true;
    boolean that_present_minimumPossibleSp = true;
    if (this_present_minimumPossibleSp || that_present_minimumPossibleSp) {
      if (!(this_present_minimumPossibleSp && that_present_minimumPossibleSp))
        return false;
      if (this.minimumPossibleSp != that.minimumPossibleSp)
        return false;
    }

    boolean this_present_minimumPossibleTp = true;
    boolean that_present_minimumPossibleTp = true;
    if (this_present_minimumPossibleTp || that_present_minimumPossibleTp) {
      if (!(this_present_minimumPossibleTp && that_present_minimumPossibleTp))
        return false;
      if (this.minimumPossibleTp != that.minimumPossibleTp)
        return false;
    }

    boolean this_present_lastCheckedTimestamp = true;
    boolean that_present_lastCheckedTimestamp = true;
    if (this_present_lastCheckedTimestamp || that_present_lastCheckedTimestamp) {
      if (!(this_present_lastCheckedTimestamp && that_present_lastCheckedTimestamp))
        return false;
      if (this.lastCheckedTimestamp != that.lastCheckedTimestamp)
        return false;
    }

    boolean this_present_maximumSellingPrice = true;
    boolean that_present_maximumSellingPrice = true;
    if (this_present_maximumSellingPrice || that_present_maximumSellingPrice) {
      if (!(this_present_maximumSellingPrice && that_present_maximumSellingPrice))
        return false;
      if (this.maximumSellingPrice != that.maximumSellingPrice)
        return false;
    }

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

    return true;
  }

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

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

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

    lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetItemId()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetSource()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetEmiFee()).compareTo(typedOther.isSetEmiFee());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetEmiFee()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emiFee, typedOther.emiFee);
      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(isSetClosingFee()).compareTo(typedOther.isSetClosingFee());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetClosingFee()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.closingFee, typedOther.closingFee);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetReturnProvision()).compareTo(typedOther.isSetReturnProvision());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetReturnProvision()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnProvision, typedOther.returnProvision);
      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(isSetVat()).compareTo(typedOther.isSetVat());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetVat()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vat, typedOther.vat);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetPackagingCost()).compareTo(typedOther.isSetPackagingCost());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetPackagingCost()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.packagingCost, typedOther.packagingCost);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetOtherCost()).compareTo(typedOther.isSetOtherCost());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetOtherCost()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otherCost, typedOther.otherCost);
      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(isSetAutoIncrement()).compareTo(typedOther.isSetAutoIncrement());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetAutoIncrement()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.autoIncrement, typedOther.autoIncrement);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetAutoDecrement()).compareTo(typedOther.isSetAutoDecrement());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetAutoDecrement()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.autoDecrement, typedOther.autoDecrement);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetManualFavourite()).compareTo(typedOther.isSetManualFavourite());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetManualFavourite()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.manualFavourite, typedOther.manualFavourite);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetAutoFavourite()).compareTo(typedOther.isSetAutoFavourite());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetAutoFavourite()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.autoFavourite, typedOther.autoFavourite);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetCurrentSp()).compareTo(typedOther.isSetCurrentSp());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetCurrentSp()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.currentSp, typedOther.currentSp);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetCurrentTp()).compareTo(typedOther.isSetCurrentTp());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetCurrentTp()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.currentTp, typedOther.currentTp);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetMinimumPossibleSp()).compareTo(typedOther.isSetMinimumPossibleSp());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetMinimumPossibleSp()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minimumPossibleSp, typedOther.minimumPossibleSp);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetMinimumPossibleTp()).compareTo(typedOther.isSetMinimumPossibleTp());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetMinimumPossibleTp()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minimumPossibleTp, typedOther.minimumPossibleTp);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetLastCheckedTimestamp()).compareTo(typedOther.isSetLastCheckedTimestamp());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetLastCheckedTimestamp()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastCheckedTimestamp, typedOther.lastCheckedTimestamp);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetMaximumSellingPrice()).compareTo(typedOther.isSetMaximumSellingPrice());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetMaximumSellingPrice()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maximumSellingPrice, typedOther.maximumSellingPrice);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetPgFee()).compareTo(typedOther.isSetPgFee());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetPgFee()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pgFee, typedOther.pgFee);
      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;
      }
    }
    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.itemId = iprot.readI64();
            setItemIdIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 2: // SOURCE
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.source = iprot.readI64();
            setSourceIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 3: // EMI_FEE
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.emiFee = iprot.readDouble();
            setEmiFeeIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 4: // 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 5: // CLOSING_FEE
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.closingFee = iprot.readDouble();
            setClosingFeeIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 6: // RETURN_PROVISION
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.returnProvision = iprot.readDouble();
            setReturnProvisionIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 7: // 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 8: // VAT
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.vat = iprot.readDouble();
            setVatIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 9: // PACKAGING_COST
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.packagingCost = iprot.readDouble();
            setPackagingCostIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 10: // OTHER_COST
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.otherCost = iprot.readDouble();
            setOtherCostIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 11: // 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 12: // AUTO_INCREMENT
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
            this.autoIncrement = iprot.readBool();
            setAutoIncrementIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 13: // AUTO_DECREMENT
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
            this.autoDecrement = iprot.readBool();
            setAutoDecrementIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 14: // MANUAL_FAVOURITE
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
            this.manualFavourite = iprot.readBool();
            setManualFavouriteIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 15: // AUTO_FAVOURITE
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
            this.autoFavourite = iprot.readBool();
            setAutoFavouriteIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 16: // CURRENT_SP
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.currentSp = iprot.readDouble();
            setCurrentSpIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 17: // CURRENT_TP
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.currentTp = iprot.readDouble();
            setCurrentTpIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 18: // MINIMUM_POSSIBLE_SP
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.minimumPossibleSp = iprot.readDouble();
            setMinimumPossibleSpIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 19: // MINIMUM_POSSIBLE_TP
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.minimumPossibleTp = iprot.readDouble();
            setMinimumPossibleTpIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 20: // LAST_CHECKED_TIMESTAMP
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.lastCheckedTimestamp = iprot.readI64();
            setLastCheckedTimestampIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 21: // MAXIMUM_SELLING_PRICE
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.maximumSellingPrice = iprot.readDouble();
            setMaximumSellingPriceIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 22: // PG_FEE
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.pgFee = iprot.readDouble();
            setPgFeeIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 23: // 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;
        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.itemId);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(SOURCE_FIELD_DESC);
    oprot.writeI64(this.source);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(EMI_FEE_FIELD_DESC);
    oprot.writeDouble(this.emiFee);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(COURIER_COST_FIELD_DESC);
    oprot.writeDouble(this.courierCost);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(CLOSING_FEE_FIELD_DESC);
    oprot.writeDouble(this.closingFee);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(RETURN_PROVISION_FIELD_DESC);
    oprot.writeDouble(this.returnProvision);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(COMMISSION_FIELD_DESC);
    oprot.writeDouble(this.commission);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(VAT_FIELD_DESC);
    oprot.writeDouble(this.vat);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(PACKAGING_COST_FIELD_DESC);
    oprot.writeDouble(this.packagingCost);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(OTHER_COST_FIELD_DESC);
    oprot.writeDouble(this.otherCost);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(SERVICE_TAX_FIELD_DESC);
    oprot.writeDouble(this.serviceTax);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(AUTO_INCREMENT_FIELD_DESC);
    oprot.writeBool(this.autoIncrement);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(AUTO_DECREMENT_FIELD_DESC);
    oprot.writeBool(this.autoDecrement);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(MANUAL_FAVOURITE_FIELD_DESC);
    oprot.writeBool(this.manualFavourite);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(AUTO_FAVOURITE_FIELD_DESC);
    oprot.writeBool(this.autoFavourite);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(CURRENT_SP_FIELD_DESC);
    oprot.writeDouble(this.currentSp);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(CURRENT_TP_FIELD_DESC);
    oprot.writeDouble(this.currentTp);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(MINIMUM_POSSIBLE_SP_FIELD_DESC);
    oprot.writeDouble(this.minimumPossibleSp);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(MINIMUM_POSSIBLE_TP_FIELD_DESC);
    oprot.writeDouble(this.minimumPossibleTp);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(LAST_CHECKED_TIMESTAMP_FIELD_DESC);
    oprot.writeI64(this.lastCheckedTimestamp);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(MAXIMUM_SELLING_PRICE_FIELD_DESC);
    oprot.writeDouble(this.maximumSellingPrice);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(PG_FEE_FIELD_DESC);
    oprot.writeDouble(this.pgFee);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(COURIER_COST_MARKETPLACE_FIELD_DESC);
    oprot.writeDouble(this.courierCostMarketplace);
    oprot.writeFieldEnd();
    oprot.writeFieldStop();
    oprot.writeStructEnd();
  }

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

    sb.append("itemId:");
    sb.append(this.itemId);
    first = false;
    if (!first) sb.append(", ");
    sb.append("source:");
    sb.append(this.source);
    first = false;
    if (!first) sb.append(", ");
    sb.append("emiFee:");
    sb.append(this.emiFee);
    first = false;
    if (!first) sb.append(", ");
    sb.append("courierCost:");
    sb.append(this.courierCost);
    first = false;
    if (!first) sb.append(", ");
    sb.append("closingFee:");
    sb.append(this.closingFee);
    first = false;
    if (!first) sb.append(", ");
    sb.append("returnProvision:");
    sb.append(this.returnProvision);
    first = false;
    if (!first) sb.append(", ");
    sb.append("commission:");
    sb.append(this.commission);
    first = false;
    if (!first) sb.append(", ");
    sb.append("vat:");
    sb.append(this.vat);
    first = false;
    if (!first) sb.append(", ");
    sb.append("packagingCost:");
    sb.append(this.packagingCost);
    first = false;
    if (!first) sb.append(", ");
    sb.append("otherCost:");
    sb.append(this.otherCost);
    first = false;
    if (!first) sb.append(", ");
    sb.append("serviceTax:");
    sb.append(this.serviceTax);
    first = false;
    if (!first) sb.append(", ");
    sb.append("autoIncrement:");
    sb.append(this.autoIncrement);
    first = false;
    if (!first) sb.append(", ");
    sb.append("autoDecrement:");
    sb.append(this.autoDecrement);
    first = false;
    if (!first) sb.append(", ");
    sb.append("manualFavourite:");
    sb.append(this.manualFavourite);
    first = false;
    if (!first) sb.append(", ");
    sb.append("autoFavourite:");
    sb.append(this.autoFavourite);
    first = false;
    if (!first) sb.append(", ");
    sb.append("currentSp:");
    sb.append(this.currentSp);
    first = false;
    if (!first) sb.append(", ");
    sb.append("currentTp:");
    sb.append(this.currentTp);
    first = false;
    if (!first) sb.append(", ");
    sb.append("minimumPossibleSp:");
    sb.append(this.minimumPossibleSp);
    first = false;
    if (!first) sb.append(", ");
    sb.append("minimumPossibleTp:");
    sb.append(this.minimumPossibleTp);
    first = false;
    if (!first) sb.append(", ");
    sb.append("lastCheckedTimestamp:");
    sb.append(this.lastCheckedTimestamp);
    first = false;
    if (!first) sb.append(", ");
    sb.append("maximumSellingPrice:");
    sb.append(this.maximumSellingPrice);
    first = false;
    if (!first) sb.append(", ");
    sb.append("pgFee:");
    sb.append(this.pgFee);
    first = false;
    if (!first) sb.append(", ");
    sb.append("courierCostMarketplace:");
    sb.append(this.courierCostMarketplace);
    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);
    }
  }

}