Subversion Repositories SmartDukaan

Rev

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