Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
8739 vikram.rag 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 SnapdealItem implements org.apache.thrift.TBase<SnapdealItem, SnapdealItem._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SnapdealItem");
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);
9242 kshitij.so 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 SUPPRESS_PRICE_FEED_FIELD_DESC = new org.apache.thrift.protocol.TField("suppressPriceFeed", org.apache.thrift.protocol.TType.BOOL, (short)10);
36
  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)11);
9404 vikram.rag 37
  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)12);
9456 vikram.rag 38
  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)13);
9568 kshitij.so 39
  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)14);
9724 kshitij.so 40
  private static final org.apache.thrift.protocol.TField SHIPPING_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("shippingTime", org.apache.thrift.protocol.TType.STRING, (short)15);
9779 kshitij.so 41
  private static final org.apache.thrift.protocol.TField UPDATED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("updatedBy", org.apache.thrift.protocol.TType.STRING, (short)16);
42
  private static final org.apache.thrift.protocol.TField MARKETPLACE_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("marketplaceItems", org.apache.thrift.protocol.TType.STRUCT, (short)17);
11095 kshitij.so 43
  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)18);
8739 vikram.rag 44
 
45
  private long item_id; // required
46
  private long warehouseId; // required
47
  private double exceptionPrice; // required
48
  private boolean isListedOnSnapdeal; // required
9242 kshitij.so 49
  private double transferPrice; // required
50
  private double sellingPrice; // required
51
  private double courierCost; // required
52
  private double commission; // required
53
  private double serviceTax; // required
54
  private boolean suppressPriceFeed; // required
55
  private boolean suppressInventoryFeed; // required
9404 vikram.rag 56
  private double maxNlc; // required
9456 vikram.rag 57
  private String skuAtSnapdeal; // required
9568 kshitij.so 58
  private String supc; // required
9724 kshitij.so 59
  private String shippingTime; // required
9779 kshitij.so 60
  private String updatedBy; // required
61
  private MarketplaceItems marketplaceItems; // required
11095 kshitij.so 62
  private double courierCostMarketplace; // required
8739 vikram.rag 63
 
64
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
65
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
66
    ITEM_ID((short)1, "item_id"),
67
    WAREHOUSE_ID((short)2, "warehouseId"),
68
    EXCEPTION_PRICE((short)3, "exceptionPrice"),
9242 kshitij.so 69
    IS_LISTED_ON_SNAPDEAL((short)4, "isListedOnSnapdeal"),
70
    TRANSFER_PRICE((short)5, "transferPrice"),
71
    SELLING_PRICE((short)6, "sellingPrice"),
72
    COURIER_COST((short)7, "courierCost"),
73
    COMMISSION((short)8, "commission"),
74
    SERVICE_TAX((short)9, "serviceTax"),
75
    SUPPRESS_PRICE_FEED((short)10, "suppressPriceFeed"),
9404 vikram.rag 76
    SUPPRESS_INVENTORY_FEED((short)11, "suppressInventoryFeed"),
9456 vikram.rag 77
    MAX_NLC((short)12, "maxNlc"),
9568 kshitij.so 78
    SKU_AT_SNAPDEAL((short)13, "skuAtSnapdeal"),
9724 kshitij.so 79
    SUPC((short)14, "supc"),
9779 kshitij.so 80
    SHIPPING_TIME((short)15, "shippingTime"),
81
    UPDATED_BY((short)16, "updatedBy"),
11095 kshitij.so 82
    MARKETPLACE_ITEMS((short)17, "marketplaceItems"),
83
    COURIER_COST_MARKETPLACE((short)18, "courierCostMarketplace");
8739 vikram.rag 84
 
85
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
86
 
87
    static {
88
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
89
        byName.put(field.getFieldName(), field);
90
      }
91
    }
92
 
93
    /**
94
     * Find the _Fields constant that matches fieldId, or null if its not found.
95
     */
96
    public static _Fields findByThriftId(int fieldId) {
97
      switch(fieldId) {
98
        case 1: // ITEM_ID
99
          return ITEM_ID;
100
        case 2: // WAREHOUSE_ID
101
          return WAREHOUSE_ID;
102
        case 3: // EXCEPTION_PRICE
103
          return EXCEPTION_PRICE;
104
        case 4: // IS_LISTED_ON_SNAPDEAL
105
          return IS_LISTED_ON_SNAPDEAL;
9242 kshitij.so 106
        case 5: // TRANSFER_PRICE
107
          return TRANSFER_PRICE;
108
        case 6: // SELLING_PRICE
109
          return SELLING_PRICE;
110
        case 7: // COURIER_COST
111
          return COURIER_COST;
112
        case 8: // COMMISSION
113
          return COMMISSION;
114
        case 9: // SERVICE_TAX
115
          return SERVICE_TAX;
116
        case 10: // SUPPRESS_PRICE_FEED
117
          return SUPPRESS_PRICE_FEED;
118
        case 11: // SUPPRESS_INVENTORY_FEED
119
          return SUPPRESS_INVENTORY_FEED;
9404 vikram.rag 120
        case 12: // MAX_NLC
121
          return MAX_NLC;
9456 vikram.rag 122
        case 13: // SKU_AT_SNAPDEAL
123
          return SKU_AT_SNAPDEAL;
9568 kshitij.so 124
        case 14: // SUPC
125
          return SUPC;
9724 kshitij.so 126
        case 15: // SHIPPING_TIME
127
          return SHIPPING_TIME;
9779 kshitij.so 128
        case 16: // UPDATED_BY
129
          return UPDATED_BY;
130
        case 17: // MARKETPLACE_ITEMS
131
          return MARKETPLACE_ITEMS;
11095 kshitij.so 132
        case 18: // COURIER_COST_MARKETPLACE
133
          return COURIER_COST_MARKETPLACE;
8739 vikram.rag 134
        default:
135
          return null;
136
      }
137
    }
138
 
139
    /**
140
     * Find the _Fields constant that matches fieldId, throwing an exception
141
     * if it is not found.
142
     */
143
    public static _Fields findByThriftIdOrThrow(int fieldId) {
144
      _Fields fields = findByThriftId(fieldId);
145
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
146
      return fields;
147
    }
148
 
149
    /**
150
     * Find the _Fields constant that matches name, or null if its not found.
151
     */
152
    public static _Fields findByName(String name) {
153
      return byName.get(name);
154
    }
155
 
156
    private final short _thriftId;
157
    private final String _fieldName;
158
 
159
    _Fields(short thriftId, String fieldName) {
160
      _thriftId = thriftId;
161
      _fieldName = fieldName;
162
    }
163
 
164
    public short getThriftFieldId() {
165
      return _thriftId;
166
    }
167
 
168
    public String getFieldName() {
169
      return _fieldName;
170
    }
171
  }
172
 
173
  // isset id assignments
174
  private static final int __ITEM_ID_ISSET_ID = 0;
175
  private static final int __WAREHOUSEID_ISSET_ID = 1;
176
  private static final int __EXCEPTIONPRICE_ISSET_ID = 2;
177
  private static final int __ISLISTEDONSNAPDEAL_ISSET_ID = 3;
9242 kshitij.so 178
  private static final int __TRANSFERPRICE_ISSET_ID = 4;
179
  private static final int __SELLINGPRICE_ISSET_ID = 5;
180
  private static final int __COURIERCOST_ISSET_ID = 6;
181
  private static final int __COMMISSION_ISSET_ID = 7;
182
  private static final int __SERVICETAX_ISSET_ID = 8;
183
  private static final int __SUPPRESSPRICEFEED_ISSET_ID = 9;
184
  private static final int __SUPPRESSINVENTORYFEED_ISSET_ID = 10;
9404 vikram.rag 185
  private static final int __MAXNLC_ISSET_ID = 11;
11095 kshitij.so 186
  private static final int __COURIERCOSTMARKETPLACE_ISSET_ID = 12;
187
  private BitSet __isset_bit_vector = new BitSet(13);
8739 vikram.rag 188
 
189
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
190
  static {
191
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
192
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
193
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
194
    tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
195
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
196
    tmpMap.put(_Fields.EXCEPTION_PRICE, new org.apache.thrift.meta_data.FieldMetaData("exceptionPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
197
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
198
    tmpMap.put(_Fields.IS_LISTED_ON_SNAPDEAL, new org.apache.thrift.meta_data.FieldMetaData("isListedOnSnapdeal", org.apache.thrift.TFieldRequirementType.DEFAULT, 
199
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9242 kshitij.so 200
    tmpMap.put(_Fields.TRANSFER_PRICE, new org.apache.thrift.meta_data.FieldMetaData("transferPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
201
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
202
    tmpMap.put(_Fields.SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("sellingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
203
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
204
    tmpMap.put(_Fields.COURIER_COST, new org.apache.thrift.meta_data.FieldMetaData("courierCost", org.apache.thrift.TFieldRequirementType.DEFAULT, 
205
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
206
    tmpMap.put(_Fields.COMMISSION, new org.apache.thrift.meta_data.FieldMetaData("commission", org.apache.thrift.TFieldRequirementType.DEFAULT, 
207
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
208
    tmpMap.put(_Fields.SERVICE_TAX, new org.apache.thrift.meta_data.FieldMetaData("serviceTax", org.apache.thrift.TFieldRequirementType.DEFAULT, 
209
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
210
    tmpMap.put(_Fields.SUPPRESS_PRICE_FEED, new org.apache.thrift.meta_data.FieldMetaData("suppressPriceFeed", org.apache.thrift.TFieldRequirementType.DEFAULT, 
211
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
212
    tmpMap.put(_Fields.SUPPRESS_INVENTORY_FEED, new org.apache.thrift.meta_data.FieldMetaData("suppressInventoryFeed", org.apache.thrift.TFieldRequirementType.DEFAULT, 
213
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9404 vikram.rag 214
    tmpMap.put(_Fields.MAX_NLC, new org.apache.thrift.meta_data.FieldMetaData("maxNlc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
215
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
9456 vikram.rag 216
    tmpMap.put(_Fields.SKU_AT_SNAPDEAL, new org.apache.thrift.meta_data.FieldMetaData("skuAtSnapdeal", org.apache.thrift.TFieldRequirementType.DEFAULT, 
217
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9568 kshitij.so 218
    tmpMap.put(_Fields.SUPC, new org.apache.thrift.meta_data.FieldMetaData("supc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
219
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9724 kshitij.so 220
    tmpMap.put(_Fields.SHIPPING_TIME, new org.apache.thrift.meta_data.FieldMetaData("shippingTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
221
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9779 kshitij.so 222
    tmpMap.put(_Fields.UPDATED_BY, new org.apache.thrift.meta_data.FieldMetaData("updatedBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
223
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
224
    tmpMap.put(_Fields.MARKETPLACE_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("marketplaceItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
225
        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MarketplaceItems.class)));
11095 kshitij.so 226
    tmpMap.put(_Fields.COURIER_COST_MARKETPLACE, new org.apache.thrift.meta_data.FieldMetaData("courierCostMarketplace", org.apache.thrift.TFieldRequirementType.DEFAULT, 
227
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
8739 vikram.rag 228
    metaDataMap = Collections.unmodifiableMap(tmpMap);
229
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SnapdealItem.class, metaDataMap);
230
  }
231
 
232
  public SnapdealItem() {
233
  }
234
 
235
  public SnapdealItem(
236
    long item_id,
237
    long warehouseId,
238
    double exceptionPrice,
9242 kshitij.so 239
    boolean isListedOnSnapdeal,
240
    double transferPrice,
241
    double sellingPrice,
242
    double courierCost,
243
    double commission,
244
    double serviceTax,
245
    boolean suppressPriceFeed,
9404 vikram.rag 246
    boolean suppressInventoryFeed,
9456 vikram.rag 247
    double maxNlc,
9568 kshitij.so 248
    String skuAtSnapdeal,
9724 kshitij.so 249
    String supc,
9779 kshitij.so 250
    String shippingTime,
251
    String updatedBy,
11095 kshitij.so 252
    MarketplaceItems marketplaceItems,
253
    double courierCostMarketplace)
8739 vikram.rag 254
  {
255
    this();
256
    this.item_id = item_id;
257
    setItem_idIsSet(true);
258
    this.warehouseId = warehouseId;
259
    setWarehouseIdIsSet(true);
260
    this.exceptionPrice = exceptionPrice;
261
    setExceptionPriceIsSet(true);
262
    this.isListedOnSnapdeal = isListedOnSnapdeal;
263
    setIsListedOnSnapdealIsSet(true);
9242 kshitij.so 264
    this.transferPrice = transferPrice;
265
    setTransferPriceIsSet(true);
266
    this.sellingPrice = sellingPrice;
267
    setSellingPriceIsSet(true);
268
    this.courierCost = courierCost;
269
    setCourierCostIsSet(true);
270
    this.commission = commission;
271
    setCommissionIsSet(true);
272
    this.serviceTax = serviceTax;
273
    setServiceTaxIsSet(true);
274
    this.suppressPriceFeed = suppressPriceFeed;
275
    setSuppressPriceFeedIsSet(true);
276
    this.suppressInventoryFeed = suppressInventoryFeed;
277
    setSuppressInventoryFeedIsSet(true);
9404 vikram.rag 278
    this.maxNlc = maxNlc;
279
    setMaxNlcIsSet(true);
9456 vikram.rag 280
    this.skuAtSnapdeal = skuAtSnapdeal;
9568 kshitij.so 281
    this.supc = supc;
9724 kshitij.so 282
    this.shippingTime = shippingTime;
9779 kshitij.so 283
    this.updatedBy = updatedBy;
284
    this.marketplaceItems = marketplaceItems;
11095 kshitij.so 285
    this.courierCostMarketplace = courierCostMarketplace;
286
    setCourierCostMarketplaceIsSet(true);
8739 vikram.rag 287
  }
288
 
289
  /**
290
   * Performs a deep copy on <i>other</i>.
291
   */
292
  public SnapdealItem(SnapdealItem other) {
293
    __isset_bit_vector.clear();
294
    __isset_bit_vector.or(other.__isset_bit_vector);
295
    this.item_id = other.item_id;
296
    this.warehouseId = other.warehouseId;
297
    this.exceptionPrice = other.exceptionPrice;
298
    this.isListedOnSnapdeal = other.isListedOnSnapdeal;
9242 kshitij.so 299
    this.transferPrice = other.transferPrice;
300
    this.sellingPrice = other.sellingPrice;
301
    this.courierCost = other.courierCost;
302
    this.commission = other.commission;
303
    this.serviceTax = other.serviceTax;
304
    this.suppressPriceFeed = other.suppressPriceFeed;
305
    this.suppressInventoryFeed = other.suppressInventoryFeed;
9404 vikram.rag 306
    this.maxNlc = other.maxNlc;
9456 vikram.rag 307
    if (other.isSetSkuAtSnapdeal()) {
308
      this.skuAtSnapdeal = other.skuAtSnapdeal;
309
    }
9568 kshitij.so 310
    if (other.isSetSupc()) {
311
      this.supc = other.supc;
312
    }
9724 kshitij.so 313
    if (other.isSetShippingTime()) {
314
      this.shippingTime = other.shippingTime;
315
    }
9779 kshitij.so 316
    if (other.isSetUpdatedBy()) {
317
      this.updatedBy = other.updatedBy;
318
    }
319
    if (other.isSetMarketplaceItems()) {
320
      this.marketplaceItems = new MarketplaceItems(other.marketplaceItems);
321
    }
11095 kshitij.so 322
    this.courierCostMarketplace = other.courierCostMarketplace;
8739 vikram.rag 323
  }
324
 
325
  public SnapdealItem deepCopy() {
326
    return new SnapdealItem(this);
327
  }
328
 
329
  @Override
330
  public void clear() {
331
    setItem_idIsSet(false);
332
    this.item_id = 0;
333
    setWarehouseIdIsSet(false);
334
    this.warehouseId = 0;
335
    setExceptionPriceIsSet(false);
336
    this.exceptionPrice = 0.0;
337
    setIsListedOnSnapdealIsSet(false);
338
    this.isListedOnSnapdeal = false;
9242 kshitij.so 339
    setTransferPriceIsSet(false);
340
    this.transferPrice = 0.0;
341
    setSellingPriceIsSet(false);
342
    this.sellingPrice = 0.0;
343
    setCourierCostIsSet(false);
344
    this.courierCost = 0.0;
345
    setCommissionIsSet(false);
346
    this.commission = 0.0;
347
    setServiceTaxIsSet(false);
348
    this.serviceTax = 0.0;
349
    setSuppressPriceFeedIsSet(false);
350
    this.suppressPriceFeed = false;
351
    setSuppressInventoryFeedIsSet(false);
352
    this.suppressInventoryFeed = false;
9404 vikram.rag 353
    setMaxNlcIsSet(false);
354
    this.maxNlc = 0.0;
9456 vikram.rag 355
    this.skuAtSnapdeal = null;
9568 kshitij.so 356
    this.supc = null;
9724 kshitij.so 357
    this.shippingTime = null;
9779 kshitij.so 358
    this.updatedBy = null;
359
    this.marketplaceItems = null;
11095 kshitij.so 360
    setCourierCostMarketplaceIsSet(false);
361
    this.courierCostMarketplace = 0.0;
8739 vikram.rag 362
  }
363
 
364
  public long getItem_id() {
365
    return this.item_id;
366
  }
367
 
368
  public void setItem_id(long item_id) {
369
    this.item_id = item_id;
370
    setItem_idIsSet(true);
371
  }
372
 
373
  public void unsetItem_id() {
374
    __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
375
  }
376
 
377
  /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
378
  public boolean isSetItem_id() {
379
    return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
380
  }
381
 
382
  public void setItem_idIsSet(boolean value) {
383
    __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
384
  }
385
 
386
  public long getWarehouseId() {
387
    return this.warehouseId;
388
  }
389
 
390
  public void setWarehouseId(long warehouseId) {
391
    this.warehouseId = warehouseId;
392
    setWarehouseIdIsSet(true);
393
  }
394
 
395
  public void unsetWarehouseId() {
396
    __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
397
  }
398
 
399
  /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
400
  public boolean isSetWarehouseId() {
401
    return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
402
  }
403
 
404
  public void setWarehouseIdIsSet(boolean value) {
405
    __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
406
  }
407
 
408
  public double getExceptionPrice() {
409
    return this.exceptionPrice;
410
  }
411
 
412
  public void setExceptionPrice(double exceptionPrice) {
413
    this.exceptionPrice = exceptionPrice;
414
    setExceptionPriceIsSet(true);
415
  }
416
 
417
  public void unsetExceptionPrice() {
418
    __isset_bit_vector.clear(__EXCEPTIONPRICE_ISSET_ID);
419
  }
420
 
421
  /** Returns true if field exceptionPrice is set (has been assigned a value) and false otherwise */
422
  public boolean isSetExceptionPrice() {
423
    return __isset_bit_vector.get(__EXCEPTIONPRICE_ISSET_ID);
424
  }
425
 
426
  public void setExceptionPriceIsSet(boolean value) {
427
    __isset_bit_vector.set(__EXCEPTIONPRICE_ISSET_ID, value);
428
  }
429
 
430
  public boolean isIsListedOnSnapdeal() {
431
    return this.isListedOnSnapdeal;
432
  }
433
 
434
  public void setIsListedOnSnapdeal(boolean isListedOnSnapdeal) {
435
    this.isListedOnSnapdeal = isListedOnSnapdeal;
436
    setIsListedOnSnapdealIsSet(true);
437
  }
438
 
439
  public void unsetIsListedOnSnapdeal() {
440
    __isset_bit_vector.clear(__ISLISTEDONSNAPDEAL_ISSET_ID);
441
  }
442
 
443
  /** Returns true if field isListedOnSnapdeal is set (has been assigned a value) and false otherwise */
444
  public boolean isSetIsListedOnSnapdeal() {
445
    return __isset_bit_vector.get(__ISLISTEDONSNAPDEAL_ISSET_ID);
446
  }
447
 
448
  public void setIsListedOnSnapdealIsSet(boolean value) {
449
    __isset_bit_vector.set(__ISLISTEDONSNAPDEAL_ISSET_ID, value);
450
  }
451
 
9242 kshitij.so 452
  public double getTransferPrice() {
453
    return this.transferPrice;
454
  }
455
 
456
  public void setTransferPrice(double transferPrice) {
457
    this.transferPrice = transferPrice;
458
    setTransferPriceIsSet(true);
459
  }
460
 
461
  public void unsetTransferPrice() {
462
    __isset_bit_vector.clear(__TRANSFERPRICE_ISSET_ID);
463
  }
464
 
465
  /** Returns true if field transferPrice is set (has been assigned a value) and false otherwise */
466
  public boolean isSetTransferPrice() {
467
    return __isset_bit_vector.get(__TRANSFERPRICE_ISSET_ID);
468
  }
469
 
470
  public void setTransferPriceIsSet(boolean value) {
471
    __isset_bit_vector.set(__TRANSFERPRICE_ISSET_ID, value);
472
  }
473
 
474
  public double getSellingPrice() {
475
    return this.sellingPrice;
476
  }
477
 
478
  public void setSellingPrice(double sellingPrice) {
479
    this.sellingPrice = sellingPrice;
480
    setSellingPriceIsSet(true);
481
  }
482
 
483
  public void unsetSellingPrice() {
484
    __isset_bit_vector.clear(__SELLINGPRICE_ISSET_ID);
485
  }
486
 
487
  /** Returns true if field sellingPrice is set (has been assigned a value) and false otherwise */
488
  public boolean isSetSellingPrice() {
489
    return __isset_bit_vector.get(__SELLINGPRICE_ISSET_ID);
490
  }
491
 
492
  public void setSellingPriceIsSet(boolean value) {
493
    __isset_bit_vector.set(__SELLINGPRICE_ISSET_ID, value);
494
  }
495
 
496
  public double getCourierCost() {
497
    return this.courierCost;
498
  }
499
 
500
  public void setCourierCost(double courierCost) {
501
    this.courierCost = courierCost;
502
    setCourierCostIsSet(true);
503
  }
504
 
505
  public void unsetCourierCost() {
506
    __isset_bit_vector.clear(__COURIERCOST_ISSET_ID);
507
  }
508
 
509
  /** Returns true if field courierCost is set (has been assigned a value) and false otherwise */
510
  public boolean isSetCourierCost() {
511
    return __isset_bit_vector.get(__COURIERCOST_ISSET_ID);
512
  }
513
 
514
  public void setCourierCostIsSet(boolean value) {
515
    __isset_bit_vector.set(__COURIERCOST_ISSET_ID, value);
516
  }
517
 
518
  public double getCommission() {
519
    return this.commission;
520
  }
521
 
522
  public void setCommission(double commission) {
523
    this.commission = commission;
524
    setCommissionIsSet(true);
525
  }
526
 
527
  public void unsetCommission() {
528
    __isset_bit_vector.clear(__COMMISSION_ISSET_ID);
529
  }
530
 
531
  /** Returns true if field commission is set (has been assigned a value) and false otherwise */
532
  public boolean isSetCommission() {
533
    return __isset_bit_vector.get(__COMMISSION_ISSET_ID);
534
  }
535
 
536
  public void setCommissionIsSet(boolean value) {
537
    __isset_bit_vector.set(__COMMISSION_ISSET_ID, value);
538
  }
539
 
540
  public double getServiceTax() {
541
    return this.serviceTax;
542
  }
543
 
544
  public void setServiceTax(double serviceTax) {
545
    this.serviceTax = serviceTax;
546
    setServiceTaxIsSet(true);
547
  }
548
 
549
  public void unsetServiceTax() {
550
    __isset_bit_vector.clear(__SERVICETAX_ISSET_ID);
551
  }
552
 
553
  /** Returns true if field serviceTax is set (has been assigned a value) and false otherwise */
554
  public boolean isSetServiceTax() {
555
    return __isset_bit_vector.get(__SERVICETAX_ISSET_ID);
556
  }
557
 
558
  public void setServiceTaxIsSet(boolean value) {
559
    __isset_bit_vector.set(__SERVICETAX_ISSET_ID, value);
560
  }
561
 
562
  public boolean isSuppressPriceFeed() {
563
    return this.suppressPriceFeed;
564
  }
565
 
566
  public void setSuppressPriceFeed(boolean suppressPriceFeed) {
567
    this.suppressPriceFeed = suppressPriceFeed;
568
    setSuppressPriceFeedIsSet(true);
569
  }
570
 
571
  public void unsetSuppressPriceFeed() {
572
    __isset_bit_vector.clear(__SUPPRESSPRICEFEED_ISSET_ID);
573
  }
574
 
575
  /** Returns true if field suppressPriceFeed is set (has been assigned a value) and false otherwise */
576
  public boolean isSetSuppressPriceFeed() {
577
    return __isset_bit_vector.get(__SUPPRESSPRICEFEED_ISSET_ID);
578
  }
579
 
580
  public void setSuppressPriceFeedIsSet(boolean value) {
581
    __isset_bit_vector.set(__SUPPRESSPRICEFEED_ISSET_ID, value);
582
  }
583
 
584
  public boolean isSuppressInventoryFeed() {
585
    return this.suppressInventoryFeed;
586
  }
587
 
588
  public void setSuppressInventoryFeed(boolean suppressInventoryFeed) {
589
    this.suppressInventoryFeed = suppressInventoryFeed;
590
    setSuppressInventoryFeedIsSet(true);
591
  }
592
 
593
  public void unsetSuppressInventoryFeed() {
594
    __isset_bit_vector.clear(__SUPPRESSINVENTORYFEED_ISSET_ID);
595
  }
596
 
597
  /** Returns true if field suppressInventoryFeed is set (has been assigned a value) and false otherwise */
598
  public boolean isSetSuppressInventoryFeed() {
599
    return __isset_bit_vector.get(__SUPPRESSINVENTORYFEED_ISSET_ID);
600
  }
601
 
602
  public void setSuppressInventoryFeedIsSet(boolean value) {
603
    __isset_bit_vector.set(__SUPPRESSINVENTORYFEED_ISSET_ID, value);
604
  }
605
 
9404 vikram.rag 606
  public double getMaxNlc() {
607
    return this.maxNlc;
608
  }
609
 
610
  public void setMaxNlc(double maxNlc) {
611
    this.maxNlc = maxNlc;
612
    setMaxNlcIsSet(true);
613
  }
614
 
615
  public void unsetMaxNlc() {
616
    __isset_bit_vector.clear(__MAXNLC_ISSET_ID);
617
  }
618
 
619
  /** Returns true if field maxNlc is set (has been assigned a value) and false otherwise */
620
  public boolean isSetMaxNlc() {
621
    return __isset_bit_vector.get(__MAXNLC_ISSET_ID);
622
  }
623
 
624
  public void setMaxNlcIsSet(boolean value) {
625
    __isset_bit_vector.set(__MAXNLC_ISSET_ID, value);
626
  }
627
 
9456 vikram.rag 628
  public String getSkuAtSnapdeal() {
629
    return this.skuAtSnapdeal;
630
  }
631
 
632
  public void setSkuAtSnapdeal(String skuAtSnapdeal) {
633
    this.skuAtSnapdeal = skuAtSnapdeal;
634
  }
635
 
636
  public void unsetSkuAtSnapdeal() {
637
    this.skuAtSnapdeal = null;
638
  }
639
 
640
  /** Returns true if field skuAtSnapdeal is set (has been assigned a value) and false otherwise */
641
  public boolean isSetSkuAtSnapdeal() {
642
    return this.skuAtSnapdeal != null;
643
  }
644
 
645
  public void setSkuAtSnapdealIsSet(boolean value) {
646
    if (!value) {
647
      this.skuAtSnapdeal = null;
648
    }
649
  }
650
 
9568 kshitij.so 651
  public String getSupc() {
652
    return this.supc;
653
  }
654
 
655
  public void setSupc(String supc) {
656
    this.supc = supc;
657
  }
658
 
659
  public void unsetSupc() {
660
    this.supc = null;
661
  }
662
 
663
  /** Returns true if field supc is set (has been assigned a value) and false otherwise */
664
  public boolean isSetSupc() {
665
    return this.supc != null;
666
  }
667
 
668
  public void setSupcIsSet(boolean value) {
669
    if (!value) {
670
      this.supc = null;
671
    }
672
  }
673
 
9724 kshitij.so 674
  public String getShippingTime() {
675
    return this.shippingTime;
676
  }
677
 
678
  public void setShippingTime(String shippingTime) {
679
    this.shippingTime = shippingTime;
680
  }
681
 
682
  public void unsetShippingTime() {
683
    this.shippingTime = null;
684
  }
685
 
686
  /** Returns true if field shippingTime is set (has been assigned a value) and false otherwise */
687
  public boolean isSetShippingTime() {
688
    return this.shippingTime != null;
689
  }
690
 
691
  public void setShippingTimeIsSet(boolean value) {
692
    if (!value) {
693
      this.shippingTime = null;
694
    }
695
  }
696
 
9779 kshitij.so 697
  public String getUpdatedBy() {
698
    return this.updatedBy;
699
  }
700
 
701
  public void setUpdatedBy(String updatedBy) {
702
    this.updatedBy = updatedBy;
703
  }
704
 
705
  public void unsetUpdatedBy() {
706
    this.updatedBy = null;
707
  }
708
 
709
  /** Returns true if field updatedBy is set (has been assigned a value) and false otherwise */
710
  public boolean isSetUpdatedBy() {
711
    return this.updatedBy != null;
712
  }
713
 
714
  public void setUpdatedByIsSet(boolean value) {
715
    if (!value) {
716
      this.updatedBy = null;
717
    }
718
  }
719
 
720
  public MarketplaceItems getMarketplaceItems() {
721
    return this.marketplaceItems;
722
  }
723
 
724
  public void setMarketplaceItems(MarketplaceItems marketplaceItems) {
725
    this.marketplaceItems = marketplaceItems;
726
  }
727
 
728
  public void unsetMarketplaceItems() {
729
    this.marketplaceItems = null;
730
  }
731
 
732
  /** Returns true if field marketplaceItems is set (has been assigned a value) and false otherwise */
733
  public boolean isSetMarketplaceItems() {
734
    return this.marketplaceItems != null;
735
  }
736
 
737
  public void setMarketplaceItemsIsSet(boolean value) {
738
    if (!value) {
739
      this.marketplaceItems = null;
740
    }
741
  }
742
 
11095 kshitij.so 743
  public double getCourierCostMarketplace() {
744
    return this.courierCostMarketplace;
745
  }
746
 
747
  public void setCourierCostMarketplace(double courierCostMarketplace) {
748
    this.courierCostMarketplace = courierCostMarketplace;
749
    setCourierCostMarketplaceIsSet(true);
750
  }
751
 
752
  public void unsetCourierCostMarketplace() {
753
    __isset_bit_vector.clear(__COURIERCOSTMARKETPLACE_ISSET_ID);
754
  }
755
 
756
  /** Returns true if field courierCostMarketplace is set (has been assigned a value) and false otherwise */
757
  public boolean isSetCourierCostMarketplace() {
758
    return __isset_bit_vector.get(__COURIERCOSTMARKETPLACE_ISSET_ID);
759
  }
760
 
761
  public void setCourierCostMarketplaceIsSet(boolean value) {
762
    __isset_bit_vector.set(__COURIERCOSTMARKETPLACE_ISSET_ID, value);
763
  }
764
 
8739 vikram.rag 765
  public void setFieldValue(_Fields field, Object value) {
766
    switch (field) {
767
    case ITEM_ID:
768
      if (value == null) {
769
        unsetItem_id();
770
      } else {
771
        setItem_id((Long)value);
772
      }
773
      break;
774
 
775
    case WAREHOUSE_ID:
776
      if (value == null) {
777
        unsetWarehouseId();
778
      } else {
779
        setWarehouseId((Long)value);
780
      }
781
      break;
782
 
783
    case EXCEPTION_PRICE:
784
      if (value == null) {
785
        unsetExceptionPrice();
786
      } else {
787
        setExceptionPrice((Double)value);
788
      }
789
      break;
790
 
791
    case IS_LISTED_ON_SNAPDEAL:
792
      if (value == null) {
793
        unsetIsListedOnSnapdeal();
794
      } else {
795
        setIsListedOnSnapdeal((Boolean)value);
796
      }
797
      break;
798
 
9242 kshitij.so 799
    case TRANSFER_PRICE:
800
      if (value == null) {
801
        unsetTransferPrice();
802
      } else {
803
        setTransferPrice((Double)value);
804
      }
805
      break;
806
 
807
    case SELLING_PRICE:
808
      if (value == null) {
809
        unsetSellingPrice();
810
      } else {
811
        setSellingPrice((Double)value);
812
      }
813
      break;
814
 
815
    case COURIER_COST:
816
      if (value == null) {
817
        unsetCourierCost();
818
      } else {
819
        setCourierCost((Double)value);
820
      }
821
      break;
822
 
823
    case COMMISSION:
824
      if (value == null) {
825
        unsetCommission();
826
      } else {
827
        setCommission((Double)value);
828
      }
829
      break;
830
 
831
    case SERVICE_TAX:
832
      if (value == null) {
833
        unsetServiceTax();
834
      } else {
835
        setServiceTax((Double)value);
836
      }
837
      break;
838
 
839
    case SUPPRESS_PRICE_FEED:
840
      if (value == null) {
841
        unsetSuppressPriceFeed();
842
      } else {
843
        setSuppressPriceFeed((Boolean)value);
844
      }
845
      break;
846
 
847
    case SUPPRESS_INVENTORY_FEED:
848
      if (value == null) {
849
        unsetSuppressInventoryFeed();
850
      } else {
851
        setSuppressInventoryFeed((Boolean)value);
852
      }
853
      break;
854
 
9404 vikram.rag 855
    case MAX_NLC:
856
      if (value == null) {
857
        unsetMaxNlc();
858
      } else {
859
        setMaxNlc((Double)value);
860
      }
861
      break;
862
 
9456 vikram.rag 863
    case SKU_AT_SNAPDEAL:
864
      if (value == null) {
865
        unsetSkuAtSnapdeal();
866
      } else {
867
        setSkuAtSnapdeal((String)value);
868
      }
869
      break;
870
 
9568 kshitij.so 871
    case SUPC:
872
      if (value == null) {
873
        unsetSupc();
874
      } else {
875
        setSupc((String)value);
876
      }
877
      break;
878
 
9724 kshitij.so 879
    case SHIPPING_TIME:
880
      if (value == null) {
881
        unsetShippingTime();
882
      } else {
883
        setShippingTime((String)value);
884
      }
885
      break;
886
 
9779 kshitij.so 887
    case UPDATED_BY:
888
      if (value == null) {
889
        unsetUpdatedBy();
890
      } else {
891
        setUpdatedBy((String)value);
892
      }
893
      break;
894
 
895
    case MARKETPLACE_ITEMS:
896
      if (value == null) {
897
        unsetMarketplaceItems();
898
      } else {
899
        setMarketplaceItems((MarketplaceItems)value);
900
      }
901
      break;
902
 
11095 kshitij.so 903
    case COURIER_COST_MARKETPLACE:
904
      if (value == null) {
905
        unsetCourierCostMarketplace();
906
      } else {
907
        setCourierCostMarketplace((Double)value);
908
      }
909
      break;
910
 
8739 vikram.rag 911
    }
912
  }
913
 
914
  public Object getFieldValue(_Fields field) {
915
    switch (field) {
916
    case ITEM_ID:
917
      return Long.valueOf(getItem_id());
918
 
919
    case WAREHOUSE_ID:
920
      return Long.valueOf(getWarehouseId());
921
 
922
    case EXCEPTION_PRICE:
923
      return Double.valueOf(getExceptionPrice());
924
 
925
    case IS_LISTED_ON_SNAPDEAL:
926
      return Boolean.valueOf(isIsListedOnSnapdeal());
927
 
9242 kshitij.so 928
    case TRANSFER_PRICE:
929
      return Double.valueOf(getTransferPrice());
930
 
931
    case SELLING_PRICE:
932
      return Double.valueOf(getSellingPrice());
933
 
934
    case COURIER_COST:
935
      return Double.valueOf(getCourierCost());
936
 
937
    case COMMISSION:
938
      return Double.valueOf(getCommission());
939
 
940
    case SERVICE_TAX:
941
      return Double.valueOf(getServiceTax());
942
 
943
    case SUPPRESS_PRICE_FEED:
944
      return Boolean.valueOf(isSuppressPriceFeed());
945
 
946
    case SUPPRESS_INVENTORY_FEED:
947
      return Boolean.valueOf(isSuppressInventoryFeed());
948
 
9404 vikram.rag 949
    case MAX_NLC:
950
      return Double.valueOf(getMaxNlc());
951
 
9456 vikram.rag 952
    case SKU_AT_SNAPDEAL:
953
      return getSkuAtSnapdeal();
954
 
9568 kshitij.so 955
    case SUPC:
956
      return getSupc();
957
 
9724 kshitij.so 958
    case SHIPPING_TIME:
959
      return getShippingTime();
960
 
9779 kshitij.so 961
    case UPDATED_BY:
962
      return getUpdatedBy();
963
 
964
    case MARKETPLACE_ITEMS:
965
      return getMarketplaceItems();
966
 
11095 kshitij.so 967
    case COURIER_COST_MARKETPLACE:
968
      return Double.valueOf(getCourierCostMarketplace());
969
 
8739 vikram.rag 970
    }
971
    throw new IllegalStateException();
972
  }
973
 
974
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
975
  public boolean isSet(_Fields field) {
976
    if (field == null) {
977
      throw new IllegalArgumentException();
978
    }
979
 
980
    switch (field) {
981
    case ITEM_ID:
982
      return isSetItem_id();
983
    case WAREHOUSE_ID:
984
      return isSetWarehouseId();
985
    case EXCEPTION_PRICE:
986
      return isSetExceptionPrice();
987
    case IS_LISTED_ON_SNAPDEAL:
988
      return isSetIsListedOnSnapdeal();
9242 kshitij.so 989
    case TRANSFER_PRICE:
990
      return isSetTransferPrice();
991
    case SELLING_PRICE:
992
      return isSetSellingPrice();
993
    case COURIER_COST:
994
      return isSetCourierCost();
995
    case COMMISSION:
996
      return isSetCommission();
997
    case SERVICE_TAX:
998
      return isSetServiceTax();
999
    case SUPPRESS_PRICE_FEED:
1000
      return isSetSuppressPriceFeed();
1001
    case SUPPRESS_INVENTORY_FEED:
1002
      return isSetSuppressInventoryFeed();
9404 vikram.rag 1003
    case MAX_NLC:
1004
      return isSetMaxNlc();
9456 vikram.rag 1005
    case SKU_AT_SNAPDEAL:
1006
      return isSetSkuAtSnapdeal();
9568 kshitij.so 1007
    case SUPC:
1008
      return isSetSupc();
9724 kshitij.so 1009
    case SHIPPING_TIME:
1010
      return isSetShippingTime();
9779 kshitij.so 1011
    case UPDATED_BY:
1012
      return isSetUpdatedBy();
1013
    case MARKETPLACE_ITEMS:
1014
      return isSetMarketplaceItems();
11095 kshitij.so 1015
    case COURIER_COST_MARKETPLACE:
1016
      return isSetCourierCostMarketplace();
8739 vikram.rag 1017
    }
1018
    throw new IllegalStateException();
1019
  }
1020
 
1021
  @Override
1022
  public boolean equals(Object that) {
1023
    if (that == null)
1024
      return false;
1025
    if (that instanceof SnapdealItem)
1026
      return this.equals((SnapdealItem)that);
1027
    return false;
1028
  }
1029
 
1030
  public boolean equals(SnapdealItem that) {
1031
    if (that == null)
1032
      return false;
1033
 
1034
    boolean this_present_item_id = true;
1035
    boolean that_present_item_id = true;
1036
    if (this_present_item_id || that_present_item_id) {
1037
      if (!(this_present_item_id && that_present_item_id))
1038
        return false;
1039
      if (this.item_id != that.item_id)
1040
        return false;
1041
    }
1042
 
1043
    boolean this_present_warehouseId = true;
1044
    boolean that_present_warehouseId = true;
1045
    if (this_present_warehouseId || that_present_warehouseId) {
1046
      if (!(this_present_warehouseId && that_present_warehouseId))
1047
        return false;
1048
      if (this.warehouseId != that.warehouseId)
1049
        return false;
1050
    }
1051
 
1052
    boolean this_present_exceptionPrice = true;
1053
    boolean that_present_exceptionPrice = true;
1054
    if (this_present_exceptionPrice || that_present_exceptionPrice) {
1055
      if (!(this_present_exceptionPrice && that_present_exceptionPrice))
1056
        return false;
1057
      if (this.exceptionPrice != that.exceptionPrice)
1058
        return false;
1059
    }
1060
 
1061
    boolean this_present_isListedOnSnapdeal = true;
1062
    boolean that_present_isListedOnSnapdeal = true;
1063
    if (this_present_isListedOnSnapdeal || that_present_isListedOnSnapdeal) {
1064
      if (!(this_present_isListedOnSnapdeal && that_present_isListedOnSnapdeal))
1065
        return false;
1066
      if (this.isListedOnSnapdeal != that.isListedOnSnapdeal)
1067
        return false;
1068
    }
1069
 
9242 kshitij.so 1070
    boolean this_present_transferPrice = true;
1071
    boolean that_present_transferPrice = true;
1072
    if (this_present_transferPrice || that_present_transferPrice) {
1073
      if (!(this_present_transferPrice && that_present_transferPrice))
1074
        return false;
1075
      if (this.transferPrice != that.transferPrice)
1076
        return false;
1077
    }
1078
 
1079
    boolean this_present_sellingPrice = true;
1080
    boolean that_present_sellingPrice = true;
1081
    if (this_present_sellingPrice || that_present_sellingPrice) {
1082
      if (!(this_present_sellingPrice && that_present_sellingPrice))
1083
        return false;
1084
      if (this.sellingPrice != that.sellingPrice)
1085
        return false;
1086
    }
1087
 
1088
    boolean this_present_courierCost = true;
1089
    boolean that_present_courierCost = true;
1090
    if (this_present_courierCost || that_present_courierCost) {
1091
      if (!(this_present_courierCost && that_present_courierCost))
1092
        return false;
1093
      if (this.courierCost != that.courierCost)
1094
        return false;
1095
    }
1096
 
1097
    boolean this_present_commission = true;
1098
    boolean that_present_commission = true;
1099
    if (this_present_commission || that_present_commission) {
1100
      if (!(this_present_commission && that_present_commission))
1101
        return false;
1102
      if (this.commission != that.commission)
1103
        return false;
1104
    }
1105
 
1106
    boolean this_present_serviceTax = true;
1107
    boolean that_present_serviceTax = true;
1108
    if (this_present_serviceTax || that_present_serviceTax) {
1109
      if (!(this_present_serviceTax && that_present_serviceTax))
1110
        return false;
1111
      if (this.serviceTax != that.serviceTax)
1112
        return false;
1113
    }
1114
 
1115
    boolean this_present_suppressPriceFeed = true;
1116
    boolean that_present_suppressPriceFeed = true;
1117
    if (this_present_suppressPriceFeed || that_present_suppressPriceFeed) {
1118
      if (!(this_present_suppressPriceFeed && that_present_suppressPriceFeed))
1119
        return false;
1120
      if (this.suppressPriceFeed != that.suppressPriceFeed)
1121
        return false;
1122
    }
1123
 
1124
    boolean this_present_suppressInventoryFeed = true;
1125
    boolean that_present_suppressInventoryFeed = true;
1126
    if (this_present_suppressInventoryFeed || that_present_suppressInventoryFeed) {
1127
      if (!(this_present_suppressInventoryFeed && that_present_suppressInventoryFeed))
1128
        return false;
1129
      if (this.suppressInventoryFeed != that.suppressInventoryFeed)
1130
        return false;
1131
    }
1132
 
9404 vikram.rag 1133
    boolean this_present_maxNlc = true;
1134
    boolean that_present_maxNlc = true;
1135
    if (this_present_maxNlc || that_present_maxNlc) {
1136
      if (!(this_present_maxNlc && that_present_maxNlc))
1137
        return false;
1138
      if (this.maxNlc != that.maxNlc)
1139
        return false;
1140
    }
1141
 
9456 vikram.rag 1142
    boolean this_present_skuAtSnapdeal = true && this.isSetSkuAtSnapdeal();
1143
    boolean that_present_skuAtSnapdeal = true && that.isSetSkuAtSnapdeal();
1144
    if (this_present_skuAtSnapdeal || that_present_skuAtSnapdeal) {
1145
      if (!(this_present_skuAtSnapdeal && that_present_skuAtSnapdeal))
1146
        return false;
1147
      if (!this.skuAtSnapdeal.equals(that.skuAtSnapdeal))
1148
        return false;
1149
    }
1150
 
9568 kshitij.so 1151
    boolean this_present_supc = true && this.isSetSupc();
1152
    boolean that_present_supc = true && that.isSetSupc();
1153
    if (this_present_supc || that_present_supc) {
1154
      if (!(this_present_supc && that_present_supc))
1155
        return false;
1156
      if (!this.supc.equals(that.supc))
1157
        return false;
1158
    }
1159
 
9724 kshitij.so 1160
    boolean this_present_shippingTime = true && this.isSetShippingTime();
1161
    boolean that_present_shippingTime = true && that.isSetShippingTime();
1162
    if (this_present_shippingTime || that_present_shippingTime) {
1163
      if (!(this_present_shippingTime && that_present_shippingTime))
1164
        return false;
1165
      if (!this.shippingTime.equals(that.shippingTime))
1166
        return false;
1167
    }
1168
 
9779 kshitij.so 1169
    boolean this_present_updatedBy = true && this.isSetUpdatedBy();
1170
    boolean that_present_updatedBy = true && that.isSetUpdatedBy();
1171
    if (this_present_updatedBy || that_present_updatedBy) {
1172
      if (!(this_present_updatedBy && that_present_updatedBy))
1173
        return false;
1174
      if (!this.updatedBy.equals(that.updatedBy))
1175
        return false;
1176
    }
1177
 
1178
    boolean this_present_marketplaceItems = true && this.isSetMarketplaceItems();
1179
    boolean that_present_marketplaceItems = true && that.isSetMarketplaceItems();
1180
    if (this_present_marketplaceItems || that_present_marketplaceItems) {
1181
      if (!(this_present_marketplaceItems && that_present_marketplaceItems))
1182
        return false;
1183
      if (!this.marketplaceItems.equals(that.marketplaceItems))
1184
        return false;
1185
    }
1186
 
11095 kshitij.so 1187
    boolean this_present_courierCostMarketplace = true;
1188
    boolean that_present_courierCostMarketplace = true;
1189
    if (this_present_courierCostMarketplace || that_present_courierCostMarketplace) {
1190
      if (!(this_present_courierCostMarketplace && that_present_courierCostMarketplace))
1191
        return false;
1192
      if (this.courierCostMarketplace != that.courierCostMarketplace)
1193
        return false;
1194
    }
1195
 
8739 vikram.rag 1196
    return true;
1197
  }
1198
 
1199
  @Override
1200
  public int hashCode() {
1201
    return 0;
1202
  }
1203
 
1204
  public int compareTo(SnapdealItem other) {
1205
    if (!getClass().equals(other.getClass())) {
1206
      return getClass().getName().compareTo(other.getClass().getName());
1207
    }
1208
 
1209
    int lastComparison = 0;
1210
    SnapdealItem typedOther = (SnapdealItem)other;
1211
 
1212
    lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
1213
    if (lastComparison != 0) {
1214
      return lastComparison;
1215
    }
1216
    if (isSetItem_id()) {
1217
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
1218
      if (lastComparison != 0) {
1219
        return lastComparison;
1220
      }
1221
    }
1222
    lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
1223
    if (lastComparison != 0) {
1224
      return lastComparison;
1225
    }
1226
    if (isSetWarehouseId()) {
1227
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
1228
      if (lastComparison != 0) {
1229
        return lastComparison;
1230
      }
1231
    }
1232
    lastComparison = Boolean.valueOf(isSetExceptionPrice()).compareTo(typedOther.isSetExceptionPrice());
1233
    if (lastComparison != 0) {
1234
      return lastComparison;
1235
    }
1236
    if (isSetExceptionPrice()) {
1237
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exceptionPrice, typedOther.exceptionPrice);
1238
      if (lastComparison != 0) {
1239
        return lastComparison;
1240
      }
1241
    }
1242
    lastComparison = Boolean.valueOf(isSetIsListedOnSnapdeal()).compareTo(typedOther.isSetIsListedOnSnapdeal());
1243
    if (lastComparison != 0) {
1244
      return lastComparison;
1245
    }
1246
    if (isSetIsListedOnSnapdeal()) {
1247
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isListedOnSnapdeal, typedOther.isListedOnSnapdeal);
1248
      if (lastComparison != 0) {
1249
        return lastComparison;
1250
      }
1251
    }
9242 kshitij.so 1252
    lastComparison = Boolean.valueOf(isSetTransferPrice()).compareTo(typedOther.isSetTransferPrice());
1253
    if (lastComparison != 0) {
1254
      return lastComparison;
1255
    }
1256
    if (isSetTransferPrice()) {
1257
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferPrice, typedOther.transferPrice);
1258
      if (lastComparison != 0) {
1259
        return lastComparison;
1260
      }
1261
    }
1262
    lastComparison = Boolean.valueOf(isSetSellingPrice()).compareTo(typedOther.isSetSellingPrice());
1263
    if (lastComparison != 0) {
1264
      return lastComparison;
1265
    }
1266
    if (isSetSellingPrice()) {
1267
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sellingPrice, typedOther.sellingPrice);
1268
      if (lastComparison != 0) {
1269
        return lastComparison;
1270
      }
1271
    }
1272
    lastComparison = Boolean.valueOf(isSetCourierCost()).compareTo(typedOther.isSetCourierCost());
1273
    if (lastComparison != 0) {
1274
      return lastComparison;
1275
    }
1276
    if (isSetCourierCost()) {
1277
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.courierCost, typedOther.courierCost);
1278
      if (lastComparison != 0) {
1279
        return lastComparison;
1280
      }
1281
    }
1282
    lastComparison = Boolean.valueOf(isSetCommission()).compareTo(typedOther.isSetCommission());
1283
    if (lastComparison != 0) {
1284
      return lastComparison;
1285
    }
1286
    if (isSetCommission()) {
1287
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.commission, typedOther.commission);
1288
      if (lastComparison != 0) {
1289
        return lastComparison;
1290
      }
1291
    }
1292
    lastComparison = Boolean.valueOf(isSetServiceTax()).compareTo(typedOther.isSetServiceTax());
1293
    if (lastComparison != 0) {
1294
      return lastComparison;
1295
    }
1296
    if (isSetServiceTax()) {
1297
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceTax, typedOther.serviceTax);
1298
      if (lastComparison != 0) {
1299
        return lastComparison;
1300
      }
1301
    }
1302
    lastComparison = Boolean.valueOf(isSetSuppressPriceFeed()).compareTo(typedOther.isSetSuppressPriceFeed());
1303
    if (lastComparison != 0) {
1304
      return lastComparison;
1305
    }
1306
    if (isSetSuppressPriceFeed()) {
1307
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suppressPriceFeed, typedOther.suppressPriceFeed);
1308
      if (lastComparison != 0) {
1309
        return lastComparison;
1310
      }
1311
    }
1312
    lastComparison = Boolean.valueOf(isSetSuppressInventoryFeed()).compareTo(typedOther.isSetSuppressInventoryFeed());
1313
    if (lastComparison != 0) {
1314
      return lastComparison;
1315
    }
1316
    if (isSetSuppressInventoryFeed()) {
1317
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suppressInventoryFeed, typedOther.suppressInventoryFeed);
1318
      if (lastComparison != 0) {
1319
        return lastComparison;
1320
      }
1321
    }
9404 vikram.rag 1322
    lastComparison = Boolean.valueOf(isSetMaxNlc()).compareTo(typedOther.isSetMaxNlc());
1323
    if (lastComparison != 0) {
1324
      return lastComparison;
1325
    }
1326
    if (isSetMaxNlc()) {
1327
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxNlc, typedOther.maxNlc);
1328
      if (lastComparison != 0) {
1329
        return lastComparison;
1330
      }
1331
    }
9456 vikram.rag 1332
    lastComparison = Boolean.valueOf(isSetSkuAtSnapdeal()).compareTo(typedOther.isSetSkuAtSnapdeal());
1333
    if (lastComparison != 0) {
1334
      return lastComparison;
1335
    }
1336
    if (isSetSkuAtSnapdeal()) {
1337
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skuAtSnapdeal, typedOther.skuAtSnapdeal);
1338
      if (lastComparison != 0) {
1339
        return lastComparison;
1340
      }
1341
    }
9568 kshitij.so 1342
    lastComparison = Boolean.valueOf(isSetSupc()).compareTo(typedOther.isSetSupc());
1343
    if (lastComparison != 0) {
1344
      return lastComparison;
1345
    }
1346
    if (isSetSupc()) {
1347
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.supc, typedOther.supc);
1348
      if (lastComparison != 0) {
1349
        return lastComparison;
1350
      }
1351
    }
9724 kshitij.so 1352
    lastComparison = Boolean.valueOf(isSetShippingTime()).compareTo(typedOther.isSetShippingTime());
1353
    if (lastComparison != 0) {
1354
      return lastComparison;
1355
    }
1356
    if (isSetShippingTime()) {
1357
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shippingTime, typedOther.shippingTime);
1358
      if (lastComparison != 0) {
1359
        return lastComparison;
1360
      }
1361
    }
9779 kshitij.so 1362
    lastComparison = Boolean.valueOf(isSetUpdatedBy()).compareTo(typedOther.isSetUpdatedBy());
1363
    if (lastComparison != 0) {
1364
      return lastComparison;
1365
    }
1366
    if (isSetUpdatedBy()) {
1367
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updatedBy, typedOther.updatedBy);
1368
      if (lastComparison != 0) {
1369
        return lastComparison;
1370
      }
1371
    }
1372
    lastComparison = Boolean.valueOf(isSetMarketplaceItems()).compareTo(typedOther.isSetMarketplaceItems());
1373
    if (lastComparison != 0) {
1374
      return lastComparison;
1375
    }
1376
    if (isSetMarketplaceItems()) {
1377
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.marketplaceItems, typedOther.marketplaceItems);
1378
      if (lastComparison != 0) {
1379
        return lastComparison;
1380
      }
1381
    }
11095 kshitij.so 1382
    lastComparison = Boolean.valueOf(isSetCourierCostMarketplace()).compareTo(typedOther.isSetCourierCostMarketplace());
1383
    if (lastComparison != 0) {
1384
      return lastComparison;
1385
    }
1386
    if (isSetCourierCostMarketplace()) {
1387
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.courierCostMarketplace, typedOther.courierCostMarketplace);
1388
      if (lastComparison != 0) {
1389
        return lastComparison;
1390
      }
1391
    }
8739 vikram.rag 1392
    return 0;
1393
  }
1394
 
1395
  public _Fields fieldForId(int fieldId) {
1396
    return _Fields.findByThriftId(fieldId);
1397
  }
1398
 
1399
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1400
    org.apache.thrift.protocol.TField field;
1401
    iprot.readStructBegin();
1402
    while (true)
1403
    {
1404
      field = iprot.readFieldBegin();
1405
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1406
        break;
1407
      }
1408
      switch (field.id) {
1409
        case 1: // ITEM_ID
1410
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1411
            this.item_id = iprot.readI64();
1412
            setItem_idIsSet(true);
1413
          } else { 
1414
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1415
          }
1416
          break;
1417
        case 2: // WAREHOUSE_ID
1418
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1419
            this.warehouseId = iprot.readI64();
1420
            setWarehouseIdIsSet(true);
1421
          } else { 
1422
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1423
          }
1424
          break;
1425
        case 3: // EXCEPTION_PRICE
1426
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1427
            this.exceptionPrice = iprot.readDouble();
1428
            setExceptionPriceIsSet(true);
1429
          } else { 
1430
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1431
          }
1432
          break;
1433
        case 4: // IS_LISTED_ON_SNAPDEAL
1434
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1435
            this.isListedOnSnapdeal = iprot.readBool();
1436
            setIsListedOnSnapdealIsSet(true);
1437
          } else { 
1438
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1439
          }
1440
          break;
9242 kshitij.so 1441
        case 5: // TRANSFER_PRICE
1442
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1443
            this.transferPrice = iprot.readDouble();
1444
            setTransferPriceIsSet(true);
1445
          } else { 
1446
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1447
          }
1448
          break;
1449
        case 6: // SELLING_PRICE
1450
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1451
            this.sellingPrice = iprot.readDouble();
1452
            setSellingPriceIsSet(true);
1453
          } else { 
1454
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1455
          }
1456
          break;
1457
        case 7: // COURIER_COST
1458
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1459
            this.courierCost = iprot.readDouble();
1460
            setCourierCostIsSet(true);
1461
          } else { 
1462
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1463
          }
1464
          break;
1465
        case 8: // COMMISSION
1466
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1467
            this.commission = iprot.readDouble();
1468
            setCommissionIsSet(true);
1469
          } else { 
1470
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1471
          }
1472
          break;
1473
        case 9: // SERVICE_TAX
1474
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1475
            this.serviceTax = iprot.readDouble();
1476
            setServiceTaxIsSet(true);
1477
          } else { 
1478
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1479
          }
1480
          break;
1481
        case 10: // SUPPRESS_PRICE_FEED
1482
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1483
            this.suppressPriceFeed = iprot.readBool();
1484
            setSuppressPriceFeedIsSet(true);
1485
          } else { 
1486
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1487
          }
1488
          break;
1489
        case 11: // SUPPRESS_INVENTORY_FEED
1490
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1491
            this.suppressInventoryFeed = iprot.readBool();
1492
            setSuppressInventoryFeedIsSet(true);
1493
          } else { 
1494
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1495
          }
1496
          break;
9404 vikram.rag 1497
        case 12: // MAX_NLC
1498
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1499
            this.maxNlc = iprot.readDouble();
1500
            setMaxNlcIsSet(true);
1501
          } else { 
1502
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1503
          }
1504
          break;
9456 vikram.rag 1505
        case 13: // SKU_AT_SNAPDEAL
1506
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1507
            this.skuAtSnapdeal = iprot.readString();
1508
          } else { 
1509
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1510
          }
1511
          break;
9568 kshitij.so 1512
        case 14: // SUPC
1513
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1514
            this.supc = iprot.readString();
1515
          } else { 
1516
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1517
          }
1518
          break;
9724 kshitij.so 1519
        case 15: // SHIPPING_TIME
1520
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1521
            this.shippingTime = iprot.readString();
1522
          } else { 
1523
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1524
          }
1525
          break;
9779 kshitij.so 1526
        case 16: // UPDATED_BY
1527
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1528
            this.updatedBy = iprot.readString();
1529
          } else { 
1530
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1531
          }
1532
          break;
1533
        case 17: // MARKETPLACE_ITEMS
1534
          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
1535
            this.marketplaceItems = new MarketplaceItems();
1536
            this.marketplaceItems.read(iprot);
1537
          } else { 
1538
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1539
          }
1540
          break;
11095 kshitij.so 1541
        case 18: // COURIER_COST_MARKETPLACE
1542
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1543
            this.courierCostMarketplace = iprot.readDouble();
1544
            setCourierCostMarketplaceIsSet(true);
1545
          } else { 
1546
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1547
          }
1548
          break;
8739 vikram.rag 1549
        default:
1550
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1551
      }
1552
      iprot.readFieldEnd();
1553
    }
1554
    iprot.readStructEnd();
1555
    validate();
1556
  }
1557
 
1558
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1559
    validate();
1560
 
1561
    oprot.writeStructBegin(STRUCT_DESC);
1562
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
1563
    oprot.writeI64(this.item_id);
1564
    oprot.writeFieldEnd();
1565
    oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
1566
    oprot.writeI64(this.warehouseId);
1567
    oprot.writeFieldEnd();
1568
    oprot.writeFieldBegin(EXCEPTION_PRICE_FIELD_DESC);
1569
    oprot.writeDouble(this.exceptionPrice);
1570
    oprot.writeFieldEnd();
1571
    oprot.writeFieldBegin(IS_LISTED_ON_SNAPDEAL_FIELD_DESC);
1572
    oprot.writeBool(this.isListedOnSnapdeal);
1573
    oprot.writeFieldEnd();
9242 kshitij.so 1574
    oprot.writeFieldBegin(TRANSFER_PRICE_FIELD_DESC);
1575
    oprot.writeDouble(this.transferPrice);
1576
    oprot.writeFieldEnd();
1577
    oprot.writeFieldBegin(SELLING_PRICE_FIELD_DESC);
1578
    oprot.writeDouble(this.sellingPrice);
1579
    oprot.writeFieldEnd();
1580
    oprot.writeFieldBegin(COURIER_COST_FIELD_DESC);
1581
    oprot.writeDouble(this.courierCost);
1582
    oprot.writeFieldEnd();
1583
    oprot.writeFieldBegin(COMMISSION_FIELD_DESC);
1584
    oprot.writeDouble(this.commission);
1585
    oprot.writeFieldEnd();
1586
    oprot.writeFieldBegin(SERVICE_TAX_FIELD_DESC);
1587
    oprot.writeDouble(this.serviceTax);
1588
    oprot.writeFieldEnd();
1589
    oprot.writeFieldBegin(SUPPRESS_PRICE_FEED_FIELD_DESC);
1590
    oprot.writeBool(this.suppressPriceFeed);
1591
    oprot.writeFieldEnd();
1592
    oprot.writeFieldBegin(SUPPRESS_INVENTORY_FEED_FIELD_DESC);
1593
    oprot.writeBool(this.suppressInventoryFeed);
1594
    oprot.writeFieldEnd();
9404 vikram.rag 1595
    oprot.writeFieldBegin(MAX_NLC_FIELD_DESC);
1596
    oprot.writeDouble(this.maxNlc);
1597
    oprot.writeFieldEnd();
9456 vikram.rag 1598
    if (this.skuAtSnapdeal != null) {
1599
      oprot.writeFieldBegin(SKU_AT_SNAPDEAL_FIELD_DESC);
1600
      oprot.writeString(this.skuAtSnapdeal);
1601
      oprot.writeFieldEnd();
1602
    }
9568 kshitij.so 1603
    if (this.supc != null) {
1604
      oprot.writeFieldBegin(SUPC_FIELD_DESC);
1605
      oprot.writeString(this.supc);
1606
      oprot.writeFieldEnd();
1607
    }
9724 kshitij.so 1608
    if (this.shippingTime != null) {
1609
      oprot.writeFieldBegin(SHIPPING_TIME_FIELD_DESC);
1610
      oprot.writeString(this.shippingTime);
1611
      oprot.writeFieldEnd();
1612
    }
9779 kshitij.so 1613
    if (this.updatedBy != null) {
1614
      oprot.writeFieldBegin(UPDATED_BY_FIELD_DESC);
1615
      oprot.writeString(this.updatedBy);
1616
      oprot.writeFieldEnd();
1617
    }
1618
    if (this.marketplaceItems != null) {
1619
      oprot.writeFieldBegin(MARKETPLACE_ITEMS_FIELD_DESC);
1620
      this.marketplaceItems.write(oprot);
1621
      oprot.writeFieldEnd();
1622
    }
11095 kshitij.so 1623
    oprot.writeFieldBegin(COURIER_COST_MARKETPLACE_FIELD_DESC);
1624
    oprot.writeDouble(this.courierCostMarketplace);
1625
    oprot.writeFieldEnd();
8739 vikram.rag 1626
    oprot.writeFieldStop();
1627
    oprot.writeStructEnd();
1628
  }
1629
 
1630
  @Override
1631
  public String toString() {
1632
    StringBuilder sb = new StringBuilder("SnapdealItem(");
1633
    boolean first = true;
1634
 
1635
    sb.append("item_id:");
1636
    sb.append(this.item_id);
1637
    first = false;
1638
    if (!first) sb.append(", ");
1639
    sb.append("warehouseId:");
1640
    sb.append(this.warehouseId);
1641
    first = false;
1642
    if (!first) sb.append(", ");
1643
    sb.append("exceptionPrice:");
1644
    sb.append(this.exceptionPrice);
1645
    first = false;
1646
    if (!first) sb.append(", ");
1647
    sb.append("isListedOnSnapdeal:");
1648
    sb.append(this.isListedOnSnapdeal);
1649
    first = false;
9242 kshitij.so 1650
    if (!first) sb.append(", ");
1651
    sb.append("transferPrice:");
1652
    sb.append(this.transferPrice);
1653
    first = false;
1654
    if (!first) sb.append(", ");
1655
    sb.append("sellingPrice:");
1656
    sb.append(this.sellingPrice);
1657
    first = false;
1658
    if (!first) sb.append(", ");
1659
    sb.append("courierCost:");
1660
    sb.append(this.courierCost);
1661
    first = false;
1662
    if (!first) sb.append(", ");
1663
    sb.append("commission:");
1664
    sb.append(this.commission);
1665
    first = false;
1666
    if (!first) sb.append(", ");
1667
    sb.append("serviceTax:");
1668
    sb.append(this.serviceTax);
1669
    first = false;
1670
    if (!first) sb.append(", ");
1671
    sb.append("suppressPriceFeed:");
1672
    sb.append(this.suppressPriceFeed);
1673
    first = false;
1674
    if (!first) sb.append(", ");
1675
    sb.append("suppressInventoryFeed:");
1676
    sb.append(this.suppressInventoryFeed);
1677
    first = false;
9404 vikram.rag 1678
    if (!first) sb.append(", ");
1679
    sb.append("maxNlc:");
1680
    sb.append(this.maxNlc);
1681
    first = false;
9456 vikram.rag 1682
    if (!first) sb.append(", ");
1683
    sb.append("skuAtSnapdeal:");
1684
    if (this.skuAtSnapdeal == null) {
1685
      sb.append("null");
1686
    } else {
1687
      sb.append(this.skuAtSnapdeal);
1688
    }
1689
    first = false;
9568 kshitij.so 1690
    if (!first) sb.append(", ");
1691
    sb.append("supc:");
1692
    if (this.supc == null) {
1693
      sb.append("null");
1694
    } else {
1695
      sb.append(this.supc);
1696
    }
1697
    first = false;
9724 kshitij.so 1698
    if (!first) sb.append(", ");
1699
    sb.append("shippingTime:");
1700
    if (this.shippingTime == null) {
1701
      sb.append("null");
1702
    } else {
1703
      sb.append(this.shippingTime);
1704
    }
1705
    first = false;
9779 kshitij.so 1706
    if (!first) sb.append(", ");
1707
    sb.append("updatedBy:");
1708
    if (this.updatedBy == null) {
1709
      sb.append("null");
1710
    } else {
1711
      sb.append(this.updatedBy);
1712
    }
1713
    first = false;
1714
    if (!first) sb.append(", ");
1715
    sb.append("marketplaceItems:");
1716
    if (this.marketplaceItems == null) {
1717
      sb.append("null");
1718
    } else {
1719
      sb.append(this.marketplaceItems);
1720
    }
1721
    first = false;
11095 kshitij.so 1722
    if (!first) sb.append(", ");
1723
    sb.append("courierCostMarketplace:");
1724
    sb.append(this.courierCostMarketplace);
1725
    first = false;
8739 vikram.rag 1726
    sb.append(")");
1727
    return sb.toString();
1728
  }
1729
 
1730
  public void validate() throws org.apache.thrift.TException {
1731
    // check for required fields
1732
  }
1733
 
1734
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1735
    try {
1736
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1737
    } catch (org.apache.thrift.TException te) {
1738
      throw new java.io.IOException(te);
1739
    }
1740
  }
1741
 
1742
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1743
    try {
1744
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1745
      __isset_bit_vector = new BitSet(1);
1746
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1747
    } catch (org.apache.thrift.TException te) {
1748
      throw new java.io.IOException(te);
1749
    }
1750
  }
1751
 
1752
}
1753