Subversion Repositories SmartDukaan

Rev

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