Subversion Repositories SmartDukaan

Rev

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

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