Subversion Repositories SmartDukaan

Rev

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