Subversion Repositories SmartDukaan

Rev

Rev 12133 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
8739 vikram.rag 1
/**
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.catalog;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
18
import java.nio.ByteBuffer;
19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class SnapdealItem implements org.apache.thrift.TBase<SnapdealItem, SnapdealItem._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SnapdealItem");
25
 
26
  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);
27
  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);
28
  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);
29
  private static final org.apache.thrift.protocol.TField IS_LISTED_ON_SNAPDEAL_FIELD_DESC = new org.apache.thrift.protocol.TField("isListedOnSnapdeal", org.apache.thrift.protocol.TType.BOOL, (short)4);
9242 kshitij.so 30
  private static final org.apache.thrift.protocol.TField TRANSFER_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("transferPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
31
  private static final org.apache.thrift.protocol.TField SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("sellingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
32
  private static final org.apache.thrift.protocol.TField COURIER_COST_FIELD_DESC = new org.apache.thrift.protocol.TField("courierCost", org.apache.thrift.protocol.TType.DOUBLE, (short)7);
33
  private static final org.apache.thrift.protocol.TField COMMISSION_FIELD_DESC = new org.apache.thrift.protocol.TField("commission", org.apache.thrift.protocol.TType.DOUBLE, (short)8);
34
  private static final org.apache.thrift.protocol.TField SERVICE_TAX_FIELD_DESC = new org.apache.thrift.protocol.TField("serviceTax", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
35
  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)10);
36
  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)11);
9404 vikram.rag 37
  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)12);
9456 vikram.rag 38
  private static final org.apache.thrift.protocol.TField SKU_AT_SNAPDEAL_FIELD_DESC = new org.apache.thrift.protocol.TField("skuAtSnapdeal", org.apache.thrift.protocol.TType.STRING, (short)13);
9568 kshitij.so 39
  private static final org.apache.thrift.protocol.TField SUPC_FIELD_DESC = new org.apache.thrift.protocol.TField("supc", org.apache.thrift.protocol.TType.STRING, (short)14);
9724 kshitij.so 40
  private static final org.apache.thrift.protocol.TField SHIPPING_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("shippingTime", org.apache.thrift.protocol.TType.STRING, (short)15);
9779 kshitij.so 41
  private static final org.apache.thrift.protocol.TField UPDATED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("updatedBy", org.apache.thrift.protocol.TType.STRING, (short)16);
42
  private static final org.apache.thrift.protocol.TField MARKETPLACE_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("marketplaceItems", org.apache.thrift.protocol.TType.STRUCT, (short)17);
11095 kshitij.so 43
  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)18);
12133 kshitij.so 44
  private static final org.apache.thrift.protocol.TField ITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("item", org.apache.thrift.protocol.TType.STRUCT, (short)19);
14780 manish.sha 45
  private static final org.apache.thrift.protocol.TField IS_VOI_LISTED_FIELD_DESC = new org.apache.thrift.protocol.TField("isVoiListed", org.apache.thrift.protocol.TType.BOOL, (short)20);
46
  private static final org.apache.thrift.protocol.TField VOI_SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("voiSellingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)21);
47
  private static final org.apache.thrift.protocol.TField SUPPRESS_VOI_PRICE_FEED_FIELD_DESC = new org.apache.thrift.protocol.TField("suppressVoiPriceFeed", org.apache.thrift.protocol.TType.BOOL, (short)22);
48
  private static final org.apache.thrift.protocol.TField VOI_PRICE_LAST_UPDATED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("voiPriceLastUpdatedOn", org.apache.thrift.protocol.TType.I64, (short)23);
49
  private static final org.apache.thrift.protocol.TField VOI_SKU_AT_SNAPDEAL_FIELD_DESC = new org.apache.thrift.protocol.TField("voiSkuAtSnapdeal", org.apache.thrift.protocol.TType.STRING, (short)24);
50
  private static final org.apache.thrift.protocol.TField MINIMUM_POSSIBLE_SP_VOI_FIELD_DESC = new org.apache.thrift.protocol.TField("minimumPossibleSpVoi", org.apache.thrift.protocol.TType.DOUBLE, (short)25);
51
  private static final org.apache.thrift.protocol.TField MINIMUM_POSSIBLE_TP_VOI_FIELD_DESC = new org.apache.thrift.protocol.TField("minimumPossibleTpVoi", org.apache.thrift.protocol.TType.DOUBLE, (short)26);
52
  private static final org.apache.thrift.protocol.TField COURIER_COST_VOI_FIELD_DESC = new org.apache.thrift.protocol.TField("courierCostVoi", org.apache.thrift.protocol.TType.DOUBLE, (short)27);
53
  private static final org.apache.thrift.protocol.TField SERVICE_TAX_VOI_FIELD_DESC = new org.apache.thrift.protocol.TField("serviceTaxVoi", org.apache.thrift.protocol.TType.DOUBLE, (short)28);
54
  private static final org.apache.thrift.protocol.TField TRANSFER_PRICE_VOI_FIELD_DESC = new org.apache.thrift.protocol.TField("transferPriceVoi", org.apache.thrift.protocol.TType.DOUBLE, (short)29);
55
  private static final org.apache.thrift.protocol.TField COMMISSION_VOI_FIELD_DESC = new org.apache.thrift.protocol.TField("commissionVoi", org.apache.thrift.protocol.TType.DOUBLE, (short)30);
8739 vikram.rag 56
 
57
  private long item_id; // required
58
  private long warehouseId; // required
59
  private double exceptionPrice; // required
60
  private boolean isListedOnSnapdeal; // required
9242 kshitij.so 61
  private double transferPrice; // required
62
  private double sellingPrice; // required
63
  private double courierCost; // required
64
  private double commission; // required
65
  private double serviceTax; // required
66
  private boolean suppressPriceFeed; // required
67
  private boolean suppressInventoryFeed; // required
9404 vikram.rag 68
  private double maxNlc; // required
9456 vikram.rag 69
  private String skuAtSnapdeal; // required
9568 kshitij.so 70
  private String supc; // required
9724 kshitij.so 71
  private String shippingTime; // required
9779 kshitij.so 72
  private String updatedBy; // required
73
  private MarketplaceItems marketplaceItems; // required
11095 kshitij.so 74
  private double courierCostMarketplace; // required
12133 kshitij.so 75
  private Item item; // required
14780 manish.sha 76
  private boolean isVoiListed; // required
77
  private double voiSellingPrice; // required
78
  private boolean suppressVoiPriceFeed; // required
79
  private long voiPriceLastUpdatedOn; // required
80
  private String voiSkuAtSnapdeal; // required
81
  private double minimumPossibleSpVoi; // required
82
  private double minimumPossibleTpVoi; // required
83
  private double courierCostVoi; // required
84
  private double serviceTaxVoi; // required
85
  private double transferPriceVoi; // required
86
  private double commissionVoi; // required
8739 vikram.rag 87
 
88
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
89
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
90
    ITEM_ID((short)1, "item_id"),
91
    WAREHOUSE_ID((short)2, "warehouseId"),
92
    EXCEPTION_PRICE((short)3, "exceptionPrice"),
9242 kshitij.so 93
    IS_LISTED_ON_SNAPDEAL((short)4, "isListedOnSnapdeal"),
94
    TRANSFER_PRICE((short)5, "transferPrice"),
95
    SELLING_PRICE((short)6, "sellingPrice"),
96
    COURIER_COST((short)7, "courierCost"),
97
    COMMISSION((short)8, "commission"),
98
    SERVICE_TAX((short)9, "serviceTax"),
99
    SUPPRESS_PRICE_FEED((short)10, "suppressPriceFeed"),
9404 vikram.rag 100
    SUPPRESS_INVENTORY_FEED((short)11, "suppressInventoryFeed"),
9456 vikram.rag 101
    MAX_NLC((short)12, "maxNlc"),
9568 kshitij.so 102
    SKU_AT_SNAPDEAL((short)13, "skuAtSnapdeal"),
9724 kshitij.so 103
    SUPC((short)14, "supc"),
9779 kshitij.so 104
    SHIPPING_TIME((short)15, "shippingTime"),
105
    UPDATED_BY((short)16, "updatedBy"),
11095 kshitij.so 106
    MARKETPLACE_ITEMS((short)17, "marketplaceItems"),
12133 kshitij.so 107
    COURIER_COST_MARKETPLACE((short)18, "courierCostMarketplace"),
14780 manish.sha 108
    ITEM((short)19, "item"),
109
    IS_VOI_LISTED((short)20, "isVoiListed"),
110
    VOI_SELLING_PRICE((short)21, "voiSellingPrice"),
111
    SUPPRESS_VOI_PRICE_FEED((short)22, "suppressVoiPriceFeed"),
112
    VOI_PRICE_LAST_UPDATED_ON((short)23, "voiPriceLastUpdatedOn"),
113
    VOI_SKU_AT_SNAPDEAL((short)24, "voiSkuAtSnapdeal"),
114
    MINIMUM_POSSIBLE_SP_VOI((short)25, "minimumPossibleSpVoi"),
115
    MINIMUM_POSSIBLE_TP_VOI((short)26, "minimumPossibleTpVoi"),
116
    COURIER_COST_VOI((short)27, "courierCostVoi"),
117
    SERVICE_TAX_VOI((short)28, "serviceTaxVoi"),
118
    TRANSFER_PRICE_VOI((short)29, "transferPriceVoi"),
119
    COMMISSION_VOI((short)30, "commissionVoi");
8739 vikram.rag 120
 
121
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
122
 
123
    static {
124
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
125
        byName.put(field.getFieldName(), field);
126
      }
127
    }
128
 
129
    /**
130
     * Find the _Fields constant that matches fieldId, or null if its not found.
131
     */
132
    public static _Fields findByThriftId(int fieldId) {
133
      switch(fieldId) {
134
        case 1: // ITEM_ID
135
          return ITEM_ID;
136
        case 2: // WAREHOUSE_ID
137
          return WAREHOUSE_ID;
138
        case 3: // EXCEPTION_PRICE
139
          return EXCEPTION_PRICE;
140
        case 4: // IS_LISTED_ON_SNAPDEAL
141
          return IS_LISTED_ON_SNAPDEAL;
9242 kshitij.so 142
        case 5: // TRANSFER_PRICE
143
          return TRANSFER_PRICE;
144
        case 6: // SELLING_PRICE
145
          return SELLING_PRICE;
146
        case 7: // COURIER_COST
147
          return COURIER_COST;
148
        case 8: // COMMISSION
149
          return COMMISSION;
150
        case 9: // SERVICE_TAX
151
          return SERVICE_TAX;
152
        case 10: // SUPPRESS_PRICE_FEED
153
          return SUPPRESS_PRICE_FEED;
154
        case 11: // SUPPRESS_INVENTORY_FEED
155
          return SUPPRESS_INVENTORY_FEED;
9404 vikram.rag 156
        case 12: // MAX_NLC
157
          return MAX_NLC;
9456 vikram.rag 158
        case 13: // SKU_AT_SNAPDEAL
159
          return SKU_AT_SNAPDEAL;
9568 kshitij.so 160
        case 14: // SUPC
161
          return SUPC;
9724 kshitij.so 162
        case 15: // SHIPPING_TIME
163
          return SHIPPING_TIME;
9779 kshitij.so 164
        case 16: // UPDATED_BY
165
          return UPDATED_BY;
166
        case 17: // MARKETPLACE_ITEMS
167
          return MARKETPLACE_ITEMS;
11095 kshitij.so 168
        case 18: // COURIER_COST_MARKETPLACE
169
          return COURIER_COST_MARKETPLACE;
12133 kshitij.so 170
        case 19: // ITEM
171
          return ITEM;
14780 manish.sha 172
        case 20: // IS_VOI_LISTED
173
          return IS_VOI_LISTED;
174
        case 21: // VOI_SELLING_PRICE
175
          return VOI_SELLING_PRICE;
176
        case 22: // SUPPRESS_VOI_PRICE_FEED
177
          return SUPPRESS_VOI_PRICE_FEED;
178
        case 23: // VOI_PRICE_LAST_UPDATED_ON
179
          return VOI_PRICE_LAST_UPDATED_ON;
180
        case 24: // VOI_SKU_AT_SNAPDEAL
181
          return VOI_SKU_AT_SNAPDEAL;
182
        case 25: // MINIMUM_POSSIBLE_SP_VOI
183
          return MINIMUM_POSSIBLE_SP_VOI;
184
        case 26: // MINIMUM_POSSIBLE_TP_VOI
185
          return MINIMUM_POSSIBLE_TP_VOI;
186
        case 27: // COURIER_COST_VOI
187
          return COURIER_COST_VOI;
188
        case 28: // SERVICE_TAX_VOI
189
          return SERVICE_TAX_VOI;
190
        case 29: // TRANSFER_PRICE_VOI
191
          return TRANSFER_PRICE_VOI;
192
        case 30: // COMMISSION_VOI
193
          return COMMISSION_VOI;
8739 vikram.rag 194
        default:
195
          return null;
196
      }
197
    }
198
 
199
    /**
200
     * Find the _Fields constant that matches fieldId, throwing an exception
201
     * if it is not found.
202
     */
203
    public static _Fields findByThriftIdOrThrow(int fieldId) {
204
      _Fields fields = findByThriftId(fieldId);
205
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
206
      return fields;
207
    }
208
 
209
    /**
210
     * Find the _Fields constant that matches name, or null if its not found.
211
     */
212
    public static _Fields findByName(String name) {
213
      return byName.get(name);
214
    }
215
 
216
    private final short _thriftId;
217
    private final String _fieldName;
218
 
219
    _Fields(short thriftId, String fieldName) {
220
      _thriftId = thriftId;
221
      _fieldName = fieldName;
222
    }
223
 
224
    public short getThriftFieldId() {
225
      return _thriftId;
226
    }
227
 
228
    public String getFieldName() {
229
      return _fieldName;
230
    }
231
  }
232
 
233
  // isset id assignments
234
  private static final int __ITEM_ID_ISSET_ID = 0;
235
  private static final int __WAREHOUSEID_ISSET_ID = 1;
236
  private static final int __EXCEPTIONPRICE_ISSET_ID = 2;
237
  private static final int __ISLISTEDONSNAPDEAL_ISSET_ID = 3;
9242 kshitij.so 238
  private static final int __TRANSFERPRICE_ISSET_ID = 4;
239
  private static final int __SELLINGPRICE_ISSET_ID = 5;
240
  private static final int __COURIERCOST_ISSET_ID = 6;
241
  private static final int __COMMISSION_ISSET_ID = 7;
242
  private static final int __SERVICETAX_ISSET_ID = 8;
243
  private static final int __SUPPRESSPRICEFEED_ISSET_ID = 9;
244
  private static final int __SUPPRESSINVENTORYFEED_ISSET_ID = 10;
9404 vikram.rag 245
  private static final int __MAXNLC_ISSET_ID = 11;
11095 kshitij.so 246
  private static final int __COURIERCOSTMARKETPLACE_ISSET_ID = 12;
14780 manish.sha 247
  private static final int __ISVOILISTED_ISSET_ID = 13;
248
  private static final int __VOISELLINGPRICE_ISSET_ID = 14;
249
  private static final int __SUPPRESSVOIPRICEFEED_ISSET_ID = 15;
250
  private static final int __VOIPRICELASTUPDATEDON_ISSET_ID = 16;
251
  private static final int __MINIMUMPOSSIBLESPVOI_ISSET_ID = 17;
252
  private static final int __MINIMUMPOSSIBLETPVOI_ISSET_ID = 18;
253
  private static final int __COURIERCOSTVOI_ISSET_ID = 19;
254
  private static final int __SERVICETAXVOI_ISSET_ID = 20;
255
  private static final int __TRANSFERPRICEVOI_ISSET_ID = 21;
256
  private static final int __COMMISSIONVOI_ISSET_ID = 22;
257
  private BitSet __isset_bit_vector = new BitSet(23);
8739 vikram.rag 258
 
259
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
260
  static {
261
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
262
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
263
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
264
    tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
265
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
266
    tmpMap.put(_Fields.EXCEPTION_PRICE, new org.apache.thrift.meta_data.FieldMetaData("exceptionPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
267
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
268
    tmpMap.put(_Fields.IS_LISTED_ON_SNAPDEAL, new org.apache.thrift.meta_data.FieldMetaData("isListedOnSnapdeal", org.apache.thrift.TFieldRequirementType.DEFAULT, 
269
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9242 kshitij.so 270
    tmpMap.put(_Fields.TRANSFER_PRICE, new org.apache.thrift.meta_data.FieldMetaData("transferPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
271
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
272
    tmpMap.put(_Fields.SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("sellingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
273
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
274
    tmpMap.put(_Fields.COURIER_COST, new org.apache.thrift.meta_data.FieldMetaData("courierCost", org.apache.thrift.TFieldRequirementType.DEFAULT, 
275
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
276
    tmpMap.put(_Fields.COMMISSION, new org.apache.thrift.meta_data.FieldMetaData("commission", org.apache.thrift.TFieldRequirementType.DEFAULT, 
277
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
278
    tmpMap.put(_Fields.SERVICE_TAX, new org.apache.thrift.meta_data.FieldMetaData("serviceTax", org.apache.thrift.TFieldRequirementType.DEFAULT, 
279
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
280
    tmpMap.put(_Fields.SUPPRESS_PRICE_FEED, new org.apache.thrift.meta_data.FieldMetaData("suppressPriceFeed", org.apache.thrift.TFieldRequirementType.DEFAULT, 
281
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
282
    tmpMap.put(_Fields.SUPPRESS_INVENTORY_FEED, new org.apache.thrift.meta_data.FieldMetaData("suppressInventoryFeed", org.apache.thrift.TFieldRequirementType.DEFAULT, 
283
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9404 vikram.rag 284
    tmpMap.put(_Fields.MAX_NLC, new org.apache.thrift.meta_data.FieldMetaData("maxNlc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
285
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
9456 vikram.rag 286
    tmpMap.put(_Fields.SKU_AT_SNAPDEAL, new org.apache.thrift.meta_data.FieldMetaData("skuAtSnapdeal", org.apache.thrift.TFieldRequirementType.DEFAULT, 
287
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9568 kshitij.so 288
    tmpMap.put(_Fields.SUPC, new org.apache.thrift.meta_data.FieldMetaData("supc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
289
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9724 kshitij.so 290
    tmpMap.put(_Fields.SHIPPING_TIME, new org.apache.thrift.meta_data.FieldMetaData("shippingTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
291
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9779 kshitij.so 292
    tmpMap.put(_Fields.UPDATED_BY, new org.apache.thrift.meta_data.FieldMetaData("updatedBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
293
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
294
    tmpMap.put(_Fields.MARKETPLACE_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("marketplaceItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
295
        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MarketplaceItems.class)));
11095 kshitij.so 296
    tmpMap.put(_Fields.COURIER_COST_MARKETPLACE, new org.apache.thrift.meta_data.FieldMetaData("courierCostMarketplace", org.apache.thrift.TFieldRequirementType.DEFAULT, 
297
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
12133 kshitij.so 298
    tmpMap.put(_Fields.ITEM, new org.apache.thrift.meta_data.FieldMetaData("item", org.apache.thrift.TFieldRequirementType.DEFAULT, 
299
        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class)));
14780 manish.sha 300
    tmpMap.put(_Fields.IS_VOI_LISTED, new org.apache.thrift.meta_data.FieldMetaData("isVoiListed", org.apache.thrift.TFieldRequirementType.DEFAULT, 
301
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
302
    tmpMap.put(_Fields.VOI_SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("voiSellingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
303
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
304
    tmpMap.put(_Fields.SUPPRESS_VOI_PRICE_FEED, new org.apache.thrift.meta_data.FieldMetaData("suppressVoiPriceFeed", org.apache.thrift.TFieldRequirementType.DEFAULT, 
305
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
306
    tmpMap.put(_Fields.VOI_PRICE_LAST_UPDATED_ON, new org.apache.thrift.meta_data.FieldMetaData("voiPriceLastUpdatedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
307
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
308
    tmpMap.put(_Fields.VOI_SKU_AT_SNAPDEAL, new org.apache.thrift.meta_data.FieldMetaData("voiSkuAtSnapdeal", org.apache.thrift.TFieldRequirementType.DEFAULT, 
309
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
310
    tmpMap.put(_Fields.MINIMUM_POSSIBLE_SP_VOI, new org.apache.thrift.meta_data.FieldMetaData("minimumPossibleSpVoi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
311
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
312
    tmpMap.put(_Fields.MINIMUM_POSSIBLE_TP_VOI, new org.apache.thrift.meta_data.FieldMetaData("minimumPossibleTpVoi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
313
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
314
    tmpMap.put(_Fields.COURIER_COST_VOI, new org.apache.thrift.meta_data.FieldMetaData("courierCostVoi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
315
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
316
    tmpMap.put(_Fields.SERVICE_TAX_VOI, new org.apache.thrift.meta_data.FieldMetaData("serviceTaxVoi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
317
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
318
    tmpMap.put(_Fields.TRANSFER_PRICE_VOI, new org.apache.thrift.meta_data.FieldMetaData("transferPriceVoi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
319
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
320
    tmpMap.put(_Fields.COMMISSION_VOI, new org.apache.thrift.meta_data.FieldMetaData("commissionVoi", org.apache.thrift.TFieldRequirementType.DEFAULT, 
321
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
8739 vikram.rag 322
    metaDataMap = Collections.unmodifiableMap(tmpMap);
323
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SnapdealItem.class, metaDataMap);
324
  }
325
 
326
  public SnapdealItem() {
327
  }
328
 
329
  public SnapdealItem(
330
    long item_id,
331
    long warehouseId,
332
    double exceptionPrice,
9242 kshitij.so 333
    boolean isListedOnSnapdeal,
334
    double transferPrice,
335
    double sellingPrice,
336
    double courierCost,
337
    double commission,
338
    double serviceTax,
339
    boolean suppressPriceFeed,
9404 vikram.rag 340
    boolean suppressInventoryFeed,
9456 vikram.rag 341
    double maxNlc,
9568 kshitij.so 342
    String skuAtSnapdeal,
9724 kshitij.so 343
    String supc,
9779 kshitij.so 344
    String shippingTime,
345
    String updatedBy,
11095 kshitij.so 346
    MarketplaceItems marketplaceItems,
12133 kshitij.so 347
    double courierCostMarketplace,
14780 manish.sha 348
    Item item,
349
    boolean isVoiListed,
350
    double voiSellingPrice,
351
    boolean suppressVoiPriceFeed,
352
    long voiPriceLastUpdatedOn,
353
    String voiSkuAtSnapdeal,
354
    double minimumPossibleSpVoi,
355
    double minimumPossibleTpVoi,
356
    double courierCostVoi,
357
    double serviceTaxVoi,
358
    double transferPriceVoi,
359
    double commissionVoi)
8739 vikram.rag 360
  {
361
    this();
362
    this.item_id = item_id;
363
    setItem_idIsSet(true);
364
    this.warehouseId = warehouseId;
365
    setWarehouseIdIsSet(true);
366
    this.exceptionPrice = exceptionPrice;
367
    setExceptionPriceIsSet(true);
368
    this.isListedOnSnapdeal = isListedOnSnapdeal;
369
    setIsListedOnSnapdealIsSet(true);
9242 kshitij.so 370
    this.transferPrice = transferPrice;
371
    setTransferPriceIsSet(true);
372
    this.sellingPrice = sellingPrice;
373
    setSellingPriceIsSet(true);
374
    this.courierCost = courierCost;
375
    setCourierCostIsSet(true);
376
    this.commission = commission;
377
    setCommissionIsSet(true);
378
    this.serviceTax = serviceTax;
379
    setServiceTaxIsSet(true);
380
    this.suppressPriceFeed = suppressPriceFeed;
381
    setSuppressPriceFeedIsSet(true);
382
    this.suppressInventoryFeed = suppressInventoryFeed;
383
    setSuppressInventoryFeedIsSet(true);
9404 vikram.rag 384
    this.maxNlc = maxNlc;
385
    setMaxNlcIsSet(true);
9456 vikram.rag 386
    this.skuAtSnapdeal = skuAtSnapdeal;
9568 kshitij.so 387
    this.supc = supc;
9724 kshitij.so 388
    this.shippingTime = shippingTime;
9779 kshitij.so 389
    this.updatedBy = updatedBy;
390
    this.marketplaceItems = marketplaceItems;
11095 kshitij.so 391
    this.courierCostMarketplace = courierCostMarketplace;
392
    setCourierCostMarketplaceIsSet(true);
12133 kshitij.so 393
    this.item = item;
14780 manish.sha 394
    this.isVoiListed = isVoiListed;
395
    setIsVoiListedIsSet(true);
396
    this.voiSellingPrice = voiSellingPrice;
397
    setVoiSellingPriceIsSet(true);
398
    this.suppressVoiPriceFeed = suppressVoiPriceFeed;
399
    setSuppressVoiPriceFeedIsSet(true);
400
    this.voiPriceLastUpdatedOn = voiPriceLastUpdatedOn;
401
    setVoiPriceLastUpdatedOnIsSet(true);
402
    this.voiSkuAtSnapdeal = voiSkuAtSnapdeal;
403
    this.minimumPossibleSpVoi = minimumPossibleSpVoi;
404
    setMinimumPossibleSpVoiIsSet(true);
405
    this.minimumPossibleTpVoi = minimumPossibleTpVoi;
406
    setMinimumPossibleTpVoiIsSet(true);
407
    this.courierCostVoi = courierCostVoi;
408
    setCourierCostVoiIsSet(true);
409
    this.serviceTaxVoi = serviceTaxVoi;
410
    setServiceTaxVoiIsSet(true);
411
    this.transferPriceVoi = transferPriceVoi;
412
    setTransferPriceVoiIsSet(true);
413
    this.commissionVoi = commissionVoi;
414
    setCommissionVoiIsSet(true);
8739 vikram.rag 415
  }
416
 
417
  /**
418
   * Performs a deep copy on <i>other</i>.
419
   */
420
  public SnapdealItem(SnapdealItem other) {
421
    __isset_bit_vector.clear();
422
    __isset_bit_vector.or(other.__isset_bit_vector);
423
    this.item_id = other.item_id;
424
    this.warehouseId = other.warehouseId;
425
    this.exceptionPrice = other.exceptionPrice;
426
    this.isListedOnSnapdeal = other.isListedOnSnapdeal;
9242 kshitij.so 427
    this.transferPrice = other.transferPrice;
428
    this.sellingPrice = other.sellingPrice;
429
    this.courierCost = other.courierCost;
430
    this.commission = other.commission;
431
    this.serviceTax = other.serviceTax;
432
    this.suppressPriceFeed = other.suppressPriceFeed;
433
    this.suppressInventoryFeed = other.suppressInventoryFeed;
9404 vikram.rag 434
    this.maxNlc = other.maxNlc;
9456 vikram.rag 435
    if (other.isSetSkuAtSnapdeal()) {
436
      this.skuAtSnapdeal = other.skuAtSnapdeal;
437
    }
9568 kshitij.so 438
    if (other.isSetSupc()) {
439
      this.supc = other.supc;
440
    }
9724 kshitij.so 441
    if (other.isSetShippingTime()) {
442
      this.shippingTime = other.shippingTime;
443
    }
9779 kshitij.so 444
    if (other.isSetUpdatedBy()) {
445
      this.updatedBy = other.updatedBy;
446
    }
447
    if (other.isSetMarketplaceItems()) {
448
      this.marketplaceItems = new MarketplaceItems(other.marketplaceItems);
449
    }
11095 kshitij.so 450
    this.courierCostMarketplace = other.courierCostMarketplace;
12133 kshitij.so 451
    if (other.isSetItem()) {
452
      this.item = new Item(other.item);
453
    }
14780 manish.sha 454
    this.isVoiListed = other.isVoiListed;
455
    this.voiSellingPrice = other.voiSellingPrice;
456
    this.suppressVoiPriceFeed = other.suppressVoiPriceFeed;
457
    this.voiPriceLastUpdatedOn = other.voiPriceLastUpdatedOn;
458
    if (other.isSetVoiSkuAtSnapdeal()) {
459
      this.voiSkuAtSnapdeal = other.voiSkuAtSnapdeal;
460
    }
461
    this.minimumPossibleSpVoi = other.minimumPossibleSpVoi;
462
    this.minimumPossibleTpVoi = other.minimumPossibleTpVoi;
463
    this.courierCostVoi = other.courierCostVoi;
464
    this.serviceTaxVoi = other.serviceTaxVoi;
465
    this.transferPriceVoi = other.transferPriceVoi;
466
    this.commissionVoi = other.commissionVoi;
8739 vikram.rag 467
  }
468
 
469
  public SnapdealItem deepCopy() {
470
    return new SnapdealItem(this);
471
  }
472
 
473
  @Override
474
  public void clear() {
475
    setItem_idIsSet(false);
476
    this.item_id = 0;
477
    setWarehouseIdIsSet(false);
478
    this.warehouseId = 0;
479
    setExceptionPriceIsSet(false);
480
    this.exceptionPrice = 0.0;
481
    setIsListedOnSnapdealIsSet(false);
482
    this.isListedOnSnapdeal = false;
9242 kshitij.so 483
    setTransferPriceIsSet(false);
484
    this.transferPrice = 0.0;
485
    setSellingPriceIsSet(false);
486
    this.sellingPrice = 0.0;
487
    setCourierCostIsSet(false);
488
    this.courierCost = 0.0;
489
    setCommissionIsSet(false);
490
    this.commission = 0.0;
491
    setServiceTaxIsSet(false);
492
    this.serviceTax = 0.0;
493
    setSuppressPriceFeedIsSet(false);
494
    this.suppressPriceFeed = false;
495
    setSuppressInventoryFeedIsSet(false);
496
    this.suppressInventoryFeed = false;
9404 vikram.rag 497
    setMaxNlcIsSet(false);
498
    this.maxNlc = 0.0;
9456 vikram.rag 499
    this.skuAtSnapdeal = null;
9568 kshitij.so 500
    this.supc = null;
9724 kshitij.so 501
    this.shippingTime = null;
9779 kshitij.so 502
    this.updatedBy = null;
503
    this.marketplaceItems = null;
11095 kshitij.so 504
    setCourierCostMarketplaceIsSet(false);
505
    this.courierCostMarketplace = 0.0;
12133 kshitij.so 506
    this.item = null;
14780 manish.sha 507
    setIsVoiListedIsSet(false);
508
    this.isVoiListed = false;
509
    setVoiSellingPriceIsSet(false);
510
    this.voiSellingPrice = 0.0;
511
    setSuppressVoiPriceFeedIsSet(false);
512
    this.suppressVoiPriceFeed = false;
513
    setVoiPriceLastUpdatedOnIsSet(false);
514
    this.voiPriceLastUpdatedOn = 0;
515
    this.voiSkuAtSnapdeal = null;
516
    setMinimumPossibleSpVoiIsSet(false);
517
    this.minimumPossibleSpVoi = 0.0;
518
    setMinimumPossibleTpVoiIsSet(false);
519
    this.minimumPossibleTpVoi = 0.0;
520
    setCourierCostVoiIsSet(false);
521
    this.courierCostVoi = 0.0;
522
    setServiceTaxVoiIsSet(false);
523
    this.serviceTaxVoi = 0.0;
524
    setTransferPriceVoiIsSet(false);
525
    this.transferPriceVoi = 0.0;
526
    setCommissionVoiIsSet(false);
527
    this.commissionVoi = 0.0;
8739 vikram.rag 528
  }
529
 
530
  public long getItem_id() {
531
    return this.item_id;
532
  }
533
 
534
  public void setItem_id(long item_id) {
535
    this.item_id = item_id;
536
    setItem_idIsSet(true);
537
  }
538
 
539
  public void unsetItem_id() {
540
    __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
541
  }
542
 
543
  /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
544
  public boolean isSetItem_id() {
545
    return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
546
  }
547
 
548
  public void setItem_idIsSet(boolean value) {
549
    __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
550
  }
551
 
552
  public long getWarehouseId() {
553
    return this.warehouseId;
554
  }
555
 
556
  public void setWarehouseId(long warehouseId) {
557
    this.warehouseId = warehouseId;
558
    setWarehouseIdIsSet(true);
559
  }
560
 
561
  public void unsetWarehouseId() {
562
    __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
563
  }
564
 
565
  /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
566
  public boolean isSetWarehouseId() {
567
    return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
568
  }
569
 
570
  public void setWarehouseIdIsSet(boolean value) {
571
    __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
572
  }
573
 
574
  public double getExceptionPrice() {
575
    return this.exceptionPrice;
576
  }
577
 
578
  public void setExceptionPrice(double exceptionPrice) {
579
    this.exceptionPrice = exceptionPrice;
580
    setExceptionPriceIsSet(true);
581
  }
582
 
583
  public void unsetExceptionPrice() {
584
    __isset_bit_vector.clear(__EXCEPTIONPRICE_ISSET_ID);
585
  }
586
 
587
  /** Returns true if field exceptionPrice is set (has been assigned a value) and false otherwise */
588
  public boolean isSetExceptionPrice() {
589
    return __isset_bit_vector.get(__EXCEPTIONPRICE_ISSET_ID);
590
  }
591
 
592
  public void setExceptionPriceIsSet(boolean value) {
593
    __isset_bit_vector.set(__EXCEPTIONPRICE_ISSET_ID, value);
594
  }
595
 
596
  public boolean isIsListedOnSnapdeal() {
597
    return this.isListedOnSnapdeal;
598
  }
599
 
600
  public void setIsListedOnSnapdeal(boolean isListedOnSnapdeal) {
601
    this.isListedOnSnapdeal = isListedOnSnapdeal;
602
    setIsListedOnSnapdealIsSet(true);
603
  }
604
 
605
  public void unsetIsListedOnSnapdeal() {
606
    __isset_bit_vector.clear(__ISLISTEDONSNAPDEAL_ISSET_ID);
607
  }
608
 
609
  /** Returns true if field isListedOnSnapdeal is set (has been assigned a value) and false otherwise */
610
  public boolean isSetIsListedOnSnapdeal() {
611
    return __isset_bit_vector.get(__ISLISTEDONSNAPDEAL_ISSET_ID);
612
  }
613
 
614
  public void setIsListedOnSnapdealIsSet(boolean value) {
615
    __isset_bit_vector.set(__ISLISTEDONSNAPDEAL_ISSET_ID, value);
616
  }
617
 
9242 kshitij.so 618
  public double getTransferPrice() {
619
    return this.transferPrice;
620
  }
621
 
622
  public void setTransferPrice(double transferPrice) {
623
    this.transferPrice = transferPrice;
624
    setTransferPriceIsSet(true);
625
  }
626
 
627
  public void unsetTransferPrice() {
628
    __isset_bit_vector.clear(__TRANSFERPRICE_ISSET_ID);
629
  }
630
 
631
  /** Returns true if field transferPrice is set (has been assigned a value) and false otherwise */
632
  public boolean isSetTransferPrice() {
633
    return __isset_bit_vector.get(__TRANSFERPRICE_ISSET_ID);
634
  }
635
 
636
  public void setTransferPriceIsSet(boolean value) {
637
    __isset_bit_vector.set(__TRANSFERPRICE_ISSET_ID, value);
638
  }
639
 
640
  public double getSellingPrice() {
641
    return this.sellingPrice;
642
  }
643
 
644
  public void setSellingPrice(double sellingPrice) {
645
    this.sellingPrice = sellingPrice;
646
    setSellingPriceIsSet(true);
647
  }
648
 
649
  public void unsetSellingPrice() {
650
    __isset_bit_vector.clear(__SELLINGPRICE_ISSET_ID);
651
  }
652
 
653
  /** Returns true if field sellingPrice is set (has been assigned a value) and false otherwise */
654
  public boolean isSetSellingPrice() {
655
    return __isset_bit_vector.get(__SELLINGPRICE_ISSET_ID);
656
  }
657
 
658
  public void setSellingPriceIsSet(boolean value) {
659
    __isset_bit_vector.set(__SELLINGPRICE_ISSET_ID, value);
660
  }
661
 
662
  public double getCourierCost() {
663
    return this.courierCost;
664
  }
665
 
666
  public void setCourierCost(double courierCost) {
667
    this.courierCost = courierCost;
668
    setCourierCostIsSet(true);
669
  }
670
 
671
  public void unsetCourierCost() {
672
    __isset_bit_vector.clear(__COURIERCOST_ISSET_ID);
673
  }
674
 
675
  /** Returns true if field courierCost is set (has been assigned a value) and false otherwise */
676
  public boolean isSetCourierCost() {
677
    return __isset_bit_vector.get(__COURIERCOST_ISSET_ID);
678
  }
679
 
680
  public void setCourierCostIsSet(boolean value) {
681
    __isset_bit_vector.set(__COURIERCOST_ISSET_ID, value);
682
  }
683
 
684
  public double getCommission() {
685
    return this.commission;
686
  }
687
 
688
  public void setCommission(double commission) {
689
    this.commission = commission;
690
    setCommissionIsSet(true);
691
  }
692
 
693
  public void unsetCommission() {
694
    __isset_bit_vector.clear(__COMMISSION_ISSET_ID);
695
  }
696
 
697
  /** Returns true if field commission is set (has been assigned a value) and false otherwise */
698
  public boolean isSetCommission() {
699
    return __isset_bit_vector.get(__COMMISSION_ISSET_ID);
700
  }
701
 
702
  public void setCommissionIsSet(boolean value) {
703
    __isset_bit_vector.set(__COMMISSION_ISSET_ID, value);
704
  }
705
 
706
  public double getServiceTax() {
707
    return this.serviceTax;
708
  }
709
 
710
  public void setServiceTax(double serviceTax) {
711
    this.serviceTax = serviceTax;
712
    setServiceTaxIsSet(true);
713
  }
714
 
715
  public void unsetServiceTax() {
716
    __isset_bit_vector.clear(__SERVICETAX_ISSET_ID);
717
  }
718
 
719
  /** Returns true if field serviceTax is set (has been assigned a value) and false otherwise */
720
  public boolean isSetServiceTax() {
721
    return __isset_bit_vector.get(__SERVICETAX_ISSET_ID);
722
  }
723
 
724
  public void setServiceTaxIsSet(boolean value) {
725
    __isset_bit_vector.set(__SERVICETAX_ISSET_ID, value);
726
  }
727
 
728
  public boolean isSuppressPriceFeed() {
729
    return this.suppressPriceFeed;
730
  }
731
 
732
  public void setSuppressPriceFeed(boolean suppressPriceFeed) {
733
    this.suppressPriceFeed = suppressPriceFeed;
734
    setSuppressPriceFeedIsSet(true);
735
  }
736
 
737
  public void unsetSuppressPriceFeed() {
738
    __isset_bit_vector.clear(__SUPPRESSPRICEFEED_ISSET_ID);
739
  }
740
 
741
  /** Returns true if field suppressPriceFeed is set (has been assigned a value) and false otherwise */
742
  public boolean isSetSuppressPriceFeed() {
743
    return __isset_bit_vector.get(__SUPPRESSPRICEFEED_ISSET_ID);
744
  }
745
 
746
  public void setSuppressPriceFeedIsSet(boolean value) {
747
    __isset_bit_vector.set(__SUPPRESSPRICEFEED_ISSET_ID, value);
748
  }
749
 
750
  public boolean isSuppressInventoryFeed() {
751
    return this.suppressInventoryFeed;
752
  }
753
 
754
  public void setSuppressInventoryFeed(boolean suppressInventoryFeed) {
755
    this.suppressInventoryFeed = suppressInventoryFeed;
756
    setSuppressInventoryFeedIsSet(true);
757
  }
758
 
759
  public void unsetSuppressInventoryFeed() {
760
    __isset_bit_vector.clear(__SUPPRESSINVENTORYFEED_ISSET_ID);
761
  }
762
 
763
  /** Returns true if field suppressInventoryFeed is set (has been assigned a value) and false otherwise */
764
  public boolean isSetSuppressInventoryFeed() {
765
    return __isset_bit_vector.get(__SUPPRESSINVENTORYFEED_ISSET_ID);
766
  }
767
 
768
  public void setSuppressInventoryFeedIsSet(boolean value) {
769
    __isset_bit_vector.set(__SUPPRESSINVENTORYFEED_ISSET_ID, value);
770
  }
771
 
9404 vikram.rag 772
  public double getMaxNlc() {
773
    return this.maxNlc;
774
  }
775
 
776
  public void setMaxNlc(double maxNlc) {
777
    this.maxNlc = maxNlc;
778
    setMaxNlcIsSet(true);
779
  }
780
 
781
  public void unsetMaxNlc() {
782
    __isset_bit_vector.clear(__MAXNLC_ISSET_ID);
783
  }
784
 
785
  /** Returns true if field maxNlc is set (has been assigned a value) and false otherwise */
786
  public boolean isSetMaxNlc() {
787
    return __isset_bit_vector.get(__MAXNLC_ISSET_ID);
788
  }
789
 
790
  public void setMaxNlcIsSet(boolean value) {
791
    __isset_bit_vector.set(__MAXNLC_ISSET_ID, value);
792
  }
793
 
9456 vikram.rag 794
  public String getSkuAtSnapdeal() {
795
    return this.skuAtSnapdeal;
796
  }
797
 
798
  public void setSkuAtSnapdeal(String skuAtSnapdeal) {
799
    this.skuAtSnapdeal = skuAtSnapdeal;
800
  }
801
 
802
  public void unsetSkuAtSnapdeal() {
803
    this.skuAtSnapdeal = null;
804
  }
805
 
806
  /** Returns true if field skuAtSnapdeal is set (has been assigned a value) and false otherwise */
807
  public boolean isSetSkuAtSnapdeal() {
808
    return this.skuAtSnapdeal != null;
809
  }
810
 
811
  public void setSkuAtSnapdealIsSet(boolean value) {
812
    if (!value) {
813
      this.skuAtSnapdeal = null;
814
    }
815
  }
816
 
9568 kshitij.so 817
  public String getSupc() {
818
    return this.supc;
819
  }
820
 
821
  public void setSupc(String supc) {
822
    this.supc = supc;
823
  }
824
 
825
  public void unsetSupc() {
826
    this.supc = null;
827
  }
828
 
829
  /** Returns true if field supc is set (has been assigned a value) and false otherwise */
830
  public boolean isSetSupc() {
831
    return this.supc != null;
832
  }
833
 
834
  public void setSupcIsSet(boolean value) {
835
    if (!value) {
836
      this.supc = null;
837
    }
838
  }
839
 
9724 kshitij.so 840
  public String getShippingTime() {
841
    return this.shippingTime;
842
  }
843
 
844
  public void setShippingTime(String shippingTime) {
845
    this.shippingTime = shippingTime;
846
  }
847
 
848
  public void unsetShippingTime() {
849
    this.shippingTime = null;
850
  }
851
 
852
  /** Returns true if field shippingTime is set (has been assigned a value) and false otherwise */
853
  public boolean isSetShippingTime() {
854
    return this.shippingTime != null;
855
  }
856
 
857
  public void setShippingTimeIsSet(boolean value) {
858
    if (!value) {
859
      this.shippingTime = null;
860
    }
861
  }
862
 
9779 kshitij.so 863
  public String getUpdatedBy() {
864
    return this.updatedBy;
865
  }
866
 
867
  public void setUpdatedBy(String updatedBy) {
868
    this.updatedBy = updatedBy;
869
  }
870
 
871
  public void unsetUpdatedBy() {
872
    this.updatedBy = null;
873
  }
874
 
875
  /** Returns true if field updatedBy is set (has been assigned a value) and false otherwise */
876
  public boolean isSetUpdatedBy() {
877
    return this.updatedBy != null;
878
  }
879
 
880
  public void setUpdatedByIsSet(boolean value) {
881
    if (!value) {
882
      this.updatedBy = null;
883
    }
884
  }
885
 
886
  public MarketplaceItems getMarketplaceItems() {
887
    return this.marketplaceItems;
888
  }
889
 
890
  public void setMarketplaceItems(MarketplaceItems marketplaceItems) {
891
    this.marketplaceItems = marketplaceItems;
892
  }
893
 
894
  public void unsetMarketplaceItems() {
895
    this.marketplaceItems = null;
896
  }
897
 
898
  /** Returns true if field marketplaceItems is set (has been assigned a value) and false otherwise */
899
  public boolean isSetMarketplaceItems() {
900
    return this.marketplaceItems != null;
901
  }
902
 
903
  public void setMarketplaceItemsIsSet(boolean value) {
904
    if (!value) {
905
      this.marketplaceItems = null;
906
    }
907
  }
908
 
11095 kshitij.so 909
  public double getCourierCostMarketplace() {
910
    return this.courierCostMarketplace;
911
  }
912
 
913
  public void setCourierCostMarketplace(double courierCostMarketplace) {
914
    this.courierCostMarketplace = courierCostMarketplace;
915
    setCourierCostMarketplaceIsSet(true);
916
  }
917
 
918
  public void unsetCourierCostMarketplace() {
919
    __isset_bit_vector.clear(__COURIERCOSTMARKETPLACE_ISSET_ID);
920
  }
921
 
922
  /** Returns true if field courierCostMarketplace is set (has been assigned a value) and false otherwise */
923
  public boolean isSetCourierCostMarketplace() {
924
    return __isset_bit_vector.get(__COURIERCOSTMARKETPLACE_ISSET_ID);
925
  }
926
 
927
  public void setCourierCostMarketplaceIsSet(boolean value) {
928
    __isset_bit_vector.set(__COURIERCOSTMARKETPLACE_ISSET_ID, value);
929
  }
930
 
12133 kshitij.so 931
  public Item getItem() {
932
    return this.item;
933
  }
934
 
935
  public void setItem(Item item) {
936
    this.item = item;
937
  }
938
 
939
  public void unsetItem() {
940
    this.item = null;
941
  }
942
 
943
  /** Returns true if field item is set (has been assigned a value) and false otherwise */
944
  public boolean isSetItem() {
945
    return this.item != null;
946
  }
947
 
948
  public void setItemIsSet(boolean value) {
949
    if (!value) {
950
      this.item = null;
951
    }
952
  }
953
 
14780 manish.sha 954
  public boolean isIsVoiListed() {
955
    return this.isVoiListed;
956
  }
957
 
958
  public void setIsVoiListed(boolean isVoiListed) {
959
    this.isVoiListed = isVoiListed;
960
    setIsVoiListedIsSet(true);
961
  }
962
 
963
  public void unsetIsVoiListed() {
964
    __isset_bit_vector.clear(__ISVOILISTED_ISSET_ID);
965
  }
966
 
967
  /** Returns true if field isVoiListed is set (has been assigned a value) and false otherwise */
968
  public boolean isSetIsVoiListed() {
969
    return __isset_bit_vector.get(__ISVOILISTED_ISSET_ID);
970
  }
971
 
972
  public void setIsVoiListedIsSet(boolean value) {
973
    __isset_bit_vector.set(__ISVOILISTED_ISSET_ID, value);
974
  }
975
 
976
  public double getVoiSellingPrice() {
977
    return this.voiSellingPrice;
978
  }
979
 
980
  public void setVoiSellingPrice(double voiSellingPrice) {
981
    this.voiSellingPrice = voiSellingPrice;
982
    setVoiSellingPriceIsSet(true);
983
  }
984
 
985
  public void unsetVoiSellingPrice() {
986
    __isset_bit_vector.clear(__VOISELLINGPRICE_ISSET_ID);
987
  }
988
 
989
  /** Returns true if field voiSellingPrice is set (has been assigned a value) and false otherwise */
990
  public boolean isSetVoiSellingPrice() {
991
    return __isset_bit_vector.get(__VOISELLINGPRICE_ISSET_ID);
992
  }
993
 
994
  public void setVoiSellingPriceIsSet(boolean value) {
995
    __isset_bit_vector.set(__VOISELLINGPRICE_ISSET_ID, value);
996
  }
997
 
998
  public boolean isSuppressVoiPriceFeed() {
999
    return this.suppressVoiPriceFeed;
1000
  }
1001
 
1002
  public void setSuppressVoiPriceFeed(boolean suppressVoiPriceFeed) {
1003
    this.suppressVoiPriceFeed = suppressVoiPriceFeed;
1004
    setSuppressVoiPriceFeedIsSet(true);
1005
  }
1006
 
1007
  public void unsetSuppressVoiPriceFeed() {
1008
    __isset_bit_vector.clear(__SUPPRESSVOIPRICEFEED_ISSET_ID);
1009
  }
1010
 
1011
  /** Returns true if field suppressVoiPriceFeed is set (has been assigned a value) and false otherwise */
1012
  public boolean isSetSuppressVoiPriceFeed() {
1013
    return __isset_bit_vector.get(__SUPPRESSVOIPRICEFEED_ISSET_ID);
1014
  }
1015
 
1016
  public void setSuppressVoiPriceFeedIsSet(boolean value) {
1017
    __isset_bit_vector.set(__SUPPRESSVOIPRICEFEED_ISSET_ID, value);
1018
  }
1019
 
1020
  public long getVoiPriceLastUpdatedOn() {
1021
    return this.voiPriceLastUpdatedOn;
1022
  }
1023
 
1024
  public void setVoiPriceLastUpdatedOn(long voiPriceLastUpdatedOn) {
1025
    this.voiPriceLastUpdatedOn = voiPriceLastUpdatedOn;
1026
    setVoiPriceLastUpdatedOnIsSet(true);
1027
  }
1028
 
1029
  public void unsetVoiPriceLastUpdatedOn() {
1030
    __isset_bit_vector.clear(__VOIPRICELASTUPDATEDON_ISSET_ID);
1031
  }
1032
 
1033
  /** Returns true if field voiPriceLastUpdatedOn is set (has been assigned a value) and false otherwise */
1034
  public boolean isSetVoiPriceLastUpdatedOn() {
1035
    return __isset_bit_vector.get(__VOIPRICELASTUPDATEDON_ISSET_ID);
1036
  }
1037
 
1038
  public void setVoiPriceLastUpdatedOnIsSet(boolean value) {
1039
    __isset_bit_vector.set(__VOIPRICELASTUPDATEDON_ISSET_ID, value);
1040
  }
1041
 
1042
  public String getVoiSkuAtSnapdeal() {
1043
    return this.voiSkuAtSnapdeal;
1044
  }
1045
 
1046
  public void setVoiSkuAtSnapdeal(String voiSkuAtSnapdeal) {
1047
    this.voiSkuAtSnapdeal = voiSkuAtSnapdeal;
1048
  }
1049
 
1050
  public void unsetVoiSkuAtSnapdeal() {
1051
    this.voiSkuAtSnapdeal = null;
1052
  }
1053
 
1054
  /** Returns true if field voiSkuAtSnapdeal is set (has been assigned a value) and false otherwise */
1055
  public boolean isSetVoiSkuAtSnapdeal() {
1056
    return this.voiSkuAtSnapdeal != null;
1057
  }
1058
 
1059
  public void setVoiSkuAtSnapdealIsSet(boolean value) {
1060
    if (!value) {
1061
      this.voiSkuAtSnapdeal = null;
1062
    }
1063
  }
1064
 
1065
  public double getMinimumPossibleSpVoi() {
1066
    return this.minimumPossibleSpVoi;
1067
  }
1068
 
1069
  public void setMinimumPossibleSpVoi(double minimumPossibleSpVoi) {
1070
    this.minimumPossibleSpVoi = minimumPossibleSpVoi;
1071
    setMinimumPossibleSpVoiIsSet(true);
1072
  }
1073
 
1074
  public void unsetMinimumPossibleSpVoi() {
1075
    __isset_bit_vector.clear(__MINIMUMPOSSIBLESPVOI_ISSET_ID);
1076
  }
1077
 
1078
  /** Returns true if field minimumPossibleSpVoi is set (has been assigned a value) and false otherwise */
1079
  public boolean isSetMinimumPossibleSpVoi() {
1080
    return __isset_bit_vector.get(__MINIMUMPOSSIBLESPVOI_ISSET_ID);
1081
  }
1082
 
1083
  public void setMinimumPossibleSpVoiIsSet(boolean value) {
1084
    __isset_bit_vector.set(__MINIMUMPOSSIBLESPVOI_ISSET_ID, value);
1085
  }
1086
 
1087
  public double getMinimumPossibleTpVoi() {
1088
    return this.minimumPossibleTpVoi;
1089
  }
1090
 
1091
  public void setMinimumPossibleTpVoi(double minimumPossibleTpVoi) {
1092
    this.minimumPossibleTpVoi = minimumPossibleTpVoi;
1093
    setMinimumPossibleTpVoiIsSet(true);
1094
  }
1095
 
1096
  public void unsetMinimumPossibleTpVoi() {
1097
    __isset_bit_vector.clear(__MINIMUMPOSSIBLETPVOI_ISSET_ID);
1098
  }
1099
 
1100
  /** Returns true if field minimumPossibleTpVoi is set (has been assigned a value) and false otherwise */
1101
  public boolean isSetMinimumPossibleTpVoi() {
1102
    return __isset_bit_vector.get(__MINIMUMPOSSIBLETPVOI_ISSET_ID);
1103
  }
1104
 
1105
  public void setMinimumPossibleTpVoiIsSet(boolean value) {
1106
    __isset_bit_vector.set(__MINIMUMPOSSIBLETPVOI_ISSET_ID, value);
1107
  }
1108
 
1109
  public double getCourierCostVoi() {
1110
    return this.courierCostVoi;
1111
  }
1112
 
1113
  public void setCourierCostVoi(double courierCostVoi) {
1114
    this.courierCostVoi = courierCostVoi;
1115
    setCourierCostVoiIsSet(true);
1116
  }
1117
 
1118
  public void unsetCourierCostVoi() {
1119
    __isset_bit_vector.clear(__COURIERCOSTVOI_ISSET_ID);
1120
  }
1121
 
1122
  /** Returns true if field courierCostVoi is set (has been assigned a value) and false otherwise */
1123
  public boolean isSetCourierCostVoi() {
1124
    return __isset_bit_vector.get(__COURIERCOSTVOI_ISSET_ID);
1125
  }
1126
 
1127
  public void setCourierCostVoiIsSet(boolean value) {
1128
    __isset_bit_vector.set(__COURIERCOSTVOI_ISSET_ID, value);
1129
  }
1130
 
1131
  public double getServiceTaxVoi() {
1132
    return this.serviceTaxVoi;
1133
  }
1134
 
1135
  public void setServiceTaxVoi(double serviceTaxVoi) {
1136
    this.serviceTaxVoi = serviceTaxVoi;
1137
    setServiceTaxVoiIsSet(true);
1138
  }
1139
 
1140
  public void unsetServiceTaxVoi() {
1141
    __isset_bit_vector.clear(__SERVICETAXVOI_ISSET_ID);
1142
  }
1143
 
1144
  /** Returns true if field serviceTaxVoi is set (has been assigned a value) and false otherwise */
1145
  public boolean isSetServiceTaxVoi() {
1146
    return __isset_bit_vector.get(__SERVICETAXVOI_ISSET_ID);
1147
  }
1148
 
1149
  public void setServiceTaxVoiIsSet(boolean value) {
1150
    __isset_bit_vector.set(__SERVICETAXVOI_ISSET_ID, value);
1151
  }
1152
 
1153
  public double getTransferPriceVoi() {
1154
    return this.transferPriceVoi;
1155
  }
1156
 
1157
  public void setTransferPriceVoi(double transferPriceVoi) {
1158
    this.transferPriceVoi = transferPriceVoi;
1159
    setTransferPriceVoiIsSet(true);
1160
  }
1161
 
1162
  public void unsetTransferPriceVoi() {
1163
    __isset_bit_vector.clear(__TRANSFERPRICEVOI_ISSET_ID);
1164
  }
1165
 
1166
  /** Returns true if field transferPriceVoi is set (has been assigned a value) and false otherwise */
1167
  public boolean isSetTransferPriceVoi() {
1168
    return __isset_bit_vector.get(__TRANSFERPRICEVOI_ISSET_ID);
1169
  }
1170
 
1171
  public void setTransferPriceVoiIsSet(boolean value) {
1172
    __isset_bit_vector.set(__TRANSFERPRICEVOI_ISSET_ID, value);
1173
  }
1174
 
1175
  public double getCommissionVoi() {
1176
    return this.commissionVoi;
1177
  }
1178
 
1179
  public void setCommissionVoi(double commissionVoi) {
1180
    this.commissionVoi = commissionVoi;
1181
    setCommissionVoiIsSet(true);
1182
  }
1183
 
1184
  public void unsetCommissionVoi() {
1185
    __isset_bit_vector.clear(__COMMISSIONVOI_ISSET_ID);
1186
  }
1187
 
1188
  /** Returns true if field commissionVoi is set (has been assigned a value) and false otherwise */
1189
  public boolean isSetCommissionVoi() {
1190
    return __isset_bit_vector.get(__COMMISSIONVOI_ISSET_ID);
1191
  }
1192
 
1193
  public void setCommissionVoiIsSet(boolean value) {
1194
    __isset_bit_vector.set(__COMMISSIONVOI_ISSET_ID, value);
1195
  }
1196
 
8739 vikram.rag 1197
  public void setFieldValue(_Fields field, Object value) {
1198
    switch (field) {
1199
    case ITEM_ID:
1200
      if (value == null) {
1201
        unsetItem_id();
1202
      } else {
1203
        setItem_id((Long)value);
1204
      }
1205
      break;
1206
 
1207
    case WAREHOUSE_ID:
1208
      if (value == null) {
1209
        unsetWarehouseId();
1210
      } else {
1211
        setWarehouseId((Long)value);
1212
      }
1213
      break;
1214
 
1215
    case EXCEPTION_PRICE:
1216
      if (value == null) {
1217
        unsetExceptionPrice();
1218
      } else {
1219
        setExceptionPrice((Double)value);
1220
      }
1221
      break;
1222
 
1223
    case IS_LISTED_ON_SNAPDEAL:
1224
      if (value == null) {
1225
        unsetIsListedOnSnapdeal();
1226
      } else {
1227
        setIsListedOnSnapdeal((Boolean)value);
1228
      }
1229
      break;
1230
 
9242 kshitij.so 1231
    case TRANSFER_PRICE:
1232
      if (value == null) {
1233
        unsetTransferPrice();
1234
      } else {
1235
        setTransferPrice((Double)value);
1236
      }
1237
      break;
1238
 
1239
    case SELLING_PRICE:
1240
      if (value == null) {
1241
        unsetSellingPrice();
1242
      } else {
1243
        setSellingPrice((Double)value);
1244
      }
1245
      break;
1246
 
1247
    case COURIER_COST:
1248
      if (value == null) {
1249
        unsetCourierCost();
1250
      } else {
1251
        setCourierCost((Double)value);
1252
      }
1253
      break;
1254
 
1255
    case COMMISSION:
1256
      if (value == null) {
1257
        unsetCommission();
1258
      } else {
1259
        setCommission((Double)value);
1260
      }
1261
      break;
1262
 
1263
    case SERVICE_TAX:
1264
      if (value == null) {
1265
        unsetServiceTax();
1266
      } else {
1267
        setServiceTax((Double)value);
1268
      }
1269
      break;
1270
 
1271
    case SUPPRESS_PRICE_FEED:
1272
      if (value == null) {
1273
        unsetSuppressPriceFeed();
1274
      } else {
1275
        setSuppressPriceFeed((Boolean)value);
1276
      }
1277
      break;
1278
 
1279
    case SUPPRESS_INVENTORY_FEED:
1280
      if (value == null) {
1281
        unsetSuppressInventoryFeed();
1282
      } else {
1283
        setSuppressInventoryFeed((Boolean)value);
1284
      }
1285
      break;
1286
 
9404 vikram.rag 1287
    case MAX_NLC:
1288
      if (value == null) {
1289
        unsetMaxNlc();
1290
      } else {
1291
        setMaxNlc((Double)value);
1292
      }
1293
      break;
1294
 
9456 vikram.rag 1295
    case SKU_AT_SNAPDEAL:
1296
      if (value == null) {
1297
        unsetSkuAtSnapdeal();
1298
      } else {
1299
        setSkuAtSnapdeal((String)value);
1300
      }
1301
      break;
1302
 
9568 kshitij.so 1303
    case SUPC:
1304
      if (value == null) {
1305
        unsetSupc();
1306
      } else {
1307
        setSupc((String)value);
1308
      }
1309
      break;
1310
 
9724 kshitij.so 1311
    case SHIPPING_TIME:
1312
      if (value == null) {
1313
        unsetShippingTime();
1314
      } else {
1315
        setShippingTime((String)value);
1316
      }
1317
      break;
1318
 
9779 kshitij.so 1319
    case UPDATED_BY:
1320
      if (value == null) {
1321
        unsetUpdatedBy();
1322
      } else {
1323
        setUpdatedBy((String)value);
1324
      }
1325
      break;
1326
 
1327
    case MARKETPLACE_ITEMS:
1328
      if (value == null) {
1329
        unsetMarketplaceItems();
1330
      } else {
1331
        setMarketplaceItems((MarketplaceItems)value);
1332
      }
1333
      break;
1334
 
11095 kshitij.so 1335
    case COURIER_COST_MARKETPLACE:
1336
      if (value == null) {
1337
        unsetCourierCostMarketplace();
1338
      } else {
1339
        setCourierCostMarketplace((Double)value);
1340
      }
1341
      break;
1342
 
12133 kshitij.so 1343
    case ITEM:
1344
      if (value == null) {
1345
        unsetItem();
1346
      } else {
1347
        setItem((Item)value);
1348
      }
1349
      break;
1350
 
14780 manish.sha 1351
    case IS_VOI_LISTED:
1352
      if (value == null) {
1353
        unsetIsVoiListed();
1354
      } else {
1355
        setIsVoiListed((Boolean)value);
1356
      }
1357
      break;
1358
 
1359
    case VOI_SELLING_PRICE:
1360
      if (value == null) {
1361
        unsetVoiSellingPrice();
1362
      } else {
1363
        setVoiSellingPrice((Double)value);
1364
      }
1365
      break;
1366
 
1367
    case SUPPRESS_VOI_PRICE_FEED:
1368
      if (value == null) {
1369
        unsetSuppressVoiPriceFeed();
1370
      } else {
1371
        setSuppressVoiPriceFeed((Boolean)value);
1372
      }
1373
      break;
1374
 
1375
    case VOI_PRICE_LAST_UPDATED_ON:
1376
      if (value == null) {
1377
        unsetVoiPriceLastUpdatedOn();
1378
      } else {
1379
        setVoiPriceLastUpdatedOn((Long)value);
1380
      }
1381
      break;
1382
 
1383
    case VOI_SKU_AT_SNAPDEAL:
1384
      if (value == null) {
1385
        unsetVoiSkuAtSnapdeal();
1386
      } else {
1387
        setVoiSkuAtSnapdeal((String)value);
1388
      }
1389
      break;
1390
 
1391
    case MINIMUM_POSSIBLE_SP_VOI:
1392
      if (value == null) {
1393
        unsetMinimumPossibleSpVoi();
1394
      } else {
1395
        setMinimumPossibleSpVoi((Double)value);
1396
      }
1397
      break;
1398
 
1399
    case MINIMUM_POSSIBLE_TP_VOI:
1400
      if (value == null) {
1401
        unsetMinimumPossibleTpVoi();
1402
      } else {
1403
        setMinimumPossibleTpVoi((Double)value);
1404
      }
1405
      break;
1406
 
1407
    case COURIER_COST_VOI:
1408
      if (value == null) {
1409
        unsetCourierCostVoi();
1410
      } else {
1411
        setCourierCostVoi((Double)value);
1412
      }
1413
      break;
1414
 
1415
    case SERVICE_TAX_VOI:
1416
      if (value == null) {
1417
        unsetServiceTaxVoi();
1418
      } else {
1419
        setServiceTaxVoi((Double)value);
1420
      }
1421
      break;
1422
 
1423
    case TRANSFER_PRICE_VOI:
1424
      if (value == null) {
1425
        unsetTransferPriceVoi();
1426
      } else {
1427
        setTransferPriceVoi((Double)value);
1428
      }
1429
      break;
1430
 
1431
    case COMMISSION_VOI:
1432
      if (value == null) {
1433
        unsetCommissionVoi();
1434
      } else {
1435
        setCommissionVoi((Double)value);
1436
      }
1437
      break;
1438
 
8739 vikram.rag 1439
    }
1440
  }
1441
 
1442
  public Object getFieldValue(_Fields field) {
1443
    switch (field) {
1444
    case ITEM_ID:
1445
      return Long.valueOf(getItem_id());
1446
 
1447
    case WAREHOUSE_ID:
1448
      return Long.valueOf(getWarehouseId());
1449
 
1450
    case EXCEPTION_PRICE:
1451
      return Double.valueOf(getExceptionPrice());
1452
 
1453
    case IS_LISTED_ON_SNAPDEAL:
1454
      return Boolean.valueOf(isIsListedOnSnapdeal());
1455
 
9242 kshitij.so 1456
    case TRANSFER_PRICE:
1457
      return Double.valueOf(getTransferPrice());
1458
 
1459
    case SELLING_PRICE:
1460
      return Double.valueOf(getSellingPrice());
1461
 
1462
    case COURIER_COST:
1463
      return Double.valueOf(getCourierCost());
1464
 
1465
    case COMMISSION:
1466
      return Double.valueOf(getCommission());
1467
 
1468
    case SERVICE_TAX:
1469
      return Double.valueOf(getServiceTax());
1470
 
1471
    case SUPPRESS_PRICE_FEED:
1472
      return Boolean.valueOf(isSuppressPriceFeed());
1473
 
1474
    case SUPPRESS_INVENTORY_FEED:
1475
      return Boolean.valueOf(isSuppressInventoryFeed());
1476
 
9404 vikram.rag 1477
    case MAX_NLC:
1478
      return Double.valueOf(getMaxNlc());
1479
 
9456 vikram.rag 1480
    case SKU_AT_SNAPDEAL:
1481
      return getSkuAtSnapdeal();
1482
 
9568 kshitij.so 1483
    case SUPC:
1484
      return getSupc();
1485
 
9724 kshitij.so 1486
    case SHIPPING_TIME:
1487
      return getShippingTime();
1488
 
9779 kshitij.so 1489
    case UPDATED_BY:
1490
      return getUpdatedBy();
1491
 
1492
    case MARKETPLACE_ITEMS:
1493
      return getMarketplaceItems();
1494
 
11095 kshitij.so 1495
    case COURIER_COST_MARKETPLACE:
1496
      return Double.valueOf(getCourierCostMarketplace());
1497
 
12133 kshitij.so 1498
    case ITEM:
1499
      return getItem();
1500
 
14780 manish.sha 1501
    case IS_VOI_LISTED:
1502
      return Boolean.valueOf(isIsVoiListed());
1503
 
1504
    case VOI_SELLING_PRICE:
1505
      return Double.valueOf(getVoiSellingPrice());
1506
 
1507
    case SUPPRESS_VOI_PRICE_FEED:
1508
      return Boolean.valueOf(isSuppressVoiPriceFeed());
1509
 
1510
    case VOI_PRICE_LAST_UPDATED_ON:
1511
      return Long.valueOf(getVoiPriceLastUpdatedOn());
1512
 
1513
    case VOI_SKU_AT_SNAPDEAL:
1514
      return getVoiSkuAtSnapdeal();
1515
 
1516
    case MINIMUM_POSSIBLE_SP_VOI:
1517
      return Double.valueOf(getMinimumPossibleSpVoi());
1518
 
1519
    case MINIMUM_POSSIBLE_TP_VOI:
1520
      return Double.valueOf(getMinimumPossibleTpVoi());
1521
 
1522
    case COURIER_COST_VOI:
1523
      return Double.valueOf(getCourierCostVoi());
1524
 
1525
    case SERVICE_TAX_VOI:
1526
      return Double.valueOf(getServiceTaxVoi());
1527
 
1528
    case TRANSFER_PRICE_VOI:
1529
      return Double.valueOf(getTransferPriceVoi());
1530
 
1531
    case COMMISSION_VOI:
1532
      return Double.valueOf(getCommissionVoi());
1533
 
8739 vikram.rag 1534
    }
1535
    throw new IllegalStateException();
1536
  }
1537
 
1538
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1539
  public boolean isSet(_Fields field) {
1540
    if (field == null) {
1541
      throw new IllegalArgumentException();
1542
    }
1543
 
1544
    switch (field) {
1545
    case ITEM_ID:
1546
      return isSetItem_id();
1547
    case WAREHOUSE_ID:
1548
      return isSetWarehouseId();
1549
    case EXCEPTION_PRICE:
1550
      return isSetExceptionPrice();
1551
    case IS_LISTED_ON_SNAPDEAL:
1552
      return isSetIsListedOnSnapdeal();
9242 kshitij.so 1553
    case TRANSFER_PRICE:
1554
      return isSetTransferPrice();
1555
    case SELLING_PRICE:
1556
      return isSetSellingPrice();
1557
    case COURIER_COST:
1558
      return isSetCourierCost();
1559
    case COMMISSION:
1560
      return isSetCommission();
1561
    case SERVICE_TAX:
1562
      return isSetServiceTax();
1563
    case SUPPRESS_PRICE_FEED:
1564
      return isSetSuppressPriceFeed();
1565
    case SUPPRESS_INVENTORY_FEED:
1566
      return isSetSuppressInventoryFeed();
9404 vikram.rag 1567
    case MAX_NLC:
1568
      return isSetMaxNlc();
9456 vikram.rag 1569
    case SKU_AT_SNAPDEAL:
1570
      return isSetSkuAtSnapdeal();
9568 kshitij.so 1571
    case SUPC:
1572
      return isSetSupc();
9724 kshitij.so 1573
    case SHIPPING_TIME:
1574
      return isSetShippingTime();
9779 kshitij.so 1575
    case UPDATED_BY:
1576
      return isSetUpdatedBy();
1577
    case MARKETPLACE_ITEMS:
1578
      return isSetMarketplaceItems();
11095 kshitij.so 1579
    case COURIER_COST_MARKETPLACE:
1580
      return isSetCourierCostMarketplace();
12133 kshitij.so 1581
    case ITEM:
1582
      return isSetItem();
14780 manish.sha 1583
    case IS_VOI_LISTED:
1584
      return isSetIsVoiListed();
1585
    case VOI_SELLING_PRICE:
1586
      return isSetVoiSellingPrice();
1587
    case SUPPRESS_VOI_PRICE_FEED:
1588
      return isSetSuppressVoiPriceFeed();
1589
    case VOI_PRICE_LAST_UPDATED_ON:
1590
      return isSetVoiPriceLastUpdatedOn();
1591
    case VOI_SKU_AT_SNAPDEAL:
1592
      return isSetVoiSkuAtSnapdeal();
1593
    case MINIMUM_POSSIBLE_SP_VOI:
1594
      return isSetMinimumPossibleSpVoi();
1595
    case MINIMUM_POSSIBLE_TP_VOI:
1596
      return isSetMinimumPossibleTpVoi();
1597
    case COURIER_COST_VOI:
1598
      return isSetCourierCostVoi();
1599
    case SERVICE_TAX_VOI:
1600
      return isSetServiceTaxVoi();
1601
    case TRANSFER_PRICE_VOI:
1602
      return isSetTransferPriceVoi();
1603
    case COMMISSION_VOI:
1604
      return isSetCommissionVoi();
8739 vikram.rag 1605
    }
1606
    throw new IllegalStateException();
1607
  }
1608
 
1609
  @Override
1610
  public boolean equals(Object that) {
1611
    if (that == null)
1612
      return false;
1613
    if (that instanceof SnapdealItem)
1614
      return this.equals((SnapdealItem)that);
1615
    return false;
1616
  }
1617
 
1618
  public boolean equals(SnapdealItem that) {
1619
    if (that == null)
1620
      return false;
1621
 
1622
    boolean this_present_item_id = true;
1623
    boolean that_present_item_id = true;
1624
    if (this_present_item_id || that_present_item_id) {
1625
      if (!(this_present_item_id && that_present_item_id))
1626
        return false;
1627
      if (this.item_id != that.item_id)
1628
        return false;
1629
    }
1630
 
1631
    boolean this_present_warehouseId = true;
1632
    boolean that_present_warehouseId = true;
1633
    if (this_present_warehouseId || that_present_warehouseId) {
1634
      if (!(this_present_warehouseId && that_present_warehouseId))
1635
        return false;
1636
      if (this.warehouseId != that.warehouseId)
1637
        return false;
1638
    }
1639
 
1640
    boolean this_present_exceptionPrice = true;
1641
    boolean that_present_exceptionPrice = true;
1642
    if (this_present_exceptionPrice || that_present_exceptionPrice) {
1643
      if (!(this_present_exceptionPrice && that_present_exceptionPrice))
1644
        return false;
1645
      if (this.exceptionPrice != that.exceptionPrice)
1646
        return false;
1647
    }
1648
 
1649
    boolean this_present_isListedOnSnapdeal = true;
1650
    boolean that_present_isListedOnSnapdeal = true;
1651
    if (this_present_isListedOnSnapdeal || that_present_isListedOnSnapdeal) {
1652
      if (!(this_present_isListedOnSnapdeal && that_present_isListedOnSnapdeal))
1653
        return false;
1654
      if (this.isListedOnSnapdeal != that.isListedOnSnapdeal)
1655
        return false;
1656
    }
1657
 
9242 kshitij.so 1658
    boolean this_present_transferPrice = true;
1659
    boolean that_present_transferPrice = true;
1660
    if (this_present_transferPrice || that_present_transferPrice) {
1661
      if (!(this_present_transferPrice && that_present_transferPrice))
1662
        return false;
1663
      if (this.transferPrice != that.transferPrice)
1664
        return false;
1665
    }
1666
 
1667
    boolean this_present_sellingPrice = true;
1668
    boolean that_present_sellingPrice = true;
1669
    if (this_present_sellingPrice || that_present_sellingPrice) {
1670
      if (!(this_present_sellingPrice && that_present_sellingPrice))
1671
        return false;
1672
      if (this.sellingPrice != that.sellingPrice)
1673
        return false;
1674
    }
1675
 
1676
    boolean this_present_courierCost = true;
1677
    boolean that_present_courierCost = true;
1678
    if (this_present_courierCost || that_present_courierCost) {
1679
      if (!(this_present_courierCost && that_present_courierCost))
1680
        return false;
1681
      if (this.courierCost != that.courierCost)
1682
        return false;
1683
    }
1684
 
1685
    boolean this_present_commission = true;
1686
    boolean that_present_commission = true;
1687
    if (this_present_commission || that_present_commission) {
1688
      if (!(this_present_commission && that_present_commission))
1689
        return false;
1690
      if (this.commission != that.commission)
1691
        return false;
1692
    }
1693
 
1694
    boolean this_present_serviceTax = true;
1695
    boolean that_present_serviceTax = true;
1696
    if (this_present_serviceTax || that_present_serviceTax) {
1697
      if (!(this_present_serviceTax && that_present_serviceTax))
1698
        return false;
1699
      if (this.serviceTax != that.serviceTax)
1700
        return false;
1701
    }
1702
 
1703
    boolean this_present_suppressPriceFeed = true;
1704
    boolean that_present_suppressPriceFeed = true;
1705
    if (this_present_suppressPriceFeed || that_present_suppressPriceFeed) {
1706
      if (!(this_present_suppressPriceFeed && that_present_suppressPriceFeed))
1707
        return false;
1708
      if (this.suppressPriceFeed != that.suppressPriceFeed)
1709
        return false;
1710
    }
1711
 
1712
    boolean this_present_suppressInventoryFeed = true;
1713
    boolean that_present_suppressInventoryFeed = true;
1714
    if (this_present_suppressInventoryFeed || that_present_suppressInventoryFeed) {
1715
      if (!(this_present_suppressInventoryFeed && that_present_suppressInventoryFeed))
1716
        return false;
1717
      if (this.suppressInventoryFeed != that.suppressInventoryFeed)
1718
        return false;
1719
    }
1720
 
9404 vikram.rag 1721
    boolean this_present_maxNlc = true;
1722
    boolean that_present_maxNlc = true;
1723
    if (this_present_maxNlc || that_present_maxNlc) {
1724
      if (!(this_present_maxNlc && that_present_maxNlc))
1725
        return false;
1726
      if (this.maxNlc != that.maxNlc)
1727
        return false;
1728
    }
1729
 
9456 vikram.rag 1730
    boolean this_present_skuAtSnapdeal = true && this.isSetSkuAtSnapdeal();
1731
    boolean that_present_skuAtSnapdeal = true && that.isSetSkuAtSnapdeal();
1732
    if (this_present_skuAtSnapdeal || that_present_skuAtSnapdeal) {
1733
      if (!(this_present_skuAtSnapdeal && that_present_skuAtSnapdeal))
1734
        return false;
1735
      if (!this.skuAtSnapdeal.equals(that.skuAtSnapdeal))
1736
        return false;
1737
    }
1738
 
9568 kshitij.so 1739
    boolean this_present_supc = true && this.isSetSupc();
1740
    boolean that_present_supc = true && that.isSetSupc();
1741
    if (this_present_supc || that_present_supc) {
1742
      if (!(this_present_supc && that_present_supc))
1743
        return false;
1744
      if (!this.supc.equals(that.supc))
1745
        return false;
1746
    }
1747
 
9724 kshitij.so 1748
    boolean this_present_shippingTime = true && this.isSetShippingTime();
1749
    boolean that_present_shippingTime = true && that.isSetShippingTime();
1750
    if (this_present_shippingTime || that_present_shippingTime) {
1751
      if (!(this_present_shippingTime && that_present_shippingTime))
1752
        return false;
1753
      if (!this.shippingTime.equals(that.shippingTime))
1754
        return false;
1755
    }
1756
 
9779 kshitij.so 1757
    boolean this_present_updatedBy = true && this.isSetUpdatedBy();
1758
    boolean that_present_updatedBy = true && that.isSetUpdatedBy();
1759
    if (this_present_updatedBy || that_present_updatedBy) {
1760
      if (!(this_present_updatedBy && that_present_updatedBy))
1761
        return false;
1762
      if (!this.updatedBy.equals(that.updatedBy))
1763
        return false;
1764
    }
1765
 
1766
    boolean this_present_marketplaceItems = true && this.isSetMarketplaceItems();
1767
    boolean that_present_marketplaceItems = true && that.isSetMarketplaceItems();
1768
    if (this_present_marketplaceItems || that_present_marketplaceItems) {
1769
      if (!(this_present_marketplaceItems && that_present_marketplaceItems))
1770
        return false;
1771
      if (!this.marketplaceItems.equals(that.marketplaceItems))
1772
        return false;
1773
    }
1774
 
11095 kshitij.so 1775
    boolean this_present_courierCostMarketplace = true;
1776
    boolean that_present_courierCostMarketplace = true;
1777
    if (this_present_courierCostMarketplace || that_present_courierCostMarketplace) {
1778
      if (!(this_present_courierCostMarketplace && that_present_courierCostMarketplace))
1779
        return false;
1780
      if (this.courierCostMarketplace != that.courierCostMarketplace)
1781
        return false;
1782
    }
1783
 
12133 kshitij.so 1784
    boolean this_present_item = true && this.isSetItem();
1785
    boolean that_present_item = true && that.isSetItem();
1786
    if (this_present_item || that_present_item) {
1787
      if (!(this_present_item && that_present_item))
1788
        return false;
1789
      if (!this.item.equals(that.item))
1790
        return false;
1791
    }
1792
 
14780 manish.sha 1793
    boolean this_present_isVoiListed = true;
1794
    boolean that_present_isVoiListed = true;
1795
    if (this_present_isVoiListed || that_present_isVoiListed) {
1796
      if (!(this_present_isVoiListed && that_present_isVoiListed))
1797
        return false;
1798
      if (this.isVoiListed != that.isVoiListed)
1799
        return false;
1800
    }
1801
 
1802
    boolean this_present_voiSellingPrice = true;
1803
    boolean that_present_voiSellingPrice = true;
1804
    if (this_present_voiSellingPrice || that_present_voiSellingPrice) {
1805
      if (!(this_present_voiSellingPrice && that_present_voiSellingPrice))
1806
        return false;
1807
      if (this.voiSellingPrice != that.voiSellingPrice)
1808
        return false;
1809
    }
1810
 
1811
    boolean this_present_suppressVoiPriceFeed = true;
1812
    boolean that_present_suppressVoiPriceFeed = true;
1813
    if (this_present_suppressVoiPriceFeed || that_present_suppressVoiPriceFeed) {
1814
      if (!(this_present_suppressVoiPriceFeed && that_present_suppressVoiPriceFeed))
1815
        return false;
1816
      if (this.suppressVoiPriceFeed != that.suppressVoiPriceFeed)
1817
        return false;
1818
    }
1819
 
1820
    boolean this_present_voiPriceLastUpdatedOn = true;
1821
    boolean that_present_voiPriceLastUpdatedOn = true;
1822
    if (this_present_voiPriceLastUpdatedOn || that_present_voiPriceLastUpdatedOn) {
1823
      if (!(this_present_voiPriceLastUpdatedOn && that_present_voiPriceLastUpdatedOn))
1824
        return false;
1825
      if (this.voiPriceLastUpdatedOn != that.voiPriceLastUpdatedOn)
1826
        return false;
1827
    }
1828
 
1829
    boolean this_present_voiSkuAtSnapdeal = true && this.isSetVoiSkuAtSnapdeal();
1830
    boolean that_present_voiSkuAtSnapdeal = true && that.isSetVoiSkuAtSnapdeal();
1831
    if (this_present_voiSkuAtSnapdeal || that_present_voiSkuAtSnapdeal) {
1832
      if (!(this_present_voiSkuAtSnapdeal && that_present_voiSkuAtSnapdeal))
1833
        return false;
1834
      if (!this.voiSkuAtSnapdeal.equals(that.voiSkuAtSnapdeal))
1835
        return false;
1836
    }
1837
 
1838
    boolean this_present_minimumPossibleSpVoi = true;
1839
    boolean that_present_minimumPossibleSpVoi = true;
1840
    if (this_present_minimumPossibleSpVoi || that_present_minimumPossibleSpVoi) {
1841
      if (!(this_present_minimumPossibleSpVoi && that_present_minimumPossibleSpVoi))
1842
        return false;
1843
      if (this.minimumPossibleSpVoi != that.minimumPossibleSpVoi)
1844
        return false;
1845
    }
1846
 
1847
    boolean this_present_minimumPossibleTpVoi = true;
1848
    boolean that_present_minimumPossibleTpVoi = true;
1849
    if (this_present_minimumPossibleTpVoi || that_present_minimumPossibleTpVoi) {
1850
      if (!(this_present_minimumPossibleTpVoi && that_present_minimumPossibleTpVoi))
1851
        return false;
1852
      if (this.minimumPossibleTpVoi != that.minimumPossibleTpVoi)
1853
        return false;
1854
    }
1855
 
1856
    boolean this_present_courierCostVoi = true;
1857
    boolean that_present_courierCostVoi = true;
1858
    if (this_present_courierCostVoi || that_present_courierCostVoi) {
1859
      if (!(this_present_courierCostVoi && that_present_courierCostVoi))
1860
        return false;
1861
      if (this.courierCostVoi != that.courierCostVoi)
1862
        return false;
1863
    }
1864
 
1865
    boolean this_present_serviceTaxVoi = true;
1866
    boolean that_present_serviceTaxVoi = true;
1867
    if (this_present_serviceTaxVoi || that_present_serviceTaxVoi) {
1868
      if (!(this_present_serviceTaxVoi && that_present_serviceTaxVoi))
1869
        return false;
1870
      if (this.serviceTaxVoi != that.serviceTaxVoi)
1871
        return false;
1872
    }
1873
 
1874
    boolean this_present_transferPriceVoi = true;
1875
    boolean that_present_transferPriceVoi = true;
1876
    if (this_present_transferPriceVoi || that_present_transferPriceVoi) {
1877
      if (!(this_present_transferPriceVoi && that_present_transferPriceVoi))
1878
        return false;
1879
      if (this.transferPriceVoi != that.transferPriceVoi)
1880
        return false;
1881
    }
1882
 
1883
    boolean this_present_commissionVoi = true;
1884
    boolean that_present_commissionVoi = true;
1885
    if (this_present_commissionVoi || that_present_commissionVoi) {
1886
      if (!(this_present_commissionVoi && that_present_commissionVoi))
1887
        return false;
1888
      if (this.commissionVoi != that.commissionVoi)
1889
        return false;
1890
    }
1891
 
8739 vikram.rag 1892
    return true;
1893
  }
1894
 
1895
  @Override
1896
  public int hashCode() {
1897
    return 0;
1898
  }
1899
 
1900
  public int compareTo(SnapdealItem other) {
1901
    if (!getClass().equals(other.getClass())) {
1902
      return getClass().getName().compareTo(other.getClass().getName());
1903
    }
1904
 
1905
    int lastComparison = 0;
1906
    SnapdealItem typedOther = (SnapdealItem)other;
1907
 
1908
    lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
1909
    if (lastComparison != 0) {
1910
      return lastComparison;
1911
    }
1912
    if (isSetItem_id()) {
1913
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
1914
      if (lastComparison != 0) {
1915
        return lastComparison;
1916
      }
1917
    }
1918
    lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
1919
    if (lastComparison != 0) {
1920
      return lastComparison;
1921
    }
1922
    if (isSetWarehouseId()) {
1923
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
1924
      if (lastComparison != 0) {
1925
        return lastComparison;
1926
      }
1927
    }
1928
    lastComparison = Boolean.valueOf(isSetExceptionPrice()).compareTo(typedOther.isSetExceptionPrice());
1929
    if (lastComparison != 0) {
1930
      return lastComparison;
1931
    }
1932
    if (isSetExceptionPrice()) {
1933
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exceptionPrice, typedOther.exceptionPrice);
1934
      if (lastComparison != 0) {
1935
        return lastComparison;
1936
      }
1937
    }
1938
    lastComparison = Boolean.valueOf(isSetIsListedOnSnapdeal()).compareTo(typedOther.isSetIsListedOnSnapdeal());
1939
    if (lastComparison != 0) {
1940
      return lastComparison;
1941
    }
1942
    if (isSetIsListedOnSnapdeal()) {
1943
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isListedOnSnapdeal, typedOther.isListedOnSnapdeal);
1944
      if (lastComparison != 0) {
1945
        return lastComparison;
1946
      }
1947
    }
9242 kshitij.so 1948
    lastComparison = Boolean.valueOf(isSetTransferPrice()).compareTo(typedOther.isSetTransferPrice());
1949
    if (lastComparison != 0) {
1950
      return lastComparison;
1951
    }
1952
    if (isSetTransferPrice()) {
1953
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferPrice, typedOther.transferPrice);
1954
      if (lastComparison != 0) {
1955
        return lastComparison;
1956
      }
1957
    }
1958
    lastComparison = Boolean.valueOf(isSetSellingPrice()).compareTo(typedOther.isSetSellingPrice());
1959
    if (lastComparison != 0) {
1960
      return lastComparison;
1961
    }
1962
    if (isSetSellingPrice()) {
1963
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sellingPrice, typedOther.sellingPrice);
1964
      if (lastComparison != 0) {
1965
        return lastComparison;
1966
      }
1967
    }
1968
    lastComparison = Boolean.valueOf(isSetCourierCost()).compareTo(typedOther.isSetCourierCost());
1969
    if (lastComparison != 0) {
1970
      return lastComparison;
1971
    }
1972
    if (isSetCourierCost()) {
1973
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.courierCost, typedOther.courierCost);
1974
      if (lastComparison != 0) {
1975
        return lastComparison;
1976
      }
1977
    }
1978
    lastComparison = Boolean.valueOf(isSetCommission()).compareTo(typedOther.isSetCommission());
1979
    if (lastComparison != 0) {
1980
      return lastComparison;
1981
    }
1982
    if (isSetCommission()) {
1983
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.commission, typedOther.commission);
1984
      if (lastComparison != 0) {
1985
        return lastComparison;
1986
      }
1987
    }
1988
    lastComparison = Boolean.valueOf(isSetServiceTax()).compareTo(typedOther.isSetServiceTax());
1989
    if (lastComparison != 0) {
1990
      return lastComparison;
1991
    }
1992
    if (isSetServiceTax()) {
1993
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceTax, typedOther.serviceTax);
1994
      if (lastComparison != 0) {
1995
        return lastComparison;
1996
      }
1997
    }
1998
    lastComparison = Boolean.valueOf(isSetSuppressPriceFeed()).compareTo(typedOther.isSetSuppressPriceFeed());
1999
    if (lastComparison != 0) {
2000
      return lastComparison;
2001
    }
2002
    if (isSetSuppressPriceFeed()) {
2003
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suppressPriceFeed, typedOther.suppressPriceFeed);
2004
      if (lastComparison != 0) {
2005
        return lastComparison;
2006
      }
2007
    }
2008
    lastComparison = Boolean.valueOf(isSetSuppressInventoryFeed()).compareTo(typedOther.isSetSuppressInventoryFeed());
2009
    if (lastComparison != 0) {
2010
      return lastComparison;
2011
    }
2012
    if (isSetSuppressInventoryFeed()) {
2013
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suppressInventoryFeed, typedOther.suppressInventoryFeed);
2014
      if (lastComparison != 0) {
2015
        return lastComparison;
2016
      }
2017
    }
9404 vikram.rag 2018
    lastComparison = Boolean.valueOf(isSetMaxNlc()).compareTo(typedOther.isSetMaxNlc());
2019
    if (lastComparison != 0) {
2020
      return lastComparison;
2021
    }
2022
    if (isSetMaxNlc()) {
2023
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxNlc, typedOther.maxNlc);
2024
      if (lastComparison != 0) {
2025
        return lastComparison;
2026
      }
2027
    }
9456 vikram.rag 2028
    lastComparison = Boolean.valueOf(isSetSkuAtSnapdeal()).compareTo(typedOther.isSetSkuAtSnapdeal());
2029
    if (lastComparison != 0) {
2030
      return lastComparison;
2031
    }
2032
    if (isSetSkuAtSnapdeal()) {
2033
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skuAtSnapdeal, typedOther.skuAtSnapdeal);
2034
      if (lastComparison != 0) {
2035
        return lastComparison;
2036
      }
2037
    }
9568 kshitij.so 2038
    lastComparison = Boolean.valueOf(isSetSupc()).compareTo(typedOther.isSetSupc());
2039
    if (lastComparison != 0) {
2040
      return lastComparison;
2041
    }
2042
    if (isSetSupc()) {
2043
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.supc, typedOther.supc);
2044
      if (lastComparison != 0) {
2045
        return lastComparison;
2046
      }
2047
    }
9724 kshitij.so 2048
    lastComparison = Boolean.valueOf(isSetShippingTime()).compareTo(typedOther.isSetShippingTime());
2049
    if (lastComparison != 0) {
2050
      return lastComparison;
2051
    }
2052
    if (isSetShippingTime()) {
2053
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shippingTime, typedOther.shippingTime);
2054
      if (lastComparison != 0) {
2055
        return lastComparison;
2056
      }
2057
    }
9779 kshitij.so 2058
    lastComparison = Boolean.valueOf(isSetUpdatedBy()).compareTo(typedOther.isSetUpdatedBy());
2059
    if (lastComparison != 0) {
2060
      return lastComparison;
2061
    }
2062
    if (isSetUpdatedBy()) {
2063
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updatedBy, typedOther.updatedBy);
2064
      if (lastComparison != 0) {
2065
        return lastComparison;
2066
      }
2067
    }
2068
    lastComparison = Boolean.valueOf(isSetMarketplaceItems()).compareTo(typedOther.isSetMarketplaceItems());
2069
    if (lastComparison != 0) {
2070
      return lastComparison;
2071
    }
2072
    if (isSetMarketplaceItems()) {
2073
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.marketplaceItems, typedOther.marketplaceItems);
2074
      if (lastComparison != 0) {
2075
        return lastComparison;
2076
      }
2077
    }
11095 kshitij.so 2078
    lastComparison = Boolean.valueOf(isSetCourierCostMarketplace()).compareTo(typedOther.isSetCourierCostMarketplace());
2079
    if (lastComparison != 0) {
2080
      return lastComparison;
2081
    }
2082
    if (isSetCourierCostMarketplace()) {
2083
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.courierCostMarketplace, typedOther.courierCostMarketplace);
2084
      if (lastComparison != 0) {
2085
        return lastComparison;
2086
      }
2087
    }
12133 kshitij.so 2088
    lastComparison = Boolean.valueOf(isSetItem()).compareTo(typedOther.isSetItem());
2089
    if (lastComparison != 0) {
2090
      return lastComparison;
2091
    }
2092
    if (isSetItem()) {
2093
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item, typedOther.item);
2094
      if (lastComparison != 0) {
2095
        return lastComparison;
2096
      }
2097
    }
14780 manish.sha 2098
    lastComparison = Boolean.valueOf(isSetIsVoiListed()).compareTo(typedOther.isSetIsVoiListed());
2099
    if (lastComparison != 0) {
2100
      return lastComparison;
2101
    }
2102
    if (isSetIsVoiListed()) {
2103
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isVoiListed, typedOther.isVoiListed);
2104
      if (lastComparison != 0) {
2105
        return lastComparison;
2106
      }
2107
    }
2108
    lastComparison = Boolean.valueOf(isSetVoiSellingPrice()).compareTo(typedOther.isSetVoiSellingPrice());
2109
    if (lastComparison != 0) {
2110
      return lastComparison;
2111
    }
2112
    if (isSetVoiSellingPrice()) {
2113
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.voiSellingPrice, typedOther.voiSellingPrice);
2114
      if (lastComparison != 0) {
2115
        return lastComparison;
2116
      }
2117
    }
2118
    lastComparison = Boolean.valueOf(isSetSuppressVoiPriceFeed()).compareTo(typedOther.isSetSuppressVoiPriceFeed());
2119
    if (lastComparison != 0) {
2120
      return lastComparison;
2121
    }
2122
    if (isSetSuppressVoiPriceFeed()) {
2123
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suppressVoiPriceFeed, typedOther.suppressVoiPriceFeed);
2124
      if (lastComparison != 0) {
2125
        return lastComparison;
2126
      }
2127
    }
2128
    lastComparison = Boolean.valueOf(isSetVoiPriceLastUpdatedOn()).compareTo(typedOther.isSetVoiPriceLastUpdatedOn());
2129
    if (lastComparison != 0) {
2130
      return lastComparison;
2131
    }
2132
    if (isSetVoiPriceLastUpdatedOn()) {
2133
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.voiPriceLastUpdatedOn, typedOther.voiPriceLastUpdatedOn);
2134
      if (lastComparison != 0) {
2135
        return lastComparison;
2136
      }
2137
    }
2138
    lastComparison = Boolean.valueOf(isSetVoiSkuAtSnapdeal()).compareTo(typedOther.isSetVoiSkuAtSnapdeal());
2139
    if (lastComparison != 0) {
2140
      return lastComparison;
2141
    }
2142
    if (isSetVoiSkuAtSnapdeal()) {
2143
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.voiSkuAtSnapdeal, typedOther.voiSkuAtSnapdeal);
2144
      if (lastComparison != 0) {
2145
        return lastComparison;
2146
      }
2147
    }
2148
    lastComparison = Boolean.valueOf(isSetMinimumPossibleSpVoi()).compareTo(typedOther.isSetMinimumPossibleSpVoi());
2149
    if (lastComparison != 0) {
2150
      return lastComparison;
2151
    }
2152
    if (isSetMinimumPossibleSpVoi()) {
2153
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minimumPossibleSpVoi, typedOther.minimumPossibleSpVoi);
2154
      if (lastComparison != 0) {
2155
        return lastComparison;
2156
      }
2157
    }
2158
    lastComparison = Boolean.valueOf(isSetMinimumPossibleTpVoi()).compareTo(typedOther.isSetMinimumPossibleTpVoi());
2159
    if (lastComparison != 0) {
2160
      return lastComparison;
2161
    }
2162
    if (isSetMinimumPossibleTpVoi()) {
2163
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minimumPossibleTpVoi, typedOther.minimumPossibleTpVoi);
2164
      if (lastComparison != 0) {
2165
        return lastComparison;
2166
      }
2167
    }
2168
    lastComparison = Boolean.valueOf(isSetCourierCostVoi()).compareTo(typedOther.isSetCourierCostVoi());
2169
    if (lastComparison != 0) {
2170
      return lastComparison;
2171
    }
2172
    if (isSetCourierCostVoi()) {
2173
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.courierCostVoi, typedOther.courierCostVoi);
2174
      if (lastComparison != 0) {
2175
        return lastComparison;
2176
      }
2177
    }
2178
    lastComparison = Boolean.valueOf(isSetServiceTaxVoi()).compareTo(typedOther.isSetServiceTaxVoi());
2179
    if (lastComparison != 0) {
2180
      return lastComparison;
2181
    }
2182
    if (isSetServiceTaxVoi()) {
2183
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceTaxVoi, typedOther.serviceTaxVoi);
2184
      if (lastComparison != 0) {
2185
        return lastComparison;
2186
      }
2187
    }
2188
    lastComparison = Boolean.valueOf(isSetTransferPriceVoi()).compareTo(typedOther.isSetTransferPriceVoi());
2189
    if (lastComparison != 0) {
2190
      return lastComparison;
2191
    }
2192
    if (isSetTransferPriceVoi()) {
2193
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferPriceVoi, typedOther.transferPriceVoi);
2194
      if (lastComparison != 0) {
2195
        return lastComparison;
2196
      }
2197
    }
2198
    lastComparison = Boolean.valueOf(isSetCommissionVoi()).compareTo(typedOther.isSetCommissionVoi());
2199
    if (lastComparison != 0) {
2200
      return lastComparison;
2201
    }
2202
    if (isSetCommissionVoi()) {
2203
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.commissionVoi, typedOther.commissionVoi);
2204
      if (lastComparison != 0) {
2205
        return lastComparison;
2206
      }
2207
    }
8739 vikram.rag 2208
    return 0;
2209
  }
2210
 
2211
  public _Fields fieldForId(int fieldId) {
2212
    return _Fields.findByThriftId(fieldId);
2213
  }
2214
 
2215
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2216
    org.apache.thrift.protocol.TField field;
2217
    iprot.readStructBegin();
2218
    while (true)
2219
    {
2220
      field = iprot.readFieldBegin();
2221
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2222
        break;
2223
      }
2224
      switch (field.id) {
2225
        case 1: // ITEM_ID
2226
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2227
            this.item_id = iprot.readI64();
2228
            setItem_idIsSet(true);
2229
          } else { 
2230
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2231
          }
2232
          break;
2233
        case 2: // WAREHOUSE_ID
2234
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2235
            this.warehouseId = iprot.readI64();
2236
            setWarehouseIdIsSet(true);
2237
          } else { 
2238
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2239
          }
2240
          break;
2241
        case 3: // EXCEPTION_PRICE
2242
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2243
            this.exceptionPrice = iprot.readDouble();
2244
            setExceptionPriceIsSet(true);
2245
          } else { 
2246
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2247
          }
2248
          break;
2249
        case 4: // IS_LISTED_ON_SNAPDEAL
2250
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
2251
            this.isListedOnSnapdeal = iprot.readBool();
2252
            setIsListedOnSnapdealIsSet(true);
2253
          } else { 
2254
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2255
          }
2256
          break;
9242 kshitij.so 2257
        case 5: // TRANSFER_PRICE
2258
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2259
            this.transferPrice = iprot.readDouble();
2260
            setTransferPriceIsSet(true);
2261
          } else { 
2262
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2263
          }
2264
          break;
2265
        case 6: // SELLING_PRICE
2266
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2267
            this.sellingPrice = iprot.readDouble();
2268
            setSellingPriceIsSet(true);
2269
          } else { 
2270
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2271
          }
2272
          break;
2273
        case 7: // COURIER_COST
2274
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2275
            this.courierCost = iprot.readDouble();
2276
            setCourierCostIsSet(true);
2277
          } else { 
2278
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2279
          }
2280
          break;
2281
        case 8: // COMMISSION
2282
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2283
            this.commission = iprot.readDouble();
2284
            setCommissionIsSet(true);
2285
          } else { 
2286
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2287
          }
2288
          break;
2289
        case 9: // SERVICE_TAX
2290
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2291
            this.serviceTax = iprot.readDouble();
2292
            setServiceTaxIsSet(true);
2293
          } else { 
2294
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2295
          }
2296
          break;
2297
        case 10: // SUPPRESS_PRICE_FEED
2298
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
2299
            this.suppressPriceFeed = iprot.readBool();
2300
            setSuppressPriceFeedIsSet(true);
2301
          } else { 
2302
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2303
          }
2304
          break;
2305
        case 11: // SUPPRESS_INVENTORY_FEED
2306
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
2307
            this.suppressInventoryFeed = iprot.readBool();
2308
            setSuppressInventoryFeedIsSet(true);
2309
          } else { 
2310
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2311
          }
2312
          break;
9404 vikram.rag 2313
        case 12: // MAX_NLC
2314
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2315
            this.maxNlc = iprot.readDouble();
2316
            setMaxNlcIsSet(true);
2317
          } else { 
2318
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2319
          }
2320
          break;
9456 vikram.rag 2321
        case 13: // SKU_AT_SNAPDEAL
2322
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2323
            this.skuAtSnapdeal = iprot.readString();
2324
          } else { 
2325
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2326
          }
2327
          break;
9568 kshitij.so 2328
        case 14: // SUPC
2329
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2330
            this.supc = iprot.readString();
2331
          } else { 
2332
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2333
          }
2334
          break;
9724 kshitij.so 2335
        case 15: // SHIPPING_TIME
2336
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2337
            this.shippingTime = iprot.readString();
2338
          } else { 
2339
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2340
          }
2341
          break;
9779 kshitij.so 2342
        case 16: // UPDATED_BY
2343
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2344
            this.updatedBy = iprot.readString();
2345
          } else { 
2346
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2347
          }
2348
          break;
2349
        case 17: // MARKETPLACE_ITEMS
2350
          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2351
            this.marketplaceItems = new MarketplaceItems();
2352
            this.marketplaceItems.read(iprot);
2353
          } else { 
2354
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2355
          }
2356
          break;
11095 kshitij.so 2357
        case 18: // COURIER_COST_MARKETPLACE
2358
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2359
            this.courierCostMarketplace = iprot.readDouble();
2360
            setCourierCostMarketplaceIsSet(true);
2361
          } else { 
2362
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2363
          }
2364
          break;
12133 kshitij.so 2365
        case 19: // ITEM
2366
          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2367
            this.item = new Item();
2368
            this.item.read(iprot);
2369
          } else { 
2370
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2371
          }
2372
          break;
14780 manish.sha 2373
        case 20: // IS_VOI_LISTED
2374
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
2375
            this.isVoiListed = iprot.readBool();
2376
            setIsVoiListedIsSet(true);
2377
          } else { 
2378
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2379
          }
2380
          break;
2381
        case 21: // VOI_SELLING_PRICE
2382
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2383
            this.voiSellingPrice = iprot.readDouble();
2384
            setVoiSellingPriceIsSet(true);
2385
          } else { 
2386
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2387
          }
2388
          break;
2389
        case 22: // SUPPRESS_VOI_PRICE_FEED
2390
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
2391
            this.suppressVoiPriceFeed = iprot.readBool();
2392
            setSuppressVoiPriceFeedIsSet(true);
2393
          } else { 
2394
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2395
          }
2396
          break;
2397
        case 23: // VOI_PRICE_LAST_UPDATED_ON
2398
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2399
            this.voiPriceLastUpdatedOn = iprot.readI64();
2400
            setVoiPriceLastUpdatedOnIsSet(true);
2401
          } else { 
2402
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2403
          }
2404
          break;
2405
        case 24: // VOI_SKU_AT_SNAPDEAL
2406
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2407
            this.voiSkuAtSnapdeal = iprot.readString();
2408
          } else { 
2409
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2410
          }
2411
          break;
2412
        case 25: // MINIMUM_POSSIBLE_SP_VOI
2413
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2414
            this.minimumPossibleSpVoi = iprot.readDouble();
2415
            setMinimumPossibleSpVoiIsSet(true);
2416
          } else { 
2417
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2418
          }
2419
          break;
2420
        case 26: // MINIMUM_POSSIBLE_TP_VOI
2421
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2422
            this.minimumPossibleTpVoi = iprot.readDouble();
2423
            setMinimumPossibleTpVoiIsSet(true);
2424
          } else { 
2425
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2426
          }
2427
          break;
2428
        case 27: // COURIER_COST_VOI
2429
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2430
            this.courierCostVoi = iprot.readDouble();
2431
            setCourierCostVoiIsSet(true);
2432
          } else { 
2433
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2434
          }
2435
          break;
2436
        case 28: // SERVICE_TAX_VOI
2437
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2438
            this.serviceTaxVoi = iprot.readDouble();
2439
            setServiceTaxVoiIsSet(true);
2440
          } else { 
2441
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2442
          }
2443
          break;
2444
        case 29: // TRANSFER_PRICE_VOI
2445
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2446
            this.transferPriceVoi = iprot.readDouble();
2447
            setTransferPriceVoiIsSet(true);
2448
          } else { 
2449
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2450
          }
2451
          break;
2452
        case 30: // COMMISSION_VOI
2453
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2454
            this.commissionVoi = iprot.readDouble();
2455
            setCommissionVoiIsSet(true);
2456
          } else { 
2457
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2458
          }
2459
          break;
8739 vikram.rag 2460
        default:
2461
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2462
      }
2463
      iprot.readFieldEnd();
2464
    }
2465
    iprot.readStructEnd();
2466
    validate();
2467
  }
2468
 
2469
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2470
    validate();
2471
 
2472
    oprot.writeStructBegin(STRUCT_DESC);
2473
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
2474
    oprot.writeI64(this.item_id);
2475
    oprot.writeFieldEnd();
2476
    oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
2477
    oprot.writeI64(this.warehouseId);
2478
    oprot.writeFieldEnd();
2479
    oprot.writeFieldBegin(EXCEPTION_PRICE_FIELD_DESC);
2480
    oprot.writeDouble(this.exceptionPrice);
2481
    oprot.writeFieldEnd();
2482
    oprot.writeFieldBegin(IS_LISTED_ON_SNAPDEAL_FIELD_DESC);
2483
    oprot.writeBool(this.isListedOnSnapdeal);
2484
    oprot.writeFieldEnd();
9242 kshitij.so 2485
    oprot.writeFieldBegin(TRANSFER_PRICE_FIELD_DESC);
2486
    oprot.writeDouble(this.transferPrice);
2487
    oprot.writeFieldEnd();
2488
    oprot.writeFieldBegin(SELLING_PRICE_FIELD_DESC);
2489
    oprot.writeDouble(this.sellingPrice);
2490
    oprot.writeFieldEnd();
2491
    oprot.writeFieldBegin(COURIER_COST_FIELD_DESC);
2492
    oprot.writeDouble(this.courierCost);
2493
    oprot.writeFieldEnd();
2494
    oprot.writeFieldBegin(COMMISSION_FIELD_DESC);
2495
    oprot.writeDouble(this.commission);
2496
    oprot.writeFieldEnd();
2497
    oprot.writeFieldBegin(SERVICE_TAX_FIELD_DESC);
2498
    oprot.writeDouble(this.serviceTax);
2499
    oprot.writeFieldEnd();
2500
    oprot.writeFieldBegin(SUPPRESS_PRICE_FEED_FIELD_DESC);
2501
    oprot.writeBool(this.suppressPriceFeed);
2502
    oprot.writeFieldEnd();
2503
    oprot.writeFieldBegin(SUPPRESS_INVENTORY_FEED_FIELD_DESC);
2504
    oprot.writeBool(this.suppressInventoryFeed);
2505
    oprot.writeFieldEnd();
9404 vikram.rag 2506
    oprot.writeFieldBegin(MAX_NLC_FIELD_DESC);
2507
    oprot.writeDouble(this.maxNlc);
2508
    oprot.writeFieldEnd();
9456 vikram.rag 2509
    if (this.skuAtSnapdeal != null) {
2510
      oprot.writeFieldBegin(SKU_AT_SNAPDEAL_FIELD_DESC);
2511
      oprot.writeString(this.skuAtSnapdeal);
2512
      oprot.writeFieldEnd();
2513
    }
9568 kshitij.so 2514
    if (this.supc != null) {
2515
      oprot.writeFieldBegin(SUPC_FIELD_DESC);
2516
      oprot.writeString(this.supc);
2517
      oprot.writeFieldEnd();
2518
    }
9724 kshitij.so 2519
    if (this.shippingTime != null) {
2520
      oprot.writeFieldBegin(SHIPPING_TIME_FIELD_DESC);
2521
      oprot.writeString(this.shippingTime);
2522
      oprot.writeFieldEnd();
2523
    }
9779 kshitij.so 2524
    if (this.updatedBy != null) {
2525
      oprot.writeFieldBegin(UPDATED_BY_FIELD_DESC);
2526
      oprot.writeString(this.updatedBy);
2527
      oprot.writeFieldEnd();
2528
    }
2529
    if (this.marketplaceItems != null) {
2530
      oprot.writeFieldBegin(MARKETPLACE_ITEMS_FIELD_DESC);
2531
      this.marketplaceItems.write(oprot);
2532
      oprot.writeFieldEnd();
2533
    }
11095 kshitij.so 2534
    oprot.writeFieldBegin(COURIER_COST_MARKETPLACE_FIELD_DESC);
2535
    oprot.writeDouble(this.courierCostMarketplace);
2536
    oprot.writeFieldEnd();
12133 kshitij.so 2537
    if (this.item != null) {
2538
      oprot.writeFieldBegin(ITEM_FIELD_DESC);
2539
      this.item.write(oprot);
2540
      oprot.writeFieldEnd();
2541
    }
14780 manish.sha 2542
    oprot.writeFieldBegin(IS_VOI_LISTED_FIELD_DESC);
2543
    oprot.writeBool(this.isVoiListed);
2544
    oprot.writeFieldEnd();
2545
    oprot.writeFieldBegin(VOI_SELLING_PRICE_FIELD_DESC);
2546
    oprot.writeDouble(this.voiSellingPrice);
2547
    oprot.writeFieldEnd();
2548
    oprot.writeFieldBegin(SUPPRESS_VOI_PRICE_FEED_FIELD_DESC);
2549
    oprot.writeBool(this.suppressVoiPriceFeed);
2550
    oprot.writeFieldEnd();
2551
    oprot.writeFieldBegin(VOI_PRICE_LAST_UPDATED_ON_FIELD_DESC);
2552
    oprot.writeI64(this.voiPriceLastUpdatedOn);
2553
    oprot.writeFieldEnd();
2554
    if (this.voiSkuAtSnapdeal != null) {
2555
      oprot.writeFieldBegin(VOI_SKU_AT_SNAPDEAL_FIELD_DESC);
2556
      oprot.writeString(this.voiSkuAtSnapdeal);
2557
      oprot.writeFieldEnd();
2558
    }
2559
    oprot.writeFieldBegin(MINIMUM_POSSIBLE_SP_VOI_FIELD_DESC);
2560
    oprot.writeDouble(this.minimumPossibleSpVoi);
2561
    oprot.writeFieldEnd();
2562
    oprot.writeFieldBegin(MINIMUM_POSSIBLE_TP_VOI_FIELD_DESC);
2563
    oprot.writeDouble(this.minimumPossibleTpVoi);
2564
    oprot.writeFieldEnd();
2565
    oprot.writeFieldBegin(COURIER_COST_VOI_FIELD_DESC);
2566
    oprot.writeDouble(this.courierCostVoi);
2567
    oprot.writeFieldEnd();
2568
    oprot.writeFieldBegin(SERVICE_TAX_VOI_FIELD_DESC);
2569
    oprot.writeDouble(this.serviceTaxVoi);
2570
    oprot.writeFieldEnd();
2571
    oprot.writeFieldBegin(TRANSFER_PRICE_VOI_FIELD_DESC);
2572
    oprot.writeDouble(this.transferPriceVoi);
2573
    oprot.writeFieldEnd();
2574
    oprot.writeFieldBegin(COMMISSION_VOI_FIELD_DESC);
2575
    oprot.writeDouble(this.commissionVoi);
2576
    oprot.writeFieldEnd();
8739 vikram.rag 2577
    oprot.writeFieldStop();
2578
    oprot.writeStructEnd();
2579
  }
2580
 
2581
  @Override
2582
  public String toString() {
2583
    StringBuilder sb = new StringBuilder("SnapdealItem(");
2584
    boolean first = true;
2585
 
2586
    sb.append("item_id:");
2587
    sb.append(this.item_id);
2588
    first = false;
2589
    if (!first) sb.append(", ");
2590
    sb.append("warehouseId:");
2591
    sb.append(this.warehouseId);
2592
    first = false;
2593
    if (!first) sb.append(", ");
2594
    sb.append("exceptionPrice:");
2595
    sb.append(this.exceptionPrice);
2596
    first = false;
2597
    if (!first) sb.append(", ");
2598
    sb.append("isListedOnSnapdeal:");
2599
    sb.append(this.isListedOnSnapdeal);
2600
    first = false;
9242 kshitij.so 2601
    if (!first) sb.append(", ");
2602
    sb.append("transferPrice:");
2603
    sb.append(this.transferPrice);
2604
    first = false;
2605
    if (!first) sb.append(", ");
2606
    sb.append("sellingPrice:");
2607
    sb.append(this.sellingPrice);
2608
    first = false;
2609
    if (!first) sb.append(", ");
2610
    sb.append("courierCost:");
2611
    sb.append(this.courierCost);
2612
    first = false;
2613
    if (!first) sb.append(", ");
2614
    sb.append("commission:");
2615
    sb.append(this.commission);
2616
    first = false;
2617
    if (!first) sb.append(", ");
2618
    sb.append("serviceTax:");
2619
    sb.append(this.serviceTax);
2620
    first = false;
2621
    if (!first) sb.append(", ");
2622
    sb.append("suppressPriceFeed:");
2623
    sb.append(this.suppressPriceFeed);
2624
    first = false;
2625
    if (!first) sb.append(", ");
2626
    sb.append("suppressInventoryFeed:");
2627
    sb.append(this.suppressInventoryFeed);
2628
    first = false;
9404 vikram.rag 2629
    if (!first) sb.append(", ");
2630
    sb.append("maxNlc:");
2631
    sb.append(this.maxNlc);
2632
    first = false;
9456 vikram.rag 2633
    if (!first) sb.append(", ");
2634
    sb.append("skuAtSnapdeal:");
2635
    if (this.skuAtSnapdeal == null) {
2636
      sb.append("null");
2637
    } else {
2638
      sb.append(this.skuAtSnapdeal);
2639
    }
2640
    first = false;
9568 kshitij.so 2641
    if (!first) sb.append(", ");
2642
    sb.append("supc:");
2643
    if (this.supc == null) {
2644
      sb.append("null");
2645
    } else {
2646
      sb.append(this.supc);
2647
    }
2648
    first = false;
9724 kshitij.so 2649
    if (!first) sb.append(", ");
2650
    sb.append("shippingTime:");
2651
    if (this.shippingTime == null) {
2652
      sb.append("null");
2653
    } else {
2654
      sb.append(this.shippingTime);
2655
    }
2656
    first = false;
9779 kshitij.so 2657
    if (!first) sb.append(", ");
2658
    sb.append("updatedBy:");
2659
    if (this.updatedBy == null) {
2660
      sb.append("null");
2661
    } else {
2662
      sb.append(this.updatedBy);
2663
    }
2664
    first = false;
2665
    if (!first) sb.append(", ");
2666
    sb.append("marketplaceItems:");
2667
    if (this.marketplaceItems == null) {
2668
      sb.append("null");
2669
    } else {
2670
      sb.append(this.marketplaceItems);
2671
    }
2672
    first = false;
11095 kshitij.so 2673
    if (!first) sb.append(", ");
2674
    sb.append("courierCostMarketplace:");
2675
    sb.append(this.courierCostMarketplace);
2676
    first = false;
12133 kshitij.so 2677
    if (!first) sb.append(", ");
2678
    sb.append("item:");
2679
    if (this.item == null) {
2680
      sb.append("null");
2681
    } else {
2682
      sb.append(this.item);
2683
    }
2684
    first = false;
14780 manish.sha 2685
    if (!first) sb.append(", ");
2686
    sb.append("isVoiListed:");
2687
    sb.append(this.isVoiListed);
2688
    first = false;
2689
    if (!first) sb.append(", ");
2690
    sb.append("voiSellingPrice:");
2691
    sb.append(this.voiSellingPrice);
2692
    first = false;
2693
    if (!first) sb.append(", ");
2694
    sb.append("suppressVoiPriceFeed:");
2695
    sb.append(this.suppressVoiPriceFeed);
2696
    first = false;
2697
    if (!first) sb.append(", ");
2698
    sb.append("voiPriceLastUpdatedOn:");
2699
    sb.append(this.voiPriceLastUpdatedOn);
2700
    first = false;
2701
    if (!first) sb.append(", ");
2702
    sb.append("voiSkuAtSnapdeal:");
2703
    if (this.voiSkuAtSnapdeal == null) {
2704
      sb.append("null");
2705
    } else {
2706
      sb.append(this.voiSkuAtSnapdeal);
2707
    }
2708
    first = false;
2709
    if (!first) sb.append(", ");
2710
    sb.append("minimumPossibleSpVoi:");
2711
    sb.append(this.minimumPossibleSpVoi);
2712
    first = false;
2713
    if (!first) sb.append(", ");
2714
    sb.append("minimumPossibleTpVoi:");
2715
    sb.append(this.minimumPossibleTpVoi);
2716
    first = false;
2717
    if (!first) sb.append(", ");
2718
    sb.append("courierCostVoi:");
2719
    sb.append(this.courierCostVoi);
2720
    first = false;
2721
    if (!first) sb.append(", ");
2722
    sb.append("serviceTaxVoi:");
2723
    sb.append(this.serviceTaxVoi);
2724
    first = false;
2725
    if (!first) sb.append(", ");
2726
    sb.append("transferPriceVoi:");
2727
    sb.append(this.transferPriceVoi);
2728
    first = false;
2729
    if (!first) sb.append(", ");
2730
    sb.append("commissionVoi:");
2731
    sb.append(this.commissionVoi);
2732
    first = false;
8739 vikram.rag 2733
    sb.append(")");
2734
    return sb.toString();
2735
  }
2736
 
2737
  public void validate() throws org.apache.thrift.TException {
2738
    // check for required fields
2739
  }
2740
 
2741
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2742
    try {
2743
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2744
    } catch (org.apache.thrift.TException te) {
2745
      throw new java.io.IOException(te);
2746
    }
2747
  }
2748
 
2749
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2750
    try {
2751
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
2752
      __isset_bit_vector = new BitSet(1);
2753
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2754
    } catch (org.apache.thrift.TException te) {
2755
      throw new java.io.IOException(te);
2756
    }
2757
  }
2758
 
2759
}
2760