Subversion Repositories SmartDukaan

Rev

Rev 9456 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
9242 kshitij.so 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 SnapdealItemDetails implements org.apache.thrift.TBase<SnapdealItemDetails, SnapdealItemDetails._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SnapdealItemDetails");
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);
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 BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)10);
36
  private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("model_name", org.apache.thrift.protocol.TType.STRING, (short)11);
37
  private static final org.apache.thrift.protocol.TField MODEL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("model_number", org.apache.thrift.protocol.TType.STRING, (short)12);
38
  private static final org.apache.thrift.protocol.TField COLOR_FIELD_DESC = new org.apache.thrift.protocol.TField("color", org.apache.thrift.protocol.TType.STRING, (short)13);
39
  private static final org.apache.thrift.protocol.TField RISKY_FIELD_DESC = new org.apache.thrift.protocol.TField("risky", org.apache.thrift.protocol.TType.BOOL, (short)14);
40
  private static final org.apache.thrift.protocol.TField ITEM_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemStatus", org.apache.thrift.protocol.TType.I32, (short)15);
41
  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)16);
42
  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)17);
43
  private static final org.apache.thrift.protocol.TField WEIGHT_FIELD_DESC = new org.apache.thrift.protocol.TField("weight", org.apache.thrift.protocol.TType.DOUBLE, (short)18);
44
  private static final org.apache.thrift.protocol.TField MRP_FIELD_DESC = new org.apache.thrift.protocol.TField("mrp", org.apache.thrift.protocol.TType.DOUBLE, (short)19);
45
  private static final org.apache.thrift.protocol.TField WEBSITE_SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("websiteSellingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)20);
46
 
47
  private long item_id; // required
48
  private long warehouseId; // required
49
  private double exceptionPrice; // required
50
  private boolean isListedOnSnapdeal; // required
51
  private double transferPrice; // required
52
  private double sellingPrice; // required
53
  private double courierCost; // required
54
  private double commission; // required
55
  private double serviceTax; // required
56
  private String brand; // required
57
  private String model_name; // required
58
  private String model_number; // required
59
  private String color; // required
60
  private boolean risky; // required
61
  private status itemStatus; // required
62
  private boolean suppressPriceFeed; // required
63
  private boolean suppressInventoryFeed; // required
64
  private double weight; // required
65
  private double mrp; // required
66
  private double websiteSellingPrice; // required
67
 
68
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
69
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
70
    ITEM_ID((short)1, "item_id"),
71
    WAREHOUSE_ID((short)2, "warehouseId"),
72
    EXCEPTION_PRICE((short)3, "exceptionPrice"),
73
    IS_LISTED_ON_SNAPDEAL((short)4, "isListedOnSnapdeal"),
74
    TRANSFER_PRICE((short)5, "transferPrice"),
75
    SELLING_PRICE((short)6, "sellingPrice"),
76
    COURIER_COST((short)7, "courierCost"),
77
    COMMISSION((short)8, "commission"),
78
    SERVICE_TAX((short)9, "serviceTax"),
79
    BRAND((short)10, "brand"),
80
    MODEL_NAME((short)11, "model_name"),
81
    MODEL_NUMBER((short)12, "model_number"),
82
    COLOR((short)13, "color"),
83
    RISKY((short)14, "risky"),
84
    /**
85
     * 
86
     * @see status
87
     */
88
    ITEM_STATUS((short)15, "itemStatus"),
89
    SUPPRESS_PRICE_FEED((short)16, "suppressPriceFeed"),
90
    SUPPRESS_INVENTORY_FEED((short)17, "suppressInventoryFeed"),
91
    WEIGHT((short)18, "weight"),
92
    MRP((short)19, "mrp"),
93
    WEBSITE_SELLING_PRICE((short)20, "websiteSellingPrice");
94
 
95
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
96
 
97
    static {
98
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
99
        byName.put(field.getFieldName(), field);
100
      }
101
    }
102
 
103
    /**
104
     * Find the _Fields constant that matches fieldId, or null if its not found.
105
     */
106
    public static _Fields findByThriftId(int fieldId) {
107
      switch(fieldId) {
108
        case 1: // ITEM_ID
109
          return ITEM_ID;
110
        case 2: // WAREHOUSE_ID
111
          return WAREHOUSE_ID;
112
        case 3: // EXCEPTION_PRICE
113
          return EXCEPTION_PRICE;
114
        case 4: // IS_LISTED_ON_SNAPDEAL
115
          return IS_LISTED_ON_SNAPDEAL;
116
        case 5: // TRANSFER_PRICE
117
          return TRANSFER_PRICE;
118
        case 6: // SELLING_PRICE
119
          return SELLING_PRICE;
120
        case 7: // COURIER_COST
121
          return COURIER_COST;
122
        case 8: // COMMISSION
123
          return COMMISSION;
124
        case 9: // SERVICE_TAX
125
          return SERVICE_TAX;
126
        case 10: // BRAND
127
          return BRAND;
128
        case 11: // MODEL_NAME
129
          return MODEL_NAME;
130
        case 12: // MODEL_NUMBER
131
          return MODEL_NUMBER;
132
        case 13: // COLOR
133
          return COLOR;
134
        case 14: // RISKY
135
          return RISKY;
136
        case 15: // ITEM_STATUS
137
          return ITEM_STATUS;
138
        case 16: // SUPPRESS_PRICE_FEED
139
          return SUPPRESS_PRICE_FEED;
140
        case 17: // SUPPRESS_INVENTORY_FEED
141
          return SUPPRESS_INVENTORY_FEED;
142
        case 18: // WEIGHT
143
          return WEIGHT;
144
        case 19: // MRP
145
          return MRP;
146
        case 20: // WEBSITE_SELLING_PRICE
147
          return WEBSITE_SELLING_PRICE;
148
        default:
149
          return null;
150
      }
151
    }
152
 
153
    /**
154
     * Find the _Fields constant that matches fieldId, throwing an exception
155
     * if it is not found.
156
     */
157
    public static _Fields findByThriftIdOrThrow(int fieldId) {
158
      _Fields fields = findByThriftId(fieldId);
159
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
160
      return fields;
161
    }
162
 
163
    /**
164
     * Find the _Fields constant that matches name, or null if its not found.
165
     */
166
    public static _Fields findByName(String name) {
167
      return byName.get(name);
168
    }
169
 
170
    private final short _thriftId;
171
    private final String _fieldName;
172
 
173
    _Fields(short thriftId, String fieldName) {
174
      _thriftId = thriftId;
175
      _fieldName = fieldName;
176
    }
177
 
178
    public short getThriftFieldId() {
179
      return _thriftId;
180
    }
181
 
182
    public String getFieldName() {
183
      return _fieldName;
184
    }
185
  }
186
 
187
  // isset id assignments
188
  private static final int __ITEM_ID_ISSET_ID = 0;
189
  private static final int __WAREHOUSEID_ISSET_ID = 1;
190
  private static final int __EXCEPTIONPRICE_ISSET_ID = 2;
191
  private static final int __ISLISTEDONSNAPDEAL_ISSET_ID = 3;
192
  private static final int __TRANSFERPRICE_ISSET_ID = 4;
193
  private static final int __SELLINGPRICE_ISSET_ID = 5;
194
  private static final int __COURIERCOST_ISSET_ID = 6;
195
  private static final int __COMMISSION_ISSET_ID = 7;
196
  private static final int __SERVICETAX_ISSET_ID = 8;
197
  private static final int __RISKY_ISSET_ID = 9;
198
  private static final int __SUPPRESSPRICEFEED_ISSET_ID = 10;
199
  private static final int __SUPPRESSINVENTORYFEED_ISSET_ID = 11;
200
  private static final int __WEIGHT_ISSET_ID = 12;
201
  private static final int __MRP_ISSET_ID = 13;
202
  private static final int __WEBSITESELLINGPRICE_ISSET_ID = 14;
203
  private BitSet __isset_bit_vector = new BitSet(15);
204
 
205
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
206
  static {
207
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
208
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
209
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
210
    tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
211
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
212
    tmpMap.put(_Fields.EXCEPTION_PRICE, new org.apache.thrift.meta_data.FieldMetaData("exceptionPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
213
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
214
    tmpMap.put(_Fields.IS_LISTED_ON_SNAPDEAL, new org.apache.thrift.meta_data.FieldMetaData("isListedOnSnapdeal", org.apache.thrift.TFieldRequirementType.DEFAULT, 
215
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
216
    tmpMap.put(_Fields.TRANSFER_PRICE, new org.apache.thrift.meta_data.FieldMetaData("transferPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
217
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
218
    tmpMap.put(_Fields.SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("sellingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
219
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
220
    tmpMap.put(_Fields.COURIER_COST, new org.apache.thrift.meta_data.FieldMetaData("courierCost", org.apache.thrift.TFieldRequirementType.DEFAULT, 
221
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
222
    tmpMap.put(_Fields.COMMISSION, new org.apache.thrift.meta_data.FieldMetaData("commission", org.apache.thrift.TFieldRequirementType.DEFAULT, 
223
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
224
    tmpMap.put(_Fields.SERVICE_TAX, new org.apache.thrift.meta_data.FieldMetaData("serviceTax", org.apache.thrift.TFieldRequirementType.DEFAULT, 
225
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
226
    tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
227
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
228
    tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("model_name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
229
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
230
    tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("model_number", org.apache.thrift.TFieldRequirementType.DEFAULT, 
231
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
232
    tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT, 
233
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
234
    tmpMap.put(_Fields.RISKY, new org.apache.thrift.meta_data.FieldMetaData("risky", org.apache.thrift.TFieldRequirementType.DEFAULT, 
235
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
236
    tmpMap.put(_Fields.ITEM_STATUS, new org.apache.thrift.meta_data.FieldMetaData("itemStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
237
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, status.class)));
238
    tmpMap.put(_Fields.SUPPRESS_PRICE_FEED, new org.apache.thrift.meta_data.FieldMetaData("suppressPriceFeed", org.apache.thrift.TFieldRequirementType.DEFAULT, 
239
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
240
    tmpMap.put(_Fields.SUPPRESS_INVENTORY_FEED, new org.apache.thrift.meta_data.FieldMetaData("suppressInventoryFeed", org.apache.thrift.TFieldRequirementType.DEFAULT, 
241
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
242
    tmpMap.put(_Fields.WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("weight", org.apache.thrift.TFieldRequirementType.DEFAULT, 
243
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
244
    tmpMap.put(_Fields.MRP, new org.apache.thrift.meta_data.FieldMetaData("mrp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
245
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
246
    tmpMap.put(_Fields.WEBSITE_SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("websiteSellingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
247
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
248
    metaDataMap = Collections.unmodifiableMap(tmpMap);
249
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SnapdealItemDetails.class, metaDataMap);
250
  }
251
 
252
  public SnapdealItemDetails() {
253
  }
254
 
255
  public SnapdealItemDetails(
256
    long item_id,
257
    long warehouseId,
258
    double exceptionPrice,
259
    boolean isListedOnSnapdeal,
260
    double transferPrice,
261
    double sellingPrice,
262
    double courierCost,
263
    double commission,
264
    double serviceTax,
265
    String brand,
266
    String model_name,
267
    String model_number,
268
    String color,
269
    boolean risky,
270
    status itemStatus,
271
    boolean suppressPriceFeed,
272
    boolean suppressInventoryFeed,
273
    double weight,
274
    double mrp,
275
    double websiteSellingPrice)
276
  {
277
    this();
278
    this.item_id = item_id;
279
    setItem_idIsSet(true);
280
    this.warehouseId = warehouseId;
281
    setWarehouseIdIsSet(true);
282
    this.exceptionPrice = exceptionPrice;
283
    setExceptionPriceIsSet(true);
284
    this.isListedOnSnapdeal = isListedOnSnapdeal;
285
    setIsListedOnSnapdealIsSet(true);
286
    this.transferPrice = transferPrice;
287
    setTransferPriceIsSet(true);
288
    this.sellingPrice = sellingPrice;
289
    setSellingPriceIsSet(true);
290
    this.courierCost = courierCost;
291
    setCourierCostIsSet(true);
292
    this.commission = commission;
293
    setCommissionIsSet(true);
294
    this.serviceTax = serviceTax;
295
    setServiceTaxIsSet(true);
296
    this.brand = brand;
297
    this.model_name = model_name;
298
    this.model_number = model_number;
299
    this.color = color;
300
    this.risky = risky;
301
    setRiskyIsSet(true);
302
    this.itemStatus = itemStatus;
303
    this.suppressPriceFeed = suppressPriceFeed;
304
    setSuppressPriceFeedIsSet(true);
305
    this.suppressInventoryFeed = suppressInventoryFeed;
306
    setSuppressInventoryFeedIsSet(true);
307
    this.weight = weight;
308
    setWeightIsSet(true);
309
    this.mrp = mrp;
310
    setMrpIsSet(true);
311
    this.websiteSellingPrice = websiteSellingPrice;
312
    setWebsiteSellingPriceIsSet(true);
313
  }
314
 
315
  /**
316
   * Performs a deep copy on <i>other</i>.
317
   */
318
  public SnapdealItemDetails(SnapdealItemDetails other) {
319
    __isset_bit_vector.clear();
320
    __isset_bit_vector.or(other.__isset_bit_vector);
321
    this.item_id = other.item_id;
322
    this.warehouseId = other.warehouseId;
323
    this.exceptionPrice = other.exceptionPrice;
324
    this.isListedOnSnapdeal = other.isListedOnSnapdeal;
325
    this.transferPrice = other.transferPrice;
326
    this.sellingPrice = other.sellingPrice;
327
    this.courierCost = other.courierCost;
328
    this.commission = other.commission;
329
    this.serviceTax = other.serviceTax;
330
    if (other.isSetBrand()) {
331
      this.brand = other.brand;
332
    }
333
    if (other.isSetModel_name()) {
334
      this.model_name = other.model_name;
335
    }
336
    if (other.isSetModel_number()) {
337
      this.model_number = other.model_number;
338
    }
339
    if (other.isSetColor()) {
340
      this.color = other.color;
341
    }
342
    this.risky = other.risky;
343
    if (other.isSetItemStatus()) {
344
      this.itemStatus = other.itemStatus;
345
    }
346
    this.suppressPriceFeed = other.suppressPriceFeed;
347
    this.suppressInventoryFeed = other.suppressInventoryFeed;
348
    this.weight = other.weight;
349
    this.mrp = other.mrp;
350
    this.websiteSellingPrice = other.websiteSellingPrice;
351
  }
352
 
353
  public SnapdealItemDetails deepCopy() {
354
    return new SnapdealItemDetails(this);
355
  }
356
 
357
  @Override
358
  public void clear() {
359
    setItem_idIsSet(false);
360
    this.item_id = 0;
361
    setWarehouseIdIsSet(false);
362
    this.warehouseId = 0;
363
    setExceptionPriceIsSet(false);
364
    this.exceptionPrice = 0.0;
365
    setIsListedOnSnapdealIsSet(false);
366
    this.isListedOnSnapdeal = false;
367
    setTransferPriceIsSet(false);
368
    this.transferPrice = 0.0;
369
    setSellingPriceIsSet(false);
370
    this.sellingPrice = 0.0;
371
    setCourierCostIsSet(false);
372
    this.courierCost = 0.0;
373
    setCommissionIsSet(false);
374
    this.commission = 0.0;
375
    setServiceTaxIsSet(false);
376
    this.serviceTax = 0.0;
377
    this.brand = null;
378
    this.model_name = null;
379
    this.model_number = null;
380
    this.color = null;
381
    setRiskyIsSet(false);
382
    this.risky = false;
383
    this.itemStatus = null;
384
    setSuppressPriceFeedIsSet(false);
385
    this.suppressPriceFeed = false;
386
    setSuppressInventoryFeedIsSet(false);
387
    this.suppressInventoryFeed = false;
388
    setWeightIsSet(false);
389
    this.weight = 0.0;
390
    setMrpIsSet(false);
391
    this.mrp = 0.0;
392
    setWebsiteSellingPriceIsSet(false);
393
    this.websiteSellingPrice = 0.0;
394
  }
395
 
396
  public long getItem_id() {
397
    return this.item_id;
398
  }
399
 
400
  public void setItem_id(long item_id) {
401
    this.item_id = item_id;
402
    setItem_idIsSet(true);
403
  }
404
 
405
  public void unsetItem_id() {
406
    __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
407
  }
408
 
409
  /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
410
  public boolean isSetItem_id() {
411
    return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
412
  }
413
 
414
  public void setItem_idIsSet(boolean value) {
415
    __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
416
  }
417
 
418
  public long getWarehouseId() {
419
    return this.warehouseId;
420
  }
421
 
422
  public void setWarehouseId(long warehouseId) {
423
    this.warehouseId = warehouseId;
424
    setWarehouseIdIsSet(true);
425
  }
426
 
427
  public void unsetWarehouseId() {
428
    __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
429
  }
430
 
431
  /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
432
  public boolean isSetWarehouseId() {
433
    return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
434
  }
435
 
436
  public void setWarehouseIdIsSet(boolean value) {
437
    __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
438
  }
439
 
440
  public double getExceptionPrice() {
441
    return this.exceptionPrice;
442
  }
443
 
444
  public void setExceptionPrice(double exceptionPrice) {
445
    this.exceptionPrice = exceptionPrice;
446
    setExceptionPriceIsSet(true);
447
  }
448
 
449
  public void unsetExceptionPrice() {
450
    __isset_bit_vector.clear(__EXCEPTIONPRICE_ISSET_ID);
451
  }
452
 
453
  /** Returns true if field exceptionPrice is set (has been assigned a value) and false otherwise */
454
  public boolean isSetExceptionPrice() {
455
    return __isset_bit_vector.get(__EXCEPTIONPRICE_ISSET_ID);
456
  }
457
 
458
  public void setExceptionPriceIsSet(boolean value) {
459
    __isset_bit_vector.set(__EXCEPTIONPRICE_ISSET_ID, value);
460
  }
461
 
462
  public boolean isIsListedOnSnapdeal() {
463
    return this.isListedOnSnapdeal;
464
  }
465
 
466
  public void setIsListedOnSnapdeal(boolean isListedOnSnapdeal) {
467
    this.isListedOnSnapdeal = isListedOnSnapdeal;
468
    setIsListedOnSnapdealIsSet(true);
469
  }
470
 
471
  public void unsetIsListedOnSnapdeal() {
472
    __isset_bit_vector.clear(__ISLISTEDONSNAPDEAL_ISSET_ID);
473
  }
474
 
475
  /** Returns true if field isListedOnSnapdeal is set (has been assigned a value) and false otherwise */
476
  public boolean isSetIsListedOnSnapdeal() {
477
    return __isset_bit_vector.get(__ISLISTEDONSNAPDEAL_ISSET_ID);
478
  }
479
 
480
  public void setIsListedOnSnapdealIsSet(boolean value) {
481
    __isset_bit_vector.set(__ISLISTEDONSNAPDEAL_ISSET_ID, value);
482
  }
483
 
484
  public double getTransferPrice() {
485
    return this.transferPrice;
486
  }
487
 
488
  public void setTransferPrice(double transferPrice) {
489
    this.transferPrice = transferPrice;
490
    setTransferPriceIsSet(true);
491
  }
492
 
493
  public void unsetTransferPrice() {
494
    __isset_bit_vector.clear(__TRANSFERPRICE_ISSET_ID);
495
  }
496
 
497
  /** Returns true if field transferPrice is set (has been assigned a value) and false otherwise */
498
  public boolean isSetTransferPrice() {
499
    return __isset_bit_vector.get(__TRANSFERPRICE_ISSET_ID);
500
  }
501
 
502
  public void setTransferPriceIsSet(boolean value) {
503
    __isset_bit_vector.set(__TRANSFERPRICE_ISSET_ID, value);
504
  }
505
 
506
  public double getSellingPrice() {
507
    return this.sellingPrice;
508
  }
509
 
510
  public void setSellingPrice(double sellingPrice) {
511
    this.sellingPrice = sellingPrice;
512
    setSellingPriceIsSet(true);
513
  }
514
 
515
  public void unsetSellingPrice() {
516
    __isset_bit_vector.clear(__SELLINGPRICE_ISSET_ID);
517
  }
518
 
519
  /** Returns true if field sellingPrice is set (has been assigned a value) and false otherwise */
520
  public boolean isSetSellingPrice() {
521
    return __isset_bit_vector.get(__SELLINGPRICE_ISSET_ID);
522
  }
523
 
524
  public void setSellingPriceIsSet(boolean value) {
525
    __isset_bit_vector.set(__SELLINGPRICE_ISSET_ID, value);
526
  }
527
 
528
  public double getCourierCost() {
529
    return this.courierCost;
530
  }
531
 
532
  public void setCourierCost(double courierCost) {
533
    this.courierCost = courierCost;
534
    setCourierCostIsSet(true);
535
  }
536
 
537
  public void unsetCourierCost() {
538
    __isset_bit_vector.clear(__COURIERCOST_ISSET_ID);
539
  }
540
 
541
  /** Returns true if field courierCost is set (has been assigned a value) and false otherwise */
542
  public boolean isSetCourierCost() {
543
    return __isset_bit_vector.get(__COURIERCOST_ISSET_ID);
544
  }
545
 
546
  public void setCourierCostIsSet(boolean value) {
547
    __isset_bit_vector.set(__COURIERCOST_ISSET_ID, value);
548
  }
549
 
550
  public double getCommission() {
551
    return this.commission;
552
  }
553
 
554
  public void setCommission(double commission) {
555
    this.commission = commission;
556
    setCommissionIsSet(true);
557
  }
558
 
559
  public void unsetCommission() {
560
    __isset_bit_vector.clear(__COMMISSION_ISSET_ID);
561
  }
562
 
563
  /** Returns true if field commission is set (has been assigned a value) and false otherwise */
564
  public boolean isSetCommission() {
565
    return __isset_bit_vector.get(__COMMISSION_ISSET_ID);
566
  }
567
 
568
  public void setCommissionIsSet(boolean value) {
569
    __isset_bit_vector.set(__COMMISSION_ISSET_ID, value);
570
  }
571
 
572
  public double getServiceTax() {
573
    return this.serviceTax;
574
  }
575
 
576
  public void setServiceTax(double serviceTax) {
577
    this.serviceTax = serviceTax;
578
    setServiceTaxIsSet(true);
579
  }
580
 
581
  public void unsetServiceTax() {
582
    __isset_bit_vector.clear(__SERVICETAX_ISSET_ID);
583
  }
584
 
585
  /** Returns true if field serviceTax is set (has been assigned a value) and false otherwise */
586
  public boolean isSetServiceTax() {
587
    return __isset_bit_vector.get(__SERVICETAX_ISSET_ID);
588
  }
589
 
590
  public void setServiceTaxIsSet(boolean value) {
591
    __isset_bit_vector.set(__SERVICETAX_ISSET_ID, value);
592
  }
593
 
594
  public String getBrand() {
595
    return this.brand;
596
  }
597
 
598
  public void setBrand(String brand) {
599
    this.brand = brand;
600
  }
601
 
602
  public void unsetBrand() {
603
    this.brand = null;
604
  }
605
 
606
  /** Returns true if field brand is set (has been assigned a value) and false otherwise */
607
  public boolean isSetBrand() {
608
    return this.brand != null;
609
  }
610
 
611
  public void setBrandIsSet(boolean value) {
612
    if (!value) {
613
      this.brand = null;
614
    }
615
  }
616
 
617
  public String getModel_name() {
618
    return this.model_name;
619
  }
620
 
621
  public void setModel_name(String model_name) {
622
    this.model_name = model_name;
623
  }
624
 
625
  public void unsetModel_name() {
626
    this.model_name = null;
627
  }
628
 
629
  /** Returns true if field model_name is set (has been assigned a value) and false otherwise */
630
  public boolean isSetModel_name() {
631
    return this.model_name != null;
632
  }
633
 
634
  public void setModel_nameIsSet(boolean value) {
635
    if (!value) {
636
      this.model_name = null;
637
    }
638
  }
639
 
640
  public String getModel_number() {
641
    return this.model_number;
642
  }
643
 
644
  public void setModel_number(String model_number) {
645
    this.model_number = model_number;
646
  }
647
 
648
  public void unsetModel_number() {
649
    this.model_number = null;
650
  }
651
 
652
  /** Returns true if field model_number is set (has been assigned a value) and false otherwise */
653
  public boolean isSetModel_number() {
654
    return this.model_number != null;
655
  }
656
 
657
  public void setModel_numberIsSet(boolean value) {
658
    if (!value) {
659
      this.model_number = null;
660
    }
661
  }
662
 
663
  public String getColor() {
664
    return this.color;
665
  }
666
 
667
  public void setColor(String color) {
668
    this.color = color;
669
  }
670
 
671
  public void unsetColor() {
672
    this.color = null;
673
  }
674
 
675
  /** Returns true if field color is set (has been assigned a value) and false otherwise */
676
  public boolean isSetColor() {
677
    return this.color != null;
678
  }
679
 
680
  public void setColorIsSet(boolean value) {
681
    if (!value) {
682
      this.color = null;
683
    }
684
  }
685
 
686
  public boolean isRisky() {
687
    return this.risky;
688
  }
689
 
690
  public void setRisky(boolean risky) {
691
    this.risky = risky;
692
    setRiskyIsSet(true);
693
  }
694
 
695
  public void unsetRisky() {
696
    __isset_bit_vector.clear(__RISKY_ISSET_ID);
697
  }
698
 
699
  /** Returns true if field risky is set (has been assigned a value) and false otherwise */
700
  public boolean isSetRisky() {
701
    return __isset_bit_vector.get(__RISKY_ISSET_ID);
702
  }
703
 
704
  public void setRiskyIsSet(boolean value) {
705
    __isset_bit_vector.set(__RISKY_ISSET_ID, value);
706
  }
707
 
708
  /**
709
   * 
710
   * @see status
711
   */
712
  public status getItemStatus() {
713
    return this.itemStatus;
714
  }
715
 
716
  /**
717
   * 
718
   * @see status
719
   */
720
  public void setItemStatus(status itemStatus) {
721
    this.itemStatus = itemStatus;
722
  }
723
 
724
  public void unsetItemStatus() {
725
    this.itemStatus = null;
726
  }
727
 
728
  /** Returns true if field itemStatus is set (has been assigned a value) and false otherwise */
729
  public boolean isSetItemStatus() {
730
    return this.itemStatus != null;
731
  }
732
 
733
  public void setItemStatusIsSet(boolean value) {
734
    if (!value) {
735
      this.itemStatus = null;
736
    }
737
  }
738
 
739
  public boolean isSuppressPriceFeed() {
740
    return this.suppressPriceFeed;
741
  }
742
 
743
  public void setSuppressPriceFeed(boolean suppressPriceFeed) {
744
    this.suppressPriceFeed = suppressPriceFeed;
745
    setSuppressPriceFeedIsSet(true);
746
  }
747
 
748
  public void unsetSuppressPriceFeed() {
749
    __isset_bit_vector.clear(__SUPPRESSPRICEFEED_ISSET_ID);
750
  }
751
 
752
  /** Returns true if field suppressPriceFeed is set (has been assigned a value) and false otherwise */
753
  public boolean isSetSuppressPriceFeed() {
754
    return __isset_bit_vector.get(__SUPPRESSPRICEFEED_ISSET_ID);
755
  }
756
 
757
  public void setSuppressPriceFeedIsSet(boolean value) {
758
    __isset_bit_vector.set(__SUPPRESSPRICEFEED_ISSET_ID, value);
759
  }
760
 
761
  public boolean isSuppressInventoryFeed() {
762
    return this.suppressInventoryFeed;
763
  }
764
 
765
  public void setSuppressInventoryFeed(boolean suppressInventoryFeed) {
766
    this.suppressInventoryFeed = suppressInventoryFeed;
767
    setSuppressInventoryFeedIsSet(true);
768
  }
769
 
770
  public void unsetSuppressInventoryFeed() {
771
    __isset_bit_vector.clear(__SUPPRESSINVENTORYFEED_ISSET_ID);
772
  }
773
 
774
  /** Returns true if field suppressInventoryFeed is set (has been assigned a value) and false otherwise */
775
  public boolean isSetSuppressInventoryFeed() {
776
    return __isset_bit_vector.get(__SUPPRESSINVENTORYFEED_ISSET_ID);
777
  }
778
 
779
  public void setSuppressInventoryFeedIsSet(boolean value) {
780
    __isset_bit_vector.set(__SUPPRESSINVENTORYFEED_ISSET_ID, value);
781
  }
782
 
783
  public double getWeight() {
784
    return this.weight;
785
  }
786
 
787
  public void setWeight(double weight) {
788
    this.weight = weight;
789
    setWeightIsSet(true);
790
  }
791
 
792
  public void unsetWeight() {
793
    __isset_bit_vector.clear(__WEIGHT_ISSET_ID);
794
  }
795
 
796
  /** Returns true if field weight is set (has been assigned a value) and false otherwise */
797
  public boolean isSetWeight() {
798
    return __isset_bit_vector.get(__WEIGHT_ISSET_ID);
799
  }
800
 
801
  public void setWeightIsSet(boolean value) {
802
    __isset_bit_vector.set(__WEIGHT_ISSET_ID, value);
803
  }
804
 
805
  public double getMrp() {
806
    return this.mrp;
807
  }
808
 
809
  public void setMrp(double mrp) {
810
    this.mrp = mrp;
811
    setMrpIsSet(true);
812
  }
813
 
814
  public void unsetMrp() {
815
    __isset_bit_vector.clear(__MRP_ISSET_ID);
816
  }
817
 
818
  /** Returns true if field mrp is set (has been assigned a value) and false otherwise */
819
  public boolean isSetMrp() {
820
    return __isset_bit_vector.get(__MRP_ISSET_ID);
821
  }
822
 
823
  public void setMrpIsSet(boolean value) {
824
    __isset_bit_vector.set(__MRP_ISSET_ID, value);
825
  }
826
 
827
  public double getWebsiteSellingPrice() {
828
    return this.websiteSellingPrice;
829
  }
830
 
831
  public void setWebsiteSellingPrice(double websiteSellingPrice) {
832
    this.websiteSellingPrice = websiteSellingPrice;
833
    setWebsiteSellingPriceIsSet(true);
834
  }
835
 
836
  public void unsetWebsiteSellingPrice() {
837
    __isset_bit_vector.clear(__WEBSITESELLINGPRICE_ISSET_ID);
838
  }
839
 
840
  /** Returns true if field websiteSellingPrice is set (has been assigned a value) and false otherwise */
841
  public boolean isSetWebsiteSellingPrice() {
842
    return __isset_bit_vector.get(__WEBSITESELLINGPRICE_ISSET_ID);
843
  }
844
 
845
  public void setWebsiteSellingPriceIsSet(boolean value) {
846
    __isset_bit_vector.set(__WEBSITESELLINGPRICE_ISSET_ID, value);
847
  }
848
 
849
  public void setFieldValue(_Fields field, Object value) {
850
    switch (field) {
851
    case ITEM_ID:
852
      if (value == null) {
853
        unsetItem_id();
854
      } else {
855
        setItem_id((Long)value);
856
      }
857
      break;
858
 
859
    case WAREHOUSE_ID:
860
      if (value == null) {
861
        unsetWarehouseId();
862
      } else {
863
        setWarehouseId((Long)value);
864
      }
865
      break;
866
 
867
    case EXCEPTION_PRICE:
868
      if (value == null) {
869
        unsetExceptionPrice();
870
      } else {
871
        setExceptionPrice((Double)value);
872
      }
873
      break;
874
 
875
    case IS_LISTED_ON_SNAPDEAL:
876
      if (value == null) {
877
        unsetIsListedOnSnapdeal();
878
      } else {
879
        setIsListedOnSnapdeal((Boolean)value);
880
      }
881
      break;
882
 
883
    case TRANSFER_PRICE:
884
      if (value == null) {
885
        unsetTransferPrice();
886
      } else {
887
        setTransferPrice((Double)value);
888
      }
889
      break;
890
 
891
    case SELLING_PRICE:
892
      if (value == null) {
893
        unsetSellingPrice();
894
      } else {
895
        setSellingPrice((Double)value);
896
      }
897
      break;
898
 
899
    case COURIER_COST:
900
      if (value == null) {
901
        unsetCourierCost();
902
      } else {
903
        setCourierCost((Double)value);
904
      }
905
      break;
906
 
907
    case COMMISSION:
908
      if (value == null) {
909
        unsetCommission();
910
      } else {
911
        setCommission((Double)value);
912
      }
913
      break;
914
 
915
    case SERVICE_TAX:
916
      if (value == null) {
917
        unsetServiceTax();
918
      } else {
919
        setServiceTax((Double)value);
920
      }
921
      break;
922
 
923
    case BRAND:
924
      if (value == null) {
925
        unsetBrand();
926
      } else {
927
        setBrand((String)value);
928
      }
929
      break;
930
 
931
    case MODEL_NAME:
932
      if (value == null) {
933
        unsetModel_name();
934
      } else {
935
        setModel_name((String)value);
936
      }
937
      break;
938
 
939
    case MODEL_NUMBER:
940
      if (value == null) {
941
        unsetModel_number();
942
      } else {
943
        setModel_number((String)value);
944
      }
945
      break;
946
 
947
    case COLOR:
948
      if (value == null) {
949
        unsetColor();
950
      } else {
951
        setColor((String)value);
952
      }
953
      break;
954
 
955
    case RISKY:
956
      if (value == null) {
957
        unsetRisky();
958
      } else {
959
        setRisky((Boolean)value);
960
      }
961
      break;
962
 
963
    case ITEM_STATUS:
964
      if (value == null) {
965
        unsetItemStatus();
966
      } else {
967
        setItemStatus((status)value);
968
      }
969
      break;
970
 
971
    case SUPPRESS_PRICE_FEED:
972
      if (value == null) {
973
        unsetSuppressPriceFeed();
974
      } else {
975
        setSuppressPriceFeed((Boolean)value);
976
      }
977
      break;
978
 
979
    case SUPPRESS_INVENTORY_FEED:
980
      if (value == null) {
981
        unsetSuppressInventoryFeed();
982
      } else {
983
        setSuppressInventoryFeed((Boolean)value);
984
      }
985
      break;
986
 
987
    case WEIGHT:
988
      if (value == null) {
989
        unsetWeight();
990
      } else {
991
        setWeight((Double)value);
992
      }
993
      break;
994
 
995
    case MRP:
996
      if (value == null) {
997
        unsetMrp();
998
      } else {
999
        setMrp((Double)value);
1000
      }
1001
      break;
1002
 
1003
    case WEBSITE_SELLING_PRICE:
1004
      if (value == null) {
1005
        unsetWebsiteSellingPrice();
1006
      } else {
1007
        setWebsiteSellingPrice((Double)value);
1008
      }
1009
      break;
1010
 
1011
    }
1012
  }
1013
 
1014
  public Object getFieldValue(_Fields field) {
1015
    switch (field) {
1016
    case ITEM_ID:
1017
      return Long.valueOf(getItem_id());
1018
 
1019
    case WAREHOUSE_ID:
1020
      return Long.valueOf(getWarehouseId());
1021
 
1022
    case EXCEPTION_PRICE:
1023
      return Double.valueOf(getExceptionPrice());
1024
 
1025
    case IS_LISTED_ON_SNAPDEAL:
1026
      return Boolean.valueOf(isIsListedOnSnapdeal());
1027
 
1028
    case TRANSFER_PRICE:
1029
      return Double.valueOf(getTransferPrice());
1030
 
1031
    case SELLING_PRICE:
1032
      return Double.valueOf(getSellingPrice());
1033
 
1034
    case COURIER_COST:
1035
      return Double.valueOf(getCourierCost());
1036
 
1037
    case COMMISSION:
1038
      return Double.valueOf(getCommission());
1039
 
1040
    case SERVICE_TAX:
1041
      return Double.valueOf(getServiceTax());
1042
 
1043
    case BRAND:
1044
      return getBrand();
1045
 
1046
    case MODEL_NAME:
1047
      return getModel_name();
1048
 
1049
    case MODEL_NUMBER:
1050
      return getModel_number();
1051
 
1052
    case COLOR:
1053
      return getColor();
1054
 
1055
    case RISKY:
1056
      return Boolean.valueOf(isRisky());
1057
 
1058
    case ITEM_STATUS:
1059
      return getItemStatus();
1060
 
1061
    case SUPPRESS_PRICE_FEED:
1062
      return Boolean.valueOf(isSuppressPriceFeed());
1063
 
1064
    case SUPPRESS_INVENTORY_FEED:
1065
      return Boolean.valueOf(isSuppressInventoryFeed());
1066
 
1067
    case WEIGHT:
1068
      return Double.valueOf(getWeight());
1069
 
1070
    case MRP:
1071
      return Double.valueOf(getMrp());
1072
 
1073
    case WEBSITE_SELLING_PRICE:
1074
      return Double.valueOf(getWebsiteSellingPrice());
1075
 
1076
    }
1077
    throw new IllegalStateException();
1078
  }
1079
 
1080
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1081
  public boolean isSet(_Fields field) {
1082
    if (field == null) {
1083
      throw new IllegalArgumentException();
1084
    }
1085
 
1086
    switch (field) {
1087
    case ITEM_ID:
1088
      return isSetItem_id();
1089
    case WAREHOUSE_ID:
1090
      return isSetWarehouseId();
1091
    case EXCEPTION_PRICE:
1092
      return isSetExceptionPrice();
1093
    case IS_LISTED_ON_SNAPDEAL:
1094
      return isSetIsListedOnSnapdeal();
1095
    case TRANSFER_PRICE:
1096
      return isSetTransferPrice();
1097
    case SELLING_PRICE:
1098
      return isSetSellingPrice();
1099
    case COURIER_COST:
1100
      return isSetCourierCost();
1101
    case COMMISSION:
1102
      return isSetCommission();
1103
    case SERVICE_TAX:
1104
      return isSetServiceTax();
1105
    case BRAND:
1106
      return isSetBrand();
1107
    case MODEL_NAME:
1108
      return isSetModel_name();
1109
    case MODEL_NUMBER:
1110
      return isSetModel_number();
1111
    case COLOR:
1112
      return isSetColor();
1113
    case RISKY:
1114
      return isSetRisky();
1115
    case ITEM_STATUS:
1116
      return isSetItemStatus();
1117
    case SUPPRESS_PRICE_FEED:
1118
      return isSetSuppressPriceFeed();
1119
    case SUPPRESS_INVENTORY_FEED:
1120
      return isSetSuppressInventoryFeed();
1121
    case WEIGHT:
1122
      return isSetWeight();
1123
    case MRP:
1124
      return isSetMrp();
1125
    case WEBSITE_SELLING_PRICE:
1126
      return isSetWebsiteSellingPrice();
1127
    }
1128
    throw new IllegalStateException();
1129
  }
1130
 
1131
  @Override
1132
  public boolean equals(Object that) {
1133
    if (that == null)
1134
      return false;
1135
    if (that instanceof SnapdealItemDetails)
1136
      return this.equals((SnapdealItemDetails)that);
1137
    return false;
1138
  }
1139
 
1140
  public boolean equals(SnapdealItemDetails that) {
1141
    if (that == null)
1142
      return false;
1143
 
1144
    boolean this_present_item_id = true;
1145
    boolean that_present_item_id = true;
1146
    if (this_present_item_id || that_present_item_id) {
1147
      if (!(this_present_item_id && that_present_item_id))
1148
        return false;
1149
      if (this.item_id != that.item_id)
1150
        return false;
1151
    }
1152
 
1153
    boolean this_present_warehouseId = true;
1154
    boolean that_present_warehouseId = true;
1155
    if (this_present_warehouseId || that_present_warehouseId) {
1156
      if (!(this_present_warehouseId && that_present_warehouseId))
1157
        return false;
1158
      if (this.warehouseId != that.warehouseId)
1159
        return false;
1160
    }
1161
 
1162
    boolean this_present_exceptionPrice = true;
1163
    boolean that_present_exceptionPrice = true;
1164
    if (this_present_exceptionPrice || that_present_exceptionPrice) {
1165
      if (!(this_present_exceptionPrice && that_present_exceptionPrice))
1166
        return false;
1167
      if (this.exceptionPrice != that.exceptionPrice)
1168
        return false;
1169
    }
1170
 
1171
    boolean this_present_isListedOnSnapdeal = true;
1172
    boolean that_present_isListedOnSnapdeal = true;
1173
    if (this_present_isListedOnSnapdeal || that_present_isListedOnSnapdeal) {
1174
      if (!(this_present_isListedOnSnapdeal && that_present_isListedOnSnapdeal))
1175
        return false;
1176
      if (this.isListedOnSnapdeal != that.isListedOnSnapdeal)
1177
        return false;
1178
    }
1179
 
1180
    boolean this_present_transferPrice = true;
1181
    boolean that_present_transferPrice = true;
1182
    if (this_present_transferPrice || that_present_transferPrice) {
1183
      if (!(this_present_transferPrice && that_present_transferPrice))
1184
        return false;
1185
      if (this.transferPrice != that.transferPrice)
1186
        return false;
1187
    }
1188
 
1189
    boolean this_present_sellingPrice = true;
1190
    boolean that_present_sellingPrice = true;
1191
    if (this_present_sellingPrice || that_present_sellingPrice) {
1192
      if (!(this_present_sellingPrice && that_present_sellingPrice))
1193
        return false;
1194
      if (this.sellingPrice != that.sellingPrice)
1195
        return false;
1196
    }
1197
 
1198
    boolean this_present_courierCost = true;
1199
    boolean that_present_courierCost = true;
1200
    if (this_present_courierCost || that_present_courierCost) {
1201
      if (!(this_present_courierCost && that_present_courierCost))
1202
        return false;
1203
      if (this.courierCost != that.courierCost)
1204
        return false;
1205
    }
1206
 
1207
    boolean this_present_commission = true;
1208
    boolean that_present_commission = true;
1209
    if (this_present_commission || that_present_commission) {
1210
      if (!(this_present_commission && that_present_commission))
1211
        return false;
1212
      if (this.commission != that.commission)
1213
        return false;
1214
    }
1215
 
1216
    boolean this_present_serviceTax = true;
1217
    boolean that_present_serviceTax = true;
1218
    if (this_present_serviceTax || that_present_serviceTax) {
1219
      if (!(this_present_serviceTax && that_present_serviceTax))
1220
        return false;
1221
      if (this.serviceTax != that.serviceTax)
1222
        return false;
1223
    }
1224
 
1225
    boolean this_present_brand = true && this.isSetBrand();
1226
    boolean that_present_brand = true && that.isSetBrand();
1227
    if (this_present_brand || that_present_brand) {
1228
      if (!(this_present_brand && that_present_brand))
1229
        return false;
1230
      if (!this.brand.equals(that.brand))
1231
        return false;
1232
    }
1233
 
1234
    boolean this_present_model_name = true && this.isSetModel_name();
1235
    boolean that_present_model_name = true && that.isSetModel_name();
1236
    if (this_present_model_name || that_present_model_name) {
1237
      if (!(this_present_model_name && that_present_model_name))
1238
        return false;
1239
      if (!this.model_name.equals(that.model_name))
1240
        return false;
1241
    }
1242
 
1243
    boolean this_present_model_number = true && this.isSetModel_number();
1244
    boolean that_present_model_number = true && that.isSetModel_number();
1245
    if (this_present_model_number || that_present_model_number) {
1246
      if (!(this_present_model_number && that_present_model_number))
1247
        return false;
1248
      if (!this.model_number.equals(that.model_number))
1249
        return false;
1250
    }
1251
 
1252
    boolean this_present_color = true && this.isSetColor();
1253
    boolean that_present_color = true && that.isSetColor();
1254
    if (this_present_color || that_present_color) {
1255
      if (!(this_present_color && that_present_color))
1256
        return false;
1257
      if (!this.color.equals(that.color))
1258
        return false;
1259
    }
1260
 
1261
    boolean this_present_risky = true;
1262
    boolean that_present_risky = true;
1263
    if (this_present_risky || that_present_risky) {
1264
      if (!(this_present_risky && that_present_risky))
1265
        return false;
1266
      if (this.risky != that.risky)
1267
        return false;
1268
    }
1269
 
1270
    boolean this_present_itemStatus = true && this.isSetItemStatus();
1271
    boolean that_present_itemStatus = true && that.isSetItemStatus();
1272
    if (this_present_itemStatus || that_present_itemStatus) {
1273
      if (!(this_present_itemStatus && that_present_itemStatus))
1274
        return false;
1275
      if (!this.itemStatus.equals(that.itemStatus))
1276
        return false;
1277
    }
1278
 
1279
    boolean this_present_suppressPriceFeed = true;
1280
    boolean that_present_suppressPriceFeed = true;
1281
    if (this_present_suppressPriceFeed || that_present_suppressPriceFeed) {
1282
      if (!(this_present_suppressPriceFeed && that_present_suppressPriceFeed))
1283
        return false;
1284
      if (this.suppressPriceFeed != that.suppressPriceFeed)
1285
        return false;
1286
    }
1287
 
1288
    boolean this_present_suppressInventoryFeed = true;
1289
    boolean that_present_suppressInventoryFeed = true;
1290
    if (this_present_suppressInventoryFeed || that_present_suppressInventoryFeed) {
1291
      if (!(this_present_suppressInventoryFeed && that_present_suppressInventoryFeed))
1292
        return false;
1293
      if (this.suppressInventoryFeed != that.suppressInventoryFeed)
1294
        return false;
1295
    }
1296
 
1297
    boolean this_present_weight = true;
1298
    boolean that_present_weight = true;
1299
    if (this_present_weight || that_present_weight) {
1300
      if (!(this_present_weight && that_present_weight))
1301
        return false;
1302
      if (this.weight != that.weight)
1303
        return false;
1304
    }
1305
 
1306
    boolean this_present_mrp = true;
1307
    boolean that_present_mrp = true;
1308
    if (this_present_mrp || that_present_mrp) {
1309
      if (!(this_present_mrp && that_present_mrp))
1310
        return false;
1311
      if (this.mrp != that.mrp)
1312
        return false;
1313
    }
1314
 
1315
    boolean this_present_websiteSellingPrice = true;
1316
    boolean that_present_websiteSellingPrice = true;
1317
    if (this_present_websiteSellingPrice || that_present_websiteSellingPrice) {
1318
      if (!(this_present_websiteSellingPrice && that_present_websiteSellingPrice))
1319
        return false;
1320
      if (this.websiteSellingPrice != that.websiteSellingPrice)
1321
        return false;
1322
    }
1323
 
1324
    return true;
1325
  }
1326
 
1327
  @Override
1328
  public int hashCode() {
1329
    return 0;
1330
  }
1331
 
1332
  public int compareTo(SnapdealItemDetails other) {
1333
    if (!getClass().equals(other.getClass())) {
1334
      return getClass().getName().compareTo(other.getClass().getName());
1335
    }
1336
 
1337
    int lastComparison = 0;
1338
    SnapdealItemDetails typedOther = (SnapdealItemDetails)other;
1339
 
1340
    lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
1341
    if (lastComparison != 0) {
1342
      return lastComparison;
1343
    }
1344
    if (isSetItem_id()) {
1345
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
1346
      if (lastComparison != 0) {
1347
        return lastComparison;
1348
      }
1349
    }
1350
    lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
1351
    if (lastComparison != 0) {
1352
      return lastComparison;
1353
    }
1354
    if (isSetWarehouseId()) {
1355
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
1356
      if (lastComparison != 0) {
1357
        return lastComparison;
1358
      }
1359
    }
1360
    lastComparison = Boolean.valueOf(isSetExceptionPrice()).compareTo(typedOther.isSetExceptionPrice());
1361
    if (lastComparison != 0) {
1362
      return lastComparison;
1363
    }
1364
    if (isSetExceptionPrice()) {
1365
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exceptionPrice, typedOther.exceptionPrice);
1366
      if (lastComparison != 0) {
1367
        return lastComparison;
1368
      }
1369
    }
1370
    lastComparison = Boolean.valueOf(isSetIsListedOnSnapdeal()).compareTo(typedOther.isSetIsListedOnSnapdeal());
1371
    if (lastComparison != 0) {
1372
      return lastComparison;
1373
    }
1374
    if (isSetIsListedOnSnapdeal()) {
1375
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isListedOnSnapdeal, typedOther.isListedOnSnapdeal);
1376
      if (lastComparison != 0) {
1377
        return lastComparison;
1378
      }
1379
    }
1380
    lastComparison = Boolean.valueOf(isSetTransferPrice()).compareTo(typedOther.isSetTransferPrice());
1381
    if (lastComparison != 0) {
1382
      return lastComparison;
1383
    }
1384
    if (isSetTransferPrice()) {
1385
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferPrice, typedOther.transferPrice);
1386
      if (lastComparison != 0) {
1387
        return lastComparison;
1388
      }
1389
    }
1390
    lastComparison = Boolean.valueOf(isSetSellingPrice()).compareTo(typedOther.isSetSellingPrice());
1391
    if (lastComparison != 0) {
1392
      return lastComparison;
1393
    }
1394
    if (isSetSellingPrice()) {
1395
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sellingPrice, typedOther.sellingPrice);
1396
      if (lastComparison != 0) {
1397
        return lastComparison;
1398
      }
1399
    }
1400
    lastComparison = Boolean.valueOf(isSetCourierCost()).compareTo(typedOther.isSetCourierCost());
1401
    if (lastComparison != 0) {
1402
      return lastComparison;
1403
    }
1404
    if (isSetCourierCost()) {
1405
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.courierCost, typedOther.courierCost);
1406
      if (lastComparison != 0) {
1407
        return lastComparison;
1408
      }
1409
    }
1410
    lastComparison = Boolean.valueOf(isSetCommission()).compareTo(typedOther.isSetCommission());
1411
    if (lastComparison != 0) {
1412
      return lastComparison;
1413
    }
1414
    if (isSetCommission()) {
1415
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.commission, typedOther.commission);
1416
      if (lastComparison != 0) {
1417
        return lastComparison;
1418
      }
1419
    }
1420
    lastComparison = Boolean.valueOf(isSetServiceTax()).compareTo(typedOther.isSetServiceTax());
1421
    if (lastComparison != 0) {
1422
      return lastComparison;
1423
    }
1424
    if (isSetServiceTax()) {
1425
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceTax, typedOther.serviceTax);
1426
      if (lastComparison != 0) {
1427
        return lastComparison;
1428
      }
1429
    }
1430
    lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
1431
    if (lastComparison != 0) {
1432
      return lastComparison;
1433
    }
1434
    if (isSetBrand()) {
1435
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
1436
      if (lastComparison != 0) {
1437
        return lastComparison;
1438
      }
1439
    }
1440
    lastComparison = Boolean.valueOf(isSetModel_name()).compareTo(typedOther.isSetModel_name());
1441
    if (lastComparison != 0) {
1442
      return lastComparison;
1443
    }
1444
    if (isSetModel_name()) {
1445
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.model_name, typedOther.model_name);
1446
      if (lastComparison != 0) {
1447
        return lastComparison;
1448
      }
1449
    }
1450
    lastComparison = Boolean.valueOf(isSetModel_number()).compareTo(typedOther.isSetModel_number());
1451
    if (lastComparison != 0) {
1452
      return lastComparison;
1453
    }
1454
    if (isSetModel_number()) {
1455
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.model_number, typedOther.model_number);
1456
      if (lastComparison != 0) {
1457
        return lastComparison;
1458
      }
1459
    }
1460
    lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());
1461
    if (lastComparison != 0) {
1462
      return lastComparison;
1463
    }
1464
    if (isSetColor()) {
1465
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);
1466
      if (lastComparison != 0) {
1467
        return lastComparison;
1468
      }
1469
    }
1470
    lastComparison = Boolean.valueOf(isSetRisky()).compareTo(typedOther.isSetRisky());
1471
    if (lastComparison != 0) {
1472
      return lastComparison;
1473
    }
1474
    if (isSetRisky()) {
1475
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.risky, typedOther.risky);
1476
      if (lastComparison != 0) {
1477
        return lastComparison;
1478
      }
1479
    }
1480
    lastComparison = Boolean.valueOf(isSetItemStatus()).compareTo(typedOther.isSetItemStatus());
1481
    if (lastComparison != 0) {
1482
      return lastComparison;
1483
    }
1484
    if (isSetItemStatus()) {
1485
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemStatus, typedOther.itemStatus);
1486
      if (lastComparison != 0) {
1487
        return lastComparison;
1488
      }
1489
    }
1490
    lastComparison = Boolean.valueOf(isSetSuppressPriceFeed()).compareTo(typedOther.isSetSuppressPriceFeed());
1491
    if (lastComparison != 0) {
1492
      return lastComparison;
1493
    }
1494
    if (isSetSuppressPriceFeed()) {
1495
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suppressPriceFeed, typedOther.suppressPriceFeed);
1496
      if (lastComparison != 0) {
1497
        return lastComparison;
1498
      }
1499
    }
1500
    lastComparison = Boolean.valueOf(isSetSuppressInventoryFeed()).compareTo(typedOther.isSetSuppressInventoryFeed());
1501
    if (lastComparison != 0) {
1502
      return lastComparison;
1503
    }
1504
    if (isSetSuppressInventoryFeed()) {
1505
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suppressInventoryFeed, typedOther.suppressInventoryFeed);
1506
      if (lastComparison != 0) {
1507
        return lastComparison;
1508
      }
1509
    }
1510
    lastComparison = Boolean.valueOf(isSetWeight()).compareTo(typedOther.isSetWeight());
1511
    if (lastComparison != 0) {
1512
      return lastComparison;
1513
    }
1514
    if (isSetWeight()) {
1515
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.weight, typedOther.weight);
1516
      if (lastComparison != 0) {
1517
        return lastComparison;
1518
      }
1519
    }
1520
    lastComparison = Boolean.valueOf(isSetMrp()).compareTo(typedOther.isSetMrp());
1521
    if (lastComparison != 0) {
1522
      return lastComparison;
1523
    }
1524
    if (isSetMrp()) {
1525
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mrp, typedOther.mrp);
1526
      if (lastComparison != 0) {
1527
        return lastComparison;
1528
      }
1529
    }
1530
    lastComparison = Boolean.valueOf(isSetWebsiteSellingPrice()).compareTo(typedOther.isSetWebsiteSellingPrice());
1531
    if (lastComparison != 0) {
1532
      return lastComparison;
1533
    }
1534
    if (isSetWebsiteSellingPrice()) {
1535
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.websiteSellingPrice, typedOther.websiteSellingPrice);
1536
      if (lastComparison != 0) {
1537
        return lastComparison;
1538
      }
1539
    }
1540
    return 0;
1541
  }
1542
 
1543
  public _Fields fieldForId(int fieldId) {
1544
    return _Fields.findByThriftId(fieldId);
1545
  }
1546
 
1547
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1548
    org.apache.thrift.protocol.TField field;
1549
    iprot.readStructBegin();
1550
    while (true)
1551
    {
1552
      field = iprot.readFieldBegin();
1553
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1554
        break;
1555
      }
1556
      switch (field.id) {
1557
        case 1: // ITEM_ID
1558
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1559
            this.item_id = iprot.readI64();
1560
            setItem_idIsSet(true);
1561
          } else { 
1562
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1563
          }
1564
          break;
1565
        case 2: // WAREHOUSE_ID
1566
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1567
            this.warehouseId = iprot.readI64();
1568
            setWarehouseIdIsSet(true);
1569
          } else { 
1570
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1571
          }
1572
          break;
1573
        case 3: // EXCEPTION_PRICE
1574
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1575
            this.exceptionPrice = iprot.readDouble();
1576
            setExceptionPriceIsSet(true);
1577
          } else { 
1578
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1579
          }
1580
          break;
1581
        case 4: // IS_LISTED_ON_SNAPDEAL
1582
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1583
            this.isListedOnSnapdeal = iprot.readBool();
1584
            setIsListedOnSnapdealIsSet(true);
1585
          } else { 
1586
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1587
          }
1588
          break;
1589
        case 5: // TRANSFER_PRICE
1590
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1591
            this.transferPrice = iprot.readDouble();
1592
            setTransferPriceIsSet(true);
1593
          } else { 
1594
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1595
          }
1596
          break;
1597
        case 6: // SELLING_PRICE
1598
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1599
            this.sellingPrice = iprot.readDouble();
1600
            setSellingPriceIsSet(true);
1601
          } else { 
1602
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1603
          }
1604
          break;
1605
        case 7: // COURIER_COST
1606
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1607
            this.courierCost = iprot.readDouble();
1608
            setCourierCostIsSet(true);
1609
          } else { 
1610
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611
          }
1612
          break;
1613
        case 8: // COMMISSION
1614
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1615
            this.commission = iprot.readDouble();
1616
            setCommissionIsSet(true);
1617
          } else { 
1618
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1619
          }
1620
          break;
1621
        case 9: // SERVICE_TAX
1622
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1623
            this.serviceTax = iprot.readDouble();
1624
            setServiceTaxIsSet(true);
1625
          } else { 
1626
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1627
          }
1628
          break;
1629
        case 10: // BRAND
1630
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1631
            this.brand = iprot.readString();
1632
          } else { 
1633
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1634
          }
1635
          break;
1636
        case 11: // MODEL_NAME
1637
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1638
            this.model_name = iprot.readString();
1639
          } else { 
1640
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1641
          }
1642
          break;
1643
        case 12: // MODEL_NUMBER
1644
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1645
            this.model_number = iprot.readString();
1646
          } else { 
1647
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1648
          }
1649
          break;
1650
        case 13: // COLOR
1651
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1652
            this.color = iprot.readString();
1653
          } else { 
1654
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1655
          }
1656
          break;
1657
        case 14: // RISKY
1658
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1659
            this.risky = iprot.readBool();
1660
            setRiskyIsSet(true);
1661
          } else { 
1662
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1663
          }
1664
          break;
1665
        case 15: // ITEM_STATUS
1666
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1667
            this.itemStatus = status.findByValue(iprot.readI32());
1668
          } else { 
1669
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1670
          }
1671
          break;
1672
        case 16: // SUPPRESS_PRICE_FEED
1673
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1674
            this.suppressPriceFeed = iprot.readBool();
1675
            setSuppressPriceFeedIsSet(true);
1676
          } else { 
1677
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1678
          }
1679
          break;
1680
        case 17: // SUPPRESS_INVENTORY_FEED
1681
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1682
            this.suppressInventoryFeed = iprot.readBool();
1683
            setSuppressInventoryFeedIsSet(true);
1684
          } else { 
1685
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1686
          }
1687
          break;
1688
        case 18: // WEIGHT
1689
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1690
            this.weight = iprot.readDouble();
1691
            setWeightIsSet(true);
1692
          } else { 
1693
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1694
          }
1695
          break;
1696
        case 19: // MRP
1697
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1698
            this.mrp = iprot.readDouble();
1699
            setMrpIsSet(true);
1700
          } else { 
1701
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1702
          }
1703
          break;
1704
        case 20: // WEBSITE_SELLING_PRICE
1705
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1706
            this.websiteSellingPrice = iprot.readDouble();
1707
            setWebsiteSellingPriceIsSet(true);
1708
          } else { 
1709
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1710
          }
1711
          break;
1712
        default:
1713
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1714
      }
1715
      iprot.readFieldEnd();
1716
    }
1717
    iprot.readStructEnd();
1718
    validate();
1719
  }
1720
 
1721
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1722
    validate();
1723
 
1724
    oprot.writeStructBegin(STRUCT_DESC);
1725
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
1726
    oprot.writeI64(this.item_id);
1727
    oprot.writeFieldEnd();
1728
    oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
1729
    oprot.writeI64(this.warehouseId);
1730
    oprot.writeFieldEnd();
1731
    oprot.writeFieldBegin(EXCEPTION_PRICE_FIELD_DESC);
1732
    oprot.writeDouble(this.exceptionPrice);
1733
    oprot.writeFieldEnd();
1734
    oprot.writeFieldBegin(IS_LISTED_ON_SNAPDEAL_FIELD_DESC);
1735
    oprot.writeBool(this.isListedOnSnapdeal);
1736
    oprot.writeFieldEnd();
1737
    oprot.writeFieldBegin(TRANSFER_PRICE_FIELD_DESC);
1738
    oprot.writeDouble(this.transferPrice);
1739
    oprot.writeFieldEnd();
1740
    oprot.writeFieldBegin(SELLING_PRICE_FIELD_DESC);
1741
    oprot.writeDouble(this.sellingPrice);
1742
    oprot.writeFieldEnd();
1743
    oprot.writeFieldBegin(COURIER_COST_FIELD_DESC);
1744
    oprot.writeDouble(this.courierCost);
1745
    oprot.writeFieldEnd();
1746
    oprot.writeFieldBegin(COMMISSION_FIELD_DESC);
1747
    oprot.writeDouble(this.commission);
1748
    oprot.writeFieldEnd();
1749
    oprot.writeFieldBegin(SERVICE_TAX_FIELD_DESC);
1750
    oprot.writeDouble(this.serviceTax);
1751
    oprot.writeFieldEnd();
1752
    if (this.brand != null) {
1753
      oprot.writeFieldBegin(BRAND_FIELD_DESC);
1754
      oprot.writeString(this.brand);
1755
      oprot.writeFieldEnd();
1756
    }
1757
    if (this.model_name != null) {
1758
      oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);
1759
      oprot.writeString(this.model_name);
1760
      oprot.writeFieldEnd();
1761
    }
1762
    if (this.model_number != null) {
1763
      oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
1764
      oprot.writeString(this.model_number);
1765
      oprot.writeFieldEnd();
1766
    }
1767
    if (this.color != null) {
1768
      oprot.writeFieldBegin(COLOR_FIELD_DESC);
1769
      oprot.writeString(this.color);
1770
      oprot.writeFieldEnd();
1771
    }
1772
    oprot.writeFieldBegin(RISKY_FIELD_DESC);
1773
    oprot.writeBool(this.risky);
1774
    oprot.writeFieldEnd();
1775
    if (this.itemStatus != null) {
1776
      oprot.writeFieldBegin(ITEM_STATUS_FIELD_DESC);
1777
      oprot.writeI32(this.itemStatus.getValue());
1778
      oprot.writeFieldEnd();
1779
    }
1780
    oprot.writeFieldBegin(SUPPRESS_PRICE_FEED_FIELD_DESC);
1781
    oprot.writeBool(this.suppressPriceFeed);
1782
    oprot.writeFieldEnd();
1783
    oprot.writeFieldBegin(SUPPRESS_INVENTORY_FEED_FIELD_DESC);
1784
    oprot.writeBool(this.suppressInventoryFeed);
1785
    oprot.writeFieldEnd();
1786
    oprot.writeFieldBegin(WEIGHT_FIELD_DESC);
1787
    oprot.writeDouble(this.weight);
1788
    oprot.writeFieldEnd();
1789
    oprot.writeFieldBegin(MRP_FIELD_DESC);
1790
    oprot.writeDouble(this.mrp);
1791
    oprot.writeFieldEnd();
1792
    oprot.writeFieldBegin(WEBSITE_SELLING_PRICE_FIELD_DESC);
1793
    oprot.writeDouble(this.websiteSellingPrice);
1794
    oprot.writeFieldEnd();
1795
    oprot.writeFieldStop();
1796
    oprot.writeStructEnd();
1797
  }
1798
 
1799
  @Override
1800
  public String toString() {
1801
    StringBuilder sb = new StringBuilder("SnapdealItemDetails(");
1802
    boolean first = true;
1803
 
1804
    sb.append("item_id:");
1805
    sb.append(this.item_id);
1806
    first = false;
1807
    if (!first) sb.append(", ");
1808
    sb.append("warehouseId:");
1809
    sb.append(this.warehouseId);
1810
    first = false;
1811
    if (!first) sb.append(", ");
1812
    sb.append("exceptionPrice:");
1813
    sb.append(this.exceptionPrice);
1814
    first = false;
1815
    if (!first) sb.append(", ");
1816
    sb.append("isListedOnSnapdeal:");
1817
    sb.append(this.isListedOnSnapdeal);
1818
    first = false;
1819
    if (!first) sb.append(", ");
1820
    sb.append("transferPrice:");
1821
    sb.append(this.transferPrice);
1822
    first = false;
1823
    if (!first) sb.append(", ");
1824
    sb.append("sellingPrice:");
1825
    sb.append(this.sellingPrice);
1826
    first = false;
1827
    if (!first) sb.append(", ");
1828
    sb.append("courierCost:");
1829
    sb.append(this.courierCost);
1830
    first = false;
1831
    if (!first) sb.append(", ");
1832
    sb.append("commission:");
1833
    sb.append(this.commission);
1834
    first = false;
1835
    if (!first) sb.append(", ");
1836
    sb.append("serviceTax:");
1837
    sb.append(this.serviceTax);
1838
    first = false;
1839
    if (!first) sb.append(", ");
1840
    sb.append("brand:");
1841
    if (this.brand == null) {
1842
      sb.append("null");
1843
    } else {
1844
      sb.append(this.brand);
1845
    }
1846
    first = false;
1847
    if (!first) sb.append(", ");
1848
    sb.append("model_name:");
1849
    if (this.model_name == null) {
1850
      sb.append("null");
1851
    } else {
1852
      sb.append(this.model_name);
1853
    }
1854
    first = false;
1855
    if (!first) sb.append(", ");
1856
    sb.append("model_number:");
1857
    if (this.model_number == null) {
1858
      sb.append("null");
1859
    } else {
1860
      sb.append(this.model_number);
1861
    }
1862
    first = false;
1863
    if (!first) sb.append(", ");
1864
    sb.append("color:");
1865
    if (this.color == null) {
1866
      sb.append("null");
1867
    } else {
1868
      sb.append(this.color);
1869
    }
1870
    first = false;
1871
    if (!first) sb.append(", ");
1872
    sb.append("risky:");
1873
    sb.append(this.risky);
1874
    first = false;
1875
    if (!first) sb.append(", ");
1876
    sb.append("itemStatus:");
1877
    if (this.itemStatus == null) {
1878
      sb.append("null");
1879
    } else {
1880
      sb.append(this.itemStatus);
1881
    }
1882
    first = false;
1883
    if (!first) sb.append(", ");
1884
    sb.append("suppressPriceFeed:");
1885
    sb.append(this.suppressPriceFeed);
1886
    first = false;
1887
    if (!first) sb.append(", ");
1888
    sb.append("suppressInventoryFeed:");
1889
    sb.append(this.suppressInventoryFeed);
1890
    first = false;
1891
    if (!first) sb.append(", ");
1892
    sb.append("weight:");
1893
    sb.append(this.weight);
1894
    first = false;
1895
    if (!first) sb.append(", ");
1896
    sb.append("mrp:");
1897
    sb.append(this.mrp);
1898
    first = false;
1899
    if (!first) sb.append(", ");
1900
    sb.append("websiteSellingPrice:");
1901
    sb.append(this.websiteSellingPrice);
1902
    first = false;
1903
    sb.append(")");
1904
    return sb.toString();
1905
  }
1906
 
1907
  public void validate() throws org.apache.thrift.TException {
1908
    // check for required fields
1909
  }
1910
 
1911
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1912
    try {
1913
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1914
    } catch (org.apache.thrift.TException te) {
1915
      throw new java.io.IOException(te);
1916
    }
1917
  }
1918
 
1919
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1920
    try {
1921
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1922
      __isset_bit_vector = new BitSet(1);
1923
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1924
    } catch (org.apache.thrift.TException te) {
1925
      throw new java.io.IOException(te);
1926
    }
1927
  }
1928
 
1929
}
1930