Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
14384 kshitij.so 1
/**
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.dtr;
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
/**
24
 * Objects
25
 */
26
public class LivePricing implements org.apache.thrift.TBase<LivePricing, LivePricing._Fields>, java.io.Serializable, Cloneable {
27
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LivePricing");
28
 
29
  private static final org.apache.thrift.protocol.TField _ID_FIELD_DESC = new org.apache.thrift.protocol.TField("_id", org.apache.thrift.protocol.TType.I64, (short)1);
30
  private static final org.apache.thrift.protocol.TField AVAILABLE_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("available_price", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
31
  private static final org.apache.thrift.protocol.TField MARKET_PLACE_URL_FIELD_DESC = new org.apache.thrift.protocol.TField("marketPlaceUrl", org.apache.thrift.protocol.TType.STRING, (short)3);
32
  private static final org.apache.thrift.protocol.TField IN_STOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("in_stock", org.apache.thrift.protocol.TType.I64, (short)4);
33
  private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("source_id", org.apache.thrift.protocol.TType.I64, (short)5);
34
  private static final org.apache.thrift.protocol.TField SOURCE_PRODUCT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("source_product_name", org.apache.thrift.protocol.TType.STRING, (short)6);
35
  private static final org.apache.thrift.protocol.TField THUMBNAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("thumbnail", org.apache.thrift.protocol.TType.STRING, (short)7);
14764 kshitij.so 36
  private static final org.apache.thrift.protocol.TField CASH_BACK_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("cash_back_type", org.apache.thrift.protocol.TType.I64, (short)8);
37
  private static final org.apache.thrift.protocol.TField CASH_BACK_FIELD_DESC = new org.apache.thrift.protocol.TField("cash_back", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
15903 kshitij.so 38
  private static final org.apache.thrift.protocol.TField COUPON_FIELD_DESC = new org.apache.thrift.protocol.TField("coupon", org.apache.thrift.protocol.TType.STRING, (short)10);
15943 kshitij.so 39
  private static final org.apache.thrift.protocol.TField COD_AVAILABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("codAvailable", org.apache.thrift.protocol.TType.I64, (short)11);
16117 kshitij.so 40
  private static final org.apache.thrift.protocol.TField TAGLINE_FIELD_DESC = new org.apache.thrift.protocol.TField("tagline", org.apache.thrift.protocol.TType.STRING, (short)12);
41
  private static final org.apache.thrift.protocol.TField OFFER_FIELD_DESC = new org.apache.thrift.protocol.TField("offer", org.apache.thrift.protocol.TType.STRING, (short)13);
16461 kshitij.so 42
  private static final org.apache.thrift.protocol.TField GROSS_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("gross_price", org.apache.thrift.protocol.TType.DOUBLE, (short)14);
18728 kshitij.so 43
  private static final org.apache.thrift.protocol.TField CHEAPEST_BULK_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("cheapestBulkPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)15);
18739 kshitij.so 44
  private static final org.apache.thrift.protocol.TField PACK_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("packQuantity", org.apache.thrift.protocol.TType.I64, (short)16);
19158 kshitij.so 45
  private static final org.apache.thrift.protocol.TField NET_PRICE_AFTER_CASH_BACK_FIELD_DESC = new org.apache.thrift.protocol.TField("netPriceAfterCashBack", org.apache.thrift.protocol.TType.DOUBLE, (short)17);
19151 kshitij.so 46
  private static final org.apache.thrift.protocol.TField SHOW_NET_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("showNetPrice", org.apache.thrift.protocol.TType.I64, (short)18);
19317 kshitij.so 47
  private static final org.apache.thrift.protocol.TField CATEGORY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("category_id", org.apache.thrift.protocol.TType.I64, (short)19);
48
  private static final org.apache.thrift.protocol.TField SUB_CATEGORY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("subCategoryId", org.apache.thrift.protocol.TType.I64, (short)20);
14384 kshitij.so 49
 
50
  private long _id; // required
51
  private double available_price; // required
52
  private String marketPlaceUrl; // required
53
  private long in_stock; // required
54
  private long source_id; // required
55
  private String source_product_name; // required
56
  private String thumbnail; // required
14764 kshitij.so 57
  private long cash_back_type; // required
58
  private double cash_back; // required
15903 kshitij.so 59
  private String coupon; // required
15943 kshitij.so 60
  private long codAvailable; // required
16117 kshitij.so 61
  private String tagline; // required
62
  private String offer; // required
16461 kshitij.so 63
  private double gross_price; // required
18728 kshitij.so 64
  private double cheapestBulkPrice; // required
18739 kshitij.so 65
  private long packQuantity; // required
19158 kshitij.so 66
  private double netPriceAfterCashBack; // required
19151 kshitij.so 67
  private long showNetPrice; // required
19317 kshitij.so 68
  private long category_id; // required
69
  private long subCategoryId; // required
14384 kshitij.so 70
 
71
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
72
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
73
    _ID((short)1, "_id"),
74
    AVAILABLE_PRICE((short)2, "available_price"),
75
    MARKET_PLACE_URL((short)3, "marketPlaceUrl"),
76
    IN_STOCK((short)4, "in_stock"),
77
    SOURCE_ID((short)5, "source_id"),
78
    SOURCE_PRODUCT_NAME((short)6, "source_product_name"),
14764 kshitij.so 79
    THUMBNAIL((short)7, "thumbnail"),
80
    CASH_BACK_TYPE((short)8, "cash_back_type"),
15903 kshitij.so 81
    CASH_BACK((short)9, "cash_back"),
82
    COUPON((short)10, "coupon"),
16117 kshitij.so 83
    COD_AVAILABLE((short)11, "codAvailable"),
84
    TAGLINE((short)12, "tagline"),
16461 kshitij.so 85
    OFFER((short)13, "offer"),
18728 kshitij.so 86
    GROSS_PRICE((short)14, "gross_price"),
18739 kshitij.so 87
    CHEAPEST_BULK_PRICE((short)15, "cheapestBulkPrice"),
19151 kshitij.so 88
    PACK_QUANTITY((short)16, "packQuantity"),
19158 kshitij.so 89
    NET_PRICE_AFTER_CASH_BACK((short)17, "netPriceAfterCashBack"),
19317 kshitij.so 90
    SHOW_NET_PRICE((short)18, "showNetPrice"),
91
    CATEGORY_ID((short)19, "category_id"),
92
    SUB_CATEGORY_ID((short)20, "subCategoryId");
14384 kshitij.so 93
 
94
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
95
 
96
    static {
97
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
98
        byName.put(field.getFieldName(), field);
99
      }
100
    }
101
 
102
    /**
103
     * Find the _Fields constant that matches fieldId, or null if its not found.
104
     */
105
    public static _Fields findByThriftId(int fieldId) {
106
      switch(fieldId) {
107
        case 1: // _ID
108
          return _ID;
109
        case 2: // AVAILABLE_PRICE
110
          return AVAILABLE_PRICE;
111
        case 3: // MARKET_PLACE_URL
112
          return MARKET_PLACE_URL;
113
        case 4: // IN_STOCK
114
          return IN_STOCK;
115
        case 5: // SOURCE_ID
116
          return SOURCE_ID;
117
        case 6: // SOURCE_PRODUCT_NAME
118
          return SOURCE_PRODUCT_NAME;
119
        case 7: // THUMBNAIL
120
          return THUMBNAIL;
14764 kshitij.so 121
        case 8: // CASH_BACK_TYPE
122
          return CASH_BACK_TYPE;
123
        case 9: // CASH_BACK
124
          return CASH_BACK;
15903 kshitij.so 125
        case 10: // COUPON
126
          return COUPON;
127
        case 11: // COD_AVAILABLE
128
          return COD_AVAILABLE;
16117 kshitij.so 129
        case 12: // TAGLINE
130
          return TAGLINE;
131
        case 13: // OFFER
132
          return OFFER;
16461 kshitij.so 133
        case 14: // GROSS_PRICE
134
          return GROSS_PRICE;
18728 kshitij.so 135
        case 15: // CHEAPEST_BULK_PRICE
136
          return CHEAPEST_BULK_PRICE;
18739 kshitij.so 137
        case 16: // PACK_QUANTITY
138
          return PACK_QUANTITY;
19158 kshitij.so 139
        case 17: // NET_PRICE_AFTER_CASH_BACK
140
          return NET_PRICE_AFTER_CASH_BACK;
19151 kshitij.so 141
        case 18: // SHOW_NET_PRICE
142
          return SHOW_NET_PRICE;
19317 kshitij.so 143
        case 19: // CATEGORY_ID
144
          return CATEGORY_ID;
145
        case 20: // SUB_CATEGORY_ID
146
          return SUB_CATEGORY_ID;
14384 kshitij.so 147
        default:
148
          return null;
149
      }
150
    }
151
 
152
    /**
153
     * Find the _Fields constant that matches fieldId, throwing an exception
154
     * if it is not found.
155
     */
156
    public static _Fields findByThriftIdOrThrow(int fieldId) {
157
      _Fields fields = findByThriftId(fieldId);
158
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
159
      return fields;
160
    }
161
 
162
    /**
163
     * Find the _Fields constant that matches name, or null if its not found.
164
     */
165
    public static _Fields findByName(String name) {
166
      return byName.get(name);
167
    }
168
 
169
    private final short _thriftId;
170
    private final String _fieldName;
171
 
172
    _Fields(short thriftId, String fieldName) {
173
      _thriftId = thriftId;
174
      _fieldName = fieldName;
175
    }
176
 
177
    public short getThriftFieldId() {
178
      return _thriftId;
179
    }
180
 
181
    public String getFieldName() {
182
      return _fieldName;
183
    }
184
  }
185
 
186
  // isset id assignments
187
  private static final int ___ID_ISSET_ID = 0;
188
  private static final int __AVAILABLE_PRICE_ISSET_ID = 1;
189
  private static final int __IN_STOCK_ISSET_ID = 2;
190
  private static final int __SOURCE_ID_ISSET_ID = 3;
14764 kshitij.so 191
  private static final int __CASH_BACK_TYPE_ISSET_ID = 4;
192
  private static final int __CASH_BACK_ISSET_ID = 5;
15903 kshitij.so 193
  private static final int __CODAVAILABLE_ISSET_ID = 6;
16461 kshitij.so 194
  private static final int __GROSS_PRICE_ISSET_ID = 7;
18728 kshitij.so 195
  private static final int __CHEAPESTBULKPRICE_ISSET_ID = 8;
18739 kshitij.so 196
  private static final int __PACKQUANTITY_ISSET_ID = 9;
19158 kshitij.so 197
  private static final int __NETPRICEAFTERCASHBACK_ISSET_ID = 10;
19151 kshitij.so 198
  private static final int __SHOWNETPRICE_ISSET_ID = 11;
19317 kshitij.so 199
  private static final int __CATEGORY_ID_ISSET_ID = 12;
200
  private static final int __SUBCATEGORYID_ISSET_ID = 13;
201
  private BitSet __isset_bit_vector = new BitSet(14);
14384 kshitij.so 202
 
203
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
204
  static {
205
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
206
    tmpMap.put(_Fields._ID, new org.apache.thrift.meta_data.FieldMetaData("_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
207
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
208
    tmpMap.put(_Fields.AVAILABLE_PRICE, new org.apache.thrift.meta_data.FieldMetaData("available_price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
209
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
210
    tmpMap.put(_Fields.MARKET_PLACE_URL, new org.apache.thrift.meta_data.FieldMetaData("marketPlaceUrl", org.apache.thrift.TFieldRequirementType.DEFAULT, 
211
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
212
    tmpMap.put(_Fields.IN_STOCK, new org.apache.thrift.meta_data.FieldMetaData("in_stock", org.apache.thrift.TFieldRequirementType.DEFAULT, 
213
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
214
    tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("source_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
215
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
216
    tmpMap.put(_Fields.SOURCE_PRODUCT_NAME, new org.apache.thrift.meta_data.FieldMetaData("source_product_name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
217
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
218
    tmpMap.put(_Fields.THUMBNAIL, new org.apache.thrift.meta_data.FieldMetaData("thumbnail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
219
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14764 kshitij.so 220
    tmpMap.put(_Fields.CASH_BACK_TYPE, new org.apache.thrift.meta_data.FieldMetaData("cash_back_type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
221
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
222
    tmpMap.put(_Fields.CASH_BACK, new org.apache.thrift.meta_data.FieldMetaData("cash_back", org.apache.thrift.TFieldRequirementType.DEFAULT, 
223
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
15903 kshitij.so 224
    tmpMap.put(_Fields.COUPON, new org.apache.thrift.meta_data.FieldMetaData("coupon", org.apache.thrift.TFieldRequirementType.DEFAULT, 
225
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
226
    tmpMap.put(_Fields.COD_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("codAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15943 kshitij.so 227
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16117 kshitij.so 228
    tmpMap.put(_Fields.TAGLINE, new org.apache.thrift.meta_data.FieldMetaData("tagline", org.apache.thrift.TFieldRequirementType.DEFAULT, 
229
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
230
    tmpMap.put(_Fields.OFFER, new org.apache.thrift.meta_data.FieldMetaData("offer", org.apache.thrift.TFieldRequirementType.DEFAULT, 
231
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16461 kshitij.so 232
    tmpMap.put(_Fields.GROSS_PRICE, new org.apache.thrift.meta_data.FieldMetaData("gross_price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
233
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
18728 kshitij.so 234
    tmpMap.put(_Fields.CHEAPEST_BULK_PRICE, new org.apache.thrift.meta_data.FieldMetaData("cheapestBulkPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
235
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
18739 kshitij.so 236
    tmpMap.put(_Fields.PACK_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("packQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
237
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19158 kshitij.so 238
    tmpMap.put(_Fields.NET_PRICE_AFTER_CASH_BACK, new org.apache.thrift.meta_data.FieldMetaData("netPriceAfterCashBack", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19151 kshitij.so 239
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
240
    tmpMap.put(_Fields.SHOW_NET_PRICE, new org.apache.thrift.meta_data.FieldMetaData("showNetPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
241
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19317 kshitij.so 242
    tmpMap.put(_Fields.CATEGORY_ID, new org.apache.thrift.meta_data.FieldMetaData("category_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
243
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
244
    tmpMap.put(_Fields.SUB_CATEGORY_ID, new org.apache.thrift.meta_data.FieldMetaData("subCategoryId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
245
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14384 kshitij.so 246
    metaDataMap = Collections.unmodifiableMap(tmpMap);
247
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LivePricing.class, metaDataMap);
248
  }
249
 
250
  public LivePricing() {
251
  }
252
 
253
  public LivePricing(
254
    long _id,
255
    double available_price,
256
    String marketPlaceUrl,
257
    long in_stock,
258
    long source_id,
259
    String source_product_name,
14764 kshitij.so 260
    String thumbnail,
261
    long cash_back_type,
15903 kshitij.so 262
    double cash_back,
263
    String coupon,
16117 kshitij.so 264
    long codAvailable,
265
    String tagline,
16461 kshitij.so 266
    String offer,
18728 kshitij.so 267
    double gross_price,
18739 kshitij.so 268
    double cheapestBulkPrice,
19151 kshitij.so 269
    long packQuantity,
19158 kshitij.so 270
    double netPriceAfterCashBack,
19317 kshitij.so 271
    long showNetPrice,
272
    long category_id,
273
    long subCategoryId)
14384 kshitij.so 274
  {
275
    this();
276
    this._id = _id;
277
    set_idIsSet(true);
278
    this.available_price = available_price;
279
    setAvailable_priceIsSet(true);
280
    this.marketPlaceUrl = marketPlaceUrl;
281
    this.in_stock = in_stock;
282
    setIn_stockIsSet(true);
283
    this.source_id = source_id;
284
    setSource_idIsSet(true);
285
    this.source_product_name = source_product_name;
286
    this.thumbnail = thumbnail;
14764 kshitij.so 287
    this.cash_back_type = cash_back_type;
288
    setCash_back_typeIsSet(true);
289
    this.cash_back = cash_back;
290
    setCash_backIsSet(true);
15903 kshitij.so 291
    this.coupon = coupon;
292
    this.codAvailable = codAvailable;
293
    setCodAvailableIsSet(true);
16117 kshitij.so 294
    this.tagline = tagline;
295
    this.offer = offer;
16461 kshitij.so 296
    this.gross_price = gross_price;
297
    setGross_priceIsSet(true);
18728 kshitij.so 298
    this.cheapestBulkPrice = cheapestBulkPrice;
299
    setCheapestBulkPriceIsSet(true);
18739 kshitij.so 300
    this.packQuantity = packQuantity;
301
    setPackQuantityIsSet(true);
19158 kshitij.so 302
    this.netPriceAfterCashBack = netPriceAfterCashBack;
303
    setNetPriceAfterCashBackIsSet(true);
19151 kshitij.so 304
    this.showNetPrice = showNetPrice;
305
    setShowNetPriceIsSet(true);
19317 kshitij.so 306
    this.category_id = category_id;
307
    setCategory_idIsSet(true);
308
    this.subCategoryId = subCategoryId;
309
    setSubCategoryIdIsSet(true);
14384 kshitij.so 310
  }
311
 
312
  /**
313
   * Performs a deep copy on <i>other</i>.
314
   */
315
  public LivePricing(LivePricing other) {
316
    __isset_bit_vector.clear();
317
    __isset_bit_vector.or(other.__isset_bit_vector);
318
    this._id = other._id;
319
    this.available_price = other.available_price;
320
    if (other.isSetMarketPlaceUrl()) {
321
      this.marketPlaceUrl = other.marketPlaceUrl;
322
    }
323
    this.in_stock = other.in_stock;
324
    this.source_id = other.source_id;
325
    if (other.isSetSource_product_name()) {
326
      this.source_product_name = other.source_product_name;
327
    }
328
    if (other.isSetThumbnail()) {
329
      this.thumbnail = other.thumbnail;
330
    }
14764 kshitij.so 331
    this.cash_back_type = other.cash_back_type;
332
    this.cash_back = other.cash_back;
15903 kshitij.so 333
    if (other.isSetCoupon()) {
334
      this.coupon = other.coupon;
335
    }
336
    this.codAvailable = other.codAvailable;
16117 kshitij.so 337
    if (other.isSetTagline()) {
338
      this.tagline = other.tagline;
339
    }
340
    if (other.isSetOffer()) {
341
      this.offer = other.offer;
342
    }
16461 kshitij.so 343
    this.gross_price = other.gross_price;
18728 kshitij.so 344
    this.cheapestBulkPrice = other.cheapestBulkPrice;
18739 kshitij.so 345
    this.packQuantity = other.packQuantity;
19158 kshitij.so 346
    this.netPriceAfterCashBack = other.netPriceAfterCashBack;
19151 kshitij.so 347
    this.showNetPrice = other.showNetPrice;
19317 kshitij.so 348
    this.category_id = other.category_id;
349
    this.subCategoryId = other.subCategoryId;
14384 kshitij.so 350
  }
351
 
352
  public LivePricing deepCopy() {
353
    return new LivePricing(this);
354
  }
355
 
356
  @Override
357
  public void clear() {
358
    set_idIsSet(false);
359
    this._id = 0;
360
    setAvailable_priceIsSet(false);
361
    this.available_price = 0.0;
362
    this.marketPlaceUrl = null;
363
    setIn_stockIsSet(false);
364
    this.in_stock = 0;
365
    setSource_idIsSet(false);
366
    this.source_id = 0;
367
    this.source_product_name = null;
368
    this.thumbnail = null;
14764 kshitij.so 369
    setCash_back_typeIsSet(false);
370
    this.cash_back_type = 0;
371
    setCash_backIsSet(false);
372
    this.cash_back = 0.0;
15903 kshitij.so 373
    this.coupon = null;
374
    setCodAvailableIsSet(false);
15943 kshitij.so 375
    this.codAvailable = 0;
16117 kshitij.so 376
    this.tagline = null;
377
    this.offer = null;
16461 kshitij.so 378
    setGross_priceIsSet(false);
379
    this.gross_price = 0.0;
18728 kshitij.so 380
    setCheapestBulkPriceIsSet(false);
381
    this.cheapestBulkPrice = 0.0;
18739 kshitij.so 382
    setPackQuantityIsSet(false);
383
    this.packQuantity = 0;
19158 kshitij.so 384
    setNetPriceAfterCashBackIsSet(false);
385
    this.netPriceAfterCashBack = 0.0;
19151 kshitij.so 386
    setShowNetPriceIsSet(false);
387
    this.showNetPrice = 0;
19317 kshitij.so 388
    setCategory_idIsSet(false);
389
    this.category_id = 0;
390
    setSubCategoryIdIsSet(false);
391
    this.subCategoryId = 0;
14384 kshitij.so 392
  }
393
 
394
  public long get_id() {
395
    return this._id;
396
  }
397
 
398
  public void set_id(long _id) {
399
    this._id = _id;
400
    set_idIsSet(true);
401
  }
402
 
403
  public void unset_id() {
404
    __isset_bit_vector.clear(___ID_ISSET_ID);
405
  }
406
 
407
  /** Returns true if field _id is set (has been assigned a value) and false otherwise */
408
  public boolean isSet_id() {
409
    return __isset_bit_vector.get(___ID_ISSET_ID);
410
  }
411
 
412
  public void set_idIsSet(boolean value) {
413
    __isset_bit_vector.set(___ID_ISSET_ID, value);
414
  }
415
 
416
  public double getAvailable_price() {
417
    return this.available_price;
418
  }
419
 
420
  public void setAvailable_price(double available_price) {
421
    this.available_price = available_price;
422
    setAvailable_priceIsSet(true);
423
  }
424
 
425
  public void unsetAvailable_price() {
426
    __isset_bit_vector.clear(__AVAILABLE_PRICE_ISSET_ID);
427
  }
428
 
429
  /** Returns true if field available_price is set (has been assigned a value) and false otherwise */
430
  public boolean isSetAvailable_price() {
431
    return __isset_bit_vector.get(__AVAILABLE_PRICE_ISSET_ID);
432
  }
433
 
434
  public void setAvailable_priceIsSet(boolean value) {
435
    __isset_bit_vector.set(__AVAILABLE_PRICE_ISSET_ID, value);
436
  }
437
 
438
  public String getMarketPlaceUrl() {
439
    return this.marketPlaceUrl;
440
  }
441
 
442
  public void setMarketPlaceUrl(String marketPlaceUrl) {
443
    this.marketPlaceUrl = marketPlaceUrl;
444
  }
445
 
446
  public void unsetMarketPlaceUrl() {
447
    this.marketPlaceUrl = null;
448
  }
449
 
450
  /** Returns true if field marketPlaceUrl is set (has been assigned a value) and false otherwise */
451
  public boolean isSetMarketPlaceUrl() {
452
    return this.marketPlaceUrl != null;
453
  }
454
 
455
  public void setMarketPlaceUrlIsSet(boolean value) {
456
    if (!value) {
457
      this.marketPlaceUrl = null;
458
    }
459
  }
460
 
461
  public long getIn_stock() {
462
    return this.in_stock;
463
  }
464
 
465
  public void setIn_stock(long in_stock) {
466
    this.in_stock = in_stock;
467
    setIn_stockIsSet(true);
468
  }
469
 
470
  public void unsetIn_stock() {
471
    __isset_bit_vector.clear(__IN_STOCK_ISSET_ID);
472
  }
473
 
474
  /** Returns true if field in_stock is set (has been assigned a value) and false otherwise */
475
  public boolean isSetIn_stock() {
476
    return __isset_bit_vector.get(__IN_STOCK_ISSET_ID);
477
  }
478
 
479
  public void setIn_stockIsSet(boolean value) {
480
    __isset_bit_vector.set(__IN_STOCK_ISSET_ID, value);
481
  }
482
 
483
  public long getSource_id() {
484
    return this.source_id;
485
  }
486
 
487
  public void setSource_id(long source_id) {
488
    this.source_id = source_id;
489
    setSource_idIsSet(true);
490
  }
491
 
492
  public void unsetSource_id() {
493
    __isset_bit_vector.clear(__SOURCE_ID_ISSET_ID);
494
  }
495
 
496
  /** Returns true if field source_id is set (has been assigned a value) and false otherwise */
497
  public boolean isSetSource_id() {
498
    return __isset_bit_vector.get(__SOURCE_ID_ISSET_ID);
499
  }
500
 
501
  public void setSource_idIsSet(boolean value) {
502
    __isset_bit_vector.set(__SOURCE_ID_ISSET_ID, value);
503
  }
504
 
505
  public String getSource_product_name() {
506
    return this.source_product_name;
507
  }
508
 
509
  public void setSource_product_name(String source_product_name) {
510
    this.source_product_name = source_product_name;
511
  }
512
 
513
  public void unsetSource_product_name() {
514
    this.source_product_name = null;
515
  }
516
 
517
  /** Returns true if field source_product_name is set (has been assigned a value) and false otherwise */
518
  public boolean isSetSource_product_name() {
519
    return this.source_product_name != null;
520
  }
521
 
522
  public void setSource_product_nameIsSet(boolean value) {
523
    if (!value) {
524
      this.source_product_name = null;
525
    }
526
  }
527
 
528
  public String getThumbnail() {
529
    return this.thumbnail;
530
  }
531
 
532
  public void setThumbnail(String thumbnail) {
533
    this.thumbnail = thumbnail;
534
  }
535
 
536
  public void unsetThumbnail() {
537
    this.thumbnail = null;
538
  }
539
 
540
  /** Returns true if field thumbnail is set (has been assigned a value) and false otherwise */
541
  public boolean isSetThumbnail() {
542
    return this.thumbnail != null;
543
  }
544
 
545
  public void setThumbnailIsSet(boolean value) {
546
    if (!value) {
547
      this.thumbnail = null;
548
    }
549
  }
550
 
14764 kshitij.so 551
  public long getCash_back_type() {
552
    return this.cash_back_type;
553
  }
554
 
555
  public void setCash_back_type(long cash_back_type) {
556
    this.cash_back_type = cash_back_type;
557
    setCash_back_typeIsSet(true);
558
  }
559
 
560
  public void unsetCash_back_type() {
561
    __isset_bit_vector.clear(__CASH_BACK_TYPE_ISSET_ID);
562
  }
563
 
564
  /** Returns true if field cash_back_type is set (has been assigned a value) and false otherwise */
565
  public boolean isSetCash_back_type() {
566
    return __isset_bit_vector.get(__CASH_BACK_TYPE_ISSET_ID);
567
  }
568
 
569
  public void setCash_back_typeIsSet(boolean value) {
570
    __isset_bit_vector.set(__CASH_BACK_TYPE_ISSET_ID, value);
571
  }
572
 
573
  public double getCash_back() {
574
    return this.cash_back;
575
  }
576
 
577
  public void setCash_back(double cash_back) {
578
    this.cash_back = cash_back;
579
    setCash_backIsSet(true);
580
  }
581
 
582
  public void unsetCash_back() {
583
    __isset_bit_vector.clear(__CASH_BACK_ISSET_ID);
584
  }
585
 
586
  /** Returns true if field cash_back is set (has been assigned a value) and false otherwise */
587
  public boolean isSetCash_back() {
588
    return __isset_bit_vector.get(__CASH_BACK_ISSET_ID);
589
  }
590
 
591
  public void setCash_backIsSet(boolean value) {
592
    __isset_bit_vector.set(__CASH_BACK_ISSET_ID, value);
593
  }
594
 
15903 kshitij.so 595
  public String getCoupon() {
596
    return this.coupon;
597
  }
598
 
599
  public void setCoupon(String coupon) {
600
    this.coupon = coupon;
601
  }
602
 
603
  public void unsetCoupon() {
604
    this.coupon = null;
605
  }
606
 
607
  /** Returns true if field coupon is set (has been assigned a value) and false otherwise */
608
  public boolean isSetCoupon() {
609
    return this.coupon != null;
610
  }
611
 
612
  public void setCouponIsSet(boolean value) {
613
    if (!value) {
614
      this.coupon = null;
615
    }
616
  }
617
 
15943 kshitij.so 618
  public long getCodAvailable() {
15903 kshitij.so 619
    return this.codAvailable;
620
  }
621
 
15943 kshitij.so 622
  public void setCodAvailable(long codAvailable) {
15903 kshitij.so 623
    this.codAvailable = codAvailable;
624
    setCodAvailableIsSet(true);
625
  }
626
 
627
  public void unsetCodAvailable() {
628
    __isset_bit_vector.clear(__CODAVAILABLE_ISSET_ID);
629
  }
630
 
631
  /** Returns true if field codAvailable is set (has been assigned a value) and false otherwise */
632
  public boolean isSetCodAvailable() {
633
    return __isset_bit_vector.get(__CODAVAILABLE_ISSET_ID);
634
  }
635
 
636
  public void setCodAvailableIsSet(boolean value) {
637
    __isset_bit_vector.set(__CODAVAILABLE_ISSET_ID, value);
638
  }
639
 
16117 kshitij.so 640
  public String getTagline() {
641
    return this.tagline;
642
  }
643
 
644
  public void setTagline(String tagline) {
645
    this.tagline = tagline;
646
  }
647
 
648
  public void unsetTagline() {
649
    this.tagline = null;
650
  }
651
 
652
  /** Returns true if field tagline is set (has been assigned a value) and false otherwise */
653
  public boolean isSetTagline() {
654
    return this.tagline != null;
655
  }
656
 
657
  public void setTaglineIsSet(boolean value) {
658
    if (!value) {
659
      this.tagline = null;
660
    }
661
  }
662
 
663
  public String getOffer() {
664
    return this.offer;
665
  }
666
 
667
  public void setOffer(String offer) {
668
    this.offer = offer;
669
  }
670
 
671
  public void unsetOffer() {
672
    this.offer = null;
673
  }
674
 
675
  /** Returns true if field offer is set (has been assigned a value) and false otherwise */
676
  public boolean isSetOffer() {
677
    return this.offer != null;
678
  }
679
 
680
  public void setOfferIsSet(boolean value) {
681
    if (!value) {
682
      this.offer = null;
683
    }
684
  }
685
 
16461 kshitij.so 686
  public double getGross_price() {
687
    return this.gross_price;
688
  }
689
 
690
  public void setGross_price(double gross_price) {
691
    this.gross_price = gross_price;
692
    setGross_priceIsSet(true);
693
  }
694
 
695
  public void unsetGross_price() {
696
    __isset_bit_vector.clear(__GROSS_PRICE_ISSET_ID);
697
  }
698
 
699
  /** Returns true if field gross_price is set (has been assigned a value) and false otherwise */
700
  public boolean isSetGross_price() {
701
    return __isset_bit_vector.get(__GROSS_PRICE_ISSET_ID);
702
  }
703
 
704
  public void setGross_priceIsSet(boolean value) {
705
    __isset_bit_vector.set(__GROSS_PRICE_ISSET_ID, value);
706
  }
707
 
18728 kshitij.so 708
  public double getCheapestBulkPrice() {
709
    return this.cheapestBulkPrice;
710
  }
711
 
712
  public void setCheapestBulkPrice(double cheapestBulkPrice) {
713
    this.cheapestBulkPrice = cheapestBulkPrice;
714
    setCheapestBulkPriceIsSet(true);
715
  }
716
 
717
  public void unsetCheapestBulkPrice() {
718
    __isset_bit_vector.clear(__CHEAPESTBULKPRICE_ISSET_ID);
719
  }
720
 
721
  /** Returns true if field cheapestBulkPrice is set (has been assigned a value) and false otherwise */
722
  public boolean isSetCheapestBulkPrice() {
723
    return __isset_bit_vector.get(__CHEAPESTBULKPRICE_ISSET_ID);
724
  }
725
 
726
  public void setCheapestBulkPriceIsSet(boolean value) {
727
    __isset_bit_vector.set(__CHEAPESTBULKPRICE_ISSET_ID, value);
728
  }
729
 
18739 kshitij.so 730
  public long getPackQuantity() {
731
    return this.packQuantity;
732
  }
733
 
734
  public void setPackQuantity(long packQuantity) {
735
    this.packQuantity = packQuantity;
736
    setPackQuantityIsSet(true);
737
  }
738
 
739
  public void unsetPackQuantity() {
740
    __isset_bit_vector.clear(__PACKQUANTITY_ISSET_ID);
741
  }
742
 
743
  /** Returns true if field packQuantity is set (has been assigned a value) and false otherwise */
744
  public boolean isSetPackQuantity() {
745
    return __isset_bit_vector.get(__PACKQUANTITY_ISSET_ID);
746
  }
747
 
748
  public void setPackQuantityIsSet(boolean value) {
749
    __isset_bit_vector.set(__PACKQUANTITY_ISSET_ID, value);
750
  }
751
 
19158 kshitij.so 752
  public double getNetPriceAfterCashBack() {
753
    return this.netPriceAfterCashBack;
19151 kshitij.so 754
  }
755
 
19158 kshitij.so 756
  public void setNetPriceAfterCashBack(double netPriceAfterCashBack) {
757
    this.netPriceAfterCashBack = netPriceAfterCashBack;
758
    setNetPriceAfterCashBackIsSet(true);
19151 kshitij.so 759
  }
760
 
19158 kshitij.so 761
  public void unsetNetPriceAfterCashBack() {
762
    __isset_bit_vector.clear(__NETPRICEAFTERCASHBACK_ISSET_ID);
19151 kshitij.so 763
  }
764
 
19158 kshitij.so 765
  /** Returns true if field netPriceAfterCashBack is set (has been assigned a value) and false otherwise */
766
  public boolean isSetNetPriceAfterCashBack() {
767
    return __isset_bit_vector.get(__NETPRICEAFTERCASHBACK_ISSET_ID);
19151 kshitij.so 768
  }
769
 
19158 kshitij.so 770
  public void setNetPriceAfterCashBackIsSet(boolean value) {
771
    __isset_bit_vector.set(__NETPRICEAFTERCASHBACK_ISSET_ID, value);
19151 kshitij.so 772
  }
773
 
774
  public long getShowNetPrice() {
775
    return this.showNetPrice;
776
  }
777
 
778
  public void setShowNetPrice(long showNetPrice) {
779
    this.showNetPrice = showNetPrice;
780
    setShowNetPriceIsSet(true);
781
  }
782
 
783
  public void unsetShowNetPrice() {
784
    __isset_bit_vector.clear(__SHOWNETPRICE_ISSET_ID);
785
  }
786
 
787
  /** Returns true if field showNetPrice is set (has been assigned a value) and false otherwise */
788
  public boolean isSetShowNetPrice() {
789
    return __isset_bit_vector.get(__SHOWNETPRICE_ISSET_ID);
790
  }
791
 
792
  public void setShowNetPriceIsSet(boolean value) {
793
    __isset_bit_vector.set(__SHOWNETPRICE_ISSET_ID, value);
794
  }
795
 
19317 kshitij.so 796
  public long getCategory_id() {
797
    return this.category_id;
798
  }
799
 
800
  public void setCategory_id(long category_id) {
801
    this.category_id = category_id;
802
    setCategory_idIsSet(true);
803
  }
804
 
805
  public void unsetCategory_id() {
806
    __isset_bit_vector.clear(__CATEGORY_ID_ISSET_ID);
807
  }
808
 
809
  /** Returns true if field category_id is set (has been assigned a value) and false otherwise */
810
  public boolean isSetCategory_id() {
811
    return __isset_bit_vector.get(__CATEGORY_ID_ISSET_ID);
812
  }
813
 
814
  public void setCategory_idIsSet(boolean value) {
815
    __isset_bit_vector.set(__CATEGORY_ID_ISSET_ID, value);
816
  }
817
 
818
  public long getSubCategoryId() {
819
    return this.subCategoryId;
820
  }
821
 
822
  public void setSubCategoryId(long subCategoryId) {
823
    this.subCategoryId = subCategoryId;
824
    setSubCategoryIdIsSet(true);
825
  }
826
 
827
  public void unsetSubCategoryId() {
828
    __isset_bit_vector.clear(__SUBCATEGORYID_ISSET_ID);
829
  }
830
 
831
  /** Returns true if field subCategoryId is set (has been assigned a value) and false otherwise */
832
  public boolean isSetSubCategoryId() {
833
    return __isset_bit_vector.get(__SUBCATEGORYID_ISSET_ID);
834
  }
835
 
836
  public void setSubCategoryIdIsSet(boolean value) {
837
    __isset_bit_vector.set(__SUBCATEGORYID_ISSET_ID, value);
838
  }
839
 
14384 kshitij.so 840
  public void setFieldValue(_Fields field, Object value) {
841
    switch (field) {
842
    case _ID:
843
      if (value == null) {
844
        unset_id();
845
      } else {
846
        set_id((Long)value);
847
      }
848
      break;
849
 
850
    case AVAILABLE_PRICE:
851
      if (value == null) {
852
        unsetAvailable_price();
853
      } else {
854
        setAvailable_price((Double)value);
855
      }
856
      break;
857
 
858
    case MARKET_PLACE_URL:
859
      if (value == null) {
860
        unsetMarketPlaceUrl();
861
      } else {
862
        setMarketPlaceUrl((String)value);
863
      }
864
      break;
865
 
866
    case IN_STOCK:
867
      if (value == null) {
868
        unsetIn_stock();
869
      } else {
870
        setIn_stock((Long)value);
871
      }
872
      break;
873
 
874
    case SOURCE_ID:
875
      if (value == null) {
876
        unsetSource_id();
877
      } else {
878
        setSource_id((Long)value);
879
      }
880
      break;
881
 
882
    case SOURCE_PRODUCT_NAME:
883
      if (value == null) {
884
        unsetSource_product_name();
885
      } else {
886
        setSource_product_name((String)value);
887
      }
888
      break;
889
 
890
    case THUMBNAIL:
891
      if (value == null) {
892
        unsetThumbnail();
893
      } else {
894
        setThumbnail((String)value);
895
      }
896
      break;
897
 
14764 kshitij.so 898
    case CASH_BACK_TYPE:
899
      if (value == null) {
900
        unsetCash_back_type();
901
      } else {
902
        setCash_back_type((Long)value);
903
      }
904
      break;
905
 
906
    case CASH_BACK:
907
      if (value == null) {
908
        unsetCash_back();
909
      } else {
910
        setCash_back((Double)value);
911
      }
912
      break;
913
 
15903 kshitij.so 914
    case COUPON:
915
      if (value == null) {
916
        unsetCoupon();
917
      } else {
918
        setCoupon((String)value);
919
      }
920
      break;
921
 
922
    case COD_AVAILABLE:
923
      if (value == null) {
924
        unsetCodAvailable();
925
      } else {
15943 kshitij.so 926
        setCodAvailable((Long)value);
15903 kshitij.so 927
      }
928
      break;
929
 
16117 kshitij.so 930
    case TAGLINE:
931
      if (value == null) {
932
        unsetTagline();
933
      } else {
934
        setTagline((String)value);
935
      }
936
      break;
937
 
938
    case OFFER:
939
      if (value == null) {
940
        unsetOffer();
941
      } else {
942
        setOffer((String)value);
943
      }
944
      break;
945
 
16461 kshitij.so 946
    case GROSS_PRICE:
947
      if (value == null) {
948
        unsetGross_price();
949
      } else {
950
        setGross_price((Double)value);
951
      }
952
      break;
953
 
18728 kshitij.so 954
    case CHEAPEST_BULK_PRICE:
955
      if (value == null) {
956
        unsetCheapestBulkPrice();
957
      } else {
958
        setCheapestBulkPrice((Double)value);
959
      }
960
      break;
961
 
18739 kshitij.so 962
    case PACK_QUANTITY:
963
      if (value == null) {
964
        unsetPackQuantity();
965
      } else {
966
        setPackQuantity((Long)value);
967
      }
968
      break;
969
 
19158 kshitij.so 970
    case NET_PRICE_AFTER_CASH_BACK:
19151 kshitij.so 971
      if (value == null) {
19158 kshitij.so 972
        unsetNetPriceAfterCashBack();
19151 kshitij.so 973
      } else {
19158 kshitij.so 974
        setNetPriceAfterCashBack((Double)value);
19151 kshitij.so 975
      }
976
      break;
977
 
978
    case SHOW_NET_PRICE:
979
      if (value == null) {
980
        unsetShowNetPrice();
981
      } else {
982
        setShowNetPrice((Long)value);
983
      }
984
      break;
985
 
19317 kshitij.so 986
    case CATEGORY_ID:
987
      if (value == null) {
988
        unsetCategory_id();
989
      } else {
990
        setCategory_id((Long)value);
991
      }
992
      break;
993
 
994
    case SUB_CATEGORY_ID:
995
      if (value == null) {
996
        unsetSubCategoryId();
997
      } else {
998
        setSubCategoryId((Long)value);
999
      }
1000
      break;
1001
 
14384 kshitij.so 1002
    }
1003
  }
1004
 
1005
  public Object getFieldValue(_Fields field) {
1006
    switch (field) {
1007
    case _ID:
1008
      return Long.valueOf(get_id());
1009
 
1010
    case AVAILABLE_PRICE:
1011
      return Double.valueOf(getAvailable_price());
1012
 
1013
    case MARKET_PLACE_URL:
1014
      return getMarketPlaceUrl();
1015
 
1016
    case IN_STOCK:
1017
      return Long.valueOf(getIn_stock());
1018
 
1019
    case SOURCE_ID:
1020
      return Long.valueOf(getSource_id());
1021
 
1022
    case SOURCE_PRODUCT_NAME:
1023
      return getSource_product_name();
1024
 
1025
    case THUMBNAIL:
1026
      return getThumbnail();
1027
 
14764 kshitij.so 1028
    case CASH_BACK_TYPE:
1029
      return Long.valueOf(getCash_back_type());
1030
 
1031
    case CASH_BACK:
1032
      return Double.valueOf(getCash_back());
1033
 
15903 kshitij.so 1034
    case COUPON:
1035
      return getCoupon();
1036
 
1037
    case COD_AVAILABLE:
15943 kshitij.so 1038
      return Long.valueOf(getCodAvailable());
15903 kshitij.so 1039
 
16117 kshitij.so 1040
    case TAGLINE:
1041
      return getTagline();
1042
 
1043
    case OFFER:
1044
      return getOffer();
1045
 
16461 kshitij.so 1046
    case GROSS_PRICE:
1047
      return Double.valueOf(getGross_price());
1048
 
18728 kshitij.so 1049
    case CHEAPEST_BULK_PRICE:
1050
      return Double.valueOf(getCheapestBulkPrice());
1051
 
18739 kshitij.so 1052
    case PACK_QUANTITY:
1053
      return Long.valueOf(getPackQuantity());
1054
 
19158 kshitij.so 1055
    case NET_PRICE_AFTER_CASH_BACK:
1056
      return Double.valueOf(getNetPriceAfterCashBack());
19151 kshitij.so 1057
 
1058
    case SHOW_NET_PRICE:
1059
      return Long.valueOf(getShowNetPrice());
1060
 
19317 kshitij.so 1061
    case CATEGORY_ID:
1062
      return Long.valueOf(getCategory_id());
1063
 
1064
    case SUB_CATEGORY_ID:
1065
      return Long.valueOf(getSubCategoryId());
1066
 
14384 kshitij.so 1067
    }
1068
    throw new IllegalStateException();
1069
  }
1070
 
1071
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1072
  public boolean isSet(_Fields field) {
1073
    if (field == null) {
1074
      throw new IllegalArgumentException();
1075
    }
1076
 
1077
    switch (field) {
1078
    case _ID:
1079
      return isSet_id();
1080
    case AVAILABLE_PRICE:
1081
      return isSetAvailable_price();
1082
    case MARKET_PLACE_URL:
1083
      return isSetMarketPlaceUrl();
1084
    case IN_STOCK:
1085
      return isSetIn_stock();
1086
    case SOURCE_ID:
1087
      return isSetSource_id();
1088
    case SOURCE_PRODUCT_NAME:
1089
      return isSetSource_product_name();
1090
    case THUMBNAIL:
1091
      return isSetThumbnail();
14764 kshitij.so 1092
    case CASH_BACK_TYPE:
1093
      return isSetCash_back_type();
1094
    case CASH_BACK:
1095
      return isSetCash_back();
15903 kshitij.so 1096
    case COUPON:
1097
      return isSetCoupon();
1098
    case COD_AVAILABLE:
1099
      return isSetCodAvailable();
16117 kshitij.so 1100
    case TAGLINE:
1101
      return isSetTagline();
1102
    case OFFER:
1103
      return isSetOffer();
16461 kshitij.so 1104
    case GROSS_PRICE:
1105
      return isSetGross_price();
18728 kshitij.so 1106
    case CHEAPEST_BULK_PRICE:
1107
      return isSetCheapestBulkPrice();
18739 kshitij.so 1108
    case PACK_QUANTITY:
1109
      return isSetPackQuantity();
19158 kshitij.so 1110
    case NET_PRICE_AFTER_CASH_BACK:
1111
      return isSetNetPriceAfterCashBack();
19151 kshitij.so 1112
    case SHOW_NET_PRICE:
1113
      return isSetShowNetPrice();
19317 kshitij.so 1114
    case CATEGORY_ID:
1115
      return isSetCategory_id();
1116
    case SUB_CATEGORY_ID:
1117
      return isSetSubCategoryId();
14384 kshitij.so 1118
    }
1119
    throw new IllegalStateException();
1120
  }
1121
 
1122
  @Override
1123
  public boolean equals(Object that) {
1124
    if (that == null)
1125
      return false;
1126
    if (that instanceof LivePricing)
1127
      return this.equals((LivePricing)that);
1128
    return false;
1129
  }
1130
 
1131
  public boolean equals(LivePricing that) {
1132
    if (that == null)
1133
      return false;
1134
 
1135
    boolean this_present__id = true;
1136
    boolean that_present__id = true;
1137
    if (this_present__id || that_present__id) {
1138
      if (!(this_present__id && that_present__id))
1139
        return false;
1140
      if (this._id != that._id)
1141
        return false;
1142
    }
1143
 
1144
    boolean this_present_available_price = true;
1145
    boolean that_present_available_price = true;
1146
    if (this_present_available_price || that_present_available_price) {
1147
      if (!(this_present_available_price && that_present_available_price))
1148
        return false;
1149
      if (this.available_price != that.available_price)
1150
        return false;
1151
    }
1152
 
1153
    boolean this_present_marketPlaceUrl = true && this.isSetMarketPlaceUrl();
1154
    boolean that_present_marketPlaceUrl = true && that.isSetMarketPlaceUrl();
1155
    if (this_present_marketPlaceUrl || that_present_marketPlaceUrl) {
1156
      if (!(this_present_marketPlaceUrl && that_present_marketPlaceUrl))
1157
        return false;
1158
      if (!this.marketPlaceUrl.equals(that.marketPlaceUrl))
1159
        return false;
1160
    }
1161
 
1162
    boolean this_present_in_stock = true;
1163
    boolean that_present_in_stock = true;
1164
    if (this_present_in_stock || that_present_in_stock) {
1165
      if (!(this_present_in_stock && that_present_in_stock))
1166
        return false;
1167
      if (this.in_stock != that.in_stock)
1168
        return false;
1169
    }
1170
 
1171
    boolean this_present_source_id = true;
1172
    boolean that_present_source_id = true;
1173
    if (this_present_source_id || that_present_source_id) {
1174
      if (!(this_present_source_id && that_present_source_id))
1175
        return false;
1176
      if (this.source_id != that.source_id)
1177
        return false;
1178
    }
1179
 
1180
    boolean this_present_source_product_name = true && this.isSetSource_product_name();
1181
    boolean that_present_source_product_name = true && that.isSetSource_product_name();
1182
    if (this_present_source_product_name || that_present_source_product_name) {
1183
      if (!(this_present_source_product_name && that_present_source_product_name))
1184
        return false;
1185
      if (!this.source_product_name.equals(that.source_product_name))
1186
        return false;
1187
    }
1188
 
1189
    boolean this_present_thumbnail = true && this.isSetThumbnail();
1190
    boolean that_present_thumbnail = true && that.isSetThumbnail();
1191
    if (this_present_thumbnail || that_present_thumbnail) {
1192
      if (!(this_present_thumbnail && that_present_thumbnail))
1193
        return false;
1194
      if (!this.thumbnail.equals(that.thumbnail))
1195
        return false;
1196
    }
1197
 
14764 kshitij.so 1198
    boolean this_present_cash_back_type = true;
1199
    boolean that_present_cash_back_type = true;
1200
    if (this_present_cash_back_type || that_present_cash_back_type) {
1201
      if (!(this_present_cash_back_type && that_present_cash_back_type))
1202
        return false;
1203
      if (this.cash_back_type != that.cash_back_type)
1204
        return false;
1205
    }
1206
 
1207
    boolean this_present_cash_back = true;
1208
    boolean that_present_cash_back = true;
1209
    if (this_present_cash_back || that_present_cash_back) {
1210
      if (!(this_present_cash_back && that_present_cash_back))
1211
        return false;
1212
      if (this.cash_back != that.cash_back)
1213
        return false;
1214
    }
1215
 
15903 kshitij.so 1216
    boolean this_present_coupon = true && this.isSetCoupon();
1217
    boolean that_present_coupon = true && that.isSetCoupon();
1218
    if (this_present_coupon || that_present_coupon) {
1219
      if (!(this_present_coupon && that_present_coupon))
1220
        return false;
1221
      if (!this.coupon.equals(that.coupon))
1222
        return false;
1223
    }
1224
 
1225
    boolean this_present_codAvailable = true;
1226
    boolean that_present_codAvailable = true;
1227
    if (this_present_codAvailable || that_present_codAvailable) {
1228
      if (!(this_present_codAvailable && that_present_codAvailable))
1229
        return false;
1230
      if (this.codAvailable != that.codAvailable)
1231
        return false;
1232
    }
1233
 
16117 kshitij.so 1234
    boolean this_present_tagline = true && this.isSetTagline();
1235
    boolean that_present_tagline = true && that.isSetTagline();
1236
    if (this_present_tagline || that_present_tagline) {
1237
      if (!(this_present_tagline && that_present_tagline))
1238
        return false;
1239
      if (!this.tagline.equals(that.tagline))
1240
        return false;
1241
    }
1242
 
1243
    boolean this_present_offer = true && this.isSetOffer();
1244
    boolean that_present_offer = true && that.isSetOffer();
1245
    if (this_present_offer || that_present_offer) {
1246
      if (!(this_present_offer && that_present_offer))
1247
        return false;
1248
      if (!this.offer.equals(that.offer))
1249
        return false;
1250
    }
1251
 
16461 kshitij.so 1252
    boolean this_present_gross_price = true;
1253
    boolean that_present_gross_price = true;
1254
    if (this_present_gross_price || that_present_gross_price) {
1255
      if (!(this_present_gross_price && that_present_gross_price))
1256
        return false;
1257
      if (this.gross_price != that.gross_price)
1258
        return false;
1259
    }
1260
 
18728 kshitij.so 1261
    boolean this_present_cheapestBulkPrice = true;
1262
    boolean that_present_cheapestBulkPrice = true;
1263
    if (this_present_cheapestBulkPrice || that_present_cheapestBulkPrice) {
1264
      if (!(this_present_cheapestBulkPrice && that_present_cheapestBulkPrice))
1265
        return false;
1266
      if (this.cheapestBulkPrice != that.cheapestBulkPrice)
1267
        return false;
1268
    }
1269
 
18739 kshitij.so 1270
    boolean this_present_packQuantity = true;
1271
    boolean that_present_packQuantity = true;
1272
    if (this_present_packQuantity || that_present_packQuantity) {
1273
      if (!(this_present_packQuantity && that_present_packQuantity))
1274
        return false;
1275
      if (this.packQuantity != that.packQuantity)
1276
        return false;
1277
    }
1278
 
19158 kshitij.so 1279
    boolean this_present_netPriceAfterCashBack = true;
1280
    boolean that_present_netPriceAfterCashBack = true;
1281
    if (this_present_netPriceAfterCashBack || that_present_netPriceAfterCashBack) {
1282
      if (!(this_present_netPriceAfterCashBack && that_present_netPriceAfterCashBack))
19151 kshitij.so 1283
        return false;
19158 kshitij.so 1284
      if (this.netPriceAfterCashBack != that.netPriceAfterCashBack)
19151 kshitij.so 1285
        return false;
1286
    }
1287
 
1288
    boolean this_present_showNetPrice = true;
1289
    boolean that_present_showNetPrice = true;
1290
    if (this_present_showNetPrice || that_present_showNetPrice) {
1291
      if (!(this_present_showNetPrice && that_present_showNetPrice))
1292
        return false;
1293
      if (this.showNetPrice != that.showNetPrice)
1294
        return false;
1295
    }
1296
 
19317 kshitij.so 1297
    boolean this_present_category_id = true;
1298
    boolean that_present_category_id = true;
1299
    if (this_present_category_id || that_present_category_id) {
1300
      if (!(this_present_category_id && that_present_category_id))
1301
        return false;
1302
      if (this.category_id != that.category_id)
1303
        return false;
1304
    }
1305
 
1306
    boolean this_present_subCategoryId = true;
1307
    boolean that_present_subCategoryId = true;
1308
    if (this_present_subCategoryId || that_present_subCategoryId) {
1309
      if (!(this_present_subCategoryId && that_present_subCategoryId))
1310
        return false;
1311
      if (this.subCategoryId != that.subCategoryId)
1312
        return false;
1313
    }
1314
 
14384 kshitij.so 1315
    return true;
1316
  }
1317
 
1318
  @Override
1319
  public int hashCode() {
1320
    return 0;
1321
  }
1322
 
1323
  public int compareTo(LivePricing other) {
1324
    if (!getClass().equals(other.getClass())) {
1325
      return getClass().getName().compareTo(other.getClass().getName());
1326
    }
1327
 
1328
    int lastComparison = 0;
1329
    LivePricing typedOther = (LivePricing)other;
1330
 
1331
    lastComparison = Boolean.valueOf(isSet_id()).compareTo(typedOther.isSet_id());
1332
    if (lastComparison != 0) {
1333
      return lastComparison;
1334
    }
1335
    if (isSet_id()) {
1336
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this._id, typedOther._id);
1337
      if (lastComparison != 0) {
1338
        return lastComparison;
1339
      }
1340
    }
1341
    lastComparison = Boolean.valueOf(isSetAvailable_price()).compareTo(typedOther.isSetAvailable_price());
1342
    if (lastComparison != 0) {
1343
      return lastComparison;
1344
    }
1345
    if (isSetAvailable_price()) {
1346
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.available_price, typedOther.available_price);
1347
      if (lastComparison != 0) {
1348
        return lastComparison;
1349
      }
1350
    }
1351
    lastComparison = Boolean.valueOf(isSetMarketPlaceUrl()).compareTo(typedOther.isSetMarketPlaceUrl());
1352
    if (lastComparison != 0) {
1353
      return lastComparison;
1354
    }
1355
    if (isSetMarketPlaceUrl()) {
1356
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.marketPlaceUrl, typedOther.marketPlaceUrl);
1357
      if (lastComparison != 0) {
1358
        return lastComparison;
1359
      }
1360
    }
1361
    lastComparison = Boolean.valueOf(isSetIn_stock()).compareTo(typedOther.isSetIn_stock());
1362
    if (lastComparison != 0) {
1363
      return lastComparison;
1364
    }
1365
    if (isSetIn_stock()) {
1366
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.in_stock, typedOther.in_stock);
1367
      if (lastComparison != 0) {
1368
        return lastComparison;
1369
      }
1370
    }
1371
    lastComparison = Boolean.valueOf(isSetSource_id()).compareTo(typedOther.isSetSource_id());
1372
    if (lastComparison != 0) {
1373
      return lastComparison;
1374
    }
1375
    if (isSetSource_id()) {
1376
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_id, typedOther.source_id);
1377
      if (lastComparison != 0) {
1378
        return lastComparison;
1379
      }
1380
    }
1381
    lastComparison = Boolean.valueOf(isSetSource_product_name()).compareTo(typedOther.isSetSource_product_name());
1382
    if (lastComparison != 0) {
1383
      return lastComparison;
1384
    }
1385
    if (isSetSource_product_name()) {
1386
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_product_name, typedOther.source_product_name);
1387
      if (lastComparison != 0) {
1388
        return lastComparison;
1389
      }
1390
    }
1391
    lastComparison = Boolean.valueOf(isSetThumbnail()).compareTo(typedOther.isSetThumbnail());
1392
    if (lastComparison != 0) {
1393
      return lastComparison;
1394
    }
1395
    if (isSetThumbnail()) {
1396
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.thumbnail, typedOther.thumbnail);
1397
      if (lastComparison != 0) {
1398
        return lastComparison;
1399
      }
1400
    }
14764 kshitij.so 1401
    lastComparison = Boolean.valueOf(isSetCash_back_type()).compareTo(typedOther.isSetCash_back_type());
1402
    if (lastComparison != 0) {
1403
      return lastComparison;
1404
    }
1405
    if (isSetCash_back_type()) {
1406
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cash_back_type, typedOther.cash_back_type);
1407
      if (lastComparison != 0) {
1408
        return lastComparison;
1409
      }
1410
    }
1411
    lastComparison = Boolean.valueOf(isSetCash_back()).compareTo(typedOther.isSetCash_back());
1412
    if (lastComparison != 0) {
1413
      return lastComparison;
1414
    }
1415
    if (isSetCash_back()) {
1416
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cash_back, typedOther.cash_back);
1417
      if (lastComparison != 0) {
1418
        return lastComparison;
1419
      }
1420
    }
15903 kshitij.so 1421
    lastComparison = Boolean.valueOf(isSetCoupon()).compareTo(typedOther.isSetCoupon());
1422
    if (lastComparison != 0) {
1423
      return lastComparison;
1424
    }
1425
    if (isSetCoupon()) {
1426
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.coupon, typedOther.coupon);
1427
      if (lastComparison != 0) {
1428
        return lastComparison;
1429
      }
1430
    }
1431
    lastComparison = Boolean.valueOf(isSetCodAvailable()).compareTo(typedOther.isSetCodAvailable());
1432
    if (lastComparison != 0) {
1433
      return lastComparison;
1434
    }
1435
    if (isSetCodAvailable()) {
1436
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.codAvailable, typedOther.codAvailable);
1437
      if (lastComparison != 0) {
1438
        return lastComparison;
1439
      }
1440
    }
16117 kshitij.so 1441
    lastComparison = Boolean.valueOf(isSetTagline()).compareTo(typedOther.isSetTagline());
1442
    if (lastComparison != 0) {
1443
      return lastComparison;
1444
    }
1445
    if (isSetTagline()) {
1446
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tagline, typedOther.tagline);
1447
      if (lastComparison != 0) {
1448
        return lastComparison;
1449
      }
1450
    }
1451
    lastComparison = Boolean.valueOf(isSetOffer()).compareTo(typedOther.isSetOffer());
1452
    if (lastComparison != 0) {
1453
      return lastComparison;
1454
    }
1455
    if (isSetOffer()) {
1456
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offer, typedOther.offer);
1457
      if (lastComparison != 0) {
1458
        return lastComparison;
1459
      }
1460
    }
16461 kshitij.so 1461
    lastComparison = Boolean.valueOf(isSetGross_price()).compareTo(typedOther.isSetGross_price());
1462
    if (lastComparison != 0) {
1463
      return lastComparison;
1464
    }
1465
    if (isSetGross_price()) {
1466
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gross_price, typedOther.gross_price);
1467
      if (lastComparison != 0) {
1468
        return lastComparison;
1469
      }
1470
    }
18728 kshitij.so 1471
    lastComparison = Boolean.valueOf(isSetCheapestBulkPrice()).compareTo(typedOther.isSetCheapestBulkPrice());
1472
    if (lastComparison != 0) {
1473
      return lastComparison;
1474
    }
1475
    if (isSetCheapestBulkPrice()) {
1476
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cheapestBulkPrice, typedOther.cheapestBulkPrice);
1477
      if (lastComparison != 0) {
1478
        return lastComparison;
1479
      }
1480
    }
18739 kshitij.so 1481
    lastComparison = Boolean.valueOf(isSetPackQuantity()).compareTo(typedOther.isSetPackQuantity());
1482
    if (lastComparison != 0) {
1483
      return lastComparison;
1484
    }
1485
    if (isSetPackQuantity()) {
1486
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.packQuantity, typedOther.packQuantity);
1487
      if (lastComparison != 0) {
1488
        return lastComparison;
1489
      }
1490
    }
19158 kshitij.so 1491
    lastComparison = Boolean.valueOf(isSetNetPriceAfterCashBack()).compareTo(typedOther.isSetNetPriceAfterCashBack());
19151 kshitij.so 1492
    if (lastComparison != 0) {
1493
      return lastComparison;
1494
    }
19158 kshitij.so 1495
    if (isSetNetPriceAfterCashBack()) {
1496
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.netPriceAfterCashBack, typedOther.netPriceAfterCashBack);
19151 kshitij.so 1497
      if (lastComparison != 0) {
1498
        return lastComparison;
1499
      }
1500
    }
1501
    lastComparison = Boolean.valueOf(isSetShowNetPrice()).compareTo(typedOther.isSetShowNetPrice());
1502
    if (lastComparison != 0) {
1503
      return lastComparison;
1504
    }
1505
    if (isSetShowNetPrice()) {
1506
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.showNetPrice, typedOther.showNetPrice);
1507
      if (lastComparison != 0) {
1508
        return lastComparison;
1509
      }
1510
    }
19317 kshitij.so 1511
    lastComparison = Boolean.valueOf(isSetCategory_id()).compareTo(typedOther.isSetCategory_id());
1512
    if (lastComparison != 0) {
1513
      return lastComparison;
1514
    }
1515
    if (isSetCategory_id()) {
1516
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category_id, typedOther.category_id);
1517
      if (lastComparison != 0) {
1518
        return lastComparison;
1519
      }
1520
    }
1521
    lastComparison = Boolean.valueOf(isSetSubCategoryId()).compareTo(typedOther.isSetSubCategoryId());
1522
    if (lastComparison != 0) {
1523
      return lastComparison;
1524
    }
1525
    if (isSetSubCategoryId()) {
1526
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subCategoryId, typedOther.subCategoryId);
1527
      if (lastComparison != 0) {
1528
        return lastComparison;
1529
      }
1530
    }
14384 kshitij.so 1531
    return 0;
1532
  }
1533
 
1534
  public _Fields fieldForId(int fieldId) {
1535
    return _Fields.findByThriftId(fieldId);
1536
  }
1537
 
1538
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1539
    org.apache.thrift.protocol.TField field;
1540
    iprot.readStructBegin();
1541
    while (true)
1542
    {
1543
      field = iprot.readFieldBegin();
1544
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1545
        break;
1546
      }
1547
      switch (field.id) {
1548
        case 1: // _ID
1549
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1550
            this._id = iprot.readI64();
1551
            set_idIsSet(true);
1552
          } else { 
1553
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1554
          }
1555
          break;
1556
        case 2: // AVAILABLE_PRICE
1557
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1558
            this.available_price = iprot.readDouble();
1559
            setAvailable_priceIsSet(true);
1560
          } else { 
1561
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1562
          }
1563
          break;
1564
        case 3: // MARKET_PLACE_URL
1565
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1566
            this.marketPlaceUrl = iprot.readString();
1567
          } else { 
1568
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1569
          }
1570
          break;
1571
        case 4: // IN_STOCK
1572
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1573
            this.in_stock = iprot.readI64();
1574
            setIn_stockIsSet(true);
1575
          } else { 
1576
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1577
          }
1578
          break;
1579
        case 5: // SOURCE_ID
1580
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1581
            this.source_id = iprot.readI64();
1582
            setSource_idIsSet(true);
1583
          } else { 
1584
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1585
          }
1586
          break;
1587
        case 6: // SOURCE_PRODUCT_NAME
1588
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1589
            this.source_product_name = iprot.readString();
1590
          } else { 
1591
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1592
          }
1593
          break;
1594
        case 7: // THUMBNAIL
1595
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1596
            this.thumbnail = iprot.readString();
1597
          } else { 
1598
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1599
          }
1600
          break;
14764 kshitij.so 1601
        case 8: // CASH_BACK_TYPE
1602
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1603
            this.cash_back_type = iprot.readI64();
1604
            setCash_back_typeIsSet(true);
1605
          } else { 
1606
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1607
          }
1608
          break;
1609
        case 9: // CASH_BACK
1610
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1611
            this.cash_back = iprot.readDouble();
1612
            setCash_backIsSet(true);
1613
          } else { 
1614
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1615
          }
1616
          break;
15903 kshitij.so 1617
        case 10: // COUPON
1618
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1619
            this.coupon = iprot.readString();
1620
          } else { 
1621
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1622
          }
1623
          break;
1624
        case 11: // COD_AVAILABLE
15943 kshitij.so 1625
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1626
            this.codAvailable = iprot.readI64();
15903 kshitij.so 1627
            setCodAvailableIsSet(true);
1628
          } else { 
1629
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1630
          }
1631
          break;
16117 kshitij.so 1632
        case 12: // TAGLINE
1633
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1634
            this.tagline = iprot.readString();
1635
          } else { 
1636
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1637
          }
1638
          break;
1639
        case 13: // OFFER
1640
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1641
            this.offer = iprot.readString();
1642
          } else { 
1643
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1644
          }
1645
          break;
16461 kshitij.so 1646
        case 14: // GROSS_PRICE
1647
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1648
            this.gross_price = iprot.readDouble();
1649
            setGross_priceIsSet(true);
1650
          } else { 
1651
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1652
          }
1653
          break;
18728 kshitij.so 1654
        case 15: // CHEAPEST_BULK_PRICE
1655
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1656
            this.cheapestBulkPrice = iprot.readDouble();
1657
            setCheapestBulkPriceIsSet(true);
1658
          } else { 
1659
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1660
          }
1661
          break;
18739 kshitij.so 1662
        case 16: // PACK_QUANTITY
1663
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1664
            this.packQuantity = iprot.readI64();
1665
            setPackQuantityIsSet(true);
1666
          } else { 
1667
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1668
          }
1669
          break;
19158 kshitij.so 1670
        case 17: // NET_PRICE_AFTER_CASH_BACK
19151 kshitij.so 1671
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
19158 kshitij.so 1672
            this.netPriceAfterCashBack = iprot.readDouble();
1673
            setNetPriceAfterCashBackIsSet(true);
19151 kshitij.so 1674
          } else { 
1675
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1676
          }
1677
          break;
1678
        case 18: // SHOW_NET_PRICE
1679
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1680
            this.showNetPrice = iprot.readI64();
1681
            setShowNetPriceIsSet(true);
1682
          } else { 
1683
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1684
          }
1685
          break;
19317 kshitij.so 1686
        case 19: // CATEGORY_ID
1687
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1688
            this.category_id = iprot.readI64();
1689
            setCategory_idIsSet(true);
1690
          } else { 
1691
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1692
          }
1693
          break;
1694
        case 20: // SUB_CATEGORY_ID
1695
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1696
            this.subCategoryId = iprot.readI64();
1697
            setSubCategoryIdIsSet(true);
1698
          } else { 
1699
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1700
          }
1701
          break;
14384 kshitij.so 1702
        default:
1703
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1704
      }
1705
      iprot.readFieldEnd();
1706
    }
1707
    iprot.readStructEnd();
1708
    validate();
1709
  }
1710
 
1711
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1712
    validate();
1713
 
1714
    oprot.writeStructBegin(STRUCT_DESC);
1715
    oprot.writeFieldBegin(_ID_FIELD_DESC);
1716
    oprot.writeI64(this._id);
1717
    oprot.writeFieldEnd();
1718
    oprot.writeFieldBegin(AVAILABLE_PRICE_FIELD_DESC);
1719
    oprot.writeDouble(this.available_price);
1720
    oprot.writeFieldEnd();
1721
    if (this.marketPlaceUrl != null) {
1722
      oprot.writeFieldBegin(MARKET_PLACE_URL_FIELD_DESC);
1723
      oprot.writeString(this.marketPlaceUrl);
1724
      oprot.writeFieldEnd();
1725
    }
1726
    oprot.writeFieldBegin(IN_STOCK_FIELD_DESC);
1727
    oprot.writeI64(this.in_stock);
1728
    oprot.writeFieldEnd();
1729
    oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
1730
    oprot.writeI64(this.source_id);
1731
    oprot.writeFieldEnd();
1732
    if (this.source_product_name != null) {
1733
      oprot.writeFieldBegin(SOURCE_PRODUCT_NAME_FIELD_DESC);
1734
      oprot.writeString(this.source_product_name);
1735
      oprot.writeFieldEnd();
1736
    }
1737
    if (this.thumbnail != null) {
1738
      oprot.writeFieldBegin(THUMBNAIL_FIELD_DESC);
1739
      oprot.writeString(this.thumbnail);
1740
      oprot.writeFieldEnd();
1741
    }
14764 kshitij.so 1742
    oprot.writeFieldBegin(CASH_BACK_TYPE_FIELD_DESC);
1743
    oprot.writeI64(this.cash_back_type);
1744
    oprot.writeFieldEnd();
1745
    oprot.writeFieldBegin(CASH_BACK_FIELD_DESC);
1746
    oprot.writeDouble(this.cash_back);
1747
    oprot.writeFieldEnd();
15903 kshitij.so 1748
    if (this.coupon != null) {
1749
      oprot.writeFieldBegin(COUPON_FIELD_DESC);
1750
      oprot.writeString(this.coupon);
1751
      oprot.writeFieldEnd();
1752
    }
1753
    oprot.writeFieldBegin(COD_AVAILABLE_FIELD_DESC);
15943 kshitij.so 1754
    oprot.writeI64(this.codAvailable);
15903 kshitij.so 1755
    oprot.writeFieldEnd();
16117 kshitij.so 1756
    if (this.tagline != null) {
1757
      oprot.writeFieldBegin(TAGLINE_FIELD_DESC);
1758
      oprot.writeString(this.tagline);
1759
      oprot.writeFieldEnd();
1760
    }
1761
    if (this.offer != null) {
1762
      oprot.writeFieldBegin(OFFER_FIELD_DESC);
1763
      oprot.writeString(this.offer);
1764
      oprot.writeFieldEnd();
1765
    }
16461 kshitij.so 1766
    oprot.writeFieldBegin(GROSS_PRICE_FIELD_DESC);
1767
    oprot.writeDouble(this.gross_price);
1768
    oprot.writeFieldEnd();
18728 kshitij.so 1769
    oprot.writeFieldBegin(CHEAPEST_BULK_PRICE_FIELD_DESC);
1770
    oprot.writeDouble(this.cheapestBulkPrice);
1771
    oprot.writeFieldEnd();
18739 kshitij.so 1772
    oprot.writeFieldBegin(PACK_QUANTITY_FIELD_DESC);
1773
    oprot.writeI64(this.packQuantity);
1774
    oprot.writeFieldEnd();
19158 kshitij.so 1775
    oprot.writeFieldBegin(NET_PRICE_AFTER_CASH_BACK_FIELD_DESC);
1776
    oprot.writeDouble(this.netPriceAfterCashBack);
19151 kshitij.so 1777
    oprot.writeFieldEnd();
1778
    oprot.writeFieldBegin(SHOW_NET_PRICE_FIELD_DESC);
1779
    oprot.writeI64(this.showNetPrice);
1780
    oprot.writeFieldEnd();
19317 kshitij.so 1781
    oprot.writeFieldBegin(CATEGORY_ID_FIELD_DESC);
1782
    oprot.writeI64(this.category_id);
1783
    oprot.writeFieldEnd();
1784
    oprot.writeFieldBegin(SUB_CATEGORY_ID_FIELD_DESC);
1785
    oprot.writeI64(this.subCategoryId);
1786
    oprot.writeFieldEnd();
14384 kshitij.so 1787
    oprot.writeFieldStop();
1788
    oprot.writeStructEnd();
1789
  }
1790
 
1791
  @Override
1792
  public String toString() {
1793
    StringBuilder sb = new StringBuilder("LivePricing(");
1794
    boolean first = true;
1795
 
1796
    sb.append("_id:");
1797
    sb.append(this._id);
1798
    first = false;
1799
    if (!first) sb.append(", ");
1800
    sb.append("available_price:");
1801
    sb.append(this.available_price);
1802
    first = false;
1803
    if (!first) sb.append(", ");
1804
    sb.append("marketPlaceUrl:");
1805
    if (this.marketPlaceUrl == null) {
1806
      sb.append("null");
1807
    } else {
1808
      sb.append(this.marketPlaceUrl);
1809
    }
1810
    first = false;
1811
    if (!first) sb.append(", ");
1812
    sb.append("in_stock:");
1813
    sb.append(this.in_stock);
1814
    first = false;
1815
    if (!first) sb.append(", ");
1816
    sb.append("source_id:");
1817
    sb.append(this.source_id);
1818
    first = false;
1819
    if (!first) sb.append(", ");
1820
    sb.append("source_product_name:");
1821
    if (this.source_product_name == null) {
1822
      sb.append("null");
1823
    } else {
1824
      sb.append(this.source_product_name);
1825
    }
1826
    first = false;
1827
    if (!first) sb.append(", ");
1828
    sb.append("thumbnail:");
1829
    if (this.thumbnail == null) {
1830
      sb.append("null");
1831
    } else {
1832
      sb.append(this.thumbnail);
1833
    }
1834
    first = false;
14764 kshitij.so 1835
    if (!first) sb.append(", ");
1836
    sb.append("cash_back_type:");
1837
    sb.append(this.cash_back_type);
1838
    first = false;
1839
    if (!first) sb.append(", ");
1840
    sb.append("cash_back:");
1841
    sb.append(this.cash_back);
1842
    first = false;
15903 kshitij.so 1843
    if (!first) sb.append(", ");
1844
    sb.append("coupon:");
1845
    if (this.coupon == null) {
1846
      sb.append("null");
1847
    } else {
1848
      sb.append(this.coupon);
1849
    }
1850
    first = false;
1851
    if (!first) sb.append(", ");
1852
    sb.append("codAvailable:");
1853
    sb.append(this.codAvailable);
1854
    first = false;
16117 kshitij.so 1855
    if (!first) sb.append(", ");
1856
    sb.append("tagline:");
1857
    if (this.tagline == null) {
1858
      sb.append("null");
1859
    } else {
1860
      sb.append(this.tagline);
1861
    }
1862
    first = false;
1863
    if (!first) sb.append(", ");
1864
    sb.append("offer:");
1865
    if (this.offer == null) {
1866
      sb.append("null");
1867
    } else {
1868
      sb.append(this.offer);
1869
    }
1870
    first = false;
16461 kshitij.so 1871
    if (!first) sb.append(", ");
1872
    sb.append("gross_price:");
1873
    sb.append(this.gross_price);
1874
    first = false;
18728 kshitij.so 1875
    if (!first) sb.append(", ");
1876
    sb.append("cheapestBulkPrice:");
1877
    sb.append(this.cheapestBulkPrice);
1878
    first = false;
18739 kshitij.so 1879
    if (!first) sb.append(", ");
1880
    sb.append("packQuantity:");
1881
    sb.append(this.packQuantity);
1882
    first = false;
19151 kshitij.so 1883
    if (!first) sb.append(", ");
19158 kshitij.so 1884
    sb.append("netPriceAfterCashBack:");
1885
    sb.append(this.netPriceAfterCashBack);
19151 kshitij.so 1886
    first = false;
1887
    if (!first) sb.append(", ");
1888
    sb.append("showNetPrice:");
1889
    sb.append(this.showNetPrice);
1890
    first = false;
19317 kshitij.so 1891
    if (!first) sb.append(", ");
1892
    sb.append("category_id:");
1893
    sb.append(this.category_id);
1894
    first = false;
1895
    if (!first) sb.append(", ");
1896
    sb.append("subCategoryId:");
1897
    sb.append(this.subCategoryId);
1898
    first = false;
14384 kshitij.so 1899
    sb.append(")");
1900
    return sb.toString();
1901
  }
1902
 
1903
  public void validate() throws org.apache.thrift.TException {
1904
    // check for required fields
1905
  }
1906
 
1907
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1908
    try {
1909
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1910
    } catch (org.apache.thrift.TException te) {
1911
      throw new java.io.IOException(te);
1912
    }
1913
  }
1914
 
1915
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1916
    try {
1917
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1918
      __isset_bit_vector = new BitSet(1);
1919
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1920
    } catch (org.apache.thrift.TException te) {
1921
      throw new java.io.IOException(te);
1922
    }
1923
  }
1924
 
1925
}
1926