Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
8739 vikram.rag 1
/**
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.catalog;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
18
import java.nio.ByteBuffer;
19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class SnapdealItem implements org.apache.thrift.TBase<SnapdealItem, SnapdealItem._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SnapdealItem");
25
 
26
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
28
  private static final org.apache.thrift.protocol.TField EXCEPTION_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("exceptionPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
29
  private static final org.apache.thrift.protocol.TField IS_LISTED_ON_SNAPDEAL_FIELD_DESC = new org.apache.thrift.protocol.TField("isListedOnSnapdeal", org.apache.thrift.protocol.TType.BOOL, (short)4);
9242 kshitij.so 30
  private static final org.apache.thrift.protocol.TField TRANSFER_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("transferPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
31
  private static final org.apache.thrift.protocol.TField SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("sellingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
32
  private static final org.apache.thrift.protocol.TField COURIER_COST_FIELD_DESC = new org.apache.thrift.protocol.TField("courierCost", org.apache.thrift.protocol.TType.DOUBLE, (short)7);
33
  private static final org.apache.thrift.protocol.TField COMMISSION_FIELD_DESC = new org.apache.thrift.protocol.TField("commission", org.apache.thrift.protocol.TType.DOUBLE, (short)8);
34
  private static final org.apache.thrift.protocol.TField SERVICE_TAX_FIELD_DESC = new org.apache.thrift.protocol.TField("serviceTax", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
35
  private static final org.apache.thrift.protocol.TField SUPPRESS_PRICE_FEED_FIELD_DESC = new org.apache.thrift.protocol.TField("suppressPriceFeed", org.apache.thrift.protocol.TType.BOOL, (short)10);
36
  private static final org.apache.thrift.protocol.TField SUPPRESS_INVENTORY_FEED_FIELD_DESC = new org.apache.thrift.protocol.TField("suppressInventoryFeed", org.apache.thrift.protocol.TType.BOOL, (short)11);
9404 vikram.rag 37
  private static final org.apache.thrift.protocol.TField MAX_NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("maxNlc", org.apache.thrift.protocol.TType.DOUBLE, (short)12);
9456 vikram.rag 38
  private static final org.apache.thrift.protocol.TField SKU_AT_SNAPDEAL_FIELD_DESC = new org.apache.thrift.protocol.TField("skuAtSnapdeal", org.apache.thrift.protocol.TType.STRING, (short)13);
8739 vikram.rag 39
 
40
  private long item_id; // required
41
  private long warehouseId; // required
42
  private double exceptionPrice; // required
43
  private boolean isListedOnSnapdeal; // required
9242 kshitij.so 44
  private double transferPrice; // required
45
  private double sellingPrice; // required
46
  private double courierCost; // required
47
  private double commission; // required
48
  private double serviceTax; // required
49
  private boolean suppressPriceFeed; // required
50
  private boolean suppressInventoryFeed; // required
9404 vikram.rag 51
  private double maxNlc; // required
9456 vikram.rag 52
  private String skuAtSnapdeal; // required
8739 vikram.rag 53
 
54
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
55
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
56
    ITEM_ID((short)1, "item_id"),
57
    WAREHOUSE_ID((short)2, "warehouseId"),
58
    EXCEPTION_PRICE((short)3, "exceptionPrice"),
9242 kshitij.so 59
    IS_LISTED_ON_SNAPDEAL((short)4, "isListedOnSnapdeal"),
60
    TRANSFER_PRICE((short)5, "transferPrice"),
61
    SELLING_PRICE((short)6, "sellingPrice"),
62
    COURIER_COST((short)7, "courierCost"),
63
    COMMISSION((short)8, "commission"),
64
    SERVICE_TAX((short)9, "serviceTax"),
65
    SUPPRESS_PRICE_FEED((short)10, "suppressPriceFeed"),
9404 vikram.rag 66
    SUPPRESS_INVENTORY_FEED((short)11, "suppressInventoryFeed"),
9456 vikram.rag 67
    MAX_NLC((short)12, "maxNlc"),
68
    SKU_AT_SNAPDEAL((short)13, "skuAtSnapdeal");
8739 vikram.rag 69
 
70
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
71
 
72
    static {
73
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
74
        byName.put(field.getFieldName(), field);
75
      }
76
    }
77
 
78
    /**
79
     * Find the _Fields constant that matches fieldId, or null if its not found.
80
     */
81
    public static _Fields findByThriftId(int fieldId) {
82
      switch(fieldId) {
83
        case 1: // ITEM_ID
84
          return ITEM_ID;
85
        case 2: // WAREHOUSE_ID
86
          return WAREHOUSE_ID;
87
        case 3: // EXCEPTION_PRICE
88
          return EXCEPTION_PRICE;
89
        case 4: // IS_LISTED_ON_SNAPDEAL
90
          return IS_LISTED_ON_SNAPDEAL;
9242 kshitij.so 91
        case 5: // TRANSFER_PRICE
92
          return TRANSFER_PRICE;
93
        case 6: // SELLING_PRICE
94
          return SELLING_PRICE;
95
        case 7: // COURIER_COST
96
          return COURIER_COST;
97
        case 8: // COMMISSION
98
          return COMMISSION;
99
        case 9: // SERVICE_TAX
100
          return SERVICE_TAX;
101
        case 10: // SUPPRESS_PRICE_FEED
102
          return SUPPRESS_PRICE_FEED;
103
        case 11: // SUPPRESS_INVENTORY_FEED
104
          return SUPPRESS_INVENTORY_FEED;
9404 vikram.rag 105
        case 12: // MAX_NLC
106
          return MAX_NLC;
9456 vikram.rag 107
        case 13: // SKU_AT_SNAPDEAL
108
          return SKU_AT_SNAPDEAL;
8739 vikram.rag 109
        default:
110
          return null;
111
      }
112
    }
113
 
114
    /**
115
     * Find the _Fields constant that matches fieldId, throwing an exception
116
     * if it is not found.
117
     */
118
    public static _Fields findByThriftIdOrThrow(int fieldId) {
119
      _Fields fields = findByThriftId(fieldId);
120
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
121
      return fields;
122
    }
123
 
124
    /**
125
     * Find the _Fields constant that matches name, or null if its not found.
126
     */
127
    public static _Fields findByName(String name) {
128
      return byName.get(name);
129
    }
130
 
131
    private final short _thriftId;
132
    private final String _fieldName;
133
 
134
    _Fields(short thriftId, String fieldName) {
135
      _thriftId = thriftId;
136
      _fieldName = fieldName;
137
    }
138
 
139
    public short getThriftFieldId() {
140
      return _thriftId;
141
    }
142
 
143
    public String getFieldName() {
144
      return _fieldName;
145
    }
146
  }
147
 
148
  // isset id assignments
149
  private static final int __ITEM_ID_ISSET_ID = 0;
150
  private static final int __WAREHOUSEID_ISSET_ID = 1;
151
  private static final int __EXCEPTIONPRICE_ISSET_ID = 2;
152
  private static final int __ISLISTEDONSNAPDEAL_ISSET_ID = 3;
9242 kshitij.so 153
  private static final int __TRANSFERPRICE_ISSET_ID = 4;
154
  private static final int __SELLINGPRICE_ISSET_ID = 5;
155
  private static final int __COURIERCOST_ISSET_ID = 6;
156
  private static final int __COMMISSION_ISSET_ID = 7;
157
  private static final int __SERVICETAX_ISSET_ID = 8;
158
  private static final int __SUPPRESSPRICEFEED_ISSET_ID = 9;
159
  private static final int __SUPPRESSINVENTORYFEED_ISSET_ID = 10;
9404 vikram.rag 160
  private static final int __MAXNLC_ISSET_ID = 11;
161
  private BitSet __isset_bit_vector = new BitSet(12);
8739 vikram.rag 162
 
163
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
164
  static {
165
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
166
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
167
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
168
    tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
169
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
170
    tmpMap.put(_Fields.EXCEPTION_PRICE, new org.apache.thrift.meta_data.FieldMetaData("exceptionPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
171
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
172
    tmpMap.put(_Fields.IS_LISTED_ON_SNAPDEAL, new org.apache.thrift.meta_data.FieldMetaData("isListedOnSnapdeal", org.apache.thrift.TFieldRequirementType.DEFAULT, 
173
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9242 kshitij.so 174
    tmpMap.put(_Fields.TRANSFER_PRICE, new org.apache.thrift.meta_data.FieldMetaData("transferPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
175
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
176
    tmpMap.put(_Fields.SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("sellingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
177
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
178
    tmpMap.put(_Fields.COURIER_COST, new org.apache.thrift.meta_data.FieldMetaData("courierCost", org.apache.thrift.TFieldRequirementType.DEFAULT, 
179
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
180
    tmpMap.put(_Fields.COMMISSION, new org.apache.thrift.meta_data.FieldMetaData("commission", org.apache.thrift.TFieldRequirementType.DEFAULT, 
181
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
182
    tmpMap.put(_Fields.SERVICE_TAX, new org.apache.thrift.meta_data.FieldMetaData("serviceTax", org.apache.thrift.TFieldRequirementType.DEFAULT, 
183
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
184
    tmpMap.put(_Fields.SUPPRESS_PRICE_FEED, new org.apache.thrift.meta_data.FieldMetaData("suppressPriceFeed", org.apache.thrift.TFieldRequirementType.DEFAULT, 
185
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
186
    tmpMap.put(_Fields.SUPPRESS_INVENTORY_FEED, new org.apache.thrift.meta_data.FieldMetaData("suppressInventoryFeed", org.apache.thrift.TFieldRequirementType.DEFAULT, 
187
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9404 vikram.rag 188
    tmpMap.put(_Fields.MAX_NLC, new org.apache.thrift.meta_data.FieldMetaData("maxNlc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
189
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
9456 vikram.rag 190
    tmpMap.put(_Fields.SKU_AT_SNAPDEAL, new org.apache.thrift.meta_data.FieldMetaData("skuAtSnapdeal", org.apache.thrift.TFieldRequirementType.DEFAULT, 
191
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8739 vikram.rag 192
    metaDataMap = Collections.unmodifiableMap(tmpMap);
193
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SnapdealItem.class, metaDataMap);
194
  }
195
 
196
  public SnapdealItem() {
197
  }
198
 
199
  public SnapdealItem(
200
    long item_id,
201
    long warehouseId,
202
    double exceptionPrice,
9242 kshitij.so 203
    boolean isListedOnSnapdeal,
204
    double transferPrice,
205
    double sellingPrice,
206
    double courierCost,
207
    double commission,
208
    double serviceTax,
209
    boolean suppressPriceFeed,
9404 vikram.rag 210
    boolean suppressInventoryFeed,
9456 vikram.rag 211
    double maxNlc,
212
    String skuAtSnapdeal)
8739 vikram.rag 213
  {
214
    this();
215
    this.item_id = item_id;
216
    setItem_idIsSet(true);
217
    this.warehouseId = warehouseId;
218
    setWarehouseIdIsSet(true);
219
    this.exceptionPrice = exceptionPrice;
220
    setExceptionPriceIsSet(true);
221
    this.isListedOnSnapdeal = isListedOnSnapdeal;
222
    setIsListedOnSnapdealIsSet(true);
9242 kshitij.so 223
    this.transferPrice = transferPrice;
224
    setTransferPriceIsSet(true);
225
    this.sellingPrice = sellingPrice;
226
    setSellingPriceIsSet(true);
227
    this.courierCost = courierCost;
228
    setCourierCostIsSet(true);
229
    this.commission = commission;
230
    setCommissionIsSet(true);
231
    this.serviceTax = serviceTax;
232
    setServiceTaxIsSet(true);
233
    this.suppressPriceFeed = suppressPriceFeed;
234
    setSuppressPriceFeedIsSet(true);
235
    this.suppressInventoryFeed = suppressInventoryFeed;
236
    setSuppressInventoryFeedIsSet(true);
9404 vikram.rag 237
    this.maxNlc = maxNlc;
238
    setMaxNlcIsSet(true);
9456 vikram.rag 239
    this.skuAtSnapdeal = skuAtSnapdeal;
8739 vikram.rag 240
  }
241
 
242
  /**
243
   * Performs a deep copy on <i>other</i>.
244
   */
245
  public SnapdealItem(SnapdealItem other) {
246
    __isset_bit_vector.clear();
247
    __isset_bit_vector.or(other.__isset_bit_vector);
248
    this.item_id = other.item_id;
249
    this.warehouseId = other.warehouseId;
250
    this.exceptionPrice = other.exceptionPrice;
251
    this.isListedOnSnapdeal = other.isListedOnSnapdeal;
9242 kshitij.so 252
    this.transferPrice = other.transferPrice;
253
    this.sellingPrice = other.sellingPrice;
254
    this.courierCost = other.courierCost;
255
    this.commission = other.commission;
256
    this.serviceTax = other.serviceTax;
257
    this.suppressPriceFeed = other.suppressPriceFeed;
258
    this.suppressInventoryFeed = other.suppressInventoryFeed;
9404 vikram.rag 259
    this.maxNlc = other.maxNlc;
9456 vikram.rag 260
    if (other.isSetSkuAtSnapdeal()) {
261
      this.skuAtSnapdeal = other.skuAtSnapdeal;
262
    }
8739 vikram.rag 263
  }
264
 
265
  public SnapdealItem deepCopy() {
266
    return new SnapdealItem(this);
267
  }
268
 
269
  @Override
270
  public void clear() {
271
    setItem_idIsSet(false);
272
    this.item_id = 0;
273
    setWarehouseIdIsSet(false);
274
    this.warehouseId = 0;
275
    setExceptionPriceIsSet(false);
276
    this.exceptionPrice = 0.0;
277
    setIsListedOnSnapdealIsSet(false);
278
    this.isListedOnSnapdeal = false;
9242 kshitij.so 279
    setTransferPriceIsSet(false);
280
    this.transferPrice = 0.0;
281
    setSellingPriceIsSet(false);
282
    this.sellingPrice = 0.0;
283
    setCourierCostIsSet(false);
284
    this.courierCost = 0.0;
285
    setCommissionIsSet(false);
286
    this.commission = 0.0;
287
    setServiceTaxIsSet(false);
288
    this.serviceTax = 0.0;
289
    setSuppressPriceFeedIsSet(false);
290
    this.suppressPriceFeed = false;
291
    setSuppressInventoryFeedIsSet(false);
292
    this.suppressInventoryFeed = false;
9404 vikram.rag 293
    setMaxNlcIsSet(false);
294
    this.maxNlc = 0.0;
9456 vikram.rag 295
    this.skuAtSnapdeal = null;
8739 vikram.rag 296
  }
297
 
298
  public long getItem_id() {
299
    return this.item_id;
300
  }
301
 
302
  public void setItem_id(long item_id) {
303
    this.item_id = item_id;
304
    setItem_idIsSet(true);
305
  }
306
 
307
  public void unsetItem_id() {
308
    __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
309
  }
310
 
311
  /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
312
  public boolean isSetItem_id() {
313
    return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
314
  }
315
 
316
  public void setItem_idIsSet(boolean value) {
317
    __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
318
  }
319
 
320
  public long getWarehouseId() {
321
    return this.warehouseId;
322
  }
323
 
324
  public void setWarehouseId(long warehouseId) {
325
    this.warehouseId = warehouseId;
326
    setWarehouseIdIsSet(true);
327
  }
328
 
329
  public void unsetWarehouseId() {
330
    __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
331
  }
332
 
333
  /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
334
  public boolean isSetWarehouseId() {
335
    return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
336
  }
337
 
338
  public void setWarehouseIdIsSet(boolean value) {
339
    __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
340
  }
341
 
342
  public double getExceptionPrice() {
343
    return this.exceptionPrice;
344
  }
345
 
346
  public void setExceptionPrice(double exceptionPrice) {
347
    this.exceptionPrice = exceptionPrice;
348
    setExceptionPriceIsSet(true);
349
  }
350
 
351
  public void unsetExceptionPrice() {
352
    __isset_bit_vector.clear(__EXCEPTIONPRICE_ISSET_ID);
353
  }
354
 
355
  /** Returns true if field exceptionPrice is set (has been assigned a value) and false otherwise */
356
  public boolean isSetExceptionPrice() {
357
    return __isset_bit_vector.get(__EXCEPTIONPRICE_ISSET_ID);
358
  }
359
 
360
  public void setExceptionPriceIsSet(boolean value) {
361
    __isset_bit_vector.set(__EXCEPTIONPRICE_ISSET_ID, value);
362
  }
363
 
364
  public boolean isIsListedOnSnapdeal() {
365
    return this.isListedOnSnapdeal;
366
  }
367
 
368
  public void setIsListedOnSnapdeal(boolean isListedOnSnapdeal) {
369
    this.isListedOnSnapdeal = isListedOnSnapdeal;
370
    setIsListedOnSnapdealIsSet(true);
371
  }
372
 
373
  public void unsetIsListedOnSnapdeal() {
374
    __isset_bit_vector.clear(__ISLISTEDONSNAPDEAL_ISSET_ID);
375
  }
376
 
377
  /** Returns true if field isListedOnSnapdeal is set (has been assigned a value) and false otherwise */
378
  public boolean isSetIsListedOnSnapdeal() {
379
    return __isset_bit_vector.get(__ISLISTEDONSNAPDEAL_ISSET_ID);
380
  }
381
 
382
  public void setIsListedOnSnapdealIsSet(boolean value) {
383
    __isset_bit_vector.set(__ISLISTEDONSNAPDEAL_ISSET_ID, value);
384
  }
385
 
9242 kshitij.so 386
  public double getTransferPrice() {
387
    return this.transferPrice;
388
  }
389
 
390
  public void setTransferPrice(double transferPrice) {
391
    this.transferPrice = transferPrice;
392
    setTransferPriceIsSet(true);
393
  }
394
 
395
  public void unsetTransferPrice() {
396
    __isset_bit_vector.clear(__TRANSFERPRICE_ISSET_ID);
397
  }
398
 
399
  /** Returns true if field transferPrice is set (has been assigned a value) and false otherwise */
400
  public boolean isSetTransferPrice() {
401
    return __isset_bit_vector.get(__TRANSFERPRICE_ISSET_ID);
402
  }
403
 
404
  public void setTransferPriceIsSet(boolean value) {
405
    __isset_bit_vector.set(__TRANSFERPRICE_ISSET_ID, value);
406
  }
407
 
408
  public double getSellingPrice() {
409
    return this.sellingPrice;
410
  }
411
 
412
  public void setSellingPrice(double sellingPrice) {
413
    this.sellingPrice = sellingPrice;
414
    setSellingPriceIsSet(true);
415
  }
416
 
417
  public void unsetSellingPrice() {
418
    __isset_bit_vector.clear(__SELLINGPRICE_ISSET_ID);
419
  }
420
 
421
  /** Returns true if field sellingPrice is set (has been assigned a value) and false otherwise */
422
  public boolean isSetSellingPrice() {
423
    return __isset_bit_vector.get(__SELLINGPRICE_ISSET_ID);
424
  }
425
 
426
  public void setSellingPriceIsSet(boolean value) {
427
    __isset_bit_vector.set(__SELLINGPRICE_ISSET_ID, value);
428
  }
429
 
430
  public double getCourierCost() {
431
    return this.courierCost;
432
  }
433
 
434
  public void setCourierCost(double courierCost) {
435
    this.courierCost = courierCost;
436
    setCourierCostIsSet(true);
437
  }
438
 
439
  public void unsetCourierCost() {
440
    __isset_bit_vector.clear(__COURIERCOST_ISSET_ID);
441
  }
442
 
443
  /** Returns true if field courierCost is set (has been assigned a value) and false otherwise */
444
  public boolean isSetCourierCost() {
445
    return __isset_bit_vector.get(__COURIERCOST_ISSET_ID);
446
  }
447
 
448
  public void setCourierCostIsSet(boolean value) {
449
    __isset_bit_vector.set(__COURIERCOST_ISSET_ID, value);
450
  }
451
 
452
  public double getCommission() {
453
    return this.commission;
454
  }
455
 
456
  public void setCommission(double commission) {
457
    this.commission = commission;
458
    setCommissionIsSet(true);
459
  }
460
 
461
  public void unsetCommission() {
462
    __isset_bit_vector.clear(__COMMISSION_ISSET_ID);
463
  }
464
 
465
  /** Returns true if field commission is set (has been assigned a value) and false otherwise */
466
  public boolean isSetCommission() {
467
    return __isset_bit_vector.get(__COMMISSION_ISSET_ID);
468
  }
469
 
470
  public void setCommissionIsSet(boolean value) {
471
    __isset_bit_vector.set(__COMMISSION_ISSET_ID, value);
472
  }
473
 
474
  public double getServiceTax() {
475
    return this.serviceTax;
476
  }
477
 
478
  public void setServiceTax(double serviceTax) {
479
    this.serviceTax = serviceTax;
480
    setServiceTaxIsSet(true);
481
  }
482
 
483
  public void unsetServiceTax() {
484
    __isset_bit_vector.clear(__SERVICETAX_ISSET_ID);
485
  }
486
 
487
  /** Returns true if field serviceTax is set (has been assigned a value) and false otherwise */
488
  public boolean isSetServiceTax() {
489
    return __isset_bit_vector.get(__SERVICETAX_ISSET_ID);
490
  }
491
 
492
  public void setServiceTaxIsSet(boolean value) {
493
    __isset_bit_vector.set(__SERVICETAX_ISSET_ID, value);
494
  }
495
 
496
  public boolean isSuppressPriceFeed() {
497
    return this.suppressPriceFeed;
498
  }
499
 
500
  public void setSuppressPriceFeed(boolean suppressPriceFeed) {
501
    this.suppressPriceFeed = suppressPriceFeed;
502
    setSuppressPriceFeedIsSet(true);
503
  }
504
 
505
  public void unsetSuppressPriceFeed() {
506
    __isset_bit_vector.clear(__SUPPRESSPRICEFEED_ISSET_ID);
507
  }
508
 
509
  /** Returns true if field suppressPriceFeed is set (has been assigned a value) and false otherwise */
510
  public boolean isSetSuppressPriceFeed() {
511
    return __isset_bit_vector.get(__SUPPRESSPRICEFEED_ISSET_ID);
512
  }
513
 
514
  public void setSuppressPriceFeedIsSet(boolean value) {
515
    __isset_bit_vector.set(__SUPPRESSPRICEFEED_ISSET_ID, value);
516
  }
517
 
518
  public boolean isSuppressInventoryFeed() {
519
    return this.suppressInventoryFeed;
520
  }
521
 
522
  public void setSuppressInventoryFeed(boolean suppressInventoryFeed) {
523
    this.suppressInventoryFeed = suppressInventoryFeed;
524
    setSuppressInventoryFeedIsSet(true);
525
  }
526
 
527
  public void unsetSuppressInventoryFeed() {
528
    __isset_bit_vector.clear(__SUPPRESSINVENTORYFEED_ISSET_ID);
529
  }
530
 
531
  /** Returns true if field suppressInventoryFeed is set (has been assigned a value) and false otherwise */
532
  public boolean isSetSuppressInventoryFeed() {
533
    return __isset_bit_vector.get(__SUPPRESSINVENTORYFEED_ISSET_ID);
534
  }
535
 
536
  public void setSuppressInventoryFeedIsSet(boolean value) {
537
    __isset_bit_vector.set(__SUPPRESSINVENTORYFEED_ISSET_ID, value);
538
  }
539
 
9404 vikram.rag 540
  public double getMaxNlc() {
541
    return this.maxNlc;
542
  }
543
 
544
  public void setMaxNlc(double maxNlc) {
545
    this.maxNlc = maxNlc;
546
    setMaxNlcIsSet(true);
547
  }
548
 
549
  public void unsetMaxNlc() {
550
    __isset_bit_vector.clear(__MAXNLC_ISSET_ID);
551
  }
552
 
553
  /** Returns true if field maxNlc is set (has been assigned a value) and false otherwise */
554
  public boolean isSetMaxNlc() {
555
    return __isset_bit_vector.get(__MAXNLC_ISSET_ID);
556
  }
557
 
558
  public void setMaxNlcIsSet(boolean value) {
559
    __isset_bit_vector.set(__MAXNLC_ISSET_ID, value);
560
  }
561
 
9456 vikram.rag 562
  public String getSkuAtSnapdeal() {
563
    return this.skuAtSnapdeal;
564
  }
565
 
566
  public void setSkuAtSnapdeal(String skuAtSnapdeal) {
567
    this.skuAtSnapdeal = skuAtSnapdeal;
568
  }
569
 
570
  public void unsetSkuAtSnapdeal() {
571
    this.skuAtSnapdeal = null;
572
  }
573
 
574
  /** Returns true if field skuAtSnapdeal is set (has been assigned a value) and false otherwise */
575
  public boolean isSetSkuAtSnapdeal() {
576
    return this.skuAtSnapdeal != null;
577
  }
578
 
579
  public void setSkuAtSnapdealIsSet(boolean value) {
580
    if (!value) {
581
      this.skuAtSnapdeal = null;
582
    }
583
  }
584
 
8739 vikram.rag 585
  public void setFieldValue(_Fields field, Object value) {
586
    switch (field) {
587
    case ITEM_ID:
588
      if (value == null) {
589
        unsetItem_id();
590
      } else {
591
        setItem_id((Long)value);
592
      }
593
      break;
594
 
595
    case WAREHOUSE_ID:
596
      if (value == null) {
597
        unsetWarehouseId();
598
      } else {
599
        setWarehouseId((Long)value);
600
      }
601
      break;
602
 
603
    case EXCEPTION_PRICE:
604
      if (value == null) {
605
        unsetExceptionPrice();
606
      } else {
607
        setExceptionPrice((Double)value);
608
      }
609
      break;
610
 
611
    case IS_LISTED_ON_SNAPDEAL:
612
      if (value == null) {
613
        unsetIsListedOnSnapdeal();
614
      } else {
615
        setIsListedOnSnapdeal((Boolean)value);
616
      }
617
      break;
618
 
9242 kshitij.so 619
    case TRANSFER_PRICE:
620
      if (value == null) {
621
        unsetTransferPrice();
622
      } else {
623
        setTransferPrice((Double)value);
624
      }
625
      break;
626
 
627
    case SELLING_PRICE:
628
      if (value == null) {
629
        unsetSellingPrice();
630
      } else {
631
        setSellingPrice((Double)value);
632
      }
633
      break;
634
 
635
    case COURIER_COST:
636
      if (value == null) {
637
        unsetCourierCost();
638
      } else {
639
        setCourierCost((Double)value);
640
      }
641
      break;
642
 
643
    case COMMISSION:
644
      if (value == null) {
645
        unsetCommission();
646
      } else {
647
        setCommission((Double)value);
648
      }
649
      break;
650
 
651
    case SERVICE_TAX:
652
      if (value == null) {
653
        unsetServiceTax();
654
      } else {
655
        setServiceTax((Double)value);
656
      }
657
      break;
658
 
659
    case SUPPRESS_PRICE_FEED:
660
      if (value == null) {
661
        unsetSuppressPriceFeed();
662
      } else {
663
        setSuppressPriceFeed((Boolean)value);
664
      }
665
      break;
666
 
667
    case SUPPRESS_INVENTORY_FEED:
668
      if (value == null) {
669
        unsetSuppressInventoryFeed();
670
      } else {
671
        setSuppressInventoryFeed((Boolean)value);
672
      }
673
      break;
674
 
9404 vikram.rag 675
    case MAX_NLC:
676
      if (value == null) {
677
        unsetMaxNlc();
678
      } else {
679
        setMaxNlc((Double)value);
680
      }
681
      break;
682
 
9456 vikram.rag 683
    case SKU_AT_SNAPDEAL:
684
      if (value == null) {
685
        unsetSkuAtSnapdeal();
686
      } else {
687
        setSkuAtSnapdeal((String)value);
688
      }
689
      break;
690
 
8739 vikram.rag 691
    }
692
  }
693
 
694
  public Object getFieldValue(_Fields field) {
695
    switch (field) {
696
    case ITEM_ID:
697
      return Long.valueOf(getItem_id());
698
 
699
    case WAREHOUSE_ID:
700
      return Long.valueOf(getWarehouseId());
701
 
702
    case EXCEPTION_PRICE:
703
      return Double.valueOf(getExceptionPrice());
704
 
705
    case IS_LISTED_ON_SNAPDEAL:
706
      return Boolean.valueOf(isIsListedOnSnapdeal());
707
 
9242 kshitij.so 708
    case TRANSFER_PRICE:
709
      return Double.valueOf(getTransferPrice());
710
 
711
    case SELLING_PRICE:
712
      return Double.valueOf(getSellingPrice());
713
 
714
    case COURIER_COST:
715
      return Double.valueOf(getCourierCost());
716
 
717
    case COMMISSION:
718
      return Double.valueOf(getCommission());
719
 
720
    case SERVICE_TAX:
721
      return Double.valueOf(getServiceTax());
722
 
723
    case SUPPRESS_PRICE_FEED:
724
      return Boolean.valueOf(isSuppressPriceFeed());
725
 
726
    case SUPPRESS_INVENTORY_FEED:
727
      return Boolean.valueOf(isSuppressInventoryFeed());
728
 
9404 vikram.rag 729
    case MAX_NLC:
730
      return Double.valueOf(getMaxNlc());
731
 
9456 vikram.rag 732
    case SKU_AT_SNAPDEAL:
733
      return getSkuAtSnapdeal();
734
 
8739 vikram.rag 735
    }
736
    throw new IllegalStateException();
737
  }
738
 
739
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
740
  public boolean isSet(_Fields field) {
741
    if (field == null) {
742
      throw new IllegalArgumentException();
743
    }
744
 
745
    switch (field) {
746
    case ITEM_ID:
747
      return isSetItem_id();
748
    case WAREHOUSE_ID:
749
      return isSetWarehouseId();
750
    case EXCEPTION_PRICE:
751
      return isSetExceptionPrice();
752
    case IS_LISTED_ON_SNAPDEAL:
753
      return isSetIsListedOnSnapdeal();
9242 kshitij.so 754
    case TRANSFER_PRICE:
755
      return isSetTransferPrice();
756
    case SELLING_PRICE:
757
      return isSetSellingPrice();
758
    case COURIER_COST:
759
      return isSetCourierCost();
760
    case COMMISSION:
761
      return isSetCommission();
762
    case SERVICE_TAX:
763
      return isSetServiceTax();
764
    case SUPPRESS_PRICE_FEED:
765
      return isSetSuppressPriceFeed();
766
    case SUPPRESS_INVENTORY_FEED:
767
      return isSetSuppressInventoryFeed();
9404 vikram.rag 768
    case MAX_NLC:
769
      return isSetMaxNlc();
9456 vikram.rag 770
    case SKU_AT_SNAPDEAL:
771
      return isSetSkuAtSnapdeal();
8739 vikram.rag 772
    }
773
    throw new IllegalStateException();
774
  }
775
 
776
  @Override
777
  public boolean equals(Object that) {
778
    if (that == null)
779
      return false;
780
    if (that instanceof SnapdealItem)
781
      return this.equals((SnapdealItem)that);
782
    return false;
783
  }
784
 
785
  public boolean equals(SnapdealItem that) {
786
    if (that == null)
787
      return false;
788
 
789
    boolean this_present_item_id = true;
790
    boolean that_present_item_id = true;
791
    if (this_present_item_id || that_present_item_id) {
792
      if (!(this_present_item_id && that_present_item_id))
793
        return false;
794
      if (this.item_id != that.item_id)
795
        return false;
796
    }
797
 
798
    boolean this_present_warehouseId = true;
799
    boolean that_present_warehouseId = true;
800
    if (this_present_warehouseId || that_present_warehouseId) {
801
      if (!(this_present_warehouseId && that_present_warehouseId))
802
        return false;
803
      if (this.warehouseId != that.warehouseId)
804
        return false;
805
    }
806
 
807
    boolean this_present_exceptionPrice = true;
808
    boolean that_present_exceptionPrice = true;
809
    if (this_present_exceptionPrice || that_present_exceptionPrice) {
810
      if (!(this_present_exceptionPrice && that_present_exceptionPrice))
811
        return false;
812
      if (this.exceptionPrice != that.exceptionPrice)
813
        return false;
814
    }
815
 
816
    boolean this_present_isListedOnSnapdeal = true;
817
    boolean that_present_isListedOnSnapdeal = true;
818
    if (this_present_isListedOnSnapdeal || that_present_isListedOnSnapdeal) {
819
      if (!(this_present_isListedOnSnapdeal && that_present_isListedOnSnapdeal))
820
        return false;
821
      if (this.isListedOnSnapdeal != that.isListedOnSnapdeal)
822
        return false;
823
    }
824
 
9242 kshitij.so 825
    boolean this_present_transferPrice = true;
826
    boolean that_present_transferPrice = true;
827
    if (this_present_transferPrice || that_present_transferPrice) {
828
      if (!(this_present_transferPrice && that_present_transferPrice))
829
        return false;
830
      if (this.transferPrice != that.transferPrice)
831
        return false;
832
    }
833
 
834
    boolean this_present_sellingPrice = true;
835
    boolean that_present_sellingPrice = true;
836
    if (this_present_sellingPrice || that_present_sellingPrice) {
837
      if (!(this_present_sellingPrice && that_present_sellingPrice))
838
        return false;
839
      if (this.sellingPrice != that.sellingPrice)
840
        return false;
841
    }
842
 
843
    boolean this_present_courierCost = true;
844
    boolean that_present_courierCost = true;
845
    if (this_present_courierCost || that_present_courierCost) {
846
      if (!(this_present_courierCost && that_present_courierCost))
847
        return false;
848
      if (this.courierCost != that.courierCost)
849
        return false;
850
    }
851
 
852
    boolean this_present_commission = true;
853
    boolean that_present_commission = true;
854
    if (this_present_commission || that_present_commission) {
855
      if (!(this_present_commission && that_present_commission))
856
        return false;
857
      if (this.commission != that.commission)
858
        return false;
859
    }
860
 
861
    boolean this_present_serviceTax = true;
862
    boolean that_present_serviceTax = true;
863
    if (this_present_serviceTax || that_present_serviceTax) {
864
      if (!(this_present_serviceTax && that_present_serviceTax))
865
        return false;
866
      if (this.serviceTax != that.serviceTax)
867
        return false;
868
    }
869
 
870
    boolean this_present_suppressPriceFeed = true;
871
    boolean that_present_suppressPriceFeed = true;
872
    if (this_present_suppressPriceFeed || that_present_suppressPriceFeed) {
873
      if (!(this_present_suppressPriceFeed && that_present_suppressPriceFeed))
874
        return false;
875
      if (this.suppressPriceFeed != that.suppressPriceFeed)
876
        return false;
877
    }
878
 
879
    boolean this_present_suppressInventoryFeed = true;
880
    boolean that_present_suppressInventoryFeed = true;
881
    if (this_present_suppressInventoryFeed || that_present_suppressInventoryFeed) {
882
      if (!(this_present_suppressInventoryFeed && that_present_suppressInventoryFeed))
883
        return false;
884
      if (this.suppressInventoryFeed != that.suppressInventoryFeed)
885
        return false;
886
    }
887
 
9404 vikram.rag 888
    boolean this_present_maxNlc = true;
889
    boolean that_present_maxNlc = true;
890
    if (this_present_maxNlc || that_present_maxNlc) {
891
      if (!(this_present_maxNlc && that_present_maxNlc))
892
        return false;
893
      if (this.maxNlc != that.maxNlc)
894
        return false;
895
    }
896
 
9456 vikram.rag 897
    boolean this_present_skuAtSnapdeal = true && this.isSetSkuAtSnapdeal();
898
    boolean that_present_skuAtSnapdeal = true && that.isSetSkuAtSnapdeal();
899
    if (this_present_skuAtSnapdeal || that_present_skuAtSnapdeal) {
900
      if (!(this_present_skuAtSnapdeal && that_present_skuAtSnapdeal))
901
        return false;
902
      if (!this.skuAtSnapdeal.equals(that.skuAtSnapdeal))
903
        return false;
904
    }
905
 
8739 vikram.rag 906
    return true;
907
  }
908
 
909
  @Override
910
  public int hashCode() {
911
    return 0;
912
  }
913
 
914
  public int compareTo(SnapdealItem other) {
915
    if (!getClass().equals(other.getClass())) {
916
      return getClass().getName().compareTo(other.getClass().getName());
917
    }
918
 
919
    int lastComparison = 0;
920
    SnapdealItem typedOther = (SnapdealItem)other;
921
 
922
    lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
923
    if (lastComparison != 0) {
924
      return lastComparison;
925
    }
926
    if (isSetItem_id()) {
927
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
928
      if (lastComparison != 0) {
929
        return lastComparison;
930
      }
931
    }
932
    lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
933
    if (lastComparison != 0) {
934
      return lastComparison;
935
    }
936
    if (isSetWarehouseId()) {
937
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
938
      if (lastComparison != 0) {
939
        return lastComparison;
940
      }
941
    }
942
    lastComparison = Boolean.valueOf(isSetExceptionPrice()).compareTo(typedOther.isSetExceptionPrice());
943
    if (lastComparison != 0) {
944
      return lastComparison;
945
    }
946
    if (isSetExceptionPrice()) {
947
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exceptionPrice, typedOther.exceptionPrice);
948
      if (lastComparison != 0) {
949
        return lastComparison;
950
      }
951
    }
952
    lastComparison = Boolean.valueOf(isSetIsListedOnSnapdeal()).compareTo(typedOther.isSetIsListedOnSnapdeal());
953
    if (lastComparison != 0) {
954
      return lastComparison;
955
    }
956
    if (isSetIsListedOnSnapdeal()) {
957
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isListedOnSnapdeal, typedOther.isListedOnSnapdeal);
958
      if (lastComparison != 0) {
959
        return lastComparison;
960
      }
961
    }
9242 kshitij.so 962
    lastComparison = Boolean.valueOf(isSetTransferPrice()).compareTo(typedOther.isSetTransferPrice());
963
    if (lastComparison != 0) {
964
      return lastComparison;
965
    }
966
    if (isSetTransferPrice()) {
967
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferPrice, typedOther.transferPrice);
968
      if (lastComparison != 0) {
969
        return lastComparison;
970
      }
971
    }
972
    lastComparison = Boolean.valueOf(isSetSellingPrice()).compareTo(typedOther.isSetSellingPrice());
973
    if (lastComparison != 0) {
974
      return lastComparison;
975
    }
976
    if (isSetSellingPrice()) {
977
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sellingPrice, typedOther.sellingPrice);
978
      if (lastComparison != 0) {
979
        return lastComparison;
980
      }
981
    }
982
    lastComparison = Boolean.valueOf(isSetCourierCost()).compareTo(typedOther.isSetCourierCost());
983
    if (lastComparison != 0) {
984
      return lastComparison;
985
    }
986
    if (isSetCourierCost()) {
987
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.courierCost, typedOther.courierCost);
988
      if (lastComparison != 0) {
989
        return lastComparison;
990
      }
991
    }
992
    lastComparison = Boolean.valueOf(isSetCommission()).compareTo(typedOther.isSetCommission());
993
    if (lastComparison != 0) {
994
      return lastComparison;
995
    }
996
    if (isSetCommission()) {
997
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.commission, typedOther.commission);
998
      if (lastComparison != 0) {
999
        return lastComparison;
1000
      }
1001
    }
1002
    lastComparison = Boolean.valueOf(isSetServiceTax()).compareTo(typedOther.isSetServiceTax());
1003
    if (lastComparison != 0) {
1004
      return lastComparison;
1005
    }
1006
    if (isSetServiceTax()) {
1007
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceTax, typedOther.serviceTax);
1008
      if (lastComparison != 0) {
1009
        return lastComparison;
1010
      }
1011
    }
1012
    lastComparison = Boolean.valueOf(isSetSuppressPriceFeed()).compareTo(typedOther.isSetSuppressPriceFeed());
1013
    if (lastComparison != 0) {
1014
      return lastComparison;
1015
    }
1016
    if (isSetSuppressPriceFeed()) {
1017
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suppressPriceFeed, typedOther.suppressPriceFeed);
1018
      if (lastComparison != 0) {
1019
        return lastComparison;
1020
      }
1021
    }
1022
    lastComparison = Boolean.valueOf(isSetSuppressInventoryFeed()).compareTo(typedOther.isSetSuppressInventoryFeed());
1023
    if (lastComparison != 0) {
1024
      return lastComparison;
1025
    }
1026
    if (isSetSuppressInventoryFeed()) {
1027
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suppressInventoryFeed, typedOther.suppressInventoryFeed);
1028
      if (lastComparison != 0) {
1029
        return lastComparison;
1030
      }
1031
    }
9404 vikram.rag 1032
    lastComparison = Boolean.valueOf(isSetMaxNlc()).compareTo(typedOther.isSetMaxNlc());
1033
    if (lastComparison != 0) {
1034
      return lastComparison;
1035
    }
1036
    if (isSetMaxNlc()) {
1037
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxNlc, typedOther.maxNlc);
1038
      if (lastComparison != 0) {
1039
        return lastComparison;
1040
      }
1041
    }
9456 vikram.rag 1042
    lastComparison = Boolean.valueOf(isSetSkuAtSnapdeal()).compareTo(typedOther.isSetSkuAtSnapdeal());
1043
    if (lastComparison != 0) {
1044
      return lastComparison;
1045
    }
1046
    if (isSetSkuAtSnapdeal()) {
1047
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skuAtSnapdeal, typedOther.skuAtSnapdeal);
1048
      if (lastComparison != 0) {
1049
        return lastComparison;
1050
      }
1051
    }
8739 vikram.rag 1052
    return 0;
1053
  }
1054
 
1055
  public _Fields fieldForId(int fieldId) {
1056
    return _Fields.findByThriftId(fieldId);
1057
  }
1058
 
1059
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1060
    org.apache.thrift.protocol.TField field;
1061
    iprot.readStructBegin();
1062
    while (true)
1063
    {
1064
      field = iprot.readFieldBegin();
1065
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1066
        break;
1067
      }
1068
      switch (field.id) {
1069
        case 1: // ITEM_ID
1070
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1071
            this.item_id = iprot.readI64();
1072
            setItem_idIsSet(true);
1073
          } else { 
1074
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1075
          }
1076
          break;
1077
        case 2: // WAREHOUSE_ID
1078
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1079
            this.warehouseId = iprot.readI64();
1080
            setWarehouseIdIsSet(true);
1081
          } else { 
1082
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1083
          }
1084
          break;
1085
        case 3: // EXCEPTION_PRICE
1086
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1087
            this.exceptionPrice = iprot.readDouble();
1088
            setExceptionPriceIsSet(true);
1089
          } else { 
1090
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1091
          }
1092
          break;
1093
        case 4: // IS_LISTED_ON_SNAPDEAL
1094
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1095
            this.isListedOnSnapdeal = iprot.readBool();
1096
            setIsListedOnSnapdealIsSet(true);
1097
          } else { 
1098
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1099
          }
1100
          break;
9242 kshitij.so 1101
        case 5: // TRANSFER_PRICE
1102
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1103
            this.transferPrice = iprot.readDouble();
1104
            setTransferPriceIsSet(true);
1105
          } else { 
1106
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1107
          }
1108
          break;
1109
        case 6: // SELLING_PRICE
1110
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1111
            this.sellingPrice = iprot.readDouble();
1112
            setSellingPriceIsSet(true);
1113
          } else { 
1114
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1115
          }
1116
          break;
1117
        case 7: // COURIER_COST
1118
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1119
            this.courierCost = iprot.readDouble();
1120
            setCourierCostIsSet(true);
1121
          } else { 
1122
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1123
          }
1124
          break;
1125
        case 8: // COMMISSION
1126
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1127
            this.commission = iprot.readDouble();
1128
            setCommissionIsSet(true);
1129
          } else { 
1130
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1131
          }
1132
          break;
1133
        case 9: // SERVICE_TAX
1134
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1135
            this.serviceTax = iprot.readDouble();
1136
            setServiceTaxIsSet(true);
1137
          } else { 
1138
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139
          }
1140
          break;
1141
        case 10: // SUPPRESS_PRICE_FEED
1142
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1143
            this.suppressPriceFeed = iprot.readBool();
1144
            setSuppressPriceFeedIsSet(true);
1145
          } else { 
1146
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1147
          }
1148
          break;
1149
        case 11: // SUPPRESS_INVENTORY_FEED
1150
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1151
            this.suppressInventoryFeed = iprot.readBool();
1152
            setSuppressInventoryFeedIsSet(true);
1153
          } else { 
1154
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1155
          }
1156
          break;
9404 vikram.rag 1157
        case 12: // MAX_NLC
1158
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1159
            this.maxNlc = iprot.readDouble();
1160
            setMaxNlcIsSet(true);
1161
          } else { 
1162
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1163
          }
1164
          break;
9456 vikram.rag 1165
        case 13: // SKU_AT_SNAPDEAL
1166
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1167
            this.skuAtSnapdeal = iprot.readString();
1168
          } else { 
1169
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1170
          }
1171
          break;
8739 vikram.rag 1172
        default:
1173
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1174
      }
1175
      iprot.readFieldEnd();
1176
    }
1177
    iprot.readStructEnd();
1178
    validate();
1179
  }
1180
 
1181
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1182
    validate();
1183
 
1184
    oprot.writeStructBegin(STRUCT_DESC);
1185
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
1186
    oprot.writeI64(this.item_id);
1187
    oprot.writeFieldEnd();
1188
    oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
1189
    oprot.writeI64(this.warehouseId);
1190
    oprot.writeFieldEnd();
1191
    oprot.writeFieldBegin(EXCEPTION_PRICE_FIELD_DESC);
1192
    oprot.writeDouble(this.exceptionPrice);
1193
    oprot.writeFieldEnd();
1194
    oprot.writeFieldBegin(IS_LISTED_ON_SNAPDEAL_FIELD_DESC);
1195
    oprot.writeBool(this.isListedOnSnapdeal);
1196
    oprot.writeFieldEnd();
9242 kshitij.so 1197
    oprot.writeFieldBegin(TRANSFER_PRICE_FIELD_DESC);
1198
    oprot.writeDouble(this.transferPrice);
1199
    oprot.writeFieldEnd();
1200
    oprot.writeFieldBegin(SELLING_PRICE_FIELD_DESC);
1201
    oprot.writeDouble(this.sellingPrice);
1202
    oprot.writeFieldEnd();
1203
    oprot.writeFieldBegin(COURIER_COST_FIELD_DESC);
1204
    oprot.writeDouble(this.courierCost);
1205
    oprot.writeFieldEnd();
1206
    oprot.writeFieldBegin(COMMISSION_FIELD_DESC);
1207
    oprot.writeDouble(this.commission);
1208
    oprot.writeFieldEnd();
1209
    oprot.writeFieldBegin(SERVICE_TAX_FIELD_DESC);
1210
    oprot.writeDouble(this.serviceTax);
1211
    oprot.writeFieldEnd();
1212
    oprot.writeFieldBegin(SUPPRESS_PRICE_FEED_FIELD_DESC);
1213
    oprot.writeBool(this.suppressPriceFeed);
1214
    oprot.writeFieldEnd();
1215
    oprot.writeFieldBegin(SUPPRESS_INVENTORY_FEED_FIELD_DESC);
1216
    oprot.writeBool(this.suppressInventoryFeed);
1217
    oprot.writeFieldEnd();
9404 vikram.rag 1218
    oprot.writeFieldBegin(MAX_NLC_FIELD_DESC);
1219
    oprot.writeDouble(this.maxNlc);
1220
    oprot.writeFieldEnd();
9456 vikram.rag 1221
    if (this.skuAtSnapdeal != null) {
1222
      oprot.writeFieldBegin(SKU_AT_SNAPDEAL_FIELD_DESC);
1223
      oprot.writeString(this.skuAtSnapdeal);
1224
      oprot.writeFieldEnd();
1225
    }
8739 vikram.rag 1226
    oprot.writeFieldStop();
1227
    oprot.writeStructEnd();
1228
  }
1229
 
1230
  @Override
1231
  public String toString() {
1232
    StringBuilder sb = new StringBuilder("SnapdealItem(");
1233
    boolean first = true;
1234
 
1235
    sb.append("item_id:");
1236
    sb.append(this.item_id);
1237
    first = false;
1238
    if (!first) sb.append(", ");
1239
    sb.append("warehouseId:");
1240
    sb.append(this.warehouseId);
1241
    first = false;
1242
    if (!first) sb.append(", ");
1243
    sb.append("exceptionPrice:");
1244
    sb.append(this.exceptionPrice);
1245
    first = false;
1246
    if (!first) sb.append(", ");
1247
    sb.append("isListedOnSnapdeal:");
1248
    sb.append(this.isListedOnSnapdeal);
1249
    first = false;
9242 kshitij.so 1250
    if (!first) sb.append(", ");
1251
    sb.append("transferPrice:");
1252
    sb.append(this.transferPrice);
1253
    first = false;
1254
    if (!first) sb.append(", ");
1255
    sb.append("sellingPrice:");
1256
    sb.append(this.sellingPrice);
1257
    first = false;
1258
    if (!first) sb.append(", ");
1259
    sb.append("courierCost:");
1260
    sb.append(this.courierCost);
1261
    first = false;
1262
    if (!first) sb.append(", ");
1263
    sb.append("commission:");
1264
    sb.append(this.commission);
1265
    first = false;
1266
    if (!first) sb.append(", ");
1267
    sb.append("serviceTax:");
1268
    sb.append(this.serviceTax);
1269
    first = false;
1270
    if (!first) sb.append(", ");
1271
    sb.append("suppressPriceFeed:");
1272
    sb.append(this.suppressPriceFeed);
1273
    first = false;
1274
    if (!first) sb.append(", ");
1275
    sb.append("suppressInventoryFeed:");
1276
    sb.append(this.suppressInventoryFeed);
1277
    first = false;
9404 vikram.rag 1278
    if (!first) sb.append(", ");
1279
    sb.append("maxNlc:");
1280
    sb.append(this.maxNlc);
1281
    first = false;
9456 vikram.rag 1282
    if (!first) sb.append(", ");
1283
    sb.append("skuAtSnapdeal:");
1284
    if (this.skuAtSnapdeal == null) {
1285
      sb.append("null");
1286
    } else {
1287
      sb.append(this.skuAtSnapdeal);
1288
    }
1289
    first = false;
8739 vikram.rag 1290
    sb.append(")");
1291
    return sb.toString();
1292
  }
1293
 
1294
  public void validate() throws org.apache.thrift.TException {
1295
    // check for required fields
1296
  }
1297
 
1298
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1299
    try {
1300
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1301
    } catch (org.apache.thrift.TException te) {
1302
      throw new java.io.IOException(te);
1303
    }
1304
  }
1305
 
1306
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1307
    try {
1308
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1309
      __isset_bit_vector = new BitSet(1);
1310
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1311
    } catch (org.apache.thrift.TException te) {
1312
      throw new java.io.IOException(te);
1313
    }
1314
  }
1315
 
1316
}
1317