Subversion Repositories SmartDukaan

Rev

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