Subversion Repositories SmartDukaan

Rev

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