Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
9242 kshitij.so 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 SnapdealItemDetails implements org.apache.thrift.TBase<SnapdealItemDetails, SnapdealItemDetails._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SnapdealItemDetails");
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);
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 BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)10);
36
  private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("model_name", org.apache.thrift.protocol.TType.STRING, (short)11);
37
  private static final org.apache.thrift.protocol.TField MODEL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("model_number", org.apache.thrift.protocol.TType.STRING, (short)12);
38
  private static final org.apache.thrift.protocol.TField COLOR_FIELD_DESC = new org.apache.thrift.protocol.TField("color", org.apache.thrift.protocol.TType.STRING, (short)13);
39
  private static final org.apache.thrift.protocol.TField RISKY_FIELD_DESC = new org.apache.thrift.protocol.TField("risky", org.apache.thrift.protocol.TType.BOOL, (short)14);
40
  private static final org.apache.thrift.protocol.TField ITEM_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemStatus", org.apache.thrift.protocol.TType.I32, (short)15);
41
  private static final org.apache.thrift.protocol.TField SUPPRESS_PRICE_FEED_FIELD_DESC = new org.apache.thrift.protocol.TField("suppressPriceFeed", org.apache.thrift.protocol.TType.BOOL, (short)16);
42
  private static final org.apache.thrift.protocol.TField SUPPRESS_INVENTORY_FEED_FIELD_DESC = new org.apache.thrift.protocol.TField("suppressInventoryFeed", org.apache.thrift.protocol.TType.BOOL, (short)17);
43
  private static final org.apache.thrift.protocol.TField WEIGHT_FIELD_DESC = new org.apache.thrift.protocol.TField("weight", org.apache.thrift.protocol.TType.DOUBLE, (short)18);
44
  private static final org.apache.thrift.protocol.TField MRP_FIELD_DESC = new org.apache.thrift.protocol.TField("mrp", org.apache.thrift.protocol.TType.DOUBLE, (short)19);
45
  private static final org.apache.thrift.protocol.TField WEBSITE_SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("websiteSellingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)20);
9478 kshitij.so 46
  private static final org.apache.thrift.protocol.TField MAX_NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("maxNlc", org.apache.thrift.protocol.TType.DOUBLE, (short)21);
47
  private static final org.apache.thrift.protocol.TField SKU_AT_SNAPDEAL_FIELD_DESC = new org.apache.thrift.protocol.TField("skuAtSnapdeal", org.apache.thrift.protocol.TType.STRING, (short)22);
9242 kshitij.so 48
 
49
  private long item_id; // required
50
  private long warehouseId; // required
51
  private double exceptionPrice; // required
52
  private boolean isListedOnSnapdeal; // required
53
  private double transferPrice; // required
54
  private double sellingPrice; // required
55
  private double courierCost; // required
56
  private double commission; // required
57
  private double serviceTax; // required
58
  private String brand; // required
59
  private String model_name; // required
60
  private String model_number; // required
61
  private String color; // required
62
  private boolean risky; // required
63
  private status itemStatus; // required
64
  private boolean suppressPriceFeed; // required
65
  private boolean suppressInventoryFeed; // required
66
  private double weight; // required
67
  private double mrp; // required
68
  private double websiteSellingPrice; // required
9478 kshitij.so 69
  private double maxNlc; // required
9456 vikram.rag 70
  private String skuAtSnapdeal; // required
9242 kshitij.so 71
 
72
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
73
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
74
    ITEM_ID((short)1, "item_id"),
75
    WAREHOUSE_ID((short)2, "warehouseId"),
76
    EXCEPTION_PRICE((short)3, "exceptionPrice"),
77
    IS_LISTED_ON_SNAPDEAL((short)4, "isListedOnSnapdeal"),
78
    TRANSFER_PRICE((short)5, "transferPrice"),
79
    SELLING_PRICE((short)6, "sellingPrice"),
80
    COURIER_COST((short)7, "courierCost"),
81
    COMMISSION((short)8, "commission"),
82
    SERVICE_TAX((short)9, "serviceTax"),
83
    BRAND((short)10, "brand"),
84
    MODEL_NAME((short)11, "model_name"),
85
    MODEL_NUMBER((short)12, "model_number"),
86
    COLOR((short)13, "color"),
87
    RISKY((short)14, "risky"),
88
    /**
89
     * 
90
     * @see status
91
     */
92
    ITEM_STATUS((short)15, "itemStatus"),
93
    SUPPRESS_PRICE_FEED((short)16, "suppressPriceFeed"),
94
    SUPPRESS_INVENTORY_FEED((short)17, "suppressInventoryFeed"),
95
    WEIGHT((short)18, "weight"),
96
    MRP((short)19, "mrp"),
9456 vikram.rag 97
    WEBSITE_SELLING_PRICE((short)20, "websiteSellingPrice"),
9478 kshitij.so 98
    MAX_NLC((short)21, "maxNlc"),
99
    SKU_AT_SNAPDEAL((short)22, "skuAtSnapdeal");
9242 kshitij.so 100
 
101
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
102
 
103
    static {
104
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
105
        byName.put(field.getFieldName(), field);
106
      }
107
    }
108
 
109
    /**
110
     * Find the _Fields constant that matches fieldId, or null if its not found.
111
     */
112
    public static _Fields findByThriftId(int fieldId) {
113
      switch(fieldId) {
114
        case 1: // ITEM_ID
115
          return ITEM_ID;
116
        case 2: // WAREHOUSE_ID
117
          return WAREHOUSE_ID;
118
        case 3: // EXCEPTION_PRICE
119
          return EXCEPTION_PRICE;
120
        case 4: // IS_LISTED_ON_SNAPDEAL
121
          return IS_LISTED_ON_SNAPDEAL;
122
        case 5: // TRANSFER_PRICE
123
          return TRANSFER_PRICE;
124
        case 6: // SELLING_PRICE
125
          return SELLING_PRICE;
126
        case 7: // COURIER_COST
127
          return COURIER_COST;
128
        case 8: // COMMISSION
129
          return COMMISSION;
130
        case 9: // SERVICE_TAX
131
          return SERVICE_TAX;
132
        case 10: // BRAND
133
          return BRAND;
134
        case 11: // MODEL_NAME
135
          return MODEL_NAME;
136
        case 12: // MODEL_NUMBER
137
          return MODEL_NUMBER;
138
        case 13: // COLOR
139
          return COLOR;
140
        case 14: // RISKY
141
          return RISKY;
142
        case 15: // ITEM_STATUS
143
          return ITEM_STATUS;
144
        case 16: // SUPPRESS_PRICE_FEED
145
          return SUPPRESS_PRICE_FEED;
146
        case 17: // SUPPRESS_INVENTORY_FEED
147
          return SUPPRESS_INVENTORY_FEED;
148
        case 18: // WEIGHT
149
          return WEIGHT;
150
        case 19: // MRP
151
          return MRP;
152
        case 20: // WEBSITE_SELLING_PRICE
153
          return WEBSITE_SELLING_PRICE;
9478 kshitij.so 154
        case 21: // MAX_NLC
155
          return MAX_NLC;
156
        case 22: // SKU_AT_SNAPDEAL
9456 vikram.rag 157
          return SKU_AT_SNAPDEAL;
9242 kshitij.so 158
        default:
159
          return null;
160
      }
161
    }
162
 
163
    /**
164
     * Find the _Fields constant that matches fieldId, throwing an exception
165
     * if it is not found.
166
     */
167
    public static _Fields findByThriftIdOrThrow(int fieldId) {
168
      _Fields fields = findByThriftId(fieldId);
169
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
170
      return fields;
171
    }
172
 
173
    /**
174
     * Find the _Fields constant that matches name, or null if its not found.
175
     */
176
    public static _Fields findByName(String name) {
177
      return byName.get(name);
178
    }
179
 
180
    private final short _thriftId;
181
    private final String _fieldName;
182
 
183
    _Fields(short thriftId, String fieldName) {
184
      _thriftId = thriftId;
185
      _fieldName = fieldName;
186
    }
187
 
188
    public short getThriftFieldId() {
189
      return _thriftId;
190
    }
191
 
192
    public String getFieldName() {
193
      return _fieldName;
194
    }
195
  }
196
 
197
  // isset id assignments
198
  private static final int __ITEM_ID_ISSET_ID = 0;
199
  private static final int __WAREHOUSEID_ISSET_ID = 1;
200
  private static final int __EXCEPTIONPRICE_ISSET_ID = 2;
201
  private static final int __ISLISTEDONSNAPDEAL_ISSET_ID = 3;
202
  private static final int __TRANSFERPRICE_ISSET_ID = 4;
203
  private static final int __SELLINGPRICE_ISSET_ID = 5;
204
  private static final int __COURIERCOST_ISSET_ID = 6;
205
  private static final int __COMMISSION_ISSET_ID = 7;
206
  private static final int __SERVICETAX_ISSET_ID = 8;
207
  private static final int __RISKY_ISSET_ID = 9;
208
  private static final int __SUPPRESSPRICEFEED_ISSET_ID = 10;
209
  private static final int __SUPPRESSINVENTORYFEED_ISSET_ID = 11;
210
  private static final int __WEIGHT_ISSET_ID = 12;
211
  private static final int __MRP_ISSET_ID = 13;
212
  private static final int __WEBSITESELLINGPRICE_ISSET_ID = 14;
9478 kshitij.so 213
  private static final int __MAXNLC_ISSET_ID = 15;
214
  private BitSet __isset_bit_vector = new BitSet(16);
9242 kshitij.so 215
 
216
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
217
  static {
218
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
219
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
220
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
221
    tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
222
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
223
    tmpMap.put(_Fields.EXCEPTION_PRICE, new org.apache.thrift.meta_data.FieldMetaData("exceptionPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
224
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
225
    tmpMap.put(_Fields.IS_LISTED_ON_SNAPDEAL, new org.apache.thrift.meta_data.FieldMetaData("isListedOnSnapdeal", org.apache.thrift.TFieldRequirementType.DEFAULT, 
226
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
227
    tmpMap.put(_Fields.TRANSFER_PRICE, new org.apache.thrift.meta_data.FieldMetaData("transferPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
228
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
229
    tmpMap.put(_Fields.SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("sellingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
230
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
231
    tmpMap.put(_Fields.COURIER_COST, new org.apache.thrift.meta_data.FieldMetaData("courierCost", org.apache.thrift.TFieldRequirementType.DEFAULT, 
232
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
233
    tmpMap.put(_Fields.COMMISSION, new org.apache.thrift.meta_data.FieldMetaData("commission", org.apache.thrift.TFieldRequirementType.DEFAULT, 
234
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
235
    tmpMap.put(_Fields.SERVICE_TAX, new org.apache.thrift.meta_data.FieldMetaData("serviceTax", org.apache.thrift.TFieldRequirementType.DEFAULT, 
236
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
237
    tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
238
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
239
    tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("model_name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
240
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
241
    tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("model_number", org.apache.thrift.TFieldRequirementType.DEFAULT, 
242
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
243
    tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT, 
244
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
245
    tmpMap.put(_Fields.RISKY, new org.apache.thrift.meta_data.FieldMetaData("risky", org.apache.thrift.TFieldRequirementType.DEFAULT, 
246
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
247
    tmpMap.put(_Fields.ITEM_STATUS, new org.apache.thrift.meta_data.FieldMetaData("itemStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
248
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, status.class)));
249
    tmpMap.put(_Fields.SUPPRESS_PRICE_FEED, new org.apache.thrift.meta_data.FieldMetaData("suppressPriceFeed", org.apache.thrift.TFieldRequirementType.DEFAULT, 
250
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
251
    tmpMap.put(_Fields.SUPPRESS_INVENTORY_FEED, new org.apache.thrift.meta_data.FieldMetaData("suppressInventoryFeed", org.apache.thrift.TFieldRequirementType.DEFAULT, 
252
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
253
    tmpMap.put(_Fields.WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("weight", org.apache.thrift.TFieldRequirementType.DEFAULT, 
254
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
255
    tmpMap.put(_Fields.MRP, new org.apache.thrift.meta_data.FieldMetaData("mrp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
256
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
257
    tmpMap.put(_Fields.WEBSITE_SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("websiteSellingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
258
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
9478 kshitij.so 259
    tmpMap.put(_Fields.MAX_NLC, new org.apache.thrift.meta_data.FieldMetaData("maxNlc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
260
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
9456 vikram.rag 261
    tmpMap.put(_Fields.SKU_AT_SNAPDEAL, new org.apache.thrift.meta_data.FieldMetaData("skuAtSnapdeal", org.apache.thrift.TFieldRequirementType.DEFAULT, 
262
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9242 kshitij.so 263
    metaDataMap = Collections.unmodifiableMap(tmpMap);
264
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SnapdealItemDetails.class, metaDataMap);
265
  }
266
 
267
  public SnapdealItemDetails() {
268
  }
269
 
270
  public SnapdealItemDetails(
271
    long item_id,
272
    long warehouseId,
273
    double exceptionPrice,
274
    boolean isListedOnSnapdeal,
275
    double transferPrice,
276
    double sellingPrice,
277
    double courierCost,
278
    double commission,
279
    double serviceTax,
280
    String brand,
281
    String model_name,
282
    String model_number,
283
    String color,
284
    boolean risky,
285
    status itemStatus,
286
    boolean suppressPriceFeed,
287
    boolean suppressInventoryFeed,
288
    double weight,
289
    double mrp,
9456 vikram.rag 290
    double websiteSellingPrice,
9478 kshitij.so 291
    double maxNlc,
9456 vikram.rag 292
    String skuAtSnapdeal)
9242 kshitij.so 293
  {
294
    this();
295
    this.item_id = item_id;
296
    setItem_idIsSet(true);
297
    this.warehouseId = warehouseId;
298
    setWarehouseIdIsSet(true);
299
    this.exceptionPrice = exceptionPrice;
300
    setExceptionPriceIsSet(true);
301
    this.isListedOnSnapdeal = isListedOnSnapdeal;
302
    setIsListedOnSnapdealIsSet(true);
303
    this.transferPrice = transferPrice;
304
    setTransferPriceIsSet(true);
305
    this.sellingPrice = sellingPrice;
306
    setSellingPriceIsSet(true);
307
    this.courierCost = courierCost;
308
    setCourierCostIsSet(true);
309
    this.commission = commission;
310
    setCommissionIsSet(true);
311
    this.serviceTax = serviceTax;
312
    setServiceTaxIsSet(true);
313
    this.brand = brand;
314
    this.model_name = model_name;
315
    this.model_number = model_number;
316
    this.color = color;
317
    this.risky = risky;
318
    setRiskyIsSet(true);
319
    this.itemStatus = itemStatus;
320
    this.suppressPriceFeed = suppressPriceFeed;
321
    setSuppressPriceFeedIsSet(true);
322
    this.suppressInventoryFeed = suppressInventoryFeed;
323
    setSuppressInventoryFeedIsSet(true);
324
    this.weight = weight;
325
    setWeightIsSet(true);
326
    this.mrp = mrp;
327
    setMrpIsSet(true);
328
    this.websiteSellingPrice = websiteSellingPrice;
329
    setWebsiteSellingPriceIsSet(true);
9478 kshitij.so 330
    this.maxNlc = maxNlc;
331
    setMaxNlcIsSet(true);
9456 vikram.rag 332
    this.skuAtSnapdeal = skuAtSnapdeal;
9242 kshitij.so 333
  }
334
 
335
  /**
336
   * Performs a deep copy on <i>other</i>.
337
   */
338
  public SnapdealItemDetails(SnapdealItemDetails other) {
339
    __isset_bit_vector.clear();
340
    __isset_bit_vector.or(other.__isset_bit_vector);
341
    this.item_id = other.item_id;
342
    this.warehouseId = other.warehouseId;
343
    this.exceptionPrice = other.exceptionPrice;
344
    this.isListedOnSnapdeal = other.isListedOnSnapdeal;
345
    this.transferPrice = other.transferPrice;
346
    this.sellingPrice = other.sellingPrice;
347
    this.courierCost = other.courierCost;
348
    this.commission = other.commission;
349
    this.serviceTax = other.serviceTax;
350
    if (other.isSetBrand()) {
351
      this.brand = other.brand;
352
    }
353
    if (other.isSetModel_name()) {
354
      this.model_name = other.model_name;
355
    }
356
    if (other.isSetModel_number()) {
357
      this.model_number = other.model_number;
358
    }
359
    if (other.isSetColor()) {
360
      this.color = other.color;
361
    }
362
    this.risky = other.risky;
363
    if (other.isSetItemStatus()) {
364
      this.itemStatus = other.itemStatus;
365
    }
366
    this.suppressPriceFeed = other.suppressPriceFeed;
367
    this.suppressInventoryFeed = other.suppressInventoryFeed;
368
    this.weight = other.weight;
369
    this.mrp = other.mrp;
370
    this.websiteSellingPrice = other.websiteSellingPrice;
9478 kshitij.so 371
    this.maxNlc = other.maxNlc;
9456 vikram.rag 372
    if (other.isSetSkuAtSnapdeal()) {
373
      this.skuAtSnapdeal = other.skuAtSnapdeal;
374
    }
9242 kshitij.so 375
  }
376
 
377
  public SnapdealItemDetails deepCopy() {
378
    return new SnapdealItemDetails(this);
379
  }
380
 
381
  @Override
382
  public void clear() {
383
    setItem_idIsSet(false);
384
    this.item_id = 0;
385
    setWarehouseIdIsSet(false);
386
    this.warehouseId = 0;
387
    setExceptionPriceIsSet(false);
388
    this.exceptionPrice = 0.0;
389
    setIsListedOnSnapdealIsSet(false);
390
    this.isListedOnSnapdeal = false;
391
    setTransferPriceIsSet(false);
392
    this.transferPrice = 0.0;
393
    setSellingPriceIsSet(false);
394
    this.sellingPrice = 0.0;
395
    setCourierCostIsSet(false);
396
    this.courierCost = 0.0;
397
    setCommissionIsSet(false);
398
    this.commission = 0.0;
399
    setServiceTaxIsSet(false);
400
    this.serviceTax = 0.0;
401
    this.brand = null;
402
    this.model_name = null;
403
    this.model_number = null;
404
    this.color = null;
405
    setRiskyIsSet(false);
406
    this.risky = false;
407
    this.itemStatus = null;
408
    setSuppressPriceFeedIsSet(false);
409
    this.suppressPriceFeed = false;
410
    setSuppressInventoryFeedIsSet(false);
411
    this.suppressInventoryFeed = false;
412
    setWeightIsSet(false);
413
    this.weight = 0.0;
414
    setMrpIsSet(false);
415
    this.mrp = 0.0;
416
    setWebsiteSellingPriceIsSet(false);
417
    this.websiteSellingPrice = 0.0;
9478 kshitij.so 418
    setMaxNlcIsSet(false);
419
    this.maxNlc = 0.0;
9456 vikram.rag 420
    this.skuAtSnapdeal = null;
9242 kshitij.so 421
  }
422
 
423
  public long getItem_id() {
424
    return this.item_id;
425
  }
426
 
427
  public void setItem_id(long item_id) {
428
    this.item_id = item_id;
429
    setItem_idIsSet(true);
430
  }
431
 
432
  public void unsetItem_id() {
433
    __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
434
  }
435
 
436
  /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
437
  public boolean isSetItem_id() {
438
    return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
439
  }
440
 
441
  public void setItem_idIsSet(boolean value) {
442
    __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
443
  }
444
 
445
  public long getWarehouseId() {
446
    return this.warehouseId;
447
  }
448
 
449
  public void setWarehouseId(long warehouseId) {
450
    this.warehouseId = warehouseId;
451
    setWarehouseIdIsSet(true);
452
  }
453
 
454
  public void unsetWarehouseId() {
455
    __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
456
  }
457
 
458
  /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
459
  public boolean isSetWarehouseId() {
460
    return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
461
  }
462
 
463
  public void setWarehouseIdIsSet(boolean value) {
464
    __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
465
  }
466
 
467
  public double getExceptionPrice() {
468
    return this.exceptionPrice;
469
  }
470
 
471
  public void setExceptionPrice(double exceptionPrice) {
472
    this.exceptionPrice = exceptionPrice;
473
    setExceptionPriceIsSet(true);
474
  }
475
 
476
  public void unsetExceptionPrice() {
477
    __isset_bit_vector.clear(__EXCEPTIONPRICE_ISSET_ID);
478
  }
479
 
480
  /** Returns true if field exceptionPrice is set (has been assigned a value) and false otherwise */
481
  public boolean isSetExceptionPrice() {
482
    return __isset_bit_vector.get(__EXCEPTIONPRICE_ISSET_ID);
483
  }
484
 
485
  public void setExceptionPriceIsSet(boolean value) {
486
    __isset_bit_vector.set(__EXCEPTIONPRICE_ISSET_ID, value);
487
  }
488
 
489
  public boolean isIsListedOnSnapdeal() {
490
    return this.isListedOnSnapdeal;
491
  }
492
 
493
  public void setIsListedOnSnapdeal(boolean isListedOnSnapdeal) {
494
    this.isListedOnSnapdeal = isListedOnSnapdeal;
495
    setIsListedOnSnapdealIsSet(true);
496
  }
497
 
498
  public void unsetIsListedOnSnapdeal() {
499
    __isset_bit_vector.clear(__ISLISTEDONSNAPDEAL_ISSET_ID);
500
  }
501
 
502
  /** Returns true if field isListedOnSnapdeal is set (has been assigned a value) and false otherwise */
503
  public boolean isSetIsListedOnSnapdeal() {
504
    return __isset_bit_vector.get(__ISLISTEDONSNAPDEAL_ISSET_ID);
505
  }
506
 
507
  public void setIsListedOnSnapdealIsSet(boolean value) {
508
    __isset_bit_vector.set(__ISLISTEDONSNAPDEAL_ISSET_ID, value);
509
  }
510
 
511
  public double getTransferPrice() {
512
    return this.transferPrice;
513
  }
514
 
515
  public void setTransferPrice(double transferPrice) {
516
    this.transferPrice = transferPrice;
517
    setTransferPriceIsSet(true);
518
  }
519
 
520
  public void unsetTransferPrice() {
521
    __isset_bit_vector.clear(__TRANSFERPRICE_ISSET_ID);
522
  }
523
 
524
  /** Returns true if field transferPrice is set (has been assigned a value) and false otherwise */
525
  public boolean isSetTransferPrice() {
526
    return __isset_bit_vector.get(__TRANSFERPRICE_ISSET_ID);
527
  }
528
 
529
  public void setTransferPriceIsSet(boolean value) {
530
    __isset_bit_vector.set(__TRANSFERPRICE_ISSET_ID, value);
531
  }
532
 
533
  public double getSellingPrice() {
534
    return this.sellingPrice;
535
  }
536
 
537
  public void setSellingPrice(double sellingPrice) {
538
    this.sellingPrice = sellingPrice;
539
    setSellingPriceIsSet(true);
540
  }
541
 
542
  public void unsetSellingPrice() {
543
    __isset_bit_vector.clear(__SELLINGPRICE_ISSET_ID);
544
  }
545
 
546
  /** Returns true if field sellingPrice is set (has been assigned a value) and false otherwise */
547
  public boolean isSetSellingPrice() {
548
    return __isset_bit_vector.get(__SELLINGPRICE_ISSET_ID);
549
  }
550
 
551
  public void setSellingPriceIsSet(boolean value) {
552
    __isset_bit_vector.set(__SELLINGPRICE_ISSET_ID, value);
553
  }
554
 
555
  public double getCourierCost() {
556
    return this.courierCost;
557
  }
558
 
559
  public void setCourierCost(double courierCost) {
560
    this.courierCost = courierCost;
561
    setCourierCostIsSet(true);
562
  }
563
 
564
  public void unsetCourierCost() {
565
    __isset_bit_vector.clear(__COURIERCOST_ISSET_ID);
566
  }
567
 
568
  /** Returns true if field courierCost is set (has been assigned a value) and false otherwise */
569
  public boolean isSetCourierCost() {
570
    return __isset_bit_vector.get(__COURIERCOST_ISSET_ID);
571
  }
572
 
573
  public void setCourierCostIsSet(boolean value) {
574
    __isset_bit_vector.set(__COURIERCOST_ISSET_ID, value);
575
  }
576
 
577
  public double getCommission() {
578
    return this.commission;
579
  }
580
 
581
  public void setCommission(double commission) {
582
    this.commission = commission;
583
    setCommissionIsSet(true);
584
  }
585
 
586
  public void unsetCommission() {
587
    __isset_bit_vector.clear(__COMMISSION_ISSET_ID);
588
  }
589
 
590
  /** Returns true if field commission is set (has been assigned a value) and false otherwise */
591
  public boolean isSetCommission() {
592
    return __isset_bit_vector.get(__COMMISSION_ISSET_ID);
593
  }
594
 
595
  public void setCommissionIsSet(boolean value) {
596
    __isset_bit_vector.set(__COMMISSION_ISSET_ID, value);
597
  }
598
 
599
  public double getServiceTax() {
600
    return this.serviceTax;
601
  }
602
 
603
  public void setServiceTax(double serviceTax) {
604
    this.serviceTax = serviceTax;
605
    setServiceTaxIsSet(true);
606
  }
607
 
608
  public void unsetServiceTax() {
609
    __isset_bit_vector.clear(__SERVICETAX_ISSET_ID);
610
  }
611
 
612
  /** Returns true if field serviceTax is set (has been assigned a value) and false otherwise */
613
  public boolean isSetServiceTax() {
614
    return __isset_bit_vector.get(__SERVICETAX_ISSET_ID);
615
  }
616
 
617
  public void setServiceTaxIsSet(boolean value) {
618
    __isset_bit_vector.set(__SERVICETAX_ISSET_ID, value);
619
  }
620
 
621
  public String getBrand() {
622
    return this.brand;
623
  }
624
 
625
  public void setBrand(String brand) {
626
    this.brand = brand;
627
  }
628
 
629
  public void unsetBrand() {
630
    this.brand = null;
631
  }
632
 
633
  /** Returns true if field brand is set (has been assigned a value) and false otherwise */
634
  public boolean isSetBrand() {
635
    return this.brand != null;
636
  }
637
 
638
  public void setBrandIsSet(boolean value) {
639
    if (!value) {
640
      this.brand = null;
641
    }
642
  }
643
 
644
  public String getModel_name() {
645
    return this.model_name;
646
  }
647
 
648
  public void setModel_name(String model_name) {
649
    this.model_name = model_name;
650
  }
651
 
652
  public void unsetModel_name() {
653
    this.model_name = null;
654
  }
655
 
656
  /** Returns true if field model_name is set (has been assigned a value) and false otherwise */
657
  public boolean isSetModel_name() {
658
    return this.model_name != null;
659
  }
660
 
661
  public void setModel_nameIsSet(boolean value) {
662
    if (!value) {
663
      this.model_name = null;
664
    }
665
  }
666
 
667
  public String getModel_number() {
668
    return this.model_number;
669
  }
670
 
671
  public void setModel_number(String model_number) {
672
    this.model_number = model_number;
673
  }
674
 
675
  public void unsetModel_number() {
676
    this.model_number = null;
677
  }
678
 
679
  /** Returns true if field model_number is set (has been assigned a value) and false otherwise */
680
  public boolean isSetModel_number() {
681
    return this.model_number != null;
682
  }
683
 
684
  public void setModel_numberIsSet(boolean value) {
685
    if (!value) {
686
      this.model_number = null;
687
    }
688
  }
689
 
690
  public String getColor() {
691
    return this.color;
692
  }
693
 
694
  public void setColor(String color) {
695
    this.color = color;
696
  }
697
 
698
  public void unsetColor() {
699
    this.color = null;
700
  }
701
 
702
  /** Returns true if field color is set (has been assigned a value) and false otherwise */
703
  public boolean isSetColor() {
704
    return this.color != null;
705
  }
706
 
707
  public void setColorIsSet(boolean value) {
708
    if (!value) {
709
      this.color = null;
710
    }
711
  }
712
 
713
  public boolean isRisky() {
714
    return this.risky;
715
  }
716
 
717
  public void setRisky(boolean risky) {
718
    this.risky = risky;
719
    setRiskyIsSet(true);
720
  }
721
 
722
  public void unsetRisky() {
723
    __isset_bit_vector.clear(__RISKY_ISSET_ID);
724
  }
725
 
726
  /** Returns true if field risky is set (has been assigned a value) and false otherwise */
727
  public boolean isSetRisky() {
728
    return __isset_bit_vector.get(__RISKY_ISSET_ID);
729
  }
730
 
731
  public void setRiskyIsSet(boolean value) {
732
    __isset_bit_vector.set(__RISKY_ISSET_ID, value);
733
  }
734
 
735
  /**
736
   * 
737
   * @see status
738
   */
739
  public status getItemStatus() {
740
    return this.itemStatus;
741
  }
742
 
743
  /**
744
   * 
745
   * @see status
746
   */
747
  public void setItemStatus(status itemStatus) {
748
    this.itemStatus = itemStatus;
749
  }
750
 
751
  public void unsetItemStatus() {
752
    this.itemStatus = null;
753
  }
754
 
755
  /** Returns true if field itemStatus is set (has been assigned a value) and false otherwise */
756
  public boolean isSetItemStatus() {
757
    return this.itemStatus != null;
758
  }
759
 
760
  public void setItemStatusIsSet(boolean value) {
761
    if (!value) {
762
      this.itemStatus = null;
763
    }
764
  }
765
 
766
  public boolean isSuppressPriceFeed() {
767
    return this.suppressPriceFeed;
768
  }
769
 
770
  public void setSuppressPriceFeed(boolean suppressPriceFeed) {
771
    this.suppressPriceFeed = suppressPriceFeed;
772
    setSuppressPriceFeedIsSet(true);
773
  }
774
 
775
  public void unsetSuppressPriceFeed() {
776
    __isset_bit_vector.clear(__SUPPRESSPRICEFEED_ISSET_ID);
777
  }
778
 
779
  /** Returns true if field suppressPriceFeed is set (has been assigned a value) and false otherwise */
780
  public boolean isSetSuppressPriceFeed() {
781
    return __isset_bit_vector.get(__SUPPRESSPRICEFEED_ISSET_ID);
782
  }
783
 
784
  public void setSuppressPriceFeedIsSet(boolean value) {
785
    __isset_bit_vector.set(__SUPPRESSPRICEFEED_ISSET_ID, value);
786
  }
787
 
788
  public boolean isSuppressInventoryFeed() {
789
    return this.suppressInventoryFeed;
790
  }
791
 
792
  public void setSuppressInventoryFeed(boolean suppressInventoryFeed) {
793
    this.suppressInventoryFeed = suppressInventoryFeed;
794
    setSuppressInventoryFeedIsSet(true);
795
  }
796
 
797
  public void unsetSuppressInventoryFeed() {
798
    __isset_bit_vector.clear(__SUPPRESSINVENTORYFEED_ISSET_ID);
799
  }
800
 
801
  /** Returns true if field suppressInventoryFeed is set (has been assigned a value) and false otherwise */
802
  public boolean isSetSuppressInventoryFeed() {
803
    return __isset_bit_vector.get(__SUPPRESSINVENTORYFEED_ISSET_ID);
804
  }
805
 
806
  public void setSuppressInventoryFeedIsSet(boolean value) {
807
    __isset_bit_vector.set(__SUPPRESSINVENTORYFEED_ISSET_ID, value);
808
  }
809
 
810
  public double getWeight() {
811
    return this.weight;
812
  }
813
 
814
  public void setWeight(double weight) {
815
    this.weight = weight;
816
    setWeightIsSet(true);
817
  }
818
 
819
  public void unsetWeight() {
820
    __isset_bit_vector.clear(__WEIGHT_ISSET_ID);
821
  }
822
 
823
  /** Returns true if field weight is set (has been assigned a value) and false otherwise */
824
  public boolean isSetWeight() {
825
    return __isset_bit_vector.get(__WEIGHT_ISSET_ID);
826
  }
827
 
828
  public void setWeightIsSet(boolean value) {
829
    __isset_bit_vector.set(__WEIGHT_ISSET_ID, value);
830
  }
831
 
832
  public double getMrp() {
833
    return this.mrp;
834
  }
835
 
836
  public void setMrp(double mrp) {
837
    this.mrp = mrp;
838
    setMrpIsSet(true);
839
  }
840
 
841
  public void unsetMrp() {
842
    __isset_bit_vector.clear(__MRP_ISSET_ID);
843
  }
844
 
845
  /** Returns true if field mrp is set (has been assigned a value) and false otherwise */
846
  public boolean isSetMrp() {
847
    return __isset_bit_vector.get(__MRP_ISSET_ID);
848
  }
849
 
850
  public void setMrpIsSet(boolean value) {
851
    __isset_bit_vector.set(__MRP_ISSET_ID, value);
852
  }
853
 
854
  public double getWebsiteSellingPrice() {
855
    return this.websiteSellingPrice;
856
  }
857
 
858
  public void setWebsiteSellingPrice(double websiteSellingPrice) {
859
    this.websiteSellingPrice = websiteSellingPrice;
860
    setWebsiteSellingPriceIsSet(true);
861
  }
862
 
863
  public void unsetWebsiteSellingPrice() {
864
    __isset_bit_vector.clear(__WEBSITESELLINGPRICE_ISSET_ID);
865
  }
866
 
867
  /** Returns true if field websiteSellingPrice is set (has been assigned a value) and false otherwise */
868
  public boolean isSetWebsiteSellingPrice() {
869
    return __isset_bit_vector.get(__WEBSITESELLINGPRICE_ISSET_ID);
870
  }
871
 
872
  public void setWebsiteSellingPriceIsSet(boolean value) {
873
    __isset_bit_vector.set(__WEBSITESELLINGPRICE_ISSET_ID, value);
874
  }
875
 
9478 kshitij.so 876
  public double getMaxNlc() {
877
    return this.maxNlc;
878
  }
879
 
880
  public void setMaxNlc(double maxNlc) {
881
    this.maxNlc = maxNlc;
882
    setMaxNlcIsSet(true);
883
  }
884
 
885
  public void unsetMaxNlc() {
886
    __isset_bit_vector.clear(__MAXNLC_ISSET_ID);
887
  }
888
 
889
  /** Returns true if field maxNlc is set (has been assigned a value) and false otherwise */
890
  public boolean isSetMaxNlc() {
891
    return __isset_bit_vector.get(__MAXNLC_ISSET_ID);
892
  }
893
 
894
  public void setMaxNlcIsSet(boolean value) {
895
    __isset_bit_vector.set(__MAXNLC_ISSET_ID, value);
896
  }
897
 
9456 vikram.rag 898
  public String getSkuAtSnapdeal() {
899
    return this.skuAtSnapdeal;
900
  }
901
 
902
  public void setSkuAtSnapdeal(String skuAtSnapdeal) {
903
    this.skuAtSnapdeal = skuAtSnapdeal;
904
  }
905
 
906
  public void unsetSkuAtSnapdeal() {
907
    this.skuAtSnapdeal = null;
908
  }
909
 
910
  /** Returns true if field skuAtSnapdeal is set (has been assigned a value) and false otherwise */
911
  public boolean isSetSkuAtSnapdeal() {
912
    return this.skuAtSnapdeal != null;
913
  }
914
 
915
  public void setSkuAtSnapdealIsSet(boolean value) {
916
    if (!value) {
917
      this.skuAtSnapdeal = null;
918
    }
919
  }
920
 
9242 kshitij.so 921
  public void setFieldValue(_Fields field, Object value) {
922
    switch (field) {
923
    case ITEM_ID:
924
      if (value == null) {
925
        unsetItem_id();
926
      } else {
927
        setItem_id((Long)value);
928
      }
929
      break;
930
 
931
    case WAREHOUSE_ID:
932
      if (value == null) {
933
        unsetWarehouseId();
934
      } else {
935
        setWarehouseId((Long)value);
936
      }
937
      break;
938
 
939
    case EXCEPTION_PRICE:
940
      if (value == null) {
941
        unsetExceptionPrice();
942
      } else {
943
        setExceptionPrice((Double)value);
944
      }
945
      break;
946
 
947
    case IS_LISTED_ON_SNAPDEAL:
948
      if (value == null) {
949
        unsetIsListedOnSnapdeal();
950
      } else {
951
        setIsListedOnSnapdeal((Boolean)value);
952
      }
953
      break;
954
 
955
    case TRANSFER_PRICE:
956
      if (value == null) {
957
        unsetTransferPrice();
958
      } else {
959
        setTransferPrice((Double)value);
960
      }
961
      break;
962
 
963
    case SELLING_PRICE:
964
      if (value == null) {
965
        unsetSellingPrice();
966
      } else {
967
        setSellingPrice((Double)value);
968
      }
969
      break;
970
 
971
    case COURIER_COST:
972
      if (value == null) {
973
        unsetCourierCost();
974
      } else {
975
        setCourierCost((Double)value);
976
      }
977
      break;
978
 
979
    case COMMISSION:
980
      if (value == null) {
981
        unsetCommission();
982
      } else {
983
        setCommission((Double)value);
984
      }
985
      break;
986
 
987
    case SERVICE_TAX:
988
      if (value == null) {
989
        unsetServiceTax();
990
      } else {
991
        setServiceTax((Double)value);
992
      }
993
      break;
994
 
995
    case BRAND:
996
      if (value == null) {
997
        unsetBrand();
998
      } else {
999
        setBrand((String)value);
1000
      }
1001
      break;
1002
 
1003
    case MODEL_NAME:
1004
      if (value == null) {
1005
        unsetModel_name();
1006
      } else {
1007
        setModel_name((String)value);
1008
      }
1009
      break;
1010
 
1011
    case MODEL_NUMBER:
1012
      if (value == null) {
1013
        unsetModel_number();
1014
      } else {
1015
        setModel_number((String)value);
1016
      }
1017
      break;
1018
 
1019
    case COLOR:
1020
      if (value == null) {
1021
        unsetColor();
1022
      } else {
1023
        setColor((String)value);
1024
      }
1025
      break;
1026
 
1027
    case RISKY:
1028
      if (value == null) {
1029
        unsetRisky();
1030
      } else {
1031
        setRisky((Boolean)value);
1032
      }
1033
      break;
1034
 
1035
    case ITEM_STATUS:
1036
      if (value == null) {
1037
        unsetItemStatus();
1038
      } else {
1039
        setItemStatus((status)value);
1040
      }
1041
      break;
1042
 
1043
    case SUPPRESS_PRICE_FEED:
1044
      if (value == null) {
1045
        unsetSuppressPriceFeed();
1046
      } else {
1047
        setSuppressPriceFeed((Boolean)value);
1048
      }
1049
      break;
1050
 
1051
    case SUPPRESS_INVENTORY_FEED:
1052
      if (value == null) {
1053
        unsetSuppressInventoryFeed();
1054
      } else {
1055
        setSuppressInventoryFeed((Boolean)value);
1056
      }
1057
      break;
1058
 
1059
    case WEIGHT:
1060
      if (value == null) {
1061
        unsetWeight();
1062
      } else {
1063
        setWeight((Double)value);
1064
      }
1065
      break;
1066
 
1067
    case MRP:
1068
      if (value == null) {
1069
        unsetMrp();
1070
      } else {
1071
        setMrp((Double)value);
1072
      }
1073
      break;
1074
 
1075
    case WEBSITE_SELLING_PRICE:
1076
      if (value == null) {
1077
        unsetWebsiteSellingPrice();
1078
      } else {
1079
        setWebsiteSellingPrice((Double)value);
1080
      }
1081
      break;
1082
 
9478 kshitij.so 1083
    case MAX_NLC:
1084
      if (value == null) {
1085
        unsetMaxNlc();
1086
      } else {
1087
        setMaxNlc((Double)value);
1088
      }
1089
      break;
1090
 
9456 vikram.rag 1091
    case SKU_AT_SNAPDEAL:
1092
      if (value == null) {
1093
        unsetSkuAtSnapdeal();
1094
      } else {
1095
        setSkuAtSnapdeal((String)value);
1096
      }
1097
      break;
1098
 
9242 kshitij.so 1099
    }
1100
  }
1101
 
1102
  public Object getFieldValue(_Fields field) {
1103
    switch (field) {
1104
    case ITEM_ID:
1105
      return Long.valueOf(getItem_id());
1106
 
1107
    case WAREHOUSE_ID:
1108
      return Long.valueOf(getWarehouseId());
1109
 
1110
    case EXCEPTION_PRICE:
1111
      return Double.valueOf(getExceptionPrice());
1112
 
1113
    case IS_LISTED_ON_SNAPDEAL:
1114
      return Boolean.valueOf(isIsListedOnSnapdeal());
1115
 
1116
    case TRANSFER_PRICE:
1117
      return Double.valueOf(getTransferPrice());
1118
 
1119
    case SELLING_PRICE:
1120
      return Double.valueOf(getSellingPrice());
1121
 
1122
    case COURIER_COST:
1123
      return Double.valueOf(getCourierCost());
1124
 
1125
    case COMMISSION:
1126
      return Double.valueOf(getCommission());
1127
 
1128
    case SERVICE_TAX:
1129
      return Double.valueOf(getServiceTax());
1130
 
1131
    case BRAND:
1132
      return getBrand();
1133
 
1134
    case MODEL_NAME:
1135
      return getModel_name();
1136
 
1137
    case MODEL_NUMBER:
1138
      return getModel_number();
1139
 
1140
    case COLOR:
1141
      return getColor();
1142
 
1143
    case RISKY:
1144
      return Boolean.valueOf(isRisky());
1145
 
1146
    case ITEM_STATUS:
1147
      return getItemStatus();
1148
 
1149
    case SUPPRESS_PRICE_FEED:
1150
      return Boolean.valueOf(isSuppressPriceFeed());
1151
 
1152
    case SUPPRESS_INVENTORY_FEED:
1153
      return Boolean.valueOf(isSuppressInventoryFeed());
1154
 
1155
    case WEIGHT:
1156
      return Double.valueOf(getWeight());
1157
 
1158
    case MRP:
1159
      return Double.valueOf(getMrp());
1160
 
1161
    case WEBSITE_SELLING_PRICE:
1162
      return Double.valueOf(getWebsiteSellingPrice());
1163
 
9478 kshitij.so 1164
    case MAX_NLC:
1165
      return Double.valueOf(getMaxNlc());
1166
 
9456 vikram.rag 1167
    case SKU_AT_SNAPDEAL:
1168
      return getSkuAtSnapdeal();
1169
 
9242 kshitij.so 1170
    }
1171
    throw new IllegalStateException();
1172
  }
1173
 
1174
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1175
  public boolean isSet(_Fields field) {
1176
    if (field == null) {
1177
      throw new IllegalArgumentException();
1178
    }
1179
 
1180
    switch (field) {
1181
    case ITEM_ID:
1182
      return isSetItem_id();
1183
    case WAREHOUSE_ID:
1184
      return isSetWarehouseId();
1185
    case EXCEPTION_PRICE:
1186
      return isSetExceptionPrice();
1187
    case IS_LISTED_ON_SNAPDEAL:
1188
      return isSetIsListedOnSnapdeal();
1189
    case TRANSFER_PRICE:
1190
      return isSetTransferPrice();
1191
    case SELLING_PRICE:
1192
      return isSetSellingPrice();
1193
    case COURIER_COST:
1194
      return isSetCourierCost();
1195
    case COMMISSION:
1196
      return isSetCommission();
1197
    case SERVICE_TAX:
1198
      return isSetServiceTax();
1199
    case BRAND:
1200
      return isSetBrand();
1201
    case MODEL_NAME:
1202
      return isSetModel_name();
1203
    case MODEL_NUMBER:
1204
      return isSetModel_number();
1205
    case COLOR:
1206
      return isSetColor();
1207
    case RISKY:
1208
      return isSetRisky();
1209
    case ITEM_STATUS:
1210
      return isSetItemStatus();
1211
    case SUPPRESS_PRICE_FEED:
1212
      return isSetSuppressPriceFeed();
1213
    case SUPPRESS_INVENTORY_FEED:
1214
      return isSetSuppressInventoryFeed();
1215
    case WEIGHT:
1216
      return isSetWeight();
1217
    case MRP:
1218
      return isSetMrp();
1219
    case WEBSITE_SELLING_PRICE:
1220
      return isSetWebsiteSellingPrice();
9478 kshitij.so 1221
    case MAX_NLC:
1222
      return isSetMaxNlc();
9456 vikram.rag 1223
    case SKU_AT_SNAPDEAL:
1224
      return isSetSkuAtSnapdeal();
9242 kshitij.so 1225
    }
1226
    throw new IllegalStateException();
1227
  }
1228
 
1229
  @Override
1230
  public boolean equals(Object that) {
1231
    if (that == null)
1232
      return false;
1233
    if (that instanceof SnapdealItemDetails)
1234
      return this.equals((SnapdealItemDetails)that);
1235
    return false;
1236
  }
1237
 
1238
  public boolean equals(SnapdealItemDetails that) {
1239
    if (that == null)
1240
      return false;
1241
 
1242
    boolean this_present_item_id = true;
1243
    boolean that_present_item_id = true;
1244
    if (this_present_item_id || that_present_item_id) {
1245
      if (!(this_present_item_id && that_present_item_id))
1246
        return false;
1247
      if (this.item_id != that.item_id)
1248
        return false;
1249
    }
1250
 
1251
    boolean this_present_warehouseId = true;
1252
    boolean that_present_warehouseId = true;
1253
    if (this_present_warehouseId || that_present_warehouseId) {
1254
      if (!(this_present_warehouseId && that_present_warehouseId))
1255
        return false;
1256
      if (this.warehouseId != that.warehouseId)
1257
        return false;
1258
    }
1259
 
1260
    boolean this_present_exceptionPrice = true;
1261
    boolean that_present_exceptionPrice = true;
1262
    if (this_present_exceptionPrice || that_present_exceptionPrice) {
1263
      if (!(this_present_exceptionPrice && that_present_exceptionPrice))
1264
        return false;
1265
      if (this.exceptionPrice != that.exceptionPrice)
1266
        return false;
1267
    }
1268
 
1269
    boolean this_present_isListedOnSnapdeal = true;
1270
    boolean that_present_isListedOnSnapdeal = true;
1271
    if (this_present_isListedOnSnapdeal || that_present_isListedOnSnapdeal) {
1272
      if (!(this_present_isListedOnSnapdeal && that_present_isListedOnSnapdeal))
1273
        return false;
1274
      if (this.isListedOnSnapdeal != that.isListedOnSnapdeal)
1275
        return false;
1276
    }
1277
 
1278
    boolean this_present_transferPrice = true;
1279
    boolean that_present_transferPrice = true;
1280
    if (this_present_transferPrice || that_present_transferPrice) {
1281
      if (!(this_present_transferPrice && that_present_transferPrice))
1282
        return false;
1283
      if (this.transferPrice != that.transferPrice)
1284
        return false;
1285
    }
1286
 
1287
    boolean this_present_sellingPrice = true;
1288
    boolean that_present_sellingPrice = true;
1289
    if (this_present_sellingPrice || that_present_sellingPrice) {
1290
      if (!(this_present_sellingPrice && that_present_sellingPrice))
1291
        return false;
1292
      if (this.sellingPrice != that.sellingPrice)
1293
        return false;
1294
    }
1295
 
1296
    boolean this_present_courierCost = true;
1297
    boolean that_present_courierCost = true;
1298
    if (this_present_courierCost || that_present_courierCost) {
1299
      if (!(this_present_courierCost && that_present_courierCost))
1300
        return false;
1301
      if (this.courierCost != that.courierCost)
1302
        return false;
1303
    }
1304
 
1305
    boolean this_present_commission = true;
1306
    boolean that_present_commission = true;
1307
    if (this_present_commission || that_present_commission) {
1308
      if (!(this_present_commission && that_present_commission))
1309
        return false;
1310
      if (this.commission != that.commission)
1311
        return false;
1312
    }
1313
 
1314
    boolean this_present_serviceTax = true;
1315
    boolean that_present_serviceTax = true;
1316
    if (this_present_serviceTax || that_present_serviceTax) {
1317
      if (!(this_present_serviceTax && that_present_serviceTax))
1318
        return false;
1319
      if (this.serviceTax != that.serviceTax)
1320
        return false;
1321
    }
1322
 
1323
    boolean this_present_brand = true && this.isSetBrand();
1324
    boolean that_present_brand = true && that.isSetBrand();
1325
    if (this_present_brand || that_present_brand) {
1326
      if (!(this_present_brand && that_present_brand))
1327
        return false;
1328
      if (!this.brand.equals(that.brand))
1329
        return false;
1330
    }
1331
 
1332
    boolean this_present_model_name = true && this.isSetModel_name();
1333
    boolean that_present_model_name = true && that.isSetModel_name();
1334
    if (this_present_model_name || that_present_model_name) {
1335
      if (!(this_present_model_name && that_present_model_name))
1336
        return false;
1337
      if (!this.model_name.equals(that.model_name))
1338
        return false;
1339
    }
1340
 
1341
    boolean this_present_model_number = true && this.isSetModel_number();
1342
    boolean that_present_model_number = true && that.isSetModel_number();
1343
    if (this_present_model_number || that_present_model_number) {
1344
      if (!(this_present_model_number && that_present_model_number))
1345
        return false;
1346
      if (!this.model_number.equals(that.model_number))
1347
        return false;
1348
    }
1349
 
1350
    boolean this_present_color = true && this.isSetColor();
1351
    boolean that_present_color = true && that.isSetColor();
1352
    if (this_present_color || that_present_color) {
1353
      if (!(this_present_color && that_present_color))
1354
        return false;
1355
      if (!this.color.equals(that.color))
1356
        return false;
1357
    }
1358
 
1359
    boolean this_present_risky = true;
1360
    boolean that_present_risky = true;
1361
    if (this_present_risky || that_present_risky) {
1362
      if (!(this_present_risky && that_present_risky))
1363
        return false;
1364
      if (this.risky != that.risky)
1365
        return false;
1366
    }
1367
 
1368
    boolean this_present_itemStatus = true && this.isSetItemStatus();
1369
    boolean that_present_itemStatus = true && that.isSetItemStatus();
1370
    if (this_present_itemStatus || that_present_itemStatus) {
1371
      if (!(this_present_itemStatus && that_present_itemStatus))
1372
        return false;
1373
      if (!this.itemStatus.equals(that.itemStatus))
1374
        return false;
1375
    }
1376
 
1377
    boolean this_present_suppressPriceFeed = true;
1378
    boolean that_present_suppressPriceFeed = true;
1379
    if (this_present_suppressPriceFeed || that_present_suppressPriceFeed) {
1380
      if (!(this_present_suppressPriceFeed && that_present_suppressPriceFeed))
1381
        return false;
1382
      if (this.suppressPriceFeed != that.suppressPriceFeed)
1383
        return false;
1384
    }
1385
 
1386
    boolean this_present_suppressInventoryFeed = true;
1387
    boolean that_present_suppressInventoryFeed = true;
1388
    if (this_present_suppressInventoryFeed || that_present_suppressInventoryFeed) {
1389
      if (!(this_present_suppressInventoryFeed && that_present_suppressInventoryFeed))
1390
        return false;
1391
      if (this.suppressInventoryFeed != that.suppressInventoryFeed)
1392
        return false;
1393
    }
1394
 
1395
    boolean this_present_weight = true;
1396
    boolean that_present_weight = true;
1397
    if (this_present_weight || that_present_weight) {
1398
      if (!(this_present_weight && that_present_weight))
1399
        return false;
1400
      if (this.weight != that.weight)
1401
        return false;
1402
    }
1403
 
1404
    boolean this_present_mrp = true;
1405
    boolean that_present_mrp = true;
1406
    if (this_present_mrp || that_present_mrp) {
1407
      if (!(this_present_mrp && that_present_mrp))
1408
        return false;
1409
      if (this.mrp != that.mrp)
1410
        return false;
1411
    }
1412
 
1413
    boolean this_present_websiteSellingPrice = true;
1414
    boolean that_present_websiteSellingPrice = true;
1415
    if (this_present_websiteSellingPrice || that_present_websiteSellingPrice) {
1416
      if (!(this_present_websiteSellingPrice && that_present_websiteSellingPrice))
1417
        return false;
1418
      if (this.websiteSellingPrice != that.websiteSellingPrice)
1419
        return false;
1420
    }
1421
 
9478 kshitij.so 1422
    boolean this_present_maxNlc = true;
1423
    boolean that_present_maxNlc = true;
1424
    if (this_present_maxNlc || that_present_maxNlc) {
1425
      if (!(this_present_maxNlc && that_present_maxNlc))
1426
        return false;
1427
      if (this.maxNlc != that.maxNlc)
1428
        return false;
1429
    }
1430
 
9456 vikram.rag 1431
    boolean this_present_skuAtSnapdeal = true && this.isSetSkuAtSnapdeal();
1432
    boolean that_present_skuAtSnapdeal = true && that.isSetSkuAtSnapdeal();
1433
    if (this_present_skuAtSnapdeal || that_present_skuAtSnapdeal) {
1434
      if (!(this_present_skuAtSnapdeal && that_present_skuAtSnapdeal))
1435
        return false;
1436
      if (!this.skuAtSnapdeal.equals(that.skuAtSnapdeal))
1437
        return false;
1438
    }
1439
 
9242 kshitij.so 1440
    return true;
1441
  }
1442
 
1443
  @Override
1444
  public int hashCode() {
1445
    return 0;
1446
  }
1447
 
1448
  public int compareTo(SnapdealItemDetails other) {
1449
    if (!getClass().equals(other.getClass())) {
1450
      return getClass().getName().compareTo(other.getClass().getName());
1451
    }
1452
 
1453
    int lastComparison = 0;
1454
    SnapdealItemDetails typedOther = (SnapdealItemDetails)other;
1455
 
1456
    lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
1457
    if (lastComparison != 0) {
1458
      return lastComparison;
1459
    }
1460
    if (isSetItem_id()) {
1461
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
1462
      if (lastComparison != 0) {
1463
        return lastComparison;
1464
      }
1465
    }
1466
    lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
1467
    if (lastComparison != 0) {
1468
      return lastComparison;
1469
    }
1470
    if (isSetWarehouseId()) {
1471
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
1472
      if (lastComparison != 0) {
1473
        return lastComparison;
1474
      }
1475
    }
1476
    lastComparison = Boolean.valueOf(isSetExceptionPrice()).compareTo(typedOther.isSetExceptionPrice());
1477
    if (lastComparison != 0) {
1478
      return lastComparison;
1479
    }
1480
    if (isSetExceptionPrice()) {
1481
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exceptionPrice, typedOther.exceptionPrice);
1482
      if (lastComparison != 0) {
1483
        return lastComparison;
1484
      }
1485
    }
1486
    lastComparison = Boolean.valueOf(isSetIsListedOnSnapdeal()).compareTo(typedOther.isSetIsListedOnSnapdeal());
1487
    if (lastComparison != 0) {
1488
      return lastComparison;
1489
    }
1490
    if (isSetIsListedOnSnapdeal()) {
1491
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isListedOnSnapdeal, typedOther.isListedOnSnapdeal);
1492
      if (lastComparison != 0) {
1493
        return lastComparison;
1494
      }
1495
    }
1496
    lastComparison = Boolean.valueOf(isSetTransferPrice()).compareTo(typedOther.isSetTransferPrice());
1497
    if (lastComparison != 0) {
1498
      return lastComparison;
1499
    }
1500
    if (isSetTransferPrice()) {
1501
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferPrice, typedOther.transferPrice);
1502
      if (lastComparison != 0) {
1503
        return lastComparison;
1504
      }
1505
    }
1506
    lastComparison = Boolean.valueOf(isSetSellingPrice()).compareTo(typedOther.isSetSellingPrice());
1507
    if (lastComparison != 0) {
1508
      return lastComparison;
1509
    }
1510
    if (isSetSellingPrice()) {
1511
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sellingPrice, typedOther.sellingPrice);
1512
      if (lastComparison != 0) {
1513
        return lastComparison;
1514
      }
1515
    }
1516
    lastComparison = Boolean.valueOf(isSetCourierCost()).compareTo(typedOther.isSetCourierCost());
1517
    if (lastComparison != 0) {
1518
      return lastComparison;
1519
    }
1520
    if (isSetCourierCost()) {
1521
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.courierCost, typedOther.courierCost);
1522
      if (lastComparison != 0) {
1523
        return lastComparison;
1524
      }
1525
    }
1526
    lastComparison = Boolean.valueOf(isSetCommission()).compareTo(typedOther.isSetCommission());
1527
    if (lastComparison != 0) {
1528
      return lastComparison;
1529
    }
1530
    if (isSetCommission()) {
1531
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.commission, typedOther.commission);
1532
      if (lastComparison != 0) {
1533
        return lastComparison;
1534
      }
1535
    }
1536
    lastComparison = Boolean.valueOf(isSetServiceTax()).compareTo(typedOther.isSetServiceTax());
1537
    if (lastComparison != 0) {
1538
      return lastComparison;
1539
    }
1540
    if (isSetServiceTax()) {
1541
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceTax, typedOther.serviceTax);
1542
      if (lastComparison != 0) {
1543
        return lastComparison;
1544
      }
1545
    }
1546
    lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
1547
    if (lastComparison != 0) {
1548
      return lastComparison;
1549
    }
1550
    if (isSetBrand()) {
1551
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
1552
      if (lastComparison != 0) {
1553
        return lastComparison;
1554
      }
1555
    }
1556
    lastComparison = Boolean.valueOf(isSetModel_name()).compareTo(typedOther.isSetModel_name());
1557
    if (lastComparison != 0) {
1558
      return lastComparison;
1559
    }
1560
    if (isSetModel_name()) {
1561
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.model_name, typedOther.model_name);
1562
      if (lastComparison != 0) {
1563
        return lastComparison;
1564
      }
1565
    }
1566
    lastComparison = Boolean.valueOf(isSetModel_number()).compareTo(typedOther.isSetModel_number());
1567
    if (lastComparison != 0) {
1568
      return lastComparison;
1569
    }
1570
    if (isSetModel_number()) {
1571
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.model_number, typedOther.model_number);
1572
      if (lastComparison != 0) {
1573
        return lastComparison;
1574
      }
1575
    }
1576
    lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());
1577
    if (lastComparison != 0) {
1578
      return lastComparison;
1579
    }
1580
    if (isSetColor()) {
1581
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);
1582
      if (lastComparison != 0) {
1583
        return lastComparison;
1584
      }
1585
    }
1586
    lastComparison = Boolean.valueOf(isSetRisky()).compareTo(typedOther.isSetRisky());
1587
    if (lastComparison != 0) {
1588
      return lastComparison;
1589
    }
1590
    if (isSetRisky()) {
1591
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.risky, typedOther.risky);
1592
      if (lastComparison != 0) {
1593
        return lastComparison;
1594
      }
1595
    }
1596
    lastComparison = Boolean.valueOf(isSetItemStatus()).compareTo(typedOther.isSetItemStatus());
1597
    if (lastComparison != 0) {
1598
      return lastComparison;
1599
    }
1600
    if (isSetItemStatus()) {
1601
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemStatus, typedOther.itemStatus);
1602
      if (lastComparison != 0) {
1603
        return lastComparison;
1604
      }
1605
    }
1606
    lastComparison = Boolean.valueOf(isSetSuppressPriceFeed()).compareTo(typedOther.isSetSuppressPriceFeed());
1607
    if (lastComparison != 0) {
1608
      return lastComparison;
1609
    }
1610
    if (isSetSuppressPriceFeed()) {
1611
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suppressPriceFeed, typedOther.suppressPriceFeed);
1612
      if (lastComparison != 0) {
1613
        return lastComparison;
1614
      }
1615
    }
1616
    lastComparison = Boolean.valueOf(isSetSuppressInventoryFeed()).compareTo(typedOther.isSetSuppressInventoryFeed());
1617
    if (lastComparison != 0) {
1618
      return lastComparison;
1619
    }
1620
    if (isSetSuppressInventoryFeed()) {
1621
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suppressInventoryFeed, typedOther.suppressInventoryFeed);
1622
      if (lastComparison != 0) {
1623
        return lastComparison;
1624
      }
1625
    }
1626
    lastComparison = Boolean.valueOf(isSetWeight()).compareTo(typedOther.isSetWeight());
1627
    if (lastComparison != 0) {
1628
      return lastComparison;
1629
    }
1630
    if (isSetWeight()) {
1631
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.weight, typedOther.weight);
1632
      if (lastComparison != 0) {
1633
        return lastComparison;
1634
      }
1635
    }
1636
    lastComparison = Boolean.valueOf(isSetMrp()).compareTo(typedOther.isSetMrp());
1637
    if (lastComparison != 0) {
1638
      return lastComparison;
1639
    }
1640
    if (isSetMrp()) {
1641
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mrp, typedOther.mrp);
1642
      if (lastComparison != 0) {
1643
        return lastComparison;
1644
      }
1645
    }
1646
    lastComparison = Boolean.valueOf(isSetWebsiteSellingPrice()).compareTo(typedOther.isSetWebsiteSellingPrice());
1647
    if (lastComparison != 0) {
1648
      return lastComparison;
1649
    }
1650
    if (isSetWebsiteSellingPrice()) {
1651
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.websiteSellingPrice, typedOther.websiteSellingPrice);
1652
      if (lastComparison != 0) {
1653
        return lastComparison;
1654
      }
1655
    }
9478 kshitij.so 1656
    lastComparison = Boolean.valueOf(isSetMaxNlc()).compareTo(typedOther.isSetMaxNlc());
1657
    if (lastComparison != 0) {
1658
      return lastComparison;
1659
    }
1660
    if (isSetMaxNlc()) {
1661
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxNlc, typedOther.maxNlc);
1662
      if (lastComparison != 0) {
1663
        return lastComparison;
1664
      }
1665
    }
9456 vikram.rag 1666
    lastComparison = Boolean.valueOf(isSetSkuAtSnapdeal()).compareTo(typedOther.isSetSkuAtSnapdeal());
1667
    if (lastComparison != 0) {
1668
      return lastComparison;
1669
    }
1670
    if (isSetSkuAtSnapdeal()) {
1671
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skuAtSnapdeal, typedOther.skuAtSnapdeal);
1672
      if (lastComparison != 0) {
1673
        return lastComparison;
1674
      }
1675
    }
9242 kshitij.so 1676
    return 0;
1677
  }
1678
 
1679
  public _Fields fieldForId(int fieldId) {
1680
    return _Fields.findByThriftId(fieldId);
1681
  }
1682
 
1683
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1684
    org.apache.thrift.protocol.TField field;
1685
    iprot.readStructBegin();
1686
    while (true)
1687
    {
1688
      field = iprot.readFieldBegin();
1689
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1690
        break;
1691
      }
1692
      switch (field.id) {
1693
        case 1: // ITEM_ID
1694
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1695
            this.item_id = iprot.readI64();
1696
            setItem_idIsSet(true);
1697
          } else { 
1698
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1699
          }
1700
          break;
1701
        case 2: // WAREHOUSE_ID
1702
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1703
            this.warehouseId = iprot.readI64();
1704
            setWarehouseIdIsSet(true);
1705
          } else { 
1706
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1707
          }
1708
          break;
1709
        case 3: // EXCEPTION_PRICE
1710
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1711
            this.exceptionPrice = iprot.readDouble();
1712
            setExceptionPriceIsSet(true);
1713
          } else { 
1714
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1715
          }
1716
          break;
1717
        case 4: // IS_LISTED_ON_SNAPDEAL
1718
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1719
            this.isListedOnSnapdeal = iprot.readBool();
1720
            setIsListedOnSnapdealIsSet(true);
1721
          } else { 
1722
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1723
          }
1724
          break;
1725
        case 5: // TRANSFER_PRICE
1726
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1727
            this.transferPrice = iprot.readDouble();
1728
            setTransferPriceIsSet(true);
1729
          } else { 
1730
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1731
          }
1732
          break;
1733
        case 6: // SELLING_PRICE
1734
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1735
            this.sellingPrice = iprot.readDouble();
1736
            setSellingPriceIsSet(true);
1737
          } else { 
1738
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1739
          }
1740
          break;
1741
        case 7: // COURIER_COST
1742
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1743
            this.courierCost = iprot.readDouble();
1744
            setCourierCostIsSet(true);
1745
          } else { 
1746
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1747
          }
1748
          break;
1749
        case 8: // COMMISSION
1750
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1751
            this.commission = iprot.readDouble();
1752
            setCommissionIsSet(true);
1753
          } else { 
1754
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1755
          }
1756
          break;
1757
        case 9: // SERVICE_TAX
1758
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1759
            this.serviceTax = iprot.readDouble();
1760
            setServiceTaxIsSet(true);
1761
          } else { 
1762
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1763
          }
1764
          break;
1765
        case 10: // BRAND
1766
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1767
            this.brand = iprot.readString();
1768
          } else { 
1769
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1770
          }
1771
          break;
1772
        case 11: // MODEL_NAME
1773
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1774
            this.model_name = iprot.readString();
1775
          } else { 
1776
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1777
          }
1778
          break;
1779
        case 12: // MODEL_NUMBER
1780
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1781
            this.model_number = iprot.readString();
1782
          } else { 
1783
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1784
          }
1785
          break;
1786
        case 13: // COLOR
1787
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1788
            this.color = iprot.readString();
1789
          } else { 
1790
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1791
          }
1792
          break;
1793
        case 14: // RISKY
1794
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1795
            this.risky = iprot.readBool();
1796
            setRiskyIsSet(true);
1797
          } else { 
1798
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1799
          }
1800
          break;
1801
        case 15: // ITEM_STATUS
1802
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1803
            this.itemStatus = status.findByValue(iprot.readI32());
1804
          } else { 
1805
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1806
          }
1807
          break;
1808
        case 16: // SUPPRESS_PRICE_FEED
1809
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1810
            this.suppressPriceFeed = iprot.readBool();
1811
            setSuppressPriceFeedIsSet(true);
1812
          } else { 
1813
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1814
          }
1815
          break;
1816
        case 17: // SUPPRESS_INVENTORY_FEED
1817
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1818
            this.suppressInventoryFeed = iprot.readBool();
1819
            setSuppressInventoryFeedIsSet(true);
1820
          } else { 
1821
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1822
          }
1823
          break;
1824
        case 18: // WEIGHT
1825
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1826
            this.weight = iprot.readDouble();
1827
            setWeightIsSet(true);
1828
          } else { 
1829
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1830
          }
1831
          break;
1832
        case 19: // MRP
1833
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1834
            this.mrp = iprot.readDouble();
1835
            setMrpIsSet(true);
1836
          } else { 
1837
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1838
          }
1839
          break;
1840
        case 20: // WEBSITE_SELLING_PRICE
1841
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1842
            this.websiteSellingPrice = iprot.readDouble();
1843
            setWebsiteSellingPriceIsSet(true);
1844
          } else { 
1845
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846
          }
1847
          break;
9478 kshitij.so 1848
        case 21: // MAX_NLC
1849
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1850
            this.maxNlc = iprot.readDouble();
1851
            setMaxNlcIsSet(true);
1852
          } else { 
1853
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1854
          }
1855
          break;
1856
        case 22: // SKU_AT_SNAPDEAL
9456 vikram.rag 1857
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1858
            this.skuAtSnapdeal = iprot.readString();
1859
          } else { 
1860
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1861
          }
1862
          break;
9242 kshitij.so 1863
        default:
1864
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1865
      }
1866
      iprot.readFieldEnd();
1867
    }
1868
    iprot.readStructEnd();
1869
    validate();
1870
  }
1871
 
1872
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1873
    validate();
1874
 
1875
    oprot.writeStructBegin(STRUCT_DESC);
1876
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
1877
    oprot.writeI64(this.item_id);
1878
    oprot.writeFieldEnd();
1879
    oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
1880
    oprot.writeI64(this.warehouseId);
1881
    oprot.writeFieldEnd();
1882
    oprot.writeFieldBegin(EXCEPTION_PRICE_FIELD_DESC);
1883
    oprot.writeDouble(this.exceptionPrice);
1884
    oprot.writeFieldEnd();
1885
    oprot.writeFieldBegin(IS_LISTED_ON_SNAPDEAL_FIELD_DESC);
1886
    oprot.writeBool(this.isListedOnSnapdeal);
1887
    oprot.writeFieldEnd();
1888
    oprot.writeFieldBegin(TRANSFER_PRICE_FIELD_DESC);
1889
    oprot.writeDouble(this.transferPrice);
1890
    oprot.writeFieldEnd();
1891
    oprot.writeFieldBegin(SELLING_PRICE_FIELD_DESC);
1892
    oprot.writeDouble(this.sellingPrice);
1893
    oprot.writeFieldEnd();
1894
    oprot.writeFieldBegin(COURIER_COST_FIELD_DESC);
1895
    oprot.writeDouble(this.courierCost);
1896
    oprot.writeFieldEnd();
1897
    oprot.writeFieldBegin(COMMISSION_FIELD_DESC);
1898
    oprot.writeDouble(this.commission);
1899
    oprot.writeFieldEnd();
1900
    oprot.writeFieldBegin(SERVICE_TAX_FIELD_DESC);
1901
    oprot.writeDouble(this.serviceTax);
1902
    oprot.writeFieldEnd();
1903
    if (this.brand != null) {
1904
      oprot.writeFieldBegin(BRAND_FIELD_DESC);
1905
      oprot.writeString(this.brand);
1906
      oprot.writeFieldEnd();
1907
    }
1908
    if (this.model_name != null) {
1909
      oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);
1910
      oprot.writeString(this.model_name);
1911
      oprot.writeFieldEnd();
1912
    }
1913
    if (this.model_number != null) {
1914
      oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
1915
      oprot.writeString(this.model_number);
1916
      oprot.writeFieldEnd();
1917
    }
1918
    if (this.color != null) {
1919
      oprot.writeFieldBegin(COLOR_FIELD_DESC);
1920
      oprot.writeString(this.color);
1921
      oprot.writeFieldEnd();
1922
    }
1923
    oprot.writeFieldBegin(RISKY_FIELD_DESC);
1924
    oprot.writeBool(this.risky);
1925
    oprot.writeFieldEnd();
1926
    if (this.itemStatus != null) {
1927
      oprot.writeFieldBegin(ITEM_STATUS_FIELD_DESC);
1928
      oprot.writeI32(this.itemStatus.getValue());
1929
      oprot.writeFieldEnd();
1930
    }
1931
    oprot.writeFieldBegin(SUPPRESS_PRICE_FEED_FIELD_DESC);
1932
    oprot.writeBool(this.suppressPriceFeed);
1933
    oprot.writeFieldEnd();
1934
    oprot.writeFieldBegin(SUPPRESS_INVENTORY_FEED_FIELD_DESC);
1935
    oprot.writeBool(this.suppressInventoryFeed);
1936
    oprot.writeFieldEnd();
1937
    oprot.writeFieldBegin(WEIGHT_FIELD_DESC);
1938
    oprot.writeDouble(this.weight);
1939
    oprot.writeFieldEnd();
1940
    oprot.writeFieldBegin(MRP_FIELD_DESC);
1941
    oprot.writeDouble(this.mrp);
1942
    oprot.writeFieldEnd();
1943
    oprot.writeFieldBegin(WEBSITE_SELLING_PRICE_FIELD_DESC);
1944
    oprot.writeDouble(this.websiteSellingPrice);
1945
    oprot.writeFieldEnd();
9478 kshitij.so 1946
    oprot.writeFieldBegin(MAX_NLC_FIELD_DESC);
1947
    oprot.writeDouble(this.maxNlc);
1948
    oprot.writeFieldEnd();
9456 vikram.rag 1949
    if (this.skuAtSnapdeal != null) {
1950
      oprot.writeFieldBegin(SKU_AT_SNAPDEAL_FIELD_DESC);
1951
      oprot.writeString(this.skuAtSnapdeal);
1952
      oprot.writeFieldEnd();
1953
    }
9242 kshitij.so 1954
    oprot.writeFieldStop();
1955
    oprot.writeStructEnd();
1956
  }
1957
 
1958
  @Override
1959
  public String toString() {
1960
    StringBuilder sb = new StringBuilder("SnapdealItemDetails(");
1961
    boolean first = true;
1962
 
1963
    sb.append("item_id:");
1964
    sb.append(this.item_id);
1965
    first = false;
1966
    if (!first) sb.append(", ");
1967
    sb.append("warehouseId:");
1968
    sb.append(this.warehouseId);
1969
    first = false;
1970
    if (!first) sb.append(", ");
1971
    sb.append("exceptionPrice:");
1972
    sb.append(this.exceptionPrice);
1973
    first = false;
1974
    if (!first) sb.append(", ");
1975
    sb.append("isListedOnSnapdeal:");
1976
    sb.append(this.isListedOnSnapdeal);
1977
    first = false;
1978
    if (!first) sb.append(", ");
1979
    sb.append("transferPrice:");
1980
    sb.append(this.transferPrice);
1981
    first = false;
1982
    if (!first) sb.append(", ");
1983
    sb.append("sellingPrice:");
1984
    sb.append(this.sellingPrice);
1985
    first = false;
1986
    if (!first) sb.append(", ");
1987
    sb.append("courierCost:");
1988
    sb.append(this.courierCost);
1989
    first = false;
1990
    if (!first) sb.append(", ");
1991
    sb.append("commission:");
1992
    sb.append(this.commission);
1993
    first = false;
1994
    if (!first) sb.append(", ");
1995
    sb.append("serviceTax:");
1996
    sb.append(this.serviceTax);
1997
    first = false;
1998
    if (!first) sb.append(", ");
1999
    sb.append("brand:");
2000
    if (this.brand == null) {
2001
      sb.append("null");
2002
    } else {
2003
      sb.append(this.brand);
2004
    }
2005
    first = false;
2006
    if (!first) sb.append(", ");
2007
    sb.append("model_name:");
2008
    if (this.model_name == null) {
2009
      sb.append("null");
2010
    } else {
2011
      sb.append(this.model_name);
2012
    }
2013
    first = false;
2014
    if (!first) sb.append(", ");
2015
    sb.append("model_number:");
2016
    if (this.model_number == null) {
2017
      sb.append("null");
2018
    } else {
2019
      sb.append(this.model_number);
2020
    }
2021
    first = false;
2022
    if (!first) sb.append(", ");
2023
    sb.append("color:");
2024
    if (this.color == null) {
2025
      sb.append("null");
2026
    } else {
2027
      sb.append(this.color);
2028
    }
2029
    first = false;
2030
    if (!first) sb.append(", ");
2031
    sb.append("risky:");
2032
    sb.append(this.risky);
2033
    first = false;
2034
    if (!first) sb.append(", ");
2035
    sb.append("itemStatus:");
2036
    if (this.itemStatus == null) {
2037
      sb.append("null");
2038
    } else {
2039
      sb.append(this.itemStatus);
2040
    }
2041
    first = false;
2042
    if (!first) sb.append(", ");
2043
    sb.append("suppressPriceFeed:");
2044
    sb.append(this.suppressPriceFeed);
2045
    first = false;
2046
    if (!first) sb.append(", ");
2047
    sb.append("suppressInventoryFeed:");
2048
    sb.append(this.suppressInventoryFeed);
2049
    first = false;
2050
    if (!first) sb.append(", ");
2051
    sb.append("weight:");
2052
    sb.append(this.weight);
2053
    first = false;
2054
    if (!first) sb.append(", ");
2055
    sb.append("mrp:");
2056
    sb.append(this.mrp);
2057
    first = false;
2058
    if (!first) sb.append(", ");
2059
    sb.append("websiteSellingPrice:");
2060
    sb.append(this.websiteSellingPrice);
2061
    first = false;
9456 vikram.rag 2062
    if (!first) sb.append(", ");
9478 kshitij.so 2063
    sb.append("maxNlc:");
2064
    sb.append(this.maxNlc);
2065
    first = false;
2066
    if (!first) sb.append(", ");
9456 vikram.rag 2067
    sb.append("skuAtSnapdeal:");
2068
    if (this.skuAtSnapdeal == null) {
2069
      sb.append("null");
2070
    } else {
2071
      sb.append(this.skuAtSnapdeal);
2072
    }
2073
    first = false;
9242 kshitij.so 2074
    sb.append(")");
2075
    return sb.toString();
2076
  }
2077
 
2078
  public void validate() throws org.apache.thrift.TException {
2079
    // check for required fields
2080
  }
2081
 
2082
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2083
    try {
2084
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2085
    } catch (org.apache.thrift.TException te) {
2086
      throw new java.io.IOException(te);
2087
    }
2088
  }
2089
 
2090
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2091
    try {
2092
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
2093
      __isset_bit_vector = new BitSet(1);
2094
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2095
    } catch (org.apache.thrift.TException te) {
2096
      throw new java.io.IOException(te);
2097
    }
2098
  }
2099
 
2100
}
2101