Subversion Repositories SmartDukaan

Rev

Rev 9478 | Rev 9724 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
9242 kshitij.so 1
/**
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.catalog;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
18
import java.nio.ByteBuffer;
19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class SnapdealItemDetails implements org.apache.thrift.TBase<SnapdealItemDetails, SnapdealItemDetails._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SnapdealItemDetails");
25
 
26
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
28
  private static final org.apache.thrift.protocol.TField EXCEPTION_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("exceptionPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
29
  private static final org.apache.thrift.protocol.TField IS_LISTED_ON_SNAPDEAL_FIELD_DESC = new org.apache.thrift.protocol.TField("isListedOnSnapdeal", org.apache.thrift.protocol.TType.BOOL, (short)4);
30
  private static final org.apache.thrift.protocol.TField TRANSFER_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("transferPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
31
  private static final org.apache.thrift.protocol.TField SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("sellingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
32
  private static final org.apache.thrift.protocol.TField COURIER_COST_FIELD_DESC = new org.apache.thrift.protocol.TField("courierCost", org.apache.thrift.protocol.TType.DOUBLE, (short)7);
33
  private static final org.apache.thrift.protocol.TField COMMISSION_FIELD_DESC = new org.apache.thrift.protocol.TField("commission", org.apache.thrift.protocol.TType.DOUBLE, (short)8);
34
  private static final org.apache.thrift.protocol.TField SERVICE_TAX_FIELD_DESC = new org.apache.thrift.protocol.TField("serviceTax", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
35
  private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)10);
36
  private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("model_name", org.apache.thrift.protocol.TType.STRING, (short)11);
37
  private static final org.apache.thrift.protocol.TField MODEL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("model_number", org.apache.thrift.protocol.TType.STRING, (short)12);
38
  private static final org.apache.thrift.protocol.TField COLOR_FIELD_DESC = new org.apache.thrift.protocol.TField("color", org.apache.thrift.protocol.TType.STRING, (short)13);
39
  private static final org.apache.thrift.protocol.TField RISKY_FIELD_DESC = new org.apache.thrift.protocol.TField("risky", org.apache.thrift.protocol.TType.BOOL, (short)14);
40
  private static final org.apache.thrift.protocol.TField ITEM_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemStatus", org.apache.thrift.protocol.TType.I32, (short)15);
41
  private static final org.apache.thrift.protocol.TField SUPPRESS_PRICE_FEED_FIELD_DESC = new org.apache.thrift.protocol.TField("suppressPriceFeed", org.apache.thrift.protocol.TType.BOOL, (short)16);
42
  private static final org.apache.thrift.protocol.TField SUPPRESS_INVENTORY_FEED_FIELD_DESC = new org.apache.thrift.protocol.TField("suppressInventoryFeed", org.apache.thrift.protocol.TType.BOOL, (short)17);
43
  private static final org.apache.thrift.protocol.TField WEIGHT_FIELD_DESC = new org.apache.thrift.protocol.TField("weight", org.apache.thrift.protocol.TType.DOUBLE, (short)18);
44
  private static final org.apache.thrift.protocol.TField MRP_FIELD_DESC = new org.apache.thrift.protocol.TField("mrp", org.apache.thrift.protocol.TType.DOUBLE, (short)19);
45
  private static final org.apache.thrift.protocol.TField WEBSITE_SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("websiteSellingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)20);
9478 kshitij.so 46
  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)21);
47
  private static final org.apache.thrift.protocol.TField SKU_AT_SNAPDEAL_FIELD_DESC = new org.apache.thrift.protocol.TField("skuAtSnapdeal", org.apache.thrift.protocol.TType.STRING, (short)22);
9568 kshitij.so 48
  private static final org.apache.thrift.protocol.TField SUPC_FIELD_DESC = new org.apache.thrift.protocol.TField("supc", org.apache.thrift.protocol.TType.STRING, (short)23);
9242 kshitij.so 49
 
50
  private long item_id; // required
51
  private long warehouseId; // required
52
  private double exceptionPrice; // required
53
  private boolean isListedOnSnapdeal; // required
54
  private double transferPrice; // required
55
  private double sellingPrice; // required
56
  private double courierCost; // required
57
  private double commission; // required
58
  private double serviceTax; // required
59
  private String brand; // required
60
  private String model_name; // required
61
  private String model_number; // required
62
  private String color; // required
63
  private boolean risky; // required
64
  private status itemStatus; // required
65
  private boolean suppressPriceFeed; // required
66
  private boolean suppressInventoryFeed; // required
67
  private double weight; // required
68
  private double mrp; // required
69
  private double websiteSellingPrice; // required
9478 kshitij.so 70
  private double maxNlc; // required
9456 vikram.rag 71
  private String skuAtSnapdeal; // required
9568 kshitij.so 72
  private String supc; // required
9242 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_SNAPDEAL((short)4, "isListedOnSnapdeal"),
80
    TRANSFER_PRICE((short)5, "transferPrice"),
81
    SELLING_PRICE((short)6, "sellingPrice"),
82
    COURIER_COST((short)7, "courierCost"),
83
    COMMISSION((short)8, "commission"),
84
    SERVICE_TAX((short)9, "serviceTax"),
85
    BRAND((short)10, "brand"),
86
    MODEL_NAME((short)11, "model_name"),
87
    MODEL_NUMBER((short)12, "model_number"),
88
    COLOR((short)13, "color"),
89
    RISKY((short)14, "risky"),
90
    /**
91
     * 
92
     * @see status
93
     */
94
    ITEM_STATUS((short)15, "itemStatus"),
95
    SUPPRESS_PRICE_FEED((short)16, "suppressPriceFeed"),
96
    SUPPRESS_INVENTORY_FEED((short)17, "suppressInventoryFeed"),
97
    WEIGHT((short)18, "weight"),
98
    MRP((short)19, "mrp"),
9456 vikram.rag 99
    WEBSITE_SELLING_PRICE((short)20, "websiteSellingPrice"),
9478 kshitij.so 100
    MAX_NLC((short)21, "maxNlc"),
9568 kshitij.so 101
    SKU_AT_SNAPDEAL((short)22, "skuAtSnapdeal"),
102
    SUPC((short)23, "supc");
9242 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_SNAPDEAL
124
          return IS_LISTED_ON_SNAPDEAL;
125
        case 5: // TRANSFER_PRICE
126
          return TRANSFER_PRICE;
127
        case 6: // SELLING_PRICE
128
          return SELLING_PRICE;
129
        case 7: // COURIER_COST
130
          return COURIER_COST;
131
        case 8: // COMMISSION
132
          return COMMISSION;
133
        case 9: // SERVICE_TAX
134
          return SERVICE_TAX;
135
        case 10: // BRAND
136
          return BRAND;
137
        case 11: // MODEL_NAME
138
          return MODEL_NAME;
139
        case 12: // MODEL_NUMBER
140
          return MODEL_NUMBER;
141
        case 13: // COLOR
142
          return COLOR;
143
        case 14: // RISKY
144
          return RISKY;
145
        case 15: // ITEM_STATUS
146
          return ITEM_STATUS;
147
        case 16: // SUPPRESS_PRICE_FEED
148
          return SUPPRESS_PRICE_FEED;
149
        case 17: // SUPPRESS_INVENTORY_FEED
150
          return SUPPRESS_INVENTORY_FEED;
151
        case 18: // WEIGHT
152
          return WEIGHT;
153
        case 19: // MRP
154
          return MRP;
155
        case 20: // WEBSITE_SELLING_PRICE
156
          return WEBSITE_SELLING_PRICE;
9478 kshitij.so 157
        case 21: // MAX_NLC
158
          return MAX_NLC;
159
        case 22: // SKU_AT_SNAPDEAL
9456 vikram.rag 160
          return SKU_AT_SNAPDEAL;
9568 kshitij.so 161
        case 23: // SUPC
162
          return SUPC;
9242 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 __ISLISTEDONSNAPDEAL_ISSET_ID = 3;
207
  private static final int __TRANSFERPRICE_ISSET_ID = 4;
208
  private static final int __SELLINGPRICE_ISSET_ID = 5;
209
  private static final int __COURIERCOST_ISSET_ID = 6;
210
  private static final int __COMMISSION_ISSET_ID = 7;
211
  private static final int __SERVICETAX_ISSET_ID = 8;
212
  private static final int __RISKY_ISSET_ID = 9;
213
  private static final int __SUPPRESSPRICEFEED_ISSET_ID = 10;
214
  private static final int __SUPPRESSINVENTORYFEED_ISSET_ID = 11;
215
  private static final int __WEIGHT_ISSET_ID = 12;
216
  private static final int __MRP_ISSET_ID = 13;
217
  private static final int __WEBSITESELLINGPRICE_ISSET_ID = 14;
9478 kshitij.so 218
  private static final int __MAXNLC_ISSET_ID = 15;
219
  private BitSet __isset_bit_vector = new BitSet(16);
9242 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_SNAPDEAL, new org.apache.thrift.meta_data.FieldMetaData("isListedOnSnapdeal", org.apache.thrift.TFieldRequirementType.DEFAULT, 
231
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
232
    tmpMap.put(_Fields.TRANSFER_PRICE, new org.apache.thrift.meta_data.FieldMetaData("transferPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
233
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
234
    tmpMap.put(_Fields.SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("sellingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
235
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
236
    tmpMap.put(_Fields.COURIER_COST, new org.apache.thrift.meta_data.FieldMetaData("courierCost", org.apache.thrift.TFieldRequirementType.DEFAULT, 
237
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
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)));
9478 kshitij.so 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)));
9456 vikram.rag 266
    tmpMap.put(_Fields.SKU_AT_SNAPDEAL, new org.apache.thrift.meta_data.FieldMetaData("skuAtSnapdeal", org.apache.thrift.TFieldRequirementType.DEFAULT, 
267
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9568 kshitij.so 268
    tmpMap.put(_Fields.SUPC, new org.apache.thrift.meta_data.FieldMetaData("supc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
269
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9242 kshitij.so 270
    metaDataMap = Collections.unmodifiableMap(tmpMap);
271
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SnapdealItemDetails.class, metaDataMap);
272
  }
273
 
274
  public SnapdealItemDetails() {
275
  }
276
 
277
  public SnapdealItemDetails(
278
    long item_id,
279
    long warehouseId,
280
    double exceptionPrice,
281
    boolean isListedOnSnapdeal,
282
    double transferPrice,
283
    double sellingPrice,
284
    double courierCost,
285
    double commission,
286
    double serviceTax,
287
    String brand,
288
    String model_name,
289
    String model_number,
290
    String color,
291
    boolean risky,
292
    status itemStatus,
293
    boolean suppressPriceFeed,
294
    boolean suppressInventoryFeed,
295
    double weight,
296
    double mrp,
9456 vikram.rag 297
    double websiteSellingPrice,
9478 kshitij.so 298
    double maxNlc,
9568 kshitij.so 299
    String skuAtSnapdeal,
300
    String supc)
9242 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.isListedOnSnapdeal = isListedOnSnapdeal;
310
    setIsListedOnSnapdealIsSet(true);
311
    this.transferPrice = transferPrice;
312
    setTransferPriceIsSet(true);
313
    this.sellingPrice = sellingPrice;
314
    setSellingPriceIsSet(true);
315
    this.courierCost = courierCost;
316
    setCourierCostIsSet(true);
317
    this.commission = commission;
318
    setCommissionIsSet(true);
319
    this.serviceTax = serviceTax;
320
    setServiceTaxIsSet(true);
321
    this.brand = brand;
322
    this.model_name = model_name;
323
    this.model_number = model_number;
324
    this.color = color;
325
    this.risky = risky;
326
    setRiskyIsSet(true);
327
    this.itemStatus = itemStatus;
328
    this.suppressPriceFeed = suppressPriceFeed;
329
    setSuppressPriceFeedIsSet(true);
330
    this.suppressInventoryFeed = suppressInventoryFeed;
331
    setSuppressInventoryFeedIsSet(true);
332
    this.weight = weight;
333
    setWeightIsSet(true);
334
    this.mrp = mrp;
335
    setMrpIsSet(true);
336
    this.websiteSellingPrice = websiteSellingPrice;
337
    setWebsiteSellingPriceIsSet(true);
9478 kshitij.so 338
    this.maxNlc = maxNlc;
339
    setMaxNlcIsSet(true);
9456 vikram.rag 340
    this.skuAtSnapdeal = skuAtSnapdeal;
9568 kshitij.so 341
    this.supc = supc;
9242 kshitij.so 342
  }
343
 
344
  /**
345
   * Performs a deep copy on <i>other</i>.
346
   */
347
  public SnapdealItemDetails(SnapdealItemDetails 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.isListedOnSnapdeal = other.isListedOnSnapdeal;
354
    this.transferPrice = other.transferPrice;
355
    this.sellingPrice = other.sellingPrice;
356
    this.courierCost = other.courierCost;
357
    this.commission = other.commission;
358
    this.serviceTax = other.serviceTax;
359
    if (other.isSetBrand()) {
360
      this.brand = other.brand;
361
    }
362
    if (other.isSetModel_name()) {
363
      this.model_name = other.model_name;
364
    }
365
    if (other.isSetModel_number()) {
366
      this.model_number = other.model_number;
367
    }
368
    if (other.isSetColor()) {
369
      this.color = other.color;
370
    }
371
    this.risky = other.risky;
372
    if (other.isSetItemStatus()) {
373
      this.itemStatus = other.itemStatus;
374
    }
375
    this.suppressPriceFeed = other.suppressPriceFeed;
376
    this.suppressInventoryFeed = other.suppressInventoryFeed;
377
    this.weight = other.weight;
378
    this.mrp = other.mrp;
379
    this.websiteSellingPrice = other.websiteSellingPrice;
9478 kshitij.so 380
    this.maxNlc = other.maxNlc;
9456 vikram.rag 381
    if (other.isSetSkuAtSnapdeal()) {
382
      this.skuAtSnapdeal = other.skuAtSnapdeal;
383
    }
9568 kshitij.so 384
    if (other.isSetSupc()) {
385
      this.supc = other.supc;
386
    }
9242 kshitij.so 387
  }
388
 
389
  public SnapdealItemDetails deepCopy() {
390
    return new SnapdealItemDetails(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
    setIsListedOnSnapdealIsSet(false);
402
    this.isListedOnSnapdeal = false;
403
    setTransferPriceIsSet(false);
404
    this.transferPrice = 0.0;
405
    setSellingPriceIsSet(false);
406
    this.sellingPrice = 0.0;
407
    setCourierCostIsSet(false);
408
    this.courierCost = 0.0;
409
    setCommissionIsSet(false);
410
    this.commission = 0.0;
411
    setServiceTaxIsSet(false);
412
    this.serviceTax = 0.0;
413
    this.brand = null;
414
    this.model_name = null;
415
    this.model_number = null;
416
    this.color = null;
417
    setRiskyIsSet(false);
418
    this.risky = false;
419
    this.itemStatus = null;
420
    setSuppressPriceFeedIsSet(false);
421
    this.suppressPriceFeed = false;
422
    setSuppressInventoryFeedIsSet(false);
423
    this.suppressInventoryFeed = false;
424
    setWeightIsSet(false);
425
    this.weight = 0.0;
426
    setMrpIsSet(false);
427
    this.mrp = 0.0;
428
    setWebsiteSellingPriceIsSet(false);
429
    this.websiteSellingPrice = 0.0;
9478 kshitij.so 430
    setMaxNlcIsSet(false);
431
    this.maxNlc = 0.0;
9456 vikram.rag 432
    this.skuAtSnapdeal = null;
9568 kshitij.so 433
    this.supc = null;
9242 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 isIsListedOnSnapdeal() {
503
    return this.isListedOnSnapdeal;
504
  }
505
 
506
  public void setIsListedOnSnapdeal(boolean isListedOnSnapdeal) {
507
    this.isListedOnSnapdeal = isListedOnSnapdeal;
508
    setIsListedOnSnapdealIsSet(true);
509
  }
510
 
511
  public void unsetIsListedOnSnapdeal() {
512
    __isset_bit_vector.clear(__ISLISTEDONSNAPDEAL_ISSET_ID);
513
  }
514
 
515
  /** Returns true if field isListedOnSnapdeal is set (has been assigned a value) and false otherwise */
516
  public boolean isSetIsListedOnSnapdeal() {
517
    return __isset_bit_vector.get(__ISLISTEDONSNAPDEAL_ISSET_ID);
518
  }
519
 
520
  public void setIsListedOnSnapdealIsSet(boolean value) {
521
    __isset_bit_vector.set(__ISLISTEDONSNAPDEAL_ISSET_ID, value);
522
  }
523
 
524
  public double getTransferPrice() {
525
    return this.transferPrice;
526
  }
527
 
528
  public void setTransferPrice(double transferPrice) {
529
    this.transferPrice = transferPrice;
530
    setTransferPriceIsSet(true);
531
  }
532
 
533
  public void unsetTransferPrice() {
534
    __isset_bit_vector.clear(__TRANSFERPRICE_ISSET_ID);
535
  }
536
 
537
  /** Returns true if field transferPrice is set (has been assigned a value) and false otherwise */
538
  public boolean isSetTransferPrice() {
539
    return __isset_bit_vector.get(__TRANSFERPRICE_ISSET_ID);
540
  }
541
 
542
  public void setTransferPriceIsSet(boolean value) {
543
    __isset_bit_vector.set(__TRANSFERPRICE_ISSET_ID, value);
544
  }
545
 
546
  public double getSellingPrice() {
547
    return this.sellingPrice;
548
  }
549
 
550
  public void setSellingPrice(double sellingPrice) {
551
    this.sellingPrice = sellingPrice;
552
    setSellingPriceIsSet(true);
553
  }
554
 
555
  public void unsetSellingPrice() {
556
    __isset_bit_vector.clear(__SELLINGPRICE_ISSET_ID);
557
  }
558
 
559
  /** Returns true if field sellingPrice is set (has been assigned a value) and false otherwise */
560
  public boolean isSetSellingPrice() {
561
    return __isset_bit_vector.get(__SELLINGPRICE_ISSET_ID);
562
  }
563
 
564
  public void setSellingPriceIsSet(boolean value) {
565
    __isset_bit_vector.set(__SELLINGPRICE_ISSET_ID, value);
566
  }
567
 
568
  public double getCourierCost() {
569
    return this.courierCost;
570
  }
571
 
572
  public void setCourierCost(double courierCost) {
573
    this.courierCost = courierCost;
574
    setCourierCostIsSet(true);
575
  }
576
 
577
  public void unsetCourierCost() {
578
    __isset_bit_vector.clear(__COURIERCOST_ISSET_ID);
579
  }
580
 
581
  /** Returns true if field courierCost is set (has been assigned a value) and false otherwise */
582
  public boolean isSetCourierCost() {
583
    return __isset_bit_vector.get(__COURIERCOST_ISSET_ID);
584
  }
585
 
586
  public void setCourierCostIsSet(boolean value) {
587
    __isset_bit_vector.set(__COURIERCOST_ISSET_ID, value);
588
  }
589
 
590
  public double getCommission() {
591
    return this.commission;
592
  }
593
 
594
  public void setCommission(double commission) {
595
    this.commission = commission;
596
    setCommissionIsSet(true);
597
  }
598
 
599
  public void unsetCommission() {
600
    __isset_bit_vector.clear(__COMMISSION_ISSET_ID);
601
  }
602
 
603
  /** Returns true if field commission is set (has been assigned a value) and false otherwise */
604
  public boolean isSetCommission() {
605
    return __isset_bit_vector.get(__COMMISSION_ISSET_ID);
606
  }
607
 
608
  public void setCommissionIsSet(boolean value) {
609
    __isset_bit_vector.set(__COMMISSION_ISSET_ID, value);
610
  }
611
 
612
  public double getServiceTax() {
613
    return this.serviceTax;
614
  }
615
 
616
  public void setServiceTax(double serviceTax) {
617
    this.serviceTax = serviceTax;
618
    setServiceTaxIsSet(true);
619
  }
620
 
621
  public void unsetServiceTax() {
622
    __isset_bit_vector.clear(__SERVICETAX_ISSET_ID);
623
  }
624
 
625
  /** Returns true if field serviceTax is set (has been assigned a value) and false otherwise */
626
  public boolean isSetServiceTax() {
627
    return __isset_bit_vector.get(__SERVICETAX_ISSET_ID);
628
  }
629
 
630
  public void setServiceTaxIsSet(boolean value) {
631
    __isset_bit_vector.set(__SERVICETAX_ISSET_ID, value);
632
  }
633
 
634
  public String getBrand() {
635
    return this.brand;
636
  }
637
 
638
  public void setBrand(String brand) {
639
    this.brand = brand;
640
  }
641
 
642
  public void unsetBrand() {
643
    this.brand = null;
644
  }
645
 
646
  /** Returns true if field brand is set (has been assigned a value) and false otherwise */
647
  public boolean isSetBrand() {
648
    return this.brand != null;
649
  }
650
 
651
  public void setBrandIsSet(boolean value) {
652
    if (!value) {
653
      this.brand = null;
654
    }
655
  }
656
 
657
  public String getModel_name() {
658
    return this.model_name;
659
  }
660
 
661
  public void setModel_name(String model_name) {
662
    this.model_name = model_name;
663
  }
664
 
665
  public void unsetModel_name() {
666
    this.model_name = null;
667
  }
668
 
669
  /** Returns true if field model_name is set (has been assigned a value) and false otherwise */
670
  public boolean isSetModel_name() {
671
    return this.model_name != null;
672
  }
673
 
674
  public void setModel_nameIsSet(boolean value) {
675
    if (!value) {
676
      this.model_name = null;
677
    }
678
  }
679
 
680
  public String getModel_number() {
681
    return this.model_number;
682
  }
683
 
684
  public void setModel_number(String model_number) {
685
    this.model_number = model_number;
686
  }
687
 
688
  public void unsetModel_number() {
689
    this.model_number = null;
690
  }
691
 
692
  /** Returns true if field model_number is set (has been assigned a value) and false otherwise */
693
  public boolean isSetModel_number() {
694
    return this.model_number != null;
695
  }
696
 
697
  public void setModel_numberIsSet(boolean value) {
698
    if (!value) {
699
      this.model_number = null;
700
    }
701
  }
702
 
703
  public String getColor() {
704
    return this.color;
705
  }
706
 
707
  public void setColor(String color) {
708
    this.color = color;
709
  }
710
 
711
  public void unsetColor() {
712
    this.color = null;
713
  }
714
 
715
  /** Returns true if field color is set (has been assigned a value) and false otherwise */
716
  public boolean isSetColor() {
717
    return this.color != null;
718
  }
719
 
720
  public void setColorIsSet(boolean value) {
721
    if (!value) {
722
      this.color = null;
723
    }
724
  }
725
 
726
  public boolean isRisky() {
727
    return this.risky;
728
  }
729
 
730
  public void setRisky(boolean risky) {
731
    this.risky = risky;
732
    setRiskyIsSet(true);
733
  }
734
 
735
  public void unsetRisky() {
736
    __isset_bit_vector.clear(__RISKY_ISSET_ID);
737
  }
738
 
739
  /** Returns true if field risky is set (has been assigned a value) and false otherwise */
740
  public boolean isSetRisky() {
741
    return __isset_bit_vector.get(__RISKY_ISSET_ID);
742
  }
743
 
744
  public void setRiskyIsSet(boolean value) {
745
    __isset_bit_vector.set(__RISKY_ISSET_ID, value);
746
  }
747
 
748
  /**
749
   * 
750
   * @see status
751
   */
752
  public status getItemStatus() {
753
    return this.itemStatus;
754
  }
755
 
756
  /**
757
   * 
758
   * @see status
759
   */
760
  public void setItemStatus(status itemStatus) {
761
    this.itemStatus = itemStatus;
762
  }
763
 
764
  public void unsetItemStatus() {
765
    this.itemStatus = null;
766
  }
767
 
768
  /** Returns true if field itemStatus is set (has been assigned a value) and false otherwise */
769
  public boolean isSetItemStatus() {
770
    return this.itemStatus != null;
771
  }
772
 
773
  public void setItemStatusIsSet(boolean value) {
774
    if (!value) {
775
      this.itemStatus = null;
776
    }
777
  }
778
 
779
  public boolean isSuppressPriceFeed() {
780
    return this.suppressPriceFeed;
781
  }
782
 
783
  public void setSuppressPriceFeed(boolean suppressPriceFeed) {
784
    this.suppressPriceFeed = suppressPriceFeed;
785
    setSuppressPriceFeedIsSet(true);
786
  }
787
 
788
  public void unsetSuppressPriceFeed() {
789
    __isset_bit_vector.clear(__SUPPRESSPRICEFEED_ISSET_ID);
790
  }
791
 
792
  /** Returns true if field suppressPriceFeed is set (has been assigned a value) and false otherwise */
793
  public boolean isSetSuppressPriceFeed() {
794
    return __isset_bit_vector.get(__SUPPRESSPRICEFEED_ISSET_ID);
795
  }
796
 
797
  public void setSuppressPriceFeedIsSet(boolean value) {
798
    __isset_bit_vector.set(__SUPPRESSPRICEFEED_ISSET_ID, value);
799
  }
800
 
801
  public boolean isSuppressInventoryFeed() {
802
    return this.suppressInventoryFeed;
803
  }
804
 
805
  public void setSuppressInventoryFeed(boolean suppressInventoryFeed) {
806
    this.suppressInventoryFeed = suppressInventoryFeed;
807
    setSuppressInventoryFeedIsSet(true);
808
  }
809
 
810
  public void unsetSuppressInventoryFeed() {
811
    __isset_bit_vector.clear(__SUPPRESSINVENTORYFEED_ISSET_ID);
812
  }
813
 
814
  /** Returns true if field suppressInventoryFeed is set (has been assigned a value) and false otherwise */
815
  public boolean isSetSuppressInventoryFeed() {
816
    return __isset_bit_vector.get(__SUPPRESSINVENTORYFEED_ISSET_ID);
817
  }
818
 
819
  public void setSuppressInventoryFeedIsSet(boolean value) {
820
    __isset_bit_vector.set(__SUPPRESSINVENTORYFEED_ISSET_ID, value);
821
  }
822
 
823
  public double getWeight() {
824
    return this.weight;
825
  }
826
 
827
  public void setWeight(double weight) {
828
    this.weight = weight;
829
    setWeightIsSet(true);
830
  }
831
 
832
  public void unsetWeight() {
833
    __isset_bit_vector.clear(__WEIGHT_ISSET_ID);
834
  }
835
 
836
  /** Returns true if field weight is set (has been assigned a value) and false otherwise */
837
  public boolean isSetWeight() {
838
    return __isset_bit_vector.get(__WEIGHT_ISSET_ID);
839
  }
840
 
841
  public void setWeightIsSet(boolean value) {
842
    __isset_bit_vector.set(__WEIGHT_ISSET_ID, value);
843
  }
844
 
845
  public double getMrp() {
846
    return this.mrp;
847
  }
848
 
849
  public void setMrp(double mrp) {
850
    this.mrp = mrp;
851
    setMrpIsSet(true);
852
  }
853
 
854
  public void unsetMrp() {
855
    __isset_bit_vector.clear(__MRP_ISSET_ID);
856
  }
857
 
858
  /** Returns true if field mrp is set (has been assigned a value) and false otherwise */
859
  public boolean isSetMrp() {
860
    return __isset_bit_vector.get(__MRP_ISSET_ID);
861
  }
862
 
863
  public void setMrpIsSet(boolean value) {
864
    __isset_bit_vector.set(__MRP_ISSET_ID, value);
865
  }
866
 
867
  public double getWebsiteSellingPrice() {
868
    return this.websiteSellingPrice;
869
  }
870
 
871
  public void setWebsiteSellingPrice(double websiteSellingPrice) {
872
    this.websiteSellingPrice = websiteSellingPrice;
873
    setWebsiteSellingPriceIsSet(true);
874
  }
875
 
876
  public void unsetWebsiteSellingPrice() {
877
    __isset_bit_vector.clear(__WEBSITESELLINGPRICE_ISSET_ID);
878
  }
879
 
880
  /** Returns true if field websiteSellingPrice is set (has been assigned a value) and false otherwise */
881
  public boolean isSetWebsiteSellingPrice() {
882
    return __isset_bit_vector.get(__WEBSITESELLINGPRICE_ISSET_ID);
883
  }
884
 
885
  public void setWebsiteSellingPriceIsSet(boolean value) {
886
    __isset_bit_vector.set(__WEBSITESELLINGPRICE_ISSET_ID, value);
887
  }
888
 
9478 kshitij.so 889
  public double getMaxNlc() {
890
    return this.maxNlc;
891
  }
892
 
893
  public void setMaxNlc(double maxNlc) {
894
    this.maxNlc = maxNlc;
895
    setMaxNlcIsSet(true);
896
  }
897
 
898
  public void unsetMaxNlc() {
899
    __isset_bit_vector.clear(__MAXNLC_ISSET_ID);
900
  }
901
 
902
  /** Returns true if field maxNlc is set (has been assigned a value) and false otherwise */
903
  public boolean isSetMaxNlc() {
904
    return __isset_bit_vector.get(__MAXNLC_ISSET_ID);
905
  }
906
 
907
  public void setMaxNlcIsSet(boolean value) {
908
    __isset_bit_vector.set(__MAXNLC_ISSET_ID, value);
909
  }
910
 
9456 vikram.rag 911
  public String getSkuAtSnapdeal() {
912
    return this.skuAtSnapdeal;
913
  }
914
 
915
  public void setSkuAtSnapdeal(String skuAtSnapdeal) {
916
    this.skuAtSnapdeal = skuAtSnapdeal;
917
  }
918
 
919
  public void unsetSkuAtSnapdeal() {
920
    this.skuAtSnapdeal = null;
921
  }
922
 
923
  /** Returns true if field skuAtSnapdeal is set (has been assigned a value) and false otherwise */
924
  public boolean isSetSkuAtSnapdeal() {
925
    return this.skuAtSnapdeal != null;
926
  }
927
 
928
  public void setSkuAtSnapdealIsSet(boolean value) {
929
    if (!value) {
930
      this.skuAtSnapdeal = null;
931
    }
932
  }
933
 
9568 kshitij.so 934
  public String getSupc() {
935
    return this.supc;
936
  }
937
 
938
  public void setSupc(String supc) {
939
    this.supc = supc;
940
  }
941
 
942
  public void unsetSupc() {
943
    this.supc = null;
944
  }
945
 
946
  /** Returns true if field supc is set (has been assigned a value) and false otherwise */
947
  public boolean isSetSupc() {
948
    return this.supc != null;
949
  }
950
 
951
  public void setSupcIsSet(boolean value) {
952
    if (!value) {
953
      this.supc = null;
954
    }
955
  }
956
 
9242 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_SNAPDEAL:
984
      if (value == null) {
985
        unsetIsListedOnSnapdeal();
986
      } else {
987
        setIsListedOnSnapdeal((Boolean)value);
988
      }
989
      break;
990
 
991
    case TRANSFER_PRICE:
992
      if (value == null) {
993
        unsetTransferPrice();
994
      } else {
995
        setTransferPrice((Double)value);
996
      }
997
      break;
998
 
999
    case SELLING_PRICE:
1000
      if (value == null) {
1001
        unsetSellingPrice();
1002
      } else {
1003
        setSellingPrice((Double)value);
1004
      }
1005
      break;
1006
 
1007
    case COURIER_COST:
1008
      if (value == null) {
1009
        unsetCourierCost();
1010
      } else {
1011
        setCourierCost((Double)value);
1012
      }
1013
      break;
1014
 
1015
    case COMMISSION:
1016
      if (value == null) {
1017
        unsetCommission();
1018
      } else {
1019
        setCommission((Double)value);
1020
      }
1021
      break;
1022
 
1023
    case SERVICE_TAX:
1024
      if (value == null) {
1025
        unsetServiceTax();
1026
      } else {
1027
        setServiceTax((Double)value);
1028
      }
1029
      break;
1030
 
1031
    case BRAND:
1032
      if (value == null) {
1033
        unsetBrand();
1034
      } else {
1035
        setBrand((String)value);
1036
      }
1037
      break;
1038
 
1039
    case MODEL_NAME:
1040
      if (value == null) {
1041
        unsetModel_name();
1042
      } else {
1043
        setModel_name((String)value);
1044
      }
1045
      break;
1046
 
1047
    case MODEL_NUMBER:
1048
      if (value == null) {
1049
        unsetModel_number();
1050
      } else {
1051
        setModel_number((String)value);
1052
      }
1053
      break;
1054
 
1055
    case COLOR:
1056
      if (value == null) {
1057
        unsetColor();
1058
      } else {
1059
        setColor((String)value);
1060
      }
1061
      break;
1062
 
1063
    case RISKY:
1064
      if (value == null) {
1065
        unsetRisky();
1066
      } else {
1067
        setRisky((Boolean)value);
1068
      }
1069
      break;
1070
 
1071
    case ITEM_STATUS:
1072
      if (value == null) {
1073
        unsetItemStatus();
1074
      } else {
1075
        setItemStatus((status)value);
1076
      }
1077
      break;
1078
 
1079
    case SUPPRESS_PRICE_FEED:
1080
      if (value == null) {
1081
        unsetSuppressPriceFeed();
1082
      } else {
1083
        setSuppressPriceFeed((Boolean)value);
1084
      }
1085
      break;
1086
 
1087
    case SUPPRESS_INVENTORY_FEED:
1088
      if (value == null) {
1089
        unsetSuppressInventoryFeed();
1090
      } else {
1091
        setSuppressInventoryFeed((Boolean)value);
1092
      }
1093
      break;
1094
 
1095
    case WEIGHT:
1096
      if (value == null) {
1097
        unsetWeight();
1098
      } else {
1099
        setWeight((Double)value);
1100
      }
1101
      break;
1102
 
1103
    case MRP:
1104
      if (value == null) {
1105
        unsetMrp();
1106
      } else {
1107
        setMrp((Double)value);
1108
      }
1109
      break;
1110
 
1111
    case WEBSITE_SELLING_PRICE:
1112
      if (value == null) {
1113
        unsetWebsiteSellingPrice();
1114
      } else {
1115
        setWebsiteSellingPrice((Double)value);
1116
      }
1117
      break;
1118
 
9478 kshitij.so 1119
    case MAX_NLC:
1120
      if (value == null) {
1121
        unsetMaxNlc();
1122
      } else {
1123
        setMaxNlc((Double)value);
1124
      }
1125
      break;
1126
 
9456 vikram.rag 1127
    case SKU_AT_SNAPDEAL:
1128
      if (value == null) {
1129
        unsetSkuAtSnapdeal();
1130
      } else {
1131
        setSkuAtSnapdeal((String)value);
1132
      }
1133
      break;
1134
 
9568 kshitij.so 1135
    case SUPC:
1136
      if (value == null) {
1137
        unsetSupc();
1138
      } else {
1139
        setSupc((String)value);
1140
      }
1141
      break;
1142
 
9242 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_SNAPDEAL:
1158
      return Boolean.valueOf(isIsListedOnSnapdeal());
1159
 
1160
    case TRANSFER_PRICE:
1161
      return Double.valueOf(getTransferPrice());
1162
 
1163
    case SELLING_PRICE:
1164
      return Double.valueOf(getSellingPrice());
1165
 
1166
    case COURIER_COST:
1167
      return Double.valueOf(getCourierCost());
1168
 
1169
    case COMMISSION:
1170
      return Double.valueOf(getCommission());
1171
 
1172
    case SERVICE_TAX:
1173
      return Double.valueOf(getServiceTax());
1174
 
1175
    case BRAND:
1176
      return getBrand();
1177
 
1178
    case MODEL_NAME:
1179
      return getModel_name();
1180
 
1181
    case MODEL_NUMBER:
1182
      return getModel_number();
1183
 
1184
    case COLOR:
1185
      return getColor();
1186
 
1187
    case RISKY:
1188
      return Boolean.valueOf(isRisky());
1189
 
1190
    case ITEM_STATUS:
1191
      return getItemStatus();
1192
 
1193
    case SUPPRESS_PRICE_FEED:
1194
      return Boolean.valueOf(isSuppressPriceFeed());
1195
 
1196
    case SUPPRESS_INVENTORY_FEED:
1197
      return Boolean.valueOf(isSuppressInventoryFeed());
1198
 
1199
    case WEIGHT:
1200
      return Double.valueOf(getWeight());
1201
 
1202
    case MRP:
1203
      return Double.valueOf(getMrp());
1204
 
1205
    case WEBSITE_SELLING_PRICE:
1206
      return Double.valueOf(getWebsiteSellingPrice());
1207
 
9478 kshitij.so 1208
    case MAX_NLC:
1209
      return Double.valueOf(getMaxNlc());
1210
 
9456 vikram.rag 1211
    case SKU_AT_SNAPDEAL:
1212
      return getSkuAtSnapdeal();
1213
 
9568 kshitij.so 1214
    case SUPC:
1215
      return getSupc();
1216
 
9242 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_SNAPDEAL:
1235
      return isSetIsListedOnSnapdeal();
1236
    case TRANSFER_PRICE:
1237
      return isSetTransferPrice();
1238
    case SELLING_PRICE:
1239
      return isSetSellingPrice();
1240
    case COURIER_COST:
1241
      return isSetCourierCost();
1242
    case COMMISSION:
1243
      return isSetCommission();
1244
    case SERVICE_TAX:
1245
      return isSetServiceTax();
1246
    case BRAND:
1247
      return isSetBrand();
1248
    case MODEL_NAME:
1249
      return isSetModel_name();
1250
    case MODEL_NUMBER:
1251
      return isSetModel_number();
1252
    case COLOR:
1253
      return isSetColor();
1254
    case RISKY:
1255
      return isSetRisky();
1256
    case ITEM_STATUS:
1257
      return isSetItemStatus();
1258
    case SUPPRESS_PRICE_FEED:
1259
      return isSetSuppressPriceFeed();
1260
    case SUPPRESS_INVENTORY_FEED:
1261
      return isSetSuppressInventoryFeed();
1262
    case WEIGHT:
1263
      return isSetWeight();
1264
    case MRP:
1265
      return isSetMrp();
1266
    case WEBSITE_SELLING_PRICE:
1267
      return isSetWebsiteSellingPrice();
9478 kshitij.so 1268
    case MAX_NLC:
1269
      return isSetMaxNlc();
9456 vikram.rag 1270
    case SKU_AT_SNAPDEAL:
1271
      return isSetSkuAtSnapdeal();
9568 kshitij.so 1272
    case SUPC:
1273
      return isSetSupc();
9242 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 SnapdealItemDetails)
1283
      return this.equals((SnapdealItemDetails)that);
1284
    return false;
1285
  }
1286
 
1287
  public boolean equals(SnapdealItemDetails 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_isListedOnSnapdeal = true;
1319
    boolean that_present_isListedOnSnapdeal = true;
1320
    if (this_present_isListedOnSnapdeal || that_present_isListedOnSnapdeal) {
1321
      if (!(this_present_isListedOnSnapdeal && that_present_isListedOnSnapdeal))
1322
        return false;
1323
      if (this.isListedOnSnapdeal != that.isListedOnSnapdeal)
1324
        return false;
1325
    }
1326
 
1327
    boolean this_present_transferPrice = true;
1328
    boolean that_present_transferPrice = true;
1329
    if (this_present_transferPrice || that_present_transferPrice) {
1330
      if (!(this_present_transferPrice && that_present_transferPrice))
1331
        return false;
1332
      if (this.transferPrice != that.transferPrice)
1333
        return false;
1334
    }
1335
 
1336
    boolean this_present_sellingPrice = true;
1337
    boolean that_present_sellingPrice = true;
1338
    if (this_present_sellingPrice || that_present_sellingPrice) {
1339
      if (!(this_present_sellingPrice && that_present_sellingPrice))
1340
        return false;
1341
      if (this.sellingPrice != that.sellingPrice)
1342
        return false;
1343
    }
1344
 
1345
    boolean this_present_courierCost = true;
1346
    boolean that_present_courierCost = true;
1347
    if (this_present_courierCost || that_present_courierCost) {
1348
      if (!(this_present_courierCost && that_present_courierCost))
1349
        return false;
1350
      if (this.courierCost != that.courierCost)
1351
        return false;
1352
    }
1353
 
1354
    boolean this_present_commission = true;
1355
    boolean that_present_commission = true;
1356
    if (this_present_commission || that_present_commission) {
1357
      if (!(this_present_commission && that_present_commission))
1358
        return false;
1359
      if (this.commission != that.commission)
1360
        return false;
1361
    }
1362
 
1363
    boolean this_present_serviceTax = true;
1364
    boolean that_present_serviceTax = true;
1365
    if (this_present_serviceTax || that_present_serviceTax) {
1366
      if (!(this_present_serviceTax && that_present_serviceTax))
1367
        return false;
1368
      if (this.serviceTax != that.serviceTax)
1369
        return false;
1370
    }
1371
 
1372
    boolean this_present_brand = true && this.isSetBrand();
1373
    boolean that_present_brand = true && that.isSetBrand();
1374
    if (this_present_brand || that_present_brand) {
1375
      if (!(this_present_brand && that_present_brand))
1376
        return false;
1377
      if (!this.brand.equals(that.brand))
1378
        return false;
1379
    }
1380
 
1381
    boolean this_present_model_name = true && this.isSetModel_name();
1382
    boolean that_present_model_name = true && that.isSetModel_name();
1383
    if (this_present_model_name || that_present_model_name) {
1384
      if (!(this_present_model_name && that_present_model_name))
1385
        return false;
1386
      if (!this.model_name.equals(that.model_name))
1387
        return false;
1388
    }
1389
 
1390
    boolean this_present_model_number = true && this.isSetModel_number();
1391
    boolean that_present_model_number = true && that.isSetModel_number();
1392
    if (this_present_model_number || that_present_model_number) {
1393
      if (!(this_present_model_number && that_present_model_number))
1394
        return false;
1395
      if (!this.model_number.equals(that.model_number))
1396
        return false;
1397
    }
1398
 
1399
    boolean this_present_color = true && this.isSetColor();
1400
    boolean that_present_color = true && that.isSetColor();
1401
    if (this_present_color || that_present_color) {
1402
      if (!(this_present_color && that_present_color))
1403
        return false;
1404
      if (!this.color.equals(that.color))
1405
        return false;
1406
    }
1407
 
1408
    boolean this_present_risky = true;
1409
    boolean that_present_risky = true;
1410
    if (this_present_risky || that_present_risky) {
1411
      if (!(this_present_risky && that_present_risky))
1412
        return false;
1413
      if (this.risky != that.risky)
1414
        return false;
1415
    }
1416
 
1417
    boolean this_present_itemStatus = true && this.isSetItemStatus();
1418
    boolean that_present_itemStatus = true && that.isSetItemStatus();
1419
    if (this_present_itemStatus || that_present_itemStatus) {
1420
      if (!(this_present_itemStatus && that_present_itemStatus))
1421
        return false;
1422
      if (!this.itemStatus.equals(that.itemStatus))
1423
        return false;
1424
    }
1425
 
1426
    boolean this_present_suppressPriceFeed = true;
1427
    boolean that_present_suppressPriceFeed = true;
1428
    if (this_present_suppressPriceFeed || that_present_suppressPriceFeed) {
1429
      if (!(this_present_suppressPriceFeed && that_present_suppressPriceFeed))
1430
        return false;
1431
      if (this.suppressPriceFeed != that.suppressPriceFeed)
1432
        return false;
1433
    }
1434
 
1435
    boolean this_present_suppressInventoryFeed = true;
1436
    boolean that_present_suppressInventoryFeed = true;
1437
    if (this_present_suppressInventoryFeed || that_present_suppressInventoryFeed) {
1438
      if (!(this_present_suppressInventoryFeed && that_present_suppressInventoryFeed))
1439
        return false;
1440
      if (this.suppressInventoryFeed != that.suppressInventoryFeed)
1441
        return false;
1442
    }
1443
 
1444
    boolean this_present_weight = true;
1445
    boolean that_present_weight = true;
1446
    if (this_present_weight || that_present_weight) {
1447
      if (!(this_present_weight && that_present_weight))
1448
        return false;
1449
      if (this.weight != that.weight)
1450
        return false;
1451
    }
1452
 
1453
    boolean this_present_mrp = true;
1454
    boolean that_present_mrp = true;
1455
    if (this_present_mrp || that_present_mrp) {
1456
      if (!(this_present_mrp && that_present_mrp))
1457
        return false;
1458
      if (this.mrp != that.mrp)
1459
        return false;
1460
    }
1461
 
1462
    boolean this_present_websiteSellingPrice = true;
1463
    boolean that_present_websiteSellingPrice = true;
1464
    if (this_present_websiteSellingPrice || that_present_websiteSellingPrice) {
1465
      if (!(this_present_websiteSellingPrice && that_present_websiteSellingPrice))
1466
        return false;
1467
      if (this.websiteSellingPrice != that.websiteSellingPrice)
1468
        return false;
1469
    }
1470
 
9478 kshitij.so 1471
    boolean this_present_maxNlc = true;
1472
    boolean that_present_maxNlc = true;
1473
    if (this_present_maxNlc || that_present_maxNlc) {
1474
      if (!(this_present_maxNlc && that_present_maxNlc))
1475
        return false;
1476
      if (this.maxNlc != that.maxNlc)
1477
        return false;
1478
    }
1479
 
9456 vikram.rag 1480
    boolean this_present_skuAtSnapdeal = true && this.isSetSkuAtSnapdeal();
1481
    boolean that_present_skuAtSnapdeal = true && that.isSetSkuAtSnapdeal();
1482
    if (this_present_skuAtSnapdeal || that_present_skuAtSnapdeal) {
1483
      if (!(this_present_skuAtSnapdeal && that_present_skuAtSnapdeal))
1484
        return false;
1485
      if (!this.skuAtSnapdeal.equals(that.skuAtSnapdeal))
1486
        return false;
1487
    }
1488
 
9568 kshitij.so 1489
    boolean this_present_supc = true && this.isSetSupc();
1490
    boolean that_present_supc = true && that.isSetSupc();
1491
    if (this_present_supc || that_present_supc) {
1492
      if (!(this_present_supc && that_present_supc))
1493
        return false;
1494
      if (!this.supc.equals(that.supc))
1495
        return false;
1496
    }
1497
 
9242 kshitij.so 1498
    return true;
1499
  }
1500
 
1501
  @Override
1502
  public int hashCode() {
1503
    return 0;
1504
  }
1505
 
1506
  public int compareTo(SnapdealItemDetails other) {
1507
    if (!getClass().equals(other.getClass())) {
1508
      return getClass().getName().compareTo(other.getClass().getName());
1509
    }
1510
 
1511
    int lastComparison = 0;
1512
    SnapdealItemDetails typedOther = (SnapdealItemDetails)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(isSetIsListedOnSnapdeal()).compareTo(typedOther.isSetIsListedOnSnapdeal());
1545
    if (lastComparison != 0) {
1546
      return lastComparison;
1547
    }
1548
    if (isSetIsListedOnSnapdeal()) {
1549
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isListedOnSnapdeal, typedOther.isListedOnSnapdeal);
1550
      if (lastComparison != 0) {
1551
        return lastComparison;
1552
      }
1553
    }
1554
    lastComparison = Boolean.valueOf(isSetTransferPrice()).compareTo(typedOther.isSetTransferPrice());
1555
    if (lastComparison != 0) {
1556
      return lastComparison;
1557
    }
1558
    if (isSetTransferPrice()) {
1559
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferPrice, typedOther.transferPrice);
1560
      if (lastComparison != 0) {
1561
        return lastComparison;
1562
      }
1563
    }
1564
    lastComparison = Boolean.valueOf(isSetSellingPrice()).compareTo(typedOther.isSetSellingPrice());
1565
    if (lastComparison != 0) {
1566
      return lastComparison;
1567
    }
1568
    if (isSetSellingPrice()) {
1569
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sellingPrice, typedOther.sellingPrice);
1570
      if (lastComparison != 0) {
1571
        return lastComparison;
1572
      }
1573
    }
1574
    lastComparison = Boolean.valueOf(isSetCourierCost()).compareTo(typedOther.isSetCourierCost());
1575
    if (lastComparison != 0) {
1576
      return lastComparison;
1577
    }
1578
    if (isSetCourierCost()) {
1579
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.courierCost, typedOther.courierCost);
1580
      if (lastComparison != 0) {
1581
        return lastComparison;
1582
      }
1583
    }
1584
    lastComparison = Boolean.valueOf(isSetCommission()).compareTo(typedOther.isSetCommission());
1585
    if (lastComparison != 0) {
1586
      return lastComparison;
1587
    }
1588
    if (isSetCommission()) {
1589
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.commission, typedOther.commission);
1590
      if (lastComparison != 0) {
1591
        return lastComparison;
1592
      }
1593
    }
1594
    lastComparison = Boolean.valueOf(isSetServiceTax()).compareTo(typedOther.isSetServiceTax());
1595
    if (lastComparison != 0) {
1596
      return lastComparison;
1597
    }
1598
    if (isSetServiceTax()) {
1599
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceTax, typedOther.serviceTax);
1600
      if (lastComparison != 0) {
1601
        return lastComparison;
1602
      }
1603
    }
1604
    lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
1605
    if (lastComparison != 0) {
1606
      return lastComparison;
1607
    }
1608
    if (isSetBrand()) {
1609
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
1610
      if (lastComparison != 0) {
1611
        return lastComparison;
1612
      }
1613
    }
1614
    lastComparison = Boolean.valueOf(isSetModel_name()).compareTo(typedOther.isSetModel_name());
1615
    if (lastComparison != 0) {
1616
      return lastComparison;
1617
    }
1618
    if (isSetModel_name()) {
1619
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.model_name, typedOther.model_name);
1620
      if (lastComparison != 0) {
1621
        return lastComparison;
1622
      }
1623
    }
1624
    lastComparison = Boolean.valueOf(isSetModel_number()).compareTo(typedOther.isSetModel_number());
1625
    if (lastComparison != 0) {
1626
      return lastComparison;
1627
    }
1628
    if (isSetModel_number()) {
1629
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.model_number, typedOther.model_number);
1630
      if (lastComparison != 0) {
1631
        return lastComparison;
1632
      }
1633
    }
1634
    lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());
1635
    if (lastComparison != 0) {
1636
      return lastComparison;
1637
    }
1638
    if (isSetColor()) {
1639
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);
1640
      if (lastComparison != 0) {
1641
        return lastComparison;
1642
      }
1643
    }
1644
    lastComparison = Boolean.valueOf(isSetRisky()).compareTo(typedOther.isSetRisky());
1645
    if (lastComparison != 0) {
1646
      return lastComparison;
1647
    }
1648
    if (isSetRisky()) {
1649
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.risky, typedOther.risky);
1650
      if (lastComparison != 0) {
1651
        return lastComparison;
1652
      }
1653
    }
1654
    lastComparison = Boolean.valueOf(isSetItemStatus()).compareTo(typedOther.isSetItemStatus());
1655
    if (lastComparison != 0) {
1656
      return lastComparison;
1657
    }
1658
    if (isSetItemStatus()) {
1659
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemStatus, typedOther.itemStatus);
1660
      if (lastComparison != 0) {
1661
        return lastComparison;
1662
      }
1663
    }
1664
    lastComparison = Boolean.valueOf(isSetSuppressPriceFeed()).compareTo(typedOther.isSetSuppressPriceFeed());
1665
    if (lastComparison != 0) {
1666
      return lastComparison;
1667
    }
1668
    if (isSetSuppressPriceFeed()) {
1669
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suppressPriceFeed, typedOther.suppressPriceFeed);
1670
      if (lastComparison != 0) {
1671
        return lastComparison;
1672
      }
1673
    }
1674
    lastComparison = Boolean.valueOf(isSetSuppressInventoryFeed()).compareTo(typedOther.isSetSuppressInventoryFeed());
1675
    if (lastComparison != 0) {
1676
      return lastComparison;
1677
    }
1678
    if (isSetSuppressInventoryFeed()) {
1679
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suppressInventoryFeed, typedOther.suppressInventoryFeed);
1680
      if (lastComparison != 0) {
1681
        return lastComparison;
1682
      }
1683
    }
1684
    lastComparison = Boolean.valueOf(isSetWeight()).compareTo(typedOther.isSetWeight());
1685
    if (lastComparison != 0) {
1686
      return lastComparison;
1687
    }
1688
    if (isSetWeight()) {
1689
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.weight, typedOther.weight);
1690
      if (lastComparison != 0) {
1691
        return lastComparison;
1692
      }
1693
    }
1694
    lastComparison = Boolean.valueOf(isSetMrp()).compareTo(typedOther.isSetMrp());
1695
    if (lastComparison != 0) {
1696
      return lastComparison;
1697
    }
1698
    if (isSetMrp()) {
1699
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mrp, typedOther.mrp);
1700
      if (lastComparison != 0) {
1701
        return lastComparison;
1702
      }
1703
    }
1704
    lastComparison = Boolean.valueOf(isSetWebsiteSellingPrice()).compareTo(typedOther.isSetWebsiteSellingPrice());
1705
    if (lastComparison != 0) {
1706
      return lastComparison;
1707
    }
1708
    if (isSetWebsiteSellingPrice()) {
1709
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.websiteSellingPrice, typedOther.websiteSellingPrice);
1710
      if (lastComparison != 0) {
1711
        return lastComparison;
1712
      }
1713
    }
9478 kshitij.so 1714
    lastComparison = Boolean.valueOf(isSetMaxNlc()).compareTo(typedOther.isSetMaxNlc());
1715
    if (lastComparison != 0) {
1716
      return lastComparison;
1717
    }
1718
    if (isSetMaxNlc()) {
1719
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxNlc, typedOther.maxNlc);
1720
      if (lastComparison != 0) {
1721
        return lastComparison;
1722
      }
1723
    }
9456 vikram.rag 1724
    lastComparison = Boolean.valueOf(isSetSkuAtSnapdeal()).compareTo(typedOther.isSetSkuAtSnapdeal());
1725
    if (lastComparison != 0) {
1726
      return lastComparison;
1727
    }
1728
    if (isSetSkuAtSnapdeal()) {
1729
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skuAtSnapdeal, typedOther.skuAtSnapdeal);
1730
      if (lastComparison != 0) {
1731
        return lastComparison;
1732
      }
1733
    }
9568 kshitij.so 1734
    lastComparison = Boolean.valueOf(isSetSupc()).compareTo(typedOther.isSetSupc());
1735
    if (lastComparison != 0) {
1736
      return lastComparison;
1737
    }
1738
    if (isSetSupc()) {
1739
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.supc, typedOther.supc);
1740
      if (lastComparison != 0) {
1741
        return lastComparison;
1742
      }
1743
    }
9242 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_SNAPDEAL
1786
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1787
            this.isListedOnSnapdeal = iprot.readBool();
1788
            setIsListedOnSnapdealIsSet(true);
1789
          } else { 
1790
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1791
          }
1792
          break;
1793
        case 5: // TRANSFER_PRICE
1794
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1795
            this.transferPrice = iprot.readDouble();
1796
            setTransferPriceIsSet(true);
1797
          } else { 
1798
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1799
          }
1800
          break;
1801
        case 6: // SELLING_PRICE
1802
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1803
            this.sellingPrice = iprot.readDouble();
1804
            setSellingPriceIsSet(true);
1805
          } else { 
1806
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1807
          }
1808
          break;
1809
        case 7: // COURIER_COST
1810
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1811
            this.courierCost = iprot.readDouble();
1812
            setCourierCostIsSet(true);
1813
          } else { 
1814
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1815
          }
1816
          break;
1817
        case 8: // COMMISSION
1818
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1819
            this.commission = iprot.readDouble();
1820
            setCommissionIsSet(true);
1821
          } else { 
1822
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1823
          }
1824
          break;
1825
        case 9: // SERVICE_TAX
1826
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1827
            this.serviceTax = iprot.readDouble();
1828
            setServiceTaxIsSet(true);
1829
          } else { 
1830
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1831
          }
1832
          break;
1833
        case 10: // BRAND
1834
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1835
            this.brand = iprot.readString();
1836
          } else { 
1837
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1838
          }
1839
          break;
1840
        case 11: // MODEL_NAME
1841
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1842
            this.model_name = iprot.readString();
1843
          } else { 
1844
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1845
          }
1846
          break;
1847
        case 12: // MODEL_NUMBER
1848
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1849
            this.model_number = iprot.readString();
1850
          } else { 
1851
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1852
          }
1853
          break;
1854
        case 13: // COLOR
1855
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1856
            this.color = iprot.readString();
1857
          } else { 
1858
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1859
          }
1860
          break;
1861
        case 14: // RISKY
1862
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1863
            this.risky = iprot.readBool();
1864
            setRiskyIsSet(true);
1865
          } else { 
1866
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1867
          }
1868
          break;
1869
        case 15: // ITEM_STATUS
1870
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1871
            this.itemStatus = status.findByValue(iprot.readI32());
1872
          } else { 
1873
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1874
          }
1875
          break;
1876
        case 16: // SUPPRESS_PRICE_FEED
1877
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1878
            this.suppressPriceFeed = iprot.readBool();
1879
            setSuppressPriceFeedIsSet(true);
1880
          } else { 
1881
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1882
          }
1883
          break;
1884
        case 17: // SUPPRESS_INVENTORY_FEED
1885
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1886
            this.suppressInventoryFeed = iprot.readBool();
1887
            setSuppressInventoryFeedIsSet(true);
1888
          } else { 
1889
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1890
          }
1891
          break;
1892
        case 18: // WEIGHT
1893
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1894
            this.weight = iprot.readDouble();
1895
            setWeightIsSet(true);
1896
          } else { 
1897
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1898
          }
1899
          break;
1900
        case 19: // MRP
1901
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1902
            this.mrp = iprot.readDouble();
1903
            setMrpIsSet(true);
1904
          } else { 
1905
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1906
          }
1907
          break;
1908
        case 20: // WEBSITE_SELLING_PRICE
1909
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1910
            this.websiteSellingPrice = iprot.readDouble();
1911
            setWebsiteSellingPriceIsSet(true);
1912
          } else { 
1913
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1914
          }
1915
          break;
9478 kshitij.so 1916
        case 21: // MAX_NLC
1917
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1918
            this.maxNlc = iprot.readDouble();
1919
            setMaxNlcIsSet(true);
1920
          } else { 
1921
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1922
          }
1923
          break;
1924
        case 22: // SKU_AT_SNAPDEAL
9456 vikram.rag 1925
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1926
            this.skuAtSnapdeal = iprot.readString();
1927
          } else { 
1928
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1929
          }
1930
          break;
9568 kshitij.so 1931
        case 23: // SUPC
1932
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1933
            this.supc = iprot.readString();
1934
          } else { 
1935
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1936
          }
1937
          break;
9242 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_SNAPDEAL_FIELD_DESC);
1961
    oprot.writeBool(this.isListedOnSnapdeal);
1962
    oprot.writeFieldEnd();
1963
    oprot.writeFieldBegin(TRANSFER_PRICE_FIELD_DESC);
1964
    oprot.writeDouble(this.transferPrice);
1965
    oprot.writeFieldEnd();
1966
    oprot.writeFieldBegin(SELLING_PRICE_FIELD_DESC);
1967
    oprot.writeDouble(this.sellingPrice);
1968
    oprot.writeFieldEnd();
1969
    oprot.writeFieldBegin(COURIER_COST_FIELD_DESC);
1970
    oprot.writeDouble(this.courierCost);
1971
    oprot.writeFieldEnd();
1972
    oprot.writeFieldBegin(COMMISSION_FIELD_DESC);
1973
    oprot.writeDouble(this.commission);
1974
    oprot.writeFieldEnd();
1975
    oprot.writeFieldBegin(SERVICE_TAX_FIELD_DESC);
1976
    oprot.writeDouble(this.serviceTax);
1977
    oprot.writeFieldEnd();
1978
    if (this.brand != null) {
1979
      oprot.writeFieldBegin(BRAND_FIELD_DESC);
1980
      oprot.writeString(this.brand);
1981
      oprot.writeFieldEnd();
1982
    }
1983
    if (this.model_name != null) {
1984
      oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);
1985
      oprot.writeString(this.model_name);
1986
      oprot.writeFieldEnd();
1987
    }
1988
    if (this.model_number != null) {
1989
      oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
1990
      oprot.writeString(this.model_number);
1991
      oprot.writeFieldEnd();
1992
    }
1993
    if (this.color != null) {
1994
      oprot.writeFieldBegin(COLOR_FIELD_DESC);
1995
      oprot.writeString(this.color);
1996
      oprot.writeFieldEnd();
1997
    }
1998
    oprot.writeFieldBegin(RISKY_FIELD_DESC);
1999
    oprot.writeBool(this.risky);
2000
    oprot.writeFieldEnd();
2001
    if (this.itemStatus != null) {
2002
      oprot.writeFieldBegin(ITEM_STATUS_FIELD_DESC);
2003
      oprot.writeI32(this.itemStatus.getValue());
2004
      oprot.writeFieldEnd();
2005
    }
2006
    oprot.writeFieldBegin(SUPPRESS_PRICE_FEED_FIELD_DESC);
2007
    oprot.writeBool(this.suppressPriceFeed);
2008
    oprot.writeFieldEnd();
2009
    oprot.writeFieldBegin(SUPPRESS_INVENTORY_FEED_FIELD_DESC);
2010
    oprot.writeBool(this.suppressInventoryFeed);
2011
    oprot.writeFieldEnd();
2012
    oprot.writeFieldBegin(WEIGHT_FIELD_DESC);
2013
    oprot.writeDouble(this.weight);
2014
    oprot.writeFieldEnd();
2015
    oprot.writeFieldBegin(MRP_FIELD_DESC);
2016
    oprot.writeDouble(this.mrp);
2017
    oprot.writeFieldEnd();
2018
    oprot.writeFieldBegin(WEBSITE_SELLING_PRICE_FIELD_DESC);
2019
    oprot.writeDouble(this.websiteSellingPrice);
2020
    oprot.writeFieldEnd();
9478 kshitij.so 2021
    oprot.writeFieldBegin(MAX_NLC_FIELD_DESC);
2022
    oprot.writeDouble(this.maxNlc);
2023
    oprot.writeFieldEnd();
9456 vikram.rag 2024
    if (this.skuAtSnapdeal != null) {
2025
      oprot.writeFieldBegin(SKU_AT_SNAPDEAL_FIELD_DESC);
2026
      oprot.writeString(this.skuAtSnapdeal);
2027
      oprot.writeFieldEnd();
2028
    }
9568 kshitij.so 2029
    if (this.supc != null) {
2030
      oprot.writeFieldBegin(SUPC_FIELD_DESC);
2031
      oprot.writeString(this.supc);
2032
      oprot.writeFieldEnd();
2033
    }
9242 kshitij.so 2034
    oprot.writeFieldStop();
2035
    oprot.writeStructEnd();
2036
  }
2037
 
2038
  @Override
2039
  public String toString() {
2040
    StringBuilder sb = new StringBuilder("SnapdealItemDetails(");
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("isListedOnSnapdeal:");
2056
    sb.append(this.isListedOnSnapdeal);
2057
    first = false;
2058
    if (!first) sb.append(", ");
2059
    sb.append("transferPrice:");
2060
    sb.append(this.transferPrice);
2061
    first = false;
2062
    if (!first) sb.append(", ");
2063
    sb.append("sellingPrice:");
2064
    sb.append(this.sellingPrice);
2065
    first = false;
2066
    if (!first) sb.append(", ");
2067
    sb.append("courierCost:");
2068
    sb.append(this.courierCost);
2069
    first = false;
2070
    if (!first) sb.append(", ");
2071
    sb.append("commission:");
2072
    sb.append(this.commission);
2073
    first = false;
2074
    if (!first) sb.append(", ");
2075
    sb.append("serviceTax:");
2076
    sb.append(this.serviceTax);
2077
    first = false;
2078
    if (!first) sb.append(", ");
2079
    sb.append("brand:");
2080
    if (this.brand == null) {
2081
      sb.append("null");
2082
    } else {
2083
      sb.append(this.brand);
2084
    }
2085
    first = false;
2086
    if (!first) sb.append(", ");
2087
    sb.append("model_name:");
2088
    if (this.model_name == null) {
2089
      sb.append("null");
2090
    } else {
2091
      sb.append(this.model_name);
2092
    }
2093
    first = false;
2094
    if (!first) sb.append(", ");
2095
    sb.append("model_number:");
2096
    if (this.model_number == null) {
2097
      sb.append("null");
2098
    } else {
2099
      sb.append(this.model_number);
2100
    }
2101
    first = false;
2102
    if (!first) sb.append(", ");
2103
    sb.append("color:");
2104
    if (this.color == null) {
2105
      sb.append("null");
2106
    } else {
2107
      sb.append(this.color);
2108
    }
2109
    first = false;
2110
    if (!first) sb.append(", ");
2111
    sb.append("risky:");
2112
    sb.append(this.risky);
2113
    first = false;
2114
    if (!first) sb.append(", ");
2115
    sb.append("itemStatus:");
2116
    if (this.itemStatus == null) {
2117
      sb.append("null");
2118
    } else {
2119
      sb.append(this.itemStatus);
2120
    }
2121
    first = false;
2122
    if (!first) sb.append(", ");
2123
    sb.append("suppressPriceFeed:");
2124
    sb.append(this.suppressPriceFeed);
2125
    first = false;
2126
    if (!first) sb.append(", ");
2127
    sb.append("suppressInventoryFeed:");
2128
    sb.append(this.suppressInventoryFeed);
2129
    first = false;
2130
    if (!first) sb.append(", ");
2131
    sb.append("weight:");
2132
    sb.append(this.weight);
2133
    first = false;
2134
    if (!first) sb.append(", ");
2135
    sb.append("mrp:");
2136
    sb.append(this.mrp);
2137
    first = false;
2138
    if (!first) sb.append(", ");
2139
    sb.append("websiteSellingPrice:");
2140
    sb.append(this.websiteSellingPrice);
2141
    first = false;
9456 vikram.rag 2142
    if (!first) sb.append(", ");
9478 kshitij.so 2143
    sb.append("maxNlc:");
2144
    sb.append(this.maxNlc);
2145
    first = false;
2146
    if (!first) sb.append(", ");
9456 vikram.rag 2147
    sb.append("skuAtSnapdeal:");
2148
    if (this.skuAtSnapdeal == null) {
2149
      sb.append("null");
2150
    } else {
2151
      sb.append(this.skuAtSnapdeal);
2152
    }
2153
    first = false;
9568 kshitij.so 2154
    if (!first) sb.append(", ");
2155
    sb.append("supc:");
2156
    if (this.supc == null) {
2157
      sb.append("null");
2158
    } else {
2159
      sb.append(this.supc);
2160
    }
2161
    first = false;
9242 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