Subversion Repositories SmartDukaan

Rev

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