Subversion Repositories SmartDukaan

Rev

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