Subversion Repositories SmartDukaan

Rev

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