Subversion Repositories SmartDukaan

Rev

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

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