Subversion Repositories SmartDukaan

Rev

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

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