Subversion Repositories SmartDukaan

Rev

Rev 15943 | Rev 16461 | 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);
14384 kshitij.so 42
 
43
  private long _id; // required
44
  private double available_price; // required
45
  private String marketPlaceUrl; // required
46
  private long in_stock; // required
47
  private long source_id; // required
48
  private String source_product_name; // required
49
  private String thumbnail; // required
14764 kshitij.so 50
  private long cash_back_type; // required
51
  private double cash_back; // required
15903 kshitij.so 52
  private String coupon; // required
15943 kshitij.so 53
  private long codAvailable; // required
16117 kshitij.so 54
  private String tagline; // required
55
  private String offer; // required
14384 kshitij.so 56
 
57
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
58
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
59
    _ID((short)1, "_id"),
60
    AVAILABLE_PRICE((short)2, "available_price"),
61
    MARKET_PLACE_URL((short)3, "marketPlaceUrl"),
62
    IN_STOCK((short)4, "in_stock"),
63
    SOURCE_ID((short)5, "source_id"),
64
    SOURCE_PRODUCT_NAME((short)6, "source_product_name"),
14764 kshitij.so 65
    THUMBNAIL((short)7, "thumbnail"),
66
    CASH_BACK_TYPE((short)8, "cash_back_type"),
15903 kshitij.so 67
    CASH_BACK((short)9, "cash_back"),
68
    COUPON((short)10, "coupon"),
16117 kshitij.so 69
    COD_AVAILABLE((short)11, "codAvailable"),
70
    TAGLINE((short)12, "tagline"),
71
    OFFER((short)13, "offer");
14384 kshitij.so 72
 
73
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
74
 
75
    static {
76
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
77
        byName.put(field.getFieldName(), field);
78
      }
79
    }
80
 
81
    /**
82
     * Find the _Fields constant that matches fieldId, or null if its not found.
83
     */
84
    public static _Fields findByThriftId(int fieldId) {
85
      switch(fieldId) {
86
        case 1: // _ID
87
          return _ID;
88
        case 2: // AVAILABLE_PRICE
89
          return AVAILABLE_PRICE;
90
        case 3: // MARKET_PLACE_URL
91
          return MARKET_PLACE_URL;
92
        case 4: // IN_STOCK
93
          return IN_STOCK;
94
        case 5: // SOURCE_ID
95
          return SOURCE_ID;
96
        case 6: // SOURCE_PRODUCT_NAME
97
          return SOURCE_PRODUCT_NAME;
98
        case 7: // THUMBNAIL
99
          return THUMBNAIL;
14764 kshitij.so 100
        case 8: // CASH_BACK_TYPE
101
          return CASH_BACK_TYPE;
102
        case 9: // CASH_BACK
103
          return CASH_BACK;
15903 kshitij.so 104
        case 10: // COUPON
105
          return COUPON;
106
        case 11: // COD_AVAILABLE
107
          return COD_AVAILABLE;
16117 kshitij.so 108
        case 12: // TAGLINE
109
          return TAGLINE;
110
        case 13: // OFFER
111
          return OFFER;
14384 kshitij.so 112
        default:
113
          return null;
114
      }
115
    }
116
 
117
    /**
118
     * Find the _Fields constant that matches fieldId, throwing an exception
119
     * if it is not found.
120
     */
121
    public static _Fields findByThriftIdOrThrow(int fieldId) {
122
      _Fields fields = findByThriftId(fieldId);
123
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
124
      return fields;
125
    }
126
 
127
    /**
128
     * Find the _Fields constant that matches name, or null if its not found.
129
     */
130
    public static _Fields findByName(String name) {
131
      return byName.get(name);
132
    }
133
 
134
    private final short _thriftId;
135
    private final String _fieldName;
136
 
137
    _Fields(short thriftId, String fieldName) {
138
      _thriftId = thriftId;
139
      _fieldName = fieldName;
140
    }
141
 
142
    public short getThriftFieldId() {
143
      return _thriftId;
144
    }
145
 
146
    public String getFieldName() {
147
      return _fieldName;
148
    }
149
  }
150
 
151
  // isset id assignments
152
  private static final int ___ID_ISSET_ID = 0;
153
  private static final int __AVAILABLE_PRICE_ISSET_ID = 1;
154
  private static final int __IN_STOCK_ISSET_ID = 2;
155
  private static final int __SOURCE_ID_ISSET_ID = 3;
14764 kshitij.so 156
  private static final int __CASH_BACK_TYPE_ISSET_ID = 4;
157
  private static final int __CASH_BACK_ISSET_ID = 5;
15903 kshitij.so 158
  private static final int __CODAVAILABLE_ISSET_ID = 6;
159
  private BitSet __isset_bit_vector = new BitSet(7);
14384 kshitij.so 160
 
161
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
162
  static {
163
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
164
    tmpMap.put(_Fields._ID, new org.apache.thrift.meta_data.FieldMetaData("_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
165
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
166
    tmpMap.put(_Fields.AVAILABLE_PRICE, new org.apache.thrift.meta_data.FieldMetaData("available_price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
167
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
168
    tmpMap.put(_Fields.MARKET_PLACE_URL, new org.apache.thrift.meta_data.FieldMetaData("marketPlaceUrl", org.apache.thrift.TFieldRequirementType.DEFAULT, 
169
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
170
    tmpMap.put(_Fields.IN_STOCK, new org.apache.thrift.meta_data.FieldMetaData("in_stock", org.apache.thrift.TFieldRequirementType.DEFAULT, 
171
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
172
    tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("source_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
173
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
174
    tmpMap.put(_Fields.SOURCE_PRODUCT_NAME, new org.apache.thrift.meta_data.FieldMetaData("source_product_name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
175
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
176
    tmpMap.put(_Fields.THUMBNAIL, new org.apache.thrift.meta_data.FieldMetaData("thumbnail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
177
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14764 kshitij.so 178
    tmpMap.put(_Fields.CASH_BACK_TYPE, new org.apache.thrift.meta_data.FieldMetaData("cash_back_type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
179
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
180
    tmpMap.put(_Fields.CASH_BACK, new org.apache.thrift.meta_data.FieldMetaData("cash_back", org.apache.thrift.TFieldRequirementType.DEFAULT, 
181
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
15903 kshitij.so 182
    tmpMap.put(_Fields.COUPON, new org.apache.thrift.meta_data.FieldMetaData("coupon", org.apache.thrift.TFieldRequirementType.DEFAULT, 
183
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
184
    tmpMap.put(_Fields.COD_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("codAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15943 kshitij.so 185
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16117 kshitij.so 186
    tmpMap.put(_Fields.TAGLINE, new org.apache.thrift.meta_data.FieldMetaData("tagline", org.apache.thrift.TFieldRequirementType.DEFAULT, 
187
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
188
    tmpMap.put(_Fields.OFFER, new org.apache.thrift.meta_data.FieldMetaData("offer", org.apache.thrift.TFieldRequirementType.DEFAULT, 
189
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14384 kshitij.so 190
    metaDataMap = Collections.unmodifiableMap(tmpMap);
191
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LivePricing.class, metaDataMap);
192
  }
193
 
194
  public LivePricing() {
195
  }
196
 
197
  public LivePricing(
198
    long _id,
199
    double available_price,
200
    String marketPlaceUrl,
201
    long in_stock,
202
    long source_id,
203
    String source_product_name,
14764 kshitij.so 204
    String thumbnail,
205
    long cash_back_type,
15903 kshitij.so 206
    double cash_back,
207
    String coupon,
16117 kshitij.so 208
    long codAvailable,
209
    String tagline,
210
    String offer)
14384 kshitij.so 211
  {
212
    this();
213
    this._id = _id;
214
    set_idIsSet(true);
215
    this.available_price = available_price;
216
    setAvailable_priceIsSet(true);
217
    this.marketPlaceUrl = marketPlaceUrl;
218
    this.in_stock = in_stock;
219
    setIn_stockIsSet(true);
220
    this.source_id = source_id;
221
    setSource_idIsSet(true);
222
    this.source_product_name = source_product_name;
223
    this.thumbnail = thumbnail;
14764 kshitij.so 224
    this.cash_back_type = cash_back_type;
225
    setCash_back_typeIsSet(true);
226
    this.cash_back = cash_back;
227
    setCash_backIsSet(true);
15903 kshitij.so 228
    this.coupon = coupon;
229
    this.codAvailable = codAvailable;
230
    setCodAvailableIsSet(true);
16117 kshitij.so 231
    this.tagline = tagline;
232
    this.offer = offer;
14384 kshitij.so 233
  }
234
 
235
  /**
236
   * Performs a deep copy on <i>other</i>.
237
   */
238
  public LivePricing(LivePricing other) {
239
    __isset_bit_vector.clear();
240
    __isset_bit_vector.or(other.__isset_bit_vector);
241
    this._id = other._id;
242
    this.available_price = other.available_price;
243
    if (other.isSetMarketPlaceUrl()) {
244
      this.marketPlaceUrl = other.marketPlaceUrl;
245
    }
246
    this.in_stock = other.in_stock;
247
    this.source_id = other.source_id;
248
    if (other.isSetSource_product_name()) {
249
      this.source_product_name = other.source_product_name;
250
    }
251
    if (other.isSetThumbnail()) {
252
      this.thumbnail = other.thumbnail;
253
    }
14764 kshitij.so 254
    this.cash_back_type = other.cash_back_type;
255
    this.cash_back = other.cash_back;
15903 kshitij.so 256
    if (other.isSetCoupon()) {
257
      this.coupon = other.coupon;
258
    }
259
    this.codAvailable = other.codAvailable;
16117 kshitij.so 260
    if (other.isSetTagline()) {
261
      this.tagline = other.tagline;
262
    }
263
    if (other.isSetOffer()) {
264
      this.offer = other.offer;
265
    }
14384 kshitij.so 266
  }
267
 
268
  public LivePricing deepCopy() {
269
    return new LivePricing(this);
270
  }
271
 
272
  @Override
273
  public void clear() {
274
    set_idIsSet(false);
275
    this._id = 0;
276
    setAvailable_priceIsSet(false);
277
    this.available_price = 0.0;
278
    this.marketPlaceUrl = null;
279
    setIn_stockIsSet(false);
280
    this.in_stock = 0;
281
    setSource_idIsSet(false);
282
    this.source_id = 0;
283
    this.source_product_name = null;
284
    this.thumbnail = null;
14764 kshitij.so 285
    setCash_back_typeIsSet(false);
286
    this.cash_back_type = 0;
287
    setCash_backIsSet(false);
288
    this.cash_back = 0.0;
15903 kshitij.so 289
    this.coupon = null;
290
    setCodAvailableIsSet(false);
15943 kshitij.so 291
    this.codAvailable = 0;
16117 kshitij.so 292
    this.tagline = null;
293
    this.offer = null;
14384 kshitij.so 294
  }
295
 
296
  public long get_id() {
297
    return this._id;
298
  }
299
 
300
  public void set_id(long _id) {
301
    this._id = _id;
302
    set_idIsSet(true);
303
  }
304
 
305
  public void unset_id() {
306
    __isset_bit_vector.clear(___ID_ISSET_ID);
307
  }
308
 
309
  /** Returns true if field _id is set (has been assigned a value) and false otherwise */
310
  public boolean isSet_id() {
311
    return __isset_bit_vector.get(___ID_ISSET_ID);
312
  }
313
 
314
  public void set_idIsSet(boolean value) {
315
    __isset_bit_vector.set(___ID_ISSET_ID, value);
316
  }
317
 
318
  public double getAvailable_price() {
319
    return this.available_price;
320
  }
321
 
322
  public void setAvailable_price(double available_price) {
323
    this.available_price = available_price;
324
    setAvailable_priceIsSet(true);
325
  }
326
 
327
  public void unsetAvailable_price() {
328
    __isset_bit_vector.clear(__AVAILABLE_PRICE_ISSET_ID);
329
  }
330
 
331
  /** Returns true if field available_price is set (has been assigned a value) and false otherwise */
332
  public boolean isSetAvailable_price() {
333
    return __isset_bit_vector.get(__AVAILABLE_PRICE_ISSET_ID);
334
  }
335
 
336
  public void setAvailable_priceIsSet(boolean value) {
337
    __isset_bit_vector.set(__AVAILABLE_PRICE_ISSET_ID, value);
338
  }
339
 
340
  public String getMarketPlaceUrl() {
341
    return this.marketPlaceUrl;
342
  }
343
 
344
  public void setMarketPlaceUrl(String marketPlaceUrl) {
345
    this.marketPlaceUrl = marketPlaceUrl;
346
  }
347
 
348
  public void unsetMarketPlaceUrl() {
349
    this.marketPlaceUrl = null;
350
  }
351
 
352
  /** Returns true if field marketPlaceUrl is set (has been assigned a value) and false otherwise */
353
  public boolean isSetMarketPlaceUrl() {
354
    return this.marketPlaceUrl != null;
355
  }
356
 
357
  public void setMarketPlaceUrlIsSet(boolean value) {
358
    if (!value) {
359
      this.marketPlaceUrl = null;
360
    }
361
  }
362
 
363
  public long getIn_stock() {
364
    return this.in_stock;
365
  }
366
 
367
  public void setIn_stock(long in_stock) {
368
    this.in_stock = in_stock;
369
    setIn_stockIsSet(true);
370
  }
371
 
372
  public void unsetIn_stock() {
373
    __isset_bit_vector.clear(__IN_STOCK_ISSET_ID);
374
  }
375
 
376
  /** Returns true if field in_stock is set (has been assigned a value) and false otherwise */
377
  public boolean isSetIn_stock() {
378
    return __isset_bit_vector.get(__IN_STOCK_ISSET_ID);
379
  }
380
 
381
  public void setIn_stockIsSet(boolean value) {
382
    __isset_bit_vector.set(__IN_STOCK_ISSET_ID, value);
383
  }
384
 
385
  public long getSource_id() {
386
    return this.source_id;
387
  }
388
 
389
  public void setSource_id(long source_id) {
390
    this.source_id = source_id;
391
    setSource_idIsSet(true);
392
  }
393
 
394
  public void unsetSource_id() {
395
    __isset_bit_vector.clear(__SOURCE_ID_ISSET_ID);
396
  }
397
 
398
  /** Returns true if field source_id is set (has been assigned a value) and false otherwise */
399
  public boolean isSetSource_id() {
400
    return __isset_bit_vector.get(__SOURCE_ID_ISSET_ID);
401
  }
402
 
403
  public void setSource_idIsSet(boolean value) {
404
    __isset_bit_vector.set(__SOURCE_ID_ISSET_ID, value);
405
  }
406
 
407
  public String getSource_product_name() {
408
    return this.source_product_name;
409
  }
410
 
411
  public void setSource_product_name(String source_product_name) {
412
    this.source_product_name = source_product_name;
413
  }
414
 
415
  public void unsetSource_product_name() {
416
    this.source_product_name = null;
417
  }
418
 
419
  /** Returns true if field source_product_name is set (has been assigned a value) and false otherwise */
420
  public boolean isSetSource_product_name() {
421
    return this.source_product_name != null;
422
  }
423
 
424
  public void setSource_product_nameIsSet(boolean value) {
425
    if (!value) {
426
      this.source_product_name = null;
427
    }
428
  }
429
 
430
  public String getThumbnail() {
431
    return this.thumbnail;
432
  }
433
 
434
  public void setThumbnail(String thumbnail) {
435
    this.thumbnail = thumbnail;
436
  }
437
 
438
  public void unsetThumbnail() {
439
    this.thumbnail = null;
440
  }
441
 
442
  /** Returns true if field thumbnail is set (has been assigned a value) and false otherwise */
443
  public boolean isSetThumbnail() {
444
    return this.thumbnail != null;
445
  }
446
 
447
  public void setThumbnailIsSet(boolean value) {
448
    if (!value) {
449
      this.thumbnail = null;
450
    }
451
  }
452
 
14764 kshitij.so 453
  public long getCash_back_type() {
454
    return this.cash_back_type;
455
  }
456
 
457
  public void setCash_back_type(long cash_back_type) {
458
    this.cash_back_type = cash_back_type;
459
    setCash_back_typeIsSet(true);
460
  }
461
 
462
  public void unsetCash_back_type() {
463
    __isset_bit_vector.clear(__CASH_BACK_TYPE_ISSET_ID);
464
  }
465
 
466
  /** Returns true if field cash_back_type is set (has been assigned a value) and false otherwise */
467
  public boolean isSetCash_back_type() {
468
    return __isset_bit_vector.get(__CASH_BACK_TYPE_ISSET_ID);
469
  }
470
 
471
  public void setCash_back_typeIsSet(boolean value) {
472
    __isset_bit_vector.set(__CASH_BACK_TYPE_ISSET_ID, value);
473
  }
474
 
475
  public double getCash_back() {
476
    return this.cash_back;
477
  }
478
 
479
  public void setCash_back(double cash_back) {
480
    this.cash_back = cash_back;
481
    setCash_backIsSet(true);
482
  }
483
 
484
  public void unsetCash_back() {
485
    __isset_bit_vector.clear(__CASH_BACK_ISSET_ID);
486
  }
487
 
488
  /** Returns true if field cash_back is set (has been assigned a value) and false otherwise */
489
  public boolean isSetCash_back() {
490
    return __isset_bit_vector.get(__CASH_BACK_ISSET_ID);
491
  }
492
 
493
  public void setCash_backIsSet(boolean value) {
494
    __isset_bit_vector.set(__CASH_BACK_ISSET_ID, value);
495
  }
496
 
15903 kshitij.so 497
  public String getCoupon() {
498
    return this.coupon;
499
  }
500
 
501
  public void setCoupon(String coupon) {
502
    this.coupon = coupon;
503
  }
504
 
505
  public void unsetCoupon() {
506
    this.coupon = null;
507
  }
508
 
509
  /** Returns true if field coupon is set (has been assigned a value) and false otherwise */
510
  public boolean isSetCoupon() {
511
    return this.coupon != null;
512
  }
513
 
514
  public void setCouponIsSet(boolean value) {
515
    if (!value) {
516
      this.coupon = null;
517
    }
518
  }
519
 
15943 kshitij.so 520
  public long getCodAvailable() {
15903 kshitij.so 521
    return this.codAvailable;
522
  }
523
 
15943 kshitij.so 524
  public void setCodAvailable(long codAvailable) {
15903 kshitij.so 525
    this.codAvailable = codAvailable;
526
    setCodAvailableIsSet(true);
527
  }
528
 
529
  public void unsetCodAvailable() {
530
    __isset_bit_vector.clear(__CODAVAILABLE_ISSET_ID);
531
  }
532
 
533
  /** Returns true if field codAvailable is set (has been assigned a value) and false otherwise */
534
  public boolean isSetCodAvailable() {
535
    return __isset_bit_vector.get(__CODAVAILABLE_ISSET_ID);
536
  }
537
 
538
  public void setCodAvailableIsSet(boolean value) {
539
    __isset_bit_vector.set(__CODAVAILABLE_ISSET_ID, value);
540
  }
541
 
16117 kshitij.so 542
  public String getTagline() {
543
    return this.tagline;
544
  }
545
 
546
  public void setTagline(String tagline) {
547
    this.tagline = tagline;
548
  }
549
 
550
  public void unsetTagline() {
551
    this.tagline = null;
552
  }
553
 
554
  /** Returns true if field tagline is set (has been assigned a value) and false otherwise */
555
  public boolean isSetTagline() {
556
    return this.tagline != null;
557
  }
558
 
559
  public void setTaglineIsSet(boolean value) {
560
    if (!value) {
561
      this.tagline = null;
562
    }
563
  }
564
 
565
  public String getOffer() {
566
    return this.offer;
567
  }
568
 
569
  public void setOffer(String offer) {
570
    this.offer = offer;
571
  }
572
 
573
  public void unsetOffer() {
574
    this.offer = null;
575
  }
576
 
577
  /** Returns true if field offer is set (has been assigned a value) and false otherwise */
578
  public boolean isSetOffer() {
579
    return this.offer != null;
580
  }
581
 
582
  public void setOfferIsSet(boolean value) {
583
    if (!value) {
584
      this.offer = null;
585
    }
586
  }
587
 
14384 kshitij.so 588
  public void setFieldValue(_Fields field, Object value) {
589
    switch (field) {
590
    case _ID:
591
      if (value == null) {
592
        unset_id();
593
      } else {
594
        set_id((Long)value);
595
      }
596
      break;
597
 
598
    case AVAILABLE_PRICE:
599
      if (value == null) {
600
        unsetAvailable_price();
601
      } else {
602
        setAvailable_price((Double)value);
603
      }
604
      break;
605
 
606
    case MARKET_PLACE_URL:
607
      if (value == null) {
608
        unsetMarketPlaceUrl();
609
      } else {
610
        setMarketPlaceUrl((String)value);
611
      }
612
      break;
613
 
614
    case IN_STOCK:
615
      if (value == null) {
616
        unsetIn_stock();
617
      } else {
618
        setIn_stock((Long)value);
619
      }
620
      break;
621
 
622
    case SOURCE_ID:
623
      if (value == null) {
624
        unsetSource_id();
625
      } else {
626
        setSource_id((Long)value);
627
      }
628
      break;
629
 
630
    case SOURCE_PRODUCT_NAME:
631
      if (value == null) {
632
        unsetSource_product_name();
633
      } else {
634
        setSource_product_name((String)value);
635
      }
636
      break;
637
 
638
    case THUMBNAIL:
639
      if (value == null) {
640
        unsetThumbnail();
641
      } else {
642
        setThumbnail((String)value);
643
      }
644
      break;
645
 
14764 kshitij.so 646
    case CASH_BACK_TYPE:
647
      if (value == null) {
648
        unsetCash_back_type();
649
      } else {
650
        setCash_back_type((Long)value);
651
      }
652
      break;
653
 
654
    case CASH_BACK:
655
      if (value == null) {
656
        unsetCash_back();
657
      } else {
658
        setCash_back((Double)value);
659
      }
660
      break;
661
 
15903 kshitij.so 662
    case COUPON:
663
      if (value == null) {
664
        unsetCoupon();
665
      } else {
666
        setCoupon((String)value);
667
      }
668
      break;
669
 
670
    case COD_AVAILABLE:
671
      if (value == null) {
672
        unsetCodAvailable();
673
      } else {
15943 kshitij.so 674
        setCodAvailable((Long)value);
15903 kshitij.so 675
      }
676
      break;
677
 
16117 kshitij.so 678
    case TAGLINE:
679
      if (value == null) {
680
        unsetTagline();
681
      } else {
682
        setTagline((String)value);
683
      }
684
      break;
685
 
686
    case OFFER:
687
      if (value == null) {
688
        unsetOffer();
689
      } else {
690
        setOffer((String)value);
691
      }
692
      break;
693
 
14384 kshitij.so 694
    }
695
  }
696
 
697
  public Object getFieldValue(_Fields field) {
698
    switch (field) {
699
    case _ID:
700
      return Long.valueOf(get_id());
701
 
702
    case AVAILABLE_PRICE:
703
      return Double.valueOf(getAvailable_price());
704
 
705
    case MARKET_PLACE_URL:
706
      return getMarketPlaceUrl();
707
 
708
    case IN_STOCK:
709
      return Long.valueOf(getIn_stock());
710
 
711
    case SOURCE_ID:
712
      return Long.valueOf(getSource_id());
713
 
714
    case SOURCE_PRODUCT_NAME:
715
      return getSource_product_name();
716
 
717
    case THUMBNAIL:
718
      return getThumbnail();
719
 
14764 kshitij.so 720
    case CASH_BACK_TYPE:
721
      return Long.valueOf(getCash_back_type());
722
 
723
    case CASH_BACK:
724
      return Double.valueOf(getCash_back());
725
 
15903 kshitij.so 726
    case COUPON:
727
      return getCoupon();
728
 
729
    case COD_AVAILABLE:
15943 kshitij.so 730
      return Long.valueOf(getCodAvailable());
15903 kshitij.so 731
 
16117 kshitij.so 732
    case TAGLINE:
733
      return getTagline();
734
 
735
    case OFFER:
736
      return getOffer();
737
 
14384 kshitij.so 738
    }
739
    throw new IllegalStateException();
740
  }
741
 
742
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
743
  public boolean isSet(_Fields field) {
744
    if (field == null) {
745
      throw new IllegalArgumentException();
746
    }
747
 
748
    switch (field) {
749
    case _ID:
750
      return isSet_id();
751
    case AVAILABLE_PRICE:
752
      return isSetAvailable_price();
753
    case MARKET_PLACE_URL:
754
      return isSetMarketPlaceUrl();
755
    case IN_STOCK:
756
      return isSetIn_stock();
757
    case SOURCE_ID:
758
      return isSetSource_id();
759
    case SOURCE_PRODUCT_NAME:
760
      return isSetSource_product_name();
761
    case THUMBNAIL:
762
      return isSetThumbnail();
14764 kshitij.so 763
    case CASH_BACK_TYPE:
764
      return isSetCash_back_type();
765
    case CASH_BACK:
766
      return isSetCash_back();
15903 kshitij.so 767
    case COUPON:
768
      return isSetCoupon();
769
    case COD_AVAILABLE:
770
      return isSetCodAvailable();
16117 kshitij.so 771
    case TAGLINE:
772
      return isSetTagline();
773
    case OFFER:
774
      return isSetOffer();
14384 kshitij.so 775
    }
776
    throw new IllegalStateException();
777
  }
778
 
779
  @Override
780
  public boolean equals(Object that) {
781
    if (that == null)
782
      return false;
783
    if (that instanceof LivePricing)
784
      return this.equals((LivePricing)that);
785
    return false;
786
  }
787
 
788
  public boolean equals(LivePricing that) {
789
    if (that == null)
790
      return false;
791
 
792
    boolean this_present__id = true;
793
    boolean that_present__id = true;
794
    if (this_present__id || that_present__id) {
795
      if (!(this_present__id && that_present__id))
796
        return false;
797
      if (this._id != that._id)
798
        return false;
799
    }
800
 
801
    boolean this_present_available_price = true;
802
    boolean that_present_available_price = true;
803
    if (this_present_available_price || that_present_available_price) {
804
      if (!(this_present_available_price && that_present_available_price))
805
        return false;
806
      if (this.available_price != that.available_price)
807
        return false;
808
    }
809
 
810
    boolean this_present_marketPlaceUrl = true && this.isSetMarketPlaceUrl();
811
    boolean that_present_marketPlaceUrl = true && that.isSetMarketPlaceUrl();
812
    if (this_present_marketPlaceUrl || that_present_marketPlaceUrl) {
813
      if (!(this_present_marketPlaceUrl && that_present_marketPlaceUrl))
814
        return false;
815
      if (!this.marketPlaceUrl.equals(that.marketPlaceUrl))
816
        return false;
817
    }
818
 
819
    boolean this_present_in_stock = true;
820
    boolean that_present_in_stock = true;
821
    if (this_present_in_stock || that_present_in_stock) {
822
      if (!(this_present_in_stock && that_present_in_stock))
823
        return false;
824
      if (this.in_stock != that.in_stock)
825
        return false;
826
    }
827
 
828
    boolean this_present_source_id = true;
829
    boolean that_present_source_id = true;
830
    if (this_present_source_id || that_present_source_id) {
831
      if (!(this_present_source_id && that_present_source_id))
832
        return false;
833
      if (this.source_id != that.source_id)
834
        return false;
835
    }
836
 
837
    boolean this_present_source_product_name = true && this.isSetSource_product_name();
838
    boolean that_present_source_product_name = true && that.isSetSource_product_name();
839
    if (this_present_source_product_name || that_present_source_product_name) {
840
      if (!(this_present_source_product_name && that_present_source_product_name))
841
        return false;
842
      if (!this.source_product_name.equals(that.source_product_name))
843
        return false;
844
    }
845
 
846
    boolean this_present_thumbnail = true && this.isSetThumbnail();
847
    boolean that_present_thumbnail = true && that.isSetThumbnail();
848
    if (this_present_thumbnail || that_present_thumbnail) {
849
      if (!(this_present_thumbnail && that_present_thumbnail))
850
        return false;
851
      if (!this.thumbnail.equals(that.thumbnail))
852
        return false;
853
    }
854
 
14764 kshitij.so 855
    boolean this_present_cash_back_type = true;
856
    boolean that_present_cash_back_type = true;
857
    if (this_present_cash_back_type || that_present_cash_back_type) {
858
      if (!(this_present_cash_back_type && that_present_cash_back_type))
859
        return false;
860
      if (this.cash_back_type != that.cash_back_type)
861
        return false;
862
    }
863
 
864
    boolean this_present_cash_back = true;
865
    boolean that_present_cash_back = true;
866
    if (this_present_cash_back || that_present_cash_back) {
867
      if (!(this_present_cash_back && that_present_cash_back))
868
        return false;
869
      if (this.cash_back != that.cash_back)
870
        return false;
871
    }
872
 
15903 kshitij.so 873
    boolean this_present_coupon = true && this.isSetCoupon();
874
    boolean that_present_coupon = true && that.isSetCoupon();
875
    if (this_present_coupon || that_present_coupon) {
876
      if (!(this_present_coupon && that_present_coupon))
877
        return false;
878
      if (!this.coupon.equals(that.coupon))
879
        return false;
880
    }
881
 
882
    boolean this_present_codAvailable = true;
883
    boolean that_present_codAvailable = true;
884
    if (this_present_codAvailable || that_present_codAvailable) {
885
      if (!(this_present_codAvailable && that_present_codAvailable))
886
        return false;
887
      if (this.codAvailable != that.codAvailable)
888
        return false;
889
    }
890
 
16117 kshitij.so 891
    boolean this_present_tagline = true && this.isSetTagline();
892
    boolean that_present_tagline = true && that.isSetTagline();
893
    if (this_present_tagline || that_present_tagline) {
894
      if (!(this_present_tagline && that_present_tagline))
895
        return false;
896
      if (!this.tagline.equals(that.tagline))
897
        return false;
898
    }
899
 
900
    boolean this_present_offer = true && this.isSetOffer();
901
    boolean that_present_offer = true && that.isSetOffer();
902
    if (this_present_offer || that_present_offer) {
903
      if (!(this_present_offer && that_present_offer))
904
        return false;
905
      if (!this.offer.equals(that.offer))
906
        return false;
907
    }
908
 
14384 kshitij.so 909
    return true;
910
  }
911
 
912
  @Override
913
  public int hashCode() {
914
    return 0;
915
  }
916
 
917
  public int compareTo(LivePricing other) {
918
    if (!getClass().equals(other.getClass())) {
919
      return getClass().getName().compareTo(other.getClass().getName());
920
    }
921
 
922
    int lastComparison = 0;
923
    LivePricing typedOther = (LivePricing)other;
924
 
925
    lastComparison = Boolean.valueOf(isSet_id()).compareTo(typedOther.isSet_id());
926
    if (lastComparison != 0) {
927
      return lastComparison;
928
    }
929
    if (isSet_id()) {
930
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this._id, typedOther._id);
931
      if (lastComparison != 0) {
932
        return lastComparison;
933
      }
934
    }
935
    lastComparison = Boolean.valueOf(isSetAvailable_price()).compareTo(typedOther.isSetAvailable_price());
936
    if (lastComparison != 0) {
937
      return lastComparison;
938
    }
939
    if (isSetAvailable_price()) {
940
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.available_price, typedOther.available_price);
941
      if (lastComparison != 0) {
942
        return lastComparison;
943
      }
944
    }
945
    lastComparison = Boolean.valueOf(isSetMarketPlaceUrl()).compareTo(typedOther.isSetMarketPlaceUrl());
946
    if (lastComparison != 0) {
947
      return lastComparison;
948
    }
949
    if (isSetMarketPlaceUrl()) {
950
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.marketPlaceUrl, typedOther.marketPlaceUrl);
951
      if (lastComparison != 0) {
952
        return lastComparison;
953
      }
954
    }
955
    lastComparison = Boolean.valueOf(isSetIn_stock()).compareTo(typedOther.isSetIn_stock());
956
    if (lastComparison != 0) {
957
      return lastComparison;
958
    }
959
    if (isSetIn_stock()) {
960
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.in_stock, typedOther.in_stock);
961
      if (lastComparison != 0) {
962
        return lastComparison;
963
      }
964
    }
965
    lastComparison = Boolean.valueOf(isSetSource_id()).compareTo(typedOther.isSetSource_id());
966
    if (lastComparison != 0) {
967
      return lastComparison;
968
    }
969
    if (isSetSource_id()) {
970
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_id, typedOther.source_id);
971
      if (lastComparison != 0) {
972
        return lastComparison;
973
      }
974
    }
975
    lastComparison = Boolean.valueOf(isSetSource_product_name()).compareTo(typedOther.isSetSource_product_name());
976
    if (lastComparison != 0) {
977
      return lastComparison;
978
    }
979
    if (isSetSource_product_name()) {
980
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_product_name, typedOther.source_product_name);
981
      if (lastComparison != 0) {
982
        return lastComparison;
983
      }
984
    }
985
    lastComparison = Boolean.valueOf(isSetThumbnail()).compareTo(typedOther.isSetThumbnail());
986
    if (lastComparison != 0) {
987
      return lastComparison;
988
    }
989
    if (isSetThumbnail()) {
990
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.thumbnail, typedOther.thumbnail);
991
      if (lastComparison != 0) {
992
        return lastComparison;
993
      }
994
    }
14764 kshitij.so 995
    lastComparison = Boolean.valueOf(isSetCash_back_type()).compareTo(typedOther.isSetCash_back_type());
996
    if (lastComparison != 0) {
997
      return lastComparison;
998
    }
999
    if (isSetCash_back_type()) {
1000
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cash_back_type, typedOther.cash_back_type);
1001
      if (lastComparison != 0) {
1002
        return lastComparison;
1003
      }
1004
    }
1005
    lastComparison = Boolean.valueOf(isSetCash_back()).compareTo(typedOther.isSetCash_back());
1006
    if (lastComparison != 0) {
1007
      return lastComparison;
1008
    }
1009
    if (isSetCash_back()) {
1010
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cash_back, typedOther.cash_back);
1011
      if (lastComparison != 0) {
1012
        return lastComparison;
1013
      }
1014
    }
15903 kshitij.so 1015
    lastComparison = Boolean.valueOf(isSetCoupon()).compareTo(typedOther.isSetCoupon());
1016
    if (lastComparison != 0) {
1017
      return lastComparison;
1018
    }
1019
    if (isSetCoupon()) {
1020
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.coupon, typedOther.coupon);
1021
      if (lastComparison != 0) {
1022
        return lastComparison;
1023
      }
1024
    }
1025
    lastComparison = Boolean.valueOf(isSetCodAvailable()).compareTo(typedOther.isSetCodAvailable());
1026
    if (lastComparison != 0) {
1027
      return lastComparison;
1028
    }
1029
    if (isSetCodAvailable()) {
1030
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.codAvailable, typedOther.codAvailable);
1031
      if (lastComparison != 0) {
1032
        return lastComparison;
1033
      }
1034
    }
16117 kshitij.so 1035
    lastComparison = Boolean.valueOf(isSetTagline()).compareTo(typedOther.isSetTagline());
1036
    if (lastComparison != 0) {
1037
      return lastComparison;
1038
    }
1039
    if (isSetTagline()) {
1040
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tagline, typedOther.tagline);
1041
      if (lastComparison != 0) {
1042
        return lastComparison;
1043
      }
1044
    }
1045
    lastComparison = Boolean.valueOf(isSetOffer()).compareTo(typedOther.isSetOffer());
1046
    if (lastComparison != 0) {
1047
      return lastComparison;
1048
    }
1049
    if (isSetOffer()) {
1050
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offer, typedOther.offer);
1051
      if (lastComparison != 0) {
1052
        return lastComparison;
1053
      }
1054
    }
14384 kshitij.so 1055
    return 0;
1056
  }
1057
 
1058
  public _Fields fieldForId(int fieldId) {
1059
    return _Fields.findByThriftId(fieldId);
1060
  }
1061
 
1062
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1063
    org.apache.thrift.protocol.TField field;
1064
    iprot.readStructBegin();
1065
    while (true)
1066
    {
1067
      field = iprot.readFieldBegin();
1068
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1069
        break;
1070
      }
1071
      switch (field.id) {
1072
        case 1: // _ID
1073
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1074
            this._id = iprot.readI64();
1075
            set_idIsSet(true);
1076
          } else { 
1077
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1078
          }
1079
          break;
1080
        case 2: // AVAILABLE_PRICE
1081
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1082
            this.available_price = iprot.readDouble();
1083
            setAvailable_priceIsSet(true);
1084
          } else { 
1085
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1086
          }
1087
          break;
1088
        case 3: // MARKET_PLACE_URL
1089
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1090
            this.marketPlaceUrl = iprot.readString();
1091
          } else { 
1092
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1093
          }
1094
          break;
1095
        case 4: // IN_STOCK
1096
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1097
            this.in_stock = iprot.readI64();
1098
            setIn_stockIsSet(true);
1099
          } else { 
1100
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1101
          }
1102
          break;
1103
        case 5: // SOURCE_ID
1104
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1105
            this.source_id = iprot.readI64();
1106
            setSource_idIsSet(true);
1107
          } else { 
1108
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1109
          }
1110
          break;
1111
        case 6: // SOURCE_PRODUCT_NAME
1112
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1113
            this.source_product_name = iprot.readString();
1114
          } else { 
1115
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1116
          }
1117
          break;
1118
        case 7: // THUMBNAIL
1119
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1120
            this.thumbnail = iprot.readString();
1121
          } else { 
1122
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1123
          }
1124
          break;
14764 kshitij.so 1125
        case 8: // CASH_BACK_TYPE
1126
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1127
            this.cash_back_type = iprot.readI64();
1128
            setCash_back_typeIsSet(true);
1129
          } else { 
1130
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1131
          }
1132
          break;
1133
        case 9: // CASH_BACK
1134
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1135
            this.cash_back = iprot.readDouble();
1136
            setCash_backIsSet(true);
1137
          } else { 
1138
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139
          }
1140
          break;
15903 kshitij.so 1141
        case 10: // COUPON
1142
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1143
            this.coupon = iprot.readString();
1144
          } else { 
1145
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1146
          }
1147
          break;
1148
        case 11: // COD_AVAILABLE
15943 kshitij.so 1149
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1150
            this.codAvailable = iprot.readI64();
15903 kshitij.so 1151
            setCodAvailableIsSet(true);
1152
          } else { 
1153
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1154
          }
1155
          break;
16117 kshitij.so 1156
        case 12: // TAGLINE
1157
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1158
            this.tagline = iprot.readString();
1159
          } else { 
1160
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1161
          }
1162
          break;
1163
        case 13: // OFFER
1164
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1165
            this.offer = iprot.readString();
1166
          } else { 
1167
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1168
          }
1169
          break;
14384 kshitij.so 1170
        default:
1171
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1172
      }
1173
      iprot.readFieldEnd();
1174
    }
1175
    iprot.readStructEnd();
1176
    validate();
1177
  }
1178
 
1179
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1180
    validate();
1181
 
1182
    oprot.writeStructBegin(STRUCT_DESC);
1183
    oprot.writeFieldBegin(_ID_FIELD_DESC);
1184
    oprot.writeI64(this._id);
1185
    oprot.writeFieldEnd();
1186
    oprot.writeFieldBegin(AVAILABLE_PRICE_FIELD_DESC);
1187
    oprot.writeDouble(this.available_price);
1188
    oprot.writeFieldEnd();
1189
    if (this.marketPlaceUrl != null) {
1190
      oprot.writeFieldBegin(MARKET_PLACE_URL_FIELD_DESC);
1191
      oprot.writeString(this.marketPlaceUrl);
1192
      oprot.writeFieldEnd();
1193
    }
1194
    oprot.writeFieldBegin(IN_STOCK_FIELD_DESC);
1195
    oprot.writeI64(this.in_stock);
1196
    oprot.writeFieldEnd();
1197
    oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
1198
    oprot.writeI64(this.source_id);
1199
    oprot.writeFieldEnd();
1200
    if (this.source_product_name != null) {
1201
      oprot.writeFieldBegin(SOURCE_PRODUCT_NAME_FIELD_DESC);
1202
      oprot.writeString(this.source_product_name);
1203
      oprot.writeFieldEnd();
1204
    }
1205
    if (this.thumbnail != null) {
1206
      oprot.writeFieldBegin(THUMBNAIL_FIELD_DESC);
1207
      oprot.writeString(this.thumbnail);
1208
      oprot.writeFieldEnd();
1209
    }
14764 kshitij.so 1210
    oprot.writeFieldBegin(CASH_BACK_TYPE_FIELD_DESC);
1211
    oprot.writeI64(this.cash_back_type);
1212
    oprot.writeFieldEnd();
1213
    oprot.writeFieldBegin(CASH_BACK_FIELD_DESC);
1214
    oprot.writeDouble(this.cash_back);
1215
    oprot.writeFieldEnd();
15903 kshitij.so 1216
    if (this.coupon != null) {
1217
      oprot.writeFieldBegin(COUPON_FIELD_DESC);
1218
      oprot.writeString(this.coupon);
1219
      oprot.writeFieldEnd();
1220
    }
1221
    oprot.writeFieldBegin(COD_AVAILABLE_FIELD_DESC);
15943 kshitij.so 1222
    oprot.writeI64(this.codAvailable);
15903 kshitij.so 1223
    oprot.writeFieldEnd();
16117 kshitij.so 1224
    if (this.tagline != null) {
1225
      oprot.writeFieldBegin(TAGLINE_FIELD_DESC);
1226
      oprot.writeString(this.tagline);
1227
      oprot.writeFieldEnd();
1228
    }
1229
    if (this.offer != null) {
1230
      oprot.writeFieldBegin(OFFER_FIELD_DESC);
1231
      oprot.writeString(this.offer);
1232
      oprot.writeFieldEnd();
1233
    }
14384 kshitij.so 1234
    oprot.writeFieldStop();
1235
    oprot.writeStructEnd();
1236
  }
1237
 
1238
  @Override
1239
  public String toString() {
1240
    StringBuilder sb = new StringBuilder("LivePricing(");
1241
    boolean first = true;
1242
 
1243
    sb.append("_id:");
1244
    sb.append(this._id);
1245
    first = false;
1246
    if (!first) sb.append(", ");
1247
    sb.append("available_price:");
1248
    sb.append(this.available_price);
1249
    first = false;
1250
    if (!first) sb.append(", ");
1251
    sb.append("marketPlaceUrl:");
1252
    if (this.marketPlaceUrl == null) {
1253
      sb.append("null");
1254
    } else {
1255
      sb.append(this.marketPlaceUrl);
1256
    }
1257
    first = false;
1258
    if (!first) sb.append(", ");
1259
    sb.append("in_stock:");
1260
    sb.append(this.in_stock);
1261
    first = false;
1262
    if (!first) sb.append(", ");
1263
    sb.append("source_id:");
1264
    sb.append(this.source_id);
1265
    first = false;
1266
    if (!first) sb.append(", ");
1267
    sb.append("source_product_name:");
1268
    if (this.source_product_name == null) {
1269
      sb.append("null");
1270
    } else {
1271
      sb.append(this.source_product_name);
1272
    }
1273
    first = false;
1274
    if (!first) sb.append(", ");
1275
    sb.append("thumbnail:");
1276
    if (this.thumbnail == null) {
1277
      sb.append("null");
1278
    } else {
1279
      sb.append(this.thumbnail);
1280
    }
1281
    first = false;
14764 kshitij.so 1282
    if (!first) sb.append(", ");
1283
    sb.append("cash_back_type:");
1284
    sb.append(this.cash_back_type);
1285
    first = false;
1286
    if (!first) sb.append(", ");
1287
    sb.append("cash_back:");
1288
    sb.append(this.cash_back);
1289
    first = false;
15903 kshitij.so 1290
    if (!first) sb.append(", ");
1291
    sb.append("coupon:");
1292
    if (this.coupon == null) {
1293
      sb.append("null");
1294
    } else {
1295
      sb.append(this.coupon);
1296
    }
1297
    first = false;
1298
    if (!first) sb.append(", ");
1299
    sb.append("codAvailable:");
1300
    sb.append(this.codAvailable);
1301
    first = false;
16117 kshitij.so 1302
    if (!first) sb.append(", ");
1303
    sb.append("tagline:");
1304
    if (this.tagline == null) {
1305
      sb.append("null");
1306
    } else {
1307
      sb.append(this.tagline);
1308
    }
1309
    first = false;
1310
    if (!first) sb.append(", ");
1311
    sb.append("offer:");
1312
    if (this.offer == null) {
1313
      sb.append("null");
1314
    } else {
1315
      sb.append(this.offer);
1316
    }
1317
    first = false;
14384 kshitij.so 1318
    sb.append(")");
1319
    return sb.toString();
1320
  }
1321
 
1322
  public void validate() throws org.apache.thrift.TException {
1323
    // check for required fields
1324
  }
1325
 
1326
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1327
    try {
1328
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1329
    } catch (org.apache.thrift.TException te) {
1330
      throw new java.io.IOException(te);
1331
    }
1332
  }
1333
 
1334
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1335
    try {
1336
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1337
      __isset_bit_vector = new BitSet(1);
1338
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1339
    } catch (org.apache.thrift.TException te) {
1340
      throw new java.io.IOException(te);
1341
    }
1342
  }
1343
 
1344
}
1345