Subversion Repositories SmartDukaan

Rev

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

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